@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.
- package/.openapi-generator/FILES +16 -0
- package/README.md +11 -3
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +1 -1
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +1 -1
- package/dist/apis/ReleaseApi.d.ts +6 -6
- package/dist/apis/ReleaseApi.js +2 -2
- package/dist/apis/ReportApi.d.ts +1 -1
- package/dist/apis/ReportApi.js +1 -1
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +1 -1
- package/dist/apis/UptimeApi.d.ts +59 -0
- package/dist/apis/UptimeApi.js +70 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +1 -1
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +1 -1
- package/dist/esm/apis/ReleaseApi.d.ts +6 -6
- package/dist/esm/apis/ReleaseApi.js +3 -3
- package/dist/esm/apis/ReportApi.d.ts +1 -1
- package/dist/esm/apis/ReportApi.js +1 -1
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +1 -1
- package/dist/esm/apis/UptimeApi.d.ts +59 -0
- package/dist/esm/apis/UptimeApi.js +66 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/DeviceResponse.d.ts +1 -1
- package/dist/esm/models/DeviceResponse.js +1 -1
- package/dist/esm/models/ErrorResponse.d.ts +1 -1
- package/dist/esm/models/ErrorResponse.js +1 -1
- package/dist/esm/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/esm/models/GlobalStatsResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.js +9 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/esm/models/ListResponseString.d.ts +1 -1
- package/dist/esm/models/ListResponseString.js +1 -1
- package/dist/esm/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/esm/models/MaintainerShortResponse.js +1 -1
- package/dist/esm/models/NewReportRequest.d.ts +1 -1
- package/dist/esm/models/NewReportRequest.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteResponse.d.ts +1 -1
- package/dist/esm/models/PasteResponse.js +1 -1
- package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/esm/models/RecoveryImgResponse.js +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
- package/dist/esm/models/ReleaseListResponse.d.ts +29 -0
- package/dist/esm/models/ReleaseListResponse.js +51 -0
- package/dist/esm/models/ReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ReleaseResponse.js +9 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ShortDeviceResponse.js +1 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ShortReleaseResponse.js +1 -1
- package/dist/esm/models/TokenResponse.d.ts +1 -1
- package/dist/esm/models/TokenResponse.js +1 -1
- package/dist/esm/models/UptimeHealth.d.ts +57 -0
- package/dist/esm/models/UptimeHealth.js +60 -0
- package/dist/esm/models/UptimeHealthHost.d.ts +50 -0
- package/dist/esm/models/UptimeHealthHost.js +53 -0
- package/dist/esm/models/UptimeMonitor.d.ts +74 -0
- package/dist/esm/models/UptimeMonitor.js +63 -0
- package/dist/esm/models/UptimeMonitorGroup.d.ts +39 -0
- package/dist/esm/models/UptimeMonitorGroup.js +48 -0
- package/dist/esm/models/UptimeMonitors.d.ts +39 -0
- package/dist/esm/models/UptimeMonitors.js +48 -0
- package/dist/esm/models/UptimeResponse.d.ts +46 -0
- package/dist/esm/models/UptimeResponse.js +49 -0
- package/dist/esm/models/index.d.ts +7 -0
- package/dist/esm/models/index.js +7 -0
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/DeviceResponse.d.ts +1 -1
- package/dist/models/DeviceResponse.js +1 -1
- package/dist/models/ErrorResponse.d.ts +1 -1
- package/dist/models/ErrorResponse.js +1 -1
- package/dist/models/GlobalStatsResponse.d.ts +1 -1
- package/dist/models/GlobalStatsResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseReleaseResponseDataInner.d.ts +13 -1
- package/dist/models/ListResponseReleaseResponseDataInner.js +9 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/models/ListResponseString.d.ts +1 -1
- package/dist/models/ListResponseString.js +1 -1
- package/dist/models/MaintainerShortResponse.d.ts +1 -1
- package/dist/models/MaintainerShortResponse.js +1 -1
- package/dist/models/NewReportRequest.d.ts +1 -1
- package/dist/models/NewReportRequest.js +1 -1
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteResponse.d.ts +1 -1
- package/dist/models/PasteResponse.js +1 -1
- package/dist/models/RecoveryImgResponse.d.ts +1 -1
- package/dist/models/RecoveryImgResponse.js +1 -1
- package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
- package/dist/models/ReleaseGroupsResponse.js +1 -1
- package/dist/models/ReleaseListResponse.d.ts +29 -0
- package/dist/models/ReleaseListResponse.js +57 -0
- package/dist/models/ReleaseResponse.d.ts +13 -1
- package/dist/models/ReleaseResponse.js +9 -1
- package/dist/models/ShortDeviceResponse.d.ts +1 -1
- package/dist/models/ShortDeviceResponse.js +1 -1
- package/dist/models/ShortReleaseResponse.d.ts +1 -1
- package/dist/models/ShortReleaseResponse.js +1 -1
- package/dist/models/TokenResponse.d.ts +1 -1
- package/dist/models/TokenResponse.js +1 -1
- package/dist/models/UptimeHealth.d.ts +57 -0
- package/dist/models/UptimeHealth.js +67 -0
- package/dist/models/UptimeHealthHost.d.ts +50 -0
- package/dist/models/UptimeHealthHost.js +60 -0
- package/dist/models/UptimeMonitor.d.ts +74 -0
- package/dist/models/UptimeMonitor.js +70 -0
- package/dist/models/UptimeMonitorGroup.d.ts +39 -0
- package/dist/models/UptimeMonitorGroup.js +55 -0
- package/dist/models/UptimeMonitors.d.ts +39 -0
- package/dist/models/UptimeMonitors.js +55 -0
- package/dist/models/UptimeResponse.d.ts +46 -0
- package/dist/models/UptimeResponse.js +56 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/ListResponseReleaseResponseDataInner.md +4 -0
- package/docs/ReleaseApi.md +2 -2
- package/docs/ReleaseListResponse.md +37 -0
- package/docs/ReleaseResponse.md +4 -0
- package/docs/UptimeApi.md +69 -0
- package/docs/UptimeHealth.md +43 -0
- package/docs/UptimeHealthHost.md +41 -0
- package/docs/UptimeMonitor.md +49 -0
- package/docs/UptimeMonitorGroup.md +37 -0
- package/docs/UptimeMonitors.md +37 -0
- package/docs/UptimeResponse.md +39 -0
- package/package.json +1 -1
- package/src/apis/DeviceApi.ts +1 -1
- package/src/apis/PasteApi.ts +1 -1
- package/src/apis/ReleaseApi.ts +9 -6
- package/src/apis/ReportApi.ts +1 -1
- package/src/apis/StatsApi.ts +1 -1
- package/src/apis/UptimeApi.ts +103 -0
- package/src/apis/index.ts +1 -0
- package/src/models/DeviceResponse.ts +1 -1
- package/src/models/ErrorResponse.ts +1 -1
- package/src/models/GlobalStatsResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseReleaseResponseDataInner.ts +19 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
- package/src/models/ListResponseString.ts +1 -1
- package/src/models/MaintainerShortResponse.ts +1 -1
- package/src/models/NewReportRequest.ts +1 -1
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteResponse.ts +1 -1
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseListResponse.ts +82 -0
- package/src/models/ReleaseResponse.ts +19 -1
- package/src/models/ShortDeviceResponse.ts +1 -1
- package/src/models/ShortReleaseResponse.ts +1 -1
- package/src/models/TokenResponse.ts +1 -1
- package/src/models/UptimeHealth.ts +110 -0
- package/src/models/UptimeHealthHost.ts +92 -0
- package/src/models/UptimeMonitor.ts +125 -0
- package/src/models/UptimeMonitorGroup.ts +83 -0
- package/src/models/UptimeMonitors.ts +83 -0
- package/src/models/UptimeResponse.ts +97 -0
- package/src/models/index.ts +7 -0
- package/src/runtime.ts +1 -1
package/dist/models/index.d.ts
CHANGED
|
@@ -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';
|
package/dist/models/index.js
CHANGED
|
@@ -30,7 +30,14 @@ __exportStar(require("./PasteInput"), exports);
|
|
|
30
30
|
__exportStar(require("./PasteResponse"), exports);
|
|
31
31
|
__exportStar(require("./RecoveryImgResponse"), exports);
|
|
32
32
|
__exportStar(require("./ReleaseGroupsResponse"), exports);
|
|
33
|
+
__exportStar(require("./ReleaseListResponse"), exports);
|
|
33
34
|
__exportStar(require("./ReleaseResponse"), exports);
|
|
34
35
|
__exportStar(require("./ShortDeviceResponse"), exports);
|
|
35
36
|
__exportStar(require("./ShortReleaseResponse"), exports);
|
|
36
37
|
__exportStar(require("./TokenResponse"), exports);
|
|
38
|
+
__exportStar(require("./UptimeHealth"), exports);
|
|
39
|
+
__exportStar(require("./UptimeHealthHost"), exports);
|
|
40
|
+
__exportStar(require("./UptimeMonitor"), exports);
|
|
41
|
+
__exportStar(require("./UptimeMonitorGroup"), exports);
|
|
42
|
+
__exportStar(require("./UptimeMonitors"), exports);
|
|
43
|
+
__exportStar(require("./UptimeResponse"), exports);
|
package/dist/runtime.d.ts
CHANGED
|
@@ -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.
|
|
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).
|
package/dist/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Fox API
|
|
6
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
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 6.0.
|
|
8
|
+
* The version of the OpenAPI document: 6.0.8
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,7 +26,9 @@ Name | Type
|
|
|
26
26
|
`mirrors` | { [key: string]: string; }
|
|
27
27
|
`notes` | string
|
|
28
28
|
`recoveryImg` | [RecoveryImgResponse](RecoveryImgResponse.md)
|
|
29
|
+
`totalDownloads` | number
|
|
29
30
|
`url` | string
|
|
31
|
+
`weeklyDownloads` | number
|
|
30
32
|
|
|
31
33
|
## Example
|
|
32
34
|
|
|
@@ -55,7 +57,9 @@ const example = {
|
|
|
55
57
|
"mirrors": null,
|
|
56
58
|
"notes": null,
|
|
57
59
|
"recoveryImg": null,
|
|
60
|
+
"totalDownloads": null,
|
|
58
61
|
"url": null,
|
|
62
|
+
"weeklyDownloads": null,
|
|
59
63
|
} satisfies ListResponseReleaseResponseDataInner
|
|
60
64
|
|
|
61
65
|
console.log(example)
|
package/docs/ReleaseApi.md
CHANGED
|
@@ -300,7 +300,7 @@ No authorization required
|
|
|
300
300
|
|
|
301
301
|
## listReleases
|
|
302
302
|
|
|
303
|
-
>
|
|
303
|
+
> ReleaseListResponse listReleases(id, id2, buildId, deviceId, maintainerId, codename, version, type, archived, freezed, afterReleaseId, afterDate, sort, group, skip, limit)
|
|
304
304
|
|
|
305
305
|
GET /releases/ - List releases with filters.
|
|
306
306
|
|
|
@@ -388,7 +388,7 @@ example().catch(console.error);
|
|
|
388
388
|
|
|
389
389
|
### Return type
|
|
390
390
|
|
|
391
|
-
[**
|
|
391
|
+
[**ReleaseListResponse**](ReleaseListResponse.md)
|
|
392
392
|
|
|
393
393
|
### Authorization
|
|
394
394
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# ReleaseListResponse
|
|
3
|
+
|
|
4
|
+
Response body for `GET /releases`. The shape of `data` depends on the `group` query parameter: a flat list by default (`ListResponse`), or a version-keyed map when `group=true` (`ReleaseGroupsResponse`). Modeled as an untagged `oneOf` so generated clients deserialize both shapes instead of assuming `data` is always an array (which made them call `.map` on the grouped object and throw).
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`count` | number
|
|
11
|
+
`data` | { [key: string]: Array<ReleaseResponse>; }
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ReleaseListResponse } from '@orangefox-recovery/foxclient'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"count": null,
|
|
21
|
+
"data": null,
|
|
22
|
+
} satisfies ReleaseListResponse
|
|
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 ReleaseListResponse
|
|
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
|
+
|
package/docs/ReleaseResponse.md
CHANGED
|
@@ -26,7 +26,9 @@ Name | Type
|
|
|
26
26
|
`mirrors` | { [key: string]: string; }
|
|
27
27
|
`notes` | string
|
|
28
28
|
`recoveryImg` | [RecoveryImgResponse](RecoveryImgResponse.md)
|
|
29
|
+
`totalDownloads` | number
|
|
29
30
|
`url` | string
|
|
31
|
+
`weeklyDownloads` | number
|
|
30
32
|
|
|
31
33
|
## Example
|
|
32
34
|
|
|
@@ -55,7 +57,9 @@ const example = {
|
|
|
55
57
|
"mirrors": null,
|
|
56
58
|
"notes": null,
|
|
57
59
|
"recoveryImg": null,
|
|
60
|
+
"totalDownloads": null,
|
|
58
61
|
"url": null,
|
|
62
|
+
"weeklyDownloads": null,
|
|
59
63
|
} satisfies ReleaseResponse
|
|
60
64
|
|
|
61
65
|
console.log(example)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# UptimeApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getUptime**](UptimeApi.md#getuptime) | **GET** /uptime | GET /uptime - Aggregated public infrastructure status. |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getUptime
|
|
12
|
+
|
|
13
|
+
> UptimeResponse getUptime()
|
|
14
|
+
|
|
15
|
+
GET /uptime - Aggregated public infrastructure status.
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
UptimeApi,
|
|
25
|
+
} from '@orangefox-recovery/foxclient';
|
|
26
|
+
import type { GetUptimeRequest } from '@orangefox-recovery/foxclient';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
30
|
+
const api = new UptimeApi();
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
const data = await api.getUptime();
|
|
34
|
+
console.log(data);
|
|
35
|
+
} catch (error) {
|
|
36
|
+
console.error(error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Run the test
|
|
41
|
+
example().catch(console.error);
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Parameters
|
|
45
|
+
|
|
46
|
+
This endpoint does not need any parameter.
|
|
47
|
+
|
|
48
|
+
### Return type
|
|
49
|
+
|
|
50
|
+
[**UptimeResponse**](UptimeResponse.md)
|
|
51
|
+
|
|
52
|
+
### Authorization
|
|
53
|
+
|
|
54
|
+
No authorization required
|
|
55
|
+
|
|
56
|
+
### HTTP request headers
|
|
57
|
+
|
|
58
|
+
- **Content-Type**: Not defined
|
|
59
|
+
- **Accept**: `application/json`
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### HTTP response details
|
|
63
|
+
| Status code | Description | Response headers |
|
|
64
|
+
|-------------|-------------|------------------|
|
|
65
|
+
| **200** | Aggregated infrastructure status | - |
|
|
66
|
+
| **502** | All upstream status sources unavailable | - |
|
|
67
|
+
|
|
68
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
69
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# UptimeHealth
|
|
3
|
+
|
|
4
|
+
FoxHealth summary (without internal endpoint addresses).
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`allUp` | boolean
|
|
11
|
+
`hosts` | [Array<UptimeHealthHost>](UptimeHealthHost.md)
|
|
12
|
+
`requiredUp` | boolean
|
|
13
|
+
`role` | string
|
|
14
|
+
`status` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { UptimeHealth } from '@orangefox-recovery/foxclient'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"allUp": null,
|
|
24
|
+
"hosts": null,
|
|
25
|
+
"requiredUp": null,
|
|
26
|
+
"role": null,
|
|
27
|
+
"status": null,
|
|
28
|
+
} satisfies UptimeHealth
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as UptimeHealth
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# UptimeHealthHost
|
|
3
|
+
|
|
4
|
+
A single FoxHealth host (the internal endpoint is intentionally omitted).
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`errorText` | string
|
|
11
|
+
`isOk` | boolean
|
|
12
|
+
`isOptional` | boolean
|
|
13
|
+
`nickname` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { UptimeHealthHost } from '@orangefox-recovery/foxclient'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"errorText": null,
|
|
23
|
+
"isOk": null,
|
|
24
|
+
"isOptional": null,
|
|
25
|
+
"nickname": null,
|
|
26
|
+
} satisfies UptimeHealthHost
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as UptimeHealthHost
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -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
package/src/apis/DeviceApi.ts
CHANGED
|
@@ -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
|
+
* 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).
|
package/src/apis/PasteApi.ts
CHANGED
|
@@ -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
|
+
* 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).
|
package/src/apis/ReleaseApi.ts
CHANGED
|
@@ -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
|
+
* 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).
|
|
@@ -17,6 +17,7 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
ErrorResponse,
|
|
19
19
|
ListResponseReleaseResponse,
|
|
20
|
+
ReleaseListResponse,
|
|
20
21
|
ReleaseResponse,
|
|
21
22
|
} from '../models/index';
|
|
22
23
|
import {
|
|
@@ -24,6 +25,8 @@ import {
|
|
|
24
25
|
ErrorResponseToJSON,
|
|
25
26
|
ListResponseReleaseResponseFromJSON,
|
|
26
27
|
ListResponseReleaseResponseToJSON,
|
|
28
|
+
ReleaseListResponseFromJSON,
|
|
29
|
+
ReleaseListResponseToJSON,
|
|
27
30
|
ReleaseResponseFromJSON,
|
|
28
31
|
ReleaseResponseToJSON,
|
|
29
32
|
} from '../models/index';
|
|
@@ -219,12 +222,12 @@ export interface ReleaseApiInterface {
|
|
|
219
222
|
* @throws {RequiredError}
|
|
220
223
|
* @memberof ReleaseApiInterface
|
|
221
224
|
*/
|
|
222
|
-
listReleasesRaw(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
225
|
+
listReleasesRaw(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReleaseListResponse>>;
|
|
223
226
|
|
|
224
227
|
/**
|
|
225
228
|
* GET /releases/ - List releases with filters.
|
|
226
229
|
*/
|
|
227
|
-
listReleases(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
230
|
+
listReleases(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReleaseListResponse>;
|
|
228
231
|
|
|
229
232
|
}
|
|
230
233
|
|
|
@@ -510,17 +513,17 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
510
513
|
/**
|
|
511
514
|
* GET /releases/ - List releases with filters.
|
|
512
515
|
*/
|
|
513
|
-
async listReleasesRaw(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
516
|
+
async listReleasesRaw(requestParameters: ListReleasesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ReleaseListResponse>> {
|
|
514
517
|
const requestOptions = await this.listReleasesRequestOpts(requestParameters);
|
|
515
518
|
const response = await this.request(requestOptions, initOverrides);
|
|
516
519
|
|
|
517
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
520
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ReleaseListResponseFromJSON(jsonValue));
|
|
518
521
|
}
|
|
519
522
|
|
|
520
523
|
/**
|
|
521
524
|
* GET /releases/ - List releases with filters.
|
|
522
525
|
*/
|
|
523
|
-
async listReleases(requestParameters: ListReleasesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
526
|
+
async listReleases(requestParameters: ListReleasesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ReleaseListResponse> {
|
|
524
527
|
const response = await this.listReleasesRaw(requestParameters, initOverrides);
|
|
525
528
|
return await response.value();
|
|
526
529
|
}
|
package/src/apis/ReportApi.ts
CHANGED
|
@@ -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
|
+
* 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).
|
package/src/apis/StatsApi.ts
CHANGED
|
@@ -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
|
+
* 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).
|