@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
@@ -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,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeHealth = instanceOfUptimeHealth;
17
+ exports.UptimeHealthFromJSON = UptimeHealthFromJSON;
18
+ exports.UptimeHealthFromJSONTyped = UptimeHealthFromJSONTyped;
19
+ exports.UptimeHealthToJSON = UptimeHealthToJSON;
20
+ exports.UptimeHealthToJSONTyped = UptimeHealthToJSONTyped;
21
+ const UptimeHealthHost_1 = require("./UptimeHealthHost");
22
+ /**
23
+ * Check if a given object implements the UptimeHealth interface.
24
+ */
25
+ function instanceOfUptimeHealth(value) {
26
+ if (!('allUp' in value) || value['allUp'] === undefined)
27
+ return false;
28
+ if (!('hosts' in value) || value['hosts'] === undefined)
29
+ return false;
30
+ if (!('requiredUp' in value) || value['requiredUp'] === undefined)
31
+ return false;
32
+ if (!('role' in value) || value['role'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function UptimeHealthFromJSON(json) {
39
+ return UptimeHealthFromJSONTyped(json, false);
40
+ }
41
+ function UptimeHealthFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'allUp': json['allUp'],
47
+ 'hosts': (json['hosts'].map(UptimeHealthHost_1.UptimeHealthHostFromJSON)),
48
+ 'requiredUp': json['requiredUp'],
49
+ 'role': json['role'],
50
+ 'status': json['status'],
51
+ };
52
+ }
53
+ function UptimeHealthToJSON(json) {
54
+ return UptimeHealthToJSONTyped(json, false);
55
+ }
56
+ function UptimeHealthToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'allUp': value['allUp'],
62
+ 'hosts': (value['hosts'].map(UptimeHealthHost_1.UptimeHealthHostToJSON)),
63
+ 'requiredUp': value['requiredUp'],
64
+ 'role': value['role'],
65
+ 'status': value['status'],
66
+ };
67
+ }
@@ -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,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeHealthHost = instanceOfUptimeHealthHost;
17
+ exports.UptimeHealthHostFromJSON = UptimeHealthHostFromJSON;
18
+ exports.UptimeHealthHostFromJSONTyped = UptimeHealthHostFromJSONTyped;
19
+ exports.UptimeHealthHostToJSON = UptimeHealthHostToJSON;
20
+ exports.UptimeHealthHostToJSONTyped = UptimeHealthHostToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UptimeHealthHost interface.
23
+ */
24
+ function instanceOfUptimeHealthHost(value) {
25
+ if (!('isOk' in value) || value['isOk'] === undefined)
26
+ return false;
27
+ if (!('isOptional' in value) || value['isOptional'] === undefined)
28
+ return false;
29
+ if (!('nickname' in value) || value['nickname'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function UptimeHealthHostFromJSON(json) {
34
+ return UptimeHealthHostFromJSONTyped(json, false);
35
+ }
36
+ function UptimeHealthHostFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'errorText': json['errorText'] == null ? undefined : json['errorText'],
42
+ 'isOk': json['isOk'],
43
+ 'isOptional': json['isOptional'],
44
+ 'nickname': json['nickname'],
45
+ };
46
+ }
47
+ function UptimeHealthHostToJSON(json) {
48
+ return UptimeHealthHostToJSONTyped(json, false);
49
+ }
50
+ function UptimeHealthHostToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'errorText': value['errorText'],
56
+ 'isOk': value['isOk'],
57
+ 'isOptional': value['isOptional'],
58
+ 'nickname': value['nickname'],
59
+ };
60
+ }
@@ -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,70 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeMonitor = instanceOfUptimeMonitor;
17
+ exports.UptimeMonitorFromJSON = UptimeMonitorFromJSON;
18
+ exports.UptimeMonitorFromJSONTyped = UptimeMonitorFromJSONTyped;
19
+ exports.UptimeMonitorToJSON = UptimeMonitorToJSON;
20
+ exports.UptimeMonitorToJSONTyped = UptimeMonitorToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UptimeMonitor interface.
23
+ */
24
+ function instanceOfUptimeMonitor(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('type' in value) || value['type'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function UptimeMonitorFromJSON(json) {
36
+ return UptimeMonitorFromJSONTyped(json, false);
37
+ }
38
+ function UptimeMonitorFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'lastHeartbeat': json['lastHeartbeat'] == null ? undefined : json['lastHeartbeat'],
45
+ 'name': json['name'],
46
+ 'ping': json['ping'] == null ? undefined : json['ping'],
47
+ 'status': json['status'],
48
+ 'type': json['type'],
49
+ 'uptime24h': json['uptime24h'] == null ? undefined : json['uptime24h'],
50
+ 'url': json['url'] == null ? undefined : json['url'],
51
+ };
52
+ }
53
+ function UptimeMonitorToJSON(json) {
54
+ return UptimeMonitorToJSONTyped(json, false);
55
+ }
56
+ function UptimeMonitorToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'id': value['id'],
62
+ 'lastHeartbeat': value['lastHeartbeat'],
63
+ 'name': value['name'],
64
+ 'ping': value['ping'],
65
+ 'status': value['status'],
66
+ 'type': value['type'],
67
+ 'uptime24h': value['uptime24h'],
68
+ 'url': value['url'],
69
+ };
70
+ }
@@ -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,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeMonitorGroup = instanceOfUptimeMonitorGroup;
17
+ exports.UptimeMonitorGroupFromJSON = UptimeMonitorGroupFromJSON;
18
+ exports.UptimeMonitorGroupFromJSONTyped = UptimeMonitorGroupFromJSONTyped;
19
+ exports.UptimeMonitorGroupToJSON = UptimeMonitorGroupToJSON;
20
+ exports.UptimeMonitorGroupToJSONTyped = UptimeMonitorGroupToJSONTyped;
21
+ const UptimeMonitor_1 = require("./UptimeMonitor");
22
+ /**
23
+ * Check if a given object implements the UptimeMonitorGroup interface.
24
+ */
25
+ function instanceOfUptimeMonitorGroup(value) {
26
+ if (!('monitors' in value) || value['monitors'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function UptimeMonitorGroupFromJSON(json) {
33
+ return UptimeMonitorGroupFromJSONTyped(json, false);
34
+ }
35
+ function UptimeMonitorGroupFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'monitors': (json['monitors'].map(UptimeMonitor_1.UptimeMonitorFromJSON)),
41
+ 'name': json['name'],
42
+ };
43
+ }
44
+ function UptimeMonitorGroupToJSON(json) {
45
+ return UptimeMonitorGroupToJSONTyped(json, false);
46
+ }
47
+ function UptimeMonitorGroupToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'monitors': (value['monitors'].map(UptimeMonitor_1.UptimeMonitorToJSON)),
53
+ 'name': value['name'],
54
+ };
55
+ }
@@ -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,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeMonitors = instanceOfUptimeMonitors;
17
+ exports.UptimeMonitorsFromJSON = UptimeMonitorsFromJSON;
18
+ exports.UptimeMonitorsFromJSONTyped = UptimeMonitorsFromJSONTyped;
19
+ exports.UptimeMonitorsToJSON = UptimeMonitorsToJSON;
20
+ exports.UptimeMonitorsToJSONTyped = UptimeMonitorsToJSONTyped;
21
+ const UptimeMonitorGroup_1 = require("./UptimeMonitorGroup");
22
+ /**
23
+ * Check if a given object implements the UptimeMonitors interface.
24
+ */
25
+ function instanceOfUptimeMonitors(value) {
26
+ if (!('groups' in value) || value['groups'] === undefined)
27
+ return false;
28
+ if (!('title' in value) || value['title'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function UptimeMonitorsFromJSON(json) {
33
+ return UptimeMonitorsFromJSONTyped(json, false);
34
+ }
35
+ function UptimeMonitorsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'groups': (json['groups'].map(UptimeMonitorGroup_1.UptimeMonitorGroupFromJSON)),
41
+ 'title': json['title'],
42
+ };
43
+ }
44
+ function UptimeMonitorsToJSON(json) {
45
+ return UptimeMonitorsToJSONTyped(json, false);
46
+ }
47
+ function UptimeMonitorsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'groups': (value['groups'].map(UptimeMonitorGroup_1.UptimeMonitorGroupToJSON)),
53
+ 'title': value['title'],
54
+ };
55
+ }
@@ -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,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fox API
6
+ * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
+ *
8
+ * The version of the OpenAPI document: 6.0.8
9
+ * Contact: admin@orangefox.tech
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUptimeResponse = instanceOfUptimeResponse;
17
+ exports.UptimeResponseFromJSON = UptimeResponseFromJSON;
18
+ exports.UptimeResponseFromJSONTyped = UptimeResponseFromJSONTyped;
19
+ exports.UptimeResponseToJSON = UptimeResponseToJSON;
20
+ exports.UptimeResponseToJSONTyped = UptimeResponseToJSONTyped;
21
+ const UptimeHealth_1 = require("./UptimeHealth");
22
+ const UptimeMonitors_1 = require("./UptimeMonitors");
23
+ /**
24
+ * Check if a given object implements the UptimeResponse interface.
25
+ */
26
+ function instanceOfUptimeResponse(value) {
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function UptimeResponseFromJSON(json) {
32
+ return UptimeResponseFromJSONTyped(json, false);
33
+ }
34
+ function UptimeResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'health': json['health'] == null ? undefined : (0, UptimeHealth_1.UptimeHealthFromJSON)(json['health']),
40
+ 'monitors': json['monitors'] == null ? undefined : (0, UptimeMonitors_1.UptimeMonitorsFromJSON)(json['monitors']),
41
+ 'status': json['status'],
42
+ };
43
+ }
44
+ function UptimeResponseToJSON(json) {
45
+ return UptimeResponseToJSONTyped(json, false);
46
+ }
47
+ function UptimeResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'health': (0, UptimeHealth_1.UptimeHealthToJSON)(value['health']),
53
+ 'monitors': (0, UptimeMonitors_1.UptimeMonitorsToJSON)(value['monitors']),
54
+ 'status': value['status'],
55
+ };
56
+ }