@orangefox-recovery/foxclient 5.3.0 → 5.3.3
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 +14 -2
- 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 +14 -2
- 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 +14 -2
- 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 +14 -2
- 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 +18 -2
- 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 +18 -2
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
.npmignore
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
|
+
docs/DeviceApi.md
|
|
6
|
+
docs/DeviceResponse.md
|
|
7
|
+
docs/GlobalStatsAggregationModel.md
|
|
8
|
+
docs/HTTPValidationError.md
|
|
9
|
+
docs/ListResponseReleaseResponse.md
|
|
10
|
+
docs/ListResponseShortDeviceResponse.md
|
|
11
|
+
docs/ListResponseShortReleaseResponse.md
|
|
12
|
+
docs/ListResponseStr.md
|
|
13
|
+
docs/MaintainerShortModel.md
|
|
14
|
+
docs/PasteApi.md
|
|
15
|
+
docs/PasteInput.md
|
|
16
|
+
docs/PasteOutput.md
|
|
17
|
+
docs/RecoveryImgResponse.md
|
|
18
|
+
docs/ReleaseApi.md
|
|
19
|
+
docs/ReleaseGroupsResponse.md
|
|
20
|
+
docs/ReleaseResponse.md
|
|
21
|
+
docs/ReleaseType.md
|
|
22
|
+
docs/ReleasesSort.md
|
|
23
|
+
docs/ResponseGetReleases.md
|
|
24
|
+
docs/ShortDeviceResponse.md
|
|
25
|
+
docs/ShortReleaseResponse.md
|
|
26
|
+
docs/StatsApi.md
|
|
27
|
+
docs/ValidationError.md
|
|
28
|
+
docs/ValidationErrorLocInner.md
|
|
5
29
|
package.json
|
|
6
30
|
src/apis/DeviceApi.ts
|
|
7
31
|
src/apis/PasteApi.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.17.0
|
package/README.md
CHANGED
|
@@ -1,46 +1,158 @@
|
|
|
1
|
-
|
|
1
|
+
# @orangefox-recovery/foxclient@5.3.3
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A TypeScript SDK client for the api.orangefox.download API.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
* Node.js
|
|
7
|
-
* Webpack
|
|
8
|
-
* Browserify
|
|
5
|
+
## Usage
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
* ES5 - you must have a Promises/A+ library installed
|
|
12
|
-
* ES6
|
|
7
|
+
First, install the SDK from npm.
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
```bash
|
|
10
|
+
npm install @orangefox-recovery/foxclient --save
|
|
11
|
+
```
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Next, try it out.
|
|
19
14
|
|
|
20
|
-
### Building
|
|
21
15
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
```ts
|
|
17
|
+
import {
|
|
18
|
+
Configuration,
|
|
19
|
+
DeviceApi,
|
|
20
|
+
} from '@orangefox-recovery/foxclient';
|
|
21
|
+
import type { GetDeviceRequest } from '@orangefox-recovery/foxclient';
|
|
22
|
+
|
|
23
|
+
async function example() {
|
|
24
|
+
console.log("🚀 Testing @orangefox-recovery/foxclient SDK...");
|
|
25
|
+
const api = new DeviceApi();
|
|
26
|
+
|
|
27
|
+
const body = {
|
|
28
|
+
// string (optional)
|
|
29
|
+
deviceId: deviceId_example,
|
|
30
|
+
// string | Filter by Device ID (deprecated) (optional)
|
|
31
|
+
id: id_example,
|
|
32
|
+
// string | Not recommended to use when you can (optional)
|
|
33
|
+
codename: codename_example,
|
|
34
|
+
} satisfies GetDeviceRequest;
|
|
35
|
+
|
|
36
|
+
try {
|
|
37
|
+
const data = await api.getDevice(body);
|
|
38
|
+
console.log(data);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error(error);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Run the test
|
|
45
|
+
example().catch(console.error);
|
|
26
46
|
```
|
|
27
47
|
|
|
28
|
-
### Publishing
|
|
29
48
|
|
|
30
|
-
|
|
49
|
+
## Documentation
|
|
31
50
|
|
|
32
|
-
###
|
|
51
|
+
### API Endpoints
|
|
33
52
|
|
|
34
|
-
|
|
53
|
+
All URIs are relative to *https://api.orangefox.download*
|
|
35
54
|
|
|
36
|
-
|
|
55
|
+
| Class | Method | HTTP request | Description
|
|
56
|
+
| ----- | ------ | ------------ | -------------
|
|
57
|
+
*DeviceApi* | [**getDevice**](docs/DeviceApi.md#getdevice) | **GET** /devices/get | Get Device
|
|
58
|
+
*DeviceApi* | [**getDeviceDeprecated**](docs/DeviceApi.md#getdevicedeprecated) | **GET** /devices/{device_id} | Get Device Short
|
|
59
|
+
*DeviceApi* | [**getDevices**](docs/DeviceApi.md#getdevices) | **GET** /devices/ | Get Devices
|
|
60
|
+
*DeviceApi* | [**getOems**](docs/DeviceApi.md#getoems) | **GET** /oems/ | Get Oems
|
|
61
|
+
*PasteApi* | [**createPastePastePost**](docs/PasteApi.md#createpastepastepost) | **POST** /paste/ | Create Paste
|
|
62
|
+
*PasteApi* | [**getPastePastePasteIdGet**](docs/PasteApi.md#getpastepastepasteidget) | **GET** /paste/{paste_id} | Get Paste
|
|
63
|
+
*ReleaseApi* | [**getRelease**](docs/ReleaseApi.md#getrelease) | **GET** /releases/get | Get Release
|
|
64
|
+
*ReleaseApi* | [**getReleaseDeprecated**](docs/ReleaseApi.md#getreleasedeprecated) | **GET** /releases/{release_id} | Get Release Short
|
|
65
|
+
*ReleaseApi* | [**getReleases**](docs/ReleaseApi.md#getreleases) | **GET** /releases/ | Get Releases
|
|
66
|
+
*ReleaseApi* | [**getUpdatesDeprecated**](docs/ReleaseApi.md#getupdatesdeprecated) | **GET** /updates/{last_known_id} | Get Updates
|
|
67
|
+
*StatsApi* | [**getPublicStats**](docs/StatsApi.md#getpublicstats) | **GET** /stats/ | Public Stats
|
|
37
68
|
|
|
38
|
-
```
|
|
39
|
-
npm install @orangefox-recovery/foxclient@5.3.0 --save
|
|
40
|
-
```
|
|
41
69
|
|
|
42
|
-
|
|
70
|
+
### Models
|
|
71
|
+
|
|
72
|
+
- [DeviceResponse](docs/DeviceResponse.md)
|
|
73
|
+
- [GlobalStatsAggregationModel](docs/GlobalStatsAggregationModel.md)
|
|
74
|
+
- [HTTPValidationError](docs/HTTPValidationError.md)
|
|
75
|
+
- [ListResponseReleaseResponse](docs/ListResponseReleaseResponse.md)
|
|
76
|
+
- [ListResponseShortDeviceResponse](docs/ListResponseShortDeviceResponse.md)
|
|
77
|
+
- [ListResponseShortReleaseResponse](docs/ListResponseShortReleaseResponse.md)
|
|
78
|
+
- [ListResponseStr](docs/ListResponseStr.md)
|
|
79
|
+
- [MaintainerShortModel](docs/MaintainerShortModel.md)
|
|
80
|
+
- [PasteInput](docs/PasteInput.md)
|
|
81
|
+
- [PasteOutput](docs/PasteOutput.md)
|
|
82
|
+
- [RecoveryImgResponse](docs/RecoveryImgResponse.md)
|
|
83
|
+
- [ReleaseGroupsResponse](docs/ReleaseGroupsResponse.md)
|
|
84
|
+
- [ReleaseResponse](docs/ReleaseResponse.md)
|
|
85
|
+
- [ReleaseType](docs/ReleaseType.md)
|
|
86
|
+
- [ReleasesSort](docs/ReleasesSort.md)
|
|
87
|
+
- [ResponseGetReleases](docs/ResponseGetReleases.md)
|
|
88
|
+
- [ShortDeviceResponse](docs/ShortDeviceResponse.md)
|
|
89
|
+
- [ShortReleaseResponse](docs/ShortReleaseResponse.md)
|
|
90
|
+
- [ValidationError](docs/ValidationError.md)
|
|
91
|
+
- [ValidationErrorLocInner](docs/ValidationErrorLocInner.md)
|
|
92
|
+
|
|
93
|
+
### Authorization
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Authentication schemes defined for the API:
|
|
97
|
+
<a id="bearer_auth"></a>
|
|
98
|
+
#### bearer_auth
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **Type**: HTTP Bearer Token authentication (JWT)
|
|
102
|
+
<a id="oauth2_password-password"></a>
|
|
103
|
+
#### oauth2_password password
|
|
104
|
+
|
|
43
105
|
|
|
106
|
+
- **Type**: OAuth
|
|
107
|
+
- **Flow**: password
|
|
108
|
+
- **Authorization URL**:
|
|
109
|
+
- **Scopes**: N/A
|
|
110
|
+
|
|
111
|
+
## About
|
|
112
|
+
|
|
113
|
+
This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
|
|
114
|
+
and is automatically generated by the
|
|
115
|
+
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
116
|
+
|
|
117
|
+
- API version: `5.3.3`
|
|
118
|
+
- Package version: `5.3.3`
|
|
119
|
+
- Generator version: `7.17.0`
|
|
120
|
+
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
121
|
+
|
|
122
|
+
The generated npm module supports the following:
|
|
123
|
+
|
|
124
|
+
- Environments
|
|
125
|
+
* Node.js
|
|
126
|
+
* Webpack
|
|
127
|
+
* Browserify
|
|
128
|
+
- Language levels
|
|
129
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
130
|
+
* ES6
|
|
131
|
+
- Module systems
|
|
132
|
+
* CommonJS
|
|
133
|
+
* ES6 module system
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
## Development
|
|
137
|
+
|
|
138
|
+
### Building
|
|
139
|
+
|
|
140
|
+
To build the TypeScript source code, you need to have Node.js and npm installed.
|
|
141
|
+
After cloning the repository, navigate to the project directory and run:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
npm install
|
|
145
|
+
npm run build
|
|
44
146
|
```
|
|
45
|
-
|
|
147
|
+
|
|
148
|
+
### Publishing
|
|
149
|
+
|
|
150
|
+
Once you've built the package, you can publish it to npm:
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
npm publish
|
|
46
154
|
```
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
[]()
|
package/dist/apis/DeviceApi.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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
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/apis/DeviceApi.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: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,8 +46,9 @@ class DeviceApi extends runtime.BaseAPI {
|
|
|
46
46
|
queryParameters['codename'] = requestParameters['codename'];
|
|
47
47
|
}
|
|
48
48
|
const headerParameters = {};
|
|
49
|
+
let urlPath = `/devices/get`;
|
|
49
50
|
const response = yield this.request({
|
|
50
|
-
path:
|
|
51
|
+
path: urlPath,
|
|
51
52
|
method: 'GET',
|
|
52
53
|
headers: headerParameters,
|
|
53
54
|
query: queryParameters,
|
|
@@ -77,8 +78,10 @@ class DeviceApi extends runtime.BaseAPI {
|
|
|
77
78
|
}
|
|
78
79
|
const queryParameters = {};
|
|
79
80
|
const headerParameters = {};
|
|
81
|
+
let urlPath = `/devices/{device_id}`;
|
|
82
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
80
83
|
const response = yield this.request({
|
|
81
|
-
path:
|
|
84
|
+
path: urlPath,
|
|
82
85
|
method: 'GET',
|
|
83
86
|
headers: headerParameters,
|
|
84
87
|
query: queryParameters,
|
|
@@ -138,8 +141,9 @@ class DeviceApi extends runtime.BaseAPI {
|
|
|
138
141
|
queryParameters['limit'] = requestParameters['limit'];
|
|
139
142
|
}
|
|
140
143
|
const headerParameters = {};
|
|
144
|
+
let urlPath = `/devices/`;
|
|
141
145
|
const response = yield this.request({
|
|
142
|
-
path:
|
|
146
|
+
path: urlPath,
|
|
143
147
|
method: 'GET',
|
|
144
148
|
headers: headerParameters,
|
|
145
149
|
query: queryParameters,
|
|
@@ -165,8 +169,9 @@ class DeviceApi extends runtime.BaseAPI {
|
|
|
165
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
170
|
const queryParameters = {};
|
|
167
171
|
const headerParameters = {};
|
|
172
|
+
let urlPath = `/oems/`;
|
|
168
173
|
const response = yield this.request({
|
|
169
|
-
path:
|
|
174
|
+
path: urlPath,
|
|
170
175
|
method: 'GET',
|
|
171
176
|
headers: headerParameters,
|
|
172
177
|
query: queryParameters,
|
package/dist/apis/PasteApi.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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
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/apis/PasteApi.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: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -41,8 +41,9 @@ class PasteApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
+
let urlPath = `/paste/`;
|
|
44
45
|
const response = yield this.request({
|
|
45
|
-
path:
|
|
46
|
+
path: urlPath,
|
|
46
47
|
method: 'POST',
|
|
47
48
|
headers: headerParameters,
|
|
48
49
|
query: queryParameters,
|
|
@@ -72,8 +73,10 @@ class PasteApi extends runtime.BaseAPI {
|
|
|
72
73
|
}
|
|
73
74
|
const queryParameters = {};
|
|
74
75
|
const headerParameters = {};
|
|
76
|
+
let urlPath = `/paste/{paste_id}`;
|
|
77
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
75
78
|
const response = yield this.request({
|
|
76
|
-
path:
|
|
79
|
+
path: urlPath,
|
|
77
80
|
method: 'GET',
|
|
78
81
|
headers: headerParameters,
|
|
79
82
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
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/apis/ReleaseApi.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: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -49,8 +49,9 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
49
49
|
queryParameters['filename'] = requestParameters['filename'];
|
|
50
50
|
}
|
|
51
51
|
const headerParameters = {};
|
|
52
|
+
let urlPath = `/releases/get`;
|
|
52
53
|
const response = yield this.request({
|
|
53
|
-
path:
|
|
54
|
+
path: urlPath,
|
|
54
55
|
method: 'GET',
|
|
55
56
|
headers: headerParameters,
|
|
56
57
|
query: queryParameters,
|
|
@@ -80,8 +81,10 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
80
81
|
}
|
|
81
82
|
const queryParameters = {};
|
|
82
83
|
const headerParameters = {};
|
|
84
|
+
let urlPath = `/releases/{release_id}`;
|
|
85
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
83
86
|
const response = yield this.request({
|
|
84
|
-
path:
|
|
87
|
+
path: urlPath,
|
|
85
88
|
method: 'GET',
|
|
86
89
|
headers: headerParameters,
|
|
87
90
|
query: queryParameters,
|
|
@@ -156,8 +159,9 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
156
159
|
queryParameters['limit'] = requestParameters['limit'];
|
|
157
160
|
}
|
|
158
161
|
const headerParameters = {};
|
|
162
|
+
let urlPath = `/releases/`;
|
|
159
163
|
const response = yield this.request({
|
|
160
|
-
path:
|
|
164
|
+
path: urlPath,
|
|
161
165
|
method: 'GET',
|
|
162
166
|
headers: headerParameters,
|
|
163
167
|
query: queryParameters,
|
|
@@ -202,8 +206,10 @@ class ReleaseApi extends runtime.BaseAPI {
|
|
|
202
206
|
queryParameters['limit'] = requestParameters['limit'];
|
|
203
207
|
}
|
|
204
208
|
const headerParameters = {};
|
|
209
|
+
let urlPath = `/updates/{last_known_id}`;
|
|
210
|
+
urlPath = urlPath.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId'])));
|
|
205
211
|
const response = yield this.request({
|
|
206
|
-
path:
|
|
212
|
+
path: urlPath,
|
|
207
213
|
method: 'GET',
|
|
208
214
|
headers: headerParameters,
|
|
209
215
|
query: queryParameters,
|
package/dist/apis/StatsApi.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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
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/apis/StatsApi.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: 5.3.
|
|
8
|
+
* The version of the OpenAPI document: 5.3.3
|
|
9
9
|
* Contact: admin@orangefox.tech
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -37,8 +37,9 @@ class StatsApi extends runtime.BaseAPI {
|
|
|
37
37
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const queryParameters = {};
|
|
39
39
|
const headerParameters = {};
|
|
40
|
+
let urlPath = `/stats/`;
|
|
40
41
|
const response = yield this.request({
|
|
41
|
-
path:
|
|
42
|
+
path: urlPath,
|
|
42
43
|
method: 'GET',
|
|
43
44
|
headers: headerParameters,
|
|
44
45
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -43,8 +43,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
43
43
|
queryParameters['codename'] = requestParameters['codename'];
|
|
44
44
|
}
|
|
45
45
|
const headerParameters = {};
|
|
46
|
+
let urlPath = `/devices/get`;
|
|
46
47
|
const response = yield this.request({
|
|
47
|
-
path:
|
|
48
|
+
path: urlPath,
|
|
48
49
|
method: 'GET',
|
|
49
50
|
headers: headerParameters,
|
|
50
51
|
query: queryParameters,
|
|
@@ -74,8 +75,10 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
74
75
|
}
|
|
75
76
|
const queryParameters = {};
|
|
76
77
|
const headerParameters = {};
|
|
78
|
+
let urlPath = `/devices/{device_id}`;
|
|
79
|
+
urlPath = urlPath.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId'])));
|
|
77
80
|
const response = yield this.request({
|
|
78
|
-
path:
|
|
81
|
+
path: urlPath,
|
|
79
82
|
method: 'GET',
|
|
80
83
|
headers: headerParameters,
|
|
81
84
|
query: queryParameters,
|
|
@@ -135,8 +138,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
135
138
|
queryParameters['limit'] = requestParameters['limit'];
|
|
136
139
|
}
|
|
137
140
|
const headerParameters = {};
|
|
141
|
+
let urlPath = `/devices/`;
|
|
138
142
|
const response = yield this.request({
|
|
139
|
-
path:
|
|
143
|
+
path: urlPath,
|
|
140
144
|
method: 'GET',
|
|
141
145
|
headers: headerParameters,
|
|
142
146
|
query: queryParameters,
|
|
@@ -162,8 +166,9 @@ export class DeviceApi extends runtime.BaseAPI {
|
|
|
162
166
|
return __awaiter(this, void 0, void 0, function* () {
|
|
163
167
|
const queryParameters = {};
|
|
164
168
|
const headerParameters = {};
|
|
169
|
+
let urlPath = `/oems/`;
|
|
165
170
|
const response = yield this.request({
|
|
166
|
-
path:
|
|
171
|
+
path: urlPath,
|
|
167
172
|
method: 'GET',
|
|
168
173
|
headers: headerParameters,
|
|
169
174
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -38,8 +38,9 @@ export class PasteApi extends runtime.BaseAPI {
|
|
|
38
38
|
const queryParameters = {};
|
|
39
39
|
const headerParameters = {};
|
|
40
40
|
headerParameters['Content-Type'] = 'application/json';
|
|
41
|
+
let urlPath = `/paste/`;
|
|
41
42
|
const response = yield this.request({
|
|
42
|
-
path:
|
|
43
|
+
path: urlPath,
|
|
43
44
|
method: 'POST',
|
|
44
45
|
headers: headerParameters,
|
|
45
46
|
query: queryParameters,
|
|
@@ -69,8 +70,10 @@ export class PasteApi extends runtime.BaseAPI {
|
|
|
69
70
|
}
|
|
70
71
|
const queryParameters = {};
|
|
71
72
|
const headerParameters = {};
|
|
73
|
+
let urlPath = `/paste/{paste_id}`;
|
|
74
|
+
urlPath = urlPath.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId'])));
|
|
72
75
|
const response = yield this.request({
|
|
73
|
-
path:
|
|
76
|
+
path: urlPath,
|
|
74
77
|
method: 'GET',
|
|
75
78
|
headers: headerParameters,
|
|
76
79
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -46,8 +46,9 @@ export class ReleaseApi extends runtime.BaseAPI {
|
|
|
46
46
|
queryParameters['filename'] = requestParameters['filename'];
|
|
47
47
|
}
|
|
48
48
|
const headerParameters = {};
|
|
49
|
+
let urlPath = `/releases/get`;
|
|
49
50
|
const response = yield this.request({
|
|
50
|
-
path:
|
|
51
|
+
path: urlPath,
|
|
51
52
|
method: 'GET',
|
|
52
53
|
headers: headerParameters,
|
|
53
54
|
query: queryParameters,
|
|
@@ -77,8 +78,10 @@ export class ReleaseApi extends runtime.BaseAPI {
|
|
|
77
78
|
}
|
|
78
79
|
const queryParameters = {};
|
|
79
80
|
const headerParameters = {};
|
|
81
|
+
let urlPath = `/releases/{release_id}`;
|
|
82
|
+
urlPath = urlPath.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId'])));
|
|
80
83
|
const response = yield this.request({
|
|
81
|
-
path:
|
|
84
|
+
path: urlPath,
|
|
82
85
|
method: 'GET',
|
|
83
86
|
headers: headerParameters,
|
|
84
87
|
query: queryParameters,
|
|
@@ -153,8 +156,9 @@ export class ReleaseApi extends runtime.BaseAPI {
|
|
|
153
156
|
queryParameters['limit'] = requestParameters['limit'];
|
|
154
157
|
}
|
|
155
158
|
const headerParameters = {};
|
|
159
|
+
let urlPath = `/releases/`;
|
|
156
160
|
const response = yield this.request({
|
|
157
|
-
path:
|
|
161
|
+
path: urlPath,
|
|
158
162
|
method: 'GET',
|
|
159
163
|
headers: headerParameters,
|
|
160
164
|
query: queryParameters,
|
|
@@ -199,8 +203,10 @@ export class ReleaseApi extends runtime.BaseAPI {
|
|
|
199
203
|
queryParameters['limit'] = requestParameters['limit'];
|
|
200
204
|
}
|
|
201
205
|
const headerParameters = {};
|
|
206
|
+
let urlPath = `/updates/{last_known_id}`;
|
|
207
|
+
urlPath = urlPath.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId'])));
|
|
202
208
|
const response = yield this.request({
|
|
203
|
-
path:
|
|
209
|
+
path: urlPath,
|
|
204
210
|
method: 'GET',
|
|
205
211
|
headers: headerParameters,
|
|
206
212
|
query: queryParameters,
|
|
@@ -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: 5.3.
|
|
5
|
+
* The version of the OpenAPI document: 5.3.3
|
|
6
6
|
* Contact: admin@orangefox.tech
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Fox API
|
|
5
5
|
* Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 5.3.
|
|
7
|
+
* The version of the OpenAPI document: 5.3.3
|
|
8
8
|
* Contact: admin@orangefox.tech
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,8 +34,9 @@ export class StatsApi extends runtime.BaseAPI {
|
|
|
34
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
35
35
|
const queryParameters = {};
|
|
36
36
|
const headerParameters = {};
|
|
37
|
+
let urlPath = `/stats/`;
|
|
37
38
|
const response = yield this.request({
|
|
38
|
-
path:
|
|
39
|
+
path: urlPath,
|
|
39
40
|
method: 'GET',
|
|
40
41
|
headers: headerParameters,
|
|
41
42
|
query: queryParameters,
|