@orangefox-recovery/foxclient 5.3.0 → 5.3.2
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 +24 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +140 -28
- package/dist/apis/DeviceApi.d.ts +1 -1
- package/dist/apis/DeviceApi.js +10 -5
- package/dist/apis/PasteApi.d.ts +1 -1
- package/dist/apis/PasteApi.js +6 -3
- package/dist/apis/ReleaseApi.d.ts +1 -1
- package/dist/apis/ReleaseApi.js +11 -5
- package/dist/apis/StatsApi.d.ts +1 -1
- package/dist/apis/StatsApi.js +3 -2
- package/dist/esm/apis/DeviceApi.d.ts +1 -1
- package/dist/esm/apis/DeviceApi.js +10 -5
- package/dist/esm/apis/PasteApi.d.ts +1 -1
- package/dist/esm/apis/PasteApi.js +6 -3
- package/dist/esm/apis/ReleaseApi.d.ts +1 -1
- package/dist/esm/apis/ReleaseApi.js +11 -5
- package/dist/esm/apis/StatsApi.d.ts +1 -1
- package/dist/esm/apis/StatsApi.js +3 -2
- package/dist/esm/models/DeviceResponse.d.ts +13 -1
- package/dist/esm/models/DeviceResponse.js +5 -1
- package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/esm/models/HTTPValidationError.d.ts +1 -1
- package/dist/esm/models/HTTPValidationError.js +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/esm/models/ListResponseStr.d.ts +1 -1
- package/dist/esm/models/ListResponseStr.js +1 -1
- package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
- package/dist/esm/models/MaintainerShortModel.js +1 -1
- package/dist/esm/models/PasteInput.d.ts +1 -1
- package/dist/esm/models/PasteInput.js +1 -1
- package/dist/esm/models/PasteOutput.d.ts +1 -1
- package/dist/esm/models/PasteOutput.js +2 -2
- 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/ReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ReleaseResponse.js +7 -1
- package/dist/esm/models/ReleaseType.d.ts +1 -1
- package/dist/esm/models/ReleaseType.js +1 -1
- package/dist/esm/models/ReleasesSort.d.ts +1 -1
- package/dist/esm/models/ReleasesSort.js +1 -1
- package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
- package/dist/esm/models/ResponseGetReleases.js +1 -1
- package/dist/esm/models/ShortDeviceResponse.d.ts +13 -1
- package/dist/esm/models/ShortDeviceResponse.js +5 -1
- package/dist/esm/models/ShortReleaseResponse.d.ts +13 -1
- package/dist/esm/models/ShortReleaseResponse.js +7 -1
- package/dist/esm/models/ValidationError.d.ts +1 -1
- package/dist/esm/models/ValidationError.js +1 -1
- package/dist/esm/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/esm/models/ValidationErrorLocInner.js +1 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/DeviceResponse.d.ts +13 -1
- package/dist/models/DeviceResponse.js +5 -1
- package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
- package/dist/models/GlobalStatsAggregationModel.js +1 -1
- package/dist/models/HTTPValidationError.d.ts +1 -1
- package/dist/models/HTTPValidationError.js +1 -1
- package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseReleaseResponse.js +1 -1
- package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
- package/dist/models/ListResponseShortDeviceResponse.js +1 -1
- package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
- package/dist/models/ListResponseShortReleaseResponse.js +1 -1
- package/dist/models/ListResponseStr.d.ts +1 -1
- package/dist/models/ListResponseStr.js +1 -1
- package/dist/models/MaintainerShortModel.d.ts +1 -1
- package/dist/models/MaintainerShortModel.js +1 -1
- package/dist/models/PasteInput.d.ts +1 -1
- package/dist/models/PasteInput.js +1 -1
- package/dist/models/PasteOutput.d.ts +1 -1
- package/dist/models/PasteOutput.js +2 -2
- 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/ReleaseResponse.d.ts +13 -1
- package/dist/models/ReleaseResponse.js +7 -1
- package/dist/models/ReleaseType.d.ts +1 -1
- package/dist/models/ReleaseType.js +1 -1
- package/dist/models/ReleasesSort.d.ts +1 -1
- package/dist/models/ReleasesSort.js +1 -1
- package/dist/models/ResponseGetReleases.d.ts +1 -1
- package/dist/models/ResponseGetReleases.js +1 -1
- package/dist/models/ShortDeviceResponse.d.ts +13 -1
- package/dist/models/ShortDeviceResponse.js +5 -1
- package/dist/models/ShortReleaseResponse.d.ts +13 -1
- package/dist/models/ShortReleaseResponse.js +7 -1
- package/dist/models/ValidationError.d.ts +1 -1
- package/dist/models/ValidationError.js +1 -1
- package/dist/models/ValidationErrorLocInner.d.ts +1 -1
- package/dist/models/ValidationErrorLocInner.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/docs/DeviceApi.md +315 -0
- package/docs/DeviceResponse.md +60 -0
- package/docs/GlobalStatsAggregationModel.md +40 -0
- package/docs/HTTPValidationError.md +34 -0
- package/docs/ListResponseReleaseResponse.md +36 -0
- package/docs/ListResponseShortDeviceResponse.md +36 -0
- package/docs/ListResponseShortReleaseResponse.md +36 -0
- package/docs/ListResponseStr.md +36 -0
- package/docs/MaintainerShortModel.md +38 -0
- package/docs/PasteApi.md +149 -0
- package/docs/PasteInput.md +34 -0
- package/docs/PasteOutput.md +40 -0
- package/docs/RecoveryImgResponse.md +36 -0
- package/docs/ReleaseApi.md +354 -0
- package/docs/ReleaseGroupsResponse.md +34 -0
- package/docs/ReleaseResponse.md +72 -0
- package/docs/ReleaseType.md +32 -0
- package/docs/ReleasesSort.md +32 -0
- package/docs/ResponseGetReleases.md +36 -0
- package/docs/ShortDeviceResponse.md +54 -0
- package/docs/ShortReleaseResponse.md +60 -0
- package/docs/StatsApi.md +69 -0
- package/docs/ValidationError.md +38 -0
- package/docs/ValidationErrorLocInner.md +32 -0
- package/package.json +5 -2
- package/src/apis/DeviceApi.ts +18 -5
- package/src/apis/PasteApi.ts +10 -3
- package/src/apis/ReleaseApi.ts +19 -5
- package/src/apis/StatsApi.ts +5 -2
- package/src/models/DeviceResponse.ts +17 -1
- package/src/models/GlobalStatsAggregationModel.ts +1 -1
- package/src/models/HTTPValidationError.ts +1 -1
- package/src/models/ListResponseReleaseResponse.ts +1 -1
- package/src/models/ListResponseShortDeviceResponse.ts +1 -1
- package/src/models/ListResponseShortReleaseResponse.ts +1 -1
- package/src/models/ListResponseStr.ts +1 -1
- package/src/models/MaintainerShortModel.ts +1 -1
- package/src/models/PasteInput.ts +1 -1
- package/src/models/PasteOutput.ts +2 -2
- package/src/models/RecoveryImgResponse.ts +1 -1
- package/src/models/ReleaseGroupsResponse.ts +1 -1
- package/src/models/ReleaseResponse.ts +18 -1
- package/src/models/ReleaseType.ts +1 -1
- package/src/models/ReleasesSort.ts +1 -1
- package/src/models/ResponseGetReleases.ts +1 -1
- package/src/models/ShortDeviceResponse.ts +17 -1
- package/src/models/ShortReleaseResponse.ts +18 -1
- package/src/models/ValidationError.ts +1 -1
- package/src/models/ValidationErrorLocInner.ts +1 -1
- package/src/runtime.ts +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
|
|
2
|
+
# ReleaseResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`size` | number
|
|
10
|
+
`id` | string
|
|
11
|
+
`buildId` | string
|
|
12
|
+
`filename` | string
|
|
13
|
+
`variant` | string
|
|
14
|
+
`deviceId` | string
|
|
15
|
+
`date` | number
|
|
16
|
+
`md5` | string
|
|
17
|
+
`version` | string
|
|
18
|
+
`type` | [ReleaseType](ReleaseType.md)
|
|
19
|
+
`maintainerId` | string
|
|
20
|
+
`archived` | boolean
|
|
21
|
+
`isFeatured` | boolean
|
|
22
|
+
`featuredText` | string
|
|
23
|
+
`recoveryImg` | [RecoveryImgResponse](RecoveryImgResponse.md)
|
|
24
|
+
`changelog` | Array<string>
|
|
25
|
+
`bugs` | Array<string>
|
|
26
|
+
`notes` | string
|
|
27
|
+
`url` | string
|
|
28
|
+
`mirrors` | { [key: string]: string; }
|
|
29
|
+
|
|
30
|
+
## Example
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
import type { ReleaseResponse } from '@orangefox-recovery/foxclient'
|
|
34
|
+
|
|
35
|
+
// TODO: Update the object below with actual values
|
|
36
|
+
const example = {
|
|
37
|
+
"size": null,
|
|
38
|
+
"id": null,
|
|
39
|
+
"buildId": null,
|
|
40
|
+
"filename": null,
|
|
41
|
+
"variant": null,
|
|
42
|
+
"deviceId": null,
|
|
43
|
+
"date": null,
|
|
44
|
+
"md5": null,
|
|
45
|
+
"version": null,
|
|
46
|
+
"type": null,
|
|
47
|
+
"maintainerId": null,
|
|
48
|
+
"archived": null,
|
|
49
|
+
"isFeatured": null,
|
|
50
|
+
"featuredText": null,
|
|
51
|
+
"recoveryImg": null,
|
|
52
|
+
"changelog": null,
|
|
53
|
+
"bugs": null,
|
|
54
|
+
"notes": null,
|
|
55
|
+
"url": null,
|
|
56
|
+
"mirrors": null,
|
|
57
|
+
} satisfies ReleaseResponse
|
|
58
|
+
|
|
59
|
+
console.log(example)
|
|
60
|
+
|
|
61
|
+
// Convert the instance to a JSON string
|
|
62
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
63
|
+
console.log(exampleJSON)
|
|
64
|
+
|
|
65
|
+
// Parse the JSON string back to an object
|
|
66
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReleaseResponse
|
|
67
|
+
console.log(exampleParsed)
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
71
|
+
|
|
72
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ReleaseType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ReleaseType } from '@orangefox-recovery/foxclient'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ReleaseType
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReleaseType
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ReleasesSort
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ReleasesSort } from '@orangefox-recovery/foxclient'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ReleasesSort
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ReleasesSort
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# ResponseGetReleases
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`data` | { [key: string]: Array<ReleaseResponse>; }
|
|
10
|
+
`count` | number
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { ResponseGetReleases } from '@orangefox-recovery/foxclient'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"data": null,
|
|
20
|
+
"count": null,
|
|
21
|
+
} satisfies ResponseGetReleases
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as ResponseGetReleases
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
|
|
2
|
+
# ShortDeviceResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`codename` | string
|
|
10
|
+
`modelName` | string
|
|
11
|
+
`oemName` | string
|
|
12
|
+
`id` | string
|
|
13
|
+
`codenames` | Array<string>
|
|
14
|
+
`modelNames` | Array<string>
|
|
15
|
+
`supported` | boolean
|
|
16
|
+
`isFeatured` | boolean
|
|
17
|
+
`featuredText` | string
|
|
18
|
+
`fullName` | string
|
|
19
|
+
`url` | string
|
|
20
|
+
|
|
21
|
+
## Example
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import type { ShortDeviceResponse } from '@orangefox-recovery/foxclient'
|
|
25
|
+
|
|
26
|
+
// TODO: Update the object below with actual values
|
|
27
|
+
const example = {
|
|
28
|
+
"codename": null,
|
|
29
|
+
"modelName": null,
|
|
30
|
+
"oemName": null,
|
|
31
|
+
"id": null,
|
|
32
|
+
"codenames": null,
|
|
33
|
+
"modelNames": null,
|
|
34
|
+
"supported": null,
|
|
35
|
+
"isFeatured": null,
|
|
36
|
+
"featuredText": null,
|
|
37
|
+
"fullName": null,
|
|
38
|
+
"url": null,
|
|
39
|
+
} satisfies ShortDeviceResponse
|
|
40
|
+
|
|
41
|
+
console.log(example)
|
|
42
|
+
|
|
43
|
+
// Convert the instance to a JSON string
|
|
44
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
45
|
+
console.log(exampleJSON)
|
|
46
|
+
|
|
47
|
+
// Parse the JSON string back to an object
|
|
48
|
+
const exampleParsed = JSON.parse(exampleJSON) as ShortDeviceResponse
|
|
49
|
+
console.log(exampleParsed)
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
53
|
+
|
|
54
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
|
|
2
|
+
# ShortReleaseResponse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`size` | number
|
|
10
|
+
`id` | string
|
|
11
|
+
`buildId` | string
|
|
12
|
+
`filename` | string
|
|
13
|
+
`variant` | string
|
|
14
|
+
`deviceId` | string
|
|
15
|
+
`date` | number
|
|
16
|
+
`md5` | string
|
|
17
|
+
`version` | string
|
|
18
|
+
`type` | [ReleaseType](ReleaseType.md)
|
|
19
|
+
`maintainerId` | string
|
|
20
|
+
`archived` | boolean
|
|
21
|
+
`isFeatured` | boolean
|
|
22
|
+
`featuredText` | string
|
|
23
|
+
|
|
24
|
+
## Example
|
|
25
|
+
|
|
26
|
+
```typescript
|
|
27
|
+
import type { ShortReleaseResponse } from '@orangefox-recovery/foxclient'
|
|
28
|
+
|
|
29
|
+
// TODO: Update the object below with actual values
|
|
30
|
+
const example = {
|
|
31
|
+
"size": null,
|
|
32
|
+
"id": null,
|
|
33
|
+
"buildId": null,
|
|
34
|
+
"filename": null,
|
|
35
|
+
"variant": null,
|
|
36
|
+
"deviceId": null,
|
|
37
|
+
"date": null,
|
|
38
|
+
"md5": null,
|
|
39
|
+
"version": null,
|
|
40
|
+
"type": null,
|
|
41
|
+
"maintainerId": null,
|
|
42
|
+
"archived": null,
|
|
43
|
+
"isFeatured": null,
|
|
44
|
+
"featuredText": null,
|
|
45
|
+
} satisfies ShortReleaseResponse
|
|
46
|
+
|
|
47
|
+
console.log(example)
|
|
48
|
+
|
|
49
|
+
// Convert the instance to a JSON string
|
|
50
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
51
|
+
console.log(exampleJSON)
|
|
52
|
+
|
|
53
|
+
// Parse the JSON string back to an object
|
|
54
|
+
const exampleParsed = JSON.parse(exampleJSON) as ShortReleaseResponse
|
|
55
|
+
console.log(exampleParsed)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
59
|
+
|
|
60
|
+
|
package/docs/StatsApi.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# StatsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**getPublicStats**](StatsApi.md#getpublicstats) | **GET** /stats/ | Public Stats |
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getPublicStats
|
|
12
|
+
|
|
13
|
+
> GlobalStatsAggregationModel getPublicStats()
|
|
14
|
+
|
|
15
|
+
Public Stats
|
|
16
|
+
|
|
17
|
+
Returns the global OrangeFox downloads statistics. This request causes an increased load to the database, as it needs to aggregate all the release stats data, therefore, it is limited to a small number of requests per minute for public usage.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import {
|
|
23
|
+
Configuration,
|
|
24
|
+
StatsApi,
|
|
25
|
+
} from '@orangefox-recovery/foxclient';
|
|
26
|
+
import type { GetPublicStatsRequest } from '@orangefox-recovery/foxclient';
|
|
27
|
+
|
|
28
|
+
async function example() {
|
|
29
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
30
|
+
const api = new StatsApi();
|
|
31
|
+
|
|
32
|
+
try {
|
|
33
|
+
const data = await api.getPublicStats();
|
|
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
|
+
[**GlobalStatsAggregationModel**](GlobalStatsAggregationModel.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** | Successful Response | - |
|
|
66
|
+
| **429** | Too many requests | - |
|
|
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,38 @@
|
|
|
1
|
+
|
|
2
|
+
# ValidationError
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`loc` | [Array<ValidationErrorLocInner>](ValidationErrorLocInner.md)
|
|
10
|
+
`msg` | string
|
|
11
|
+
`type` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { ValidationError } from '@orangefox-recovery/foxclient'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"loc": null,
|
|
21
|
+
"msg": null,
|
|
22
|
+
"type": null,
|
|
23
|
+
} satisfies ValidationError
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as ValidationError
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
# ValidationErrorLocInner
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import type { ValidationErrorLocInner } from '@orangefox-recovery/foxclient'
|
|
14
|
+
|
|
15
|
+
// TODO: Update the object below with actual values
|
|
16
|
+
const example = {
|
|
17
|
+
} satisfies ValidationErrorLocInner
|
|
18
|
+
|
|
19
|
+
console.log(example)
|
|
20
|
+
|
|
21
|
+
// Convert the instance to a JSON string
|
|
22
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
23
|
+
console.log(exampleJSON)
|
|
24
|
+
|
|
25
|
+
// Parse the JSON string back to an object
|
|
26
|
+
const exampleParsed = JSON.parse(exampleJSON) as ValidationErrorLocInner
|
|
27
|
+
console.log(exampleParsed)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
31
|
+
|
|
32
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orangefox-recovery/foxclient",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"description": "OpenAPI client for @orangefox-recovery/foxclient",
|
|
5
5
|
"author": "OpenAPI-Generator",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
|
-
"
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"scripts": {
|
|
14
14
|
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
"directories": {
|
|
28
|
+
"doc": "docs"
|
|
29
|
+
},
|
|
27
30
|
"keywords": [],
|
|
28
31
|
"license": "ISC",
|
|
29
32
|
"type": "commonjs",
|
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: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -167,8 +167,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
167
167
|
|
|
168
168
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
169
169
|
|
|
170
|
+
|
|
171
|
+
let urlPath = `/devices/get`;
|
|
172
|
+
|
|
170
173
|
const response = await this.request({
|
|
171
|
-
path:
|
|
174
|
+
path: urlPath,
|
|
172
175
|
method: 'GET',
|
|
173
176
|
headers: headerParameters,
|
|
174
177
|
query: queryParameters,
|
|
@@ -203,8 +206,12 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
203
206
|
|
|
204
207
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
205
208
|
|
|
209
|
+
|
|
210
|
+
let urlPath = `/devices/{device_id}`;
|
|
211
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
212
|
+
|
|
206
213
|
const response = await this.request({
|
|
207
|
-
path:
|
|
214
|
+
path: urlPath,
|
|
208
215
|
method: 'GET',
|
|
209
216
|
headers: headerParameters,
|
|
210
217
|
query: queryParameters,
|
|
@@ -276,8 +283,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
276
283
|
|
|
277
284
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
278
285
|
|
|
286
|
+
|
|
287
|
+
let urlPath = `/devices/`;
|
|
288
|
+
|
|
279
289
|
const response = await this.request({
|
|
280
|
-
path:
|
|
290
|
+
path: urlPath,
|
|
281
291
|
method: 'GET',
|
|
282
292
|
headers: headerParameters,
|
|
283
293
|
query: queryParameters,
|
|
@@ -304,8 +314,11 @@ export class DeviceApi extends runtime.BaseAPI implements DeviceApiInterface {
|
|
|
304
314
|
|
|
305
315
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
306
316
|
|
|
317
|
+
|
|
318
|
+
let urlPath = `/oems/`;
|
|
319
|
+
|
|
307
320
|
const response = await this.request({
|
|
308
|
-
path:
|
|
321
|
+
path: urlPath,
|
|
309
322
|
method: 'GET',
|
|
310
323
|
headers: headerParameters,
|
|
311
324
|
query: queryParameters,
|
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: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -100,8 +100,11 @@ export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
|
100
100
|
|
|
101
101
|
headerParameters['Content-Type'] = 'application/json';
|
|
102
102
|
|
|
103
|
+
|
|
104
|
+
let urlPath = `/paste/`;
|
|
105
|
+
|
|
103
106
|
const response = await this.request({
|
|
104
|
-
path:
|
|
107
|
+
path: urlPath,
|
|
105
108
|
method: 'POST',
|
|
106
109
|
headers: headerParameters,
|
|
107
110
|
query: queryParameters,
|
|
@@ -136,8 +139,12 @@ export class PasteApi extends runtime.BaseAPI implements PasteApiInterface {
|
|
|
136
139
|
|
|
137
140
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
138
141
|
|
|
142
|
+
|
|
143
|
+
let urlPath = `/paste/{paste_id}`;
|
|
144
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
145
|
+
|
|
139
146
|
const response = await this.request({
|
|
140
|
-
path:
|
|
147
|
+
path: urlPath,
|
|
141
148
|
method: 'GET',
|
|
142
149
|
headers: headerParameters,
|
|
143
150
|
query: queryParameters,
|
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: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -206,8 +206,11 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
206
206
|
|
|
207
207
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
208
208
|
|
|
209
|
+
|
|
210
|
+
let urlPath = `/releases/get`;
|
|
211
|
+
|
|
209
212
|
const response = await this.request({
|
|
210
|
-
path:
|
|
213
|
+
path: urlPath,
|
|
211
214
|
method: 'GET',
|
|
212
215
|
headers: headerParameters,
|
|
213
216
|
query: queryParameters,
|
|
@@ -242,8 +245,12 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
242
245
|
|
|
243
246
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
244
247
|
|
|
248
|
+
|
|
249
|
+
let urlPath = `/releases/{release_id}`;
|
|
250
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
251
|
+
|
|
245
252
|
const response = await this.request({
|
|
246
|
-
path:
|
|
253
|
+
path: urlPath,
|
|
247
254
|
method: 'GET',
|
|
248
255
|
headers: headerParameters,
|
|
249
256
|
query: queryParameters,
|
|
@@ -335,8 +342,11 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
335
342
|
|
|
336
343
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
337
344
|
|
|
345
|
+
|
|
346
|
+
let urlPath = `/releases/`;
|
|
347
|
+
|
|
338
348
|
const response = await this.request({
|
|
339
|
-
path:
|
|
349
|
+
path: urlPath,
|
|
340
350
|
method: 'GET',
|
|
341
351
|
headers: headerParameters,
|
|
342
352
|
query: queryParameters,
|
|
@@ -391,8 +401,12 @@ export class ReleaseApi extends runtime.BaseAPI implements ReleaseApiInterface {
|
|
|
391
401
|
|
|
392
402
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
393
403
|
|
|
404
|
+
|
|
405
|
+
let urlPath = `/updates/{last_known_id}`;
|
|
406
|
+
urlPath = urlPath.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId'])));
|
|
407
|
+
|
|
394
408
|
const response = await this.request({
|
|
395
|
-
path:
|
|
409
|
+
path: urlPath,
|
|
396
410
|
method: 'GET',
|
|
397
411
|
headers: headerParameters,
|
|
398
412
|
query: queryParameters,
|
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: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -60,8 +60,11 @@ export class StatsApi extends runtime.BaseAPI implements StatsApiInterface {
|
|
|
60
60
|
|
|
61
61
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
62
62
|
|
|
63
|
+
|
|
64
|
+
let urlPath = `/stats/`;
|
|
65
|
+
|
|
63
66
|
const response = await this.request({
|
|
64
|
-
path:
|
|
67
|
+
path: urlPath,
|
|
65
68
|
method: 'GET',
|
|
66
69
|
headers: headerParameters,
|
|
67
70
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.2
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -71,6 +71,18 @@ export interface DeviceResponse {
|
|
|
71
71
|
* @memberof DeviceResponse
|
|
72
72
|
*/
|
|
73
73
|
supported: boolean;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {boolean}
|
|
77
|
+
* @memberof DeviceResponse
|
|
78
|
+
*/
|
|
79
|
+
isFeatured?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof DeviceResponse
|
|
84
|
+
*/
|
|
85
|
+
featuredText?: string | null;
|
|
74
86
|
/**
|
|
75
87
|
*
|
|
76
88
|
* @type {MaintainerShortModel}
|
|
@@ -137,6 +149,8 @@ export function DeviceResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
137
149
|
'codenames': json['codenames'],
|
|
138
150
|
'modelNames': json['model_names'],
|
|
139
151
|
'supported': json['supported'],
|
|
152
|
+
'isFeatured': json['is_featured'] == null ? undefined : json['is_featured'],
|
|
153
|
+
'featuredText': json['featured_text'] == null ? undefined : json['featured_text'],
|
|
140
154
|
'maintainer': MaintainerShortModelFromJSON(json['maintainer']),
|
|
141
155
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
142
156
|
'deviceTree': json['device_tree'] == null ? undefined : json['device_tree'],
|
|
@@ -163,6 +177,8 @@ export function DeviceResponseToJSONTyped(value?: Omit<DeviceResponse, 'full_nam
|
|
|
163
177
|
'codenames': value['codenames'],
|
|
164
178
|
'model_names': value['modelNames'],
|
|
165
179
|
'supported': value['supported'],
|
|
180
|
+
'is_featured': value['isFeatured'],
|
|
181
|
+
'featured_text': value['featuredText'],
|
|
166
182
|
'maintainer': MaintainerShortModelToJSON(value['maintainer']),
|
|
167
183
|
'notes': value['notes'],
|
|
168
184
|
'device_tree': value['deviceTree'],
|