uapi-browser-sdk 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/internal/src/apis/ClipzyApi.d.ts +58 -0
- package/dist/internal/src/apis/ClipzyApi.js +118 -0
- package/dist/internal/src/apis/ConvertApi.d.ts +44 -0
- package/dist/internal/src/apis/ConvertApi.js +79 -0
- package/dist/internal/src/apis/DailyApi.d.ts +27 -0
- package/dist/internal/src/apis/DailyApi.js +43 -0
- package/dist/internal/src/apis/DefaultApi.d.ts +80 -0
- package/dist/internal/src/apis/DefaultApi.js +161 -0
- package/dist/internal/src/apis/GameApi.d.ts +84 -0
- package/dist/internal/src/apis/GameApi.js +170 -0
- package/dist/internal/src/apis/ImageApi.d.ts +235 -0
- package/dist/internal/src/apis/ImageApi.js +503 -0
- package/dist/internal/src/apis/MiscApi.d.ts +324 -0
- package/dist/internal/src/apis/MiscApi.js +626 -0
- package/dist/internal/src/apis/NetworkApi.d.ts +192 -0
- package/dist/internal/src/apis/NetworkApi.js +366 -0
- package/dist/internal/src/apis/PoemApi.d.ts +28 -0
- package/dist/internal/src/apis/PoemApi.js +44 -0
- package/dist/internal/src/apis/RandomApi.d.ts +116 -0
- package/dist/internal/src/apis/RandomApi.js +180 -0
- package/dist/internal/src/apis/SocialApi.d.ts +131 -0
- package/dist/internal/src/apis/SocialApi.js +281 -0
- package/dist/internal/src/apis/StatusApi.d.ts +44 -0
- package/dist/internal/src/apis/StatusApi.js +77 -0
- package/dist/internal/src/apis/TextApi.d.ts +161 -0
- package/dist/internal/src/apis/TextApi.js +340 -0
- package/dist/internal/src/apis/TranslateApi.d.ts +299 -0
- package/dist/internal/src/apis/TranslateApi.js +376 -0
- package/dist/internal/src/apis/WebParseApi.d.ts +70 -0
- package/dist/internal/src/apis/WebParseApi.js +138 -0
- package/dist/internal/src/apis/index.d.ts +15 -0
- package/dist/internal/src/apis/index.js +17 -0
- package/dist/internal/src/index.d.ts +3 -0
- package/dist/internal/src/index.js +5 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200Response.d.ts +46 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200Response.js +47 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseData.d.ts +47 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseData.js +48 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataContextsInner.d.ts +44 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataContextsInner.js +45 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataLanguagesInner.d.ts +44 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataLanguagesInner.js +45 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataStylesInner.d.ts +44 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponseDataStylesInner.js +45 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.d.ts +44 -0
- package/dist/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.js +45 -0
- package/dist/internal/src/models/GetAnswerbookAsk200Response.d.ts +38 -0
- package/dist/internal/src/models/GetAnswerbookAsk200Response.js +43 -0
- package/dist/internal/src/models/GetAnswerbookAsk400Response.d.ts +38 -0
- package/dist/internal/src/models/GetAnswerbookAsk400Response.js +43 -0
- package/dist/internal/src/models/GetAnswerbookAsk500Response.d.ts +38 -0
- package/dist/internal/src/models/GetAnswerbookAsk500Response.js +43 -0
- package/dist/internal/src/models/GetAvatarGravatar400Response.d.ts +38 -0
- package/dist/internal/src/models/GetAvatarGravatar400Response.js +43 -0
- package/dist/internal/src/models/GetAvatarGravatar404Response.d.ts +38 -0
- package/dist/internal/src/models/GetAvatarGravatar404Response.js +43 -0
- package/dist/internal/src/models/GetClipzyGet200Response.d.ts +32 -0
- package/dist/internal/src/models/GetClipzyGet200Response.js +41 -0
- package/dist/internal/src/models/GetClipzyGet400Response.d.ts +32 -0
- package/dist/internal/src/models/GetClipzyGet400Response.js +41 -0
- package/dist/internal/src/models/GetClipzyGet404Response.d.ts +32 -0
- package/dist/internal/src/models/GetClipzyGet404Response.js +41 -0
- package/dist/internal/src/models/GetClipzyRaw400Response.d.ts +32 -0
- package/dist/internal/src/models/GetClipzyRaw400Response.js +41 -0
- package/dist/internal/src/models/GetClipzyRaw403Response.d.ts +32 -0
- package/dist/internal/src/models/GetClipzyRaw403Response.js +41 -0
- package/dist/internal/src/models/GetConvertUnixtime200Response.d.ts +38 -0
- package/dist/internal/src/models/GetConvertUnixtime200Response.js +43 -0
- package/dist/internal/src/models/GetConvertUnixtime400Response.d.ts +44 -0
- package/dist/internal/src/models/GetConvertUnixtime400Response.js +45 -0
- package/dist/internal/src/models/GetDailyNewsImage500Response.d.ts +38 -0
- package/dist/internal/src/models/GetDailyNewsImage500Response.js +43 -0
- package/dist/internal/src/models/GetDailyNewsImage502Response.d.ts +38 -0
- package/dist/internal/src/models/GetDailyNewsImage502Response.js +43 -0
- package/dist/internal/src/models/GetGameEpicFree200Response.d.ts +39 -0
- package/dist/internal/src/models/GetGameEpicFree200Response.js +44 -0
- package/dist/internal/src/models/GetGameEpicFree200ResponseDataInner.d.ts +104 -0
- package/dist/internal/src/models/GetGameEpicFree200ResponseDataInner.js +65 -0
- package/dist/internal/src/models/GetGameEpicFree500Response.d.ts +38 -0
- package/dist/internal/src/models/GetGameEpicFree500Response.js +43 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200Response.d.ts +70 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200Response.js +55 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseHistoryInner.d.ts +38 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseHistoryInner.js +43 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.d.ts +51 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.js +48 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.d.ts +38 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.js +43 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid400Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid400Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid404Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid404Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid502Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftHistoryid502Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus200Response.d.ts +80 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus200Response.js +57 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus400Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus400Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus404Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus404Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus502Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftServerstatus502Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo200Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo200Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo400Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo404Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo404Response.js +45 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo502Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameMinecraftUserinfo502Response.js +45 -0
- package/dist/internal/src/models/GetGameSteamSummary200Response.d.ts +110 -0
- package/dist/internal/src/models/GetGameSteamSummary200Response.js +67 -0
- package/dist/internal/src/models/GetGameSteamSummary400Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameSteamSummary400Response.js +45 -0
- package/dist/internal/src/models/GetGameSteamSummary401Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameSteamSummary401Response.js +45 -0
- package/dist/internal/src/models/GetGameSteamSummary404Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameSteamSummary404Response.js +45 -0
- package/dist/internal/src/models/GetGameSteamSummary502Response.d.ts +44 -0
- package/dist/internal/src/models/GetGameSteamSummary502Response.js +45 -0
- package/dist/internal/src/models/GetGithubRepo200Response.d.ts +174 -0
- package/dist/internal/src/models/GetGithubRepo200Response.js +89 -0
- package/dist/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.d.ts +50 -0
- package/dist/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.js +47 -0
- package/dist/internal/src/models/GetGithubRepo200ResponseLatestRelease.d.ts +62 -0
- package/dist/internal/src/models/GetGithubRepo200ResponseLatestRelease.js +51 -0
- package/dist/internal/src/models/GetGithubRepo400Response.d.ts +38 -0
- package/dist/internal/src/models/GetGithubRepo400Response.js +43 -0
- package/dist/internal/src/models/GetGithubRepo502Response.d.ts +38 -0
- package/dist/internal/src/models/GetGithubRepo502Response.js +43 -0
- package/dist/internal/src/models/GetHistoryProgrammer200Response.d.ts +45 -0
- package/dist/internal/src/models/GetHistoryProgrammer200Response.js +46 -0
- package/dist/internal/src/models/GetHistoryProgrammer200ResponseEventsInner.d.ts +68 -0
- package/dist/internal/src/models/GetHistoryProgrammer200ResponseEventsInner.js +53 -0
- package/dist/internal/src/models/GetHistoryProgrammer400Response.d.ts +38 -0
- package/dist/internal/src/models/GetHistoryProgrammer400Response.js +43 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday200Response.d.ts +45 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday200Response.js +46 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday200ResponseEventsInner.d.ts +68 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday200ResponseEventsInner.js +53 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday500Response.d.ts +38 -0
- package/dist/internal/src/models/GetHistoryProgrammerToday500Response.js +43 -0
- package/dist/internal/src/models/GetImageBingDaily502Response.d.ts +38 -0
- package/dist/internal/src/models/GetImageBingDaily502Response.js +43 -0
- package/dist/internal/src/models/GetImageMotou400Response.d.ts +32 -0
- package/dist/internal/src/models/GetImageMotou400Response.js +41 -0
- package/dist/internal/src/models/GetImageMotou500Response.d.ts +32 -0
- package/dist/internal/src/models/GetImageMotou500Response.js +41 -0
- package/dist/internal/src/models/GetImageQrcode200Response.d.ts +32 -0
- package/dist/internal/src/models/GetImageQrcode200Response.js +41 -0
- package/dist/internal/src/models/GetImageQrcode400Response.d.ts +44 -0
- package/dist/internal/src/models/GetImageQrcode400Response.js +45 -0
- package/dist/internal/src/models/GetImageQrcode500Response.d.ts +44 -0
- package/dist/internal/src/models/GetImageQrcode500Response.js +45 -0
- package/dist/internal/src/models/GetImageTobase64200Response.d.ts +38 -0
- package/dist/internal/src/models/GetImageTobase64200Response.js +43 -0
- package/dist/internal/src/models/GetImageTobase64400Response.d.ts +44 -0
- package/dist/internal/src/models/GetImageTobase64400Response.js +45 -0
- package/dist/internal/src/models/GetImageTobase64502Response.d.ts +44 -0
- package/dist/internal/src/models/GetImageTobase64502Response.js +45 -0
- package/dist/internal/src/models/GetMiscDistrict200Response.d.ts +39 -0
- package/dist/internal/src/models/GetMiscDistrict200Response.js +44 -0
- package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInner.d.ts +105 -0
- package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInner.js +66 -0
- package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.d.ts +38 -0
- package/dist/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.js +43 -0
- package/dist/internal/src/models/GetMiscDistrict400Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscDistrict400Response.js +43 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200Response.d.ts +67 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200Response.js +56 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.d.ts +158 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.js +83 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.d.ts +61 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.js +57 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.d.ts +40 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.js +45 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.d.ts +39 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.js +44 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.d.ts +50 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.js +47 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.d.ts +39 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.js +44 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.d.ts +50 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.js +47 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.d.ts +68 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.js +53 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.d.ts +68 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.js +53 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar400Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscHolidayCalendar400Response.js +43 -0
- package/dist/internal/src/models/GetMiscHotboard200Response.d.ts +24 -0
- package/dist/internal/src/models/GetMiscHotboard200Response.js +58 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf.d.ts +51 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf.js +48 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1.d.ts +51 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1.js +48 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.d.ts +44 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.js +45 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf2.d.ts +32 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOf2.js +41 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.d.ts +64 -0
- package/dist/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.js +51 -0
- package/dist/internal/src/models/GetMiscHotboard400Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscHotboard400Response.js +45 -0
- package/dist/internal/src/models/GetMiscHotboard500Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscHotboard500Response.js +45 -0
- package/dist/internal/src/models/GetMiscHotboard502Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscHotboard502Response.js +45 -0
- package/dist/internal/src/models/GetMiscLunartime200Response.d.ts +158 -0
- package/dist/internal/src/models/GetMiscLunartime200Response.js +83 -0
- package/dist/internal/src/models/GetMiscLunartime400Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscLunartime400Response.js +43 -0
- package/dist/internal/src/models/GetMiscPhoneinfo200Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscPhoneinfo200Response.js +45 -0
- package/dist/internal/src/models/GetMiscPhoneinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscPhoneinfo400Response.js +45 -0
- package/dist/internal/src/models/GetMiscPhoneinfo500Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscPhoneinfo500Response.js +45 -0
- package/dist/internal/src/models/GetMiscRandomnumber200Response.d.ts +32 -0
- package/dist/internal/src/models/GetMiscRandomnumber200Response.js +41 -0
- package/dist/internal/src/models/GetMiscRandomnumber400Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscRandomnumber400Response.js +45 -0
- package/dist/internal/src/models/GetMiscTimestamp200Response.d.ts +56 -0
- package/dist/internal/src/models/GetMiscTimestamp200Response.js +49 -0
- package/dist/internal/src/models/GetMiscTimestamp400Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscTimestamp400Response.js +45 -0
- package/dist/internal/src/models/GetMiscTrackingCarriers200Response.d.ts +39 -0
- package/dist/internal/src/models/GetMiscTrackingCarriers200Response.js +44 -0
- package/dist/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.js +43 -0
- package/dist/internal/src/models/GetMiscTrackingDetect200Response.d.ts +51 -0
- package/dist/internal/src/models/GetMiscTrackingDetect200Response.js +48 -0
- package/dist/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.js +43 -0
- package/dist/internal/src/models/GetMiscTrackingDetect404Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingDetect404Response.js +43 -0
- package/dist/internal/src/models/GetMiscTrackingQuery200Response.d.ts +57 -0
- package/dist/internal/src/models/GetMiscTrackingQuery200Response.js +50 -0
- package/dist/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.js +43 -0
- package/dist/internal/src/models/GetMiscTrackingQuery400Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingQuery400Response.js +43 -0
- package/dist/internal/src/models/GetMiscTrackingQuery404Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscTrackingQuery404Response.js +43 -0
- package/dist/internal/src/models/GetMiscWeather200Response.d.ts +648 -0
- package/dist/internal/src/models/GetMiscWeather200Response.js +548 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseAirPollutants.d.ts +62 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseAirPollutants.js +51 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseForecastInner.d.ts +128 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseForecastInner.js +73 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.d.ts +116 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.js +69 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndices.d.ts +152 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndices.js +93 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.js +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.d.ts +45 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.js +46 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.js +45 -0
- package/dist/internal/src/models/GetMiscWeather400Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscWeather400Response.js +43 -0
- package/dist/internal/src/models/GetMiscWeather404Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscWeather404Response.js +43 -0
- package/dist/internal/src/models/GetMiscWeather500Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscWeather500Response.js +43 -0
- package/dist/internal/src/models/GetMiscWeather503Response.d.ts +38 -0
- package/dist/internal/src/models/GetMiscWeather503Response.js +43 -0
- package/dist/internal/src/models/GetMiscWorldtime200Response.d.ts +68 -0
- package/dist/internal/src/models/GetMiscWorldtime200Response.js +53 -0
- package/dist/internal/src/models/GetMiscWorldtime400Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWorldtime400Response.js +45 -0
- package/dist/internal/src/models/GetMiscWorldtime404Response.d.ts +44 -0
- package/dist/internal/src/models/GetMiscWorldtime404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkDns200Response.d.ts +51 -0
- package/dist/internal/src/models/GetNetworkDns200Response.js +48 -0
- package/dist/internal/src/models/GetNetworkDns200ResponseRecordsInner.d.ts +68 -0
- package/dist/internal/src/models/GetNetworkDns200ResponseRecordsInner.js +53 -0
- package/dist/internal/src/models/GetNetworkDns400Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkDns400Response.js +45 -0
- package/dist/internal/src/models/GetNetworkDns404Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkDns404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkIcp200Response.d.ts +62 -0
- package/dist/internal/src/models/GetNetworkIcp200Response.js +51 -0
- package/dist/internal/src/models/GetNetworkIcp404Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkIcp404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkIpinfo200Response.d.ts +80 -0
- package/dist/internal/src/models/GetNetworkIpinfo200Response.js +57 -0
- package/dist/internal/src/models/GetNetworkIpinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkIpinfo400Response.js +45 -0
- package/dist/internal/src/models/GetNetworkIpinfo404Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkIpinfo404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkIpinfo500Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkIpinfo500Response.js +45 -0
- package/dist/internal/src/models/GetNetworkMyip200Response.d.ts +92 -0
- package/dist/internal/src/models/GetNetworkMyip200Response.js +61 -0
- package/dist/internal/src/models/GetNetworkMyip400Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkMyip400Response.js +45 -0
- package/dist/internal/src/models/GetNetworkMyip500Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkMyip500Response.js +45 -0
- package/dist/internal/src/models/GetNetworkPing200Response.d.ts +62 -0
- package/dist/internal/src/models/GetNetworkPing200Response.js +51 -0
- package/dist/internal/src/models/GetNetworkPing400Response.d.ts +38 -0
- package/dist/internal/src/models/GetNetworkPing400Response.js +43 -0
- package/dist/internal/src/models/GetNetworkPing429Response.d.ts +38 -0
- package/dist/internal/src/models/GetNetworkPing429Response.js +43 -0
- package/dist/internal/src/models/GetNetworkPingmyip200Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkPingmyip200Response.js +45 -0
- package/dist/internal/src/models/GetNetworkPingmyip404Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkPingmyip404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkPortscan200Response.d.ts +50 -0
- package/dist/internal/src/models/GetNetworkPortscan200Response.js +47 -0
- package/dist/internal/src/models/GetNetworkPortscan400Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkPortscan400Response.js +45 -0
- package/dist/internal/src/models/GetNetworkPortscan500Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkPortscan500Response.js +45 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200Response.d.ts +23 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200Response.js +51 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.d.ts +38 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.js +43 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.d.ts +38 -0
- package/dist/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.js +43 -0
- package/dist/internal/src/models/GetNetworkUrlstatus502Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkUrlstatus502Response.js +45 -0
- package/dist/internal/src/models/GetNetworkWhois200Response.d.ts +23 -0
- package/dist/internal/src/models/GetNetworkWhois200Response.js +51 -0
- package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf.d.ts +35 -0
- package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf.js +41 -0
- package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf1.d.ts +43 -0
- package/dist/internal/src/models/GetNetworkWhois200ResponseOneOf1.js +41 -0
- package/dist/internal/src/models/GetNetworkWhois404Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkWhois404Response.js +45 -0
- package/dist/internal/src/models/GetNetworkWxdomain200Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkWxdomain200Response.js +45 -0
- package/dist/internal/src/models/GetNetworkWxdomain502Response.d.ts +44 -0
- package/dist/internal/src/models/GetNetworkWxdomain502Response.js +45 -0
- package/dist/internal/src/models/GetRandomImage404Response.d.ts +38 -0
- package/dist/internal/src/models/GetRandomImage404Response.js +43 -0
- package/dist/internal/src/models/GetRandomImage500Response.d.ts +38 -0
- package/dist/internal/src/models/GetRandomImage500Response.js +43 -0
- package/dist/internal/src/models/GetRandomString200Response.d.ts +32 -0
- package/dist/internal/src/models/GetRandomString200Response.js +41 -0
- package/dist/internal/src/models/GetRandomString400Response.d.ts +44 -0
- package/dist/internal/src/models/GetRandomString400Response.js +45 -0
- package/dist/internal/src/models/GetRandomString500Response.d.ts +44 -0
- package/dist/internal/src/models/GetRandomString500Response.js +45 -0
- package/dist/internal/src/models/GetSaying200Response.d.ts +32 -0
- package/dist/internal/src/models/GetSaying200Response.js +41 -0
- package/dist/internal/src/models/GetSaying500Response.d.ts +44 -0
- package/dist/internal/src/models/GetSaying500Response.js +45 -0
- package/dist/internal/src/models/GetSearchEngines200Response.d.ts +46 -0
- package/dist/internal/src/models/GetSearchEngines200Response.js +47 -0
- package/dist/internal/src/models/GetSearchEngines200ResponseEngine.d.ts +62 -0
- package/dist/internal/src/models/GetSearchEngines200ResponseEngine.js +51 -0
- package/dist/internal/src/models/GetSearchEngines200ResponseLimits.d.ts +38 -0
- package/dist/internal/src/models/GetSearchEngines200ResponseLimits.js +43 -0
- package/dist/internal/src/models/GetSensitiveWordAnalyzeQuery400Response.d.ts +38 -0
- package/dist/internal/src/models/GetSensitiveWordAnalyzeQuery400Response.js +43 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives200Response.d.ts +51 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives200Response.js +48 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives200ResponseVideosInner.d.ts +92 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives200ResponseVideosInner.js +61 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives400Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives400Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives404Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives404Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives500Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliArchives500Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200Response.d.ts +147 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200Response.js +80 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.d.ts +40 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.d.ts +38 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.js +43 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200Response.d.ts +94 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200Response.js +63 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponsePage.d.ts +50 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponsePage.js +47 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInner.d.ts +94 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInner.js +63 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerContent.d.ts +32 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerContent.js +41 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMember.d.ts +51 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMember.js +48 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMemberLevelInfo.d.ts +32 -0
- package/dist/internal/src/models/GetSocialBilibiliReplies200ResponseRepliesInnerMemberLevelInfo.js +41 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo200Response.d.ts +104 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo200Response.js +65 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo400Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo404Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo404Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo502Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliUserinfo502Response.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200Response.d.ts +204 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200Response.js +105 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.d.ts +33 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.js +42 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.d.ts +50 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.js +47 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseOwner.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseOwner.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.d.ts +75 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.js +56 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.d.ts +134 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.js +75 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.d.ts +56 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.js +49 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.d.ts +104 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.js +65 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.d.ts +39 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.js +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.d.ts +69 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.js +54 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.d.ts +44 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.js +45 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.d.ts +62 -0
- package/dist/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.js +51 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo200Response.d.ts +134 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo200Response.js +75 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo400Response.js +45 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo404Response.d.ts +32 -0
- package/dist/internal/src/models/GetSocialQqGroupinfo404Response.js +41 -0
- package/dist/internal/src/models/GetSocialQqUserinfo200Response.d.ts +110 -0
- package/dist/internal/src/models/GetSocialQqUserinfo200Response.js +67 -0
- package/dist/internal/src/models/GetSocialQqUserinfo400Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialQqUserinfo400Response.js +45 -0
- package/dist/internal/src/models/GetSocialQqUserinfo404Response.d.ts +44 -0
- package/dist/internal/src/models/GetSocialQqUserinfo404Response.js +45 -0
- package/dist/internal/src/models/GetStatusRatelimit200Response.d.ts +80 -0
- package/dist/internal/src/models/GetStatusRatelimit200Response.js +57 -0
- package/dist/internal/src/models/GetStatusRatelimit401Response.d.ts +44 -0
- package/dist/internal/src/models/GetStatusRatelimit401Response.js +45 -0
- package/dist/internal/src/models/GetStatusUsage200Response.d.ts +52 -0
- package/dist/internal/src/models/GetStatusUsage200Response.js +49 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf.d.ts +40 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf.js +45 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf1.d.ts +38 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOf1.js +43 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.d.ts +38 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.js +43 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.d.ts +38 -0
- package/dist/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.js +43 -0
- package/dist/internal/src/models/GetStatusUsage404Response.d.ts +38 -0
- package/dist/internal/src/models/GetStatusUsage404Response.js +43 -0
- package/dist/internal/src/models/GetTextMd5200Response.d.ts +32 -0
- package/dist/internal/src/models/GetTextMd5200Response.js +41 -0
- package/dist/internal/src/models/GetTextMd5400Response.d.ts +44 -0
- package/dist/internal/src/models/GetTextMd5400Response.js +45 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200Response.d.ts +99 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200Response.js +64 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf.d.ts +62 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf.js +51 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf1.d.ts +74 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf1.js +55 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2.d.ts +81 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2.js +58 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2Result.d.ts +38 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf2Result.js +43 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf3.d.ts +80 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus200ResponseAnyOf3.js +57 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus404Response.d.ts +44 -0
- package/dist/internal/src/models/GetWebTomarkdownAsyncStatus404Response.js +45 -0
- package/dist/internal/src/models/GetWebparseExtractimages200Response.d.ts +38 -0
- package/dist/internal/src/models/GetWebparseExtractimages200Response.js +43 -0
- package/dist/internal/src/models/GetWebparseExtractimages500Response.d.ts +44 -0
- package/dist/internal/src/models/GetWebparseExtractimages500Response.js +45 -0
- package/dist/internal/src/models/GetWebparseMetadata200Response.d.ts +92 -0
- package/dist/internal/src/models/GetWebparseMetadata200Response.js +61 -0
- package/dist/internal/src/models/GetWebparseMetadata500Response.d.ts +44 -0
- package/dist/internal/src/models/GetWebparseMetadata500Response.js +45 -0
- package/dist/internal/src/models/PostAiTranslate200Response.d.ts +52 -0
- package/dist/internal/src/models/PostAiTranslate200Response.js +49 -0
- package/dist/internal/src/models/PostAiTranslate200ResponseData.d.ts +32 -0
- package/dist/internal/src/models/PostAiTranslate200ResponseData.js +41 -0
- package/dist/internal/src/models/PostAiTranslate200ResponsePerformance.d.ts +32 -0
- package/dist/internal/src/models/PostAiTranslate200ResponsePerformance.js +41 -0
- package/dist/internal/src/models/PostAiTranslate400Response.d.ts +44 -0
- package/dist/internal/src/models/PostAiTranslate400Response.js +45 -0
- package/dist/internal/src/models/PostAiTranslate401Response.d.ts +44 -0
- package/dist/internal/src/models/PostAiTranslate401Response.js +45 -0
- package/dist/internal/src/models/PostAiTranslate429Response.d.ts +44 -0
- package/dist/internal/src/models/PostAiTranslate429Response.js +45 -0
- package/dist/internal/src/models/PostAiTranslate500Response.d.ts +44 -0
- package/dist/internal/src/models/PostAiTranslate500Response.js +45 -0
- package/dist/internal/src/models/PostAiTranslateRequest.d.ts +81 -0
- package/dist/internal/src/models/PostAiTranslateRequest.js +74 -0
- package/dist/internal/src/models/PostAnswerbookAsk200Response.d.ts +38 -0
- package/dist/internal/src/models/PostAnswerbookAsk200Response.js +43 -0
- package/dist/internal/src/models/PostAnswerbookAskRequest.d.ts +32 -0
- package/dist/internal/src/models/PostAnswerbookAskRequest.js +43 -0
- package/dist/internal/src/models/PostClipzyStore200Response.d.ts +32 -0
- package/dist/internal/src/models/PostClipzyStore200Response.js +41 -0
- package/dist/internal/src/models/PostClipzyStore400Response.d.ts +38 -0
- package/dist/internal/src/models/PostClipzyStore400Response.js +43 -0
- package/dist/internal/src/models/PostClipzyStore413Response.d.ts +38 -0
- package/dist/internal/src/models/PostClipzyStore413Response.js +43 -0
- package/dist/internal/src/models/PostClipzyStoreRequest.d.ts +38 -0
- package/dist/internal/src/models/PostClipzyStoreRequest.js +45 -0
- package/dist/internal/src/models/PostConvertJson200Response.d.ts +32 -0
- package/dist/internal/src/models/PostConvertJson200Response.js +41 -0
- package/dist/internal/src/models/PostConvertJson400Response.d.ts +44 -0
- package/dist/internal/src/models/PostConvertJson400Response.js +45 -0
- package/dist/internal/src/models/PostConvertJsonRequest.d.ts +32 -0
- package/dist/internal/src/models/PostConvertJsonRequest.js +43 -0
- package/dist/internal/src/models/PostImageCompress400Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageCompress400Response.js +43 -0
- package/dist/internal/src/models/PostImageCompress500Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageCompress500Response.js +43 -0
- package/dist/internal/src/models/PostImageFrombase64200Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageFrombase64200Response.js +43 -0
- package/dist/internal/src/models/PostImageFrombase64400Response.d.ts +44 -0
- package/dist/internal/src/models/PostImageFrombase64400Response.js +45 -0
- package/dist/internal/src/models/PostImageFrombase64500Response.d.ts +44 -0
- package/dist/internal/src/models/PostImageFrombase64500Response.js +45 -0
- package/dist/internal/src/models/PostImageFrombase64Request.d.ts +32 -0
- package/dist/internal/src/models/PostImageFrombase64Request.js +43 -0
- package/dist/internal/src/models/PostImageMotou400Response.d.ts +32 -0
- package/dist/internal/src/models/PostImageMotou400Response.js +41 -0
- package/dist/internal/src/models/PostImageMotou500Response.d.ts +32 -0
- package/dist/internal/src/models/PostImageMotou500Response.js +41 -0
- package/dist/internal/src/models/PostImageNsfw200Response.d.ts +74 -0
- package/dist/internal/src/models/PostImageNsfw200Response.js +55 -0
- package/dist/internal/src/models/PostImageNsfw400Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageNsfw400Response.js +43 -0
- package/dist/internal/src/models/PostImageNsfw413Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageNsfw413Response.js +43 -0
- package/dist/internal/src/models/PostImageNsfw500Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageNsfw500Response.js +43 -0
- package/dist/internal/src/models/PostImageSpeechless400Response.d.ts +32 -0
- package/dist/internal/src/models/PostImageSpeechless400Response.js +41 -0
- package/dist/internal/src/models/PostImageSpeechless500Response.d.ts +32 -0
- package/dist/internal/src/models/PostImageSpeechless500Response.js +41 -0
- package/dist/internal/src/models/PostImageSpeechlessRequest.d.ts +38 -0
- package/dist/internal/src/models/PostImageSpeechlessRequest.js +43 -0
- package/dist/internal/src/models/PostImageSvg400Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageSvg400Response.js +43 -0
- package/dist/internal/src/models/PostImageSvg500Response.d.ts +38 -0
- package/dist/internal/src/models/PostImageSvg500Response.js +43 -0
- package/dist/internal/src/models/PostMiscDateDiff200Response.d.ts +62 -0
- package/dist/internal/src/models/PostMiscDateDiff200Response.js +51 -0
- package/dist/internal/src/models/PostMiscDateDiff400Response.d.ts +44 -0
- package/dist/internal/src/models/PostMiscDateDiff400Response.js +45 -0
- package/dist/internal/src/models/PostMiscDateDiffRequest.d.ts +44 -0
- package/dist/internal/src/models/PostMiscDateDiffRequest.js +49 -0
- package/dist/internal/src/models/PostSearchAggregate200Response.d.ts +64 -0
- package/dist/internal/src/models/PostSearchAggregate200Response.js +53 -0
- package/dist/internal/src/models/PostSearchAggregate200ResponseResultsInner.d.ts +80 -0
- package/dist/internal/src/models/PostSearchAggregate200ResponseResultsInner.js +57 -0
- package/dist/internal/src/models/PostSearchAggregate200ResponseSourcesInner.d.ts +56 -0
- package/dist/internal/src/models/PostSearchAggregate200ResponseSourcesInner.js +49 -0
- package/dist/internal/src/models/PostSearchAggregate400Response.d.ts +44 -0
- package/dist/internal/src/models/PostSearchAggregate400Response.js +45 -0
- package/dist/internal/src/models/PostSearchAggregate401Response.d.ts +44 -0
- package/dist/internal/src/models/PostSearchAggregate401Response.js +45 -0
- package/dist/internal/src/models/PostSearchAggregate429Response.d.ts +44 -0
- package/dist/internal/src/models/PostSearchAggregate429Response.js +45 -0
- package/dist/internal/src/models/PostSearchAggregate500Response.d.ts +44 -0
- package/dist/internal/src/models/PostSearchAggregate500Response.js +45 -0
- package/dist/internal/src/models/PostSearchAggregateRequest.d.ts +86 -0
- package/dist/internal/src/models/PostSearchAggregateRequest.js +71 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze200Response.d.ts +39 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze200Response.js +44 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.d.ts +69 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.js +64 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze400Response.d.ts +38 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze400Response.js +43 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze401Response.d.ts +38 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze401Response.js +43 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze429Response.d.ts +38 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyze429Response.js +43 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyzeRequest.d.ts +32 -0
- package/dist/internal/src/models/PostSensitiveWordAnalyzeRequest.js +43 -0
- package/dist/internal/src/models/PostSensitiveWordQuickCheck200Response.d.ts +50 -0
- package/dist/internal/src/models/PostSensitiveWordQuickCheck200Response.js +47 -0
- package/dist/internal/src/models/PostSensitiveWordQuickCheckRequest.d.ts +32 -0
- package/dist/internal/src/models/PostSensitiveWordQuickCheckRequest.js +43 -0
- package/dist/internal/src/models/PostTextAesDecrypt200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextAesDecrypt200Response.js +41 -0
- package/dist/internal/src/models/PostTextAesDecrypt400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextAesDecrypt400Response.js +45 -0
- package/dist/internal/src/models/PostTextAesDecrypt500Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextAesDecrypt500Response.js +45 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvanced200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvanced200Response.js +41 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvanced400Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvanced400Response.js +41 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvancedRequest.d.ts +77 -0
- package/dist/internal/src/models/PostTextAesDecryptAdvancedRequest.js +74 -0
- package/dist/internal/src/models/PostTextAesDecryptRequest.d.ts +44 -0
- package/dist/internal/src/models/PostTextAesDecryptRequest.js +51 -0
- package/dist/internal/src/models/PostTextAesEncrypt200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextAesEncrypt200Response.js +41 -0
- package/dist/internal/src/models/PostTextAesEncrypt400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextAesEncrypt400Response.js +45 -0
- package/dist/internal/src/models/PostTextAesEncrypt500Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextAesEncrypt500Response.js +45 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvanced200Response.d.ts +50 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvanced200Response.js +47 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvanced400Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvanced400Response.js +41 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvancedRequest.d.ts +91 -0
- package/dist/internal/src/models/PostTextAesEncryptAdvancedRequest.js +81 -0
- package/dist/internal/src/models/PostTextAesEncryptRequest.d.ts +38 -0
- package/dist/internal/src/models/PostTextAesEncryptRequest.js +47 -0
- package/dist/internal/src/models/PostTextAnalyze200Response.d.ts +56 -0
- package/dist/internal/src/models/PostTextAnalyze200Response.js +49 -0
- package/dist/internal/src/models/PostTextAnalyze400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextAnalyze400Response.js +45 -0
- package/dist/internal/src/models/PostTextAnalyzeRequest.d.ts +32 -0
- package/dist/internal/src/models/PostTextAnalyzeRequest.js +43 -0
- package/dist/internal/src/models/PostTextBase64Decode200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextBase64Decode200Response.js +41 -0
- package/dist/internal/src/models/PostTextBase64Decode400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextBase64Decode400Response.js +45 -0
- package/dist/internal/src/models/PostTextBase64DecodeRequest.d.ts +32 -0
- package/dist/internal/src/models/PostTextBase64DecodeRequest.js +43 -0
- package/dist/internal/src/models/PostTextBase64Encode200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextBase64Encode200Response.js +41 -0
- package/dist/internal/src/models/PostTextBase64Encode400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextBase64Encode400Response.js +45 -0
- package/dist/internal/src/models/PostTextBase64EncodeRequest.d.ts +32 -0
- package/dist/internal/src/models/PostTextBase64EncodeRequest.js +43 -0
- package/dist/internal/src/models/PostTextConvert200Response.d.ts +56 -0
- package/dist/internal/src/models/PostTextConvert200Response.js +49 -0
- package/dist/internal/src/models/PostTextConvert400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextConvert400Response.js +45 -0
- package/dist/internal/src/models/PostTextConvertRequest.d.ts +86 -0
- package/dist/internal/src/models/PostTextConvertRequest.js +85 -0
- package/dist/internal/src/models/PostTextMd5400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextMd5400Response.js +45 -0
- package/dist/internal/src/models/PostTextMd5Request.d.ts +32 -0
- package/dist/internal/src/models/PostTextMd5Request.js +43 -0
- package/dist/internal/src/models/PostTextMd5Verify200Response.d.ts +32 -0
- package/dist/internal/src/models/PostTextMd5Verify200Response.js +41 -0
- package/dist/internal/src/models/PostTextMd5Verify400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTextMd5Verify400Response.js +45 -0
- package/dist/internal/src/models/PostTextMd5VerifyRequest.d.ts +38 -0
- package/dist/internal/src/models/PostTextMd5VerifyRequest.js +47 -0
- package/dist/internal/src/models/PostTranslateStream400Response.d.ts +47 -0
- package/dist/internal/src/models/PostTranslateStream400Response.js +51 -0
- package/dist/internal/src/models/PostTranslateStream500Response.d.ts +38 -0
- package/dist/internal/src/models/PostTranslateStream500Response.js +43 -0
- package/dist/internal/src/models/PostTranslateStreamRequest.d.ts +50 -0
- package/dist/internal/src/models/PostTranslateStreamRequest.js +51 -0
- package/dist/internal/src/models/PostTranslateText200Response.d.ts +38 -0
- package/dist/internal/src/models/PostTranslateText200Response.js +43 -0
- package/dist/internal/src/models/PostTranslateText400Response.d.ts +44 -0
- package/dist/internal/src/models/PostTranslateText400Response.js +45 -0
- package/dist/internal/src/models/PostTranslateText500Response.d.ts +44 -0
- package/dist/internal/src/models/PostTranslateText500Response.js +45 -0
- package/dist/internal/src/models/PostTranslateTextRequest.d.ts +32 -0
- package/dist/internal/src/models/PostTranslateTextRequest.js +43 -0
- package/dist/internal/src/models/PostWebTomarkdownAsync202Response.d.ts +56 -0
- package/dist/internal/src/models/PostWebTomarkdownAsync202Response.js +49 -0
- package/dist/internal/src/models/PostWebTomarkdownAsync400Response.d.ts +44 -0
- package/dist/internal/src/models/PostWebTomarkdownAsync400Response.js +45 -0
- package/dist/internal/src/models/index.d.ts +333 -0
- package/dist/internal/src/models/index.js +335 -0
- package/dist/internal/src/runtime.d.ts +184 -0
- package/dist/internal/src/runtime.js +322 -0
- package/dist/src/errors.d.ts +85 -0
- package/dist/src/errors.js +247 -0
- package/dist/src/index.d.ts +983 -0
- package/dist/src/index.js +1422 -0
- package/internal/.openapi-generator/FILES +62 -46
- package/internal/docs/DefaultApi.md +8 -8
- package/internal/docs/GetAiTranslateLanguages200ResponseDataLanguagesInner.md +1 -1
- package/internal/docs/GetAiTranslateLanguages200ResponsePerformance.md +2 -6
- package/internal/docs/GetGameEpicFree200Response.md +2 -0
- package/internal/docs/GetMiscHolidayCalendar200Response.md +12 -6
- package/internal/docs/GetMiscHolidayCalendar200ResponseDaysInner.md +76 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseHolidaysInner.md +40 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseNearby.md +37 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyNextInner.md +36 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.md +40 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.md +36 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.md +40 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseQuery.md +47 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseSummary.md +47 -0
- package/internal/docs/GetMiscHotboard200Response.md +5 -5
- package/internal/docs/GetMiscHotboard200ResponseOneOf.md +40 -0
- package/internal/docs/GetMiscHotboard200ResponseOneOf1.md +40 -0
- package/internal/docs/GetMiscHotboard200ResponseOneOf1ResultsInner.md +38 -0
- package/internal/docs/GetMiscHotboard200ResponseOneOf2.md +34 -0
- package/internal/docs/GetMiscHotboard200ResponseOneOfListInner.md +44 -0
- package/internal/docs/GetMiscLunartime200Response.md +44 -6
- package/internal/docs/GetMiscTrackingCarriers200Response.md +4 -6
- package/internal/docs/GetMiscTrackingCarriers200ResponseCarriersInner.md +36 -0
- package/internal/docs/GetMiscTrackingDetect200Response.md +8 -6
- package/internal/docs/GetMiscTrackingDetect200ResponseAlternativesInner.md +36 -0
- package/internal/docs/GetMiscTrackingQuery200Response.md +10 -6
- package/internal/docs/GetMiscTrackingQuery200ResponseTracksInner.md +36 -0
- package/internal/docs/GetMiscWeather200Response.md +4 -0
- package/internal/docs/GetMiscWeather200ResponseForecastInner.md +1 -1
- package/internal/docs/GetMiscWeather200ResponseMinutelyPrecip.md +1 -1
- package/internal/docs/GetNetworkIpinfo200Response.md +0 -2
- package/internal/docs/GetNetworkMyip200Response.md +3 -1
- package/internal/docs/GetNetworkPingmyip200Response.md +6 -12
- package/internal/docs/GetSocialBilibiliLiveroom200Response.md +7 -1
- package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendants.md +37 -0
- package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.md +37 -0
- package/internal/docs/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.md +39 -0
- package/internal/docs/GetSocialBilibiliReplies200Response.md +16 -0
- package/internal/docs/GetSocialBilibiliUserinfo200Response.md +26 -6
- package/internal/docs/GetSocialBilibiliVideoinfo200Response.md +28 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.md +38 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseDimension.md +39 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseHonorReply.md +35 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.md +40 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponsePagesInner.md +8 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.md +39 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseRights.md +69 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseStaffInner.md +42 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseStat.md +12 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitle.md +37 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.md +46 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.md +39 -0
- package/internal/docs/GetSocialBilibiliVideoinfo200ResponseUgcSeason.md +45 -0
- package/internal/docs/GetWebparseExtractimages200Response.md +4 -6
- package/internal/docs/ImageApi.md +5 -5
- package/internal/docs/MiscApi.md +22 -22
- package/internal/docs/PostAiTranslate200Response.md +2 -8
- package/internal/docs/PostAiTranslate200ResponseData.md +1 -11
- package/internal/docs/PostAiTranslate200ResponsePerformance.md +0 -2
- package/internal/docs/PostAiTranslate400Response.md +1 -1
- package/internal/docs/PostAiTranslate500Response.md +0 -2
- package/internal/docs/PostAiTranslateRequest.md +0 -6
- package/internal/docs/PostTextAesEncryptRequest.md +1 -1
- package/internal/docs/RandomApi.md +2 -2
- package/internal/docs/SocialApi.md +5 -5
- package/internal/docs/TextApi.md +18 -18
- package/internal/docs/TranslateApi.md +15 -15
- package/internal/docs/WebParseApi.md +1 -1
- package/internal/src/apis/DefaultApi.ts +4 -4
- package/internal/src/apis/ImageApi.ts +6 -6
- package/internal/src/apis/MiscApi.ts +10 -10
- package/internal/src/apis/SocialApi.ts +5 -22
- package/internal/src/apis/TranslateApi.ts +8 -8
- package/internal/src/apis/WebParseApi.ts +2 -2
- package/internal/src/models/GetAiTranslateLanguages200ResponsePerformance.ts +4 -28
- package/internal/src/models/GetGameEpicFree200Response.ts +8 -0
- package/internal/src/models/GetGithubRepo200Response.ts +23 -23
- package/internal/src/models/GetGithubRepo200ResponseCollaboratorsInner.ts +4 -4
- package/internal/src/models/GetMiscHolidayCalendar200Response.ts +70 -18
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDaysInner.ts +233 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseHolidaysInner.ts +103 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseNearby.ts +88 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInner.ts +81 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyNextInnerEventsInner.ts +89 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInner.ts +81 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseNearbyPreviousInnerEventsInner.ts +89 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseQuery.ts +113 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseSummary.ts +113 -0
- package/internal/src/models/GetMiscHotboard200Response.ts +48 -95
- package/internal/src/models/GetMiscHotboard200ResponseOneOf.ts +97 -0
- package/internal/src/models/GetMiscHotboard200ResponseOneOf1.ts +97 -0
- package/internal/src/models/GetMiscHotboard200ResponseOneOf1ResultsInner.ts +81 -0
- package/internal/src/models/GetMiscHotboard200ResponseOneOf2.ts +65 -0
- package/internal/src/models/GetMiscHotboard200ResponseOneOfListInner.ts +105 -0
- package/internal/src/models/GetMiscLunartime200Response.ts +165 -21
- package/internal/src/models/GetMiscTrackingCarriers200Response.ts +16 -24
- package/internal/src/models/GetMiscTrackingCarriers200ResponseCarriersInner.ts +73 -0
- package/internal/src/models/GetMiscTrackingDetect200Response.ts +27 -19
- package/internal/src/models/GetMiscTrackingDetect200ResponseAlternativesInner.ts +73 -0
- package/internal/src/models/GetMiscTrackingQuery200Response.ts +35 -19
- package/internal/src/models/GetMiscTrackingQuery200ResponseTracksInner.ts +73 -0
- package/internal/src/models/GetMiscWeather200Response.ts +468 -0
- package/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.ts +1 -1
- package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.ts +2 -2
- package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.ts +1 -1
- package/internal/src/models/GetNetworkIpinfo200Response.ts +0 -8
- package/internal/src/models/GetNetworkMyip200Response.ts +9 -1
- package/internal/src/models/GetNetworkPingmyip200Response.ts +13 -37
- package/internal/src/models/GetSocialBilibiliLiveroom200Response.ts +38 -6
- package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendants.ts +88 -0
- package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsBadge.ts +73 -0
- package/internal/src/models/GetSocialBilibiliLiveroom200ResponseNewPendantsFrame.ts +81 -0
- package/internal/src/models/GetSocialBilibiliReplies200Response.ts +64 -0
- package/internal/src/models/GetSocialBilibiliUserinfo200Response.ts +90 -18
- package/internal/src/models/GetSocialBilibiliVideoinfo200Response.ts +161 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDescV2Inner.ts +81 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseDimension.ts +81 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReply.ts +73 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseHonorReplyHonorInner.ts +89 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInner.ts +40 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponsePagesInnerDimension.ts +81 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseRights.ts +201 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStaffInner.ts +97 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseStat.ts +48 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitle.ts +81 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInner.ts +121 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseSubtitleListInnerAuthor.ts +81 -0
- package/internal/src/models/GetSocialBilibiliVideoinfo200ResponseUgcSeason.ts +105 -0
- package/internal/src/models/GetWebparseExtractimages200Response.ts +9 -17
- package/internal/src/models/PostAiTranslate200Response.ts +5 -50
- package/internal/src/models/PostAiTranslate200ResponseData.ts +1 -49
- package/internal/src/models/PostAiTranslate200ResponsePerformance.ts +0 -8
- package/internal/src/models/PostAiTranslate500Response.ts +0 -8
- package/internal/src/models/PostAiTranslateRequest.ts +4 -27
- package/internal/src/models/PostSensitiveWordAnalyzeRequest.ts +1 -1
- package/internal/src/models/PostTextAesEncryptRequest.ts +2 -2
- package/internal/src/models/PostTextMd5VerifyRequest.ts +2 -2
- package/internal/src/models/PostTranslateStreamRequest.ts +2 -23
- package/internal/src/models/PostTranslateTextRequest.ts +1 -1
- package/internal/src/models/index.ts +31 -23
- package/openapitools.json +7 -0
- package/package.json +9 -3
- package/src/errors.ts +282 -0
- package/src/index.ts +2781 -773
- package/dist/index.d.ts +0 -179
- package/dist/index.js +0 -1036
- /package/dist/{index.test.d.ts → src/index.test.d.ts} +0 -0
- /package/dist/{index.test.js → src/index.test.js} +0 -0
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* UAPI
|
|
5
|
+
* UAPI 官方接口文档
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
export const BASE_PATH = "https://uapis.cn/api/v1".replace(/\/+$/, "");
|
|
15
|
+
export class Configuration {
|
|
16
|
+
constructor(configuration = {}) {
|
|
17
|
+
this.configuration = configuration;
|
|
18
|
+
}
|
|
19
|
+
set config(configuration) {
|
|
20
|
+
this.configuration = configuration;
|
|
21
|
+
}
|
|
22
|
+
get basePath() {
|
|
23
|
+
return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;
|
|
24
|
+
}
|
|
25
|
+
get fetchApi() {
|
|
26
|
+
return this.configuration.fetchApi;
|
|
27
|
+
}
|
|
28
|
+
get middleware() {
|
|
29
|
+
return this.configuration.middleware || [];
|
|
30
|
+
}
|
|
31
|
+
get queryParamsStringify() {
|
|
32
|
+
return this.configuration.queryParamsStringify || querystring;
|
|
33
|
+
}
|
|
34
|
+
get username() {
|
|
35
|
+
return this.configuration.username;
|
|
36
|
+
}
|
|
37
|
+
get password() {
|
|
38
|
+
return this.configuration.password;
|
|
39
|
+
}
|
|
40
|
+
get apiKey() {
|
|
41
|
+
const apiKey = this.configuration.apiKey;
|
|
42
|
+
if (apiKey) {
|
|
43
|
+
return typeof apiKey === 'function' ? apiKey : () => apiKey;
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}
|
|
47
|
+
get accessToken() {
|
|
48
|
+
const accessToken = this.configuration.accessToken;
|
|
49
|
+
if (accessToken) {
|
|
50
|
+
return typeof accessToken === 'function' ? accessToken : async () => accessToken;
|
|
51
|
+
}
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
get headers() {
|
|
55
|
+
return this.configuration.headers;
|
|
56
|
+
}
|
|
57
|
+
get credentials() {
|
|
58
|
+
return this.configuration.credentials;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
export const DefaultConfig = new Configuration();
|
|
62
|
+
/**
|
|
63
|
+
* This is the base class for all generated API classes.
|
|
64
|
+
*/
|
|
65
|
+
export class BaseAPI {
|
|
66
|
+
constructor(configuration = DefaultConfig) {
|
|
67
|
+
this.configuration = configuration;
|
|
68
|
+
this.fetchApi = async (url, init) => {
|
|
69
|
+
let fetchParams = { url, init };
|
|
70
|
+
for (const middleware of this.middleware) {
|
|
71
|
+
if (middleware.pre) {
|
|
72
|
+
fetchParams = await middleware.pre({
|
|
73
|
+
fetch: this.fetchApi,
|
|
74
|
+
...fetchParams,
|
|
75
|
+
}) || fetchParams;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
let response = undefined;
|
|
79
|
+
try {
|
|
80
|
+
response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);
|
|
81
|
+
}
|
|
82
|
+
catch (e) {
|
|
83
|
+
for (const middleware of this.middleware) {
|
|
84
|
+
if (middleware.onError) {
|
|
85
|
+
response = await middleware.onError({
|
|
86
|
+
fetch: this.fetchApi,
|
|
87
|
+
url: fetchParams.url,
|
|
88
|
+
init: fetchParams.init,
|
|
89
|
+
error: e,
|
|
90
|
+
response: response ? response.clone() : undefined,
|
|
91
|
+
}) || response;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (response === undefined) {
|
|
95
|
+
if (e instanceof Error) {
|
|
96
|
+
throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
throw e;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
for (const middleware of this.middleware) {
|
|
104
|
+
if (middleware.post) {
|
|
105
|
+
response = await middleware.post({
|
|
106
|
+
fetch: this.fetchApi,
|
|
107
|
+
url: fetchParams.url,
|
|
108
|
+
init: fetchParams.init,
|
|
109
|
+
response: response.clone(),
|
|
110
|
+
}) || response;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return response;
|
|
114
|
+
};
|
|
115
|
+
this.middleware = configuration.middleware;
|
|
116
|
+
}
|
|
117
|
+
withMiddleware(...middlewares) {
|
|
118
|
+
const next = this.clone();
|
|
119
|
+
next.middleware = next.middleware.concat(...middlewares);
|
|
120
|
+
return next;
|
|
121
|
+
}
|
|
122
|
+
withPreMiddleware(...preMiddlewares) {
|
|
123
|
+
const middlewares = preMiddlewares.map((pre) => ({ pre }));
|
|
124
|
+
return this.withMiddleware(...middlewares);
|
|
125
|
+
}
|
|
126
|
+
withPostMiddleware(...postMiddlewares) {
|
|
127
|
+
const middlewares = postMiddlewares.map((post) => ({ post }));
|
|
128
|
+
return this.withMiddleware(...middlewares);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Check if the given MIME is a JSON MIME.
|
|
132
|
+
* JSON MIME examples:
|
|
133
|
+
* application/json
|
|
134
|
+
* application/json; charset=UTF8
|
|
135
|
+
* APPLICATION/JSON
|
|
136
|
+
* application/vnd.company+json
|
|
137
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
138
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
139
|
+
*/
|
|
140
|
+
isJsonMime(mime) {
|
|
141
|
+
if (!mime) {
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return BaseAPI.jsonRegex.test(mime);
|
|
145
|
+
}
|
|
146
|
+
async request(context, initOverrides) {
|
|
147
|
+
const { url, init } = await this.createFetchParams(context, initOverrides);
|
|
148
|
+
const response = await this.fetchApi(url, init);
|
|
149
|
+
if (response && (response.status >= 200 && response.status < 300)) {
|
|
150
|
+
return response;
|
|
151
|
+
}
|
|
152
|
+
throw new ResponseError(response, 'Response returned an error code');
|
|
153
|
+
}
|
|
154
|
+
async createFetchParams(context, initOverrides) {
|
|
155
|
+
let url = this.configuration.basePath + context.path;
|
|
156
|
+
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
157
|
+
// only add the querystring to the URL if there are query parameters.
|
|
158
|
+
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
159
|
+
// do not handle correctly sometimes.
|
|
160
|
+
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
161
|
+
}
|
|
162
|
+
const headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
163
|
+
Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});
|
|
164
|
+
const initOverrideFn = typeof initOverrides === "function"
|
|
165
|
+
? initOverrides
|
|
166
|
+
: async () => initOverrides;
|
|
167
|
+
const initParams = {
|
|
168
|
+
method: context.method,
|
|
169
|
+
headers,
|
|
170
|
+
body: context.body,
|
|
171
|
+
credentials: this.configuration.credentials,
|
|
172
|
+
};
|
|
173
|
+
const overriddenInit = {
|
|
174
|
+
...initParams,
|
|
175
|
+
...(await initOverrideFn({
|
|
176
|
+
init: initParams,
|
|
177
|
+
context,
|
|
178
|
+
}))
|
|
179
|
+
};
|
|
180
|
+
let body;
|
|
181
|
+
if (isFormData(overriddenInit.body)
|
|
182
|
+
|| (overriddenInit.body instanceof URLSearchParams)
|
|
183
|
+
|| isBlob(overriddenInit.body)) {
|
|
184
|
+
body = overriddenInit.body;
|
|
185
|
+
}
|
|
186
|
+
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
187
|
+
body = JSON.stringify(overriddenInit.body);
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
body = overriddenInit.body;
|
|
191
|
+
}
|
|
192
|
+
const init = {
|
|
193
|
+
...overriddenInit,
|
|
194
|
+
body
|
|
195
|
+
};
|
|
196
|
+
return { url, init };
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
200
|
+
* and then shallow cloning data members.
|
|
201
|
+
*/
|
|
202
|
+
clone() {
|
|
203
|
+
const constructor = this.constructor;
|
|
204
|
+
const next = new constructor(this.configuration);
|
|
205
|
+
next.middleware = this.middleware.slice();
|
|
206
|
+
return next;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
210
|
+
;
|
|
211
|
+
function isBlob(value) {
|
|
212
|
+
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
213
|
+
}
|
|
214
|
+
function isFormData(value) {
|
|
215
|
+
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
216
|
+
}
|
|
217
|
+
export class ResponseError extends Error {
|
|
218
|
+
constructor(response, msg) {
|
|
219
|
+
super(msg);
|
|
220
|
+
this.response = response;
|
|
221
|
+
this.name = "ResponseError";
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
export class FetchError extends Error {
|
|
225
|
+
constructor(cause, msg) {
|
|
226
|
+
super(msg);
|
|
227
|
+
this.cause = cause;
|
|
228
|
+
this.name = "FetchError";
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
export class RequiredError extends Error {
|
|
232
|
+
constructor(field, msg) {
|
|
233
|
+
super(msg);
|
|
234
|
+
this.field = field;
|
|
235
|
+
this.name = "RequiredError";
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export const COLLECTION_FORMATS = {
|
|
239
|
+
csv: ",",
|
|
240
|
+
ssv: " ",
|
|
241
|
+
tsv: "\t",
|
|
242
|
+
pipes: "|",
|
|
243
|
+
};
|
|
244
|
+
export function querystring(params, prefix = '') {
|
|
245
|
+
return Object.keys(params)
|
|
246
|
+
.map(key => querystringSingleKey(key, params[key], prefix))
|
|
247
|
+
.filter(part => part.length > 0)
|
|
248
|
+
.join('&');
|
|
249
|
+
}
|
|
250
|
+
function querystringSingleKey(key, value, keyPrefix = '') {
|
|
251
|
+
const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);
|
|
252
|
+
if (value instanceof Array) {
|
|
253
|
+
const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))
|
|
254
|
+
.join(`&${encodeURIComponent(fullKey)}=`);
|
|
255
|
+
return `${encodeURIComponent(fullKey)}=${multiValue}`;
|
|
256
|
+
}
|
|
257
|
+
if (value instanceof Set) {
|
|
258
|
+
const valueAsArray = Array.from(value);
|
|
259
|
+
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
260
|
+
}
|
|
261
|
+
if (value instanceof Date) {
|
|
262
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;
|
|
263
|
+
}
|
|
264
|
+
if (value instanceof Object) {
|
|
265
|
+
return querystring(value, fullKey);
|
|
266
|
+
}
|
|
267
|
+
return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;
|
|
268
|
+
}
|
|
269
|
+
export function exists(json, key) {
|
|
270
|
+
const value = json[key];
|
|
271
|
+
return value !== null && value !== undefined;
|
|
272
|
+
}
|
|
273
|
+
export function mapValues(data, fn) {
|
|
274
|
+
const result = {};
|
|
275
|
+
for (const key of Object.keys(data)) {
|
|
276
|
+
result[key] = fn(data[key]);
|
|
277
|
+
}
|
|
278
|
+
return result;
|
|
279
|
+
}
|
|
280
|
+
export function canConsumeForm(consumes) {
|
|
281
|
+
for (const consume of consumes) {
|
|
282
|
+
if ('multipart/form-data' === consume.contentType) {
|
|
283
|
+
return true;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
export class JSONApiResponse {
|
|
289
|
+
constructor(raw, transformer = (jsonValue) => jsonValue) {
|
|
290
|
+
this.raw = raw;
|
|
291
|
+
this.transformer = transformer;
|
|
292
|
+
}
|
|
293
|
+
async value() {
|
|
294
|
+
return this.transformer(await this.raw.json());
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
export class VoidApiResponse {
|
|
298
|
+
constructor(raw) {
|
|
299
|
+
this.raw = raw;
|
|
300
|
+
}
|
|
301
|
+
async value() {
|
|
302
|
+
return undefined;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
export class BlobApiResponse {
|
|
306
|
+
constructor(raw) {
|
|
307
|
+
this.raw = raw;
|
|
308
|
+
}
|
|
309
|
+
async value() {
|
|
310
|
+
return await this.raw.blob();
|
|
311
|
+
}
|
|
312
|
+
;
|
|
313
|
+
}
|
|
314
|
+
export class TextApiResponse {
|
|
315
|
+
constructor(raw) {
|
|
316
|
+
this.raw = raw;
|
|
317
|
+
}
|
|
318
|
+
async value() {
|
|
319
|
+
return await this.raw.text();
|
|
320
|
+
}
|
|
321
|
+
;
|
|
322
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export interface RateLimitPolicyEntry {
|
|
2
|
+
name: string;
|
|
3
|
+
quota?: number;
|
|
4
|
+
unit?: string;
|
|
5
|
+
windowSeconds?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface RateLimitStateEntry {
|
|
8
|
+
name: string;
|
|
9
|
+
remaining?: number;
|
|
10
|
+
unit?: string;
|
|
11
|
+
resetAfterSeconds?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface ResponseMeta {
|
|
14
|
+
requestId?: string;
|
|
15
|
+
retryAfterSeconds?: number;
|
|
16
|
+
debitStatus?: string;
|
|
17
|
+
creditsRequested?: number;
|
|
18
|
+
creditsCharged?: number;
|
|
19
|
+
creditsPricing?: string;
|
|
20
|
+
activeQuotaBuckets?: number;
|
|
21
|
+
stopOnEmpty?: boolean;
|
|
22
|
+
rateLimitPolicyRaw?: string;
|
|
23
|
+
rateLimitRaw?: string;
|
|
24
|
+
rateLimitPolicies: Record<string, RateLimitPolicyEntry>;
|
|
25
|
+
rateLimits: Record<string, RateLimitStateEntry>;
|
|
26
|
+
balanceLimitCents?: number;
|
|
27
|
+
balanceRemainingCents?: number;
|
|
28
|
+
quotaLimitCredits?: number;
|
|
29
|
+
quotaRemainingCredits?: number;
|
|
30
|
+
visitorQuotaLimitCredits?: number;
|
|
31
|
+
visitorQuotaRemainingCredits?: number;
|
|
32
|
+
rawHeaders: Record<string, string>;
|
|
33
|
+
}
|
|
34
|
+
export declare class UapiError extends Error {
|
|
35
|
+
code: string;
|
|
36
|
+
status: number;
|
|
37
|
+
details?: unknown;
|
|
38
|
+
payload?: unknown;
|
|
39
|
+
meta?: ResponseMeta;
|
|
40
|
+
constructor(code: string, status: number, message: string, details?: unknown, payload?: unknown, meta?: ResponseMeta);
|
|
41
|
+
}
|
|
42
|
+
export declare class ApiErrorError extends UapiError {
|
|
43
|
+
}
|
|
44
|
+
export declare class AvatarNotFoundError extends UapiError {
|
|
45
|
+
}
|
|
46
|
+
export declare class ConversionFailedError extends UapiError {
|
|
47
|
+
}
|
|
48
|
+
export declare class FileOpenErrorError extends UapiError {
|
|
49
|
+
}
|
|
50
|
+
export declare class FileRequiredError extends UapiError {
|
|
51
|
+
}
|
|
52
|
+
export declare class InsufficientCreditsError extends UapiError {
|
|
53
|
+
}
|
|
54
|
+
export declare class InternalServerErrorError extends UapiError {
|
|
55
|
+
}
|
|
56
|
+
export declare class InvalidParameterError extends UapiError {
|
|
57
|
+
}
|
|
58
|
+
export declare class InvalidParamsError extends UapiError {
|
|
59
|
+
}
|
|
60
|
+
export declare class NotFoundError extends UapiError {
|
|
61
|
+
}
|
|
62
|
+
export declare class NoMatchError extends UapiError {
|
|
63
|
+
}
|
|
64
|
+
export declare class NoTrackingDataError extends UapiError {
|
|
65
|
+
}
|
|
66
|
+
export declare class PhoneInfoFailedError extends UapiError {
|
|
67
|
+
}
|
|
68
|
+
export declare class RecognitionFailedError extends UapiError {
|
|
69
|
+
}
|
|
70
|
+
export declare class RequestEntityTooLargeError extends UapiError {
|
|
71
|
+
}
|
|
72
|
+
export declare class ServiceBusyError extends UapiError {
|
|
73
|
+
}
|
|
74
|
+
export declare class TimezoneNotFoundError extends UapiError {
|
|
75
|
+
}
|
|
76
|
+
export declare class UnauthorizedError extends UapiError {
|
|
77
|
+
}
|
|
78
|
+
export declare class UnsupportedCarrierError extends UapiError {
|
|
79
|
+
}
|
|
80
|
+
export declare class UnsupportedFormatError extends UapiError {
|
|
81
|
+
}
|
|
82
|
+
export declare class VisitorMonthlyQuotaExhaustedError extends UapiError {
|
|
83
|
+
}
|
|
84
|
+
export declare function extractMetaFromHeaders(headers: Headers | Record<string, unknown> | undefined): ResponseMeta;
|
|
85
|
+
export declare function mapError(res: Response, body: unknown): UapiError;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
export class UapiError extends Error {
|
|
2
|
+
constructor(code, status, message, details, payload, meta) {
|
|
3
|
+
super(`[${status}] ${code}: ${message}`);
|
|
4
|
+
this.code = code;
|
|
5
|
+
this.status = status;
|
|
6
|
+
this.details = details;
|
|
7
|
+
this.payload = payload;
|
|
8
|
+
this.meta = meta;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class ApiErrorError extends UapiError {
|
|
12
|
+
}
|
|
13
|
+
export class AvatarNotFoundError extends UapiError {
|
|
14
|
+
}
|
|
15
|
+
export class ConversionFailedError extends UapiError {
|
|
16
|
+
}
|
|
17
|
+
export class FileOpenErrorError extends UapiError {
|
|
18
|
+
}
|
|
19
|
+
export class FileRequiredError extends UapiError {
|
|
20
|
+
}
|
|
21
|
+
export class InsufficientCreditsError extends UapiError {
|
|
22
|
+
}
|
|
23
|
+
export class InternalServerErrorError extends UapiError {
|
|
24
|
+
}
|
|
25
|
+
export class InvalidParameterError extends UapiError {
|
|
26
|
+
}
|
|
27
|
+
export class InvalidParamsError extends UapiError {
|
|
28
|
+
}
|
|
29
|
+
export class NotFoundError extends UapiError {
|
|
30
|
+
}
|
|
31
|
+
export class NoMatchError extends UapiError {
|
|
32
|
+
}
|
|
33
|
+
export class NoTrackingDataError extends UapiError {
|
|
34
|
+
}
|
|
35
|
+
export class PhoneInfoFailedError extends UapiError {
|
|
36
|
+
}
|
|
37
|
+
export class RecognitionFailedError extends UapiError {
|
|
38
|
+
}
|
|
39
|
+
export class RequestEntityTooLargeError extends UapiError {
|
|
40
|
+
}
|
|
41
|
+
export class ServiceBusyError extends UapiError {
|
|
42
|
+
}
|
|
43
|
+
export class TimezoneNotFoundError extends UapiError {
|
|
44
|
+
}
|
|
45
|
+
export class UnauthorizedError extends UapiError {
|
|
46
|
+
}
|
|
47
|
+
export class UnsupportedCarrierError extends UapiError {
|
|
48
|
+
}
|
|
49
|
+
export class UnsupportedFormatError extends UapiError {
|
|
50
|
+
}
|
|
51
|
+
export class VisitorMonthlyQuotaExhaustedError extends UapiError {
|
|
52
|
+
}
|
|
53
|
+
function defaultCode(status) {
|
|
54
|
+
switch (status) {
|
|
55
|
+
case 400:
|
|
56
|
+
return 'INVALID_PARAMETER';
|
|
57
|
+
case 401:
|
|
58
|
+
return 'UNAUTHORIZED';
|
|
59
|
+
case 402:
|
|
60
|
+
return 'INSUFFICIENT_CREDITS';
|
|
61
|
+
case 404:
|
|
62
|
+
return 'NOT_FOUND';
|
|
63
|
+
case 413:
|
|
64
|
+
return 'REQUEST_ENTITY_TOO_LARGE';
|
|
65
|
+
case 429:
|
|
66
|
+
return 'SERVICE_BUSY';
|
|
67
|
+
case 500:
|
|
68
|
+
return 'INTERNAL_SERVER_ERROR';
|
|
69
|
+
default:
|
|
70
|
+
return 'API_ERROR';
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function toHeaderMap(headers) {
|
|
74
|
+
const out = {};
|
|
75
|
+
if (!headers) {
|
|
76
|
+
return out;
|
|
77
|
+
}
|
|
78
|
+
if (typeof headers.forEach === 'function') {
|
|
79
|
+
;
|
|
80
|
+
headers.forEach((value, key) => {
|
|
81
|
+
out[String(key).toLowerCase()] = String(value);
|
|
82
|
+
});
|
|
83
|
+
return out;
|
|
84
|
+
}
|
|
85
|
+
for (const [rawKey, rawValue] of Object.entries(headers)) {
|
|
86
|
+
if (rawValue === undefined || rawValue === null) {
|
|
87
|
+
continue;
|
|
88
|
+
}
|
|
89
|
+
out[String(rawKey).toLowerCase()] = String(rawValue);
|
|
90
|
+
}
|
|
91
|
+
return out;
|
|
92
|
+
}
|
|
93
|
+
function parseNumber(value) {
|
|
94
|
+
if (value === undefined) {
|
|
95
|
+
return undefined;
|
|
96
|
+
}
|
|
97
|
+
const parsed = Number(value);
|
|
98
|
+
return Number.isFinite(parsed) ? parsed : undefined;
|
|
99
|
+
}
|
|
100
|
+
function parseBoolean(value) {
|
|
101
|
+
if (value === undefined) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
const normalized = value.trim().toLowerCase();
|
|
105
|
+
if (normalized === 'true') {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
if (normalized === 'false') {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
return undefined;
|
|
112
|
+
}
|
|
113
|
+
function unquote(value) {
|
|
114
|
+
const trimmed = value.trim();
|
|
115
|
+
if (trimmed.length >= 2 && trimmed.startsWith('"') && trimmed.endsWith('"')) {
|
|
116
|
+
return trimmed.slice(1, -1);
|
|
117
|
+
}
|
|
118
|
+
return trimmed;
|
|
119
|
+
}
|
|
120
|
+
function parseStructuredItems(raw) {
|
|
121
|
+
if (!raw) {
|
|
122
|
+
return [];
|
|
123
|
+
}
|
|
124
|
+
return raw
|
|
125
|
+
.split(',')
|
|
126
|
+
.map((item) => item.trim())
|
|
127
|
+
.filter(Boolean)
|
|
128
|
+
.map((item) => {
|
|
129
|
+
const segments = item.split(';').map((segment) => segment.trim()).filter(Boolean);
|
|
130
|
+
const [head, ...rest] = segments;
|
|
131
|
+
const params = {};
|
|
132
|
+
for (const segment of rest) {
|
|
133
|
+
const eq = segment.indexOf('=');
|
|
134
|
+
if (eq <= 0) {
|
|
135
|
+
continue;
|
|
136
|
+
}
|
|
137
|
+
const key = segment.slice(0, eq).trim();
|
|
138
|
+
const value = unquote(segment.slice(eq + 1));
|
|
139
|
+
params[key] = value;
|
|
140
|
+
}
|
|
141
|
+
return { name: unquote(head), params };
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
export function extractMetaFromHeaders(headers) {
|
|
145
|
+
const rawHeaders = toHeaderMap(headers);
|
|
146
|
+
const rateLimitPolicies = {};
|
|
147
|
+
const rateLimits = {};
|
|
148
|
+
for (const item of parseStructuredItems(rawHeaders['ratelimit-policy'])) {
|
|
149
|
+
rateLimitPolicies[item.name] = {
|
|
150
|
+
name: item.name,
|
|
151
|
+
quota: parseNumber(item.params.q),
|
|
152
|
+
unit: item.params['uapi-unit'],
|
|
153
|
+
windowSeconds: parseNumber(item.params.w),
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
for (const item of parseStructuredItems(rawHeaders['ratelimit'])) {
|
|
157
|
+
rateLimits[item.name] = {
|
|
158
|
+
name: item.name,
|
|
159
|
+
remaining: parseNumber(item.params.r),
|
|
160
|
+
unit: item.params['uapi-unit'],
|
|
161
|
+
resetAfterSeconds: parseNumber(item.params.t),
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
return {
|
|
165
|
+
requestId: rawHeaders['x-request-id'],
|
|
166
|
+
retryAfterSeconds: parseNumber(rawHeaders['retry-after']),
|
|
167
|
+
debitStatus: rawHeaders['uapi-debit-status'],
|
|
168
|
+
creditsRequested: parseNumber(rawHeaders['uapi-credits-requested']),
|
|
169
|
+
creditsCharged: parseNumber(rawHeaders['uapi-credits-charged']),
|
|
170
|
+
creditsPricing: rawHeaders['uapi-credits-pricing'],
|
|
171
|
+
activeQuotaBuckets: parseNumber(rawHeaders['uapi-quota-active-buckets']),
|
|
172
|
+
stopOnEmpty: parseBoolean(rawHeaders['uapi-stop-on-empty']),
|
|
173
|
+
rateLimitPolicyRaw: rawHeaders['ratelimit-policy'],
|
|
174
|
+
rateLimitRaw: rawHeaders['ratelimit'],
|
|
175
|
+
rateLimitPolicies,
|
|
176
|
+
rateLimits,
|
|
177
|
+
balanceLimitCents: rateLimitPolicies['billing-balance']?.quota,
|
|
178
|
+
balanceRemainingCents: rateLimits['billing-balance']?.remaining,
|
|
179
|
+
quotaLimitCredits: rateLimitPolicies['billing-quota']?.quota,
|
|
180
|
+
quotaRemainingCredits: rateLimits['billing-quota']?.remaining,
|
|
181
|
+
visitorQuotaLimitCredits: rateLimitPolicies['visitor-quota']?.quota,
|
|
182
|
+
visitorQuotaRemainingCredits: rateLimits['visitor-quota']?.remaining,
|
|
183
|
+
rawHeaders,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
function pickDetails(body) {
|
|
187
|
+
if (!body || typeof body !== 'object') {
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
190
|
+
const payload = body;
|
|
191
|
+
if (payload.details !== undefined) {
|
|
192
|
+
return payload.details;
|
|
193
|
+
}
|
|
194
|
+
if (payload.quota !== undefined) {
|
|
195
|
+
return payload.quota;
|
|
196
|
+
}
|
|
197
|
+
if (payload.docs !== undefined) {
|
|
198
|
+
return payload.docs;
|
|
199
|
+
}
|
|
200
|
+
return undefined;
|
|
201
|
+
}
|
|
202
|
+
export function mapError(res, body) {
|
|
203
|
+
const payload = body && typeof body === 'object' ? body : undefined;
|
|
204
|
+
const code = String(payload?.code || payload?.error || defaultCode(res.status)).toUpperCase();
|
|
205
|
+
const message = payload?.message ||
|
|
206
|
+
payload?.errMsg ||
|
|
207
|
+
(typeof body === 'string' ? body : '') ||
|
|
208
|
+
res.statusText ||
|
|
209
|
+
'Request failed';
|
|
210
|
+
const meta = extractMetaFromHeaders(res.headers);
|
|
211
|
+
const table = {
|
|
212
|
+
"API_ERROR": ApiErrorError,
|
|
213
|
+
"AVATAR_NOT_FOUND": AvatarNotFoundError,
|
|
214
|
+
"CONVERSION_FAILED": ConversionFailedError,
|
|
215
|
+
"FILE_OPEN_ERROR": FileOpenErrorError,
|
|
216
|
+
"FILE_REQUIRED": FileRequiredError,
|
|
217
|
+
"INSUFFICIENT_CREDITS": InsufficientCreditsError,
|
|
218
|
+
"INTERNAL_SERVER_ERROR": InternalServerErrorError,
|
|
219
|
+
"INVALID_PARAMETER": InvalidParameterError,
|
|
220
|
+
"INVALID_PARAMS": InvalidParamsError,
|
|
221
|
+
"NOT_FOUND": NotFoundError,
|
|
222
|
+
"NO_MATCH": NoMatchError,
|
|
223
|
+
"NO_TRACKING_DATA": NoTrackingDataError,
|
|
224
|
+
"PHONE_INFO_FAILED": PhoneInfoFailedError,
|
|
225
|
+
"RECOGNITION_FAILED": RecognitionFailedError,
|
|
226
|
+
"REQUEST_ENTITY_TOO_LARGE": RequestEntityTooLargeError,
|
|
227
|
+
"SERVICE_BUSY": ServiceBusyError,
|
|
228
|
+
"TIMEZONE_NOT_FOUND": TimezoneNotFoundError,
|
|
229
|
+
"UNAUTHORIZED": UnauthorizedError,
|
|
230
|
+
"UNSUPPORTED_CARRIER": UnsupportedCarrierError,
|
|
231
|
+
"UNSUPPORTED_FORMAT": UnsupportedFormatError,
|
|
232
|
+
"VISITOR_MONTHLY_QUOTA_EXHAUSTED": VisitorMonthlyQuotaExhaustedError,
|
|
233
|
+
};
|
|
234
|
+
const fallback = res.status === 401
|
|
235
|
+
? UnauthorizedError
|
|
236
|
+
: res.status === 402
|
|
237
|
+
? InsufficientCreditsError
|
|
238
|
+
: res.status === 404
|
|
239
|
+
? NotFoundError
|
|
240
|
+
: res.status === 429
|
|
241
|
+
? ServiceBusyError
|
|
242
|
+
: res.status >= 500
|
|
243
|
+
? InternalServerErrorError
|
|
244
|
+
: UapiError;
|
|
245
|
+
const Ctor = table[code] || fallback;
|
|
246
|
+
return new Ctor(code, res.status, message, pickDetails(payload), payload ?? body, meta);
|
|
247
|
+
}
|