uapi-browser-sdk 0.1.4 → 0.1.12

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 (1073) hide show
  1. package/.github/workflows/release.yml +7 -11
  2. package/README.md +55 -55
  3. package/dist/internal/src/apis/ClipzyApi.d.ts +70 -0
  4. package/dist/internal/src/apis/ClipzyApi.js +139 -0
  5. package/dist/internal/src/apis/ConvertApi.d.ts +52 -0
  6. package/dist/internal/src/apis/ConvertApi.js +93 -0
  7. package/dist/internal/src/apis/DailyApi.d.ts +31 -0
  8. package/dist/internal/src/apis/DailyApi.js +50 -0
  9. package/dist/internal/src/apis/DefaultApi.d.ts +100 -0
  10. package/dist/internal/src/apis/DefaultApi.js +196 -0
  11. package/dist/internal/src/apis/GameApi.d.ts +104 -0
  12. package/dist/internal/src/apis/GameApi.js +205 -0
  13. package/dist/internal/src/apis/ImageApi.d.ts +279 -0
  14. package/dist/internal/src/apis/ImageApi.js +580 -0
  15. package/dist/internal/src/apis/MiscApi.d.ts +384 -0
  16. package/dist/internal/src/apis/MiscApi.js +731 -0
  17. package/dist/internal/src/apis/NetworkApi.d.ts +232 -0
  18. package/dist/internal/src/apis/NetworkApi.js +436 -0
  19. package/dist/internal/src/apis/PoemApi.d.ts +32 -0
  20. package/dist/internal/src/apis/PoemApi.js +51 -0
  21. package/dist/internal/src/apis/RandomApi.d.ts +132 -0
  22. package/dist/internal/src/apis/RandomApi.js +208 -0
  23. package/dist/internal/src/apis/SocialApi.d.ts +163 -0
  24. package/dist/internal/src/apis/SocialApi.js +337 -0
  25. package/dist/internal/src/apis/StatusApi.d.ts +52 -0
  26. package/dist/internal/src/apis/StatusApi.js +91 -0
  27. package/dist/internal/src/apis/TextApi.d.ts +205 -0
  28. package/dist/internal/src/apis/TextApi.js +417 -0
  29. package/dist/internal/src/apis/TranslateApi.d.ts +315 -0
  30. package/dist/internal/src/apis/TranslateApi.js +404 -0
  31. package/dist/internal/src/apis/WebParseApi.d.ts +86 -0
  32. package/dist/internal/src/apis/WebParseApi.js +166 -0
  33. package/dist/internal/src/apis/index.d.ts +15 -0
  34. package/dist/internal/src/apis/index.js +17 -0
  35. package/dist/internal/src/index.d.ts +3 -0
  36. package/dist/internal/src/index.js +5 -0
  37. package/dist/internal/src/models/GetAiTranslateLanguages200Response.d.ts +46 -0
  38. package/dist/internal/src/models/GetAiTranslateLanguages200Response.js +47 -0
  39. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseData.d.ts +47 -0
  40. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseData.js +48 -0
  41. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataContextsInner.d.ts +44 -0
  42. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataContextsInner.js +45 -0
  43. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataLanguagesInner.d.ts +44 -0
  44. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataLanguagesInner.js +45 -0
  45. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataStylesInner.d.ts +44 -0
  46. package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataStylesInner.js +45 -0
  47. package/dist/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.d.ts +44 -0
  48. package/dist/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.js +45 -0
  49. package/dist/internal/src/models/GetAnswerbookAsk200Response.d.ts +38 -0
  50. package/dist/internal/src/models/GetAnswerbookAsk200Response.js +43 -0
  51. package/dist/internal/src/models/GetAnswerbookAsk400Response.d.ts +38 -0
  52. package/dist/internal/src/models/GetAnswerbookAsk400Response.js +43 -0
  53. package/dist/internal/src/models/GetAnswerbookAsk500Response.d.ts +38 -0
  54. package/dist/internal/src/models/GetAnswerbookAsk500Response.js +43 -0
  55. package/dist/internal/src/models/GetAvatarGravatar400Response.d.ts +38 -0
  56. package/dist/internal/src/models/GetAvatarGravatar400Response.js +43 -0
  57. package/dist/internal/src/models/GetAvatarGravatar404Response.d.ts +38 -0
  58. package/dist/internal/src/models/GetAvatarGravatar404Response.js +43 -0
  59. package/dist/internal/src/models/GetClipzyGet200Response.d.ts +32 -0
  60. package/dist/internal/src/models/GetClipzyGet200Response.js +41 -0
  61. package/dist/internal/src/models/GetClipzyGet400Response.d.ts +32 -0
  62. package/dist/internal/src/models/GetClipzyGet400Response.js +41 -0
  63. package/dist/internal/src/models/GetClipzyGet404Response.d.ts +32 -0
  64. package/dist/internal/src/models/GetClipzyGet404Response.js +41 -0
  65. package/dist/internal/src/models/GetClipzyRaw400Response.d.ts +32 -0
  66. package/dist/internal/src/models/GetClipzyRaw400Response.js +41 -0
  67. package/dist/internal/src/models/GetClipzyRaw403Response.d.ts +32 -0
  68. package/dist/internal/src/models/GetClipzyRaw403Response.js +41 -0
  69. package/dist/internal/src/models/GetConvertUnixtime200Response.d.ts +38 -0
  70. package/dist/internal/src/models/GetConvertUnixtime200Response.js +43 -0
  71. package/dist/internal/src/models/GetConvertUnixtime400Response.d.ts +44 -0
  72. package/dist/internal/src/models/GetConvertUnixtime400Response.js +45 -0
  73. package/dist/internal/src/models/GetDailyNewsImage500Response.d.ts +38 -0
  74. package/dist/internal/src/models/GetDailyNewsImage500Response.js +43 -0
  75. package/dist/internal/src/models/GetDailyNewsImage502Response.d.ts +38 -0
  76. package/dist/internal/src/models/GetDailyNewsImage502Response.js +43 -0
  77. package/dist/internal/src/models/GetGameEpicFree200Response.d.ts +39 -0
  78. package/dist/internal/src/models/GetGameEpicFree200Response.js +44 -0
  79. package/dist/internal/src/models/GetGameEpicFree200ResponseDataInner.d.ts +104 -0
  80. package/dist/internal/src/models/GetGameEpicFree200ResponseDataInner.js +65 -0
  81. package/dist/internal/src/models/GetGameEpicFree500Response.d.ts +38 -0
  82. package/dist/internal/src/models/GetGameEpicFree500Response.js +43 -0
  83. package/dist/internal/src/models/GetGameMinecraftHistoryid200Response.d.ts +70 -0
  84. package/dist/internal/src/models/GetGameMinecraftHistoryid200Response.js +55 -0
  85. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseHistoryInner.d.ts +38 -0
  86. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseHistoryInner.js +43 -0
  87. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.d.ts +51 -0
  88. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.js +48 -0
  89. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.d.ts +38 -0
  90. package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.js +43 -0
  91. package/dist/internal/src/models/GetGameMinecraftHistoryid400Response.d.ts +44 -0
  92. package/dist/internal/src/models/GetGameMinecraftHistoryid400Response.js +45 -0
  93. package/dist/internal/src/models/GetGameMinecraftHistoryid404Response.d.ts +44 -0
  94. package/dist/internal/src/models/GetGameMinecraftHistoryid404Response.js +45 -0
  95. package/dist/internal/src/models/GetGameMinecraftHistoryid502Response.d.ts +44 -0
  96. package/dist/internal/src/models/GetGameMinecraftHistoryid502Response.js +45 -0
  97. package/dist/internal/src/models/GetGameMinecraftServerstatus200Response.d.ts +80 -0
  98. package/dist/internal/src/models/GetGameMinecraftServerstatus200Response.js +57 -0
  99. package/dist/internal/src/models/GetGameMinecraftServerstatus400Response.d.ts +44 -0
  100. package/dist/internal/src/models/GetGameMinecraftServerstatus400Response.js +45 -0
  101. package/dist/internal/src/models/GetGameMinecraftServerstatus404Response.d.ts +44 -0
  102. package/dist/internal/src/models/GetGameMinecraftServerstatus404Response.js +45 -0
  103. package/dist/internal/src/models/GetGameMinecraftServerstatus502Response.d.ts +44 -0
  104. package/dist/internal/src/models/GetGameMinecraftServerstatus502Response.js +45 -0
  105. package/dist/internal/src/models/GetGameMinecraftUserinfo200Response.d.ts +44 -0
  106. package/dist/internal/src/models/GetGameMinecraftUserinfo200Response.js +45 -0
  107. package/dist/internal/src/models/GetGameMinecraftUserinfo400Response.d.ts +44 -0
  108. package/dist/internal/src/models/GetGameMinecraftUserinfo400Response.js +45 -0
  109. package/dist/internal/src/models/GetGameMinecraftUserinfo404Response.d.ts +44 -0
  110. package/dist/internal/src/models/GetGameMinecraftUserinfo404Response.js +45 -0
  111. package/dist/internal/src/models/GetGameMinecraftUserinfo502Response.d.ts +44 -0
  112. package/dist/internal/src/models/GetGameMinecraftUserinfo502Response.js +45 -0
  113. package/dist/internal/src/models/GetGameSteamSummary200Response.d.ts +110 -0
  114. package/dist/internal/src/models/GetGameSteamSummary200Response.js +67 -0
  115. package/dist/internal/src/models/GetGameSteamSummary400Response.d.ts +44 -0
  116. package/dist/internal/src/models/GetGameSteamSummary400Response.js +45 -0
  117. package/dist/internal/src/models/GetGameSteamSummary401Response.d.ts +44 -0
  118. package/dist/internal/src/models/GetGameSteamSummary401Response.js +45 -0
  119. package/dist/internal/src/models/GetGameSteamSummary404Response.d.ts +44 -0
  120. package/dist/internal/src/models/GetGameSteamSummary404Response.js +45 -0
  121. package/dist/internal/src/models/GetGameSteamSummary502Response.d.ts +44 -0
  122. package/dist/internal/src/models/GetGameSteamSummary502Response.js +45 -0
  123. package/dist/internal/src/models/GetGithubRepo200Response.d.ts +174 -0
  124. package/dist/internal/src/models/GetGithubRepo200Response.js +89 -0
  125. package/dist/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.d.ts +50 -0
  126. package/dist/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.js +47 -0
  127. package/dist/internal/src/models/GetGithubRepo200ResponseLatestRelease.d.ts +62 -0
  128. package/dist/internal/src/models/GetGithubRepo200ResponseLatestRelease.js +51 -0
  129. package/dist/internal/src/models/GetGithubRepo400Response.d.ts +38 -0
  130. package/dist/internal/src/models/GetGithubRepo400Response.js +43 -0
  131. package/dist/internal/src/models/GetGithubRepo502Response.d.ts +38 -0
  132. package/dist/internal/src/models/GetGithubRepo502Response.js +43 -0
  133. package/dist/internal/src/models/GetHistoryProgrammer200Response.d.ts +45 -0
  134. package/dist/internal/src/models/GetHistoryProgrammer200Response.js +46 -0
  135. package/dist/internal/src/models/GetHistoryProgrammer200ResponseEventsInner.d.ts +68 -0
  136. package/dist/internal/src/models/GetHistoryProgrammer200ResponseEventsInner.js +53 -0
  137. package/dist/internal/src/models/GetHistoryProgrammer400Response.d.ts +38 -0
  138. package/dist/internal/src/models/GetHistoryProgrammer400Response.js +43 -0
  139. package/dist/internal/src/models/GetHistoryProgrammerToday200Response.d.ts +45 -0
  140. package/dist/internal/src/models/GetHistoryProgrammerToday200Response.js +46 -0
  141. package/dist/internal/src/models/GetHistoryProgrammerToday200ResponseEventsInner.d.ts +68 -0
  142. package/dist/internal/src/models/GetHistoryProgrammerToday200ResponseEventsInner.js +53 -0
  143. package/dist/internal/src/models/GetHistoryProgrammerToday500Response.d.ts +38 -0
  144. package/dist/internal/src/models/GetHistoryProgrammerToday500Response.js +43 -0
  145. package/dist/internal/src/models/GetImageBingDaily502Response.d.ts +38 -0
  146. package/dist/internal/src/models/GetImageBingDaily502Response.js +43 -0
  147. package/dist/internal/src/models/GetImageMotou400Response.d.ts +32 -0
  148. package/dist/internal/src/models/GetImageMotou400Response.js +41 -0
  149. package/dist/internal/src/models/GetImageMotou500Response.d.ts +32 -0
  150. package/dist/internal/src/models/GetImageMotou500Response.js +41 -0
  151. package/dist/internal/src/models/GetImageQrcode200Response.d.ts +32 -0
  152. package/dist/internal/src/models/GetImageQrcode200Response.js +41 -0
  153. package/dist/internal/src/models/GetImageQrcode400Response.d.ts +44 -0
  154. package/dist/internal/src/models/GetImageQrcode400Response.js +45 -0
  155. package/dist/internal/src/models/GetImageQrcode500Response.d.ts +44 -0
  156. package/dist/internal/src/models/GetImageQrcode500Response.js +45 -0
  157. package/dist/internal/src/models/GetImageTobase64200Response.d.ts +38 -0
  158. package/dist/internal/src/models/GetImageTobase64200Response.js +43 -0
  159. package/dist/internal/src/models/GetImageTobase64400Response.d.ts +44 -0
  160. package/dist/internal/src/models/GetImageTobase64400Response.js +45 -0
  161. package/dist/internal/src/models/GetImageTobase64502Response.d.ts +44 -0
  162. package/dist/internal/src/models/GetImageTobase64502Response.js +45 -0
  163. package/dist/internal/src/models/GetMiscDistrict200Response.d.ts +39 -0
  164. package/dist/internal/src/models/GetMiscDistrict200Response.js +44 -0
  165. package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInner.d.ts +105 -0
  166. package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInner.js +66 -0
  167. package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.d.ts +38 -0
  168. package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.js +43 -0
  169. package/dist/internal/src/models/GetMiscDistrict400Response.d.ts +38 -0
  170. package/dist/internal/src/models/GetMiscDistrict400Response.js +43 -0
  171. package/dist/internal/src/models/GetMiscHolidayCalendar200Response.d.ts +67 -0
  172. package/dist/internal/src/models/GetMiscHolidayCalendar200Response.js +56 -0
  173. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.d.ts +158 -0
  174. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.js +83 -0
  175. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.d.ts +61 -0
  176. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.js +57 -0
  177. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.d.ts +40 -0
  178. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.js +45 -0
  179. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.d.ts +39 -0
  180. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.js +44 -0
  181. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.d.ts +50 -0
  182. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.js +47 -0
  183. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.d.ts +39 -0
  184. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.js +44 -0
  185. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.d.ts +50 -0
  186. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.js +47 -0
  187. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.d.ts +68 -0
  188. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.js +53 -0
  189. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.d.ts +68 -0
  190. package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.js +53 -0
  191. package/dist/internal/src/models/GetMiscHolidayCalendar400Response.d.ts +38 -0
  192. package/dist/internal/src/models/GetMiscHolidayCalendar400Response.js +43 -0
  193. package/dist/internal/src/models/GetMiscHotboard200Response.d.ts +24 -0
  194. package/dist/internal/src/models/GetMiscHotboard200Response.js +58 -0
  195. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf.d.ts +51 -0
  196. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf.js +48 -0
  197. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1.d.ts +51 -0
  198. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1.js +48 -0
  199. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.d.ts +44 -0
  200. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.js +45 -0
  201. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf2.d.ts +32 -0
  202. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf2.js +41 -0
  203. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.d.ts +64 -0
  204. package/dist/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.js +51 -0
  205. package/dist/internal/src/models/GetMiscHotboard400Response.d.ts +44 -0
  206. package/dist/internal/src/models/GetMiscHotboard400Response.js +45 -0
  207. package/dist/internal/src/models/GetMiscHotboard500Response.d.ts +44 -0
  208. package/dist/internal/src/models/GetMiscHotboard500Response.js +45 -0
  209. package/dist/internal/src/models/GetMiscHotboard502Response.d.ts +44 -0
  210. package/dist/internal/src/models/GetMiscHotboard502Response.js +45 -0
  211. package/dist/internal/src/models/GetMiscLunartime200Response.d.ts +158 -0
  212. package/dist/internal/src/models/GetMiscLunartime200Response.js +83 -0
  213. package/dist/internal/src/models/GetMiscLunartime400Response.d.ts +38 -0
  214. package/dist/internal/src/models/GetMiscLunartime400Response.js +43 -0
  215. package/dist/internal/src/models/GetMiscPhoneinfo200Response.d.ts +44 -0
  216. package/dist/internal/src/models/GetMiscPhoneinfo200Response.js +45 -0
  217. package/dist/internal/src/models/GetMiscPhoneinfo400Response.d.ts +44 -0
  218. package/dist/internal/src/models/GetMiscPhoneinfo400Response.js +45 -0
  219. package/dist/internal/src/models/GetMiscPhoneinfo500Response.d.ts +44 -0
  220. package/dist/internal/src/models/GetMiscPhoneinfo500Response.js +45 -0
  221. package/dist/internal/src/models/GetMiscRandomnumber200Response.d.ts +32 -0
  222. package/dist/internal/src/models/GetMiscRandomnumber200Response.js +41 -0
  223. package/dist/internal/src/models/GetMiscRandomnumber400Response.d.ts +44 -0
  224. package/dist/internal/src/models/GetMiscRandomnumber400Response.js +45 -0
  225. package/dist/internal/src/models/GetMiscTimestamp200Response.d.ts +56 -0
  226. package/dist/internal/src/models/GetMiscTimestamp200Response.js +49 -0
  227. package/dist/internal/src/models/GetMiscTimestamp400Response.d.ts +44 -0
  228. package/dist/internal/src/models/GetMiscTimestamp400Response.js +45 -0
  229. package/dist/internal/src/models/GetMiscTrackingCarriers200Response.d.ts +39 -0
  230. package/dist/internal/src/models/GetMiscTrackingCarriers200Response.js +44 -0
  231. package/dist/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.d.ts +38 -0
  232. package/dist/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.js +43 -0
  233. package/dist/internal/src/models/GetMiscTrackingDetect200Response.d.ts +51 -0
  234. package/dist/internal/src/models/GetMiscTrackingDetect200Response.js +48 -0
  235. package/dist/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.d.ts +38 -0
  236. package/dist/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.js +43 -0
  237. package/dist/internal/src/models/GetMiscTrackingDetect404Response.d.ts +38 -0
  238. package/dist/internal/src/models/GetMiscTrackingDetect404Response.js +43 -0
  239. package/dist/internal/src/models/GetMiscTrackingQuery200Response.d.ts +57 -0
  240. package/dist/internal/src/models/GetMiscTrackingQuery200Response.js +50 -0
  241. package/dist/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.d.ts +38 -0
  242. package/dist/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.js +43 -0
  243. package/dist/internal/src/models/GetMiscTrackingQuery400Response.d.ts +38 -0
  244. package/dist/internal/src/models/GetMiscTrackingQuery400Response.js +43 -0
  245. package/dist/internal/src/models/GetMiscTrackingQuery404Response.d.ts +38 -0
  246. package/dist/internal/src/models/GetMiscTrackingQuery404Response.js +43 -0
  247. package/dist/internal/src/models/GetMiscWeather200Response.d.ts +648 -0
  248. package/dist/internal/src/models/GetMiscWeather200Response.js +548 -0
  249. package/dist/internal/src/models/GetMiscWeather200ResponseAirPollutants.d.ts +62 -0
  250. package/dist/internal/src/models/GetMiscWeather200ResponseAirPollutants.js +51 -0
  251. package/dist/internal/src/models/GetMiscWeather200ResponseForecastInner.d.ts +128 -0
  252. package/dist/internal/src/models/GetMiscWeather200ResponseForecastInner.js +73 -0
  253. package/dist/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.d.ts +116 -0
  254. package/dist/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.js +69 -0
  255. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndices.d.ts +152 -0
  256. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndices.js +93 -0
  257. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.d.ts +44 -0
  258. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.js +45 -0
  259. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.d.ts +44 -0
  260. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.js +45 -0
  261. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.d.ts +44 -0
  262. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.js +45 -0
  263. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.d.ts +44 -0
  264. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.js +45 -0
  265. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.d.ts +44 -0
  266. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.js +45 -0
  267. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.d.ts +44 -0
  268. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.js +45 -0
  269. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.d.ts +44 -0
  270. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.js +45 -0
  271. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.d.ts +44 -0
  272. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.js +45 -0
  273. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.d.ts +44 -0
  274. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.js +45 -0
  275. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.d.ts +44 -0
  276. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.js +45 -0
  277. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.d.ts +44 -0
  278. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.js +45 -0
  279. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.d.ts +44 -0
  280. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.js +45 -0
  281. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.d.ts +44 -0
  282. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.js +45 -0
  283. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.d.ts +44 -0
  284. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.js +45 -0
  285. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.d.ts +44 -0
  286. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.js +45 -0
  287. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.d.ts +44 -0
  288. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.js +45 -0
  289. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.d.ts +44 -0
  290. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.js +45 -0
  291. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.d.ts +44 -0
  292. package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.js +45 -0
  293. package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.d.ts +45 -0
  294. package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.js +46 -0
  295. package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.d.ts +44 -0
  296. package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.js +45 -0
  297. package/dist/internal/src/models/GetMiscWeather400Response.d.ts +38 -0
  298. package/dist/internal/src/models/GetMiscWeather400Response.js +43 -0
  299. package/dist/internal/src/models/GetMiscWeather404Response.d.ts +38 -0
  300. package/dist/internal/src/models/GetMiscWeather404Response.js +43 -0
  301. package/dist/internal/src/models/GetMiscWeather500Response.d.ts +38 -0
  302. package/dist/internal/src/models/GetMiscWeather500Response.js +43 -0
  303. package/dist/internal/src/models/GetMiscWeather503Response.d.ts +38 -0
  304. package/dist/internal/src/models/GetMiscWeather503Response.js +43 -0
  305. package/dist/internal/src/models/GetMiscWorldtime200Response.d.ts +68 -0
  306. package/dist/internal/src/models/GetMiscWorldtime200Response.js +53 -0
  307. package/dist/internal/src/models/GetMiscWorldtime400Response.d.ts +44 -0
  308. package/dist/internal/src/models/GetMiscWorldtime400Response.js +45 -0
  309. package/dist/internal/src/models/GetMiscWorldtime404Response.d.ts +44 -0
  310. package/dist/internal/src/models/GetMiscWorldtime404Response.js +45 -0
  311. package/dist/internal/src/models/GetNetworkDns200Response.d.ts +51 -0
  312. package/dist/internal/src/models/GetNetworkDns200Response.js +48 -0
  313. package/dist/internal/src/models/GetNetworkDns200ResponseRecordsInner.d.ts +68 -0
  314. package/dist/internal/src/models/GetNetworkDns200ResponseRecordsInner.js +53 -0
  315. package/dist/internal/src/models/GetNetworkDns400Response.d.ts +44 -0
  316. package/dist/internal/src/models/GetNetworkDns400Response.js +45 -0
  317. package/dist/internal/src/models/GetNetworkDns404Response.d.ts +44 -0
  318. package/dist/internal/src/models/GetNetworkDns404Response.js +45 -0
  319. package/dist/internal/src/models/GetNetworkIcp200Response.d.ts +62 -0
  320. package/dist/internal/src/models/GetNetworkIcp200Response.js +51 -0
  321. package/dist/internal/src/models/GetNetworkIcp404Response.d.ts +44 -0
  322. package/dist/internal/src/models/GetNetworkIcp404Response.js +45 -0
  323. package/dist/internal/src/models/GetNetworkIpinfo200Response.d.ts +80 -0
  324. package/dist/internal/src/models/GetNetworkIpinfo200Response.js +57 -0
  325. package/dist/internal/src/models/GetNetworkIpinfo400Response.d.ts +44 -0
  326. package/dist/internal/src/models/GetNetworkIpinfo400Response.js +45 -0
  327. package/dist/internal/src/models/GetNetworkIpinfo404Response.d.ts +44 -0
  328. package/dist/internal/src/models/GetNetworkIpinfo404Response.js +45 -0
  329. package/dist/internal/src/models/GetNetworkIpinfo500Response.d.ts +44 -0
  330. package/dist/internal/src/models/GetNetworkIpinfo500Response.js +45 -0
  331. package/dist/internal/src/models/GetNetworkMyip200Response.d.ts +92 -0
  332. package/dist/internal/src/models/GetNetworkMyip200Response.js +61 -0
  333. package/dist/internal/src/models/GetNetworkMyip400Response.d.ts +44 -0
  334. package/dist/internal/src/models/GetNetworkMyip400Response.js +45 -0
  335. package/dist/internal/src/models/GetNetworkMyip500Response.d.ts +44 -0
  336. package/dist/internal/src/models/GetNetworkMyip500Response.js +45 -0
  337. package/dist/internal/src/models/GetNetworkPing200Response.d.ts +62 -0
  338. package/dist/internal/src/models/GetNetworkPing200Response.js +51 -0
  339. package/dist/internal/src/models/GetNetworkPing400Response.d.ts +38 -0
  340. package/dist/internal/src/models/GetNetworkPing400Response.js +43 -0
  341. package/dist/internal/src/models/GetNetworkPing429Response.d.ts +38 -0
  342. package/dist/internal/src/models/GetNetworkPing429Response.js +43 -0
  343. package/dist/internal/src/models/GetNetworkPingmyip200Response.d.ts +44 -0
  344. package/dist/internal/src/models/GetNetworkPingmyip200Response.js +45 -0
  345. package/dist/internal/src/models/GetNetworkPingmyip404Response.d.ts +44 -0
  346. package/dist/internal/src/models/GetNetworkPingmyip404Response.js +45 -0
  347. package/dist/internal/src/models/GetNetworkPortscan200Response.d.ts +50 -0
  348. package/dist/internal/src/models/GetNetworkPortscan200Response.js +47 -0
  349. package/dist/internal/src/models/GetNetworkPortscan400Response.d.ts +44 -0
  350. package/dist/internal/src/models/GetNetworkPortscan400Response.js +45 -0
  351. package/dist/internal/src/models/GetNetworkPortscan500Response.d.ts +44 -0
  352. package/dist/internal/src/models/GetNetworkPortscan500Response.js +45 -0
  353. package/dist/internal/src/models/GetNetworkUrlstatus200Response.d.ts +23 -0
  354. package/dist/internal/src/models/GetNetworkUrlstatus200Response.js +51 -0
  355. package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.d.ts +38 -0
  356. package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.js +43 -0
  357. package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.d.ts +38 -0
  358. package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.js +43 -0
  359. package/dist/internal/src/models/GetNetworkUrlstatus502Response.d.ts +44 -0
  360. package/dist/internal/src/models/GetNetworkUrlstatus502Response.js +45 -0
  361. package/dist/internal/src/models/GetNetworkWhois200Response.d.ts +23 -0
  362. package/dist/internal/src/models/GetNetworkWhois200Response.js +51 -0
  363. package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf.d.ts +35 -0
  364. package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf.js +41 -0
  365. package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf1.d.ts +43 -0
  366. package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf1.js +41 -0
  367. package/dist/internal/src/models/GetNetworkWhois404Response.d.ts +44 -0
  368. package/dist/internal/src/models/GetNetworkWhois404Response.js +45 -0
  369. package/dist/internal/src/models/GetNetworkWxdomain200Response.d.ts +44 -0
  370. package/dist/internal/src/models/GetNetworkWxdomain200Response.js +45 -0
  371. package/dist/internal/src/models/GetNetworkWxdomain502Response.d.ts +44 -0
  372. package/dist/internal/src/models/GetNetworkWxdomain502Response.js +45 -0
  373. package/dist/internal/src/models/GetRandomImage404Response.d.ts +38 -0
  374. package/dist/internal/src/models/GetRandomImage404Response.js +43 -0
  375. package/dist/internal/src/models/GetRandomImage500Response.d.ts +38 -0
  376. package/dist/internal/src/models/GetRandomImage500Response.js +43 -0
  377. package/dist/internal/src/models/GetRandomString200Response.d.ts +32 -0
  378. package/dist/internal/src/models/GetRandomString200Response.js +41 -0
  379. package/dist/internal/src/models/GetRandomString400Response.d.ts +44 -0
  380. package/dist/internal/src/models/GetRandomString400Response.js +45 -0
  381. package/dist/internal/src/models/GetRandomString500Response.d.ts +44 -0
  382. package/dist/internal/src/models/GetRandomString500Response.js +45 -0
  383. package/dist/internal/src/models/GetSaying200Response.d.ts +32 -0
  384. package/dist/internal/src/models/GetSaying200Response.js +41 -0
  385. package/dist/internal/src/models/GetSaying500Response.d.ts +44 -0
  386. package/dist/internal/src/models/GetSaying500Response.js +45 -0
  387. package/dist/internal/src/models/GetSearchEngines200Response.d.ts +46 -0
  388. package/dist/internal/src/models/GetSearchEngines200Response.js +47 -0
  389. package/dist/internal/src/models/GetSearchEngines200ResponseEngine.d.ts +62 -0
  390. package/dist/internal/src/models/GetSearchEngines200ResponseEngine.js +51 -0
  391. package/dist/internal/src/models/GetSearchEngines200ResponseLimits.d.ts +38 -0
  392. package/dist/internal/src/models/GetSearchEngines200ResponseLimits.js +43 -0
  393. package/dist/internal/src/models/GetSensitiveWordAnalyzeQuery400Response.d.ts +38 -0
  394. package/dist/internal/src/models/GetSensitiveWordAnalyzeQuery400Response.js +43 -0
  395. package/dist/internal/src/models/GetSocialBilibiliArchives200Response.d.ts +51 -0
  396. package/dist/internal/src/models/GetSocialBilibiliArchives200Response.js +48 -0
  397. package/dist/internal/src/models/GetSocialBilibiliArchives200ResponseVideosInner.d.ts +92 -0
  398. package/dist/internal/src/models/GetSocialBilibiliArchives200ResponseVideosInner.js +61 -0
  399. package/dist/internal/src/models/GetSocialBilibiliArchives400Response.d.ts +44 -0
  400. package/dist/internal/src/models/GetSocialBilibiliArchives400Response.js +45 -0
  401. package/dist/internal/src/models/GetSocialBilibiliArchives404Response.d.ts +44 -0
  402. package/dist/internal/src/models/GetSocialBilibiliArchives404Response.js +45 -0
  403. package/dist/internal/src/models/GetSocialBilibiliArchives500Response.d.ts +44 -0
  404. package/dist/internal/src/models/GetSocialBilibiliArchives500Response.js +45 -0
  405. package/dist/internal/src/models/GetSocialBilibiliLiveroom200Response.d.ts +147 -0
  406. package/dist/internal/src/models/GetSocialBilibiliLiveroom200Response.js +80 -0
  407. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.d.ts +40 -0
  408. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.js +45 -0
  409. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.d.ts +38 -0
  410. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.js +43 -0
  411. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.d.ts +44 -0
  412. package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.js +45 -0
  413. package/dist/internal/src/models/GetSocialBilibiliReplies200Response.d.ts +94 -0
  414. package/dist/internal/src/models/GetSocialBilibiliReplies200Response.js +63 -0
  415. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponsePage.d.ts +50 -0
  416. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponsePage.js +47 -0
  417. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInner.d.ts +94 -0
  418. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInner.js +63 -0
  419. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerContent.d.ts +32 -0
  420. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerContent.js +41 -0
  421. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMember.d.ts +51 -0
  422. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMember.js +48 -0
  423. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMemberLevelInfo.d.ts +32 -0
  424. package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMemberLevelInfo.js +41 -0
  425. package/dist/internal/src/models/GetSocialBilibiliUserinfo200Response.d.ts +104 -0
  426. package/dist/internal/src/models/GetSocialBilibiliUserinfo200Response.js +65 -0
  427. package/dist/internal/src/models/GetSocialBilibiliUserinfo400Response.d.ts +44 -0
  428. package/dist/internal/src/models/GetSocialBilibiliUserinfo400Response.js +45 -0
  429. package/dist/internal/src/models/GetSocialBilibiliUserinfo404Response.d.ts +44 -0
  430. package/dist/internal/src/models/GetSocialBilibiliUserinfo404Response.js +45 -0
  431. package/dist/internal/src/models/GetSocialBilibiliUserinfo502Response.d.ts +44 -0
  432. package/dist/internal/src/models/GetSocialBilibiliUserinfo502Response.js +45 -0
  433. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200Response.d.ts +204 -0
  434. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200Response.js +105 -0
  435. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.d.ts +44 -0
  436. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.js +45 -0
  437. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.d.ts +44 -0
  438. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.js +45 -0
  439. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.d.ts +33 -0
  440. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.js +42 -0
  441. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.d.ts +50 -0
  442. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.js +47 -0
  443. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseOwner.d.ts +44 -0
  444. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseOwner.js +45 -0
  445. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.d.ts +75 -0
  446. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.js +56 -0
  447. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.d.ts +44 -0
  448. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.js +45 -0
  449. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.d.ts +134 -0
  450. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.js +75 -0
  451. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.d.ts +56 -0
  452. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.js +49 -0
  453. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.d.ts +104 -0
  454. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.js +65 -0
  455. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.d.ts +39 -0
  456. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.js +44 -0
  457. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.d.ts +69 -0
  458. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.js +54 -0
  459. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.d.ts +44 -0
  460. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.js +45 -0
  461. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.d.ts +62 -0
  462. package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.js +51 -0
  463. package/dist/internal/src/models/GetSocialQqGroupinfo200Response.d.ts +134 -0
  464. package/dist/internal/src/models/GetSocialQqGroupinfo200Response.js +75 -0
  465. package/dist/internal/src/models/GetSocialQqGroupinfo400Response.d.ts +44 -0
  466. package/dist/internal/src/models/GetSocialQqGroupinfo400Response.js +45 -0
  467. package/dist/internal/src/models/GetSocialQqGroupinfo404Response.d.ts +32 -0
  468. package/dist/internal/src/models/GetSocialQqGroupinfo404Response.js +41 -0
  469. package/dist/internal/src/models/GetSocialQqUserinfo200Response.d.ts +110 -0
  470. package/dist/internal/src/models/GetSocialQqUserinfo200Response.js +67 -0
  471. package/dist/internal/src/models/GetSocialQqUserinfo400Response.d.ts +44 -0
  472. package/dist/internal/src/models/GetSocialQqUserinfo400Response.js +45 -0
  473. package/dist/internal/src/models/GetSocialQqUserinfo404Response.d.ts +44 -0
  474. package/dist/internal/src/models/GetSocialQqUserinfo404Response.js +45 -0
  475. package/dist/internal/src/models/GetStatusRatelimit200Response.d.ts +80 -0
  476. package/dist/internal/src/models/GetStatusRatelimit200Response.js +57 -0
  477. package/dist/internal/src/models/GetStatusRatelimit401Response.d.ts +44 -0
  478. package/dist/internal/src/models/GetStatusRatelimit401Response.js +45 -0
  479. package/dist/internal/src/models/GetStatusUsage200Response.d.ts +52 -0
  480. package/dist/internal/src/models/GetStatusUsage200Response.js +49 -0
  481. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf.d.ts +40 -0
  482. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf.js +45 -0
  483. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf1.d.ts +38 -0
  484. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf1.js +43 -0
  485. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.d.ts +38 -0
  486. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.js +43 -0
  487. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.d.ts +38 -0
  488. package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.js +43 -0
  489. package/dist/internal/src/models/GetStatusUsage404Response.d.ts +38 -0
  490. package/dist/internal/src/models/GetStatusUsage404Response.js +43 -0
  491. package/dist/internal/src/models/GetTextMd5200Response.d.ts +32 -0
  492. package/dist/internal/src/models/GetTextMd5200Response.js +41 -0
  493. package/dist/internal/src/models/GetTextMd5400Response.d.ts +44 -0
  494. package/dist/internal/src/models/GetTextMd5400Response.js +45 -0
  495. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200Response.d.ts +99 -0
  496. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200Response.js +64 -0
  497. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf.d.ts +62 -0
  498. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf.js +51 -0
  499. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf1.d.ts +74 -0
  500. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf1.js +55 -0
  501. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2.d.ts +81 -0
  502. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2.js +58 -0
  503. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2Result.d.ts +38 -0
  504. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2Result.js +43 -0
  505. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf3.d.ts +80 -0
  506. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf3.js +57 -0
  507. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus404Response.d.ts +44 -0
  508. package/dist/internal/src/models/GetWebTomarkdownAsyncStatus404Response.js +45 -0
  509. package/dist/internal/src/models/GetWebparseExtractimages200Response.d.ts +38 -0
  510. package/dist/internal/src/models/GetWebparseExtractimages200Response.js +43 -0
  511. package/dist/internal/src/models/GetWebparseExtractimages500Response.d.ts +44 -0
  512. package/dist/internal/src/models/GetWebparseExtractimages500Response.js +45 -0
  513. package/dist/internal/src/models/GetWebparseMetadata200Response.d.ts +92 -0
  514. package/dist/internal/src/models/GetWebparseMetadata200Response.js +61 -0
  515. package/dist/internal/src/models/GetWebparseMetadata500Response.d.ts +44 -0
  516. package/dist/internal/src/models/GetWebparseMetadata500Response.js +45 -0
  517. package/dist/internal/src/models/PostAiTranslate200Response.d.ts +52 -0
  518. package/dist/internal/src/models/PostAiTranslate200Response.js +49 -0
  519. package/dist/internal/src/models/PostAiTranslate200ResponseData.d.ts +32 -0
  520. package/dist/internal/src/models/PostAiTranslate200ResponseData.js +41 -0
  521. package/dist/internal/src/models/PostAiTranslate200ResponsePerformance.d.ts +32 -0
  522. package/dist/internal/src/models/PostAiTranslate200ResponsePerformance.js +41 -0
  523. package/dist/internal/src/models/PostAiTranslate400Response.d.ts +44 -0
  524. package/dist/internal/src/models/PostAiTranslate400Response.js +45 -0
  525. package/dist/internal/src/models/PostAiTranslate401Response.d.ts +44 -0
  526. package/dist/internal/src/models/PostAiTranslate401Response.js +45 -0
  527. package/dist/internal/src/models/PostAiTranslate429Response.d.ts +44 -0
  528. package/dist/internal/src/models/PostAiTranslate429Response.js +45 -0
  529. package/dist/internal/src/models/PostAiTranslate500Response.d.ts +44 -0
  530. package/dist/internal/src/models/PostAiTranslate500Response.js +45 -0
  531. package/dist/internal/src/models/PostAiTranslateRequest.d.ts +81 -0
  532. package/dist/internal/src/models/PostAiTranslateRequest.js +74 -0
  533. package/dist/internal/src/models/PostAnswerbookAsk200Response.d.ts +38 -0
  534. package/dist/internal/src/models/PostAnswerbookAsk200Response.js +43 -0
  535. package/dist/internal/src/models/PostAnswerbookAskRequest.d.ts +32 -0
  536. package/dist/internal/src/models/PostAnswerbookAskRequest.js +43 -0
  537. package/dist/internal/src/models/PostClipzyStore200Response.d.ts +32 -0
  538. package/dist/internal/src/models/PostClipzyStore200Response.js +41 -0
  539. package/dist/internal/src/models/PostClipzyStore400Response.d.ts +38 -0
  540. package/dist/internal/src/models/PostClipzyStore400Response.js +43 -0
  541. package/dist/internal/src/models/PostClipzyStore413Response.d.ts +38 -0
  542. package/dist/internal/src/models/PostClipzyStore413Response.js +43 -0
  543. package/dist/internal/src/models/PostClipzyStoreRequest.d.ts +38 -0
  544. package/dist/internal/src/models/PostClipzyStoreRequest.js +45 -0
  545. package/dist/internal/src/models/PostConvertJson200Response.d.ts +32 -0
  546. package/dist/internal/src/models/PostConvertJson200Response.js +41 -0
  547. package/dist/internal/src/models/PostConvertJson400Response.d.ts +44 -0
  548. package/dist/internal/src/models/PostConvertJson400Response.js +45 -0
  549. package/dist/internal/src/models/PostConvertJsonRequest.d.ts +32 -0
  550. package/dist/internal/src/models/PostConvertJsonRequest.js +43 -0
  551. package/dist/internal/src/models/PostImageCompress400Response.d.ts +38 -0
  552. package/dist/internal/src/models/PostImageCompress400Response.js +43 -0
  553. package/dist/internal/src/models/PostImageCompress500Response.d.ts +38 -0
  554. package/dist/internal/src/models/PostImageCompress500Response.js +43 -0
  555. package/dist/internal/src/models/PostImageFrombase64200Response.d.ts +38 -0
  556. package/dist/internal/src/models/PostImageFrombase64200Response.js +43 -0
  557. package/dist/internal/src/models/PostImageFrombase64400Response.d.ts +44 -0
  558. package/dist/internal/src/models/PostImageFrombase64400Response.js +45 -0
  559. package/dist/internal/src/models/PostImageFrombase64500Response.d.ts +44 -0
  560. package/dist/internal/src/models/PostImageFrombase64500Response.js +45 -0
  561. package/dist/internal/src/models/PostImageFrombase64Request.d.ts +32 -0
  562. package/dist/internal/src/models/PostImageFrombase64Request.js +43 -0
  563. package/dist/internal/src/models/PostImageMotou400Response.d.ts +32 -0
  564. package/dist/internal/src/models/PostImageMotou400Response.js +41 -0
  565. package/dist/internal/src/models/PostImageMotou500Response.d.ts +32 -0
  566. package/dist/internal/src/models/PostImageMotou500Response.js +41 -0
  567. package/dist/internal/src/models/PostImageNsfw200Response.d.ts +74 -0
  568. package/dist/internal/src/models/PostImageNsfw200Response.js +55 -0
  569. package/dist/internal/src/models/PostImageNsfw400Response.d.ts +38 -0
  570. package/dist/internal/src/models/PostImageNsfw400Response.js +43 -0
  571. package/dist/internal/src/models/PostImageNsfw413Response.d.ts +38 -0
  572. package/dist/internal/src/models/PostImageNsfw413Response.js +43 -0
  573. package/dist/internal/src/models/PostImageNsfw500Response.d.ts +38 -0
  574. package/dist/internal/src/models/PostImageNsfw500Response.js +43 -0
  575. package/dist/internal/src/models/PostImageSpeechless400Response.d.ts +32 -0
  576. package/dist/internal/src/models/PostImageSpeechless400Response.js +41 -0
  577. package/dist/internal/src/models/PostImageSpeechless500Response.d.ts +32 -0
  578. package/dist/internal/src/models/PostImageSpeechless500Response.js +41 -0
  579. package/dist/internal/src/models/PostImageSpeechlessRequest.d.ts +38 -0
  580. package/dist/internal/src/models/PostImageSpeechlessRequest.js +43 -0
  581. package/dist/internal/src/models/PostImageSvg400Response.d.ts +38 -0
  582. package/dist/internal/src/models/PostImageSvg400Response.js +43 -0
  583. package/dist/internal/src/models/PostImageSvg500Response.d.ts +38 -0
  584. package/dist/internal/src/models/PostImageSvg500Response.js +43 -0
  585. package/dist/internal/src/models/PostMiscDateDiff200Response.d.ts +62 -0
  586. package/dist/internal/src/models/PostMiscDateDiff200Response.js +51 -0
  587. package/dist/internal/src/models/PostMiscDateDiff400Response.d.ts +44 -0
  588. package/dist/internal/src/models/PostMiscDateDiff400Response.js +45 -0
  589. package/dist/internal/src/models/PostMiscDateDiffRequest.d.ts +44 -0
  590. package/dist/internal/src/models/PostMiscDateDiffRequest.js +49 -0
  591. package/dist/internal/src/models/PostSearchAggregate200Response.d.ts +64 -0
  592. package/dist/internal/src/models/PostSearchAggregate200Response.js +53 -0
  593. package/dist/internal/src/models/PostSearchAggregate200ResponseResultsInner.d.ts +80 -0
  594. package/dist/internal/src/models/PostSearchAggregate200ResponseResultsInner.js +57 -0
  595. package/dist/internal/src/models/PostSearchAggregate200ResponseSourcesInner.d.ts +56 -0
  596. package/dist/internal/src/models/PostSearchAggregate200ResponseSourcesInner.js +49 -0
  597. package/dist/internal/src/models/PostSearchAggregate400Response.d.ts +44 -0
  598. package/dist/internal/src/models/PostSearchAggregate400Response.js +45 -0
  599. package/dist/internal/src/models/PostSearchAggregate401Response.d.ts +44 -0
  600. package/dist/internal/src/models/PostSearchAggregate401Response.js +45 -0
  601. package/dist/internal/src/models/PostSearchAggregate429Response.d.ts +44 -0
  602. package/dist/internal/src/models/PostSearchAggregate429Response.js +45 -0
  603. package/dist/internal/src/models/PostSearchAggregate500Response.d.ts +44 -0
  604. package/dist/internal/src/models/PostSearchAggregate500Response.js +45 -0
  605. package/dist/internal/src/models/PostSearchAggregateRequest.d.ts +86 -0
  606. package/dist/internal/src/models/PostSearchAggregateRequest.js +71 -0
  607. package/dist/internal/src/models/PostSensitiveWordAnalyze200Response.d.ts +39 -0
  608. package/dist/internal/src/models/PostSensitiveWordAnalyze200Response.js +44 -0
  609. package/dist/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.d.ts +69 -0
  610. package/dist/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.js +64 -0
  611. package/dist/internal/src/models/PostSensitiveWordAnalyze400Response.d.ts +38 -0
  612. package/dist/internal/src/models/PostSensitiveWordAnalyze400Response.js +43 -0
  613. package/dist/internal/src/models/PostSensitiveWordAnalyze401Response.d.ts +38 -0
  614. package/dist/internal/src/models/PostSensitiveWordAnalyze401Response.js +43 -0
  615. package/dist/internal/src/models/PostSensitiveWordAnalyze429Response.d.ts +38 -0
  616. package/dist/internal/src/models/PostSensitiveWordAnalyze429Response.js +43 -0
  617. package/dist/internal/src/models/PostSensitiveWordAnalyzeRequest.d.ts +32 -0
  618. package/dist/internal/src/models/PostSensitiveWordAnalyzeRequest.js +43 -0
  619. package/dist/internal/src/models/PostSensitiveWordQuickCheck200Response.d.ts +50 -0
  620. package/dist/internal/src/models/PostSensitiveWordQuickCheck200Response.js +47 -0
  621. package/dist/internal/src/models/PostSensitiveWordQuickCheckRequest.d.ts +32 -0
  622. package/dist/internal/src/models/PostSensitiveWordQuickCheckRequest.js +43 -0
  623. package/dist/internal/src/models/PostTextAesDecrypt200Response.d.ts +32 -0
  624. package/dist/internal/src/models/PostTextAesDecrypt200Response.js +41 -0
  625. package/dist/internal/src/models/PostTextAesDecrypt400Response.d.ts +44 -0
  626. package/dist/internal/src/models/PostTextAesDecrypt400Response.js +45 -0
  627. package/dist/internal/src/models/PostTextAesDecrypt500Response.d.ts +44 -0
  628. package/dist/internal/src/models/PostTextAesDecrypt500Response.js +45 -0
  629. package/dist/internal/src/models/PostTextAesDecryptAdvanced200Response.d.ts +32 -0
  630. package/dist/internal/src/models/PostTextAesDecryptAdvanced200Response.js +41 -0
  631. package/dist/internal/src/models/PostTextAesDecryptAdvanced400Response.d.ts +32 -0
  632. package/dist/internal/src/models/PostTextAesDecryptAdvanced400Response.js +41 -0
  633. package/dist/internal/src/models/PostTextAesDecryptAdvancedRequest.d.ts +77 -0
  634. package/dist/internal/src/models/PostTextAesDecryptAdvancedRequest.js +74 -0
  635. package/dist/internal/src/models/PostTextAesDecryptRequest.d.ts +44 -0
  636. package/dist/internal/src/models/PostTextAesDecryptRequest.js +51 -0
  637. package/dist/internal/src/models/PostTextAesEncrypt200Response.d.ts +32 -0
  638. package/dist/internal/src/models/PostTextAesEncrypt200Response.js +41 -0
  639. package/dist/internal/src/models/PostTextAesEncrypt400Response.d.ts +44 -0
  640. package/dist/internal/src/models/PostTextAesEncrypt400Response.js +45 -0
  641. package/dist/internal/src/models/PostTextAesEncrypt500Response.d.ts +44 -0
  642. package/dist/internal/src/models/PostTextAesEncrypt500Response.js +45 -0
  643. package/dist/internal/src/models/PostTextAesEncryptAdvanced200Response.d.ts +50 -0
  644. package/dist/internal/src/models/PostTextAesEncryptAdvanced200Response.js +47 -0
  645. package/dist/internal/src/models/PostTextAesEncryptAdvanced400Response.d.ts +32 -0
  646. package/dist/internal/src/models/PostTextAesEncryptAdvanced400Response.js +41 -0
  647. package/dist/internal/src/models/PostTextAesEncryptAdvancedRequest.d.ts +91 -0
  648. package/dist/internal/src/models/PostTextAesEncryptAdvancedRequest.js +81 -0
  649. package/dist/internal/src/models/PostTextAesEncryptRequest.d.ts +38 -0
  650. package/dist/internal/src/models/PostTextAesEncryptRequest.js +47 -0
  651. package/dist/internal/src/models/PostTextAnalyze200Response.d.ts +56 -0
  652. package/dist/internal/src/models/PostTextAnalyze200Response.js +49 -0
  653. package/dist/internal/src/models/PostTextAnalyze400Response.d.ts +44 -0
  654. package/dist/internal/src/models/PostTextAnalyze400Response.js +45 -0
  655. package/dist/internal/src/models/PostTextAnalyzeRequest.d.ts +32 -0
  656. package/dist/internal/src/models/PostTextAnalyzeRequest.js +43 -0
  657. package/dist/internal/src/models/PostTextBase64Decode200Response.d.ts +32 -0
  658. package/dist/internal/src/models/PostTextBase64Decode200Response.js +41 -0
  659. package/dist/internal/src/models/PostTextBase64Decode400Response.d.ts +44 -0
  660. package/dist/internal/src/models/PostTextBase64Decode400Response.js +45 -0
  661. package/dist/internal/src/models/PostTextBase64DecodeRequest.d.ts +32 -0
  662. package/dist/internal/src/models/PostTextBase64DecodeRequest.js +43 -0
  663. package/dist/internal/src/models/PostTextBase64Encode200Response.d.ts +32 -0
  664. package/dist/internal/src/models/PostTextBase64Encode200Response.js +41 -0
  665. package/dist/internal/src/models/PostTextBase64Encode400Response.d.ts +44 -0
  666. package/dist/internal/src/models/PostTextBase64Encode400Response.js +45 -0
  667. package/dist/internal/src/models/PostTextBase64EncodeRequest.d.ts +32 -0
  668. package/dist/internal/src/models/PostTextBase64EncodeRequest.js +43 -0
  669. package/dist/internal/src/models/PostTextConvert200Response.d.ts +56 -0
  670. package/dist/internal/src/models/PostTextConvert200Response.js +49 -0
  671. package/dist/internal/src/models/PostTextConvert400Response.d.ts +44 -0
  672. package/dist/internal/src/models/PostTextConvert400Response.js +45 -0
  673. package/dist/internal/src/models/PostTextConvertRequest.d.ts +86 -0
  674. package/dist/internal/src/models/PostTextConvertRequest.js +85 -0
  675. package/dist/internal/src/models/PostTextMd5400Response.d.ts +44 -0
  676. package/dist/internal/src/models/PostTextMd5400Response.js +45 -0
  677. package/dist/internal/src/models/PostTextMd5Request.d.ts +32 -0
  678. package/dist/internal/src/models/PostTextMd5Request.js +43 -0
  679. package/dist/internal/src/models/PostTextMd5Verify200Response.d.ts +32 -0
  680. package/dist/internal/src/models/PostTextMd5Verify200Response.js +41 -0
  681. package/dist/internal/src/models/PostTextMd5Verify400Response.d.ts +44 -0
  682. package/dist/internal/src/models/PostTextMd5Verify400Response.js +45 -0
  683. package/dist/internal/src/models/PostTextMd5VerifyRequest.d.ts +38 -0
  684. package/dist/internal/src/models/PostTextMd5VerifyRequest.js +47 -0
  685. package/dist/internal/src/models/PostTranslateStream400Response.d.ts +47 -0
  686. package/dist/internal/src/models/PostTranslateStream400Response.js +51 -0
  687. package/dist/internal/src/models/PostTranslateStream500Response.d.ts +38 -0
  688. package/dist/internal/src/models/PostTranslateStream500Response.js +43 -0
  689. package/dist/internal/src/models/PostTranslateStreamRequest.d.ts +50 -0
  690. package/dist/internal/src/models/PostTranslateStreamRequest.js +51 -0
  691. package/dist/internal/src/models/PostTranslateText200Response.d.ts +38 -0
  692. package/dist/internal/src/models/PostTranslateText200Response.js +43 -0
  693. package/dist/internal/src/models/PostTranslateText400Response.d.ts +44 -0
  694. package/dist/internal/src/models/PostTranslateText400Response.js +45 -0
  695. package/dist/internal/src/models/PostTranslateText500Response.d.ts +44 -0
  696. package/dist/internal/src/models/PostTranslateText500Response.js +45 -0
  697. package/dist/internal/src/models/PostTranslateTextRequest.d.ts +32 -0
  698. package/dist/internal/src/models/PostTranslateTextRequest.js +43 -0
  699. package/dist/internal/src/models/PostWebTomarkdownAsync202Response.d.ts +56 -0
  700. package/dist/internal/src/models/PostWebTomarkdownAsync202Response.js +49 -0
  701. package/dist/internal/src/models/PostWebTomarkdownAsync400Response.d.ts +44 -0
  702. package/dist/internal/src/models/PostWebTomarkdownAsync400Response.js +45 -0
  703. package/dist/internal/src/models/index.d.ts +333 -0
  704. package/dist/internal/src/models/index.js +335 -0
  705. package/dist/internal/src/runtime.d.ts +184 -0
  706. package/dist/internal/src/runtime.js +337 -0
  707. package/dist/src/index.d.ts +984 -0
  708. package/dist/src/index.js +1423 -0
  709. package/internal/.openapi-generator/FILES +705 -563
  710. package/internal/.openapi-generator/VERSION +1 -1
  711. package/internal/docs/ConvertApi.md +4 -4
  712. package/internal/docs/DailyApi.md +2 -2
  713. package/internal/docs/DefaultApi.md +12 -12
  714. package/internal/docs/EndpointsAggregate.md +1 -1
  715. package/internal/docs/GameApi.md +21 -18
  716. package/internal/docs/GetAiTranslateLanguages200Response.md +0 -2
  717. package/internal/docs/GetAiTranslateLanguages200ResponseDataLanguagesInner.md +1 -1
  718. package/internal/docs/GetAiTranslateLanguages200ResponsePerformance.md +2 -6
  719. package/internal/docs/GetAnswerbookAsk200Response.md +0 -2
  720. package/internal/docs/GetConvertUnixtime200Response.md +0 -2
  721. package/internal/docs/GetGameEpicFree200Response.md +2 -2
  722. package/internal/docs/GetGameMinecraftHistoryid200Response.md +12 -7
  723. package/internal/docs/GetGameMinecraftHistoryid200ResponseResultsInner.md +40 -0
  724. package/internal/docs/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.md +36 -0
  725. package/internal/docs/GetGameMinecraftHistoryid400Response.md +1 -1
  726. package/internal/docs/GetGameMinecraftHistoryid502Response.md +1 -1
  727. package/internal/docs/GetGameMinecraftServerstatus200Response.md +0 -2
  728. package/internal/docs/GetGameMinecraftUserinfo200Response.md +0 -2
  729. package/internal/docs/GetGameMinecraftUserinfo502Response.md +38 -0
  730. package/internal/docs/GetGameSteamSummary200Response.md +0 -2
  731. package/internal/docs/GetGithubRepo200Response.md +2 -0
  732. package/internal/docs/GetGithubRepo200ResponseLatestRelease.md +45 -0
  733. package/internal/docs/GetHistoryProgrammer200Response.md +0 -2
  734. package/internal/docs/GetHistoryProgrammerToday200Response.md +0 -2
  735. package/internal/docs/GetImageTobase64200Response.md +0 -2
  736. package/internal/docs/GetMiscDistrict200Response.md +36 -0
  737. package/internal/docs/GetMiscDistrict200ResponseResultsInner.md +58 -0
  738. package/internal/docs/GetMiscDistrict200ResponseResultsInnerCenter.md +37 -0
  739. package/internal/docs/GetMiscDistrict400Response.md +36 -0
  740. package/internal/docs/GetMiscHolidayCalendar200Response.md +44 -0
  741. package/internal/docs/GetMiscHolidayCalendar200ResponseData.md +44 -0
  742. package/internal/docs/GetMiscHolidayCalendar200ResponseDataDaysInner.md +76 -0
  743. package/internal/docs/GetMiscHolidayCalendar200ResponseDataHolidaysInner.md +40 -0
  744. package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearby.md +37 -0
  745. package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearbyNextInner.md +38 -0
  746. package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearbyPreviousInner.md +38 -0
  747. package/internal/docs/GetMiscHolidayCalendar200ResponseDataQuery.md +47 -0
  748. package/internal/docs/GetMiscHolidayCalendar200ResponseDataSummary.md +47 -0
  749. package/internal/docs/GetMiscHolidayCalendar200ResponseDaysInner.md +76 -0
  750. package/internal/docs/GetMiscHolidayCalendar200ResponseHolidaysInner.md +40 -0
  751. package/internal/docs/GetMiscHolidayCalendar200ResponseNearby.md +37 -0
  752. package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyNextInner.md +36 -0
  753. package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.md +40 -0
  754. package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.md +36 -0
  755. package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.md +40 -0
  756. package/internal/docs/GetMiscHolidayCalendar200ResponseQuery.md +47 -0
  757. package/internal/docs/GetMiscHolidayCalendar200ResponseSummary.md +47 -0
  758. package/internal/docs/GetMiscHolidayCalendar400Response.md +36 -0
  759. package/internal/docs/GetMiscHotboard200Response.md +13 -3
  760. package/internal/docs/GetMiscHotboard200ResponseListInner.md +2 -0
  761. package/internal/docs/GetMiscHotboard200ResponseOneOf.md +40 -0
  762. package/internal/docs/GetMiscHotboard200ResponseOneOf1.md +40 -0
  763. package/internal/docs/GetMiscHotboard200ResponseOneOf1ResultsInner.md +38 -0
  764. package/internal/docs/GetMiscHotboard200ResponseOneOf2.md +34 -0
  765. package/internal/docs/GetMiscHotboard200ResponseOneOfListInner.md +44 -0
  766. package/internal/docs/GetMiscHotboard200ResponseResultsInner.md +38 -0
  767. package/internal/docs/GetMiscLunartime200Response.md +76 -0
  768. package/internal/docs/GetMiscLunartime200ResponseData.md +77 -0
  769. package/internal/docs/GetMiscLunartime400Response.md +36 -0
  770. package/internal/docs/GetMiscTrackingCarriers200Response.md +4 -6
  771. package/internal/docs/GetMiscTrackingCarriers200ResponseCarriersInner.md +36 -0
  772. package/internal/docs/GetMiscTrackingDetect200Response.md +8 -6
  773. package/internal/docs/GetMiscTrackingDetect200ResponseAlternativesInner.md +36 -0
  774. package/internal/docs/GetMiscTrackingQuery200Response.md +10 -6
  775. package/internal/docs/GetMiscTrackingQuery200ResponseTracksInner.md +36 -0
  776. package/internal/docs/GetMiscWeather200Response.md +51 -13
  777. package/internal/docs/GetMiscWeather200ResponseAirPollutants.md +45 -0
  778. package/internal/docs/GetMiscWeather200ResponseForecastInner.md +66 -0
  779. package/internal/docs/GetMiscWeather200ResponseHourlyForecastInner.md +62 -0
  780. package/internal/docs/GetMiscWeather200ResponseLifeIndices.md +69 -0
  781. package/internal/docs/GetMiscWeather200ResponseLifeIndicesAirConditioner.md +39 -0
  782. package/internal/docs/GetMiscWeather200ResponseLifeIndicesAirPurifier.md +39 -0
  783. package/internal/docs/GetMiscWeather200ResponseLifeIndicesAllergy.md +39 -0
  784. package/internal/docs/GetMiscWeather200ResponseLifeIndicesBeer.md +39 -0
  785. package/internal/docs/GetMiscWeather200ResponseLifeIndicesCarWash.md +39 -0
  786. package/internal/docs/GetMiscWeather200ResponseLifeIndicesClothing.md +39 -0
  787. package/internal/docs/GetMiscWeather200ResponseLifeIndicesColdRisk.md +39 -0
  788. package/internal/docs/GetMiscWeather200ResponseLifeIndicesComfort.md +39 -0
  789. package/internal/docs/GetMiscWeather200ResponseLifeIndicesDrying.md +39 -0
  790. package/internal/docs/GetMiscWeather200ResponseLifeIndicesExercise.md +39 -0
  791. package/internal/docs/GetMiscWeather200ResponseLifeIndicesFishing.md +39 -0
  792. package/internal/docs/GetMiscWeather200ResponseLifeIndicesMood.md +39 -0
  793. package/internal/docs/GetMiscWeather200ResponseLifeIndicesPollen.md +39 -0
  794. package/internal/docs/GetMiscWeather200ResponseLifeIndicesSunscreen.md +39 -0
  795. package/internal/docs/GetMiscWeather200ResponseLifeIndicesTraffic.md +39 -0
  796. package/internal/docs/GetMiscWeather200ResponseLifeIndicesTravel.md +39 -0
  797. package/internal/docs/GetMiscWeather200ResponseLifeIndicesUmbrella.md +39 -0
  798. package/internal/docs/GetMiscWeather200ResponseLifeIndicesUv.md +39 -0
  799. package/internal/docs/GetMiscWeather200ResponseMinutelyPrecip.md +39 -0
  800. package/internal/docs/GetMiscWeather200ResponseMinutelyPrecipDataInner.md +38 -0
  801. package/internal/docs/GetMiscWeather400Response.md +2 -4
  802. package/internal/docs/GetMiscWeather404Response.md +36 -0
  803. package/internal/docs/GetMiscWeather500Response.md +1 -3
  804. package/internal/docs/GetMiscWeather503Response.md +36 -0
  805. package/internal/docs/GetNetworkDns200Response.md +0 -2
  806. package/internal/docs/GetNetworkIpinfo200Response.md +11 -29
  807. package/internal/docs/GetNetworkIpinfo500Response.md +1 -1
  808. package/internal/docs/GetNetworkMyip200Response.md +54 -0
  809. package/internal/docs/GetNetworkPing200Response.md +0 -2
  810. package/internal/docs/GetNetworkPingmyip200Response.md +6 -14
  811. package/internal/docs/GetNetworkPortscan200Response.md +0 -2
  812. package/internal/docs/GetNetworkUrlstatus200Response.md +2 -4
  813. package/internal/docs/GetNetworkUrlstatus200ResponseOneOf.md +37 -0
  814. package/internal/docs/GetNetworkUrlstatus200ResponseOneOf1.md +37 -0
  815. package/internal/docs/GetNetworkWhois200Response.md +0 -2
  816. package/internal/docs/GetNetworkWhois200ResponseOneOf.md +0 -2
  817. package/internal/docs/GetNetworkWhois200ResponseOneOf1.md +0 -2
  818. package/internal/docs/GetRandomString200Response.md +0 -2
  819. package/internal/docs/GetSearchEngines200Response.md +1 -1
  820. package/internal/docs/GetSearchEngines200ResponseEngine.md +1 -1
  821. package/internal/docs/GetSocialBilibiliLiveroom200Response.md +7 -1
  822. package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendants.md +37 -0
  823. package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.md +37 -0
  824. package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.md +39 -0
  825. package/internal/docs/GetSocialBilibiliReplies200Response.md +16 -0
  826. package/internal/docs/GetSocialBilibiliUserinfo200Response.md +26 -6
  827. package/internal/docs/GetSocialBilibiliVideoinfo200Response.md +28 -0
  828. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.md +38 -0
  829. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseDimension.md +39 -0
  830. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseHonorReply.md +35 -0
  831. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.md +40 -0
  832. package/internal/docs/GetSocialBilibiliVideoinfo200ResponsePagesInner.md +8 -0
  833. package/internal/docs/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.md +39 -0
  834. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseRights.md +69 -0
  835. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseStaffInner.md +42 -0
  836. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseStat.md +12 -0
  837. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitle.md +37 -0
  838. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.md +46 -0
  839. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.md +39 -0
  840. package/internal/docs/GetSocialBilibiliVideoinfo200ResponseUgcSeason.md +45 -0
  841. package/internal/docs/GetSocialQqGroupinfo200Response.md +22 -0
  842. package/internal/docs/GetSocialQqGroupinfo404Response.md +2 -6
  843. package/internal/docs/GetStatusUsage200Response.md +2 -2
  844. package/internal/docs/GetStatusUsage200ResponseAnyOf.md +37 -0
  845. package/internal/docs/GetStatusUsage200ResponseAnyOf1.md +37 -0
  846. package/internal/docs/GetStatusUsage200ResponseAnyOfEndpointsInner.md +36 -0
  847. package/internal/docs/GetStatusUsage200ResponseAnyOfUnaggregated.md +36 -0
  848. package/internal/docs/GetStatusUsage404Response.md +1 -3
  849. package/internal/docs/GetWebparseExtractimages200Response.md +4 -6
  850. package/internal/docs/ImageApi.md +104 -21
  851. package/internal/docs/MiscApi.md +393 -39
  852. package/internal/docs/NetworkApi.md +19 -19
  853. package/internal/docs/PoemApi.md +2 -2
  854. package/internal/docs/PostAiTranslate200Response.md +2 -10
  855. package/internal/docs/PostAiTranslate200ResponseData.md +1 -11
  856. package/internal/docs/PostAiTranslate200ResponsePerformance.md +0 -2
  857. package/internal/docs/PostAiTranslate400Response.md +1 -1
  858. package/internal/docs/PostAiTranslate500Response.md +0 -2
  859. package/internal/docs/PostAiTranslateRequest.md +0 -6
  860. package/internal/docs/PostAnswerbookAsk200Response.md +0 -2
  861. package/internal/docs/PostConvertJson200Response.md +0 -2
  862. package/internal/docs/PostImageFrombase64200Response.md +0 -2
  863. package/internal/docs/PostImageNsfw200Response.md +48 -0
  864. package/internal/docs/PostImageNsfw400Response.md +36 -0
  865. package/internal/docs/PostImageNsfw413Response.md +36 -0
  866. package/internal/docs/PostImageNsfw500Response.md +36 -0
  867. package/internal/docs/PostMiscDateDiff200Response.md +44 -0
  868. package/internal/docs/PostMiscDateDiff400Response.md +38 -0
  869. package/internal/docs/PostMiscDateDiffRequest.md +38 -0
  870. package/internal/docs/PostSearchAggregateRequest.md +4 -0
  871. package/internal/docs/PostSensitiveWordAnalyze200ResponseResultsInner.md +6 -10
  872. package/internal/docs/PostTextAesDecryptAdvanced200Response.md +34 -0
  873. package/internal/docs/PostTextAesDecryptAdvanced400Response.md +34 -0
  874. package/internal/docs/PostTextAesDecryptAdvancedRequest.md +42 -0
  875. package/internal/docs/PostTextAesEncryptAdvanced200Response.md +40 -0
  876. package/internal/docs/PostTextAesEncryptAdvanced400Response.md +34 -0
  877. package/internal/docs/PostTextAesEncryptAdvancedRequest.md +44 -0
  878. package/internal/docs/PostTextAesEncryptRequest.md +1 -1
  879. package/internal/docs/PostTextConvert200Response.md +42 -0
  880. package/internal/docs/PostTextConvert400Response.md +38 -0
  881. package/internal/docs/PostTextConvertRequest.md +40 -0
  882. package/internal/docs/RandomApi.md +16 -17
  883. package/internal/docs/SocialApi.md +24 -25
  884. package/internal/docs/StatusApi.md +4 -6
  885. package/internal/docs/TextApi.md +235 -28
  886. package/internal/docs/TranslateApi.md +21 -21
  887. package/internal/docs/WebParseApi.md +12 -12
  888. package/internal/src/apis/ClipzyApi.ts +39 -15
  889. package/internal/src/apis/ConvertApi.ts +28 -12
  890. package/internal/src/apis/DailyApi.ts +14 -6
  891. package/internal/src/apis/DefaultApi.ts +69 -29
  892. package/internal/src/apis/GameApi.ts +81 -40
  893. package/internal/src/apis/ImageApi.ts +235 -59
  894. package/internal/src/apis/MiscApi.ts +546 -75
  895. package/internal/src/apis/NetworkApi.ts +143 -60
  896. package/internal/src/apis/PoemApi.ts +14 -6
  897. package/internal/src/apis/RandomApi.ts +70 -39
  898. package/internal/src/apis/SocialApi.ts +115 -54
  899. package/internal/src/apis/StatusApi.ts +27 -14
  900. package/internal/src/apis/TextApi.ts +298 -48
  901. package/internal/src/apis/TranslateApi.ts +62 -30
  902. package/internal/src/apis/WebParseApi.ts +60 -28
  903. package/internal/src/models/GetAiTranslateLanguages200Response.ts +0 -8
  904. package/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.ts +4 -28
  905. package/internal/src/models/GetAnswerbookAsk200Response.ts +0 -8
  906. package/internal/src/models/GetConvertUnixtime200Response.ts +0 -8
  907. package/internal/src/models/GetGameEpicFree200Response.ts +5 -5
  908. package/internal/src/models/GetGameMinecraftHistoryid200Response.ts +40 -17
  909. package/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.ts +97 -0
  910. package/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.ts +73 -0
  911. package/internal/src/models/GetGameMinecraftServerstatus200Response.ts +0 -8
  912. package/internal/src/models/GetGameMinecraftUserinfo200Response.ts +0 -8
  913. package/internal/src/models/GetGameMinecraftUserinfo502Response.ts +81 -0
  914. package/internal/src/models/GetGameSteamSummary200Response.ts +0 -8
  915. package/internal/src/models/GetGithubRepo200Response.ts +38 -23
  916. package/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.ts +4 -4
  917. package/internal/src/models/GetGithubRepo200ResponseLatestRelease.ts +105 -0
  918. package/internal/src/models/GetHistoryProgrammer200Response.ts +0 -8
  919. package/internal/src/models/GetHistoryProgrammerToday200Response.ts +0 -8
  920. package/internal/src/models/GetImageTobase64200Response.ts +0 -8
  921. package/internal/src/models/GetMiscDistrict200Response.ts +81 -0
  922. package/internal/src/models/GetMiscDistrict200ResponseResultsInner.ts +169 -0
  923. package/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.ts +73 -0
  924. package/internal/src/models/GetMiscDistrict400Response.ts +73 -0
  925. package/internal/src/models/GetMiscHolidayCalendar200Response.ts +141 -0
  926. package/internal/src/models/GetMiscHolidayCalendar200ResponseData.ts +141 -0
  927. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataDaysInner.ts +233 -0
  928. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataHolidaysInner.ts +103 -0
  929. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearby.ts +88 -0
  930. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearbyNextInner.ts +81 -0
  931. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearbyPreviousInner.ts +81 -0
  932. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataQuery.ts +113 -0
  933. package/internal/src/models/GetMiscHolidayCalendar200ResponseDataSummary.ts +113 -0
  934. package/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.ts +233 -0
  935. package/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.ts +103 -0
  936. package/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.ts +88 -0
  937. package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.ts +81 -0
  938. package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.ts +89 -0
  939. package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.ts +81 -0
  940. package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.ts +89 -0
  941. package/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.ts +113 -0
  942. package/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.ts +113 -0
  943. package/internal/src/models/GetMiscHolidayCalendar400Response.ts +73 -0
  944. package/internal/src/models/GetMiscHotboard200Response.ts +49 -49
  945. package/internal/src/models/GetMiscHotboard200ResponseListInner.ts +8 -0
  946. package/internal/src/models/GetMiscHotboard200ResponseOneOf.ts +97 -0
  947. package/internal/src/models/GetMiscHotboard200ResponseOneOf1.ts +97 -0
  948. package/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.ts +81 -0
  949. package/internal/src/models/GetMiscHotboard200ResponseOneOf2.ts +65 -0
  950. package/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.ts +105 -0
  951. package/internal/src/models/GetMiscHotboard200ResponseResultsInner.ts +81 -0
  952. package/internal/src/models/GetMiscLunartime200Response.ts +233 -0
  953. package/internal/src/models/GetMiscLunartime200ResponseData.ts +233 -0
  954. package/internal/src/models/GetMiscLunartime400Response.ts +73 -0
  955. package/internal/src/models/GetMiscTrackingCarriers200Response.ts +16 -24
  956. package/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.ts +73 -0
  957. package/internal/src/models/GetMiscTrackingDetect200Response.ts +27 -19
  958. package/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.ts +73 -0
  959. package/internal/src/models/GetMiscTrackingQuery200Response.ts +35 -19
  960. package/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.ts +73 -0
  961. package/internal/src/models/GetMiscWeather200Response.ts +666 -26
  962. package/internal/src/models/GetMiscWeather200ResponseAirPollutants.ts +105 -0
  963. package/internal/src/models/GetMiscWeather200ResponseForecastInner.ts +193 -0
  964. package/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.ts +177 -0
  965. package/internal/src/models/GetMiscWeather200ResponseLifeIndices.ts +328 -0
  966. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.ts +81 -0
  967. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.ts +81 -0
  968. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.ts +81 -0
  969. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.ts +81 -0
  970. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.ts +81 -0
  971. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.ts +81 -0
  972. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.ts +81 -0
  973. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.ts +81 -0
  974. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.ts +81 -0
  975. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.ts +81 -0
  976. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.ts +81 -0
  977. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.ts +81 -0
  978. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.ts +81 -0
  979. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.ts +81 -0
  980. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.ts +81 -0
  981. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.ts +81 -0
  982. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.ts +81 -0
  983. package/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.ts +81 -0
  984. package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.ts +89 -0
  985. package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.ts +81 -0
  986. package/internal/src/models/GetMiscWeather400Response.ts +0 -8
  987. package/internal/src/models/GetMiscWeather404Response.ts +73 -0
  988. package/internal/src/models/GetMiscWeather500Response.ts +0 -8
  989. package/internal/src/models/GetMiscWeather503Response.ts +73 -0
  990. package/internal/src/models/GetNetworkDns200Response.ts +0 -8
  991. package/internal/src/models/GetNetworkIpinfo200Response.ts +26 -98
  992. package/internal/src/models/GetNetworkMyip200Response.ts +145 -0
  993. package/internal/src/models/GetNetworkPing200Response.ts +0 -8
  994. package/internal/src/models/GetNetworkPingmyip200Response.ts +13 -45
  995. package/internal/src/models/GetNetworkPortscan200Response.ts +0 -8
  996. package/internal/src/models/GetNetworkUrlstatus200Response.ts +38 -43
  997. package/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.ts +73 -0
  998. package/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.ts +73 -0
  999. package/internal/src/models/GetNetworkWhois200ResponseOneOf.ts +0 -8
  1000. package/internal/src/models/GetNetworkWhois200ResponseOneOf1.ts +0 -8
  1001. package/internal/src/models/GetRandomString200Response.ts +0 -8
  1002. package/internal/src/models/GetSocialBilibiliLiveroom200Response.ts +38 -6
  1003. package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.ts +88 -0
  1004. package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.ts +73 -0
  1005. package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.ts +81 -0
  1006. package/internal/src/models/GetSocialBilibiliReplies200Response.ts +64 -0
  1007. package/internal/src/models/GetSocialBilibiliUserinfo200Response.ts +90 -18
  1008. package/internal/src/models/GetSocialBilibiliVideoinfo200Response.ts +161 -0
  1009. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.ts +81 -0
  1010. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.ts +81 -0
  1011. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.ts +73 -0
  1012. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.ts +89 -0
  1013. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.ts +40 -0
  1014. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.ts +81 -0
  1015. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.ts +201 -0
  1016. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.ts +97 -0
  1017. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.ts +48 -0
  1018. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.ts +81 -0
  1019. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.ts +121 -0
  1020. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.ts +81 -0
  1021. package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.ts +105 -0
  1022. package/internal/src/models/GetSocialQqGroupinfo200Response.ts +88 -0
  1023. package/internal/src/models/GetSocialQqGroupinfo404Response.ts +3 -19
  1024. package/internal/src/models/GetStatusUsage200Response.ts +32 -32
  1025. package/internal/src/models/GetStatusUsage200ResponseAnyOf.ts +88 -0
  1026. package/internal/src/models/GetStatusUsage200ResponseAnyOf1.ts +73 -0
  1027. package/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.ts +73 -0
  1028. package/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.ts +73 -0
  1029. package/internal/src/models/GetStatusUsage404Response.ts +0 -8
  1030. package/internal/src/models/GetWebparseExtractimages200Response.ts +9 -17
  1031. package/internal/src/models/PostAiTranslate200Response.ts +5 -58
  1032. package/internal/src/models/PostAiTranslate200ResponseData.ts +1 -49
  1033. package/internal/src/models/PostAiTranslate200ResponsePerformance.ts +0 -8
  1034. package/internal/src/models/PostAiTranslate500Response.ts +0 -8
  1035. package/internal/src/models/PostAiTranslateRequest.ts +6 -29
  1036. package/internal/src/models/PostAnswerbookAsk200Response.ts +0 -8
  1037. package/internal/src/models/PostConvertJson200Response.ts +0 -8
  1038. package/internal/src/models/PostImageFrombase64200Response.ts +0 -8
  1039. package/internal/src/models/PostImageNsfw200Response.ts +121 -0
  1040. package/internal/src/models/PostImageNsfw400Response.ts +73 -0
  1041. package/internal/src/models/PostImageNsfw413Response.ts +73 -0
  1042. package/internal/src/models/PostImageNsfw500Response.ts +73 -0
  1043. package/internal/src/models/PostMiscDateDiff200Response.ts +105 -0
  1044. package/internal/src/models/PostMiscDateDiff400Response.ts +81 -0
  1045. package/internal/src/models/PostMiscDateDiffRequest.ts +83 -0
  1046. package/internal/src/models/PostSearchAggregate200Response.ts +1 -1
  1047. package/internal/src/models/PostSearchAggregateRequest.ts +38 -0
  1048. package/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.ts +35 -28
  1049. package/internal/src/models/PostSensitiveWordAnalyzeRequest.ts +1 -1
  1050. package/internal/src/models/PostTextAesDecryptAdvanced200Response.ts +65 -0
  1051. package/internal/src/models/PostTextAesDecryptAdvanced400Response.ts +65 -0
  1052. package/internal/src/models/PostTextAesDecryptAdvancedRequest.ts +125 -0
  1053. package/internal/src/models/PostTextAesDecryptRequest.ts +1 -1
  1054. package/internal/src/models/PostTextAesEncryptAdvanced200Response.ts +89 -0
  1055. package/internal/src/models/PostTextAesEncryptAdvanced400Response.ts +65 -0
  1056. package/internal/src/models/PostTextAesEncryptAdvancedRequest.ts +141 -0
  1057. package/internal/src/models/PostTextAesEncryptRequest.ts +2 -2
  1058. package/internal/src/models/PostTextConvert200Response.ts +97 -0
  1059. package/internal/src/models/PostTextConvert400Response.ts +81 -0
  1060. package/internal/src/models/PostTextConvertRequest.ts +130 -0
  1061. package/internal/src/models/PostTextMd5VerifyRequest.ts +2 -2
  1062. package/internal/src/models/PostTranslateStream400Response.ts +1 -1
  1063. package/internal/src/models/PostTranslateStreamRequest.ts +2 -23
  1064. package/internal/src/models/PostTranslateTextRequest.ts +1 -1
  1065. package/internal/src/models/index.ts +92 -21
  1066. package/internal/src/runtime.ts +18 -0
  1067. package/openapitools.json +7 -0
  1068. package/package.json +21 -11
  1069. package/src/index.ts +2810 -751
  1070. package/dist/index.d.ts +0 -175
  1071. package/dist/index.js +0 -950
  1072. /package/dist/{index.test.d.ts → src/index.test.d.ts} +0 -0
  1073. /package/dist/{index.test.js → src/index.test.js} +0 -0
package/src/index.ts CHANGED
@@ -1,751 +1,2810 @@
1
- export class UapiError extends Error {
2
- constructor(public code: string, public status: number, public details?: any) {
3
- super(`${status} ${code}`)
4
- }
5
- }
6
-
7
- export class UapiClient {
8
- constructor(private baseURL: string, private token?: string) {
9
- ;(this as any)["Clipzy 在线剪贴板"] = this.clipzyZaiXianJianTieBan
10
- ;(this as any)["Convert"] = this.convert
11
- ;(this as any)["Daily"] = this.daily
12
- ;(this as any)["Game"] = this.game
13
- ;(this as any)["Image"] = this.image
14
- ;(this as any)["Misc"] = this.misc
15
- ;(this as any)["Network"] = this.network
16
- ;(this as any)["Poem"] = this.poem
17
- ;(this as any)["Random"] = this.random
18
- ;(this as any)["Social"] = this.social
19
- ;(this as any)["Status"] = this.status
20
- ;(this as any)["Text"] = this.text
21
- ;(this as any)["Translate"] = this.translate
22
- ;(this as any)["WebParse"] = this.webparse
23
- ;(this as any)["敏感词识别"] = this.minGanCiShiBie
24
- ;(this as any)["智能搜索"] = this.zhiNengSouSuo
25
- }
26
- clipzyZaiXianJianTieBan = new ClipzyZaiXianJianTieBanApi(this)
27
- convert = new ConvertApi(this)
28
- daily = new DailyApi(this)
29
- game = new GameApi(this)
30
- image = new ImageApi(this)
31
- misc = new MiscApi(this)
32
- network = new NetworkApi(this)
33
- poem = new PoemApi(this)
34
- random = new RandomApi(this)
35
- social = new SocialApi(this)
36
- status = new StatusApi(this)
37
- text = new TextApi(this)
38
- translate = new TranslateApi(this)
39
- webparse = new WebparseApi(this)
40
- minGanCiShiBie = new MinGanCiShiBieApi(this)
41
- zhiNengSouSuo = new ZhiNengSouSuoApi(this)
42
- async _request(method: string, path: string, params?: Record<string,any>, body?: any) {
43
- const url = new URL(this.baseURL.replace(/\/$/, '') + path)
44
- if (params) Object.entries(params).forEach(([k,v]) => url.searchParams.set(k, String(v)))
45
- const res = await fetch(url.toString(), { method, headers: { 'Content-Type':'application/json', ...(this.token ? { Authorization: `Bearer ${this.token}` } : {}) }, body: body ? JSON.stringify(body) : undefined })
46
- if (!res.ok) {
47
- let data:any=null; try { data = await res.json() } catch {}
48
- const code = (data?.code || 'API_ERROR').toUpperCase()
49
- throw new UapiError(code, res.status, data?.details)
50
- }
51
- const ct = res.headers.get('content-type') || ''
52
- return ct.includes('application/json') ? res.json() : res.arrayBuffer()
53
- }
54
- }
55
- class ClipzyZaiXianJianTieBanApi {
56
- constructor(private c: UapiClient) {}
57
- async getClipzyGet(args: any = {}): Promise<any> {
58
- const params:any = {}
59
- const body:any = {}
60
- if (args["id"] !== undefined) params["id"] = args["id"]
61
- let path = '/api/v1/api/get'
62
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
63
- }
64
- async getClipzyRaw(args: any = {}): Promise<any> {
65
- const params:any = {}
66
- const body:any = {}
67
- if (args["key"] !== undefined) params["key"] = args["key"]
68
- let path = '/api/v1/api/raw/{id}'
69
- if (args['id'] !== undefined) path = path.replace('{' + 'id' + '}', String(args['id']))
70
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
71
- }
72
- async postClipzyStore(args: any = {}): Promise<any> {
73
- const params:any = {}
74
- const body:any = {}
75
- if (args["compressedData"] !== undefined) body["compressedData"] = args["compressedData"]
76
- if (args["ttl"] !== undefined) body["ttl"] = args["ttl"]
77
- let path = '/api/v1/api/store'
78
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
79
- }
80
- }
81
- class ConvertApi {
82
- constructor(private c: UapiClient) {}
83
- async getConvertUnixtime(args: any = {}): Promise<any> {
84
- const params:any = {}
85
- const body:any = {}
86
- if (args["time"] !== undefined) params["time"] = args["time"]
87
- let path = '/api/v1/convert/unixtime'
88
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
89
- }
90
- async postConvertJson(args: any = {}): Promise<any> {
91
- const params:any = {}
92
- const body:any = {}
93
- if (args["content"] !== undefined) body["content"] = args["content"]
94
- let path = '/api/v1/convert/json'
95
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
96
- }
97
- }
98
- class DailyApi {
99
- constructor(private c: UapiClient) {}
100
- async getDailyNewsImage(args: any = {}): Promise<any> {
101
- const params:any = {}
102
- const body:any = {}
103
- let path = '/api/v1/daily/news-image'
104
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
105
- }
106
- }
107
- class GameApi {
108
- constructor(private c: UapiClient) {}
109
- async getGameEpicFree(args: any = {}): Promise<any> {
110
- const params:any = {}
111
- const body:any = {}
112
- let path = '/api/v1/game/epic-free'
113
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
114
- }
115
- async getGameMinecraftHistoryid(args: any = {}): Promise<any> {
116
- const params:any = {}
117
- const body:any = {}
118
- if (args["name"] !== undefined) params["name"] = args["name"]
119
- if (args["uuid"] !== undefined) params["uuid"] = args["uuid"]
120
- let path = '/api/v1/game/minecraft/historyid'
121
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
122
- }
123
- async getGameMinecraftServerstatus(args: any = {}): Promise<any> {
124
- const params:any = {}
125
- const body:any = {}
126
- if (args["server"] !== undefined) params["server"] = args["server"]
127
- let path = '/api/v1/game/minecraft/serverstatus'
128
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
129
- }
130
- async getGameMinecraftUserinfo(args: any = {}): Promise<any> {
131
- const params:any = {}
132
- const body:any = {}
133
- if (args["username"] !== undefined) params["username"] = args["username"]
134
- let path = '/api/v1/game/minecraft/userinfo'
135
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
136
- }
137
- async getGameSteamSummary(args: any = {}): Promise<any> {
138
- const params:any = {}
139
- const body:any = {}
140
- if (args["steamid"] !== undefined) params["steamid"] = args["steamid"]
141
- if (args["id"] !== undefined) params["id"] = args["id"]
142
- if (args["id3"] !== undefined) params["id3"] = args["id3"]
143
- if (args["key"] !== undefined) params["key"] = args["key"]
144
- let path = '/api/v1/game/steam/summary'
145
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
146
- }
147
- }
148
- class ImageApi {
149
- constructor(private c: UapiClient) {}
150
- async getAvatarGravatar(args: any = {}): Promise<any> {
151
- const params:any = {}
152
- const body:any = {}
153
- if (args["email"] !== undefined) params["email"] = args["email"]
154
- if (args["hash"] !== undefined) params["hash"] = args["hash"]
155
- if (args["s"] !== undefined) params["s"] = args["s"]
156
- if (args["d"] !== undefined) params["d"] = args["d"]
157
- if (args["r"] !== undefined) params["r"] = args["r"]
158
- let path = '/api/v1/avatar/gravatar'
159
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
160
- }
161
- async getImageBingDaily(args: any = {}): Promise<any> {
162
- const params:any = {}
163
- const body:any = {}
164
- let path = '/api/v1/image/bing-daily'
165
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
166
- }
167
- async getImageMotou(args: any = {}): Promise<any> {
168
- const params:any = {}
169
- const body:any = {}
170
- if (args["qq"] !== undefined) params["qq"] = args["qq"]
171
- if (args["bg_color"] !== undefined) params["bg_color"] = args["bg_color"]
172
- let path = '/api/v1/image/motou'
173
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
174
- }
175
- async getImageQrcode(args: any = {}): Promise<any> {
176
- const params:any = {}
177
- const body:any = {}
178
- if (args["text"] !== undefined) params["text"] = args["text"]
179
- if (args["size"] !== undefined) params["size"] = args["size"]
180
- if (args["format"] !== undefined) params["format"] = args["format"]
181
- let path = '/api/v1/image/qrcode'
182
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
183
- }
184
- async getImageTobase64(args: any = {}): Promise<any> {
185
- const params:any = {}
186
- const body:any = {}
187
- if (args["url"] !== undefined) params["url"] = args["url"]
188
- let path = '/api/v1/image/tobase64'
189
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
190
- }
191
- async postImageCompress(args: any = {}): Promise<any> {
192
- const params:any = {}
193
- const body:any = {}
194
- if (args["level"] !== undefined) params["level"] = args["level"]
195
- if (args["format"] !== undefined) params["format"] = args["format"]
196
- if (args["file"] !== undefined) body["file"] = args["file"]
197
- let path = '/api/v1/image/compress'
198
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
199
- }
200
- async postImageFrombase64(args: any = {}): Promise<any> {
201
- const params:any = {}
202
- const body:any = {}
203
- if (args["imageData"] !== undefined) body["imageData"] = args["imageData"]
204
- let path = '/api/v1/image/frombase64'
205
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
206
- }
207
- async postImageMotou(args: any = {}): Promise<any> {
208
- const params:any = {}
209
- const body:any = {}
210
- if (args["bg_color"] !== undefined) body["bg_color"] = args["bg_color"]
211
- if (args["file"] !== undefined) body["file"] = args["file"]
212
- if (args["image_url"] !== undefined) body["image_url"] = args["image_url"]
213
- let path = '/api/v1/image/motou'
214
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
215
- }
216
- async postImageSpeechless(args: any = {}): Promise<any> {
217
- const params:any = {}
218
- const body:any = {}
219
- if (args["bottom_text"] !== undefined) body["bottom_text"] = args["bottom_text"]
220
- if (args["top_text"] !== undefined) body["top_text"] = args["top_text"]
221
- let path = '/api/v1/image/speechless'
222
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
223
- }
224
- async postImageSvg(args: any = {}): Promise<any> {
225
- const params:any = {}
226
- const body:any = {}
227
- if (args["format"] !== undefined) params["format"] = args["format"]
228
- if (args["width"] !== undefined) params["width"] = args["width"]
229
- if (args["height"] !== undefined) params["height"] = args["height"]
230
- if (args["quality"] !== undefined) params["quality"] = args["quality"]
231
- if (args["file"] !== undefined) body["file"] = args["file"]
232
- let path = '/api/v1/image/svg'
233
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
234
- }
235
- }
236
- class MiscApi {
237
- constructor(private c: UapiClient) {}
238
- async getHistoryProgrammer(args: any = {}): Promise<any> {
239
- const params:any = {}
240
- const body:any = {}
241
- if (args["month"] !== undefined) params["month"] = args["month"]
242
- if (args["day"] !== undefined) params["day"] = args["day"]
243
- let path = '/api/v1/history/programmer'
244
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
245
- }
246
- async getHistoryProgrammerToday(args: any = {}): Promise<any> {
247
- const params:any = {}
248
- const body:any = {}
249
- let path = '/api/v1/history/programmer/today'
250
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
251
- }
252
- async getMiscHotboard(args: any = {}): Promise<any> {
253
- const params:any = {}
254
- const body:any = {}
255
- if (args["type"] !== undefined) params["type"] = args["type"]
256
- let path = '/api/v1/misc/hotboard'
257
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
258
- }
259
- async getMiscPhoneinfo(args: any = {}): Promise<any> {
260
- const params:any = {}
261
- const body:any = {}
262
- if (args["phone"] !== undefined) params["phone"] = args["phone"]
263
- let path = '/api/v1/misc/phoneinfo'
264
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
265
- }
266
- async getMiscRandomnumber(args: any = {}): Promise<any> {
267
- const params:any = {}
268
- const body:any = {}
269
- if (args["min"] !== undefined) params["min"] = args["min"]
270
- if (args["max"] !== undefined) params["max"] = args["max"]
271
- if (args["count"] !== undefined) params["count"] = args["count"]
272
- if (args["allow_repeat"] !== undefined) params["allow_repeat"] = args["allow_repeat"]
273
- if (args["allow_decimal"] !== undefined) params["allow_decimal"] = args["allow_decimal"]
274
- if (args["decimal_places"] !== undefined) params["decimal_places"] = args["decimal_places"]
275
- let path = '/api/v1/misc/randomnumber'
276
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
277
- }
278
- async getMiscTimestamp(args: any = {}): Promise<any> {
279
- const params:any = {}
280
- const body:any = {}
281
- if (args["ts"] !== undefined) params["ts"] = args["ts"]
282
- let path = '/api/v1/misc/timestamp'
283
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
284
- }
285
- async getMiscTrackingCarriers(args: any = {}): Promise<any> {
286
- const params:any = {}
287
- const body:any = {}
288
- let path = '/api/v1/misc/tracking/carriers'
289
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
290
- }
291
- async getMiscTrackingDetect(args: any = {}): Promise<any> {
292
- const params:any = {}
293
- const body:any = {}
294
- if (args["tracking_number"] !== undefined) params["tracking_number"] = args["tracking_number"]
295
- let path = '/api/v1/misc/tracking/detect'
296
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
297
- }
298
- async getMiscTrackingQuery(args: any = {}): Promise<any> {
299
- const params:any = {}
300
- const body:any = {}
301
- if (args["tracking_number"] !== undefined) params["tracking_number"] = args["tracking_number"]
302
- if (args["carrier_code"] !== undefined) params["carrier_code"] = args["carrier_code"]
303
- let path = '/api/v1/misc/tracking/query'
304
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
305
- }
306
- async getMiscWeather(args: any = {}): Promise<any> {
307
- const params:any = {}
308
- const body:any = {}
309
- if (args["city"] !== undefined) params["city"] = args["city"]
310
- if (args["adcode"] !== undefined) params["adcode"] = args["adcode"]
311
- if (args["extended"] !== undefined) params["extended"] = args["extended"]
312
- if (args["indices"] !== undefined) params["indices"] = args["indices"]
313
- if (args["forecast"] !== undefined) params["forecast"] = args["forecast"]
314
- let path = '/api/v1/misc/weather'
315
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
316
- }
317
- async getMiscWorldtime(args: any = {}): Promise<any> {
318
- const params:any = {}
319
- const body:any = {}
320
- if (args["city"] !== undefined) params["city"] = args["city"]
321
- let path = '/api/v1/misc/worldtime'
322
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
323
- }
324
- async postMiscDateDiff(args: any = {}): Promise<any> {
325
- const params:any = {}
326
- const body:any = {}
327
- if (args["end_date"] !== undefined) body["end_date"] = args["end_date"]
328
- if (args["format"] !== undefined) body["format"] = args["format"]
329
- if (args["start_date"] !== undefined) body["start_date"] = args["start_date"]
330
- let path = '/api/v1/misc/date-diff'
331
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
332
- }
333
- }
334
- class NetworkApi {
335
- constructor(private c: UapiClient) {}
336
- async getNetworkDns(args: any = {}): Promise<any> {
337
- const params:any = {}
338
- const body:any = {}
339
- if (args["domain"] !== undefined) params["domain"] = args["domain"]
340
- if (args["type"] !== undefined) params["type"] = args["type"]
341
- let path = '/api/v1/network/dns'
342
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
343
- }
344
- async getNetworkIcp(args: any = {}): Promise<any> {
345
- const params:any = {}
346
- const body:any = {}
347
- if (args["domain"] !== undefined) params["domain"] = args["domain"]
348
- let path = '/api/v1/network/icp'
349
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
350
- }
351
- async getNetworkIpinfo(args: any = {}): Promise<any> {
352
- const params:any = {}
353
- const body:any = {}
354
- if (args["ip"] !== undefined) params["ip"] = args["ip"]
355
- if (args["source"] !== undefined) params["source"] = args["source"]
356
- let path = '/api/v1/network/ipinfo'
357
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
358
- }
359
- async getNetworkMyip(args: any = {}): Promise<any> {
360
- const params:any = {}
361
- const body:any = {}
362
- if (args["source"] !== undefined) params["source"] = args["source"]
363
- let path = '/api/v1/network/myip'
364
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
365
- }
366
- async getNetworkPing(args: any = {}): Promise<any> {
367
- const params:any = {}
368
- const body:any = {}
369
- if (args["host"] !== undefined) params["host"] = args["host"]
370
- let path = '/api/v1/network/ping'
371
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
372
- }
373
- async getNetworkPingmyip(args: any = {}): Promise<any> {
374
- const params:any = {}
375
- const body:any = {}
376
- let path = '/api/v1/network/pingmyip'
377
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
378
- }
379
- async getNetworkPortscan(args: any = {}): Promise<any> {
380
- const params:any = {}
381
- const body:any = {}
382
- if (args["host"] !== undefined) params["host"] = args["host"]
383
- if (args["port"] !== undefined) params["port"] = args["port"]
384
- if (args["protocol"] !== undefined) params["protocol"] = args["protocol"]
385
- let path = '/api/v1/network/portscan'
386
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
387
- }
388
- async getNetworkUrlstatus(args: any = {}): Promise<any> {
389
- const params:any = {}
390
- const body:any = {}
391
- if (args["url"] !== undefined) params["url"] = args["url"]
392
- let path = '/api/v1/network/urlstatus'
393
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
394
- }
395
- async getNetworkWhois(args: any = {}): Promise<any> {
396
- const params:any = {}
397
- const body:any = {}
398
- if (args["domain"] !== undefined) params["domain"] = args["domain"]
399
- if (args["format"] !== undefined) params["format"] = args["format"]
400
- let path = '/api/v1/network/whois'
401
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
402
- }
403
- async getNetworkWxdomain(args: any = {}): Promise<any> {
404
- const params:any = {}
405
- const body:any = {}
406
- if (args["domain"] !== undefined) params["domain"] = args["domain"]
407
- let path = '/api/v1/network/wxdomain'
408
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
409
- }
410
- }
411
- class PoemApi {
412
- constructor(private c: UapiClient) {}
413
- async getSaying(args: any = {}): Promise<any> {
414
- const params:any = {}
415
- const body:any = {}
416
- let path = '/api/v1/saying'
417
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
418
- }
419
- }
420
- class RandomApi {
421
- constructor(private c: UapiClient) {}
422
- async getAnswerbookAsk(args: any = {}): Promise<any> {
423
- const params:any = {}
424
- const body:any = {}
425
- if (args["question"] !== undefined) params["question"] = args["question"]
426
- let path = '/api/v1/answerbook/ask'
427
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
428
- }
429
- async getRandomImage(args: any = {}): Promise<any> {
430
- const params:any = {}
431
- const body:any = {}
432
- if (args["category"] !== undefined) params["category"] = args["category"]
433
- if (args["type"] !== undefined) params["type"] = args["type"]
434
- let path = '/api/v1/random/image'
435
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
436
- }
437
- async getRandomString(args: any = {}): Promise<any> {
438
- const params:any = {}
439
- const body:any = {}
440
- if (args["length"] !== undefined) params["length"] = args["length"]
441
- if (args["type"] !== undefined) params["type"] = args["type"]
442
- let path = '/api/v1/random/string'
443
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
444
- }
445
- async postAnswerbookAsk(args: any = {}): Promise<any> {
446
- const params:any = {}
447
- const body:any = {}
448
- if (args["question"] !== undefined) body["question"] = args["question"]
449
- let path = '/api/v1/answerbook/ask'
450
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
451
- }
452
- }
453
- class SocialApi {
454
- constructor(private c: UapiClient) {}
455
- async getGithubRepo(args: any = {}): Promise<any> {
456
- const params:any = {}
457
- const body:any = {}
458
- if (args["repo"] !== undefined) params["repo"] = args["repo"]
459
- let path = '/api/v1/github/repo'
460
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
461
- }
462
- async getSocialBilibiliArchives(args: any = {}): Promise<any> {
463
- const params:any = {}
464
- const body:any = {}
465
- if (args["mid"] !== undefined) params["mid"] = args["mid"]
466
- if (args["keywords"] !== undefined) params["keywords"] = args["keywords"]
467
- if (args["orderby"] !== undefined) params["orderby"] = args["orderby"]
468
- if (args["ps"] !== undefined) params["ps"] = args["ps"]
469
- if (args["pn"] !== undefined) params["pn"] = args["pn"]
470
- let path = '/api/v1/social/bilibili/archives'
471
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
472
- }
473
- async getSocialBilibiliLiveroom(args: any = {}): Promise<any> {
474
- const params:any = {}
475
- const body:any = {}
476
- if (args["mid"] !== undefined) params["mid"] = args["mid"]
477
- if (args["room_id"] !== undefined) params["room_id"] = args["room_id"]
478
- let path = '/api/v1/social/bilibili/liveroom'
479
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
480
- }
481
- async getSocialBilibiliReplies(args: any = {}): Promise<any> {
482
- const params:any = {}
483
- const body:any = {}
484
- if (args["oid"] !== undefined) params["oid"] = args["oid"]
485
- if (args["sort"] !== undefined) params["sort"] = args["sort"]
486
- if (args["ps"] !== undefined) params["ps"] = args["ps"]
487
- if (args["pn"] !== undefined) params["pn"] = args["pn"]
488
- let path = '/api/v1/social/bilibili/replies'
489
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
490
- }
491
- async getSocialBilibiliUserinfo(args: any = {}): Promise<any> {
492
- const params:any = {}
493
- const body:any = {}
494
- if (args["uid"] !== undefined) params["uid"] = args["uid"]
495
- let path = '/api/v1/social/bilibili/userinfo'
496
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
497
- }
498
- async getSocialBilibiliVideoinfo(args: any = {}): Promise<any> {
499
- const params:any = {}
500
- const body:any = {}
501
- if (args["aid"] !== undefined) params["aid"] = args["aid"]
502
- if (args["bvid"] !== undefined) params["bvid"] = args["bvid"]
503
- let path = '/api/v1/social/bilibili/videoinfo'
504
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
505
- }
506
- async getSocialQqGroupinfo(args: any = {}): Promise<any> {
507
- const params:any = {}
508
- const body:any = {}
509
- if (args["group_id"] !== undefined) params["group_id"] = args["group_id"]
510
- let path = '/api/v1/social/qq/groupinfo'
511
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
512
- }
513
- async getSocialQqUserinfo(args: any = {}): Promise<any> {
514
- const params:any = {}
515
- const body:any = {}
516
- if (args["qq"] !== undefined) params["qq"] = args["qq"]
517
- let path = '/api/v1/social/qq/userinfo'
518
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
519
- }
520
- }
521
- class StatusApi {
522
- constructor(private c: UapiClient) {}
523
- async getStatusRatelimit(args: any = {}): Promise<any> {
524
- const params:any = {}
525
- const body:any = {}
526
- let path = '/api/v1/status/ratelimit'
527
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
528
- }
529
- async getStatusUsage(args: any = {}): Promise<any> {
530
- const params:any = {}
531
- const body:any = {}
532
- if (args["path"] !== undefined) params["path"] = args["path"]
533
- let path = '/api/v1/status/usage'
534
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
535
- }
536
- }
537
- class TextApi {
538
- constructor(private c: UapiClient) {}
539
- async getTextMd5(args: any = {}): Promise<any> {
540
- const params:any = {}
541
- const body:any = {}
542
- if (args["text"] !== undefined) params["text"] = args["text"]
543
- let path = '/api/v1/text/md5'
544
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
545
- }
546
- async postTextAesDecrypt(args: any = {}): Promise<any> {
547
- const params:any = {}
548
- const body:any = {}
549
- if (args["key"] !== undefined) body["key"] = args["key"]
550
- if (args["nonce"] !== undefined) body["nonce"] = args["nonce"]
551
- if (args["text"] !== undefined) body["text"] = args["text"]
552
- let path = '/api/v1/text/aes/decrypt'
553
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
554
- }
555
- async postTextAesDecryptAdvanced(args: any = {}): Promise<any> {
556
- const params:any = {}
557
- const body:any = {}
558
- if (args["iv"] !== undefined) body["iv"] = args["iv"]
559
- if (args["key"] !== undefined) body["key"] = args["key"]
560
- if (args["mode"] !== undefined) body["mode"] = args["mode"]
561
- if (args["padding"] !== undefined) body["padding"] = args["padding"]
562
- if (args["text"] !== undefined) body["text"] = args["text"]
563
- let path = '/api/v1/text/aes/decrypt-advanced'
564
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
565
- }
566
- async postTextAesEncrypt(args: any = {}): Promise<any> {
567
- const params:any = {}
568
- const body:any = {}
569
- if (args["key"] !== undefined) body["key"] = args["key"]
570
- if (args["text"] !== undefined) body["text"] = args["text"]
571
- let path = '/api/v1/text/aes/encrypt'
572
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
573
- }
574
- async postTextAesEncryptAdvanced(args: any = {}): Promise<any> {
575
- const params:any = {}
576
- const body:any = {}
577
- if (args["iv"] !== undefined) body["iv"] = args["iv"]
578
- if (args["key"] !== undefined) body["key"] = args["key"]
579
- if (args["mode"] !== undefined) body["mode"] = args["mode"]
580
- if (args["output_format"] !== undefined) body["output_format"] = args["output_format"]
581
- if (args["padding"] !== undefined) body["padding"] = args["padding"]
582
- if (args["text"] !== undefined) body["text"] = args["text"]
583
- let path = '/api/v1/text/aes/encrypt-advanced'
584
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
585
- }
586
- async postTextAnalyze(args: any = {}): Promise<any> {
587
- const params:any = {}
588
- const body:any = {}
589
- if (args["text"] !== undefined) body["text"] = args["text"]
590
- let path = '/api/v1/text/analyze'
591
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
592
- }
593
- async postTextBase64Decode(args: any = {}): Promise<any> {
594
- const params:any = {}
595
- const body:any = {}
596
- if (args["text"] !== undefined) body["text"] = args["text"]
597
- let path = '/api/v1/text/base64/decode'
598
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
599
- }
600
- async postTextBase64Encode(args: any = {}): Promise<any> {
601
- const params:any = {}
602
- const body:any = {}
603
- if (args["text"] !== undefined) body["text"] = args["text"]
604
- let path = '/api/v1/text/base64/encode'
605
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
606
- }
607
- async postTextConvert(args: any = {}): Promise<any> {
608
- const params:any = {}
609
- const body:any = {}
610
- if (args["from"] !== undefined) body["from"] = args["from"]
611
- if (args["options"] !== undefined) body["options"] = args["options"]
612
- if (args["text"] !== undefined) body["text"] = args["text"]
613
- if (args["to"] !== undefined) body["to"] = args["to"]
614
- let path = '/api/v1/text/convert'
615
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
616
- }
617
- async postTextMd5(args: any = {}): Promise<any> {
618
- const params:any = {}
619
- const body:any = {}
620
- if (args["text"] !== undefined) body["text"] = args["text"]
621
- let path = '/api/v1/text/md5'
622
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
623
- }
624
- async postTextMd5Verify(args: any = {}): Promise<any> {
625
- const params:any = {}
626
- const body:any = {}
627
- if (args["hash"] !== undefined) body["hash"] = args["hash"]
628
- if (args["text"] !== undefined) body["text"] = args["text"]
629
- let path = '/api/v1/text/md5/verify'
630
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
631
- }
632
- }
633
- class TranslateApi {
634
- constructor(private c: UapiClient) {}
635
- async getAiTranslateLanguages(args: any = {}): Promise<any> {
636
- const params:any = {}
637
- const body:any = {}
638
- let path = '/api/v1/ai/translate/languages'
639
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
640
- }
641
- async postAiTranslate(args: any = {}): Promise<any> {
642
- const params:any = {}
643
- const body:any = {}
644
- if (args["target_lang"] !== undefined) params["target_lang"] = args["target_lang"]
645
- if (args["context"] !== undefined) body["context"] = args["context"]
646
- if (args["fast_mode"] !== undefined) body["fast_mode"] = args["fast_mode"]
647
- if (args["max_concurrency"] !== undefined) body["max_concurrency"] = args["max_concurrency"]
648
- if (args["preserve_format"] !== undefined) body["preserve_format"] = args["preserve_format"]
649
- if (args["source_lang"] !== undefined) body["source_lang"] = args["source_lang"]
650
- if (args["style"] !== undefined) body["style"] = args["style"]
651
- if (args["text"] !== undefined) body["text"] = args["text"]
652
- if (args["texts"] !== undefined) body["texts"] = args["texts"]
653
- let path = '/api/v1/ai/translate'
654
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
655
- }
656
- async postTranslateStream(args: any = {}): Promise<any> {
657
- const params:any = {}
658
- const body:any = {}
659
- if (args["from_lang"] !== undefined) body["from_lang"] = args["from_lang"]
660
- if (args["query"] !== undefined) body["query"] = args["query"]
661
- if (args["to_lang"] !== undefined) body["to_lang"] = args["to_lang"]
662
- if (args["tone"] !== undefined) body["tone"] = args["tone"]
663
- let path = '/api/v1/translate/stream'
664
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
665
- }
666
- async postTranslateText(args: any = {}): Promise<any> {
667
- const params:any = {}
668
- const body:any = {}
669
- if (args["to_lang"] !== undefined) params["to_lang"] = args["to_lang"]
670
- if (args["text"] !== undefined) body["text"] = args["text"]
671
- let path = '/api/v1/translate/text'
672
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
673
- }
674
- }
675
- class WebparseApi {
676
- constructor(private c: UapiClient) {}
677
- async getWebTomarkdownAsyncStatus(args: any = {}): Promise<any> {
678
- const params:any = {}
679
- const body:any = {}
680
- let path = '/api/v1/web/tomarkdown/async/{task_id}'
681
- if (args['task_id'] !== undefined) path = path.replace('{' + 'task_id' + '}', String(args['task_id']))
682
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
683
- }
684
- async getWebparseExtractimages(args: any = {}): Promise<any> {
685
- const params:any = {}
686
- const body:any = {}
687
- if (args["url"] !== undefined) params["url"] = args["url"]
688
- let path = '/api/v1/webparse/extractimages'
689
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
690
- }
691
- async getWebparseMetadata(args: any = {}): Promise<any> {
692
- const params:any = {}
693
- const body:any = {}
694
- if (args["url"] !== undefined) params["url"] = args["url"]
695
- let path = '/api/v1/webparse/metadata'
696
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
697
- }
698
- async postWebTomarkdownAsync(args: any = {}): Promise<any> {
699
- const params:any = {}
700
- const body:any = {}
701
- if (args["url"] !== undefined) params["url"] = args["url"]
702
- let path = '/api/v1/web/tomarkdown/async'
703
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
704
- }
705
- }
706
- class MinGanCiShiBieApi {
707
- constructor(private c: UapiClient) {}
708
- async getSensitiveWordAnalyzeQuery(args: any = {}): Promise<any> {
709
- const params:any = {}
710
- const body:any = {}
711
- if (args["keyword"] !== undefined) params["keyword"] = args["keyword"]
712
- let path = '/api/v1/sensitive-word/analyze-query'
713
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
714
- }
715
- async postSensitiveWordAnalyze(args: any = {}): Promise<any> {
716
- const params:any = {}
717
- const body:any = {}
718
- if (args["keywords"] !== undefined) body["keywords"] = args["keywords"]
719
- let path = '/api/v1/sensitive-word/analyze'
720
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
721
- }
722
- async postSensitiveWordQuickCheck(args: any = {}): Promise<any> {
723
- const params:any = {}
724
- const body:any = {}
725
- if (args["text"] !== undefined) body["text"] = args["text"]
726
- let path = '/api/v1/text/profanitycheck'
727
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
728
- }
729
- }
730
- class ZhiNengSouSuoApi {
731
- constructor(private c: UapiClient) {}
732
- async getSearchEngines(args: any = {}): Promise<any> {
733
- const params:any = {}
734
- const body:any = {}
735
- let path = '/api/v1/search/engines'
736
- return this.c._request('GET', path, params, Object.keys(body).length > 0 ? body : undefined)
737
- }
738
- async postSearchAggregate(args: any = {}): Promise<any> {
739
- const params:any = {}
740
- const body:any = {}
741
- if (args["fetch_full"] !== undefined) body["fetch_full"] = args["fetch_full"]
742
- if (args["filetype"] !== undefined) body["filetype"] = args["filetype"]
743
- if (args["query"] !== undefined) body["query"] = args["query"]
744
- if (args["site"] !== undefined) body["site"] = args["site"]
745
- if (args["sort"] !== undefined) body["sort"] = args["sort"]
746
- if (args["time_range"] !== undefined) body["time_range"] = args["time_range"]
747
- if (args["timeout_ms"] !== undefined) body["timeout_ms"] = args["timeout_ms"]
748
- let path = '/api/v1/search/aggregate'
749
- return this.c._request('POST', path, params, Object.keys(body).length > 0 ? body : undefined)
750
- }
751
- }
1
+ import type * as Internal from '../internal/src/index.js'
2
+
3
+ export class UapiError extends Error {
4
+ constructor(public code: string, public status: number, public details?: unknown) {
5
+ super(`${status} ${code}`)
6
+ }
7
+ }
8
+ export type GetClipzyGetResponse =
9
+ Internal.GetClipzyGet200Response
10
+ export interface GetClipzyGetArgs {
11
+ /** 片段的唯一 ID。 */
12
+ id: string;
13
+ }
14
+ export type GetClipzyRawResponse =
15
+ string
16
+ export interface GetClipzyRawArgs {
17
+ /** 片段的唯一 ID。 */
18
+ id: string;
19
+ /** 用于解密的 Base64 编码的 AES 密钥。 */
20
+ key: string;
21
+ }
22
+ export type PostClipzyStoreResponse =
23
+ Internal.PostClipzyStore200Response
24
+ export interface PostClipzyStoreArgs {
25
+ /** 必需:经过加密和 LZString 压缩后的 Base64 字符串。请参考文档首页的JS代码示例。 */
26
+ compressedData: string;
27
+ /** 可选:片段的留存时间(秒)。正数表示秒数(最大约30天),-1 表示永久存储。默认为 3600。 */
28
+ ttl?: number;
29
+ }
30
+ export type GetConvertUnixtimeResponse =
31
+ Internal.GetConvertUnixtime200Response
32
+ export interface GetConvertUnixtimeArgs {
33
+ /** 一个智能时间参数,可传入Unix时间戳(10位或13位)或标准日期字符串(如 '2023-10-27 10:30:00'),系统将自动识别并转换。 */
34
+ time: string;
35
+ }
36
+ export type PostConvertJsonResponse =
37
+ Internal.PostConvertJson200Response
38
+ export interface PostConvertJsonArgs {
39
+ /** 需要被格式化的原始JSON字符串。 */
40
+ content: string;
41
+ }
42
+ export type GetDailyNewsImageResponse =
43
+ ArrayBuffer
44
+ export type GetGameEpicFreeResponse =
45
+ Internal.GetGameEpicFree200Response
46
+ export type GetGameMinecraftHistoryidResponse =
47
+ Internal.GetGameMinecraftHistoryid200Response
48
+ export interface GetGameMinecraftHistoryidArgs {
49
+ /** 玩家的 Minecraft 用户名。使用此参数查询时,会返回所有匹配用户的列表(包括当前用户名或曾用名匹配的玩家)。 */
50
+ name?: string;
51
+ /** 玩家的 Minecraft UUID,支持带连字符或不带连字符格式。 */
52
+ uuid?: string;
53
+ }
54
+ export type GetGameMinecraftServerstatusResponse =
55
+ Internal.GetGameMinecraftServerstatus200Response
56
+ export interface GetGameMinecraftServerstatusArgs {
57
+ /** Minecraft服务器的地址,可以是域名(如 `hypixel.net`)或 `IP:端口` 的形式(如 `mc.example.com:25565`)。如果省略端口,将默认使用 `25565`。 */
58
+ server: string;
59
+ }
60
+ export type GetGameMinecraftUserinfoResponse =
61
+ Internal.GetGameMinecraftUserinfo200Response
62
+ export interface GetGameMinecraftUserinfoArgs {
63
+ /** 玩家的 Minecraft 游戏内名称(正版ID)。 */
64
+ username: string;
65
+ }
66
+ export type GetGameSteamSummaryResponse =
67
+ Internal.GetGameSteamSummary200Response
68
+ export interface GetGameSteamSummaryArgs {
69
+ /** 用户的 Steam 标识。可以是以下任意一种格式:
70
+ - 纯数字的 **SteamID64**
71
+ - 用户的 **自定义 URL 名称** (Vanity URL)
72
+ - 完整的 **个人资料链接** (包含 SteamID64 或自定义名称)
73
+ - 好友代码 (如 `22202`) */
74
+ steamid?: string;
75
+ /** 用户的 Steam 自定义URL名称(Vanity URL)。例如个人资料链接中 `/id/` 后面的部分。 */
76
+ id?: string;
77
+ /** 用户的 Steam ID3 格式标识符。传统的 Steam ID 格式,形如 STEAM_X:Y:Z。 */
78
+ id3?: string;
79
+ /** 你的 Steam Web API Key。这是一个可选参数,如果提供,它将覆盖我们在后端配置的全局Key。这为你提供了更大的灵活性,但请务必注意Key的保密,不要在前端暴露。 */
80
+ key?: string;
81
+ }
82
+ export type GetAvatarGravatarResponse =
83
+ ArrayBuffer
84
+ export interface GetAvatarGravatarArgs {
85
+ /** 用户的 Email 地址。如果未提供 `hash` 参数,则此参数为必需。 */
86
+ email?: string;
87
+ /** 用户 Email 地址的小写 MD5 哈希值。如果提供此参数,将忽略 `email` 参数。 */
88
+ hash?: string;
89
+ /** 头像的尺寸,单位为像素。有效范围是 1 到 2048。 */
90
+ s?: number;
91
+ /** 当用户没有自己的 Gravatar 头像时,显示的默认头像类型。可选值包括 `mp`, `identicon`, `monsterid`, `wavatar`, `retro`, `robohash`, `blank`, `404`。 */
92
+ d?: string;
93
+ /** 头像分级。可选值:`g`, `pg`, `r`, `x`。 */
94
+ r?: string;
95
+ }
96
+ export type GetImageBingDailyResponse =
97
+ ArrayBuffer
98
+ export type GetImageMotouResponse =
99
+ ArrayBuffer
100
+ export interface GetImageMotouArgs {
101
+ /** 你想要摸头的对象的QQ号码。 */
102
+ qq: string;
103
+ /** GIF的背景颜色。留空则由后端服务决定默认值。 */
104
+ bgColor?: string;
105
+ /** Same as `bgColor`. Kept for compatibility. */
106
+ "bg_color"?: string;
107
+ }
108
+ export type GetImageQrcodeResponse =
109
+ Internal.GetImageQrcode200Response
110
+ export interface GetImageQrcodeArgs {
111
+ /** 你希望编码到二维码中的任何文本内容,比如一个URL、一段话或者一个JSON字符串。 */
112
+ text: string;
113
+ /** 二维码图片的边长(正方形),单位是像素。有效范围是 256 2048 之间。 */
114
+ size?: number;
115
+ /** 指定响应内容的格式。可选值为 `image`, `json`, `json_url`。 */
116
+ format?: string;
117
+ /** 是否使用透明背景。启用后生成的 PNG 图片将具有 alpha 通道,背景透明。 */
118
+ transparent?: boolean;
119
+ /** 二维码前景色(即二维码本身的颜色),使用十六进制格式。URL 中需要将 `#` 编码为 `%23`。 */
120
+ fgcolor?: string;
121
+ /** 二维码背景色,使用十六进制格式。当 `transparent=true` 时此参数会被忽略。URL 中需要将 `#` 编码为 `%23`。 */
122
+ bgcolor?: string;
123
+ }
124
+ export type GetImageTobase64Response =
125
+ Internal.GetImageTobase64200Response
126
+ export interface GetImageTobase64Args {
127
+ /** 需要转换为Base64的、可公开访问的图片URL地址。 */
128
+ url: string;
129
+ }
130
+ export type PostImageCompressResponse =
131
+ ArrayBuffer
132
+ export interface PostImageCompressArgs {
133
+ /** 压缩强度 (1-5),默认为 3。数字越小,压缩率越高。 */
134
+ level?: number;
135
+ /** 输出图片格式,可以是 'png' 'jpeg'。 */
136
+ format?: string;
137
+ /** 支持PNG, JPG, JPEG等常见图片格式。文件大小不超过15MB。 */
138
+ file: string;
139
+ }
140
+ export type PostImageFrombase64Response =
141
+ Internal.PostImageFrombase64200Response
142
+ export interface PostImageFrombase64Args {
143
+ /** 图片的Base64 Data URI,必须包含MIME类型头。例如:`data:image/png;base64,...` */
144
+ imageData: string;
145
+ }
146
+ export type PostImageMotouResponse =
147
+ ArrayBuffer
148
+ export interface PostImageMotouArgs {
149
+ /** GIF的背景颜色。可选值为 'white', 'black', 'transparent'。 */
150
+ bgColor?: string;
151
+ /** Same as `bgColor`. Kept for compatibility. */
152
+ "bg_color"?: string;
153
+ /** 上传的图片文件。支持JPG、PNG、GIF等常见格式。 */
154
+ file?: string;
155
+ /** 图片的URL地址。如果提供此项,将优先使用该URL的图片。 */
156
+ imageUrl?: string;
157
+ /** Same as `imageUrl`. Kept for compatibility. */
158
+ "image_url"?: string;
159
+ }
160
+ export type PostImageNsfwResponse =
161
+ Internal.PostImageNsfw200Response
162
+ export interface PostImageNsfwArgs {
163
+ /** 要检测的图片文件。支持 JPG、JPEG、PNG、GIF、WebP 格式,最大 20MB。 */
164
+ file?: string;
165
+ /** 图片的 URL 地址。如果同时提供 file url,将优先使用 file。 */
166
+ url?: string;
167
+ }
168
+ export type PostImageSpeechlessResponse =
169
+ ArrayBuffer
170
+ export interface PostImageSpeechlessArgs {
171
+ /** 表情包下方的文字内容。求求你_______ */
172
+ bottomText?: string;
173
+ /** Same as `bottomText`. Kept for compatibility. */
174
+ "bottom_text"?: string;
175
+ /** 表情包上方的文字内容。你们怎么不说话了,是不是都在偷偷 _______ */
176
+ topText?: string;
177
+ /** Same as `topText`. Kept for compatibility. */
178
+ "top_text"?: string;
179
+ }
180
+ export type PostImageSvgResponse =
181
+ ArrayBuffer
182
+ export interface PostImageSvgArgs {
183
+ /** 输出图像的目标格式。支持的值:`png`, `jpeg`, `jpg`, `gif`, `tiff`, `bmp`。 */
184
+ format?: string;
185
+ /** 输出图像的宽度(像素)。如果省略,将根据 `height` 保持宽高比,或者使用 SVG 的原始宽度。 */
186
+ width?: number;
187
+ /** 输出图像的高度(像素)。如果省略,将根据 `width` 保持宽高比,或者使用 SVG 的原始高度。 */
188
+ height?: number;
189
+ /** JPEG 图像的压缩质量(1-100)。仅当 `format` `jpeg` `jpg` 时有效。 */
190
+ quality?: number;
191
+ /** 支持SVG文件 */
192
+ file?: string;
193
+ }
194
+ export type GetHistoryProgrammerResponse =
195
+ Internal.GetHistoryProgrammer200Response
196
+ export interface GetHistoryProgrammerArgs {
197
+ /** 月份,1-12之间的整数。 */
198
+ month: number;
199
+ /** 日期,1-31之间的整数。 */
200
+ day: number;
201
+ }
202
+ export type GetHistoryProgrammerTodayResponse =
203
+ Internal.GetHistoryProgrammerToday200Response
204
+ export type GetMiscDistrictResponse =
205
+ Internal.GetMiscDistrict200Response
206
+ export interface GetMiscDistrictArgs {
207
+ /** 关键词搜索(城市名、区县名,支持中英文)。 */
208
+ keywords?: string;
209
+ /** 中国行政区划代码精确查询(如 `110000`),同时返回下级行政区。 */
210
+ adcode?: string;
211
+ /** 纬度,与 `lng` 配合使用,坐标反查附近地点。 */
212
+ lat?: number;
213
+ /** 经度,与 `lat` 配合使用。 */
214
+ lng?: number;
215
+ /** 过滤行政级别。 */
216
+ level?: string;
217
+ /** 过滤国家代码(ISO 3166-1 alpha-2),如 `CN`、`JP`、`US`、`GB`。 */
218
+ country?: string;
219
+ /** 返回数量上限,默认 `20`,最大 `100`。 */
220
+ limit?: number;
221
+ }
222
+ export type GetMiscHolidayCalendarResponse =
223
+ Internal.GetMiscHolidayCalendar200Response
224
+ export interface GetMiscHolidayCalendarArgs {
225
+ /** 按天查询时填写这个参数,例如查某一天。格式:`YYYY-MM-DD`。和 `month`、`year` 三选一。 */
226
+ date?: string;
227
+ /** 按月查询时填写这个参数,例如查某个月。格式:`YYYY-MM`。和 `date`、`year` 三选一。 */
228
+ month?: string;
229
+ /** 按年查询时填写这个参数,例如查某一年。格式:`YYYY`。和 `date`、`month` 三选一。 */
230
+ year?: string;
231
+ /** 时区名称,默认 Asia/Shanghai。 */
232
+ timezone?: string;
233
+ /** 节日筛选类型,默认 all。 */
234
+ holidayType?: string;
235
+ /** Same as `holidayType`. Kept for compatibility. */
236
+ "holiday_type"?: string;
237
+ /** 是否返回前后最近节日,仅 date 模式生效,默认 false。month/year 模式会忽略此参数。 */
238
+ includeNearby?: boolean;
239
+ /** Same as `includeNearby`. Kept for compatibility. */
240
+ "include_nearby"?: boolean;
241
+ /** 返回最近节日数量限制,默认 7,最大 30。仅 date 模式 + include_nearby=true 生效。 */
242
+ nearbyLimit?: number;
243
+ /** Same as `nearbyLimit`. Kept for compatibility. */
244
+ "nearby_limit"?: number;
245
+ }
246
+ export type GetMiscHotboardResponse =
247
+ Internal.GetMiscHotboard200Response
248
+ export interface GetMiscHotboardArgs {
249
+ /** 你想要查询的热榜平台。请从[支持的平台列表](#enum-list)中选择。 */
250
+ type: string;
251
+ /** 时光机模式:毫秒时间戳,返回最接近该时间的热榜快照。不传则返回当前实时热榜。 */
252
+ time?: number;
253
+ /** 搜索模式:搜索关键词,在历史热榜中搜索包含该关键词的条目。需配合 time_start 和 time_end 使用。 */
254
+ keyword?: string;
255
+ /** 搜索模式必填:搜索起始时间戳(毫秒)。 */
256
+ timeStart?: number;
257
+ /** Same as `timeStart`. Kept for compatibility. */
258
+ "time_start"?: number;
259
+ /** 搜索模式必填:搜索结束时间戳(毫秒)。 */
260
+ timeEnd?: number;
261
+ /** Same as `timeEnd`. Kept for compatibility. */
262
+ "time_end"?: number;
263
+ /** 搜索模式下最大返回条数,默认 50,最大 200。 */
264
+ limit?: number;
265
+ /** 设为 true 时列出所有可用的历史数据源,忽略其他参数。 */
266
+ sources?: boolean;
267
+ }
268
+ export type GetMiscLunartimeResponse =
269
+ Internal.GetMiscLunartime200Response
270
+ export interface GetMiscLunartimeArgs {
271
+ /** Unix 时间戳,支持 10 位秒级或 13 位毫秒级。不传则默认当前时间。 */
272
+ ts?: string;
273
+ /** 时区名称。支持 IANA 时区(如 Asia/Shanghai)和别名(Shanghai、Beijing)。默认 Asia/Shanghai。 */
274
+ timezone?: string;
275
+ }
276
+ export type GetMiscPhoneinfoResponse =
277
+ Internal.GetMiscPhoneinfo200Response
278
+ export interface GetMiscPhoneinfoArgs {
279
+ /** 需要查询的11位中国大陆手机号码。 */
280
+ phone: string;
281
+ }
282
+ export type GetMiscRandomnumberResponse =
283
+ Internal.GetMiscRandomnumber200Response
284
+ export interface GetMiscRandomnumberArgs {
285
+ /** 生成随机数的最小值(包含)。 */
286
+ min?: number;
287
+ /** 生成随机数的最大值(包含)。 */
288
+ max?: number;
289
+ /** 需要生成的随机数的数量。 */
290
+ count?: number;
291
+ /** 是否允许生成的多个数字中出现重复值。 */
292
+ allowRepeat?: boolean;
293
+ /** Same as `allowRepeat`. Kept for compatibility. */
294
+ "allow_repeat"?: boolean;
295
+ /** 是否生成小(浮点)数。如果为 false,则只生成整数。 */
296
+ allowDecimal?: boolean;
297
+ /** Same as `allowDecimal`. Kept for compatibility. */
298
+ "allow_decimal"?: boolean;
299
+ /** 如果 `allow_decimal=true`,这里可以指定小数的位数。 */
300
+ decimalPlaces?: number;
301
+ /** Same as `decimalPlaces`. Kept for compatibility. */
302
+ "decimal_places"?: number;
303
+ }
304
+ export type GetMiscTimestampResponse =
305
+ Internal.GetMiscTimestamp200Response
306
+ export interface GetMiscTimestampArgs {
307
+ /** 需要转换的Unix时间戳,支持10位(秒)或13位(毫秒)。 */
308
+ ts: string;
309
+ }
310
+ export type GetMiscTrackingCarriersResponse =
311
+ Internal.GetMiscTrackingCarriers200Response
312
+ export type GetMiscTrackingDetectResponse =
313
+ Internal.GetMiscTrackingDetect200Response
314
+ export interface GetMiscTrackingDetectArgs {
315
+ /** 需要识别的快递单号。 */
316
+ trackingNumber: string;
317
+ /** Same as `trackingNumber`. Kept for compatibility. */
318
+ "tracking_number"?: string;
319
+ }
320
+ export type GetMiscTrackingQueryResponse =
321
+ Internal.GetMiscTrackingQuery200Response
322
+ export interface GetMiscTrackingQueryArgs {
323
+ /** 快递单号,通常是一串10-20位的数字或字母数字组合。 */
324
+ trackingNumber: string;
325
+ /** Same as `trackingNumber`. Kept for compatibility. */
326
+ "tracking_number"?: string;
327
+ /** 快递公司编码(可选)。不填写时系统会自动识别,填写后可加快查询速度。 */
328
+ carrierCode?: string;
329
+ /** Same as `carrierCode`. Kept for compatibility. */
330
+ "carrier_code"?: string;
331
+ /** 收件人手机尾号,4位数字(可选)。部分快递公司需要验证手机尾号才能查询详细物流信息。 */
332
+ phone?: string;
333
+ }
334
+ export type GetMiscWeatherResponse =
335
+ Internal.GetMiscWeather200Response
336
+ export interface GetMiscWeatherArgs {
337
+ /** 城市名称,支持中文(`北京`)和英文(`Tokyo`)。可选参数,不传时会尝试 IP 自动定位。 */
338
+ city?: string;
339
+ /** 城市行政区划代码(如 `110000`),优先级高于 city。可选参数,不传时会尝试 IP 自动定位。 */
340
+ adcode?: string;
341
+ /** 返回扩展气象字段(体感温度、能见度、气压、紫外线、降水量、云量、空气质量指数及污染物分项数据)。 */
342
+ extended?: boolean;
343
+ /** 返回多天预报数据(最多7天),含每天的最高温度、最低温度、白天夜间天气、风向风力、日出日落等。 */
344
+ forecast?: boolean;
345
+ /** 返回逐小时预报(24小时),含温度、天气、风向风速、湿度、降水概率等。 */
346
+ hourly?: boolean;
347
+ /** 返回分钟级降水预报(仅国内城市),精确到2分钟。 */
348
+ minutely?: boolean;
349
+ /** 返回18项生活指数(穿衣、紫外线、洗车、晾晒、空调、感冒、运动、舒适度、出行、钓鱼、过敏、防晒、心情、啤酒、雨伞、交通、空气净化器、花粉)。 */
350
+ indices?: boolean;
351
+ /** 返回语言。`zh` 返回中文(默认),`en` 返回英文。城市名翻译覆盖 7000+ 城市。生活指数(`indices`)目前仅支持中文。 */
352
+ lang?: string;
353
+ }
354
+ export type GetMiscWorldtimeResponse =
355
+ Internal.GetMiscWorldtime200Response
356
+ export interface GetMiscWorldtimeArgs {
357
+ /** 你需要查询的城市或地区,请使用标准的 IANA 时区数据库名称,例如 'Shanghai', 'Asia/Tokyo', 'America/New_York'。 */
358
+ city: string;
359
+ }
360
+ export type PostMiscDateDiffResponse =
361
+ Internal.PostMiscDateDiff200Response
362
+ export interface PostMiscDateDiffArgs {
363
+ /** 结束日期,支持多种格式自动识别 */
364
+ endDate: string;
365
+ /** Same as `endDate`. Kept for compatibility. */
366
+ "end_date"?: string;
367
+ /** 日期格式(可选),如DD-MM-YYYY。不指定则自动识别 */
368
+ format?: string;
369
+ /** 开始日期,支持多种格式自动识别 */
370
+ startDate: string;
371
+ /** Same as `startDate`. Kept for compatibility. */
372
+ "start_date"?: string;
373
+ }
374
+ export type GetNetworkDnsResponse =
375
+ Internal.GetNetworkDns200Response
376
+ export interface GetNetworkDnsArgs {
377
+ /** 你需要查询的域名,例如 'cn.bing.com' */
378
+ domain: string;
379
+ /** 你想要查询的DNS记录类型。 */
380
+ type?: string;
381
+ }
382
+ export type GetNetworkIcpResponse =
383
+ Internal.GetNetworkIcp200Response
384
+ export interface GetNetworkIcpArgs {
385
+ /** 需要查询的域名或URL */
386
+ domain: string;
387
+ }
388
+ export type GetNetworkIpinfoResponse =
389
+ Internal.GetNetworkIpinfo200Response
390
+ export interface GetNetworkIpinfoArgs {
391
+ /** 你需要查询的公网IP地址或域名(支持IPv4和IPv6)。 */
392
+ ip: string;
393
+ /** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
394
+ source?: string;
395
+ }
396
+ export type GetNetworkMyipResponse =
397
+ Internal.GetNetworkMyip200Response
398
+ export interface GetNetworkMyipArgs {
399
+ /** 查询的数据源。如果留空,将使用默认的数据库。如果设置为 `commercial`,将调用商业级API,返回更详细的地理位置信息,但响应时间可能会稍长。 */
400
+ source?: string;
401
+ }
402
+ export type GetNetworkPingResponse =
403
+ Internal.GetNetworkPing200Response
404
+ export interface GetNetworkPingArgs {
405
+ /** 你需要 Ping 的目标主机,可以是域名或IP地址。 */
406
+ host: string;
407
+ }
408
+ export type GetNetworkPingmyipResponse =
409
+ Internal.GetNetworkPingmyip200Response
410
+ export type GetNetworkPortscanResponse =
411
+ Internal.GetNetworkPortscan200Response
412
+ export interface GetNetworkPortscanArgs {
413
+ /** 需要扫描的目标主机,可以是域名或IP地址。 */
414
+ host: string;
415
+ /** 需要扫描的端口号,范围是 1 到 65535。 */
416
+ port: number;
417
+ /** 扫描使用的协议,可以是 'tcp' 'udp'。 */
418
+ protocol?: string;
419
+ }
420
+ export type GetNetworkUrlstatusResponse =
421
+ Internal.GetNetworkUrlstatus200Response
422
+ export interface GetNetworkUrlstatusArgs {
423
+ /** 你需要检查其可访问性状态的完整URL。 */
424
+ url: string;
425
+ }
426
+ export type GetNetworkWhoisResponse =
427
+ Internal.GetNetworkWhois200Response
428
+ export interface GetNetworkWhoisArgs {
429
+ /** 你需要查询WHOIS信息的域名。 */
430
+ domain: string;
431
+ /** 返回格式。留空或为 'text' 时返回原始WHOIS文本,设为 'json' 时返回结构化JSON。 */
432
+ format?: string;
433
+ }
434
+ export type GetNetworkWxdomainResponse =
435
+ Internal.GetNetworkWxdomain200Response
436
+ export interface GetNetworkWxdomainArgs {
437
+ /** 需要查询的域名。 */
438
+ domain: string;
439
+ }
440
+ export type GetSayingResponse =
441
+ Internal.GetSaying200Response
442
+ export type GetAnswerbookAskResponse =
443
+ Internal.GetAnswerbookAsk200Response
444
+ export interface GetAnswerbookAskArgs {
445
+ /** 你想要提问的问题。问题不能为空。 */
446
+ question: string;
447
+ }
448
+ export type GetRandomImageResponse =
449
+ ArrayBuffer
450
+ export interface GetRandomImageArgs {
451
+ /** (可选)指定图片主类别。
452
+
453
+ **支持的主类别:**
454
+ - `acg`(二次元动漫,UapiPro服务器)
455
+ - `landscape`(风景图,外部图床)
456
+ - `anime`(混合动漫)
457
+ - `pc_wallpaper`(电脑壁纸,外部图床)
458
+ - `mobile_wallpaper`(手机壁纸,外部图床)
459
+ - `general_anime`(动漫图,外部图床)
460
+ - `ai_drawing`(AI绘画,外部图床)
461
+ - `bq`(表情包/趣图,UapiPro服务器)
462
+ - `furry`(福瑞,UapiPro服务器)
463
+
464
+ > [!TIP]
465
+ > 如果不指定,将从所有图片中随机抽取(不包含 `ikun` `ai_drawing`)。
466
+ */
467
+ category?: string;
468
+ /** (可选,仅UapiPro服务器图片支持)指定图片子类别。
469
+
470
+ - **bq**: `xiongmao`, `waiguoren`, `maomao`, `ikun`, `eciyuan`
471
+ - **acg**: `pc`, `mb`
472
+ - **furry**: `z4k`, `szs8k`, `s4k`, `4k`
473
+
474
+ > [!TIP]
475
+ > 外部图床类别和 `anime` 混合类别不支持 `type` 参数。
476
+ */
477
+ type?: string;
478
+ }
479
+ export type GetRandomStringResponse =
480
+ Internal.GetRandomString200Response
481
+ export interface GetRandomStringArgs {
482
+ /** 你希望生成的字符串的长度。有效范围是 1 到 1024。 */
483
+ length?: number;
484
+ /** 指定构成字符串的字符类型。 */
485
+ type?: string;
486
+ }
487
+ export type PostAnswerbookAskResponse =
488
+ Internal.PostAnswerbookAsk200Response
489
+ export interface PostAnswerbookAskArgs {
490
+ /** 你想要提问的问题 */
491
+ question: string;
492
+ }
493
+ export type GetGithubRepoResponse =
494
+ Internal.GetGithubRepo200Response
495
+ export interface GetGithubRepoArgs {
496
+ /** 目标仓库的标识,格式为 `owner/repo`。 */
497
+ repo: string;
498
+ }
499
+ export type GetSocialBilibiliArchivesResponse =
500
+ Internal.GetSocialBilibiliArchives200Response
501
+ export interface GetSocialBilibiliArchivesArgs {
502
+ /** B站用户的mid(用户ID) */
503
+ mid: string;
504
+ /** 搜索关键词,可为空 */
505
+ keywords?: string;
506
+ /** 排序方式。`pubdate`=最新发布,`views`=最多播放 */
507
+ orderby?: string;
508
+ /** 每页条数,默认20 */
509
+ ps?: string;
510
+ /** 页码,默认1 */
511
+ pn?: string;
512
+ }
513
+ export type GetSocialBilibiliLiveroomResponse =
514
+ Internal.GetSocialBilibiliLiveroom200Response
515
+ export interface GetSocialBilibiliLiveroomArgs {
516
+ /** 主播的用户ID (`mid`)。与 `room_id` 任选其一。 */
517
+ mid?: string;
518
+ /** 直播间ID,可以是长号(真实ID)或短号(靓号)。与 `mid` 任选其一。 */
519
+ roomId?: string;
520
+ /** Same as `roomId`. Kept for compatibility. */
521
+ "room_id"?: string;
522
+ }
523
+ export type GetSocialBilibiliRepliesResponse =
524
+ Internal.GetSocialBilibiliReplies200Response
525
+ export interface GetSocialBilibiliRepliesArgs {
526
+ /** 目标评论区的ID。对于视频,这通常就是它的 `aid`。 */
527
+ oid: string;
528
+ /** 排序方式。支持 `0/time`(按时间)、`1/like`(按点赞)、`2/reply`(按回复数)、`3/hot/hottest/最热`(按最热)。默认为 `0/time`。 */
529
+ sort?: string;
530
+ /** 每页获取的评论数量,范围是1到20。默认为 `20`。 */
531
+ ps?: string;
532
+ /** 要获取的页码,从1开始。默认为 `1`。 */
533
+ pn?: string;
534
+ }
535
+ export type GetSocialBilibiliUserinfoResponse =
536
+ Internal.GetSocialBilibiliUserinfo200Response
537
+ export interface GetSocialBilibiliUserinfoArgs {
538
+ /** Bilibili用户的UID */
539
+ uid: string;
540
+ }
541
+ export type GetSocialBilibiliVideoinfoResponse =
542
+ Internal.GetSocialBilibiliVideoinfo200Response
543
+ export interface GetSocialBilibiliVideoinfoArgs {
544
+ /** 视频的AV号 (aid),纯数字格式。`aid`和`bvid`任选其一即可。 */
545
+ aid?: string;
546
+ /** 视频的BV号 (bvid),例如 `BV117411r7R1`。`aid`和`bvid`任选其一即可。 */
547
+ bvid?: string;
548
+ }
549
+ export type GetSocialQqGroupinfoResponse =
550
+ Internal.GetSocialQqGroupinfo200Response
551
+ export interface GetSocialQqGroupinfoArgs {
552
+ /** QQ群号,长度5-12位 */
553
+ groupId: string;
554
+ /** Same as `groupId`. Kept for compatibility. */
555
+ "group_id"?: string;
556
+ }
557
+ export type GetSocialQqUserinfoResponse =
558
+ Internal.GetSocialQqUserinfo200Response
559
+ export interface GetSocialQqUserinfoArgs {
560
+ /** 需要查询的QQ号 */
561
+ qq: string;
562
+ }
563
+ export type GetStatusRatelimitResponse =
564
+ Internal.GetStatusRatelimit200Response
565
+ export interface GetStatusRatelimitArgs {
566
+ /** Bearer类型的API密钥认证头。例如:`Bearer sk-xxx` */
567
+ authorization: string;
568
+ /** Same as `authorization`. Kept for compatibility. */
569
+ "Authorization"?: string;
570
+ }
571
+ export type GetStatusUsageResponse =
572
+ Internal.GetStatusUsage200Response
573
+ export interface GetStatusUsageArgs {
574
+ /** (可选)如果你想查询某个特定的端点,请提供它的路径,例如 '/api/v1/image/motou'。如果留空,则返回所有端点的统计列表。 */
575
+ path?: string;
576
+ }
577
+ export type GetTextMd5Response =
578
+ Internal.GetTextMd5200Response
579
+ export interface GetTextMd5Args {
580
+ /** 需要计算哈希值的文本 */
581
+ text: string;
582
+ }
583
+ export type PostTextAesDecryptResponse =
584
+ Internal.PostTextAesDecrypt200Response
585
+ export interface PostTextAesDecryptArgs {
586
+ /** 密钥,长度必须为16、24或32字节,对应AES-128/192/256。 */
587
+ key: string;
588
+ /** 16字节的IV/Nonce,必须为16个字符 */
589
+ nonce: string;
590
+ /** Base64编码的密文。 */
591
+ text: string;
592
+ }
593
+ export type PostTextAesDecryptAdvancedResponse =
594
+ Internal.PostTextAesDecryptAdvanced200Response
595
+ export interface PostTextAesDecryptAdvancedArgs {
596
+ /** 初始化向量(非GCM模式必须提供,Base64编码)。此值来自加密接口返回的iv字段 */
597
+ iv?: string;
598
+ /** 解密密钥(必须与加密时相同) */
599
+ key: string;
600
+ /** 加密模式(必须与加密时相同):GCM/CBC/ECB/CTR/OFB/CFB */
601
+ mode: string;
602
+ /** 填充方式(可选,必须与加密时相同):PKCS7/ZERO/NONE。GCM模式默认为NONE */
603
+ padding?: string;
604
+ /** 待解密的密文(Base64编码)。此值来自加密接口返回的ciphertext字段 */
605
+ text: string;
606
+ }
607
+ export type PostTextAesEncryptResponse =
608
+ Internal.PostTextAesEncrypt200Response
609
+ export interface PostTextAesEncryptArgs {
610
+ /** 密钥长度必须为 16、24 32 字节,分别对应 AES-128、AES-192、AES-256。 */
611
+ key: string;
612
+ /** 待加密的明文文本。 */
613
+ text: string;
614
+ }
615
+ export type PostTextAesEncryptAdvancedResponse =
616
+ Internal.PostTextAesEncryptAdvanced200Response
617
+ export interface PostTextAesEncryptAdvancedArgs {
618
+ /** 自定义IV(可选,Base64编码,16字节)。GCM模式无需此参数 */
619
+ iv?: string;
620
+ /** 加密密钥(支持任意长度) */
621
+ key: string;
622
+ /** 加密模式:GCM/CBC/ECB/CTR/OFB/CFB(可选,默认GCM) */
623
+ mode?: string;
624
+ /** 输出格式:base64(默认)或hex */
625
+ outputFormat?: string;
626
+ /** Same as `outputFormat`. Kept for compatibility. */
627
+ "output_format"?: string;
628
+ /** 填充方式:PKCS7/ZERO/NONE(可选,默认PKCS7) */
629
+ padding?: string;
630
+ /** 待加密的明文文本 */
631
+ text: string;
632
+ }
633
+ export type PostTextAnalyzeResponse =
634
+ Internal.PostTextAnalyze200Response
635
+ export interface PostTextAnalyzeArgs {
636
+ /** */
637
+ text: string;
638
+ }
639
+ export type PostTextBase64DecodeResponse =
640
+ Internal.PostTextBase64Decode200Response
641
+ export interface PostTextBase64DecodeArgs {
642
+ /** */
643
+ text: string;
644
+ }
645
+ export type PostTextBase64EncodeResponse =
646
+ Internal.PostTextBase64Encode200Response
647
+ export interface PostTextBase64EncodeArgs {
648
+ /** */
649
+ text: string;
650
+ }
651
+ export type PostTextConvertResponse =
652
+ Internal.PostTextConvert200Response
653
+ export interface PostTextConvertArgs {
654
+ /** 源格式类型 */
655
+ from: string;
656
+ /** 可选参数(预留,当前未使用) */
657
+ options?: Record<string, unknown>;
658
+ /** 待转换的文本内容 */
659
+ text: string;
660
+ /** 目标格式类型 */
661
+ to: string;
662
+ }
663
+ export type PostTextMd5Response =
664
+ Internal.GetTextMd5200Response
665
+ export interface PostTextMd5Args {
666
+ /** 需要计算哈希值的文本 */
667
+ text: string;
668
+ }
669
+ export type PostTextMd5VerifyResponse =
670
+ Internal.PostTextMd5Verify200Response
671
+ export interface PostTextMd5VerifyArgs {
672
+ /** 用于比对的 MD5 哈希值(32 位小写十六进制字符串)。 */
673
+ hash: string;
674
+ /** 待校验的原始文本,会先计算其 MD5 再与 hash 进行比对。 */
675
+ text: string;
676
+ }
677
+ export type GetAiTranslateLanguagesResponse =
678
+ Internal.GetAiTranslateLanguages200Response
679
+ export type PostAiTranslateResponse =
680
+ Internal.PostAiTranslate200Response
681
+ export interface PostAiTranslateArgs {
682
+ /** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
683
+ targetLang: string;
684
+ /** Same as `targetLang`. Kept for compatibility. */
685
+ "target_lang"?: string;
686
+ /** 翻译上下文场景,可选。支持general(通用,默认)、business(商务)、technical(技术)、medical(医疗)、legal(法律)、marketing(市场营销)、entertainment(娱乐)、education(教育)、news(新闻)。 */
687
+ context?: string;
688
+ /** 是否保留原文格式,包括换行、缩进等。 */
689
+ preserveFormat?: boolean;
690
+ /** Same as `preserveFormat`. Kept for compatibility. */
691
+ "preserve_format"?: boolean;
692
+ /** 源语言代码,可选。如果不指定,系统会自动检测源语言。 */
693
+ sourceLang?: string;
694
+ /** Same as `sourceLang`. Kept for compatibility. */
695
+ "source_lang"?: string;
696
+ /** 翻译风格,可选。支持casual(随意口语化)、professional(专业商务,默认)、academic(学术正式)、literary(文学艺术)。 */
697
+ style?: string;
698
+ /** 待翻译的文本内容。最大长度10,000字符。 */
699
+ text: string;
700
+ }
701
+ export type PostTranslateStreamResponse =
702
+ string
703
+ export interface PostTranslateStreamArgs {
704
+ /** 源语言,支持:中文、英文、auto(自动检测)。默认为auto */
705
+ fromLang?: string;
706
+ /** Same as `fromLang`. Kept for compatibility. */
707
+ "from_lang"?: string;
708
+ /** 待翻译的文本内容 */
709
+ query: string;
710
+ /** 目标语言,支持:中文、英文 */
711
+ toLang: string;
712
+ /** Same as `toLang`. Kept for compatibility. */
713
+ "to_lang"?: string;
714
+ /** 语气参数,可选 */
715
+ tone?: string;
716
+ }
717
+ export type PostTranslateTextResponse =
718
+ Internal.PostTranslateText200Response
719
+ export interface PostTranslateTextArgs {
720
+ /** 目标语言代码。请从[支持的语言列表](#enum-list)中选择一个语言代码。 */
721
+ toLang: string;
722
+ /** Same as `toLang`. Kept for compatibility. */
723
+ "to_lang"?: string;
724
+ /** 待翻译的文本内容,最大长度3000字符。 */
725
+ text: string;
726
+ }
727
+ export type GetWebTomarkdownAsyncStatusResponse =
728
+ Internal.GetWebTomarkdownAsyncStatus200Response
729
+ export interface GetWebTomarkdownAsyncStatusArgs {
730
+ /** 任务ID(由提交接口返回) */
731
+ taskId: string;
732
+ /** Same as `taskId`. Kept for compatibility. */
733
+ "task_id"?: string;
734
+ }
735
+ export type GetWebparseExtractimagesResponse =
736
+ Internal.GetWebparseExtractimages200Response
737
+ export interface GetWebparseExtractimagesArgs {
738
+ /** 需要提取图片的网页URL */
739
+ url: string;
740
+ }
741
+ export type GetWebparseMetadataResponse =
742
+ Internal.GetWebparseMetadata200Response
743
+ export interface GetWebparseMetadataArgs {
744
+ /** 需要提取元数据的网页URL */
745
+ url: string;
746
+ }
747
+ export type PostWebTomarkdownAsyncResponse =
748
+ Internal.PostWebTomarkdownAsync202Response
749
+ export interface PostWebTomarkdownAsyncArgs {
750
+ /** 需要转换的网页URL。URL必须经过编码。 */
751
+ url: string;
752
+ }
753
+ export type GetSensitiveWordAnalyzeQueryResponse =
754
+ Internal.PostSensitiveWordAnalyze200Response
755
+ export interface GetSensitiveWordAnalyzeQueryArgs {
756
+ /** 要分析的关键词,最长1,000字符。 */
757
+ keyword: string;
758
+ }
759
+ export type PostSensitiveWordAnalyzeResponse =
760
+ Internal.PostSensitiveWordAnalyze200Response
761
+ export interface PostSensitiveWordAnalyzeArgs {
762
+ /** 要分析的关键词列表,单次最多100个。单条关键词最多1,000字符,总字符数最多20,000。 */
763
+ keywords: unknown[];
764
+ }
765
+ export type PostSensitiveWordQuickCheckResponse =
766
+ Internal.PostSensitiveWordQuickCheck200Response
767
+ export interface PostSensitiveWordQuickCheckArgs {
768
+ /** 需要检测的文本内容。支持简体和繁体中文。 */
769
+ text: string;
770
+ }
771
+ export type GetSearchEnginesResponse =
772
+ Internal.GetSearchEngines200Response
773
+ export type PostSearchAggregateResponse =
774
+ Internal.PostSearchAggregate200Response
775
+ export interface PostSearchAggregateArgs {
776
+ /** 是否获取页面完整正文(会影响响应时间) */
777
+ fetchFull?: boolean;
778
+ /** Same as `fetchFull`. Kept for compatibility. */
779
+ "fetch_full"?: boolean;
780
+ /** 限制文件类型,不需要 `filetype:` 前缀。支持 pdf、doc、docx、ppt、pptx、xls、xlsx、txt 等 */
781
+ filetype?: string;
782
+ /** 搜索查询关键词,支持中英文 */
783
+ query: string;
784
+ /** 限制搜索特定网站,不需要 `site:` 前缀 */
785
+ site?: string;
786
+ /** 排序方式 */
787
+ sort?: string;
788
+ /** 时间范围过滤 */
789
+ timeRange?: string;
790
+ /** Same as `timeRange`. Kept for compatibility. */
791
+ "time_range"?: string;
792
+ /** 请求超时时间(毫秒),范围 1000-30000 */
793
+ timeoutMs?: number;
794
+ /** Same as `timeoutMs`. Kept for compatibility. */
795
+ "timeout_ms"?: number;
796
+ }
797
+
798
+ export class UapiClient {
799
+ private baseURL: string
800
+ private token?: string
801
+ readonly clipzyZaiXianJianTieBan: ClipzyZaiXianJianTieBanApi
802
+ readonly "Clipzy 在线剪贴板": ClipzyZaiXianJianTieBanApi
803
+ readonly convert: ConvertApi
804
+ readonly "Convert": ConvertApi
805
+ readonly daily: DailyApi
806
+ readonly "Daily": DailyApi
807
+ readonly game: GameApi
808
+ readonly "Game": GameApi
809
+ readonly image: ImageApi
810
+ readonly "Image": ImageApi
811
+ readonly misc: MiscApi
812
+ readonly "Misc": MiscApi
813
+ readonly network: NetworkApi
814
+ readonly "Network": NetworkApi
815
+ readonly poem: PoemApi
816
+ readonly "Poem": PoemApi
817
+ readonly random: RandomApi
818
+ readonly "Random": RandomApi
819
+ readonly social: SocialApi
820
+ readonly "Social": SocialApi
821
+ readonly status: StatusApi
822
+ readonly "Status": StatusApi
823
+ readonly text: TextApi
824
+ readonly "Text": TextApi
825
+ readonly translate: TranslateApi
826
+ readonly "Translate": TranslateApi
827
+ readonly webparse: WebparseApi
828
+ readonly "WebParse": WebparseApi
829
+ readonly minGanCiShiBie: MinGanCiShiBieApi
830
+ readonly "敏感词识别": MinGanCiShiBieApi
831
+ readonly zhiNengSouSuo: ZhiNengSouSuoApi
832
+ readonly "智能搜索": ZhiNengSouSuoApi
833
+
834
+ constructor(baseURL: string, token?: string) {
835
+ this.baseURL = baseURL
836
+ this.token = token
837
+ const clipzyZaiXianJianTieBan = new ClipzyZaiXianJianTieBanApi(this)
838
+ this.clipzyZaiXianJianTieBan = clipzyZaiXianJianTieBan
839
+ this["Clipzy 在线剪贴板"] = clipzyZaiXianJianTieBan
840
+ const convert = new ConvertApi(this)
841
+ this.convert = convert
842
+ this["Convert"] = convert
843
+ const daily = new DailyApi(this)
844
+ this.daily = daily
845
+ this["Daily"] = daily
846
+ const game = new GameApi(this)
847
+ this.game = game
848
+ this["Game"] = game
849
+ const image = new ImageApi(this)
850
+ this.image = image
851
+ this["Image"] = image
852
+ const misc = new MiscApi(this)
853
+ this.misc = misc
854
+ this["Misc"] = misc
855
+ const network = new NetworkApi(this)
856
+ this.network = network
857
+ this["Network"] = network
858
+ const poem = new PoemApi(this)
859
+ this.poem = poem
860
+ this["Poem"] = poem
861
+ const random = new RandomApi(this)
862
+ this.random = random
863
+ this["Random"] = random
864
+ const social = new SocialApi(this)
865
+ this.social = social
866
+ this["Social"] = social
867
+ const status = new StatusApi(this)
868
+ this.status = status
869
+ this["Status"] = status
870
+ const text = new TextApi(this)
871
+ this.text = text
872
+ this["Text"] = text
873
+ const translate = new TranslateApi(this)
874
+ this.translate = translate
875
+ this["Translate"] = translate
876
+ const webparse = new WebparseApi(this)
877
+ this.webparse = webparse
878
+ this["WebParse"] = webparse
879
+ const minGanCiShiBie = new MinGanCiShiBieApi(this)
880
+ this.minGanCiShiBie = minGanCiShiBie
881
+ this["敏感词识别"] = minGanCiShiBie
882
+ const zhiNengSouSuo = new ZhiNengSouSuoApi(this)
883
+ this.zhiNengSouSuo = zhiNengSouSuo
884
+ this["智能搜索"] = zhiNengSouSuo
885
+ }
886
+
887
+ async _request(
888
+ method: string,
889
+ path: string,
890
+ params?: Record<string, unknown>,
891
+ body?: Record<string, unknown>,
892
+ headers?: Record<string, string>,
893
+ responseKind: 'json' | 'text' | 'arrayBuffer' = 'json',
894
+ ) {
895
+ const url = new URL(this.baseURL.replace(/\/$/, '') + path)
896
+ if (params) {
897
+ Object.entries(params).forEach(([key, value]) => {
898
+ if (value !== undefined) {
899
+ url.searchParams.set(key, String(value))
900
+ }
901
+ })
902
+ }
903
+ const res = await fetch(url.toString(), {
904
+ method,
905
+ headers: {
906
+ 'Content-Type': 'application/json',
907
+ ...(this.token ? { Authorization: `Bearer ${this.token}` } : {}),
908
+ ...(headers ?? {}),
909
+ },
910
+ body: body ? JSON.stringify(body) : undefined,
911
+ })
912
+ if (!res.ok) {
913
+ let data: unknown = null
914
+ try {
915
+ data = await res.json()
916
+ } catch {}
917
+ const code = typeof data === 'object' && data && 'code' in data ? String((data as { code?: unknown }).code ?? 'API_ERROR').toUpperCase() : 'API_ERROR'
918
+ throw new UapiError(code, res.status, data)
919
+ }
920
+ if (responseKind === 'arrayBuffer') {
921
+ return res.arrayBuffer()
922
+ }
923
+ if (responseKind === 'text') {
924
+ return res.text()
925
+ }
926
+ return res.json()
927
+ }
928
+ }
929
+ export class ClipzyZaiXianJianTieBanApi {
930
+ constructor(private c: UapiClient) {}
931
+
932
+ /** 步骤2 (方法一): 获取加密数据 */
933
+ async getClipzyGet(args: GetClipzyGetArgs
934
+ ): Promise<GetClipzyGetResponse> {
935
+ const query: Record<string, unknown> = {}
936
+ const headers: Record<string, string> = {}
937
+ const body: Record<string, unknown> = {}
938
+ const argId = args.id
939
+ if (argId !== undefined) query["id"] = argId
940
+ let requestPath = '/api/v1/api/get'
941
+ return await this.c._request(
942
+ 'GET',
943
+ requestPath,
944
+ Object.keys(query).length > 0 ? query : undefined,
945
+ Object.keys(body).length > 0 ? body : undefined,
946
+ Object.keys(headers).length > 0 ? headers : undefined,
947
+ 'json',
948
+ ) as GetClipzyGetResponse
949
+ }
950
+
951
+ /** 步骤2 (方法二): 获取原始文本 */
952
+ async getClipzyRaw(args: GetClipzyRawArgs
953
+ ): Promise<GetClipzyRawResponse> {
954
+ const query: Record<string, unknown> = {}
955
+ const headers: Record<string, string> = {}
956
+ const body: Record<string, unknown> = {}
957
+ const argId = args.id
958
+ const argKey = args.key
959
+ if (argKey !== undefined) query["key"] = argKey
960
+ let requestPath = '/api/v1/api/raw/{id}'
961
+ if (argId !== undefined) requestPath = requestPath.replace('{'+ 'id' +'}', String(argId))
962
+ return await this.c._request(
963
+ 'GET',
964
+ requestPath,
965
+ Object.keys(query).length > 0 ? query : undefined,
966
+ Object.keys(body).length > 0 ? body : undefined,
967
+ Object.keys(headers).length > 0 ? headers : undefined,
968
+ 'text',
969
+ ) as GetClipzyRawResponse
970
+ }
971
+
972
+ /** 步骤1:上传加密数据 */
973
+ async postClipzyStore(args: PostClipzyStoreArgs
974
+ ): Promise<PostClipzyStoreResponse> {
975
+ const query: Record<string, unknown> = {}
976
+ const headers: Record<string, string> = {}
977
+ const body: Record<string, unknown> = {}
978
+ const argCompressedData = args.compressedData
979
+ if (argCompressedData !== undefined) body["compressedData"] = argCompressedData
980
+ const argTtl = args.ttl
981
+ if (argTtl !== undefined) body["ttl"] = argTtl
982
+ let requestPath = '/api/v1/api/store'
983
+ return await this.c._request(
984
+ 'POST',
985
+ requestPath,
986
+ Object.keys(query).length > 0 ? query : undefined,
987
+ Object.keys(body).length > 0 ? body : undefined,
988
+ Object.keys(headers).length > 0 ? headers : undefined,
989
+ 'json',
990
+ ) as PostClipzyStoreResponse
991
+ }
992
+ }
993
+ export class ConvertApi {
994
+ constructor(private c: UapiClient) {}
995
+
996
+ /** 时间戳转换 */
997
+ async getConvertUnixtime(args: GetConvertUnixtimeArgs
998
+ ): Promise<GetConvertUnixtimeResponse> {
999
+ const query: Record<string, unknown> = {}
1000
+ const headers: Record<string, string> = {}
1001
+ const body: Record<string, unknown> = {}
1002
+ const argTime = args.time
1003
+ if (argTime !== undefined) query["time"] = argTime
1004
+ let requestPath = '/api/v1/convert/unixtime'
1005
+ return await this.c._request(
1006
+ 'GET',
1007
+ requestPath,
1008
+ Object.keys(query).length > 0 ? query : undefined,
1009
+ Object.keys(body).length > 0 ? body : undefined,
1010
+ Object.keys(headers).length > 0 ? headers : undefined,
1011
+ 'json',
1012
+ ) as GetConvertUnixtimeResponse
1013
+ }
1014
+
1015
+ /** JSON 格式化 */
1016
+ async postConvertJson(args: PostConvertJsonArgs
1017
+ ): Promise<PostConvertJsonResponse> {
1018
+ const query: Record<string, unknown> = {}
1019
+ const headers: Record<string, string> = {}
1020
+ const body: Record<string, unknown> = {}
1021
+ const argContent = args.content
1022
+ if (argContent !== undefined) body["content"] = argContent
1023
+ let requestPath = '/api/v1/convert/json'
1024
+ return await this.c._request(
1025
+ 'POST',
1026
+ requestPath,
1027
+ Object.keys(query).length > 0 ? query : undefined,
1028
+ Object.keys(body).length > 0 ? body : undefined,
1029
+ Object.keys(headers).length > 0 ? headers : undefined,
1030
+ 'json',
1031
+ ) as PostConvertJsonResponse
1032
+ }
1033
+ }
1034
+ export class DailyApi {
1035
+ constructor(private c: UapiClient) {}
1036
+
1037
+ /** 每日新闻图 */
1038
+ async getDailyNewsImage(
1039
+ ): Promise<GetDailyNewsImageResponse> {
1040
+ const query: Record<string, unknown> = {}
1041
+ const headers: Record<string, string> = {}
1042
+ const body: Record<string, unknown> = {}
1043
+ let requestPath = '/api/v1/daily/news-image'
1044
+ return await this.c._request(
1045
+ 'GET',
1046
+ requestPath,
1047
+ Object.keys(query).length > 0 ? query : undefined,
1048
+ Object.keys(body).length > 0 ? body : undefined,
1049
+ Object.keys(headers).length > 0 ? headers : undefined,
1050
+ 'arrayBuffer',
1051
+ ) as GetDailyNewsImageResponse
1052
+ }
1053
+ }
1054
+ export class GameApi {
1055
+ constructor(private c: UapiClient) {}
1056
+
1057
+ /** Epic 免费游戏 */
1058
+ async getGameEpicFree(
1059
+ ): Promise<GetGameEpicFreeResponse> {
1060
+ const query: Record<string, unknown> = {}
1061
+ const headers: Record<string, string> = {}
1062
+ const body: Record<string, unknown> = {}
1063
+ let requestPath = '/api/v1/game/epic-free'
1064
+ return await this.c._request(
1065
+ 'GET',
1066
+ requestPath,
1067
+ Object.keys(query).length > 0 ? query : undefined,
1068
+ Object.keys(body).length > 0 ? body : undefined,
1069
+ Object.keys(headers).length > 0 ? headers : undefined,
1070
+ 'json',
1071
+ ) as GetGameEpicFreeResponse
1072
+ }
1073
+
1074
+ /** 查询 MC 曾用名 */
1075
+ async getGameMinecraftHistoryid(args: GetGameMinecraftHistoryidArgs = {} as GetGameMinecraftHistoryidArgs
1076
+ ): Promise<GetGameMinecraftHistoryidResponse> {
1077
+ const query: Record<string, unknown> = {}
1078
+ const headers: Record<string, string> = {}
1079
+ const body: Record<string, unknown> = {}
1080
+ const argName = args.name
1081
+ if (argName !== undefined) query["name"] = argName
1082
+ const argUuid = args.uuid
1083
+ if (argUuid !== undefined) query["uuid"] = argUuid
1084
+ let requestPath = '/api/v1/game/minecraft/historyid'
1085
+ return await this.c._request(
1086
+ 'GET',
1087
+ requestPath,
1088
+ Object.keys(query).length > 0 ? query : undefined,
1089
+ Object.keys(body).length > 0 ? body : undefined,
1090
+ Object.keys(headers).length > 0 ? headers : undefined,
1091
+ 'json',
1092
+ ) as GetGameMinecraftHistoryidResponse
1093
+ }
1094
+
1095
+ /** 查询 MC 服务器 */
1096
+ async getGameMinecraftServerstatus(args: GetGameMinecraftServerstatusArgs
1097
+ ): Promise<GetGameMinecraftServerstatusResponse> {
1098
+ const query: Record<string, unknown> = {}
1099
+ const headers: Record<string, string> = {}
1100
+ const body: Record<string, unknown> = {}
1101
+ const argServer = args.server
1102
+ if (argServer !== undefined) query["server"] = argServer
1103
+ let requestPath = '/api/v1/game/minecraft/serverstatus'
1104
+ return await this.c._request(
1105
+ 'GET',
1106
+ requestPath,
1107
+ Object.keys(query).length > 0 ? query : undefined,
1108
+ Object.keys(body).length > 0 ? body : undefined,
1109
+ Object.keys(headers).length > 0 ? headers : undefined,
1110
+ 'json',
1111
+ ) as GetGameMinecraftServerstatusResponse
1112
+ }
1113
+
1114
+ /** 查询 MC 玩家 */
1115
+ async getGameMinecraftUserinfo(args: GetGameMinecraftUserinfoArgs
1116
+ ): Promise<GetGameMinecraftUserinfoResponse> {
1117
+ const query: Record<string, unknown> = {}
1118
+ const headers: Record<string, string> = {}
1119
+ const body: Record<string, unknown> = {}
1120
+ const argUsername = args.username
1121
+ if (argUsername !== undefined) query["username"] = argUsername
1122
+ let requestPath = '/api/v1/game/minecraft/userinfo'
1123
+ return await this.c._request(
1124
+ 'GET',
1125
+ requestPath,
1126
+ Object.keys(query).length > 0 ? query : undefined,
1127
+ Object.keys(body).length > 0 ? body : undefined,
1128
+ Object.keys(headers).length > 0 ? headers : undefined,
1129
+ 'json',
1130
+ ) as GetGameMinecraftUserinfoResponse
1131
+ }
1132
+
1133
+ /** 查询 Steam 用户 */
1134
+ async getGameSteamSummary(args: GetGameSteamSummaryArgs = {} as GetGameSteamSummaryArgs
1135
+ ): Promise<GetGameSteamSummaryResponse> {
1136
+ const query: Record<string, unknown> = {}
1137
+ const headers: Record<string, string> = {}
1138
+ const body: Record<string, unknown> = {}
1139
+ const argSteamid = args.steamid
1140
+ if (argSteamid !== undefined) query["steamid"] = argSteamid
1141
+ const argId = args.id
1142
+ if (argId !== undefined) query["id"] = argId
1143
+ const argId3 = args.id3
1144
+ if (argId3 !== undefined) query["id3"] = argId3
1145
+ const argKey = args.key
1146
+ if (argKey !== undefined) query["key"] = argKey
1147
+ let requestPath = '/api/v1/game/steam/summary'
1148
+ return await this.c._request(
1149
+ 'GET',
1150
+ requestPath,
1151
+ Object.keys(query).length > 0 ? query : undefined,
1152
+ Object.keys(body).length > 0 ? body : undefined,
1153
+ Object.keys(headers).length > 0 ? headers : undefined,
1154
+ 'json',
1155
+ ) as GetGameSteamSummaryResponse
1156
+ }
1157
+ }
1158
+ export class ImageApi {
1159
+ constructor(private c: UapiClient) {}
1160
+
1161
+ /** 获取Gravatar头像 */
1162
+ async getAvatarGravatar(args: GetAvatarGravatarArgs = {} as GetAvatarGravatarArgs
1163
+ ): Promise<GetAvatarGravatarResponse> {
1164
+ const query: Record<string, unknown> = {}
1165
+ const headers: Record<string, string> = {}
1166
+ const body: Record<string, unknown> = {}
1167
+ const argEmail = args.email
1168
+ if (argEmail !== undefined) query["email"] = argEmail
1169
+ const argHash = args.hash
1170
+ if (argHash !== undefined) query["hash"] = argHash
1171
+ const argS = args.s
1172
+ if (argS !== undefined) query["s"] = argS
1173
+ const argD = args.d
1174
+ if (argD !== undefined) query["d"] = argD
1175
+ const argR = args.r
1176
+ if (argR !== undefined) query["r"] = argR
1177
+ let requestPath = '/api/v1/avatar/gravatar'
1178
+ return await this.c._request(
1179
+ 'GET',
1180
+ requestPath,
1181
+ Object.keys(query).length > 0 ? query : undefined,
1182
+ Object.keys(body).length > 0 ? body : undefined,
1183
+ Object.keys(headers).length > 0 ? headers : undefined,
1184
+ 'arrayBuffer',
1185
+ ) as GetAvatarGravatarResponse
1186
+ }
1187
+
1188
+ /** 必应壁纸 */
1189
+ async getImageBingDaily(
1190
+ ): Promise<GetImageBingDailyResponse> {
1191
+ const query: Record<string, unknown> = {}
1192
+ const headers: Record<string, string> = {}
1193
+ const body: Record<string, unknown> = {}
1194
+ let requestPath = '/api/v1/image/bing-daily'
1195
+ return await this.c._request(
1196
+ 'GET',
1197
+ requestPath,
1198
+ Object.keys(query).length > 0 ? query : undefined,
1199
+ Object.keys(body).length > 0 ? body : undefined,
1200
+ Object.keys(headers).length > 0 ? headers : undefined,
1201
+ 'arrayBuffer',
1202
+ ) as GetImageBingDailyResponse
1203
+ }
1204
+
1205
+ /** 生成摸摸头GIF (QQ号) */
1206
+ async getImageMotou(args: GetImageMotouArgs
1207
+ ): Promise<GetImageMotouResponse> {
1208
+ const query: Record<string, unknown> = {}
1209
+ const headers: Record<string, string> = {}
1210
+ const body: Record<string, unknown> = {}
1211
+ const argQq = args.qq
1212
+ if (argQq !== undefined) query["qq"] = argQq
1213
+ const argBgColor = args.bgColor ?? args["bg_color"]
1214
+ if (argBgColor !== undefined) query["bg_color"] = argBgColor
1215
+ let requestPath = '/api/v1/image/motou'
1216
+ return await this.c._request(
1217
+ 'GET',
1218
+ requestPath,
1219
+ Object.keys(query).length > 0 ? query : undefined,
1220
+ Object.keys(body).length > 0 ? body : undefined,
1221
+ Object.keys(headers).length > 0 ? headers : undefined,
1222
+ 'arrayBuffer',
1223
+ ) as GetImageMotouResponse
1224
+ }
1225
+
1226
+ /** 生成二维码 */
1227
+ async getImageQrcode(args: GetImageQrcodeArgs
1228
+ ): Promise<GetImageQrcodeResponse> {
1229
+ const query: Record<string, unknown> = {}
1230
+ const headers: Record<string, string> = {}
1231
+ const body: Record<string, unknown> = {}
1232
+ const argText = args.text
1233
+ if (argText !== undefined) query["text"] = argText
1234
+ const argSize = args.size
1235
+ if (argSize !== undefined) query["size"] = argSize
1236
+ const argFormat = args.format
1237
+ if (argFormat !== undefined) query["format"] = argFormat
1238
+ const argTransparent = args.transparent
1239
+ if (argTransparent !== undefined) query["transparent"] = argTransparent
1240
+ const argFgcolor = args.fgcolor
1241
+ if (argFgcolor !== undefined) query["fgcolor"] = argFgcolor
1242
+ const argBgcolor = args.bgcolor
1243
+ if (argBgcolor !== undefined) query["bgcolor"] = argBgcolor
1244
+ let requestPath = '/api/v1/image/qrcode'
1245
+ return await this.c._request(
1246
+ 'GET',
1247
+ requestPath,
1248
+ Object.keys(query).length > 0 ? query : undefined,
1249
+ Object.keys(body).length > 0 ? body : undefined,
1250
+ Object.keys(headers).length > 0 ? headers : undefined,
1251
+ 'json',
1252
+ ) as GetImageQrcodeResponse
1253
+ }
1254
+
1255
+ /** 图片转 Base64 */
1256
+ async getImageTobase64(args: GetImageTobase64Args
1257
+ ): Promise<GetImageTobase64Response> {
1258
+ const query: Record<string, unknown> = {}
1259
+ const headers: Record<string, string> = {}
1260
+ const body: Record<string, unknown> = {}
1261
+ const argUrl = args.url
1262
+ if (argUrl !== undefined) query["url"] = argUrl
1263
+ let requestPath = '/api/v1/image/tobase64'
1264
+ return await this.c._request(
1265
+ 'GET',
1266
+ requestPath,
1267
+ Object.keys(query).length > 0 ? query : undefined,
1268
+ Object.keys(body).length > 0 ? body : undefined,
1269
+ Object.keys(headers).length > 0 ? headers : undefined,
1270
+ 'json',
1271
+ ) as GetImageTobase64Response
1272
+ }
1273
+
1274
+ /** 无损压缩图片 */
1275
+ async postImageCompress(args: PostImageCompressArgs
1276
+ ): Promise<PostImageCompressResponse> {
1277
+ const query: Record<string, unknown> = {}
1278
+ const headers: Record<string, string> = {}
1279
+ const body: Record<string, unknown> = {}
1280
+ const argLevel = args.level
1281
+ if (argLevel !== undefined) query["level"] = argLevel
1282
+ const argFormat = args.format
1283
+ if (argFormat !== undefined) query["format"] = argFormat
1284
+ const argFile = args.file
1285
+ if (argFile !== undefined) body["file"] = argFile
1286
+ let requestPath = '/api/v1/image/compress'
1287
+ return await this.c._request(
1288
+ 'POST',
1289
+ requestPath,
1290
+ Object.keys(query).length > 0 ? query : undefined,
1291
+ Object.keys(body).length > 0 ? body : undefined,
1292
+ Object.keys(headers).length > 0 ? headers : undefined,
1293
+ 'arrayBuffer',
1294
+ ) as PostImageCompressResponse
1295
+ }
1296
+
1297
+ /** 通过Base64编码上传图片 */
1298
+ async postImageFrombase64(args: PostImageFrombase64Args
1299
+ ): Promise<PostImageFrombase64Response> {
1300
+ const query: Record<string, unknown> = {}
1301
+ const headers: Record<string, string> = {}
1302
+ const body: Record<string, unknown> = {}
1303
+ const argImageData = args.imageData
1304
+ if (argImageData !== undefined) body["imageData"] = argImageData
1305
+ let requestPath = '/api/v1/image/frombase64'
1306
+ return await this.c._request(
1307
+ 'POST',
1308
+ requestPath,
1309
+ Object.keys(query).length > 0 ? query : undefined,
1310
+ Object.keys(body).length > 0 ? body : undefined,
1311
+ Object.keys(headers).length > 0 ? headers : undefined,
1312
+ 'json',
1313
+ ) as PostImageFrombase64Response
1314
+ }
1315
+
1316
+ /** 生成摸摸头GIF */
1317
+ async postImageMotou(args: PostImageMotouArgs
1318
+ ): Promise<PostImageMotouResponse> {
1319
+ const query: Record<string, unknown> = {}
1320
+ const headers: Record<string, string> = {}
1321
+ const body: Record<string, unknown> = {}
1322
+ const argBgColor = args.bgColor ?? args["bg_color"]
1323
+ if (argBgColor !== undefined) body["bg_color"] = argBgColor
1324
+ const argFile = args.file
1325
+ if (argFile !== undefined) body["file"] = argFile
1326
+ const argImageUrl = args.imageUrl ?? args["image_url"]
1327
+ if (argImageUrl !== undefined) body["image_url"] = argImageUrl
1328
+ let requestPath = '/api/v1/image/motou'
1329
+ return await this.c._request(
1330
+ 'POST',
1331
+ requestPath,
1332
+ Object.keys(query).length > 0 ? query : undefined,
1333
+ Object.keys(body).length > 0 ? body : undefined,
1334
+ Object.keys(headers).length > 0 ? headers : undefined,
1335
+ 'arrayBuffer',
1336
+ ) as PostImageMotouResponse
1337
+ }
1338
+
1339
+ /** 图片敏感检测 */
1340
+ async postImageNsfw(args: PostImageNsfwArgs
1341
+ ): Promise<PostImageNsfwResponse> {
1342
+ const query: Record<string, unknown> = {}
1343
+ const headers: Record<string, string> = {}
1344
+ const body: Record<string, unknown> = {}
1345
+ const argFile = args.file
1346
+ if (argFile !== undefined) body["file"] = argFile
1347
+ const argUrl = args.url
1348
+ if (argUrl !== undefined) body["url"] = argUrl
1349
+ let requestPath = '/api/v1/image/nsfw'
1350
+ return await this.c._request(
1351
+ 'POST',
1352
+ requestPath,
1353
+ Object.keys(query).length > 0 ? query : undefined,
1354
+ Object.keys(body).length > 0 ? body : undefined,
1355
+ Object.keys(headers).length > 0 ? headers : undefined,
1356
+ 'json',
1357
+ ) as PostImageNsfwResponse
1358
+ }
1359
+
1360
+ /** 生成你们怎么不说话了表情包 */
1361
+ async postImageSpeechless(args: PostImageSpeechlessArgs
1362
+ ): Promise<PostImageSpeechlessResponse> {
1363
+ const query: Record<string, unknown> = {}
1364
+ const headers: Record<string, string> = {}
1365
+ const body: Record<string, unknown> = {}
1366
+ const argBottomText = args.bottomText ?? args["bottom_text"]
1367
+ if (argBottomText !== undefined) body["bottom_text"] = argBottomText
1368
+ const argTopText = args.topText ?? args["top_text"]
1369
+ if (argTopText !== undefined) body["top_text"] = argTopText
1370
+ let requestPath = '/api/v1/image/speechless'
1371
+ return await this.c._request(
1372
+ 'POST',
1373
+ requestPath,
1374
+ Object.keys(query).length > 0 ? query : undefined,
1375
+ Object.keys(body).length > 0 ? body : undefined,
1376
+ Object.keys(headers).length > 0 ? headers : undefined,
1377
+ 'arrayBuffer',
1378
+ ) as PostImageSpeechlessResponse
1379
+ }
1380
+
1381
+ /** SVG转图片 */
1382
+ async postImageSvg(args: PostImageSvgArgs = {} as PostImageSvgArgs
1383
+ ): Promise<PostImageSvgResponse> {
1384
+ const query: Record<string, unknown> = {}
1385
+ const headers: Record<string, string> = {}
1386
+ const body: Record<string, unknown> = {}
1387
+ const argFormat = args.format
1388
+ if (argFormat !== undefined) query["format"] = argFormat
1389
+ const argWidth = args.width
1390
+ if (argWidth !== undefined) query["width"] = argWidth
1391
+ const argHeight = args.height
1392
+ if (argHeight !== undefined) query["height"] = argHeight
1393
+ const argQuality = args.quality
1394
+ if (argQuality !== undefined) query["quality"] = argQuality
1395
+ const argFile = args.file
1396
+ if (argFile !== undefined) body["file"] = argFile
1397
+ let requestPath = '/api/v1/image/svg'
1398
+ return await this.c._request(
1399
+ 'POST',
1400
+ requestPath,
1401
+ Object.keys(query).length > 0 ? query : undefined,
1402
+ Object.keys(body).length > 0 ? body : undefined,
1403
+ Object.keys(headers).length > 0 ? headers : undefined,
1404
+ 'arrayBuffer',
1405
+ ) as PostImageSvgResponse
1406
+ }
1407
+ }
1408
+ export class MiscApi {
1409
+ constructor(private c: UapiClient) {}
1410
+
1411
+ /** 程序员历史事件 */
1412
+ async getHistoryProgrammer(args: GetHistoryProgrammerArgs
1413
+ ): Promise<GetHistoryProgrammerResponse> {
1414
+ const query: Record<string, unknown> = {}
1415
+ const headers: Record<string, string> = {}
1416
+ const body: Record<string, unknown> = {}
1417
+ const argMonth = args.month
1418
+ if (argMonth !== undefined) query["month"] = argMonth
1419
+ const argDay = args.day
1420
+ if (argDay !== undefined) query["day"] = argDay
1421
+ let requestPath = '/api/v1/history/programmer'
1422
+ return await this.c._request(
1423
+ 'GET',
1424
+ requestPath,
1425
+ Object.keys(query).length > 0 ? query : undefined,
1426
+ Object.keys(body).length > 0 ? body : undefined,
1427
+ Object.keys(headers).length > 0 ? headers : undefined,
1428
+ 'json',
1429
+ ) as GetHistoryProgrammerResponse
1430
+ }
1431
+
1432
+ /** 程序员历史上的今天 */
1433
+ async getHistoryProgrammerToday(
1434
+ ): Promise<GetHistoryProgrammerTodayResponse> {
1435
+ const query: Record<string, unknown> = {}
1436
+ const headers: Record<string, string> = {}
1437
+ const body: Record<string, unknown> = {}
1438
+ let requestPath = '/api/v1/history/programmer/today'
1439
+ return await this.c._request(
1440
+ 'GET',
1441
+ requestPath,
1442
+ Object.keys(query).length > 0 ? query : undefined,
1443
+ Object.keys(body).length > 0 ? body : undefined,
1444
+ Object.keys(headers).length > 0 ? headers : undefined,
1445
+ 'json',
1446
+ ) as GetHistoryProgrammerTodayResponse
1447
+ }
1448
+
1449
+ /** Adcode 国内外行政区域查询 */
1450
+ async getMiscDistrict(args: GetMiscDistrictArgs = {} as GetMiscDistrictArgs
1451
+ ): Promise<GetMiscDistrictResponse> {
1452
+ const query: Record<string, unknown> = {}
1453
+ const headers: Record<string, string> = {}
1454
+ const body: Record<string, unknown> = {}
1455
+ const argKeywords = args.keywords
1456
+ if (argKeywords !== undefined) query["keywords"] = argKeywords
1457
+ const argAdcode = args.adcode
1458
+ if (argAdcode !== undefined) query["adcode"] = argAdcode
1459
+ const argLat = args.lat
1460
+ if (argLat !== undefined) query["lat"] = argLat
1461
+ const argLng = args.lng
1462
+ if (argLng !== undefined) query["lng"] = argLng
1463
+ const argLevel = args.level
1464
+ if (argLevel !== undefined) query["level"] = argLevel
1465
+ const argCountry = args.country
1466
+ if (argCountry !== undefined) query["country"] = argCountry
1467
+ const argLimit = args.limit
1468
+ if (argLimit !== undefined) query["limit"] = argLimit
1469
+ let requestPath = '/api/v1/misc/district'
1470
+ return await this.c._request(
1471
+ 'GET',
1472
+ requestPath,
1473
+ Object.keys(query).length > 0 ? query : undefined,
1474
+ Object.keys(body).length > 0 ? body : undefined,
1475
+ Object.keys(headers).length > 0 ? headers : undefined,
1476
+ 'json',
1477
+ ) as GetMiscDistrictResponse
1478
+ }
1479
+
1480
+ /** 查询节假日与万年历 */
1481
+ async getMiscHolidayCalendar(args: GetMiscHolidayCalendarArgs = {} as GetMiscHolidayCalendarArgs
1482
+ ): Promise<GetMiscHolidayCalendarResponse> {
1483
+ const query: Record<string, unknown> = {}
1484
+ const headers: Record<string, string> = {}
1485
+ const body: Record<string, unknown> = {}
1486
+ const argDate = args.date
1487
+ if (argDate !== undefined) query["date"] = argDate
1488
+ const argMonth = args.month
1489
+ if (argMonth !== undefined) query["month"] = argMonth
1490
+ const argYear = args.year
1491
+ if (argYear !== undefined) query["year"] = argYear
1492
+ const argTimezone = args.timezone
1493
+ if (argTimezone !== undefined) query["timezone"] = argTimezone
1494
+ const argHolidayType = args.holidayType ?? args["holiday_type"]
1495
+ if (argHolidayType !== undefined) query["holiday_type"] = argHolidayType
1496
+ const argIncludeNearby = args.includeNearby ?? args["include_nearby"]
1497
+ if (argIncludeNearby !== undefined) query["include_nearby"] = argIncludeNearby
1498
+ const argNearbyLimit = args.nearbyLimit ?? args["nearby_limit"]
1499
+ if (argNearbyLimit !== undefined) query["nearby_limit"] = argNearbyLimit
1500
+ let requestPath = '/api/v1/misc/holiday-calendar'
1501
+ return await this.c._request(
1502
+ 'GET',
1503
+ requestPath,
1504
+ Object.keys(query).length > 0 ? query : undefined,
1505
+ Object.keys(body).length > 0 ? body : undefined,
1506
+ Object.keys(headers).length > 0 ? headers : undefined,
1507
+ 'json',
1508
+ ) as GetMiscHolidayCalendarResponse
1509
+ }
1510
+
1511
+ /** 查询热榜 */
1512
+ async getMiscHotboard(args: GetMiscHotboardArgs
1513
+ ): Promise<GetMiscHotboardResponse> {
1514
+ const query: Record<string, unknown> = {}
1515
+ const headers: Record<string, string> = {}
1516
+ const body: Record<string, unknown> = {}
1517
+ const argType = args.type
1518
+ if (argType !== undefined) query["type"] = argType
1519
+ const argTime = args.time
1520
+ if (argTime !== undefined) query["time"] = argTime
1521
+ const argKeyword = args.keyword
1522
+ if (argKeyword !== undefined) query["keyword"] = argKeyword
1523
+ const argTimeStart = args.timeStart ?? args["time_start"]
1524
+ if (argTimeStart !== undefined) query["time_start"] = argTimeStart
1525
+ const argTimeEnd = args.timeEnd ?? args["time_end"]
1526
+ if (argTimeEnd !== undefined) query["time_end"] = argTimeEnd
1527
+ const argLimit = args.limit
1528
+ if (argLimit !== undefined) query["limit"] = argLimit
1529
+ const argSources = args.sources
1530
+ if (argSources !== undefined) query["sources"] = argSources
1531
+ let requestPath = '/api/v1/misc/hotboard'
1532
+ return await this.c._request(
1533
+ 'GET',
1534
+ requestPath,
1535
+ Object.keys(query).length > 0 ? query : undefined,
1536
+ Object.keys(body).length > 0 ? body : undefined,
1537
+ Object.keys(headers).length > 0 ? headers : undefined,
1538
+ 'json',
1539
+ ) as GetMiscHotboardResponse
1540
+ }
1541
+
1542
+ /** 查询农历时间 */
1543
+ async getMiscLunartime(args: GetMiscLunartimeArgs = {} as GetMiscLunartimeArgs
1544
+ ): Promise<GetMiscLunartimeResponse> {
1545
+ const query: Record<string, unknown> = {}
1546
+ const headers: Record<string, string> = {}
1547
+ const body: Record<string, unknown> = {}
1548
+ const argTs = args.ts
1549
+ if (argTs !== undefined) query["ts"] = argTs
1550
+ const argTimezone = args.timezone
1551
+ if (argTimezone !== undefined) query["timezone"] = argTimezone
1552
+ let requestPath = '/api/v1/misc/lunartime'
1553
+ return await this.c._request(
1554
+ 'GET',
1555
+ requestPath,
1556
+ Object.keys(query).length > 0 ? query : undefined,
1557
+ Object.keys(body).length > 0 ? body : undefined,
1558
+ Object.keys(headers).length > 0 ? headers : undefined,
1559
+ 'json',
1560
+ ) as GetMiscLunartimeResponse
1561
+ }
1562
+
1563
+ /** 查询手机归属地 */
1564
+ async getMiscPhoneinfo(args: GetMiscPhoneinfoArgs
1565
+ ): Promise<GetMiscPhoneinfoResponse> {
1566
+ const query: Record<string, unknown> = {}
1567
+ const headers: Record<string, string> = {}
1568
+ const body: Record<string, unknown> = {}
1569
+ const argPhone = args.phone
1570
+ if (argPhone !== undefined) query["phone"] = argPhone
1571
+ let requestPath = '/api/v1/misc/phoneinfo'
1572
+ return await this.c._request(
1573
+ 'GET',
1574
+ requestPath,
1575
+ Object.keys(query).length > 0 ? query : undefined,
1576
+ Object.keys(body).length > 0 ? body : undefined,
1577
+ Object.keys(headers).length > 0 ? headers : undefined,
1578
+ 'json',
1579
+ ) as GetMiscPhoneinfoResponse
1580
+ }
1581
+
1582
+ /** 随机数生成 */
1583
+ async getMiscRandomnumber(args: GetMiscRandomnumberArgs = {} as GetMiscRandomnumberArgs
1584
+ ): Promise<GetMiscRandomnumberResponse> {
1585
+ const query: Record<string, unknown> = {}
1586
+ const headers: Record<string, string> = {}
1587
+ const body: Record<string, unknown> = {}
1588
+ const argMin = args.min
1589
+ if (argMin !== undefined) query["min"] = argMin
1590
+ const argMax = args.max
1591
+ if (argMax !== undefined) query["max"] = argMax
1592
+ const argCount = args.count
1593
+ if (argCount !== undefined) query["count"] = argCount
1594
+ const argAllowRepeat = args.allowRepeat ?? args["allow_repeat"]
1595
+ if (argAllowRepeat !== undefined) query["allow_repeat"] = argAllowRepeat
1596
+ const argAllowDecimal = args.allowDecimal ?? args["allow_decimal"]
1597
+ if (argAllowDecimal !== undefined) query["allow_decimal"] = argAllowDecimal
1598
+ const argDecimalPlaces = args.decimalPlaces ?? args["decimal_places"]
1599
+ if (argDecimalPlaces !== undefined) query["decimal_places"] = argDecimalPlaces
1600
+ let requestPath = '/api/v1/misc/randomnumber'
1601
+ return await this.c._request(
1602
+ 'GET',
1603
+ requestPath,
1604
+ Object.keys(query).length > 0 ? query : undefined,
1605
+ Object.keys(body).length > 0 ? body : undefined,
1606
+ Object.keys(headers).length > 0 ? headers : undefined,
1607
+ 'json',
1608
+ ) as GetMiscRandomnumberResponse
1609
+ }
1610
+
1611
+ /** 转换时间戳 (旧版,推荐使用/convert/unixtime) */
1612
+ async getMiscTimestamp(args: GetMiscTimestampArgs
1613
+ ): Promise<GetMiscTimestampResponse> {
1614
+ const query: Record<string, unknown> = {}
1615
+ const headers: Record<string, string> = {}
1616
+ const body: Record<string, unknown> = {}
1617
+ const argTs = args.ts
1618
+ if (argTs !== undefined) query["ts"] = argTs
1619
+ let requestPath = '/api/v1/misc/timestamp'
1620
+ return await this.c._request(
1621
+ 'GET',
1622
+ requestPath,
1623
+ Object.keys(query).length > 0 ? query : undefined,
1624
+ Object.keys(body).length > 0 ? body : undefined,
1625
+ Object.keys(headers).length > 0 ? headers : undefined,
1626
+ 'json',
1627
+ ) as GetMiscTimestampResponse
1628
+ }
1629
+
1630
+ /** 获取支持的快递公司列表 */
1631
+ async getMiscTrackingCarriers(
1632
+ ): Promise<GetMiscTrackingCarriersResponse> {
1633
+ const query: Record<string, unknown> = {}
1634
+ const headers: Record<string, string> = {}
1635
+ const body: Record<string, unknown> = {}
1636
+ let requestPath = '/api/v1/misc/tracking/carriers'
1637
+ return await this.c._request(
1638
+ 'GET',
1639
+ requestPath,
1640
+ Object.keys(query).length > 0 ? query : undefined,
1641
+ Object.keys(body).length > 0 ? body : undefined,
1642
+ Object.keys(headers).length > 0 ? headers : undefined,
1643
+ 'json',
1644
+ ) as GetMiscTrackingCarriersResponse
1645
+ }
1646
+
1647
+ /** 识别快递公司 */
1648
+ async getMiscTrackingDetect(args: GetMiscTrackingDetectArgs
1649
+ ): Promise<GetMiscTrackingDetectResponse> {
1650
+ const query: Record<string, unknown> = {}
1651
+ const headers: Record<string, string> = {}
1652
+ const body: Record<string, unknown> = {}
1653
+ const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
1654
+ if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
1655
+ let requestPath = '/api/v1/misc/tracking/detect'
1656
+ return await this.c._request(
1657
+ 'GET',
1658
+ requestPath,
1659
+ Object.keys(query).length > 0 ? query : undefined,
1660
+ Object.keys(body).length > 0 ? body : undefined,
1661
+ Object.keys(headers).length > 0 ? headers : undefined,
1662
+ 'json',
1663
+ ) as GetMiscTrackingDetectResponse
1664
+ }
1665
+
1666
+ /** 查询快递物流信息 */
1667
+ async getMiscTrackingQuery(args: GetMiscTrackingQueryArgs
1668
+ ): Promise<GetMiscTrackingQueryResponse> {
1669
+ const query: Record<string, unknown> = {}
1670
+ const headers: Record<string, string> = {}
1671
+ const body: Record<string, unknown> = {}
1672
+ const argTrackingNumber = args.trackingNumber ?? args["tracking_number"]
1673
+ if (argTrackingNumber !== undefined) query["tracking_number"] = argTrackingNumber
1674
+ const argCarrierCode = args.carrierCode ?? args["carrier_code"]
1675
+ if (argCarrierCode !== undefined) query["carrier_code"] = argCarrierCode
1676
+ const argPhone = args.phone
1677
+ if (argPhone !== undefined) query["phone"] = argPhone
1678
+ let requestPath = '/api/v1/misc/tracking/query'
1679
+ return await this.c._request(
1680
+ 'GET',
1681
+ requestPath,
1682
+ Object.keys(query).length > 0 ? query : undefined,
1683
+ Object.keys(body).length > 0 ? body : undefined,
1684
+ Object.keys(headers).length > 0 ? headers : undefined,
1685
+ 'json',
1686
+ ) as GetMiscTrackingQueryResponse
1687
+ }
1688
+
1689
+ /** 查询天气 */
1690
+ async getMiscWeather(args: GetMiscWeatherArgs = {} as GetMiscWeatherArgs
1691
+ ): Promise<GetMiscWeatherResponse> {
1692
+ const query: Record<string, unknown> = {}
1693
+ const headers: Record<string, string> = {}
1694
+ const body: Record<string, unknown> = {}
1695
+ const argCity = args.city
1696
+ if (argCity !== undefined) query["city"] = argCity
1697
+ const argAdcode = args.adcode
1698
+ if (argAdcode !== undefined) query["adcode"] = argAdcode
1699
+ const argExtended = args.extended
1700
+ if (argExtended !== undefined) query["extended"] = argExtended
1701
+ const argForecast = args.forecast
1702
+ if (argForecast !== undefined) query["forecast"] = argForecast
1703
+ const argHourly = args.hourly
1704
+ if (argHourly !== undefined) query["hourly"] = argHourly
1705
+ const argMinutely = args.minutely
1706
+ if (argMinutely !== undefined) query["minutely"] = argMinutely
1707
+ const argIndices = args.indices
1708
+ if (argIndices !== undefined) query["indices"] = argIndices
1709
+ const argLang = args.lang
1710
+ if (argLang !== undefined) query["lang"] = argLang
1711
+ let requestPath = '/api/v1/misc/weather'
1712
+ return await this.c._request(
1713
+ 'GET',
1714
+ requestPath,
1715
+ Object.keys(query).length > 0 ? query : undefined,
1716
+ Object.keys(body).length > 0 ? body : undefined,
1717
+ Object.keys(headers).length > 0 ? headers : undefined,
1718
+ 'json',
1719
+ ) as GetMiscWeatherResponse
1720
+ }
1721
+
1722
+ /** 查询世界时间 */
1723
+ async getMiscWorldtime(args: GetMiscWorldtimeArgs
1724
+ ): Promise<GetMiscWorldtimeResponse> {
1725
+ const query: Record<string, unknown> = {}
1726
+ const headers: Record<string, string> = {}
1727
+ const body: Record<string, unknown> = {}
1728
+ const argCity = args.city
1729
+ if (argCity !== undefined) query["city"] = argCity
1730
+ let requestPath = '/api/v1/misc/worldtime'
1731
+ return await this.c._request(
1732
+ 'GET',
1733
+ requestPath,
1734
+ Object.keys(query).length > 0 ? query : undefined,
1735
+ Object.keys(body).length > 0 ? body : undefined,
1736
+ Object.keys(headers).length > 0 ? headers : undefined,
1737
+ 'json',
1738
+ ) as GetMiscWorldtimeResponse
1739
+ }
1740
+
1741
+ /** 计算两个日期之间的时间差值 */
1742
+ async postMiscDateDiff(args: PostMiscDateDiffArgs
1743
+ ): Promise<PostMiscDateDiffResponse> {
1744
+ const query: Record<string, unknown> = {}
1745
+ const headers: Record<string, string> = {}
1746
+ const body: Record<string, unknown> = {}
1747
+ const argEndDate = args.endDate ?? args["end_date"]
1748
+ if (argEndDate !== undefined) body["end_date"] = argEndDate
1749
+ const argFormat = args.format
1750
+ if (argFormat !== undefined) body["format"] = argFormat
1751
+ const argStartDate = args.startDate ?? args["start_date"]
1752
+ if (argStartDate !== undefined) body["start_date"] = argStartDate
1753
+ let requestPath = '/api/v1/misc/date-diff'
1754
+ return await this.c._request(
1755
+ 'POST',
1756
+ requestPath,
1757
+ Object.keys(query).length > 0 ? query : undefined,
1758
+ Object.keys(body).length > 0 ? body : undefined,
1759
+ Object.keys(headers).length > 0 ? headers : undefined,
1760
+ 'json',
1761
+ ) as PostMiscDateDiffResponse
1762
+ }
1763
+ }
1764
+ export class NetworkApi {
1765
+ constructor(private c: UapiClient) {}
1766
+
1767
+ /** 执行DNS解析查询 */
1768
+ async getNetworkDns(args: GetNetworkDnsArgs
1769
+ ): Promise<GetNetworkDnsResponse> {
1770
+ const query: Record<string, unknown> = {}
1771
+ const headers: Record<string, string> = {}
1772
+ const body: Record<string, unknown> = {}
1773
+ const argDomain = args.domain
1774
+ if (argDomain !== undefined) query["domain"] = argDomain
1775
+ const argType = args.type
1776
+ if (argType !== undefined) query["type"] = argType
1777
+ let requestPath = '/api/v1/network/dns'
1778
+ return await this.c._request(
1779
+ 'GET',
1780
+ requestPath,
1781
+ Object.keys(query).length > 0 ? query : undefined,
1782
+ Object.keys(body).length > 0 ? body : undefined,
1783
+ Object.keys(headers).length > 0 ? headers : undefined,
1784
+ 'json',
1785
+ ) as GetNetworkDnsResponse
1786
+ }
1787
+
1788
+ /** 查询域名ICP备案信息 */
1789
+ async getNetworkIcp(args: GetNetworkIcpArgs
1790
+ ): Promise<GetNetworkIcpResponse> {
1791
+ const query: Record<string, unknown> = {}
1792
+ const headers: Record<string, string> = {}
1793
+ const body: Record<string, unknown> = {}
1794
+ const argDomain = args.domain
1795
+ if (argDomain !== undefined) query["domain"] = argDomain
1796
+ let requestPath = '/api/v1/network/icp'
1797
+ return await this.c._request(
1798
+ 'GET',
1799
+ requestPath,
1800
+ Object.keys(query).length > 0 ? query : undefined,
1801
+ Object.keys(body).length > 0 ? body : undefined,
1802
+ Object.keys(headers).length > 0 ? headers : undefined,
1803
+ 'json',
1804
+ ) as GetNetworkIcpResponse
1805
+ }
1806
+
1807
+ /** 查询 IP */
1808
+ async getNetworkIpinfo(args: GetNetworkIpinfoArgs
1809
+ ): Promise<GetNetworkIpinfoResponse> {
1810
+ const query: Record<string, unknown> = {}
1811
+ const headers: Record<string, string> = {}
1812
+ const body: Record<string, unknown> = {}
1813
+ const argIp = args.ip
1814
+ if (argIp !== undefined) query["ip"] = argIp
1815
+ const argSource = args.source
1816
+ if (argSource !== undefined) query["source"] = argSource
1817
+ let requestPath = '/api/v1/network/ipinfo'
1818
+ return await this.c._request(
1819
+ 'GET',
1820
+ requestPath,
1821
+ Object.keys(query).length > 0 ? query : undefined,
1822
+ Object.keys(body).length > 0 ? body : undefined,
1823
+ Object.keys(headers).length > 0 ? headers : undefined,
1824
+ 'json',
1825
+ ) as GetNetworkIpinfoResponse
1826
+ }
1827
+
1828
+ /** 查询我的 IP */
1829
+ async getNetworkMyip(args: GetNetworkMyipArgs = {} as GetNetworkMyipArgs
1830
+ ): Promise<GetNetworkMyipResponse> {
1831
+ const query: Record<string, unknown> = {}
1832
+ const headers: Record<string, string> = {}
1833
+ const body: Record<string, unknown> = {}
1834
+ const argSource = args.source
1835
+ if (argSource !== undefined) query["source"] = argSource
1836
+ let requestPath = '/api/v1/network/myip'
1837
+ return await this.c._request(
1838
+ 'GET',
1839
+ requestPath,
1840
+ Object.keys(query).length > 0 ? query : undefined,
1841
+ Object.keys(body).length > 0 ? body : undefined,
1842
+ Object.keys(headers).length > 0 ? headers : undefined,
1843
+ 'json',
1844
+ ) as GetNetworkMyipResponse
1845
+ }
1846
+
1847
+ /** Ping 主机 */
1848
+ async getNetworkPing(args: GetNetworkPingArgs
1849
+ ): Promise<GetNetworkPingResponse> {
1850
+ const query: Record<string, unknown> = {}
1851
+ const headers: Record<string, string> = {}
1852
+ const body: Record<string, unknown> = {}
1853
+ const argHost = args.host
1854
+ if (argHost !== undefined) query["host"] = argHost
1855
+ let requestPath = '/api/v1/network/ping'
1856
+ return await this.c._request(
1857
+ 'GET',
1858
+ requestPath,
1859
+ Object.keys(query).length > 0 ? query : undefined,
1860
+ Object.keys(body).length > 0 ? body : undefined,
1861
+ Object.keys(headers).length > 0 ? headers : undefined,
1862
+ 'json',
1863
+ ) as GetNetworkPingResponse
1864
+ }
1865
+
1866
+ /** Ping 我的 IP */
1867
+ async getNetworkPingmyip(
1868
+ ): Promise<GetNetworkPingmyipResponse> {
1869
+ const query: Record<string, unknown> = {}
1870
+ const headers: Record<string, string> = {}
1871
+ const body: Record<string, unknown> = {}
1872
+ let requestPath = '/api/v1/network/pingmyip'
1873
+ return await this.c._request(
1874
+ 'GET',
1875
+ requestPath,
1876
+ Object.keys(query).length > 0 ? query : undefined,
1877
+ Object.keys(body).length > 0 ? body : undefined,
1878
+ Object.keys(headers).length > 0 ? headers : undefined,
1879
+ 'json',
1880
+ ) as GetNetworkPingmyipResponse
1881
+ }
1882
+
1883
+ /** 端口扫描 */
1884
+ async getNetworkPortscan(args: GetNetworkPortscanArgs
1885
+ ): Promise<GetNetworkPortscanResponse> {
1886
+ const query: Record<string, unknown> = {}
1887
+ const headers: Record<string, string> = {}
1888
+ const body: Record<string, unknown> = {}
1889
+ const argHost = args.host
1890
+ if (argHost !== undefined) query["host"] = argHost
1891
+ const argPort = args.port
1892
+ if (argPort !== undefined) query["port"] = argPort
1893
+ const argProtocol = args.protocol
1894
+ if (argProtocol !== undefined) query["protocol"] = argProtocol
1895
+ let requestPath = '/api/v1/network/portscan'
1896
+ return await this.c._request(
1897
+ 'GET',
1898
+ requestPath,
1899
+ Object.keys(query).length > 0 ? query : undefined,
1900
+ Object.keys(body).length > 0 ? body : undefined,
1901
+ Object.keys(headers).length > 0 ? headers : undefined,
1902
+ 'json',
1903
+ ) as GetNetworkPortscanResponse
1904
+ }
1905
+
1906
+ /** 检查URL的可访问性状态 */
1907
+ async getNetworkUrlstatus(args: GetNetworkUrlstatusArgs
1908
+ ): Promise<GetNetworkUrlstatusResponse> {
1909
+ const query: Record<string, unknown> = {}
1910
+ const headers: Record<string, string> = {}
1911
+ const body: Record<string, unknown> = {}
1912
+ const argUrl = args.url
1913
+ if (argUrl !== undefined) query["url"] = argUrl
1914
+ let requestPath = '/api/v1/network/urlstatus'
1915
+ return await this.c._request(
1916
+ 'GET',
1917
+ requestPath,
1918
+ Object.keys(query).length > 0 ? query : undefined,
1919
+ Object.keys(body).length > 0 ? body : undefined,
1920
+ Object.keys(headers).length > 0 ? headers : undefined,
1921
+ 'json',
1922
+ ) as GetNetworkUrlstatusResponse
1923
+ }
1924
+
1925
+ /** 查询域名的WHOIS注册信息 */
1926
+ async getNetworkWhois(args: GetNetworkWhoisArgs
1927
+ ): Promise<GetNetworkWhoisResponse> {
1928
+ const query: Record<string, unknown> = {}
1929
+ const headers: Record<string, string> = {}
1930
+ const body: Record<string, unknown> = {}
1931
+ const argDomain = args.domain
1932
+ if (argDomain !== undefined) query["domain"] = argDomain
1933
+ const argFormat = args.format
1934
+ if (argFormat !== undefined) query["format"] = argFormat
1935
+ let requestPath = '/api/v1/network/whois'
1936
+ return await this.c._request(
1937
+ 'GET',
1938
+ requestPath,
1939
+ Object.keys(query).length > 0 ? query : undefined,
1940
+ Object.keys(body).length > 0 ? body : undefined,
1941
+ Object.keys(headers).length > 0 ? headers : undefined,
1942
+ 'json',
1943
+ ) as GetNetworkWhoisResponse
1944
+ }
1945
+
1946
+ /** 检查域名在微信中的访问状态 */
1947
+ async getNetworkWxdomain(args: GetNetworkWxdomainArgs
1948
+ ): Promise<GetNetworkWxdomainResponse> {
1949
+ const query: Record<string, unknown> = {}
1950
+ const headers: Record<string, string> = {}
1951
+ const body: Record<string, unknown> = {}
1952
+ const argDomain = args.domain
1953
+ if (argDomain !== undefined) query["domain"] = argDomain
1954
+ let requestPath = '/api/v1/network/wxdomain'
1955
+ return await this.c._request(
1956
+ 'GET',
1957
+ requestPath,
1958
+ Object.keys(query).length > 0 ? query : undefined,
1959
+ Object.keys(body).length > 0 ? body : undefined,
1960
+ Object.keys(headers).length > 0 ? headers : undefined,
1961
+ 'json',
1962
+ ) as GetNetworkWxdomainResponse
1963
+ }
1964
+ }
1965
+ export class PoemApi {
1966
+ constructor(private c: UapiClient) {}
1967
+
1968
+ /** 一言 */
1969
+ async getSaying(
1970
+ ): Promise<GetSayingResponse> {
1971
+ const query: Record<string, unknown> = {}
1972
+ const headers: Record<string, string> = {}
1973
+ const body: Record<string, unknown> = {}
1974
+ let requestPath = '/api/v1/saying'
1975
+ return await this.c._request(
1976
+ 'GET',
1977
+ requestPath,
1978
+ Object.keys(query).length > 0 ? query : undefined,
1979
+ Object.keys(body).length > 0 ? body : undefined,
1980
+ Object.keys(headers).length > 0 ? headers : undefined,
1981
+ 'json',
1982
+ ) as GetSayingResponse
1983
+ }
1984
+ }
1985
+ export class RandomApi {
1986
+ constructor(private c: UapiClient) {}
1987
+
1988
+ /** 答案之书 */
1989
+ async getAnswerbookAsk(args: GetAnswerbookAskArgs
1990
+ ): Promise<GetAnswerbookAskResponse> {
1991
+ const query: Record<string, unknown> = {}
1992
+ const headers: Record<string, string> = {}
1993
+ const body: Record<string, unknown> = {}
1994
+ const argQuestion = args.question
1995
+ if (argQuestion !== undefined) query["question"] = argQuestion
1996
+ let requestPath = '/api/v1/answerbook/ask'
1997
+ return await this.c._request(
1998
+ 'GET',
1999
+ requestPath,
2000
+ Object.keys(query).length > 0 ? query : undefined,
2001
+ Object.keys(body).length > 0 ? body : undefined,
2002
+ Object.keys(headers).length > 0 ? headers : undefined,
2003
+ 'json',
2004
+ ) as GetAnswerbookAskResponse
2005
+ }
2006
+
2007
+ /** 随机图片 */
2008
+ async getRandomImage(args: GetRandomImageArgs = {} as GetRandomImageArgs
2009
+ ): Promise<GetRandomImageResponse> {
2010
+ const query: Record<string, unknown> = {}
2011
+ const headers: Record<string, string> = {}
2012
+ const body: Record<string, unknown> = {}
2013
+ const argCategory = args.category
2014
+ if (argCategory !== undefined) query["category"] = argCategory
2015
+ const argType = args.type
2016
+ if (argType !== undefined) query["type"] = argType
2017
+ let requestPath = '/api/v1/random/image'
2018
+ return await this.c._request(
2019
+ 'GET',
2020
+ requestPath,
2021
+ Object.keys(query).length > 0 ? query : undefined,
2022
+ Object.keys(body).length > 0 ? body : undefined,
2023
+ Object.keys(headers).length > 0 ? headers : undefined,
2024
+ 'arrayBuffer',
2025
+ ) as GetRandomImageResponse
2026
+ }
2027
+
2028
+ /** 随机字符串 */
2029
+ async getRandomString(args: GetRandomStringArgs = {} as GetRandomStringArgs
2030
+ ): Promise<GetRandomStringResponse> {
2031
+ const query: Record<string, unknown> = {}
2032
+ const headers: Record<string, string> = {}
2033
+ const body: Record<string, unknown> = {}
2034
+ const argLength = args.length
2035
+ if (argLength !== undefined) query["length"] = argLength
2036
+ const argType = args.type
2037
+ if (argType !== undefined) query["type"] = argType
2038
+ let requestPath = '/api/v1/random/string'
2039
+ return await this.c._request(
2040
+ 'GET',
2041
+ requestPath,
2042
+ Object.keys(query).length > 0 ? query : undefined,
2043
+ Object.keys(body).length > 0 ? body : undefined,
2044
+ Object.keys(headers).length > 0 ? headers : undefined,
2045
+ 'json',
2046
+ ) as GetRandomStringResponse
2047
+ }
2048
+
2049
+ /** 答案之书 (POST) */
2050
+ async postAnswerbookAsk(args: PostAnswerbookAskArgs
2051
+ ): Promise<PostAnswerbookAskResponse> {
2052
+ const query: Record<string, unknown> = {}
2053
+ const headers: Record<string, string> = {}
2054
+ const body: Record<string, unknown> = {}
2055
+ const argQuestion = args.question
2056
+ if (argQuestion !== undefined) body["question"] = argQuestion
2057
+ let requestPath = '/api/v1/answerbook/ask'
2058
+ return await this.c._request(
2059
+ 'POST',
2060
+ requestPath,
2061
+ Object.keys(query).length > 0 ? query : undefined,
2062
+ Object.keys(body).length > 0 ? body : undefined,
2063
+ Object.keys(headers).length > 0 ? headers : undefined,
2064
+ 'json',
2065
+ ) as PostAnswerbookAskResponse
2066
+ }
2067
+ }
2068
+ export class SocialApi {
2069
+ constructor(private c: UapiClient) {}
2070
+
2071
+ /** 查询 GitHub 仓库 */
2072
+ async getGithubRepo(args: GetGithubRepoArgs
2073
+ ): Promise<GetGithubRepoResponse> {
2074
+ const query: Record<string, unknown> = {}
2075
+ const headers: Record<string, string> = {}
2076
+ const body: Record<string, unknown> = {}
2077
+ const argRepo = args.repo
2078
+ if (argRepo !== undefined) query["repo"] = argRepo
2079
+ let requestPath = '/api/v1/github/repo'
2080
+ return await this.c._request(
2081
+ 'GET',
2082
+ requestPath,
2083
+ Object.keys(query).length > 0 ? query : undefined,
2084
+ Object.keys(body).length > 0 ? body : undefined,
2085
+ Object.keys(headers).length > 0 ? headers : undefined,
2086
+ 'json',
2087
+ ) as GetGithubRepoResponse
2088
+ }
2089
+
2090
+ /** 查询 B站投稿 */
2091
+ async getSocialBilibiliArchives(args: GetSocialBilibiliArchivesArgs
2092
+ ): Promise<GetSocialBilibiliArchivesResponse> {
2093
+ const query: Record<string, unknown> = {}
2094
+ const headers: Record<string, string> = {}
2095
+ const body: Record<string, unknown> = {}
2096
+ const argMid = args.mid
2097
+ if (argMid !== undefined) query["mid"] = argMid
2098
+ const argKeywords = args.keywords
2099
+ if (argKeywords !== undefined) query["keywords"] = argKeywords
2100
+ const argOrderby = args.orderby
2101
+ if (argOrderby !== undefined) query["orderby"] = argOrderby
2102
+ const argPs = args.ps
2103
+ if (argPs !== undefined) query["ps"] = argPs
2104
+ const argPn = args.pn
2105
+ if (argPn !== undefined) query["pn"] = argPn
2106
+ let requestPath = '/api/v1/social/bilibili/archives'
2107
+ return await this.c._request(
2108
+ 'GET',
2109
+ requestPath,
2110
+ Object.keys(query).length > 0 ? query : undefined,
2111
+ Object.keys(body).length > 0 ? body : undefined,
2112
+ Object.keys(headers).length > 0 ? headers : undefined,
2113
+ 'json',
2114
+ ) as GetSocialBilibiliArchivesResponse
2115
+ }
2116
+
2117
+ /** 查询 B站直播间 */
2118
+ async getSocialBilibiliLiveroom(args: GetSocialBilibiliLiveroomArgs = {} as GetSocialBilibiliLiveroomArgs
2119
+ ): Promise<GetSocialBilibiliLiveroomResponse> {
2120
+ const query: Record<string, unknown> = {}
2121
+ const headers: Record<string, string> = {}
2122
+ const body: Record<string, unknown> = {}
2123
+ const argMid = args.mid
2124
+ if (argMid !== undefined) query["mid"] = argMid
2125
+ const argRoomId = args.roomId ?? args["room_id"]
2126
+ if (argRoomId !== undefined) query["room_id"] = argRoomId
2127
+ let requestPath = '/api/v1/social/bilibili/liveroom'
2128
+ return await this.c._request(
2129
+ 'GET',
2130
+ requestPath,
2131
+ Object.keys(query).length > 0 ? query : undefined,
2132
+ Object.keys(body).length > 0 ? body : undefined,
2133
+ Object.keys(headers).length > 0 ? headers : undefined,
2134
+ 'json',
2135
+ ) as GetSocialBilibiliLiveroomResponse
2136
+ }
2137
+
2138
+ /** 查询 B站评论 */
2139
+ async getSocialBilibiliReplies(args: GetSocialBilibiliRepliesArgs
2140
+ ): Promise<GetSocialBilibiliRepliesResponse> {
2141
+ const query: Record<string, unknown> = {}
2142
+ const headers: Record<string, string> = {}
2143
+ const body: Record<string, unknown> = {}
2144
+ const argOid = args.oid
2145
+ if (argOid !== undefined) query["oid"] = argOid
2146
+ const argSort = args.sort
2147
+ if (argSort !== undefined) query["sort"] = argSort
2148
+ const argPs = args.ps
2149
+ if (argPs !== undefined) query["ps"] = argPs
2150
+ const argPn = args.pn
2151
+ if (argPn !== undefined) query["pn"] = argPn
2152
+ let requestPath = '/api/v1/social/bilibili/replies'
2153
+ return await this.c._request(
2154
+ 'GET',
2155
+ requestPath,
2156
+ Object.keys(query).length > 0 ? query : undefined,
2157
+ Object.keys(body).length > 0 ? body : undefined,
2158
+ Object.keys(headers).length > 0 ? headers : undefined,
2159
+ 'json',
2160
+ ) as GetSocialBilibiliRepliesResponse
2161
+ }
2162
+
2163
+ /** 查询 B站用户 */
2164
+ async getSocialBilibiliUserinfo(args: GetSocialBilibiliUserinfoArgs
2165
+ ): Promise<GetSocialBilibiliUserinfoResponse> {
2166
+ const query: Record<string, unknown> = {}
2167
+ const headers: Record<string, string> = {}
2168
+ const body: Record<string, unknown> = {}
2169
+ const argUid = args.uid
2170
+ if (argUid !== undefined) query["uid"] = argUid
2171
+ let requestPath = '/api/v1/social/bilibili/userinfo'
2172
+ return await this.c._request(
2173
+ 'GET',
2174
+ requestPath,
2175
+ Object.keys(query).length > 0 ? query : undefined,
2176
+ Object.keys(body).length > 0 ? body : undefined,
2177
+ Object.keys(headers).length > 0 ? headers : undefined,
2178
+ 'json',
2179
+ ) as GetSocialBilibiliUserinfoResponse
2180
+ }
2181
+
2182
+ /** 查询 B站视频 */
2183
+ async getSocialBilibiliVideoinfo(args: GetSocialBilibiliVideoinfoArgs = {} as GetSocialBilibiliVideoinfoArgs
2184
+ ): Promise<GetSocialBilibiliVideoinfoResponse> {
2185
+ const query: Record<string, unknown> = {}
2186
+ const headers: Record<string, string> = {}
2187
+ const body: Record<string, unknown> = {}
2188
+ const argAid = args.aid
2189
+ if (argAid !== undefined) query["aid"] = argAid
2190
+ const argBvid = args.bvid
2191
+ if (argBvid !== undefined) query["bvid"] = argBvid
2192
+ let requestPath = '/api/v1/social/bilibili/videoinfo'
2193
+ return await this.c._request(
2194
+ 'GET',
2195
+ requestPath,
2196
+ Object.keys(query).length > 0 ? query : undefined,
2197
+ Object.keys(body).length > 0 ? body : undefined,
2198
+ Object.keys(headers).length > 0 ? headers : undefined,
2199
+ 'json',
2200
+ ) as GetSocialBilibiliVideoinfoResponse
2201
+ }
2202
+
2203
+ /** 查询 QQ 群信息 */
2204
+ async getSocialQqGroupinfo(args: GetSocialQqGroupinfoArgs
2205
+ ): Promise<GetSocialQqGroupinfoResponse> {
2206
+ const query: Record<string, unknown> = {}
2207
+ const headers: Record<string, string> = {}
2208
+ const body: Record<string, unknown> = {}
2209
+ const argGroupId = args.groupId ?? args["group_id"]
2210
+ if (argGroupId !== undefined) query["group_id"] = argGroupId
2211
+ let requestPath = '/api/v1/social/qq/groupinfo'
2212
+ return await this.c._request(
2213
+ 'GET',
2214
+ requestPath,
2215
+ Object.keys(query).length > 0 ? query : undefined,
2216
+ Object.keys(body).length > 0 ? body : undefined,
2217
+ Object.keys(headers).length > 0 ? headers : undefined,
2218
+ 'json',
2219
+ ) as GetSocialQqGroupinfoResponse
2220
+ }
2221
+
2222
+ /** 查询 QQ 信息 */
2223
+ async getSocialQqUserinfo(args: GetSocialQqUserinfoArgs
2224
+ ): Promise<GetSocialQqUserinfoResponse> {
2225
+ const query: Record<string, unknown> = {}
2226
+ const headers: Record<string, string> = {}
2227
+ const body: Record<string, unknown> = {}
2228
+ const argQq = args.qq
2229
+ if (argQq !== undefined) query["qq"] = argQq
2230
+ let requestPath = '/api/v1/social/qq/userinfo'
2231
+ return await this.c._request(
2232
+ 'GET',
2233
+ requestPath,
2234
+ Object.keys(query).length > 0 ? query : undefined,
2235
+ Object.keys(body).length > 0 ? body : undefined,
2236
+ Object.keys(headers).length > 0 ? headers : undefined,
2237
+ 'json',
2238
+ ) as GetSocialQqUserinfoResponse
2239
+ }
2240
+ }
2241
+ export class StatusApi {
2242
+ constructor(private c: UapiClient) {}
2243
+
2244
+ /** 限流状态 */
2245
+ async getStatusRatelimit(args: GetStatusRatelimitArgs
2246
+ ): Promise<GetStatusRatelimitResponse> {
2247
+ const query: Record<string, unknown> = {}
2248
+ const headers: Record<string, string> = {}
2249
+ const body: Record<string, unknown> = {}
2250
+ const argAuthorization = args.authorization ?? args["Authorization"]
2251
+ if (argAuthorization !== undefined) headers["Authorization"] = String(argAuthorization)
2252
+ let requestPath = '/api/v1/status/ratelimit'
2253
+ return await this.c._request(
2254
+ 'GET',
2255
+ requestPath,
2256
+ Object.keys(query).length > 0 ? query : undefined,
2257
+ Object.keys(body).length > 0 ? body : undefined,
2258
+ Object.keys(headers).length > 0 ? headers : undefined,
2259
+ 'json',
2260
+ ) as GetStatusRatelimitResponse
2261
+ }
2262
+
2263
+ /** 获取API端点使用统计 */
2264
+ async getStatusUsage(args: GetStatusUsageArgs = {} as GetStatusUsageArgs
2265
+ ): Promise<GetStatusUsageResponse> {
2266
+ const query: Record<string, unknown> = {}
2267
+ const headers: Record<string, string> = {}
2268
+ const body: Record<string, unknown> = {}
2269
+ const argPath = args.path
2270
+ if (argPath !== undefined) query["path"] = argPath
2271
+ let requestPath = '/api/v1/status/usage'
2272
+ return await this.c._request(
2273
+ 'GET',
2274
+ requestPath,
2275
+ Object.keys(query).length > 0 ? query : undefined,
2276
+ Object.keys(body).length > 0 ? body : undefined,
2277
+ Object.keys(headers).length > 0 ? headers : undefined,
2278
+ 'json',
2279
+ ) as GetStatusUsageResponse
2280
+ }
2281
+ }
2282
+ export class TextApi {
2283
+ constructor(private c: UapiClient) {}
2284
+
2285
+ /** MD5 哈希 */
2286
+ async getTextMd5(args: GetTextMd5Args
2287
+ ): Promise<GetTextMd5Response> {
2288
+ const query: Record<string, unknown> = {}
2289
+ const headers: Record<string, string> = {}
2290
+ const body: Record<string, unknown> = {}
2291
+ const argText = args.text
2292
+ if (argText !== undefined) query["text"] = argText
2293
+ let requestPath = '/api/v1/text/md5'
2294
+ return await this.c._request(
2295
+ 'GET',
2296
+ requestPath,
2297
+ Object.keys(query).length > 0 ? query : undefined,
2298
+ Object.keys(body).length > 0 ? body : undefined,
2299
+ Object.keys(headers).length > 0 ? headers : undefined,
2300
+ 'json',
2301
+ ) as GetTextMd5Response
2302
+ }
2303
+
2304
+ /** AES 解密 */
2305
+ async postTextAesDecrypt(args: PostTextAesDecryptArgs
2306
+ ): Promise<PostTextAesDecryptResponse> {
2307
+ const query: Record<string, unknown> = {}
2308
+ const headers: Record<string, string> = {}
2309
+ const body: Record<string, unknown> = {}
2310
+ const argKey = args.key
2311
+ if (argKey !== undefined) body["key"] = argKey
2312
+ const argNonce = args.nonce
2313
+ if (argNonce !== undefined) body["nonce"] = argNonce
2314
+ const argText = args.text
2315
+ if (argText !== undefined) body["text"] = argText
2316
+ let requestPath = '/api/v1/text/aes/decrypt'
2317
+ return await this.c._request(
2318
+ 'POST',
2319
+ requestPath,
2320
+ Object.keys(query).length > 0 ? query : undefined,
2321
+ Object.keys(body).length > 0 ? body : undefined,
2322
+ Object.keys(headers).length > 0 ? headers : undefined,
2323
+ 'json',
2324
+ ) as PostTextAesDecryptResponse
2325
+ }
2326
+
2327
+ /** AES高级解密 */
2328
+ async postTextAesDecryptAdvanced(args: PostTextAesDecryptAdvancedArgs
2329
+ ): Promise<PostTextAesDecryptAdvancedResponse> {
2330
+ const query: Record<string, unknown> = {}
2331
+ const headers: Record<string, string> = {}
2332
+ const body: Record<string, unknown> = {}
2333
+ const argIv = args.iv
2334
+ if (argIv !== undefined) body["iv"] = argIv
2335
+ const argKey = args.key
2336
+ if (argKey !== undefined) body["key"] = argKey
2337
+ const argMode = args.mode
2338
+ if (argMode !== undefined) body["mode"] = argMode
2339
+ const argPadding = args.padding
2340
+ if (argPadding !== undefined) body["padding"] = argPadding
2341
+ const argText = args.text
2342
+ if (argText !== undefined) body["text"] = argText
2343
+ let requestPath = '/api/v1/text/aes/decrypt-advanced'
2344
+ return await this.c._request(
2345
+ 'POST',
2346
+ requestPath,
2347
+ Object.keys(query).length > 0 ? query : undefined,
2348
+ Object.keys(body).length > 0 ? body : undefined,
2349
+ Object.keys(headers).length > 0 ? headers : undefined,
2350
+ 'json',
2351
+ ) as PostTextAesDecryptAdvancedResponse
2352
+ }
2353
+
2354
+ /** AES 加密 */
2355
+ async postTextAesEncrypt(args: PostTextAesEncryptArgs
2356
+ ): Promise<PostTextAesEncryptResponse> {
2357
+ const query: Record<string, unknown> = {}
2358
+ const headers: Record<string, string> = {}
2359
+ const body: Record<string, unknown> = {}
2360
+ const argKey = args.key
2361
+ if (argKey !== undefined) body["key"] = argKey
2362
+ const argText = args.text
2363
+ if (argText !== undefined) body["text"] = argText
2364
+ let requestPath = '/api/v1/text/aes/encrypt'
2365
+ return await this.c._request(
2366
+ 'POST',
2367
+ requestPath,
2368
+ Object.keys(query).length > 0 ? query : undefined,
2369
+ Object.keys(body).length > 0 ? body : undefined,
2370
+ Object.keys(headers).length > 0 ? headers : undefined,
2371
+ 'json',
2372
+ ) as PostTextAesEncryptResponse
2373
+ }
2374
+
2375
+ /** AES高级加密 */
2376
+ async postTextAesEncryptAdvanced(args: PostTextAesEncryptAdvancedArgs
2377
+ ): Promise<PostTextAesEncryptAdvancedResponse> {
2378
+ const query: Record<string, unknown> = {}
2379
+ const headers: Record<string, string> = {}
2380
+ const body: Record<string, unknown> = {}
2381
+ const argIv = args.iv
2382
+ if (argIv !== undefined) body["iv"] = argIv
2383
+ const argKey = args.key
2384
+ if (argKey !== undefined) body["key"] = argKey
2385
+ const argMode = args.mode
2386
+ if (argMode !== undefined) body["mode"] = argMode
2387
+ const argOutputFormat = args.outputFormat ?? args["output_format"]
2388
+ if (argOutputFormat !== undefined) body["output_format"] = argOutputFormat
2389
+ const argPadding = args.padding
2390
+ if (argPadding !== undefined) body["padding"] = argPadding
2391
+ const argText = args.text
2392
+ if (argText !== undefined) body["text"] = argText
2393
+ let requestPath = '/api/v1/text/aes/encrypt-advanced'
2394
+ return await this.c._request(
2395
+ 'POST',
2396
+ requestPath,
2397
+ Object.keys(query).length > 0 ? query : undefined,
2398
+ Object.keys(body).length > 0 ? body : undefined,
2399
+ Object.keys(headers).length > 0 ? headers : undefined,
2400
+ 'json',
2401
+ ) as PostTextAesEncryptAdvancedResponse
2402
+ }
2403
+
2404
+ /** 文本分析 */
2405
+ async postTextAnalyze(args: PostTextAnalyzeArgs
2406
+ ): Promise<PostTextAnalyzeResponse> {
2407
+ const query: Record<string, unknown> = {}
2408
+ const headers: Record<string, string> = {}
2409
+ const body: Record<string, unknown> = {}
2410
+ const argText = args.text
2411
+ if (argText !== undefined) body["text"] = argText
2412
+ let requestPath = '/api/v1/text/analyze'
2413
+ return await this.c._request(
2414
+ 'POST',
2415
+ requestPath,
2416
+ Object.keys(query).length > 0 ? query : undefined,
2417
+ Object.keys(body).length > 0 ? body : undefined,
2418
+ Object.keys(headers).length > 0 ? headers : undefined,
2419
+ 'json',
2420
+ ) as PostTextAnalyzeResponse
2421
+ }
2422
+
2423
+ /** Base64 解码 */
2424
+ async postTextBase64Decode(args: PostTextBase64DecodeArgs
2425
+ ): Promise<PostTextBase64DecodeResponse> {
2426
+ const query: Record<string, unknown> = {}
2427
+ const headers: Record<string, string> = {}
2428
+ const body: Record<string, unknown> = {}
2429
+ const argText = args.text
2430
+ if (argText !== undefined) body["text"] = argText
2431
+ let requestPath = '/api/v1/text/base64/decode'
2432
+ return await this.c._request(
2433
+ 'POST',
2434
+ requestPath,
2435
+ Object.keys(query).length > 0 ? query : undefined,
2436
+ Object.keys(body).length > 0 ? body : undefined,
2437
+ Object.keys(headers).length > 0 ? headers : undefined,
2438
+ 'json',
2439
+ ) as PostTextBase64DecodeResponse
2440
+ }
2441
+
2442
+ /** Base64 编码 */
2443
+ async postTextBase64Encode(args: PostTextBase64EncodeArgs
2444
+ ): Promise<PostTextBase64EncodeResponse> {
2445
+ const query: Record<string, unknown> = {}
2446
+ const headers: Record<string, string> = {}
2447
+ const body: Record<string, unknown> = {}
2448
+ const argText = args.text
2449
+ if (argText !== undefined) body["text"] = argText
2450
+ let requestPath = '/api/v1/text/base64/encode'
2451
+ return await this.c._request(
2452
+ 'POST',
2453
+ requestPath,
2454
+ Object.keys(query).length > 0 ? query : undefined,
2455
+ Object.keys(body).length > 0 ? body : undefined,
2456
+ Object.keys(headers).length > 0 ? headers : undefined,
2457
+ 'json',
2458
+ ) as PostTextBase64EncodeResponse
2459
+ }
2460
+
2461
+ /** 格式转换 */
2462
+ async postTextConvert(args: PostTextConvertArgs
2463
+ ): Promise<PostTextConvertResponse> {
2464
+ const query: Record<string, unknown> = {}
2465
+ const headers: Record<string, string> = {}
2466
+ const body: Record<string, unknown> = {}
2467
+ const argFrom = args.from
2468
+ if (argFrom !== undefined) body["from"] = argFrom
2469
+ const argOptions = args.options
2470
+ if (argOptions !== undefined) body["options"] = argOptions
2471
+ const argText = args.text
2472
+ if (argText !== undefined) body["text"] = argText
2473
+ const argTo = args.to
2474
+ if (argTo !== undefined) body["to"] = argTo
2475
+ let requestPath = '/api/v1/text/convert'
2476
+ return await this.c._request(
2477
+ 'POST',
2478
+ requestPath,
2479
+ Object.keys(query).length > 0 ? query : undefined,
2480
+ Object.keys(body).length > 0 ? body : undefined,
2481
+ Object.keys(headers).length > 0 ? headers : undefined,
2482
+ 'json',
2483
+ ) as PostTextConvertResponse
2484
+ }
2485
+
2486
+ /** MD5 哈希 (POST) */
2487
+ async postTextMd5(args: PostTextMd5Args
2488
+ ): Promise<PostTextMd5Response> {
2489
+ const query: Record<string, unknown> = {}
2490
+ const headers: Record<string, string> = {}
2491
+ const body: Record<string, unknown> = {}
2492
+ const argText = args.text
2493
+ if (argText !== undefined) body["text"] = argText
2494
+ let requestPath = '/api/v1/text/md5'
2495
+ return await this.c._request(
2496
+ 'POST',
2497
+ requestPath,
2498
+ Object.keys(query).length > 0 ? query : undefined,
2499
+ Object.keys(body).length > 0 ? body : undefined,
2500
+ Object.keys(headers).length > 0 ? headers : undefined,
2501
+ 'json',
2502
+ ) as PostTextMd5Response
2503
+ }
2504
+
2505
+ /** MD5 校验 */
2506
+ async postTextMd5Verify(args: PostTextMd5VerifyArgs
2507
+ ): Promise<PostTextMd5VerifyResponse> {
2508
+ const query: Record<string, unknown> = {}
2509
+ const headers: Record<string, string> = {}
2510
+ const body: Record<string, unknown> = {}
2511
+ const argHash = args.hash
2512
+ if (argHash !== undefined) body["hash"] = argHash
2513
+ const argText = args.text
2514
+ if (argText !== undefined) body["text"] = argText
2515
+ let requestPath = '/api/v1/text/md5/verify'
2516
+ return await this.c._request(
2517
+ 'POST',
2518
+ requestPath,
2519
+ Object.keys(query).length > 0 ? query : undefined,
2520
+ Object.keys(body).length > 0 ? body : undefined,
2521
+ Object.keys(headers).length > 0 ? headers : undefined,
2522
+ 'json',
2523
+ ) as PostTextMd5VerifyResponse
2524
+ }
2525
+ }
2526
+ export class TranslateApi {
2527
+ constructor(private c: UapiClient) {}
2528
+
2529
+ /** AI翻译配置 */
2530
+ async getAiTranslateLanguages(
2531
+ ): Promise<GetAiTranslateLanguagesResponse> {
2532
+ const query: Record<string, unknown> = {}
2533
+ const headers: Record<string, string> = {}
2534
+ const body: Record<string, unknown> = {}
2535
+ let requestPath = '/api/v1/ai/translate/languages'
2536
+ return await this.c._request(
2537
+ 'GET',
2538
+ requestPath,
2539
+ Object.keys(query).length > 0 ? query : undefined,
2540
+ Object.keys(body).length > 0 ? body : undefined,
2541
+ Object.keys(headers).length > 0 ? headers : undefined,
2542
+ 'json',
2543
+ ) as GetAiTranslateLanguagesResponse
2544
+ }
2545
+
2546
+ /** AI智能翻译 */
2547
+ async postAiTranslate(args: PostAiTranslateArgs
2548
+ ): Promise<PostAiTranslateResponse> {
2549
+ const query: Record<string, unknown> = {}
2550
+ const headers: Record<string, string> = {}
2551
+ const body: Record<string, unknown> = {}
2552
+ const argTargetLang = args.targetLang ?? args["target_lang"]
2553
+ if (argTargetLang !== undefined) query["target_lang"] = argTargetLang
2554
+ const argContext = args.context
2555
+ if (argContext !== undefined) body["context"] = argContext
2556
+ const argPreserveFormat = args.preserveFormat ?? args["preserve_format"]
2557
+ if (argPreserveFormat !== undefined) body["preserve_format"] = argPreserveFormat
2558
+ const argSourceLang = args.sourceLang ?? args["source_lang"]
2559
+ if (argSourceLang !== undefined) body["source_lang"] = argSourceLang
2560
+ const argStyle = args.style
2561
+ if (argStyle !== undefined) body["style"] = argStyle
2562
+ const argText = args.text
2563
+ if (argText !== undefined) body["text"] = argText
2564
+ let requestPath = '/api/v1/ai/translate'
2565
+ return await this.c._request(
2566
+ 'POST',
2567
+ requestPath,
2568
+ Object.keys(query).length > 0 ? query : undefined,
2569
+ Object.keys(body).length > 0 ? body : undefined,
2570
+ Object.keys(headers).length > 0 ? headers : undefined,
2571
+ 'json',
2572
+ ) as PostAiTranslateResponse
2573
+ }
2574
+
2575
+ /** 流式翻译(中英互译) */
2576
+ async postTranslateStream(args: PostTranslateStreamArgs
2577
+ ): Promise<PostTranslateStreamResponse> {
2578
+ const query: Record<string, unknown> = {}
2579
+ const headers: Record<string, string> = {}
2580
+ const body: Record<string, unknown> = {}
2581
+ const argFromLang = args.fromLang ?? args["from_lang"]
2582
+ if (argFromLang !== undefined) body["from_lang"] = argFromLang
2583
+ const argQuery = args.query
2584
+ if (argQuery !== undefined) body["query"] = argQuery
2585
+ const argToLang = args.toLang ?? args["to_lang"]
2586
+ if (argToLang !== undefined) body["to_lang"] = argToLang
2587
+ const argTone = args.tone
2588
+ if (argTone !== undefined) body["tone"] = argTone
2589
+ let requestPath = '/api/v1/translate/stream'
2590
+ return await this.c._request(
2591
+ 'POST',
2592
+ requestPath,
2593
+ Object.keys(query).length > 0 ? query : undefined,
2594
+ Object.keys(body).length > 0 ? body : undefined,
2595
+ Object.keys(headers).length > 0 ? headers : undefined,
2596
+ 'json',
2597
+ ) as PostTranslateStreamResponse
2598
+ }
2599
+
2600
+ /** 翻译 */
2601
+ async postTranslateText(args: PostTranslateTextArgs
2602
+ ): Promise<PostTranslateTextResponse> {
2603
+ const query: Record<string, unknown> = {}
2604
+ const headers: Record<string, string> = {}
2605
+ const body: Record<string, unknown> = {}
2606
+ const argToLang = args.toLang ?? args["to_lang"]
2607
+ if (argToLang !== undefined) query["to_lang"] = argToLang
2608
+ const argText = args.text
2609
+ if (argText !== undefined) body["text"] = argText
2610
+ let requestPath = '/api/v1/translate/text'
2611
+ return await this.c._request(
2612
+ 'POST',
2613
+ requestPath,
2614
+ Object.keys(query).length > 0 ? query : undefined,
2615
+ Object.keys(body).length > 0 ? body : undefined,
2616
+ Object.keys(headers).length > 0 ? headers : undefined,
2617
+ 'json',
2618
+ ) as PostTranslateTextResponse
2619
+ }
2620
+ }
2621
+ export class WebparseApi {
2622
+ constructor(private c: UapiClient) {}
2623
+
2624
+ /** 转换任务状态 */
2625
+ async getWebTomarkdownAsyncStatus(args: GetWebTomarkdownAsyncStatusArgs
2626
+ ): Promise<GetWebTomarkdownAsyncStatusResponse> {
2627
+ const query: Record<string, unknown> = {}
2628
+ const headers: Record<string, string> = {}
2629
+ const body: Record<string, unknown> = {}
2630
+ const argTaskId = args.taskId ?? args["task_id"]
2631
+ let requestPath = '/api/v1/web/tomarkdown/async/{task_id}'
2632
+ if (argTaskId !== undefined) requestPath = requestPath.replace('{'+ 'task_id' +'}', String(argTaskId))
2633
+ return await this.c._request(
2634
+ 'GET',
2635
+ requestPath,
2636
+ Object.keys(query).length > 0 ? query : undefined,
2637
+ Object.keys(body).length > 0 ? body : undefined,
2638
+ Object.keys(headers).length > 0 ? headers : undefined,
2639
+ 'json',
2640
+ ) as GetWebTomarkdownAsyncStatusResponse
2641
+ }
2642
+
2643
+ /** 提取网页图片 */
2644
+ async getWebparseExtractimages(args: GetWebparseExtractimagesArgs
2645
+ ): Promise<GetWebparseExtractimagesResponse> {
2646
+ const query: Record<string, unknown> = {}
2647
+ const headers: Record<string, string> = {}
2648
+ const body: Record<string, unknown> = {}
2649
+ const argUrl = args.url
2650
+ if (argUrl !== undefined) query["url"] = argUrl
2651
+ let requestPath = '/api/v1/webparse/extractimages'
2652
+ return await this.c._request(
2653
+ 'GET',
2654
+ requestPath,
2655
+ Object.keys(query).length > 0 ? query : undefined,
2656
+ Object.keys(body).length > 0 ? body : undefined,
2657
+ Object.keys(headers).length > 0 ? headers : undefined,
2658
+ 'json',
2659
+ ) as GetWebparseExtractimagesResponse
2660
+ }
2661
+
2662
+ /** 提取网页元数据 */
2663
+ async getWebparseMetadata(args: GetWebparseMetadataArgs
2664
+ ): Promise<GetWebparseMetadataResponse> {
2665
+ const query: Record<string, unknown> = {}
2666
+ const headers: Record<string, string> = {}
2667
+ const body: Record<string, unknown> = {}
2668
+ const argUrl = args.url
2669
+ if (argUrl !== undefined) query["url"] = argUrl
2670
+ let requestPath = '/api/v1/webparse/metadata'
2671
+ return await this.c._request(
2672
+ 'GET',
2673
+ requestPath,
2674
+ Object.keys(query).length > 0 ? query : undefined,
2675
+ Object.keys(body).length > 0 ? body : undefined,
2676
+ Object.keys(headers).length > 0 ? headers : undefined,
2677
+ 'json',
2678
+ ) as GetWebparseMetadataResponse
2679
+ }
2680
+
2681
+ /** 网页转 Markdown */
2682
+ async postWebTomarkdownAsync(args: PostWebTomarkdownAsyncArgs
2683
+ ): Promise<PostWebTomarkdownAsyncResponse> {
2684
+ const query: Record<string, unknown> = {}
2685
+ const headers: Record<string, string> = {}
2686
+ const body: Record<string, unknown> = {}
2687
+ const argUrl = args.url
2688
+ if (argUrl !== undefined) query["url"] = argUrl
2689
+ let requestPath = '/api/v1/web/tomarkdown/async'
2690
+ return await this.c._request(
2691
+ 'POST',
2692
+ requestPath,
2693
+ Object.keys(query).length > 0 ? query : undefined,
2694
+ Object.keys(body).length > 0 ? body : undefined,
2695
+ Object.keys(headers).length > 0 ? headers : undefined,
2696
+ 'json',
2697
+ ) as PostWebTomarkdownAsyncResponse
2698
+ }
2699
+ }
2700
+ export class MinGanCiShiBieApi {
2701
+ constructor(private c: UapiClient) {}
2702
+
2703
+ /** 敏感词分析 (GET) */
2704
+ async getSensitiveWordAnalyzeQuery(args: GetSensitiveWordAnalyzeQueryArgs
2705
+ ): Promise<GetSensitiveWordAnalyzeQueryResponse> {
2706
+ const query: Record<string, unknown> = {}
2707
+ const headers: Record<string, string> = {}
2708
+ const body: Record<string, unknown> = {}
2709
+ const argKeyword = args.keyword
2710
+ if (argKeyword !== undefined) query["keyword"] = argKeyword
2711
+ let requestPath = '/api/v1/sensitive-word/analyze-query'
2712
+ return await this.c._request(
2713
+ 'GET',
2714
+ requestPath,
2715
+ Object.keys(query).length > 0 ? query : undefined,
2716
+ Object.keys(body).length > 0 ? body : undefined,
2717
+ Object.keys(headers).length > 0 ? headers : undefined,
2718
+ 'json',
2719
+ ) as GetSensitiveWordAnalyzeQueryResponse
2720
+ }
2721
+
2722
+ /** 分析敏感词 */
2723
+ async postSensitiveWordAnalyze(args: PostSensitiveWordAnalyzeArgs
2724
+ ): Promise<PostSensitiveWordAnalyzeResponse> {
2725
+ const query: Record<string, unknown> = {}
2726
+ const headers: Record<string, string> = {}
2727
+ const body: Record<string, unknown> = {}
2728
+ const argKeywords = args.keywords
2729
+ if (argKeywords !== undefined) body["keywords"] = argKeywords
2730
+ let requestPath = '/api/v1/sensitive-word/analyze'
2731
+ return await this.c._request(
2732
+ 'POST',
2733
+ requestPath,
2734
+ Object.keys(query).length > 0 ? query : undefined,
2735
+ Object.keys(body).length > 0 ? body : undefined,
2736
+ Object.keys(headers).length > 0 ? headers : undefined,
2737
+ 'json',
2738
+ ) as PostSensitiveWordAnalyzeResponse
2739
+ }
2740
+
2741
+ /** 敏感词检测(快速) */
2742
+ async postSensitiveWordQuickCheck(args: PostSensitiveWordQuickCheckArgs
2743
+ ): Promise<PostSensitiveWordQuickCheckResponse> {
2744
+ const query: Record<string, unknown> = {}
2745
+ const headers: Record<string, string> = {}
2746
+ const body: Record<string, unknown> = {}
2747
+ const argText = args.text
2748
+ if (argText !== undefined) body["text"] = argText
2749
+ let requestPath = '/api/v1/text/profanitycheck'
2750
+ return await this.c._request(
2751
+ 'POST',
2752
+ requestPath,
2753
+ Object.keys(query).length > 0 ? query : undefined,
2754
+ Object.keys(body).length > 0 ? body : undefined,
2755
+ Object.keys(headers).length > 0 ? headers : undefined,
2756
+ 'json',
2757
+ ) as PostSensitiveWordQuickCheckResponse
2758
+ }
2759
+ }
2760
+ export class ZhiNengSouSuoApi {
2761
+ constructor(private c: UapiClient) {}
2762
+
2763
+ /** 搜索引擎配置 */
2764
+ async getSearchEngines(
2765
+ ): Promise<GetSearchEnginesResponse> {
2766
+ const query: Record<string, unknown> = {}
2767
+ const headers: Record<string, string> = {}
2768
+ const body: Record<string, unknown> = {}
2769
+ let requestPath = '/api/v1/search/engines'
2770
+ return await this.c._request(
2771
+ 'GET',
2772
+ requestPath,
2773
+ Object.keys(query).length > 0 ? query : undefined,
2774
+ Object.keys(body).length > 0 ? body : undefined,
2775
+ Object.keys(headers).length > 0 ? headers : undefined,
2776
+ 'json',
2777
+ ) as GetSearchEnginesResponse
2778
+ }
2779
+
2780
+ /** 智能搜索 */
2781
+ async postSearchAggregate(args: PostSearchAggregateArgs
2782
+ ): Promise<PostSearchAggregateResponse> {
2783
+ const query: Record<string, unknown> = {}
2784
+ const headers: Record<string, string> = {}
2785
+ const body: Record<string, unknown> = {}
2786
+ const argFetchFull = args.fetchFull ?? args["fetch_full"]
2787
+ if (argFetchFull !== undefined) body["fetch_full"] = argFetchFull
2788
+ const argFiletype = args.filetype
2789
+ if (argFiletype !== undefined) body["filetype"] = argFiletype
2790
+ const argQuery = args.query
2791
+ if (argQuery !== undefined) body["query"] = argQuery
2792
+ const argSite = args.site
2793
+ if (argSite !== undefined) body["site"] = argSite
2794
+ const argSort = args.sort
2795
+ if (argSort !== undefined) body["sort"] = argSort
2796
+ const argTimeRange = args.timeRange ?? args["time_range"]
2797
+ if (argTimeRange !== undefined) body["time_range"] = argTimeRange
2798
+ const argTimeoutMs = args.timeoutMs ?? args["timeout_ms"]
2799
+ if (argTimeoutMs !== undefined) body["timeout_ms"] = argTimeoutMs
2800
+ let requestPath = '/api/v1/search/aggregate'
2801
+ return await this.c._request(
2802
+ 'POST',
2803
+ requestPath,
2804
+ Object.keys(query).length > 0 ? query : undefined,
2805
+ Object.keys(body).length > 0 ? body : undefined,
2806
+ Object.keys(headers).length > 0 ? headers : undefined,
2807
+ 'json',
2808
+ ) as PostSearchAggregateResponse
2809
+ }
2810
+ }