@orangefox-recovery/foxclient 6.0.10 → 6.1.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 (226) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +16 -4
  3. package/dist/apis/DeviceApi.d.ts +1 -1
  4. package/dist/apis/DeviceApi.js +1 -1
  5. package/dist/apis/PasteApi.d.ts +1 -1
  6. package/dist/apis/PasteApi.js +1 -1
  7. package/dist/apis/ReleaseApi.d.ts +5 -5
  8. package/dist/apis/ReleaseApi.js +3 -3
  9. package/dist/apis/ReportApi.d.ts +1 -1
  10. package/dist/apis/ReportApi.js +1 -1
  11. package/dist/apis/StatsApi.d.ts +1 -1
  12. package/dist/apis/StatsApi.js +1 -1
  13. package/dist/apis/UptimeApi.d.ts +1 -1
  14. package/dist/apis/UptimeApi.js +1 -1
  15. package/dist/apis/WikiApi.d.ts +219 -0
  16. package/dist/apis/WikiApi.js +245 -0
  17. package/dist/apis/index.d.ts +1 -0
  18. package/dist/apis/index.js +1 -0
  19. package/dist/esm/apis/DeviceApi.d.ts +1 -1
  20. package/dist/esm/apis/DeviceApi.js +1 -1
  21. package/dist/esm/apis/PasteApi.d.ts +1 -1
  22. package/dist/esm/apis/PasteApi.js +1 -1
  23. package/dist/esm/apis/ReleaseApi.d.ts +5 -5
  24. package/dist/esm/apis/ReleaseApi.js +3 -3
  25. package/dist/esm/apis/ReportApi.d.ts +1 -1
  26. package/dist/esm/apis/ReportApi.js +1 -1
  27. package/dist/esm/apis/StatsApi.d.ts +1 -1
  28. package/dist/esm/apis/StatsApi.js +1 -1
  29. package/dist/esm/apis/UptimeApi.d.ts +1 -1
  30. package/dist/esm/apis/UptimeApi.js +1 -1
  31. package/dist/esm/apis/WikiApi.d.ts +219 -0
  32. package/dist/esm/apis/WikiApi.js +241 -0
  33. package/dist/esm/apis/index.d.ts +1 -0
  34. package/dist/esm/apis/index.js +1 -0
  35. package/dist/esm/models/DeviceResponse.d.ts +1 -1
  36. package/dist/esm/models/DeviceResponse.js +1 -1
  37. package/dist/esm/models/ErrorResponse.d.ts +1 -1
  38. package/dist/esm/models/ErrorResponse.js +1 -1
  39. package/dist/esm/models/GlobalStatsResponse.d.ts +1 -1
  40. package/dist/esm/models/GlobalStatsResponse.js +1 -1
  41. package/dist/esm/models/ListResponseReleaseResponse.d.ts +12 -2
  42. package/dist/esm/models/ListResponseReleaseResponse.js +5 -1
  43. package/dist/esm/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
  44. package/dist/esm/models/ListResponseReleaseResponseDataInner.js +1 -1
  45. package/dist/esm/models/ListResponseShortDeviceResponse.d.ts +12 -2
  46. package/dist/esm/models/ListResponseShortDeviceResponse.js +5 -1
  47. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
  48. package/dist/esm/models/ListResponseShortDeviceResponseDataInner.js +1 -1
  49. package/dist/esm/models/ListResponseString.d.ts +12 -2
  50. package/dist/esm/models/ListResponseString.js +5 -1
  51. package/dist/esm/models/ListResponseWikiPageShortResponse.d.ts +49 -0
  52. package/dist/esm/models/ListResponseWikiPageShortResponse.js +52 -0
  53. package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
  54. package/dist/esm/models/ListResponseWikiPageShortResponseDataInner.js +81 -0
  55. package/dist/esm/models/ListResponseWikiSiteResponse.d.ts +49 -0
  56. package/dist/esm/models/ListResponseWikiSiteResponse.js +52 -0
  57. package/dist/esm/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
  58. package/dist/esm/models/ListResponseWikiSiteResponseDataInner.js +65 -0
  59. package/dist/esm/models/MaintainerShortResponse.d.ts +1 -1
  60. package/dist/esm/models/MaintainerShortResponse.js +1 -1
  61. package/dist/esm/models/NewReportRequest.d.ts +1 -1
  62. package/dist/esm/models/NewReportRequest.js +1 -1
  63. package/dist/esm/models/PasteInput.d.ts +1 -1
  64. package/dist/esm/models/PasteInput.js +1 -1
  65. package/dist/esm/models/PasteResponse.d.ts +1 -1
  66. package/dist/esm/models/PasteResponse.js +1 -1
  67. package/dist/esm/models/RecoveryImgResponse.d.ts +1 -1
  68. package/dist/esm/models/RecoveryImgResponse.js +1 -1
  69. package/dist/esm/models/ReleaseGroupsResponse.d.ts +1 -1
  70. package/dist/esm/models/ReleaseGroupsResponse.js +1 -1
  71. package/dist/esm/models/ReleaseListResponse.d.ts +1 -1
  72. package/dist/esm/models/ReleaseListResponse.js +1 -1
  73. package/dist/esm/models/ReleaseResponse.d.ts +1 -1
  74. package/dist/esm/models/ReleaseResponse.js +1 -1
  75. package/dist/esm/models/ShortDeviceResponse.d.ts +1 -1
  76. package/dist/esm/models/ShortDeviceResponse.js +1 -1
  77. package/dist/esm/models/ShortReleaseResponse.d.ts +1 -1
  78. package/dist/esm/models/ShortReleaseResponse.js +1 -1
  79. package/dist/esm/models/TokenResponse.d.ts +1 -1
  80. package/dist/esm/models/TokenResponse.js +1 -1
  81. package/dist/esm/models/UptimeHealth.d.ts +1 -1
  82. package/dist/esm/models/UptimeHealth.js +1 -1
  83. package/dist/esm/models/UptimeHealthHost.d.ts +1 -1
  84. package/dist/esm/models/UptimeHealthHost.js +1 -1
  85. package/dist/esm/models/UptimeMonitor.d.ts +1 -1
  86. package/dist/esm/models/UptimeMonitor.js +1 -1
  87. package/dist/esm/models/UptimeMonitorGroup.d.ts +1 -1
  88. package/dist/esm/models/UptimeMonitorGroup.js +1 -1
  89. package/dist/esm/models/UptimeMonitors.d.ts +1 -1
  90. package/dist/esm/models/UptimeMonitors.js +1 -1
  91. package/dist/esm/models/UptimeResponse.d.ts +1 -1
  92. package/dist/esm/models/UptimeResponse.js +1 -1
  93. package/dist/esm/models/WikiPageResponse.d.ts +128 -0
  94. package/dist/esm/models/WikiPageResponse.js +97 -0
  95. package/dist/esm/models/WikiPageShortResponse.d.ts +99 -0
  96. package/dist/esm/models/WikiPageShortResponse.js +81 -0
  97. package/dist/esm/models/WikiSiteResponse.d.ts +74 -0
  98. package/dist/esm/models/WikiSiteResponse.js +65 -0
  99. package/dist/esm/models/index.d.ts +7 -0
  100. package/dist/esm/models/index.js +7 -0
  101. package/dist/esm/runtime.d.ts +1 -1
  102. package/dist/esm/runtime.js +1 -1
  103. package/dist/models/DeviceResponse.d.ts +1 -1
  104. package/dist/models/DeviceResponse.js +1 -1
  105. package/dist/models/ErrorResponse.d.ts +1 -1
  106. package/dist/models/ErrorResponse.js +1 -1
  107. package/dist/models/GlobalStatsResponse.d.ts +1 -1
  108. package/dist/models/GlobalStatsResponse.js +1 -1
  109. package/dist/models/ListResponseReleaseResponse.d.ts +12 -2
  110. package/dist/models/ListResponseReleaseResponse.js +5 -1
  111. package/dist/models/ListResponseReleaseResponseDataInner.d.ts +1 -1
  112. package/dist/models/ListResponseReleaseResponseDataInner.js +1 -1
  113. package/dist/models/ListResponseShortDeviceResponse.d.ts +12 -2
  114. package/dist/models/ListResponseShortDeviceResponse.js +5 -1
  115. package/dist/models/ListResponseShortDeviceResponseDataInner.d.ts +1 -1
  116. package/dist/models/ListResponseShortDeviceResponseDataInner.js +1 -1
  117. package/dist/models/ListResponseString.d.ts +12 -2
  118. package/dist/models/ListResponseString.js +5 -1
  119. package/dist/models/ListResponseWikiPageShortResponse.d.ts +49 -0
  120. package/dist/models/ListResponseWikiPageShortResponse.js +59 -0
  121. package/dist/models/ListResponseWikiPageShortResponseDataInner.d.ts +99 -0
  122. package/dist/models/ListResponseWikiPageShortResponseDataInner.js +88 -0
  123. package/dist/models/ListResponseWikiSiteResponse.d.ts +49 -0
  124. package/dist/models/ListResponseWikiSiteResponse.js +59 -0
  125. package/dist/models/ListResponseWikiSiteResponseDataInner.d.ts +74 -0
  126. package/dist/models/ListResponseWikiSiteResponseDataInner.js +72 -0
  127. package/dist/models/MaintainerShortResponse.d.ts +1 -1
  128. package/dist/models/MaintainerShortResponse.js +1 -1
  129. package/dist/models/NewReportRequest.d.ts +1 -1
  130. package/dist/models/NewReportRequest.js +1 -1
  131. package/dist/models/PasteInput.d.ts +1 -1
  132. package/dist/models/PasteInput.js +1 -1
  133. package/dist/models/PasteResponse.d.ts +1 -1
  134. package/dist/models/PasteResponse.js +1 -1
  135. package/dist/models/RecoveryImgResponse.d.ts +1 -1
  136. package/dist/models/RecoveryImgResponse.js +1 -1
  137. package/dist/models/ReleaseGroupsResponse.d.ts +1 -1
  138. package/dist/models/ReleaseGroupsResponse.js +1 -1
  139. package/dist/models/ReleaseListResponse.d.ts +1 -1
  140. package/dist/models/ReleaseListResponse.js +1 -1
  141. package/dist/models/ReleaseResponse.d.ts +1 -1
  142. package/dist/models/ReleaseResponse.js +1 -1
  143. package/dist/models/ShortDeviceResponse.d.ts +1 -1
  144. package/dist/models/ShortDeviceResponse.js +1 -1
  145. package/dist/models/ShortReleaseResponse.d.ts +1 -1
  146. package/dist/models/ShortReleaseResponse.js +1 -1
  147. package/dist/models/TokenResponse.d.ts +1 -1
  148. package/dist/models/TokenResponse.js +1 -1
  149. package/dist/models/UptimeHealth.d.ts +1 -1
  150. package/dist/models/UptimeHealth.js +1 -1
  151. package/dist/models/UptimeHealthHost.d.ts +1 -1
  152. package/dist/models/UptimeHealthHost.js +1 -1
  153. package/dist/models/UptimeMonitor.d.ts +1 -1
  154. package/dist/models/UptimeMonitor.js +1 -1
  155. package/dist/models/UptimeMonitorGroup.d.ts +1 -1
  156. package/dist/models/UptimeMonitorGroup.js +1 -1
  157. package/dist/models/UptimeMonitors.d.ts +1 -1
  158. package/dist/models/UptimeMonitors.js +1 -1
  159. package/dist/models/UptimeResponse.d.ts +1 -1
  160. package/dist/models/UptimeResponse.js +1 -1
  161. package/dist/models/WikiPageResponse.d.ts +128 -0
  162. package/dist/models/WikiPageResponse.js +104 -0
  163. package/dist/models/WikiPageShortResponse.d.ts +99 -0
  164. package/dist/models/WikiPageShortResponse.js +88 -0
  165. package/dist/models/WikiSiteResponse.d.ts +74 -0
  166. package/dist/models/WikiSiteResponse.js +72 -0
  167. package/dist/models/index.d.ts +7 -0
  168. package/dist/models/index.js +7 -0
  169. package/dist/runtime.d.ts +1 -1
  170. package/dist/runtime.js +1 -1
  171. package/docs/ListResponseReleaseResponse.md +2 -0
  172. package/docs/ListResponseShortDeviceResponse.md +2 -0
  173. package/docs/ListResponseString.md +2 -0
  174. package/docs/ListResponseWikiPageShortResponse.md +38 -0
  175. package/docs/ListResponseWikiPageShortResponseDataInner.md +57 -0
  176. package/docs/ListResponseWikiSiteResponse.md +38 -0
  177. package/docs/ListResponseWikiSiteResponseDataInner.md +48 -0
  178. package/docs/ReleaseApi.md +2 -2
  179. package/docs/ReleaseListResponse.md +2 -0
  180. package/docs/WikiApi.md +360 -0
  181. package/docs/WikiPageResponse.md +66 -0
  182. package/docs/WikiPageShortResponse.md +57 -0
  183. package/docs/WikiSiteResponse.md +48 -0
  184. package/package.json +1 -1
  185. package/src/apis/DeviceApi.ts +1 -1
  186. package/src/apis/PasteApi.ts +1 -1
  187. package/src/apis/ReleaseApi.ts +5 -5
  188. package/src/apis/ReportApi.ts +1 -1
  189. package/src/apis/StatsApi.ts +1 -1
  190. package/src/apis/UptimeApi.ts +1 -1
  191. package/src/apis/WikiApi.ts +452 -0
  192. package/src/apis/index.ts +1 -0
  193. package/src/models/DeviceResponse.ts +1 -1
  194. package/src/models/ErrorResponse.ts +1 -1
  195. package/src/models/GlobalStatsResponse.ts +1 -1
  196. package/src/models/ListResponseReleaseResponse.ts +15 -2
  197. package/src/models/ListResponseReleaseResponseDataInner.ts +1 -1
  198. package/src/models/ListResponseShortDeviceResponse.ts +15 -2
  199. package/src/models/ListResponseShortDeviceResponseDataInner.ts +1 -1
  200. package/src/models/ListResponseString.ts +15 -2
  201. package/src/models/ListResponseWikiPageShortResponse.ts +96 -0
  202. package/src/models/ListResponseWikiPageShortResponseDataInner.ts +163 -0
  203. package/src/models/ListResponseWikiSiteResponse.ts +96 -0
  204. package/src/models/ListResponseWikiSiteResponseDataInner.ts +126 -0
  205. package/src/models/MaintainerShortResponse.ts +1 -1
  206. package/src/models/NewReportRequest.ts +1 -1
  207. package/src/models/PasteInput.ts +1 -1
  208. package/src/models/PasteResponse.ts +1 -1
  209. package/src/models/RecoveryImgResponse.ts +1 -1
  210. package/src/models/ReleaseGroupsResponse.ts +1 -1
  211. package/src/models/ReleaseListResponse.ts +1 -1
  212. package/src/models/ReleaseResponse.ts +1 -1
  213. package/src/models/ShortDeviceResponse.ts +1 -1
  214. package/src/models/ShortReleaseResponse.ts +1 -1
  215. package/src/models/TokenResponse.ts +1 -1
  216. package/src/models/UptimeHealth.ts +1 -1
  217. package/src/models/UptimeHealthHost.ts +1 -1
  218. package/src/models/UptimeMonitor.ts +1 -1
  219. package/src/models/UptimeMonitorGroup.ts +1 -1
  220. package/src/models/UptimeMonitors.ts +1 -1
  221. package/src/models/UptimeResponse.ts +1 -1
  222. package/src/models/WikiPageResponse.ts +205 -0
  223. package/src/models/WikiPageShortResponse.ts +163 -0
  224. package/src/models/WikiSiteResponse.ts +126 -0
  225. package/src/models/index.ts +7 -0
  226. package/src/runtime.ts +1 -1
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
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
+ *
7
+ * The version of the OpenAPI document: 6.1.0
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ListResponseWikiPageShortResponseDataInner } from './ListResponseWikiPageShortResponseDataInner';
17
+ import {
18
+ ListResponseWikiPageShortResponseDataInnerFromJSON,
19
+ ListResponseWikiPageShortResponseDataInnerFromJSONTyped,
20
+ ListResponseWikiPageShortResponseDataInnerToJSON,
21
+ ListResponseWikiPageShortResponseDataInnerToJSONTyped,
22
+ } from './ListResponseWikiPageShortResponseDataInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListResponseWikiPageShortResponse
28
+ */
29
+ export interface ListResponseWikiPageShortResponse {
30
+ /**
31
+ * Number of items in *this page*, not the size of the collection.
32
+ * @type {number}
33
+ * @memberof ListResponseWikiPageShortResponse
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {Array<ListResponseWikiPageShortResponseDataInner>}
39
+ * @memberof ListResponseWikiPageShortResponse
40
+ */
41
+ data: Array<ListResponseWikiPageShortResponseDataInner>;
42
+ /**
43
+ * Whether further items exist beyond this page.
44
+ *
45
+ * List endpoints now apply a default page size, so `count` alone cannot
46
+ * tell a caller whether it has seen everything; without this a client
47
+ * would silently process a truncated result set.
48
+ * @type {boolean}
49
+ * @memberof ListResponseWikiPageShortResponse
50
+ */
51
+ hasMore: boolean;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ListResponseWikiPageShortResponse interface.
56
+ */
57
+ export function instanceOfListResponseWikiPageShortResponse(value: object): value is ListResponseWikiPageShortResponse {
58
+ if (!('count' in value) || value['count'] === undefined) return false;
59
+ if (!('data' in value) || value['data'] === undefined) return false;
60
+ if (!('hasMore' in value) || value['hasMore'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function ListResponseWikiPageShortResponseFromJSON(json: any): ListResponseWikiPageShortResponse {
65
+ return ListResponseWikiPageShortResponseFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function ListResponseWikiPageShortResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiPageShortResponse {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'count': json['count'],
75
+ 'data': ((json['data'] as Array<any>).map(ListResponseWikiPageShortResponseDataInnerFromJSON)),
76
+ 'hasMore': json['has_more'],
77
+ };
78
+ }
79
+
80
+ export function ListResponseWikiPageShortResponseToJSON(json: any): ListResponseWikiPageShortResponse {
81
+ return ListResponseWikiPageShortResponseToJSONTyped(json, false);
82
+ }
83
+
84
+ export function ListResponseWikiPageShortResponseToJSONTyped(value?: ListResponseWikiPageShortResponse | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'count': value['count'],
92
+ 'data': ((value['data'] as Array<any>).map(ListResponseWikiPageShortResponseDataInnerToJSON)),
93
+ 'has_more': value['hasMore'],
94
+ };
95
+ }
96
+
@@ -0,0 +1,163 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
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
+ *
7
+ * The version of the OpenAPI document: 6.1.0
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * A page without its body. FoxWiki fetches the whole set of these once and
18
+ * builds its navigation tree from them, so this must stay cheap.
19
+ * @export
20
+ * @interface ListResponseWikiPageShortResponseDataInner
21
+ */
22
+ export interface ListResponseWikiPageShortResponseDataInner {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof ListResponseWikiPageShortResponseDataInner
27
+ */
28
+ description?: string | null;
29
+ /**
30
+ * Always `false` on public responses — drafts are filtered out by the query.
31
+ * @type {boolean}
32
+ * @memberof ListResponseWikiPageShortResponseDataInner
33
+ */
34
+ draft: boolean;
35
+ /**
36
+ * Last path segment.
37
+ * @type {string}
38
+ * @memberof ListResponseWikiPageShortResponseDataInner
39
+ */
40
+ fileName: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ListResponseWikiPageShortResponseDataInner
45
+ */
46
+ icon?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ListResponseWikiPageShortResponseDataInner
51
+ */
52
+ id: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ListResponseWikiPageShortResponseDataInner
57
+ */
58
+ image?: string | null;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ListResponseWikiPageShortResponseDataInner
63
+ */
64
+ lastUpdated: string;
65
+ /**
66
+ *
67
+ * @type {boolean}
68
+ * @memberof ListResponseWikiPageShortResponseDataInner
69
+ */
70
+ noindex: boolean;
71
+ /**
72
+ * Parent folder path, "" at the root.
73
+ * @type {string}
74
+ * @memberof ListResponseWikiPageShortResponseDataInner
75
+ */
76
+ parentPath: string;
77
+ /**
78
+ *
79
+ * @type {string}
80
+ * @memberof ListResponseWikiPageShortResponseDataInner
81
+ */
82
+ path: string;
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof ListResponseWikiPageShortResponseDataInner
87
+ */
88
+ title: string;
89
+ /**
90
+ * "md" or "json". Named `type` to match FoxWiki's `WikiPageShort`.
91
+ * @type {string}
92
+ * @memberof ListResponseWikiPageShortResponseDataInner
93
+ */
94
+ type: string;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the ListResponseWikiPageShortResponseDataInner interface.
99
+ */
100
+ export function instanceOfListResponseWikiPageShortResponseDataInner(value: object): value is ListResponseWikiPageShortResponseDataInner {
101
+ if (!('draft' in value) || value['draft'] === undefined) return false;
102
+ if (!('fileName' in value) || value['fileName'] === undefined) return false;
103
+ if (!('id' in value) || value['id'] === undefined) return false;
104
+ if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
105
+ if (!('noindex' in value) || value['noindex'] === undefined) return false;
106
+ if (!('parentPath' in value) || value['parentPath'] === undefined) return false;
107
+ if (!('path' in value) || value['path'] === undefined) return false;
108
+ if (!('title' in value) || value['title'] === undefined) return false;
109
+ if (!('type' in value) || value['type'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function ListResponseWikiPageShortResponseDataInnerFromJSON(json: any): ListResponseWikiPageShortResponseDataInner {
114
+ return ListResponseWikiPageShortResponseDataInnerFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function ListResponseWikiPageShortResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiPageShortResponseDataInner {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'description': json['description'] == null ? undefined : json['description'],
124
+ 'draft': json['draft'],
125
+ 'fileName': json['file_name'],
126
+ 'icon': json['icon'] == null ? undefined : json['icon'],
127
+ 'id': json['id'],
128
+ 'image': json['image'] == null ? undefined : json['image'],
129
+ 'lastUpdated': json['last_updated'],
130
+ 'noindex': json['noindex'],
131
+ 'parentPath': json['parent_path'],
132
+ 'path': json['path'],
133
+ 'title': json['title'],
134
+ 'type': json['type'],
135
+ };
136
+ }
137
+
138
+ export function ListResponseWikiPageShortResponseDataInnerToJSON(json: any): ListResponseWikiPageShortResponseDataInner {
139
+ return ListResponseWikiPageShortResponseDataInnerToJSONTyped(json, false);
140
+ }
141
+
142
+ export function ListResponseWikiPageShortResponseDataInnerToJSONTyped(value?: ListResponseWikiPageShortResponseDataInner | null, ignoreDiscriminator: boolean = false): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+
147
+ return {
148
+
149
+ 'description': value['description'],
150
+ 'draft': value['draft'],
151
+ 'file_name': value['fileName'],
152
+ 'icon': value['icon'],
153
+ 'id': value['id'],
154
+ 'image': value['image'],
155
+ 'last_updated': value['lastUpdated'],
156
+ 'noindex': value['noindex'],
157
+ 'parent_path': value['parentPath'],
158
+ 'path': value['path'],
159
+ 'title': value['title'],
160
+ 'type': value['type'],
161
+ };
162
+ }
163
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
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
+ *
7
+ * The version of the OpenAPI document: 6.1.0
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { ListResponseWikiSiteResponseDataInner } from './ListResponseWikiSiteResponseDataInner';
17
+ import {
18
+ ListResponseWikiSiteResponseDataInnerFromJSON,
19
+ ListResponseWikiSiteResponseDataInnerFromJSONTyped,
20
+ ListResponseWikiSiteResponseDataInnerToJSON,
21
+ ListResponseWikiSiteResponseDataInnerToJSONTyped,
22
+ } from './ListResponseWikiSiteResponseDataInner';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface ListResponseWikiSiteResponse
28
+ */
29
+ export interface ListResponseWikiSiteResponse {
30
+ /**
31
+ * Number of items in *this page*, not the size of the collection.
32
+ * @type {number}
33
+ * @memberof ListResponseWikiSiteResponse
34
+ */
35
+ count: number;
36
+ /**
37
+ *
38
+ * @type {Array<ListResponseWikiSiteResponseDataInner>}
39
+ * @memberof ListResponseWikiSiteResponse
40
+ */
41
+ data: Array<ListResponseWikiSiteResponseDataInner>;
42
+ /**
43
+ * Whether further items exist beyond this page.
44
+ *
45
+ * List endpoints now apply a default page size, so `count` alone cannot
46
+ * tell a caller whether it has seen everything; without this a client
47
+ * would silently process a truncated result set.
48
+ * @type {boolean}
49
+ * @memberof ListResponseWikiSiteResponse
50
+ */
51
+ hasMore: boolean;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the ListResponseWikiSiteResponse interface.
56
+ */
57
+ export function instanceOfListResponseWikiSiteResponse(value: object): value is ListResponseWikiSiteResponse {
58
+ if (!('count' in value) || value['count'] === undefined) return false;
59
+ if (!('data' in value) || value['data'] === undefined) return false;
60
+ if (!('hasMore' in value) || value['hasMore'] === undefined) return false;
61
+ return true;
62
+ }
63
+
64
+ export function ListResponseWikiSiteResponseFromJSON(json: any): ListResponseWikiSiteResponse {
65
+ return ListResponseWikiSiteResponseFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function ListResponseWikiSiteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiSiteResponse {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'count': json['count'],
75
+ 'data': ((json['data'] as Array<any>).map(ListResponseWikiSiteResponseDataInnerFromJSON)),
76
+ 'hasMore': json['has_more'],
77
+ };
78
+ }
79
+
80
+ export function ListResponseWikiSiteResponseToJSON(json: any): ListResponseWikiSiteResponse {
81
+ return ListResponseWikiSiteResponseToJSONTyped(json, false);
82
+ }
83
+
84
+ export function ListResponseWikiSiteResponseToJSONTyped(value?: ListResponseWikiSiteResponse | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'count': value['count'],
92
+ 'data': ((value['data'] as Array<any>).map(ListResponseWikiSiteResponseDataInnerToJSON)),
93
+ 'has_more': value['hasMore'],
94
+ };
95
+ }
96
+
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Fox API
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
+ *
7
+ * The version of the OpenAPI document: 6.1.0
8
+ * Contact: admin@orangefox.tech
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ListResponseWikiSiteResponseDataInner
20
+ */
21
+ export interface ListResponseWikiSiteResponseDataInner {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ListResponseWikiSiteResponseDataInner
26
+ */
27
+ createdAt: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ListResponseWikiSiteResponseDataInner
32
+ */
33
+ defaultPage: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof ListResponseWikiSiteResponseDataInner
38
+ */
39
+ description?: string | null;
40
+ /**
41
+ * Path prefix device maintainers may write under, if the site opted in.
42
+ * @type {string}
43
+ * @memberof ListResponseWikiSiteResponseDataInner
44
+ */
45
+ devicePages?: string | null;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof ListResponseWikiSiteResponseDataInner
50
+ */
51
+ id: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof ListResponseWikiSiteResponseDataInner
56
+ */
57
+ name: string;
58
+ /**
59
+ *
60
+ * @type {string}
61
+ * @memberof ListResponseWikiSiteResponseDataInner
62
+ */
63
+ slug: string;
64
+ /**
65
+ *
66
+ * @type {string}
67
+ * @memberof ListResponseWikiSiteResponseDataInner
68
+ */
69
+ updatedAt?: string | null;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the ListResponseWikiSiteResponseDataInner interface.
74
+ */
75
+ export function instanceOfListResponseWikiSiteResponseDataInner(value: object): value is ListResponseWikiSiteResponseDataInner {
76
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
77
+ if (!('defaultPage' in value) || value['defaultPage'] === undefined) return false;
78
+ if (!('id' in value) || value['id'] === undefined) return false;
79
+ if (!('name' in value) || value['name'] === undefined) return false;
80
+ if (!('slug' in value) || value['slug'] === undefined) return false;
81
+ return true;
82
+ }
83
+
84
+ export function ListResponseWikiSiteResponseDataInnerFromJSON(json: any): ListResponseWikiSiteResponseDataInner {
85
+ return ListResponseWikiSiteResponseDataInnerFromJSONTyped(json, false);
86
+ }
87
+
88
+ export function ListResponseWikiSiteResponseDataInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListResponseWikiSiteResponseDataInner {
89
+ if (json == null) {
90
+ return json;
91
+ }
92
+ return {
93
+
94
+ 'createdAt': json['created_at'],
95
+ 'defaultPage': json['default_page'],
96
+ 'description': json['description'] == null ? undefined : json['description'],
97
+ 'devicePages': json['device_pages'] == null ? undefined : json['device_pages'],
98
+ 'id': json['id'],
99
+ 'name': json['name'],
100
+ 'slug': json['slug'],
101
+ 'updatedAt': json['updated_at'] == null ? undefined : json['updated_at'],
102
+ };
103
+ }
104
+
105
+ export function ListResponseWikiSiteResponseDataInnerToJSON(json: any): ListResponseWikiSiteResponseDataInner {
106
+ return ListResponseWikiSiteResponseDataInnerToJSONTyped(json, false);
107
+ }
108
+
109
+ export function ListResponseWikiSiteResponseDataInnerToJSONTyped(value?: ListResponseWikiSiteResponseDataInner | null, ignoreDiscriminator: boolean = false): any {
110
+ if (value == null) {
111
+ return value;
112
+ }
113
+
114
+ return {
115
+
116
+ 'created_at': value['createdAt'],
117
+ 'default_page': value['defaultPage'],
118
+ 'description': value['description'],
119
+ 'device_pages': value['devicePages'],
120
+ 'id': value['id'],
121
+ 'name': value['name'],
122
+ 'slug': value['slug'],
123
+ 'updated_at': value['updatedAt'],
124
+ };
125
+ }
126
+
@@ -4,7 +4,7 @@
4
4
  * Fox API
5
5
  * Warning: Please add a custom user agent header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application\'s access to the API. In future, this may be a mandatory requirement. To reduce the system load, the API endpoints are rate limited. The default limit is 30 requests per minute. Contact admin@orangefox.tech if you need a higher limit. The requests may be logged for analytics and development purposes.
6
6
  *
7
- * The version of the OpenAPI document: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
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: 6.0.10
7
+ * The version of the OpenAPI document: 6.1.0
8
8
  * Contact: admin@orangefox.tech
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).