@orangefox-recovery/foxclient 5.3.3 → 5.4.0

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 (141) hide show
  1. package/.openapi-generator/FILES +2 -2
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +5 -5
  4. package/dist/apis/DeviceApi.d.ts +66 -9
  5. package/dist/apis/DeviceApi.js +60 -23
  6. package/dist/apis/PasteApi.d.ts +23 -1
  7. package/dist/apis/PasteApi.js +29 -11
  8. package/dist/apis/ReleaseApi.d.ts +76 -5
  9. package/dist/apis/ReleaseApi.js +60 -22
  10. package/dist/apis/StatsApi.d.ts +11 -1
  11. package/dist/apis/StatsApi.js +15 -6
  12. package/dist/esm/apis/DeviceApi.d.ts +66 -9
  13. package/dist/esm/apis/DeviceApi.js +60 -23
  14. package/dist/esm/apis/PasteApi.d.ts +23 -1
  15. package/dist/esm/apis/PasteApi.js +29 -11
  16. package/dist/esm/apis/ReleaseApi.d.ts +76 -5
  17. package/dist/esm/apis/ReleaseApi.js +60 -22
  18. package/dist/esm/apis/StatsApi.d.ts +11 -1
  19. package/dist/esm/apis/StatsApi.js +15 -6
  20. package/dist/esm/models/DeviceResponse.d.ts +1 -1
  21. package/dist/esm/models/DeviceResponse.js +1 -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/LocationInner.d.ts +26 -0
  35. package/dist/esm/models/{ValidationErrorLocInner.js → LocationInner.js} +9 -9
  36. package/dist/esm/models/MaintainerShortModel.d.ts +1 -1
  37. package/dist/esm/models/MaintainerShortModel.js +1 -1
  38. package/dist/esm/models/PasteInput.d.ts +1 -1
  39. package/dist/esm/models/PasteInput.js +1 -1
  40. package/dist/esm/models/PasteOutput.d.ts +1 -1
  41. package/dist/esm/models/PasteOutput.js +1 -1
  42. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  43. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  44. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  45. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  46. package/dist/esm/models/ReleaseResponse.d.ts +1 -1
  47. package/dist/esm/models/ReleaseResponse.js +1 -1
  48. package/dist/esm/models/ReleaseType.d.ts +1 -1
  49. package/dist/esm/models/ReleaseType.js +1 -1
  50. package/dist/esm/models/ReleasesSort.d.ts +1 -1
  51. package/dist/esm/models/ReleasesSort.js +1 -1
  52. package/dist/esm/models/ResponseGetReleases.d.ts +1 -1
  53. package/dist/esm/models/ResponseGetReleases.js +1 -1
  54. package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
  55. package/dist/esm/models/ShortDeviceResponse.js +1 -1
  56. package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
  57. package/dist/esm/models/ShortReleaseResponse.js +1 -1
  58. package/dist/esm/models/ValidationError.d.ts +16 -4
  59. package/dist/esm/models/ValidationError.js +8 -4
  60. package/dist/esm/models/index.d.ts +1 -1
  61. package/dist/esm/models/index.js +1 -1
  62. package/dist/esm/runtime.d.ts +1 -1
  63. package/dist/esm/runtime.js +16 -1
  64. package/dist/models/DeviceResponse.d.ts +1 -1
  65. package/dist/models/DeviceResponse.js +1 -1
  66. package/dist/models/GlobalStatsAggregationModel.d.ts +1 -1
  67. package/dist/models/GlobalStatsAggregationModel.js +1 -1
  68. package/dist/models/HTTPValidationError.d.ts +1 -1
  69. package/dist/models/HTTPValidationError.js +1 -1
  70. package/dist/models/ListResponseReleaseResponse.d.ts +1 -1
  71. package/dist/models/ListResponseReleaseResponse.js +1 -1
  72. package/dist/models/ListResponseShortDeviceResponse.d.ts +1 -1
  73. package/dist/models/ListResponseShortDeviceResponse.js +1 -1
  74. package/dist/models/ListResponseShortReleaseResponse.d.ts +1 -1
  75. package/dist/models/ListResponseShortReleaseResponse.js +1 -1
  76. package/dist/models/ListResponseStr.d.ts +1 -1
  77. package/dist/models/ListResponseStr.js +1 -1
  78. package/dist/models/LocationInner.d.ts +26 -0
  79. package/dist/models/LocationInner.js +38 -0
  80. package/dist/models/MaintainerShortModel.d.ts +1 -1
  81. package/dist/models/MaintainerShortModel.js +1 -1
  82. package/dist/models/PasteInput.d.ts +1 -1
  83. package/dist/models/PasteInput.js +1 -1
  84. package/dist/models/PasteOutput.d.ts +1 -1
  85. package/dist/models/PasteOutput.js +1 -1
  86. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  87. package/dist/models/RecoveryImgResponse.js +1 -1
  88. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  89. package/dist/models/ReleaseGroupsResponse.js +1 -1
  90. package/dist/models/ReleaseResponse.d.ts +1 -1
  91. package/dist/models/ReleaseResponse.js +1 -1
  92. package/dist/models/ReleaseType.d.ts +1 -1
  93. package/dist/models/ReleaseType.js +1 -1
  94. package/dist/models/ReleasesSort.d.ts +1 -1
  95. package/dist/models/ReleasesSort.js +1 -1
  96. package/dist/models/ResponseGetReleases.d.ts +1 -1
  97. package/dist/models/ResponseGetReleases.js +1 -1
  98. package/dist/models/ShortDeviceResponse.d.ts +1 -1
  99. package/dist/models/ShortDeviceResponse.js +1 -1
  100. package/dist/models/ShortReleaseResponse.d.ts +1 -1
  101. package/dist/models/ShortReleaseResponse.js +1 -1
  102. package/dist/models/ValidationError.d.ts +16 -4
  103. package/dist/models/ValidationError.js +8 -4
  104. package/dist/models/index.d.ts +1 -1
  105. package/dist/models/index.js +1 -1
  106. package/dist/runtime.d.ts +1 -1
  107. package/dist/runtime.js +16 -1
  108. package/docs/DeviceApi.md +2 -2
  109. package/docs/{ValidationErrorLocInner.md → LocationInner.md} +4 -4
  110. package/docs/ReleaseApi.md +1 -1
  111. package/docs/ValidationError.md +5 -1
  112. package/package.json +1 -2
  113. package/src/apis/DeviceApi.ts +104 -27
  114. package/src/apis/PasteApi.ts +43 -11
  115. package/src/apis/ReleaseApi.ts +115 -24
  116. package/src/apis/StatsApi.ts +21 -6
  117. package/src/models/DeviceResponse.ts +1 -1
  118. package/src/models/GlobalStatsAggregationModel.ts +1 -1
  119. package/src/models/HTTPValidationError.ts +1 -1
  120. package/src/models/ListResponseReleaseResponse.ts +1 -1
  121. package/src/models/ListResponseShortDeviceResponse.ts +1 -1
  122. package/src/models/ListResponseShortReleaseResponse.ts +1 -1
  123. package/src/models/ListResponseStr.ts +1 -1
  124. package/src/models/{ValidationErrorLocInner.ts → LocationInner.ts} +11 -11
  125. package/src/models/MaintainerShortModel.ts +1 -1
  126. package/src/models/PasteInput.ts +1 -1
  127. package/src/models/PasteOutput.ts +1 -1
  128. package/src/models/RecoveryImgResponse.ts +1 -1
  129. package/src/models/ReleaseGroupsResponse.ts +1 -1
  130. package/src/models/ReleaseResponse.ts +1 -1
  131. package/src/models/ReleaseType.ts +1 -1
  132. package/src/models/ReleasesSort.ts +1 -1
  133. package/src/models/ResponseGetReleases.ts +1 -1
  134. package/src/models/ShortDeviceResponse.ts +1 -1
  135. package/src/models/ShortReleaseResponse.ts +1 -1
  136. package/src/models/ValidationError.ts +27 -11
  137. package/src/models/index.ts +1 -1
  138. package/src/runtime.ts +19 -1
  139. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -26
  140. package/dist/models/ValidationErrorLocInner.d.ts +0 -26
  141. package/dist/models/ValidationErrorLocInner.js +0 -38
@@ -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.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,14 +2,14 @@
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.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
12
+ import type { LocationInner } from './LocationInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
18
18
  export interface ValidationError {
19
19
  /**
20
20
  *
21
- * @type {Array<ValidationErrorLocInner>}
21
+ * @type {Array<LocationInner>}
22
22
  * @memberof ValidationError
23
23
  */
24
- loc: Array<ValidationErrorLocInner>;
24
+ loc: Array<LocationInner>;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -34,6 +34,18 @@ export interface ValidationError {
34
34
  * @memberof ValidationError
35
35
  */
36
36
  type: string;
37
+ /**
38
+ *
39
+ * @type {any}
40
+ * @memberof ValidationError
41
+ */
42
+ input?: any | null;
43
+ /**
44
+ *
45
+ * @type {object}
46
+ * @memberof ValidationError
47
+ */
48
+ ctx?: object;
37
49
  }
38
50
  /**
39
51
  * Check if a given object implements the ValidationError interface.
@@ -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.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -18,7 +18,7 @@ exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
18
18
  exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
19
19
  exports.ValidationErrorToJSON = ValidationErrorToJSON;
20
20
  exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
21
- const ValidationErrorLocInner_1 = require("./ValidationErrorLocInner");
21
+ const LocationInner_1 = require("./LocationInner");
22
22
  /**
23
23
  * Check if a given object implements the ValidationError interface.
24
24
  */
@@ -39,9 +39,11 @@ function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
39
39
  return json;
40
40
  }
41
41
  return {
42
- 'loc': (json['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerFromJSON)),
42
+ 'loc': (json['loc'].map(LocationInner_1.LocationInnerFromJSON)),
43
43
  'msg': json['msg'],
44
44
  'type': json['type'],
45
+ 'input': json['input'] == null ? undefined : json['input'],
46
+ 'ctx': json['ctx'] == null ? undefined : json['ctx'],
45
47
  };
46
48
  }
47
49
  function ValidationErrorToJSON(json) {
@@ -52,8 +54,10 @@ function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
52
54
  return value;
53
55
  }
54
56
  return {
55
- 'loc': (value['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerToJSON)),
57
+ 'loc': (value['loc'].map(LocationInner_1.LocationInnerToJSON)),
56
58
  'msg': value['msg'],
57
59
  'type': value['type'],
60
+ 'input': value['input'],
61
+ 'ctx': value['ctx'],
58
62
  };
59
63
  }
@@ -5,6 +5,7 @@ export * from './ListResponseReleaseResponse';
5
5
  export * from './ListResponseShortDeviceResponse';
6
6
  export * from './ListResponseShortReleaseResponse';
7
7
  export * from './ListResponseStr';
8
+ export * from './LocationInner';
8
9
  export * from './MaintainerShortModel';
9
10
  export * from './PasteInput';
10
11
  export * from './PasteOutput';
@@ -17,4 +18,3 @@ export * from './ResponseGetReleases';
17
18
  export * from './ShortDeviceResponse';
18
19
  export * from './ShortReleaseResponse';
19
20
  export * from './ValidationError';
20
- export * from './ValidationErrorLocInner';
@@ -23,6 +23,7 @@ __exportStar(require("./ListResponseReleaseResponse"), exports);
23
23
  __exportStar(require("./ListResponseShortDeviceResponse"), exports);
24
24
  __exportStar(require("./ListResponseShortReleaseResponse"), exports);
25
25
  __exportStar(require("./ListResponseStr"), exports);
26
+ __exportStar(require("./LocationInner"), exports);
26
27
  __exportStar(require("./MaintainerShortModel"), exports);
27
28
  __exportStar(require("./PasteInput"), exports);
28
29
  __exportStar(require("./PasteOutput"), exports);
@@ -35,4 +36,3 @@ __exportStar(require("./ResponseGetReleases"), exports);
35
36
  __exportStar(require("./ShortDeviceResponse"), exports);
36
37
  __exportStar(require("./ShortReleaseResponse"), exports);
37
38
  __exportStar(require("./ValidationError"), exports);
38
- __exportStar(require("./ValidationErrorLocInner"), exports);
package/dist/runtime.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Fox API
3
3
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
4
4
  *
5
- * The version of the OpenAPI document: 5.3.3
5
+ * The version of the OpenAPI document: 5.4.0
6
6
  * Contact: admin@orangefox.tech
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/runtime.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Fox API
6
6
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
7
7
  *
8
- * The version of the OpenAPI document: 5.3.3
8
+ * The version of the OpenAPI document: 5.4.0
9
9
  * Contact: admin@orangefox.tech
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -232,6 +232,11 @@ class ResponseError extends Error {
232
232
  super(msg);
233
233
  this.response = response;
234
234
  this.name = "ResponseError";
235
+ // restore prototype chain
236
+ const actualProto = new.target.prototype;
237
+ if (Object.setPrototypeOf) {
238
+ Object.setPrototypeOf(this, actualProto);
239
+ }
235
240
  }
236
241
  }
237
242
  exports.ResponseError = ResponseError;
@@ -240,6 +245,11 @@ class FetchError extends Error {
240
245
  super(msg);
241
246
  this.cause = cause;
242
247
  this.name = "FetchError";
248
+ // restore prototype chain
249
+ const actualProto = new.target.prototype;
250
+ if (Object.setPrototypeOf) {
251
+ Object.setPrototypeOf(this, actualProto);
252
+ }
243
253
  }
244
254
  }
245
255
  exports.FetchError = FetchError;
@@ -248,6 +258,11 @@ class RequiredError extends Error {
248
258
  super(msg);
249
259
  this.field = field;
250
260
  this.name = "RequiredError";
261
+ // restore prototype chain
262
+ const actualProto = new.target.prototype;
263
+ if (Object.setPrototypeOf) {
264
+ Object.setPrototypeOf(this, actualProto);
265
+ }
251
266
  }
252
267
  }
253
268
  exports.RequiredError = RequiredError;
package/docs/DeviceApi.md CHANGED
@@ -17,7 +17,7 @@ All URIs are relative to *https://api.orangefox.download*
17
17
 
18
18
  Get Device
19
19
 
20
- Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename&#x3D;lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
20
+ Extended get device method, including the ability to get a device using device codename instead of the ID. /device/get?codename&#x3D;lavender Due to the reasons mentioned in the /device route, identification devices using their codenames are considered unrecommended.
21
21
 
22
22
  ### Example
23
23
 
@@ -162,7 +162,7 @@ No authorization required
162
162
 
163
163
  Get Devices
164
164
 
165
- Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\&#39;s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\&#39;s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\&#39;t support unified model names at all! In short, do not use model_name as device\&#39;s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\&#39;t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \&quot;Xiaomi\&quot; model_name: \&quot;Poco F5 Pro\&quot;. The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \&quot;/device/&lt;device_id&gt;\&quot; or \&quot;/device/get\&quot; method instead.
165
+ Get a device list. Device ID is the internal OrangeFox device identifier (https://www.mongodb.com/docs/manual/reference/method/ObjectId/). Please only use it for identification instead of codename or model_name if it\&#39;s possible. You would find two Device ID query parameters here, the _id one is left deprecated due to historical reasons, please use id instead. Please note that using model_name is unrecommended and considered deprecated as it\&#39;s very inconsistent around some OEMs that play with the names around. As of the current moment, the API won\&#39;t support unified model names at all! In short, do not use model_name as device\&#39;s identification. Be careful using codenames, there are a lot of problems and pain about those. Some OEMs keep releasing new phones with the same hardware as the old ones and may or may not update or change the codename for those. Currently, API doesn\&#39;t support unified devices; they would have only one codename. Our OEMs database would not include subbrands, they instead would be added to the model name. Like oem_name: \&quot;Xiaomi\&quot; model_name: \&quot;Poco F5 Pro\&quot;. The exclusions are merged ones, like OnePlus, as calling those BBK OnePlus is really weird in the respective communities. Note: You will get only a shortened device object with this method, if you want to get a full one, use \&quot;/device/&lt;device_id&gt;\&quot; or \&quot;/device/get\&quot; method instead.
166
166
 
167
167
  ### Example
168
168
 
@@ -1,5 +1,5 @@
1
1
 
2
- # ValidationErrorLocInner
2
+ # LocationInner
3
3
 
4
4
 
5
5
  ## Properties
@@ -10,11 +10,11 @@ Name | Type
10
10
  ## Example
11
11
 
12
12
  ```typescript
13
- import type { ValidationErrorLocInner } from '@orangefox-recovery/foxclient'
13
+ import type { LocationInner } from '@orangefox-recovery/foxclient'
14
14
 
15
15
  // TODO: Update the object below with actual values
16
16
  const example = {
17
- } satisfies ValidationErrorLocInner
17
+ } satisfies LocationInner
18
18
 
19
19
  console.log(example)
20
20
 
@@ -23,7 +23,7 @@ const exampleJSON: string = JSON.stringify(example)
23
23
  console.log(exampleJSON)
24
24
 
25
25
  // Parse the JSON string back to an object
26
- const exampleParsed = JSON.parse(exampleJSON) as ValidationErrorLocInner
26
+ const exampleParsed = JSON.parse(exampleJSON) as LocationInner
27
27
  console.log(exampleParsed)
28
28
  ```
29
29
 
@@ -162,7 +162,7 @@ No authorization required
162
162
 
163
163
  Get Releases
164
164
 
165
- Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\&#39;s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
165
+ Lists releases. This method contains a bunch of different parameters to filter releases for different cases. For example, you may use ?after_release_id param to get only releases that came after the last known one (aka get updates). You can filter releases by maintainer_id to get releases from a specific maintainer. This is the maintainer who released the build, not the current maintainer of the device. Getting releases by device codename is obsolete thought. The reason for this is that devices could change codenames eventually. Unfortunately, some OEMs and community make a total mess of them. Please use /device methods to determine the right device (preferably with the user decision), save the device ID somewhere and use it afterward. Version tag is deprecated for the same reason, it\&#39;s not really consistent, as it might contain patch and mod versions and very different by each maintainer.
166
166
 
167
167
  ### Example
168
168
 
@@ -6,9 +6,11 @@
6
6
 
7
7
  Name | Type
8
8
  ------------ | -------------
9
- `loc` | [Array&lt;ValidationErrorLocInner&gt;](ValidationErrorLocInner.md)
9
+ `loc` | [Array&lt;LocationInner&gt;](LocationInner.md)
10
10
  `msg` | string
11
11
  `type` | string
12
+ `input` | any
13
+ `ctx` | object
12
14
 
13
15
  ## Example
14
16
 
@@ -20,6 +22,8 @@ const example = {
20
22
  "loc": null,
21
23
  "msg": null,
22
24
  "type": null,
25
+ "input": null,
26
+ "ctx": null,
23
27
  } satisfies ValidationError
24
28
 
25
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orangefox-recovery/foxclient",
3
- "version": "5.3.3",
3
+ "version": "5.4.0",
4
4
  "description": "OpenAPI client for @orangefox-recovery/foxclient",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -29,7 +29,6 @@
29
29
  },
30
30
  "keywords": [],
31
31
  "license": "ISC",
32
- "type": "commonjs",
33
32
  "bugs": {
34
33
  "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID/issues"
35
34
  },