@orangefox-recovery/foxclient 6.0.7 → 6.0.9

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 (182) hide show
  1. package/.openapi-generator/FILES +14 -0
  2. package/README.md +10 -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 +1 -1
  8. package/dist/apis/ReleaseApi.js +1 -1
  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 +1 -1
  22. package/dist/esm/apis/ReleaseApi.js +1 -1
  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 +1 -1
  60. package/dist/esm/models/ReleaseListResponse.js +1 -1
  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 +6 -0
  82. package/dist/esm/models/index.js +6 -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 +1 -1
  114. package/dist/models/ReleaseListResponse.js +1 -1
  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 +6 -0
  136. package/dist/models/index.js +6 -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/ReleaseResponse.md +4 -0
  141. package/docs/UptimeApi.md +69 -0
  142. package/docs/UptimeHealth.md +43 -0
  143. package/docs/UptimeHealthHost.md +41 -0
  144. package/docs/UptimeMonitor.md +49 -0
  145. package/docs/UptimeMonitorGroup.md +37 -0
  146. package/docs/UptimeMonitors.md +37 -0
  147. package/docs/UptimeResponse.md +39 -0
  148. package/package.json +1 -1
  149. package/src/apis/DeviceApi.ts +1 -1
  150. package/src/apis/PasteApi.ts +1 -1
  151. package/src/apis/ReleaseApi.ts +1 -1
  152. package/src/apis/ReportApi.ts +1 -1
  153. package/src/apis/StatsApi.ts +1 -1
  154. package/src/apis/UptimeApi.ts +103 -0
  155. package/src/apis/index.ts +1 -0
  156. package/src/models/DeviceResponse.ts +1 -1
  157. package/src/models/ErrorResponse.ts +1 -1
  158. package/src/models/GlobalStatsResponse.ts +1 -1
  159. package/src/models/ListResponseReleaseResponse.ts +1 -1
  160. package/src/models/ListResponseReleaseResponseDataInner.ts +19 -1
  161. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  162. package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
  163. package/src/models/ListResponseString.ts +1 -1
  164. package/src/models/MaintainerShortResponse.ts +1 -1
  165. package/src/models/NewReportRequest.ts +1 -1
  166. package/src/models/PasteInput.ts +1 -1
  167. package/src/models/PasteResponse.ts +1 -1
  168. package/src/models/RecoveryImgResponse.ts +1 -1
  169. package/src/models/ReleaseGroupsResponse.ts +1 -1
  170. package/src/models/ReleaseListResponse.ts +1 -1
  171. package/src/models/ReleaseResponse.ts +19 -1
  172. package/src/models/ShortDeviceResponse.ts +1 -1
  173. package/src/models/ShortReleaseResponse.ts +1 -1
  174. package/src/models/TokenResponse.ts +1 -1
  175. package/src/models/UptimeHealth.ts +110 -0
  176. package/src/models/UptimeHealthHost.ts +92 -0
  177. package/src/models/UptimeMonitor.ts +125 -0
  178. package/src/models/UptimeMonitorGroup.ts +83 -0
  179. package/src/models/UptimeMonitors.ts +83 -0
  180. package/src/models/UptimeResponse.ts +97 -0
  181. package/src/models/index.ts +6 -0
  182. package/src/runtime.ts +1 -1
@@ -0,0 +1,49 @@
1
+
2
+ # UptimeMonitor
3
+
4
+ A single monitor with its current heartbeat and uptime ratio.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | number
11
+ `lastHeartbeat` | string
12
+ `name` | string
13
+ `ping` | number
14
+ `status` | string
15
+ `type` | string
16
+ `uptime24h` | number
17
+ `url` | string
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import type { UptimeMonitor } from '@orangefox-recovery/foxclient'
23
+
24
+ // TODO: Update the object below with actual values
25
+ const example = {
26
+ "id": null,
27
+ "lastHeartbeat": null,
28
+ "name": null,
29
+ "ping": null,
30
+ "status": null,
31
+ "type": null,
32
+ "uptime24h": null,
33
+ "url": null,
34
+ } satisfies UptimeMonitor
35
+
36
+ console.log(example)
37
+
38
+ // Convert the instance to a JSON string
39
+ const exampleJSON: string = JSON.stringify(example)
40
+ console.log(exampleJSON)
41
+
42
+ // Parse the JSON string back to an object
43
+ const exampleParsed = JSON.parse(exampleJSON) as UptimeMonitor
44
+ console.log(exampleParsed)
45
+ ```
46
+
47
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
48
+
49
+
@@ -0,0 +1,37 @@
1
+
2
+ # UptimeMonitorGroup
3
+
4
+ A group of monitors from the Uptime Kuma status page.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `monitors` | [Array<UptimeMonitor>](UptimeMonitor.md)
11
+ `name` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { UptimeMonitorGroup } from '@orangefox-recovery/foxclient'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "monitors": null,
21
+ "name": null,
22
+ } satisfies UptimeMonitorGroup
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as UptimeMonitorGroup
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,37 @@
1
+
2
+ # UptimeMonitors
3
+
4
+ Uptime Kuma status page, grouped by monitor group.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `groups` | [Array<UptimeMonitorGroup>](UptimeMonitorGroup.md)
11
+ `title` | string
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { UptimeMonitors } from '@orangefox-recovery/foxclient'
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "groups": null,
21
+ "title": null,
22
+ } satisfies UptimeMonitors
23
+
24
+ console.log(example)
25
+
26
+ // Convert the instance to a JSON string
27
+ const exampleJSON: string = JSON.stringify(example)
28
+ console.log(exampleJSON)
29
+
30
+ // Parse the JSON string back to an object
31
+ const exampleParsed = JSON.parse(exampleJSON) as UptimeMonitors
32
+ console.log(exampleParsed)
33
+ ```
34
+
35
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
36
+
37
+
@@ -0,0 +1,39 @@
1
+
2
+ # UptimeResponse
3
+
4
+ Aggregated infrastructure status returned by `GET /uptime`.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `health` | [UptimeHealth](UptimeHealth.md)
11
+ `monitors` | [UptimeMonitors](UptimeMonitors.md)
12
+ `status` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { UptimeResponse } from '@orangefox-recovery/foxclient'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "health": null,
22
+ "monitors": null,
23
+ "status": null,
24
+ } satisfies UptimeResponse
25
+
26
+ console.log(example)
27
+
28
+ // Convert the instance to a JSON string
29
+ const exampleJSON: string = JSON.stringify(example)
30
+ console.log(exampleJSON)
31
+
32
+ // Parse the JSON string back to an object
33
+ const exampleParsed = JSON.parse(exampleJSON) as UptimeResponse
34
+ console.log(exampleParsed)
35
+ ```
36
+
37
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
38
+
39
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangefox-recovery/foxclient",
3
- "version": "6.0.7",
3
+ "version": "6.0.9",
4
4
  "description": "OpenAPI client for @orangefox-recovery/foxclient",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
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,103 @@
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.9
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ ErrorResponse,
19
+ UptimeResponse,
20
+ } from '../models/index';
21
+ import {
22
+ ErrorResponseFromJSON,
23
+ ErrorResponseToJSON,
24
+ UptimeResponseFromJSON,
25
+ UptimeResponseToJSON,
26
+ } from '../models/index';
27
+
28
+ /**
29
+ * UptimeApi - interface
30
+ *
31
+ * @export
32
+ * @interface UptimeApiInterface
33
+ */
34
+ export interface UptimeApiInterface {
35
+ /**
36
+ * Creates request options for getUptime without sending the request
37
+ * @throws {RequiredError}
38
+ * @memberof UptimeApiInterface
39
+ */
40
+ getUptimeRequestOpts(): Promise<runtime.RequestOpts>;
41
+
42
+ /**
43
+ * Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
44
+ * @summary GET /uptime - Aggregated public infrastructure status.
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ * @memberof UptimeApiInterface
48
+ */
49
+ getUptimeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UptimeResponse>>;
50
+
51
+ /**
52
+ * Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
53
+ * GET /uptime - Aggregated public infrastructure status.
54
+ */
55
+ getUptime(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UptimeResponse>;
56
+
57
+ }
58
+
59
+ /**
60
+ *
61
+ */
62
+ export class UptimeApi extends runtime.BaseAPI implements UptimeApiInterface {
63
+
64
+ /**
65
+ * Creates request options for getUptime without sending the request
66
+ */
67
+ async getUptimeRequestOpts(): Promise<runtime.RequestOpts> {
68
+ const queryParameters: any = {};
69
+
70
+ const headerParameters: runtime.HTTPHeaders = {};
71
+
72
+
73
+ let urlPath = `/uptime`;
74
+
75
+ return {
76
+ path: urlPath,
77
+ method: 'GET',
78
+ headers: headerParameters,
79
+ query: queryParameters,
80
+ };
81
+ }
82
+
83
+ /**
84
+ * Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
85
+ * GET /uptime - Aggregated public infrastructure status.
86
+ */
87
+ async getUptimeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UptimeResponse>> {
88
+ const requestOptions = await this.getUptimeRequestOpts();
89
+ const response = await this.request(requestOptions, initOverrides);
90
+
91
+ return new runtime.JSONApiResponse(response, (jsonValue) => UptimeResponseFromJSON(jsonValue));
92
+ }
93
+
94
+ /**
95
+ * Combines the FoxHealth report with the Uptime Kuma status page into a single JSON object. Each upstream is fetched independently: if one fails its section is set to null. If both fail, a 502 is returned.
96
+ * GET /uptime - Aggregated public infrastructure status.
97
+ */
98
+ async getUptime(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UptimeResponse> {
99
+ const response = await this.getUptimeRaw(initOverrides);
100
+ return await response.value();
101
+ }
102
+
103
+ }
package/src/apis/index.ts CHANGED
@@ -5,3 +5,4 @@ export * from './PasteApi';
5
5
  export * from './ReleaseApi';
6
6
  export * from './ReportApi';
7
7
  export * from './StatsApi';
8
+ export * from './UptimeApi';
@@ -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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -147,12 +147,24 @@ export interface ListResponseReleaseResponseDataInner {
147
147
  * @memberof ListResponseReleaseResponseDataInner
148
148
  */
149
149
  recoveryImg: RecoveryImgResponse;
150
+ /**
151
+ * Total number of downloads recorded for this release.
152
+ * @type {number}
153
+ * @memberof ListResponseReleaseResponseDataInner
154
+ */
155
+ totalDownloads: number;
150
156
  /**
151
157
  *
152
158
  * @type {string}
153
159
  * @memberof ListResponseReleaseResponseDataInner
154
160
  */
155
161
  url: string;
162
+ /**
163
+ * Downloads in the last 7 UTC days (today plus the previous 6).
164
+ * @type {number}
165
+ * @memberof ListResponseReleaseResponseDataInner
166
+ */
167
+ weeklyDownloads: number;
156
168
  }
157
169
 
158
170
  /**
@@ -174,7 +186,9 @@ export function instanceOfListResponseReleaseResponseDataInner(value: object): v
174
186
  if (!('changelog' in value) || value['changelog'] === undefined) return false;
175
187
  if (!('mirrors' in value) || value['mirrors'] === undefined) return false;
176
188
  if (!('recoveryImg' in value) || value['recoveryImg'] === undefined) return false;
189
+ if (!('totalDownloads' in value) || value['totalDownloads'] === undefined) return false;
177
190
  if (!('url' in value) || value['url'] === undefined) return false;
191
+ if (!('weeklyDownloads' in value) || value['weeklyDownloads'] === undefined) return false;
178
192
  return true;
179
193
  }
180
194
 
@@ -208,7 +222,9 @@ export function ListResponseReleaseResponseDataInnerFromJSONTyped(json: any, ign
208
222
  'mirrors': json['mirrors'],
209
223
  'notes': json['notes'] == null ? undefined : json['notes'],
210
224
  'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
225
+ 'totalDownloads': json['total_downloads'],
211
226
  'url': json['url'],
227
+ 'weeklyDownloads': json['weekly_downloads'],
212
228
  };
213
229
  }
214
230
 
@@ -243,7 +259,9 @@ export function ListResponseReleaseResponseDataInnerToJSONTyped(value?: ListResp
243
259
  'mirrors': value['mirrors'],
244
260
  'notes': value['notes'],
245
261
  'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
262
+ 'total_downloads': value['totalDownloads'],
246
263
  'url': value['url'],
264
+ 'weekly_downloads': value['weeklyDownloads'],
247
265
  };
248
266
  }
249
267
 
@@ -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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -147,12 +147,24 @@ export interface ReleaseResponse {
147
147
  * @memberof ReleaseResponse
148
148
  */
149
149
  recoveryImg: RecoveryImgResponse;
150
+ /**
151
+ * Total number of downloads recorded for this release.
152
+ * @type {number}
153
+ * @memberof ReleaseResponse
154
+ */
155
+ totalDownloads: number;
150
156
  /**
151
157
  *
152
158
  * @type {string}
153
159
  * @memberof ReleaseResponse
154
160
  */
155
161
  url: string;
162
+ /**
163
+ * Downloads in the last 7 UTC days (today plus the previous 6).
164
+ * @type {number}
165
+ * @memberof ReleaseResponse
166
+ */
167
+ weeklyDownloads: number;
156
168
  }
157
169
 
158
170
  /**
@@ -174,7 +186,9 @@ export function instanceOfReleaseResponse(value: object): value is ReleaseRespon
174
186
  if (!('changelog' in value) || value['changelog'] === undefined) return false;
175
187
  if (!('mirrors' in value) || value['mirrors'] === undefined) return false;
176
188
  if (!('recoveryImg' in value) || value['recoveryImg'] === undefined) return false;
189
+ if (!('totalDownloads' in value) || value['totalDownloads'] === undefined) return false;
177
190
  if (!('url' in value) || value['url'] === undefined) return false;
191
+ if (!('weeklyDownloads' in value) || value['weeklyDownloads'] === undefined) return false;
178
192
  return true;
179
193
  }
180
194
 
@@ -208,7 +222,9 @@ export function ReleaseResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
208
222
  'mirrors': json['mirrors'],
209
223
  'notes': json['notes'] == null ? undefined : json['notes'],
210
224
  'recoveryImg': RecoveryImgResponseFromJSON(json['recovery_img']),
225
+ 'totalDownloads': json['total_downloads'],
211
226
  'url': json['url'],
227
+ 'weeklyDownloads': json['weekly_downloads'],
212
228
  };
213
229
  }
214
230
 
@@ -243,7 +259,9 @@ export function ReleaseResponseToJSONTyped(value?: ReleaseResponse | null, ignor
243
259
  'mirrors': value['mirrors'],
244
260
  'notes': value['notes'],
245
261
  'recovery_img': RecoveryImgResponseToJSON(value['recoveryImg']),
262
+ 'total_downloads': value['totalDownloads'],
246
263
  'url': value['url'],
264
+ 'weekly_downloads': value['weeklyDownloads'],
247
265
  };
248
266
  }
249
267
 
@@ -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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * 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.7
7
+ * The version of the OpenAPI document: 6.0.9
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).