@orangefox-recovery/foxclient 5.2.8 → 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.
Files changed (153) hide show
  1. package/.openapi-generator/FILES +24 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +140 -28
  4. package/dist/apis/DeviceApi.d.ts +1 -1
  5. package/dist/apis/DeviceApi.js +10 -5
  6. package/dist/apis/PasteApi.d.ts +1 -1
  7. package/dist/apis/PasteApi.js +6 -3
  8. package/dist/apis/ReleaseApi.d.ts +1 -1
  9. package/dist/apis/ReleaseApi.js +11 -5
  10. package/dist/apis/StatsApi.d.ts +1 -1
  11. package/dist/apis/StatsApi.js +3 -2
  12. package/dist/esm/apis/DeviceApi.d.ts +1 -1
  13. package/dist/esm/apis/DeviceApi.js +10 -5
  14. package/dist/esm/apis/PasteApi.d.ts +1 -1
  15. package/dist/esm/apis/PasteApi.js +6 -3
  16. package/dist/esm/apis/ReleaseApi.d.ts +1 -1
  17. package/dist/esm/apis/ReleaseApi.js +11 -5
  18. package/dist/esm/apis/StatsApi.d.ts +1 -1
  19. package/dist/esm/apis/StatsApi.js +3 -2
  20. package/dist/esm/models/DeviceResponse.d.ts +13 -1
  21. package/dist/esm/models/DeviceResponse.js +5 -1
  22. package/dist/esm/models/GlobalStatsAggregationModel.d.ts +1 -1
  23. package/dist/esm/models/GlobalStatsAggregationModel.js +1 -1
  24. package/dist/esm/models/HTTPValidationError.d.ts +1 -1
  25. package/dist/esm/models/HTTPValidationError.js +1 -1
  26. package/dist/esm/models/ListResponseReleaseResponse.d.ts +1 -1
  27. package/dist/esm/models/ListResponseReleaseResponse.js +1 -1
  28. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +1 -1
  29. package/dist/esm/models/ListResponseShortDeviceResponse.js +1 -1
  30. package/dist/esm/models/ListResponseShortReleaseResponse.d.ts +1 -1
  31. package/dist/esm/models/ListResponseShortReleaseResponse.js +1 -1
  32. package/dist/esm/models/ListResponseStr.d.ts +1 -1
  33. package/dist/esm/models/ListResponseStr.js +1 -1
  34. package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
  35. package/dist/esm/models/MaintainerShortModel.js +1 -1
  36. package/dist/esm/models/PasteInput.d.ts +2 -20
  37. package/dist/esm/models/PasteInput.js +1 -9
  38. package/dist/esm/models/PasteOutput.d.ts +9 -9
  39. package/dist/esm/models/PasteOutput.js +10 -8
  40. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  41. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  42. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  43. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  44. package/dist/esm/models/ReleaseResponse.d.ts +14 -2
  45. package/dist/esm/models/ReleaseResponse.js +7 -1
  46. package/dist/esm/models/ReleaseType.d.ts +1 -1
  47. package/dist/esm/models/ReleaseType.js +1 -1
  48. package/dist/esm/models/ReleasesSort.d.ts +1 -1
  49. package/dist/esm/models/ReleasesSort.js +1 -1
  50. package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
  51. package/dist/esm/models/ResponseGetReleases.js +1 -1
  52. package/dist/esm/models/ShortDeviceResponse.d.ts +13 -1
  53. package/dist/esm/models/ShortDeviceResponse.js +5 -1
  54. package/dist/esm/models/ShortReleaseResponse.d.ts +14 -2
  55. package/dist/esm/models/ShortReleaseResponse.js +7 -1
  56. package/dist/esm/models/ValidationError.d.ts +1 -1
  57. package/dist/esm/models/ValidationError.js +1 -1
  58. package/dist/esm/models/ValidationErrorLocInner.d.ts +1 -1
  59. package/dist/esm/models/ValidationErrorLocInner.js +1 -1
  60. package/dist/esm/runtime.d.ts +1 -1
  61. package/dist/esm/runtime.js +1 -1
  62. package/dist/models/DeviceResponse.d.ts +13 -1
  63. package/dist/models/DeviceResponse.js +5 -1
  64. package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
  65. package/dist/models/GlobalStatsAggregationModel.js +1 -1
  66. package/dist/models/HTTPValidationError.d.ts +1 -1
  67. package/dist/models/HTTPValidationError.js +1 -1
  68. package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
  69. package/dist/models/ListResponseReleaseResponse.js +1 -1
  70. package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
  71. package/dist/models/ListResponseShortDeviceResponse.js +1 -1
  72. package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
  73. package/dist/models/ListResponseShortReleaseResponse.js +1 -1
  74. package/dist/models/ListResponseStr.d.ts +1 -1
  75. package/dist/models/ListResponseStr.js +1 -1
  76. package/dist/models/MaintainerShortModel.d.ts +1 -1
  77. package/dist/models/MaintainerShortModel.js +1 -1
  78. package/dist/models/PasteInput.d.ts +2 -20
  79. package/dist/models/PasteInput.js +1 -9
  80. package/dist/models/PasteOutput.d.ts +9 -9
  81. package/dist/models/PasteOutput.js +10 -8
  82. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  83. package/dist/models/RecoveryImgResponse.js +1 -1
  84. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  85. package/dist/models/ReleaseGroupsResponse.js +1 -1
  86. package/dist/models/ReleaseResponse.d.ts +14 -2
  87. package/dist/models/ReleaseResponse.js +7 -1
  88. package/dist/models/ReleaseType.d.ts +1 -1
  89. package/dist/models/ReleaseType.js +1 -1
  90. package/dist/models/ReleasesSort.d.ts +1 -1
  91. package/dist/models/ReleasesSort.js +1 -1
  92. package/dist/models/ResponseGetReleases.d.ts +1 -1
  93. package/dist/models/ResponseGetReleases.js +1 -1
  94. package/dist/models/ShortDeviceResponse.d.ts +13 -1
  95. package/dist/models/ShortDeviceResponse.js +5 -1
  96. package/dist/models/ShortReleaseResponse.d.ts +14 -2
  97. package/dist/models/ShortReleaseResponse.js +7 -1
  98. package/dist/models/ValidationError.d.ts +1 -1
  99. package/dist/models/ValidationError.js +1 -1
  100. package/dist/models/ValidationErrorLocInner.d.ts +1 -1
  101. package/dist/models/ValidationErrorLocInner.js +1 -1
  102. package/dist/runtime.d.ts +1 -1
  103. package/dist/runtime.js +1 -1
  104. package/docs/DeviceApi.md +315 -0
  105. package/docs/DeviceResponse.md +60 -0
  106. package/docs/GlobalStatsAggregationModel.md +40 -0
  107. package/docs/HTTPValidationError.md +34 -0
  108. package/docs/ListResponseReleaseResponse.md +36 -0
  109. package/docs/ListResponseShortDeviceResponse.md +36 -0
  110. package/docs/ListResponseShortReleaseResponse.md +36 -0
  111. package/docs/ListResponseStr.md +36 -0
  112. package/docs/MaintainerShortModel.md +38 -0
  113. package/docs/PasteApi.md +149 -0
  114. package/docs/PasteInput.md +34 -0
  115. package/docs/PasteOutput.md +40 -0
  116. package/docs/RecoveryImgResponse.md +36 -0
  117. package/docs/ReleaseApi.md +354 -0
  118. package/docs/ReleaseGroupsResponse.md +34 -0
  119. package/docs/ReleaseResponse.md +72 -0
  120. package/docs/ReleaseType.md +32 -0
  121. package/docs/ReleasesSort.md +32 -0
  122. package/docs/ResponseGetReleases.md +36 -0
  123. package/docs/ShortDeviceResponse.md +54 -0
  124. package/docs/ShortReleaseResponse.md +60 -0
  125. package/docs/StatsApi.md +69 -0
  126. package/docs/ValidationError.md +38 -0
  127. package/docs/ValidationErrorLocInner.md +32 -0
  128. package/package.json +5 -2
  129. package/src/apis/DeviceApi.ts +18 -5
  130. package/src/apis/PasteApi.ts +10 -3
  131. package/src/apis/ReleaseApi.ts +19 -5
  132. package/src/apis/StatsApi.ts +5 -2
  133. package/src/models/DeviceResponse.ts +17 -1
  134. package/src/models/GlobalStatsAggregationModel.ts +1 -1
  135. package/src/models/HTTPValidationError.ts +1 -1
  136. package/src/models/ListResponseReleaseResponse.ts +1 -1
  137. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  138. package/src/models/ListResponseShortReleaseResponse.ts +1 -1
  139. package/src/models/ListResponseStr.ts +1 -1
  140. package/src/models/MaintainerShortModel.ts +1 -1
  141. package/src/models/PasteInput.ts +2 -27
  142. package/src/models/PasteOutput.ts +17 -16
  143. package/src/models/RecoveryImgResponse.ts +1 -1
  144. package/src/models/ReleaseGroupsResponse.ts +1 -1
  145. package/src/models/ReleaseResponse.ts +19 -2
  146. package/src/models/ReleaseType.ts +1 -1
  147. package/src/models/ReleasesSort.ts +1 -1
  148. package/src/models/ResponseGetReleases.ts +1 -1
  149. package/src/models/ShortDeviceResponse.ts +17 -1
  150. package/src/models/ShortReleaseResponse.ts +19 -2
  151. package/src/models/ValidationError.ts +1 -1
  152. package/src/models/ValidationErrorLocInner.ts +1 -1
  153. package/src/runtime.ts +1 -1
@@ -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.2.8",
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
- "typings": "./dist/index.d.ts",
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",
@@ -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.2.8
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: `/devices/get`,
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: `/devices/{device_id}`.replace(`{${"device_id"}}`, encodeURIComponent(String(requestParameters['deviceId']))),
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: `/devices/`,
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: `/oems/`,
321
+ path: urlPath,
309
322
  method: 'GET',
310
323
  headers: headerParameters,
311
324
  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.2.8
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: `/paste/`,
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: `/paste/{paste_id}`.replace(`{${"paste_id"}}`, encodeURIComponent(String(requestParameters['pasteId']))),
147
+ path: urlPath,
141
148
  method: 'GET',
142
149
  headers: headerParameters,
143
150
  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.2.8
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: `/releases/get`,
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: `/releases/{release_id}`.replace(`{${"release_id"}}`, encodeURIComponent(String(requestParameters['releaseId']))),
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: `/releases/`,
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: `/updates/{last_known_id}`.replace(`{${"last_known_id"}}`, encodeURIComponent(String(requestParameters['lastKnownId']))),
409
+ path: urlPath,
396
410
  method: 'GET',
397
411
  headers: headerParameters,
398
412
  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.2.8
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: `/stats/`,
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.2.8
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'],
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -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.2.8
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).
@@ -20,29 +20,11 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface PasteInput {
22
22
  /**
23
- *
24
- * @type {string}
25
- * @memberof PasteInput
26
- */
27
- id?: string | null;
28
- /**
29
- *
23
+ * The text content of the paste
30
24
  * @type {string}
31
25
  * @memberof PasteInput
32
26
  */
33
27
  content: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof PasteInput
38
- */
39
- ipAddress: string;
40
- /**
41
- *
42
- * @type {Date}
43
- * @memberof PasteInput
44
- */
45
- createdAt?: Date;
46
28
  }
47
29
 
48
30
  /**
@@ -50,7 +32,6 @@ export interface PasteInput {
50
32
  */
51
33
  export function instanceOfPasteInput(value: object): value is PasteInput {
52
34
  if (!('content' in value) || value['content'] === undefined) return false;
53
- if (!('ipAddress' in value) || value['ipAddress'] === undefined) return false;
54
35
  return true;
55
36
  }
56
37
 
@@ -64,10 +45,7 @@ export function PasteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean)
64
45
  }
65
46
  return {
66
47
 
67
- 'id': json['_id'] == null ? undefined : json['_id'],
68
48
  'content': json['content'],
69
- 'ipAddress': json['ip_address'],
70
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
71
49
  };
72
50
  }
73
51
 
@@ -82,10 +60,7 @@ export function PasteInputToJSONTyped(value?: PasteInput | null, ignoreDiscrimin
82
60
 
83
61
  return {
84
62
 
85
- '_id': value['id'],
86
63
  'content': value['content'],
87
- 'ip_address': value['ipAddress'],
88
- 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
89
64
  };
90
65
  }
91
66
 
@@ -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.2.8
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).
@@ -20,37 +20,38 @@ import { mapValues } from '../runtime';
20
20
  */
21
21
  export interface PasteOutput {
22
22
  /**
23
- *
23
+ * Paste ID
24
24
  * @type {string}
25
25
  * @memberof PasteOutput
26
26
  */
27
- id?: string | null;
27
+ id: string;
28
28
  /**
29
- *
29
+ * The text content of the paste
30
30
  * @type {string}
31
31
  * @memberof PasteOutput
32
32
  */
33
33
  content: string;
34
34
  /**
35
- *
36
- * @type {string}
35
+ * When the paste was created
36
+ * @type {Date}
37
37
  * @memberof PasteOutput
38
38
  */
39
- ipAddress: string;
39
+ createdAt: Date;
40
40
  /**
41
41
  *
42
- * @type {Date}
42
+ * @type {boolean}
43
43
  * @memberof PasteOutput
44
44
  */
45
- createdAt?: Date;
45
+ isOwner?: boolean | null;
46
46
  }
47
47
 
48
48
  /**
49
49
  * Check if a given object implements the PasteOutput interface.
50
50
  */
51
51
  export function instanceOfPasteOutput(value: object): value is PasteOutput {
52
+ if (!('id' in value) || value['id'] === undefined) return false;
52
53
  if (!('content' in value) || value['content'] === undefined) return false;
53
- if (!('ipAddress' in value) || value['ipAddress'] === undefined) return false;
54
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
54
55
  return true;
55
56
  }
56
57
 
@@ -64,10 +65,10 @@ export function PasteOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean
64
65
  }
65
66
  return {
66
67
 
67
- 'id': json['_id'] == null ? undefined : json['_id'],
68
+ 'id': json['id'],
68
69
  'content': json['content'],
69
- 'ipAddress': json['ip_address'],
70
- 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
70
+ 'createdAt': (new Date(json['created_at'])),
71
+ 'isOwner': json['isOwner'] == null ? undefined : json['isOwner'],
71
72
  };
72
73
  }
73
74
 
@@ -82,10 +83,10 @@ export function PasteOutputToJSONTyped(value?: PasteOutput | null, ignoreDiscrim
82
83
 
83
84
  return {
84
85
 
85
- '_id': value['id'],
86
+ 'id': value['id'],
86
87
  'content': value['content'],
87
- 'ip_address': value['ipAddress'],
88
- 'created_at': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
88
+ 'created_at': value['createdAt'].toISOString(),
89
+ 'isOwner': value['isOwner'],
89
90
  };
90
91
  }
91
92
 
@@ -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.2.8
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).
@@ -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.2.8
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).