@orangefox-recovery/foxclient 6.0.10 → 6.1.1
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 +18 -0
- package/README.md +16 -3
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +35 -2
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +35 -2
- package/dist/apis/ReleaseApi.d.ts +5 -5
- package/dist/apis/ReleaseApi.js +35 -2
- package/dist/apis/ReportApi.d.ts +1 -1
- package/dist/apis/ReportApi.js +35 -2
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +35 -2
- package/dist/apis/UptimeApi.d.ts +1 -1
- package/dist/apis/UptimeApi.js +35 -2
- package/dist/apis/WikiApi.d.ts +219 -0
- package/dist/apis/WikiApi.js +278 -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 +5 -5
- package/dist/esm/apis/ReleaseApi.js +1 -1
- 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 +1 -1
- package/dist/esm/apis/UptimeApi.js +1 -1
- package/dist/esm/apis/WikiApi.d.ts +219 -0
- package/dist/esm/apis/WikiApi.js +241 -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 +12 -2
- package/dist/esm/models/ListResponseReleaseResponse.js +5 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponseDataInner.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +12 -2
- package/dist/esm/models/ListResponseShortDeviceResponse.js +5 -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 +12 -2
- package/dist/esm/models/ListResponseString.js +5 -1
- package/dist/esm/models/ListResponseWikiPageShortResponse.d.ts +49 -0
- package/dist/esm/models/ListResponseWikiPageShortResponse.js +52 -0
- package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
- package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.js +81 -0
- package/dist/esm/models/ListResponseWikiSiteResponse.d.ts +49 -0
- package/dist/esm/models/ListResponseWikiSiteResponse.js +52 -0
- package/dist/esm/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
- package/dist/esm/models/ListResponseWikiSiteResponseDataInner.js +65 -0
- 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 +15 -1
- package/dist/esm/models/ReleaseGroupsResponse.js +5 -1
- package/dist/esm/models/ReleaseListResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseListResponse.js +1 -1
- package/dist/esm/models/ReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ReleaseResponse.js +1 -1
- package/dist/esm/models/ReleaseSort.d.ts +31 -0
- package/dist/esm/models/ReleaseSort.js +49 -0
- 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 +1 -1
- package/dist/esm/models/UptimeHealth.js +1 -1
- package/dist/esm/models/UptimeHealthHost.d.ts +1 -1
- package/dist/esm/models/UptimeHealthHost.js +1 -1
- package/dist/esm/models/UptimeMonitor.d.ts +1 -1
- package/dist/esm/models/UptimeMonitor.js +1 -1
- package/dist/esm/models/UptimeMonitorGroup.d.ts +1 -1
- package/dist/esm/models/UptimeMonitorGroup.js +1 -1
- package/dist/esm/models/UptimeMonitors.d.ts +1 -1
- package/dist/esm/models/UptimeMonitors.js +1 -1
- package/dist/esm/models/UptimeResponse.d.ts +1 -1
- package/dist/esm/models/UptimeResponse.js +1 -1
- package/dist/esm/models/WikiPageResponse.d.ts +128 -0
- package/dist/esm/models/WikiPageResponse.js +97 -0
- package/dist/esm/models/WikiPageShortResponse.d.ts +99 -0
- package/dist/esm/models/WikiPageShortResponse.js +81 -0
- package/dist/esm/models/WikiSiteResponse.d.ts +74 -0
- package/dist/esm/models/WikiSiteResponse.js +65 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -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 +12 -2
- package/dist/models/ListResponseReleaseResponse.js +5 -1
- package/dist/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponseDataInner.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +12 -2
- package/dist/models/ListResponseShortDeviceResponse.js +5 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
- package/dist/models/ListResponseString.d.ts +12 -2
- package/dist/models/ListResponseString.js +5 -1
- package/dist/models/ListResponseWikiPageShortResponse.d.ts +49 -0
- package/dist/models/ListResponseWikiPageShortResponse.js +59 -0
- package/dist/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
- package/dist/models/ListResponseWikiPageShortResponseDataInner.js +88 -0
- package/dist/models/ListResponseWikiSiteResponse.d.ts +49 -0
- package/dist/models/ListResponseWikiSiteResponse.js +59 -0
- package/dist/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
- package/dist/models/ListResponseWikiSiteResponseDataInner.js +72 -0
- 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 +15 -1
- package/dist/models/ReleaseGroupsResponse.js +5 -1
- package/dist/models/ReleaseListResponse.d.ts +1 -1
- package/dist/models/ReleaseListResponse.js +1 -1
- package/dist/models/ReleaseResponse.d.ts +1 -1
- package/dist/models/ReleaseResponse.js +1 -1
- package/dist/models/ReleaseSort.d.ts +31 -0
- package/dist/models/ReleaseSort.js +57 -0
- 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 +1 -1
- package/dist/models/UptimeHealth.js +1 -1
- package/dist/models/UptimeHealthHost.d.ts +1 -1
- package/dist/models/UptimeHealthHost.js +1 -1
- package/dist/models/UptimeMonitor.d.ts +1 -1
- package/dist/models/UptimeMonitor.js +1 -1
- package/dist/models/UptimeMonitorGroup.d.ts +1 -1
- package/dist/models/UptimeMonitorGroup.js +1 -1
- package/dist/models/UptimeMonitors.d.ts +1 -1
- package/dist/models/UptimeMonitors.js +1 -1
- package/dist/models/UptimeResponse.d.ts +1 -1
- package/dist/models/UptimeResponse.js +1 -1
- package/dist/models/WikiPageResponse.d.ts +128 -0
- package/dist/models/WikiPageResponse.js +104 -0
- package/dist/models/WikiPageShortResponse.d.ts +99 -0
- package/dist/models/WikiPageShortResponse.js +88 -0
- package/dist/models/WikiSiteResponse.d.ts +74 -0
- package/dist/models/WikiSiteResponse.js +72 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/ListResponseReleaseResponse.md +2 -0
- package/docs/ListResponseShortDeviceResponse.md +2 -0
- package/docs/ListResponseString.md +2 -0
- package/docs/ListResponseWikiPageShortResponse.md +38 -0
- package/docs/ListResponseWikiPageShortResponseDataInner.md +57 -0
- package/docs/ListResponseWikiSiteResponse.md +38 -0
- package/docs/ListResponseWikiSiteResponseDataInner.md +48 -0
- package/docs/ReleaseApi.md +3 -3
- package/docs/ReleaseGroupsResponse.md +3 -0
- package/docs/ReleaseListResponse.md +2 -0
- package/docs/ReleaseSort.md +33 -0
- package/docs/WikiApi.md +360 -0
- package/docs/WikiPageResponse.md +66 -0
- package/docs/WikiPageShortResponse.md +57 -0
- package/docs/WikiSiteResponse.md +48 -0
- package/package.json +2 -2
- package/src/apis/DeviceApi.ts +1 -1
- package/src/apis/PasteApi.ts +1 -1
- package/src/apis/ReleaseApi.ts +7 -4
- package/src/apis/ReportApi.ts +1 -1
- package/src/apis/StatsApi.ts +1 -1
- package/src/apis/UptimeApi.ts +1 -1
- package/src/apis/WikiApi.ts +452 -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 +15 -2
- package/src/models/ListResponseReleaseResponseDataInner.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +15 -2
- package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
- package/src/models/ListResponseString.ts +15 -2
- package/src/models/ListResponseWikiPageShortResponse.ts +96 -0
- package/src/models/ListResponseWikiPageShortResponseDataInner.ts +163 -0
- package/src/models/ListResponseWikiSiteResponse.ts +96 -0
- package/src/models/ListResponseWikiSiteResponseDataInner.ts +126 -0
- 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 +18 -1
- package/src/models/ReleaseListResponse.ts +1 -1
- package/src/models/ReleaseResponse.ts +1 -1
- package/src/models/ReleaseSort.ts +59 -0
- 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 +1 -1
- package/src/models/UptimeHealthHost.ts +1 -1
- package/src/models/UptimeMonitor.ts +1 -1
- package/src/models/UptimeMonitorGroup.ts +1 -1
- package/src/models/UptimeMonitors.ts +1 -1
- package/src/models/UptimeResponse.ts +1 -1
- package/src/models/WikiPageResponse.ts +205 -0
- package/src/models/WikiPageShortResponse.ts +163 -0
- package/src/models/WikiSiteResponse.ts +126 -0
- package/src/models/index.ts +8 -0
- package/src/runtime.ts +1 -1
- package/tsconfig.esm.json +2 -1
- package/tsconfig.json +4 -3
package/docs/WikiApi.md
ADDED
|
@@ -0,0 +1,360 @@
|
|
|
1
|
+
# WikiApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getAsset**](WikiApi.md#getasset) | **GET** /wiki/{site}/assets/{path} | GET /wiki/{site}/assets/{path} - Serve asset bytes. |
|
|
8
|
+
| [**getPage**](WikiApi.md#getpage) | **GET** /wiki/{site}/pages/{path} | GET /wiki/{site}/pages/{path} - Fetch one published page. |
|
|
9
|
+
| [**getSite**](WikiApi.md#getsite) | **GET** /wiki/sites/{slug} | GET /wiki/sites/{slug} - Fetch one wiki site. |
|
|
10
|
+
| [**listPages**](WikiApi.md#listpages) | **GET** /wiki/{site}/pages | GET /wiki/{site}/pages - List every published page in a site. |
|
|
11
|
+
| [**listSites**](WikiApi.md#listsites) | **GET** /wiki/sites | GET /wiki/sites - List wiki sites. |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## getAsset
|
|
16
|
+
|
|
17
|
+
> getAsset(site, path)
|
|
18
|
+
|
|
19
|
+
GET /wiki/{site}/assets/{path} - Serve asset bytes.
|
|
20
|
+
|
|
21
|
+
### Example
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
import {
|
|
25
|
+
Configuration,
|
|
26
|
+
WikiApi,
|
|
27
|
+
} from '@orangefox-recovery/foxclient';
|
|
28
|
+
import type { GetAssetRequest } from '@orangefox-recovery/foxclient';
|
|
29
|
+
|
|
30
|
+
async function example() {
|
|
31
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
32
|
+
const api = new WikiApi();
|
|
33
|
+
|
|
34
|
+
const body = {
|
|
35
|
+
// string | Site slug
|
|
36
|
+
site: site_example,
|
|
37
|
+
// string | Asset path, e.g. images/waving.png
|
|
38
|
+
path: path_example,
|
|
39
|
+
} satisfies GetAssetRequest;
|
|
40
|
+
|
|
41
|
+
try {
|
|
42
|
+
const data = await api.getAsset(body);
|
|
43
|
+
console.log(data);
|
|
44
|
+
} catch (error) {
|
|
45
|
+
console.error(error);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Run the test
|
|
50
|
+
example().catch(console.error);
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Parameters
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| Name | Type | Description | Notes |
|
|
57
|
+
|------------- | ------------- | ------------- | -------------|
|
|
58
|
+
| **site** | `string` | Site slug | [Defaults to `undefined`] |
|
|
59
|
+
| **path** | `string` | Asset path, e.g. images/waving.png | [Defaults to `undefined`] |
|
|
60
|
+
|
|
61
|
+
### Return type
|
|
62
|
+
|
|
63
|
+
`void` (Empty response body)
|
|
64
|
+
|
|
65
|
+
### Authorization
|
|
66
|
+
|
|
67
|
+
No authorization required
|
|
68
|
+
|
|
69
|
+
### HTTP request headers
|
|
70
|
+
|
|
71
|
+
- **Content-Type**: Not defined
|
|
72
|
+
- **Accept**: `*/*`, `application/json`
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
### HTTP response details
|
|
76
|
+
| Status code | Description | Response headers |
|
|
77
|
+
|-------------|-------------|------------------|
|
|
78
|
+
| **200** | Asset bytes | - |
|
|
79
|
+
| **304** | Not modified | - |
|
|
80
|
+
| **404** | Not found | - |
|
|
81
|
+
|
|
82
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
## getPage
|
|
86
|
+
|
|
87
|
+
> WikiPageResponse getPage(site, path)
|
|
88
|
+
|
|
89
|
+
GET /wiki/{site}/pages/{path} - Fetch one published page.
|
|
90
|
+
|
|
91
|
+
### Example
|
|
92
|
+
|
|
93
|
+
```ts
|
|
94
|
+
import {
|
|
95
|
+
Configuration,
|
|
96
|
+
WikiApi,
|
|
97
|
+
} from '@orangefox-recovery/foxclient';
|
|
98
|
+
import type { GetPageRequest } from '@orangefox-recovery/foxclient';
|
|
99
|
+
|
|
100
|
+
async function example() {
|
|
101
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
102
|
+
const api = new WikiApi();
|
|
103
|
+
|
|
104
|
+
const body = {
|
|
105
|
+
// string | Site slug
|
|
106
|
+
site: site_example,
|
|
107
|
+
// string | Page path, e.g. Installation/Windows
|
|
108
|
+
path: path_example,
|
|
109
|
+
} satisfies GetPageRequest;
|
|
110
|
+
|
|
111
|
+
try {
|
|
112
|
+
const data = await api.getPage(body);
|
|
113
|
+
console.log(data);
|
|
114
|
+
} catch (error) {
|
|
115
|
+
console.error(error);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Run the test
|
|
120
|
+
example().catch(console.error);
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Parameters
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
| Name | Type | Description | Notes |
|
|
127
|
+
|------------- | ------------- | ------------- | -------------|
|
|
128
|
+
| **site** | `string` | Site slug | [Defaults to `undefined`] |
|
|
129
|
+
| **path** | `string` | Page path, e.g. Installation/Windows | [Defaults to `undefined`] |
|
|
130
|
+
|
|
131
|
+
### Return type
|
|
132
|
+
|
|
133
|
+
[**WikiPageResponse**](WikiPageResponse.md)
|
|
134
|
+
|
|
135
|
+
### Authorization
|
|
136
|
+
|
|
137
|
+
No authorization required
|
|
138
|
+
|
|
139
|
+
### HTTP request headers
|
|
140
|
+
|
|
141
|
+
- **Content-Type**: Not defined
|
|
142
|
+
- **Accept**: `application/json`
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### HTTP response details
|
|
146
|
+
| Status code | Description | Response headers |
|
|
147
|
+
|-------------|-------------|------------------|
|
|
148
|
+
| **200** | Wiki page | - |
|
|
149
|
+
| **404** | Not found | - |
|
|
150
|
+
|
|
151
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## getSite
|
|
155
|
+
|
|
156
|
+
> WikiSiteResponse getSite(slug)
|
|
157
|
+
|
|
158
|
+
GET /wiki/sites/{slug} - Fetch one wiki site.
|
|
159
|
+
|
|
160
|
+
### Example
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
import {
|
|
164
|
+
Configuration,
|
|
165
|
+
WikiApi,
|
|
166
|
+
} from '@orangefox-recovery/foxclient';
|
|
167
|
+
import type { GetSiteRequest } from '@orangefox-recovery/foxclient';
|
|
168
|
+
|
|
169
|
+
async function example() {
|
|
170
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
171
|
+
const api = new WikiApi();
|
|
172
|
+
|
|
173
|
+
const body = {
|
|
174
|
+
// string | Site slug
|
|
175
|
+
slug: slug_example,
|
|
176
|
+
} satisfies GetSiteRequest;
|
|
177
|
+
|
|
178
|
+
try {
|
|
179
|
+
const data = await api.getSite(body);
|
|
180
|
+
console.log(data);
|
|
181
|
+
} catch (error) {
|
|
182
|
+
console.error(error);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
// Run the test
|
|
187
|
+
example().catch(console.error);
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
| Name | Type | Description | Notes |
|
|
194
|
+
|------------- | ------------- | ------------- | -------------|
|
|
195
|
+
| **slug** | `string` | Site slug | [Defaults to `undefined`] |
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
[**WikiSiteResponse**](WikiSiteResponse.md)
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
No authorization required
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: Not defined
|
|
208
|
+
- **Accept**: `application/json`
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
### HTTP response details
|
|
212
|
+
| Status code | Description | Response headers |
|
|
213
|
+
|-------------|-------------|------------------|
|
|
214
|
+
| **200** | Wiki site | - |
|
|
215
|
+
| **404** | Not found | - |
|
|
216
|
+
|
|
217
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
## listPages
|
|
221
|
+
|
|
222
|
+
> ListResponseWikiPageShortResponse listPages(site, skip, limit)
|
|
223
|
+
|
|
224
|
+
GET /wiki/{site}/pages - List every published page in a site.
|
|
225
|
+
|
|
226
|
+
FoxWiki builds its whole navigation tree from one call to this, so it returns the complete flat set (paged at the standard 1000 ceiling) rather than one folder\'s children.
|
|
227
|
+
|
|
228
|
+
### Example
|
|
229
|
+
|
|
230
|
+
```ts
|
|
231
|
+
import {
|
|
232
|
+
Configuration,
|
|
233
|
+
WikiApi,
|
|
234
|
+
} from '@orangefox-recovery/foxclient';
|
|
235
|
+
import type { ListPagesRequest } from '@orangefox-recovery/foxclient';
|
|
236
|
+
|
|
237
|
+
async function example() {
|
|
238
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
239
|
+
const api = new WikiApi();
|
|
240
|
+
|
|
241
|
+
const body = {
|
|
242
|
+
// string | Site slug
|
|
243
|
+
site: site_example,
|
|
244
|
+
// number (optional)
|
|
245
|
+
skip: 789,
|
|
246
|
+
// number (optional)
|
|
247
|
+
limit: 789,
|
|
248
|
+
} satisfies ListPagesRequest;
|
|
249
|
+
|
|
250
|
+
try {
|
|
251
|
+
const data = await api.listPages(body);
|
|
252
|
+
console.log(data);
|
|
253
|
+
} catch (error) {
|
|
254
|
+
console.error(error);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Run the test
|
|
259
|
+
example().catch(console.error);
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Parameters
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
| Name | Type | Description | Notes |
|
|
266
|
+
|------------- | ------------- | ------------- | -------------|
|
|
267
|
+
| **site** | `string` | Site slug | [Defaults to `undefined`] |
|
|
268
|
+
| **skip** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
269
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
[**ListResponseWikiPageShortResponse**](ListResponseWikiPageShortResponse.md)
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
No authorization required
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: Not defined
|
|
282
|
+
- **Accept**: `application/json`
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
### HTTP response details
|
|
286
|
+
| Status code | Description | Response headers |
|
|
287
|
+
|-------------|-------------|------------------|
|
|
288
|
+
| **200** | Published pages | - |
|
|
289
|
+
| **404** | Site not found | - |
|
|
290
|
+
|
|
291
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
## listSites
|
|
295
|
+
|
|
296
|
+
> ListResponseWikiSiteResponse listSites(skip, limit)
|
|
297
|
+
|
|
298
|
+
GET /wiki/sites - List wiki sites.
|
|
299
|
+
|
|
300
|
+
### Example
|
|
301
|
+
|
|
302
|
+
```ts
|
|
303
|
+
import {
|
|
304
|
+
Configuration,
|
|
305
|
+
WikiApi,
|
|
306
|
+
} from '@orangefox-recovery/foxclient';
|
|
307
|
+
import type { ListSitesRequest } from '@orangefox-recovery/foxclient';
|
|
308
|
+
|
|
309
|
+
async function example() {
|
|
310
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
311
|
+
const api = new WikiApi();
|
|
312
|
+
|
|
313
|
+
const body = {
|
|
314
|
+
// number (optional)
|
|
315
|
+
skip: 789,
|
|
316
|
+
// number (optional)
|
|
317
|
+
limit: 789,
|
|
318
|
+
} satisfies ListSitesRequest;
|
|
319
|
+
|
|
320
|
+
try {
|
|
321
|
+
const data = await api.listSites(body);
|
|
322
|
+
console.log(data);
|
|
323
|
+
} catch (error) {
|
|
324
|
+
console.error(error);
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
// Run the test
|
|
329
|
+
example().catch(console.error);
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
### Parameters
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
| Name | Type | Description | Notes |
|
|
336
|
+
|------------- | ------------- | ------------- | -------------|
|
|
337
|
+
| **skip** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
338
|
+
| **limit** | `number` | | [Optional] [Defaults to `undefined`] |
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**ListResponseWikiSiteResponse**](ListResponseWikiSiteResponse.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
No authorization required
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: `application/json`
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
### HTTP response details
|
|
355
|
+
| Status code | Description | Response headers |
|
|
356
|
+
|-------------|-------------|------------------|
|
|
357
|
+
| **200** | List of wiki sites | - |
|
|
358
|
+
|
|
359
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
360
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
|
|
2
|
+
# WikiPageResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`description` | string
|
|
10
|
+
`draft` | boolean
|
|
11
|
+
`fileName` | string
|
|
12
|
+
`icon` | string
|
|
13
|
+
`id` | string
|
|
14
|
+
`image` | string
|
|
15
|
+
`lastUpdated` | string
|
|
16
|
+
`noindex` | boolean
|
|
17
|
+
`parentPath` | string
|
|
18
|
+
`path` | string
|
|
19
|
+
`title` | string
|
|
20
|
+
`type` | string
|
|
21
|
+
`content` | string
|
|
22
|
+
`createdAt` | string
|
|
23
|
+
`deviceId` | string
|
|
24
|
+
`revision` | number
|
|
25
|
+
`updatedAt` | string
|
|
26
|
+
|
|
27
|
+
## Example
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import type { WikiPageResponse } from '@orangefox-recovery/foxclient'
|
|
31
|
+
|
|
32
|
+
// TODO: Update the object below with actual values
|
|
33
|
+
const example = {
|
|
34
|
+
"description": null,
|
|
35
|
+
"draft": null,
|
|
36
|
+
"fileName": null,
|
|
37
|
+
"icon": null,
|
|
38
|
+
"id": null,
|
|
39
|
+
"image": null,
|
|
40
|
+
"lastUpdated": null,
|
|
41
|
+
"noindex": null,
|
|
42
|
+
"parentPath": null,
|
|
43
|
+
"path": null,
|
|
44
|
+
"title": null,
|
|
45
|
+
"type": null,
|
|
46
|
+
"content": null,
|
|
47
|
+
"createdAt": null,
|
|
48
|
+
"deviceId": null,
|
|
49
|
+
"revision": null,
|
|
50
|
+
"updatedAt": null,
|
|
51
|
+
} satisfies WikiPageResponse
|
|
52
|
+
|
|
53
|
+
console.log(example)
|
|
54
|
+
|
|
55
|
+
// Convert the instance to a JSON string
|
|
56
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
57
|
+
console.log(exampleJSON)
|
|
58
|
+
|
|
59
|
+
// Parse the JSON string back to an object
|
|
60
|
+
const exampleParsed = JSON.parse(exampleJSON) as WikiPageResponse
|
|
61
|
+
console.log(exampleParsed)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
# WikiPageShortResponse
|
|
3
|
+
|
|
4
|
+
A page without its body. FoxWiki fetches the whole set of these once and builds its navigation tree from them, so this must stay cheap.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`description` | string
|
|
11
|
+
`draft` | boolean
|
|
12
|
+
`fileName` | string
|
|
13
|
+
`icon` | string
|
|
14
|
+
`id` | string
|
|
15
|
+
`image` | string
|
|
16
|
+
`lastUpdated` | string
|
|
17
|
+
`noindex` | boolean
|
|
18
|
+
`parentPath` | string
|
|
19
|
+
`path` | string
|
|
20
|
+
`title` | string
|
|
21
|
+
`type` | string
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```typescript
|
|
26
|
+
import type { WikiPageShortResponse } from '@orangefox-recovery/foxclient'
|
|
27
|
+
|
|
28
|
+
// TODO: Update the object below with actual values
|
|
29
|
+
const example = {
|
|
30
|
+
"description": null,
|
|
31
|
+
"draft": null,
|
|
32
|
+
"fileName": null,
|
|
33
|
+
"icon": null,
|
|
34
|
+
"id": null,
|
|
35
|
+
"image": null,
|
|
36
|
+
"lastUpdated": null,
|
|
37
|
+
"noindex": null,
|
|
38
|
+
"parentPath": null,
|
|
39
|
+
"path": null,
|
|
40
|
+
"title": null,
|
|
41
|
+
"type": null,
|
|
42
|
+
} satisfies WikiPageShortResponse
|
|
43
|
+
|
|
44
|
+
console.log(example)
|
|
45
|
+
|
|
46
|
+
// Convert the instance to a JSON string
|
|
47
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
48
|
+
console.log(exampleJSON)
|
|
49
|
+
|
|
50
|
+
// Parse the JSON string back to an object
|
|
51
|
+
const exampleParsed = JSON.parse(exampleJSON) as WikiPageShortResponse
|
|
52
|
+
console.log(exampleParsed)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
56
|
+
|
|
57
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# WikiSiteResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`createdAt` | string
|
|
10
|
+
`defaultPage` | string
|
|
11
|
+
`description` | string
|
|
12
|
+
`devicePages` | string
|
|
13
|
+
`id` | string
|
|
14
|
+
`name` | string
|
|
15
|
+
`slug` | string
|
|
16
|
+
`updatedAt` | string
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { WikiSiteResponse } from '@orangefox-recovery/foxclient'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"createdAt": null,
|
|
26
|
+
"defaultPage": null,
|
|
27
|
+
"description": null,
|
|
28
|
+
"devicePages": null,
|
|
29
|
+
"id": null,
|
|
30
|
+
"name": null,
|
|
31
|
+
"slug": null,
|
|
32
|
+
"updatedAt": null,
|
|
33
|
+
} satisfies WikiSiteResponse
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as WikiSiteResponse
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangefox-recovery/foxclient",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "OpenAPI client for @orangefox-recovery/foxclient",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"prepare": "npm run build"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"typescript": "^
|
|
18
|
+
"typescript": "^7.0.2"
|
|
19
19
|
},
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -19,6 +19,7 @@ import type {
|
|
|
19
19
|
ListResponseReleaseResponse,
|
|
20
20
|
ReleaseListResponse,
|
|
21
21
|
ReleaseResponse,
|
|
22
|
+
ReleaseSort,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
24
25
|
ErrorResponseFromJSON,
|
|
@@ -29,6 +30,8 @@ import {
|
|
|
29
30
|
ReleaseListResponseToJSON,
|
|
30
31
|
ReleaseResponseFromJSON,
|
|
31
32
|
ReleaseResponseToJSON,
|
|
33
|
+
ReleaseSortFromJSON,
|
|
34
|
+
ReleaseSortToJSON,
|
|
32
35
|
} from '../models/index';
|
|
33
36
|
|
|
34
37
|
export interface DownloadReleaseRequest {
|
|
@@ -63,7 +66,7 @@ export interface ListReleasesRequest {
|
|
|
63
66
|
freezed?: boolean | null;
|
|
64
67
|
afterReleaseId?: string | null;
|
|
65
68
|
afterDate?: number | null;
|
|
66
|
-
sort?:
|
|
69
|
+
sort?: ReleaseSort | null;
|
|
67
70
|
group?: boolean | null;
|
|
68
71
|
skip?: number | null;
|
|
69
72
|
limit?: number | null;
|
|
@@ -190,7 +193,7 @@ export interface ReleaseApiInterface {
|
|
|
190
193
|
* @param {boolean} [freezed]
|
|
191
194
|
* @param {string} [afterReleaseId]
|
|
192
195
|
* @param {number} [afterDate]
|
|
193
|
-
* @param {
|
|
196
|
+
* @param {ReleaseSort} [sort]
|
|
194
197
|
* @param {boolean} [group]
|
|
195
198
|
* @param {number} [skip]
|
|
196
199
|
* @param {number} [limit]
|
|
@@ -214,7 +217,7 @@ export interface ReleaseApiInterface {
|
|
|
214
217
|
* @param {boolean} [freezed]
|
|
215
218
|
* @param {string} [afterReleaseId]
|
|
216
219
|
* @param {number} [afterDate]
|
|
217
|
-
* @param {
|
|
220
|
+
* @param {ReleaseSort} [sort]
|
|
218
221
|
* @param {boolean} [group]
|
|
219
222
|
* @param {number} [skip]
|
|
220
223
|
* @param {number} [limit]
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
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/UptimeApi.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.
|
|
7
|
+
* The version of the OpenAPI document: 6.1.1
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|