uapi-browser-sdk 0.1.4 → 0.1.11
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/.github/workflows/release.yml +7 -11
- package/README.md +55 -55
- package/dist/index.d.ts +4 -0
- package/dist/index.js +88 -2
- package/internal/.openapi-generator/FILES +689 -563
- package/internal/docs/ConvertApi.md +4 -4
- package/internal/docs/DailyApi.md +2 -2
- package/internal/docs/DefaultApi.md +6 -6
- package/internal/docs/EndpointsAggregate.md +1 -1
- package/internal/docs/GameApi.md +21 -18
- package/internal/docs/GetAiTranslateLanguages200Response.md +0 -2
- package/internal/docs/GetAnswerbookAsk200Response.md +0 -2
- package/internal/docs/GetConvertUnixtime200Response.md +0 -2
- package/internal/docs/GetGameEpicFree200Response.md +0 -2
- package/internal/docs/GetGameMinecraftHistoryid200Response.md +12 -7
- package/internal/docs/GetGameMinecraftHistoryid200ResponseResultsInner.md +40 -0
- package/internal/docs/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.md +36 -0
- package/internal/docs/GetGameMinecraftHistoryid400Response.md +1 -1
- package/internal/docs/GetGameMinecraftHistoryid502Response.md +1 -1
- package/internal/docs/GetGameMinecraftServerstatus200Response.md +0 -2
- package/internal/docs/GetGameMinecraftUserinfo200Response.md +0 -2
- package/internal/docs/GetGameMinecraftUserinfo502Response.md +38 -0
- package/internal/docs/GetGameSteamSummary200Response.md +0 -2
- package/internal/docs/GetGithubRepo200Response.md +2 -0
- package/internal/docs/GetGithubRepo200ResponseLatestRelease.md +45 -0
- package/internal/docs/GetHistoryProgrammer200Response.md +0 -2
- package/internal/docs/GetHistoryProgrammerToday200Response.md +0 -2
- package/internal/docs/GetImageTobase64200Response.md +0 -2
- package/internal/docs/GetMiscDistrict200Response.md +36 -0
- package/internal/docs/GetMiscDistrict200ResponseResultsInner.md +58 -0
- package/internal/docs/GetMiscDistrict200ResponseResultsInnerCenter.md +37 -0
- package/internal/docs/GetMiscDistrict400Response.md +36 -0
- package/internal/docs/GetMiscHolidayCalendar200Response.md +38 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseData.md +44 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataDaysInner.md +76 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataHolidaysInner.md +40 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearby.md +37 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearbyNextInner.md +38 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataNearbyPreviousInner.md +38 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataQuery.md +47 -0
- package/internal/docs/GetMiscHolidayCalendar200ResponseDataSummary.md +47 -0
- package/internal/docs/GetMiscHolidayCalendar400Response.md +36 -0
- package/internal/docs/GetMiscHotboard200Response.md +10 -0
- package/internal/docs/GetMiscHotboard200ResponseListInner.md +2 -0
- package/internal/docs/GetMiscHotboard200ResponseResultsInner.md +38 -0
- package/internal/docs/GetMiscLunartime200Response.md +38 -0
- package/internal/docs/GetMiscLunartime200ResponseData.md +77 -0
- package/internal/docs/GetMiscLunartime400Response.md +36 -0
- package/internal/docs/GetMiscWeather200Response.md +47 -13
- package/internal/docs/GetMiscWeather200ResponseAirPollutants.md +45 -0
- package/internal/docs/GetMiscWeather200ResponseForecastInner.md +66 -0
- package/internal/docs/GetMiscWeather200ResponseHourlyForecastInner.md +62 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndices.md +69 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesAirConditioner.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesAirPurifier.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesAllergy.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesBeer.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesCarWash.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesClothing.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesColdRisk.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesComfort.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesDrying.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesExercise.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesFishing.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesMood.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesPollen.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesSunscreen.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesTraffic.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesTravel.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesUmbrella.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseLifeIndicesUv.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseMinutelyPrecip.md +39 -0
- package/internal/docs/GetMiscWeather200ResponseMinutelyPrecipDataInner.md +38 -0
- package/internal/docs/GetMiscWeather400Response.md +2 -4
- package/internal/docs/GetMiscWeather404Response.md +36 -0
- package/internal/docs/GetMiscWeather500Response.md +1 -3
- package/internal/docs/GetMiscWeather503Response.md +36 -0
- package/internal/docs/GetNetworkDns200Response.md +0 -2
- package/internal/docs/GetNetworkIpinfo200Response.md +12 -28
- package/internal/docs/GetNetworkIpinfo500Response.md +1 -1
- package/internal/docs/GetNetworkMyip200Response.md +52 -0
- package/internal/docs/GetNetworkPing200Response.md +0 -2
- package/internal/docs/GetNetworkPingmyip200Response.md +0 -2
- package/internal/docs/GetNetworkPortscan200Response.md +0 -2
- package/internal/docs/GetNetworkUrlstatus200Response.md +2 -4
- package/internal/docs/GetNetworkUrlstatus200ResponseOneOf.md +37 -0
- package/internal/docs/GetNetworkUrlstatus200ResponseOneOf1.md +37 -0
- package/internal/docs/GetNetworkWhois200Response.md +0 -2
- package/internal/docs/GetNetworkWhois200ResponseOneOf.md +0 -2
- package/internal/docs/GetNetworkWhois200ResponseOneOf1.md +0 -2
- package/internal/docs/GetRandomString200Response.md +0 -2
- package/internal/docs/GetSearchEngines200Response.md +1 -1
- package/internal/docs/GetSearchEngines200ResponseEngine.md +1 -1
- package/internal/docs/GetSocialQqGroupinfo200Response.md +22 -0
- package/internal/docs/GetSocialQqGroupinfo404Response.md +2 -6
- package/internal/docs/GetStatusUsage200Response.md +2 -2
- package/internal/docs/GetStatusUsage200ResponseAnyOf.md +37 -0
- package/internal/docs/GetStatusUsage200ResponseAnyOf1.md +37 -0
- package/internal/docs/GetStatusUsage200ResponseAnyOfEndpointsInner.md +36 -0
- package/internal/docs/GetStatusUsage200ResponseAnyOfUnaggregated.md +36 -0
- package/internal/docs/GetStatusUsage404Response.md +1 -3
- package/internal/docs/ImageApi.md +101 -18
- package/internal/docs/MiscApi.md +388 -34
- package/internal/docs/NetworkApi.md +19 -19
- package/internal/docs/PoemApi.md +2 -2
- package/internal/docs/PostAiTranslate200Response.md +0 -2
- package/internal/docs/PostAnswerbookAsk200Response.md +0 -2
- package/internal/docs/PostConvertJson200Response.md +0 -2
- package/internal/docs/PostImageFrombase64200Response.md +0 -2
- package/internal/docs/PostImageNsfw200Response.md +48 -0
- package/internal/docs/PostImageNsfw400Response.md +36 -0
- package/internal/docs/PostImageNsfw413Response.md +36 -0
- package/internal/docs/PostImageNsfw500Response.md +36 -0
- package/internal/docs/PostMiscDateDiff200Response.md +44 -0
- package/internal/docs/PostMiscDateDiff400Response.md +38 -0
- package/internal/docs/PostMiscDateDiffRequest.md +38 -0
- package/internal/docs/PostSearchAggregateRequest.md +4 -0
- package/internal/docs/PostSensitiveWordAnalyze200ResponseResultsInner.md +6 -10
- package/internal/docs/PostTextAesDecryptAdvanced200Response.md +34 -0
- package/internal/docs/PostTextAesDecryptAdvanced400Response.md +34 -0
- package/internal/docs/PostTextAesDecryptAdvancedRequest.md +42 -0
- package/internal/docs/PostTextAesEncryptAdvanced200Response.md +40 -0
- package/internal/docs/PostTextAesEncryptAdvanced400Response.md +34 -0
- package/internal/docs/PostTextAesEncryptAdvancedRequest.md +44 -0
- package/internal/docs/PostTextConvert200Response.md +42 -0
- package/internal/docs/PostTextConvert400Response.md +38 -0
- package/internal/docs/PostTextConvertRequest.md +40 -0
- package/internal/docs/RandomApi.md +14 -15
- package/internal/docs/SocialApi.md +22 -23
- package/internal/docs/StatusApi.md +4 -6
- package/internal/docs/TextApi.md +223 -16
- package/internal/docs/TranslateApi.md +7 -7
- package/internal/docs/WebParseApi.md +12 -12
- package/internal/src/apis/ConvertApi.ts +4 -4
- package/internal/src/apis/DailyApi.ts +2 -2
- package/internal/src/apis/DefaultApi.ts +8 -8
- package/internal/src/apis/GameApi.ts +22 -21
- package/internal/src/apis/ImageApi.ts +104 -16
- package/internal/src/apis/MiscApi.ts +380 -29
- package/internal/src/apis/NetworkApi.ts +22 -19
- package/internal/src/apis/PoemApi.ts +2 -2
- package/internal/src/apis/RandomApi.ts +23 -24
- package/internal/src/apis/SocialApi.ts +38 -24
- package/internal/src/apis/StatusApi.ts +2 -5
- package/internal/src/apis/TextApi.ts +178 -16
- package/internal/src/apis/TranslateApi.ts +8 -8
- package/internal/src/apis/WebParseApi.ts +16 -16
- package/internal/src/models/GetAiTranslateLanguages200Response.ts +0 -8
- package/internal/src/models/GetAnswerbookAsk200Response.ts +0 -8
- package/internal/src/models/GetConvertUnixtime200Response.ts +0 -8
- package/internal/src/models/GetGameEpicFree200Response.ts +0 -8
- package/internal/src/models/GetGameMinecraftHistoryid200Response.ts +40 -17
- package/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInner.ts +97 -0
- package/internal/src/models/GetGameMinecraftHistoryid200ResponseResultsInnerHistoryInner.ts +73 -0
- package/internal/src/models/GetGameMinecraftServerstatus200Response.ts +0 -8
- package/internal/src/models/GetGameMinecraftUserinfo200Response.ts +0 -8
- package/internal/src/models/GetGameMinecraftUserinfo502Response.ts +81 -0
- package/internal/src/models/GetGameSteamSummary200Response.ts +0 -8
- package/internal/src/models/GetGithubRepo200Response.ts +15 -0
- package/internal/src/models/GetGithubRepo200ResponseLatestRelease.ts +105 -0
- package/internal/src/models/GetHistoryProgrammer200Response.ts +0 -8
- package/internal/src/models/GetHistoryProgrammerToday200Response.ts +0 -8
- package/internal/src/models/GetImageTobase64200Response.ts +0 -8
- package/internal/src/models/GetMiscDistrict200Response.ts +81 -0
- package/internal/src/models/GetMiscDistrict200ResponseResultsInner.ts +169 -0
- package/internal/src/models/GetMiscDistrict200ResponseResultsInnerCenter.ts +73 -0
- package/internal/src/models/GetMiscDistrict400Response.ts +73 -0
- package/internal/src/models/GetMiscHolidayCalendar200Response.ts +89 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseData.ts +141 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataDaysInner.ts +233 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataHolidaysInner.ts +103 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearby.ts +88 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearbyNextInner.ts +81 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataNearbyPreviousInner.ts +81 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataQuery.ts +113 -0
- package/internal/src/models/GetMiscHolidayCalendar200ResponseDataSummary.ts +113 -0
- package/internal/src/models/GetMiscHolidayCalendar400Response.ts +73 -0
- package/internal/src/models/GetMiscHotboard200Response.ts +47 -0
- package/internal/src/models/GetMiscHotboard200ResponseListInner.ts +8 -0
- package/internal/src/models/GetMiscHotboard200ResponseResultsInner.ts +81 -0
- package/internal/src/models/GetMiscLunartime200Response.ts +89 -0
- package/internal/src/models/GetMiscLunartime200ResponseData.ts +233 -0
- package/internal/src/models/GetMiscLunartime400Response.ts +73 -0
- package/internal/src/models/GetMiscWeather200Response.ts +198 -26
- package/internal/src/models/GetMiscWeather200ResponseAirPollutants.ts +105 -0
- package/internal/src/models/GetMiscWeather200ResponseForecastInner.ts +193 -0
- package/internal/src/models/GetMiscWeather200ResponseHourlyForecastInner.ts +177 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndices.ts +328 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirConditioner.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAirPurifier.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesAllergy.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesBeer.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesCarWash.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesClothing.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesColdRisk.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesComfort.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesDrying.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesExercise.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesFishing.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesMood.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesPollen.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesSunscreen.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesTraffic.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesTravel.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesUmbrella.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseLifeIndicesUv.ts +81 -0
- package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecip.ts +89 -0
- package/internal/src/models/GetMiscWeather200ResponseMinutelyPrecipDataInner.ts +81 -0
- package/internal/src/models/GetMiscWeather400Response.ts +0 -8
- package/internal/src/models/GetMiscWeather404Response.ts +73 -0
- package/internal/src/models/GetMiscWeather500Response.ts +0 -8
- package/internal/src/models/GetMiscWeather503Response.ts +73 -0
- package/internal/src/models/GetNetworkDns200Response.ts +0 -8
- package/internal/src/models/GetNetworkIpinfo200Response.ts +28 -92
- package/internal/src/models/GetNetworkMyip200Response.ts +137 -0
- package/internal/src/models/GetNetworkPing200Response.ts +0 -8
- package/internal/src/models/GetNetworkPingmyip200Response.ts +0 -8
- package/internal/src/models/GetNetworkPortscan200Response.ts +0 -8
- package/internal/src/models/GetNetworkUrlstatus200Response.ts +38 -43
- package/internal/src/models/GetNetworkUrlstatus200ResponseOneOf.ts +73 -0
- package/internal/src/models/GetNetworkUrlstatus200ResponseOneOf1.ts +73 -0
- package/internal/src/models/GetNetworkWhois200ResponseOneOf.ts +0 -8
- package/internal/src/models/GetNetworkWhois200ResponseOneOf1.ts +0 -8
- package/internal/src/models/GetRandomString200Response.ts +0 -8
- package/internal/src/models/GetSocialQqGroupinfo200Response.ts +88 -0
- package/internal/src/models/GetSocialQqGroupinfo404Response.ts +3 -19
- package/internal/src/models/GetStatusUsage200Response.ts +32 -32
- package/internal/src/models/GetStatusUsage200ResponseAnyOf.ts +88 -0
- package/internal/src/models/GetStatusUsage200ResponseAnyOf1.ts +73 -0
- package/internal/src/models/GetStatusUsage200ResponseAnyOfEndpointsInner.ts +73 -0
- package/internal/src/models/GetStatusUsage200ResponseAnyOfUnaggregated.ts +73 -0
- package/internal/src/models/GetStatusUsage404Response.ts +0 -8
- package/internal/src/models/PostAiTranslate200Response.ts +0 -8
- package/internal/src/models/PostAnswerbookAsk200Response.ts +0 -8
- package/internal/src/models/PostConvertJson200Response.ts +0 -8
- package/internal/src/models/PostImageFrombase64200Response.ts +0 -8
- package/internal/src/models/PostImageNsfw200Response.ts +121 -0
- package/internal/src/models/PostImageNsfw400Response.ts +73 -0
- package/internal/src/models/PostImageNsfw413Response.ts +73 -0
- package/internal/src/models/PostImageNsfw500Response.ts +73 -0
- package/internal/src/models/PostMiscDateDiff200Response.ts +105 -0
- package/internal/src/models/PostMiscDateDiff400Response.ts +81 -0
- package/internal/src/models/PostMiscDateDiffRequest.ts +83 -0
- package/internal/src/models/PostSearchAggregate200Response.ts +1 -1
- package/internal/src/models/PostSearchAggregateRequest.ts +38 -0
- package/internal/src/models/PostSensitiveWordAnalyze200ResponseResultsInner.ts +34 -27
- package/internal/src/models/PostTextAesDecryptAdvanced200Response.ts +65 -0
- package/internal/src/models/PostTextAesDecryptAdvanced400Response.ts +65 -0
- package/internal/src/models/PostTextAesDecryptAdvancedRequest.ts +125 -0
- package/internal/src/models/PostTextAesDecryptRequest.ts +1 -1
- package/internal/src/models/PostTextAesEncryptAdvanced200Response.ts +89 -0
- package/internal/src/models/PostTextAesEncryptAdvanced400Response.ts +65 -0
- package/internal/src/models/PostTextAesEncryptAdvancedRequest.ts +141 -0
- package/internal/src/models/PostTextConvert200Response.ts +97 -0
- package/internal/src/models/PostTextConvert400Response.ts +81 -0
- package/internal/src/models/PostTextConvertRequest.ts +130 -0
- package/internal/src/models/index.ts +71 -8
- package/package.json +15 -11
- package/src/index.ts +806 -751
|
@@ -6,11 +6,11 @@ All URIs are relative to *https://uapis.cn/api/v1*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**getNetworkDns**](NetworkApi.md#getnetworkdns) | **GET** /network/dns | 执行DNS解析查询 |
|
|
8
8
|
| [**getNetworkIcp**](NetworkApi.md#getnetworkicp) | **GET** /network/icp | 查询域名ICP备案信息 |
|
|
9
|
-
| [**getNetworkIpinfo**](NetworkApi.md#getnetworkipinfo) | **GET** /network/ipinfo |
|
|
10
|
-
| [**getNetworkMyip**](NetworkApi.md#getnetworkmyip) | **GET** /network/myip |
|
|
11
|
-
| [**getNetworkPing**](NetworkApi.md#getnetworkping) | **GET** /network/ping |
|
|
12
|
-
| [**getNetworkPingmyip**](NetworkApi.md#getnetworkpingmyip) | **GET** /network/pingmyip |
|
|
13
|
-
| [**getNetworkPortscan**](NetworkApi.md#getnetworkportscan) | **GET** /network/portscan |
|
|
9
|
+
| [**getNetworkIpinfo**](NetworkApi.md#getnetworkipinfo) | **GET** /network/ipinfo | 查询 IP |
|
|
10
|
+
| [**getNetworkMyip**](NetworkApi.md#getnetworkmyip) | **GET** /network/myip | 查询我的 IP |
|
|
11
|
+
| [**getNetworkPing**](NetworkApi.md#getnetworkping) | **GET** /network/ping | Ping 主机 |
|
|
12
|
+
| [**getNetworkPingmyip**](NetworkApi.md#getnetworkpingmyip) | **GET** /network/pingmyip | Ping 我的 IP |
|
|
13
|
+
| [**getNetworkPortscan**](NetworkApi.md#getnetworkportscan) | **GET** /network/portscan | 端口扫描 |
|
|
14
14
|
| [**getNetworkUrlstatus**](NetworkApi.md#getnetworkurlstatus) | **GET** /network/urlstatus | 检查URL的可访问性状态 |
|
|
15
15
|
| [**getNetworkWhois**](NetworkApi.md#getnetworkwhois) | **GET** /network/whois | 查询域名的WHOIS注册信息 |
|
|
16
16
|
| [**getNetworkWxdomain**](NetworkApi.md#getnetworkwxdomain) | **GET** /network/wxdomain | 检查域名在微信中的访问状态 |
|
|
@@ -162,9 +162,9 @@ No authorization required
|
|
|
162
162
|
|
|
163
163
|
> GetNetworkIpinfo200Response getNetworkIpinfo(ip, source)
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
查询 IP
|
|
166
166
|
|
|
167
|
-
想知道一个IP
|
|
167
|
+
想知道一个IP地址或域名来自地球的哪个角落?这个接口可以帮你定位它。你可以使用默认数据源,也可以指定 `source=commercial` 参数来查询更详细的商业级IP归属信息。 ## 功能概述 提供一个公网IPv4、IPv6地址或域名,我们会查询并返回它的地理位置(国家、省份、城市)、经纬度、以及所属的运营商(ISP)和自治系统(ASN)信息。这在网络安全分析、访问来源统计等领域非常有用。 当使用 `source=commercial` 参数时,接口将调用高性能商业API,提供更精确的市、区、运营商、时区、海拔等信息。请注意,商业查询的响应时间可能会稍长。
|
|
168
168
|
|
|
169
169
|
### Example
|
|
170
170
|
|
|
@@ -223,21 +223,21 @@ No authorization required
|
|
|
223
223
|
### HTTP response details
|
|
224
224
|
| Status code | Description | Response headers |
|
|
225
225
|
|-------------|-------------|------------------|
|
|
226
|
-
| **200** | 查询成功!返回该IP地址的详细地理和网络信息。
|
|
226
|
+
| **200** | 查询成功!返回该IP地址的详细地理和网络信息。 | - |
|
|
227
227
|
| **400** | IP地址参数无效。请检查 `ip` 参数是否提供,以及它是否是一个合法的公网IP地址。 | - |
|
|
228
228
|
| **404** | 信息未找到。这通常意味着你查询的是一个内网IP地址(如 192.168.x.x)或一个未分配的公网IP地址,我们的数据库中没有它的信息。 | - |
|
|
229
|
-
| **500** |
|
|
229
|
+
| **500** | 服务器内部错误。IP查询服务可能遇到了问题。 | - |
|
|
230
230
|
|
|
231
231
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
## getNetworkMyip
|
|
235
235
|
|
|
236
|
-
>
|
|
236
|
+
> GetNetworkMyip200Response getNetworkMyip(source)
|
|
237
237
|
|
|
238
|
-
|
|
238
|
+
查询我的 IP
|
|
239
239
|
|
|
240
|
-
想知道你自己的出口公网IP
|
|
240
|
+
想知道你自己的出口公网IP是多少吗?这个接口就是你的“网络身份证”。你可以使用默认数据源,也可以指定 `source=commercial` 参数来查询更详细的商业级IP归属信息。 ## 功能概述 调用此接口,它会返回你(即发起请求的客户端)的公网IP地址,并附带与 `/network/ipinfo` 接口相同的地理位置和网络归属信息。非常适合用于在网页上向用户展示他们自己的IP和地理位置。 当使用 `source=commercial` 参数时,接口将调用高性能商业API,提供更精确的市、区、运营商、时区、海拔等信息。请注意,商业查询的响应时间可能会稍长。
|
|
241
241
|
|
|
242
242
|
### Example
|
|
243
243
|
|
|
@@ -278,7 +278,7 @@ example().catch(console.error);
|
|
|
278
278
|
|
|
279
279
|
### Return type
|
|
280
280
|
|
|
281
|
-
[**
|
|
281
|
+
[**GetNetworkMyip200Response**](GetNetworkMyip200Response.md)
|
|
282
282
|
|
|
283
283
|
### Authorization
|
|
284
284
|
|
|
@@ -293,7 +293,7 @@ No authorization required
|
|
|
293
293
|
### HTTP response details
|
|
294
294
|
| Status code | Description | Response headers |
|
|
295
295
|
|-------------|-------------|------------------|
|
|
296
|
-
| **200** | 查询成功!返回你的客户端IP的详细信息。
|
|
296
|
+
| **200** | 查询成功!返回你的客户端IP的详细信息。 | - |
|
|
297
297
|
| **400** | 无法获取有效的客户端IP。这在一些特殊的网络环境下可能发生,例如通过了复杂的代理。 | - |
|
|
298
298
|
| **500** | 服务器内部错误。在查询IP归属地信息时发生错误。 | - |
|
|
299
299
|
|
|
@@ -304,7 +304,7 @@ No authorization required
|
|
|
304
304
|
|
|
305
305
|
> GetNetworkPing200Response getNetworkPing(host)
|
|
306
306
|
|
|
307
|
-
|
|
307
|
+
Ping 主机
|
|
308
308
|
|
|
309
309
|
想知道从我们的服务器到你的服务器网络延迟高不高?这个工具可以帮你测试网络连通性。 ## 功能概述 这个接口会从我们的服务器节点对你指定的主机(域名或IP地址)执行 ICMP Ping 操作。它会返回最小、最大、平均延迟以及丢包率等关键指标,是诊断网络问题的得力助手。
|
|
310
310
|
|
|
@@ -373,7 +373,7 @@ No authorization required
|
|
|
373
373
|
|
|
374
374
|
> GetNetworkPingmyip200Response getNetworkPingmyip()
|
|
375
375
|
|
|
376
|
-
|
|
376
|
+
Ping 我的 IP
|
|
377
377
|
|
|
378
378
|
这是一个非常方便的快捷接口,想知道你的网络到我们服务器的回程延迟吗?点一下就行! ## 功能概述 这个接口是 `/network/myip` 和 `/network/ping` 的结合体。它会自动获取你客户端的公网IP,然后从我们的服务器Ping这个IP,并返回延迟数据。这对于快速判断你本地网络到服务器的连接质量非常有用。
|
|
379
379
|
|
|
@@ -434,7 +434,7 @@ No authorization required
|
|
|
434
434
|
|
|
435
435
|
> GetNetworkPortscan200Response getNetworkPortscan(host, port, protocol)
|
|
436
436
|
|
|
437
|
-
|
|
437
|
+
端口扫描
|
|
438
438
|
|
|
439
439
|
想检查一下你的服务器上某个端口(比如SSH的22端口或者Web的80端口)是否对外开放?这个工具可以帮你快速确认。 ## 功能概述 你可以指定一个主机和端口号,我们的服务器会尝试连接该端口,并告诉你它是开放的(open)、关闭的(closed)还是超时了(timeout)。这对于网络服务配置检查和基本的安全扫描很有用。
|
|
440
440
|
|
|
@@ -511,7 +511,7 @@ No authorization required
|
|
|
511
511
|
|
|
512
512
|
检查URL的可访问性状态
|
|
513
513
|
|
|
514
|
-
你的网站或API还好吗?用这个接口给它做个快速“体检”吧。 ## 功能概述 提供一个URL,我们会向它发起一个请求,并返回其HTTP响应状态码。这是一种简单而有效的服务可用性监控方法。
|
|
514
|
+
你的网站或API还好吗?用这个接口给它做个快速“体检”吧。 ## 功能概述 提供一个URL,我们会向它发起一个请求,并返回其HTTP响应状态码。这是一种简单而有效的服务可用性监控方法。
|
|
515
515
|
|
|
516
516
|
### Example
|
|
517
517
|
|
|
@@ -567,7 +567,7 @@ No authorization required
|
|
|
567
567
|
### HTTP response details
|
|
568
568
|
| Status code | Description | Response headers |
|
|
569
569
|
|-------------|-------------|------------------|
|
|
570
|
-
| **200** |
|
|
570
|
+
| **200** | 检查完成!根据目标URL的可达性返回不同结果。 | - |
|
|
571
571
|
| **400** | 请求参数无效。请检查 `url` 参数是否提供且格式正确。 | - |
|
|
572
572
|
| **502** | 请求URL失败(例如,DNS解析失败、连接超时) | - |
|
|
573
573
|
|
package/internal/docs/PoemApi.md
CHANGED
|
@@ -4,7 +4,7 @@ All URIs are relative to *https://uapis.cn/api/v1*
|
|
|
4
4
|
|
|
5
5
|
| Method | HTTP request | Description |
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
|
-
| [**getSaying**](PoemApi.md#getsaying) | **GET** /saying |
|
|
7
|
+
| [**getSaying**](PoemApi.md#getsaying) | **GET** /saying | 一言 |
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ All URIs are relative to *https://uapis.cn/api/v1*
|
|
|
12
12
|
|
|
13
13
|
> GetSaying200Response getSaying()
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
一言
|
|
16
16
|
|
|
17
17
|
想在你的应用里每天展示一句不一样的话,给用户一点小小的惊喜吗?这个“一言”接口就是为此而生。 ## 功能概述 每次调用,它都会从我们精心收集的、包含数千条诗词、动漫台词、名人名言的语料库中,随机返回一条。你可以用它来做网站首页的Slogan、应用的启动语,或者任何需要灵感点缀的地方。
|
|
18
18
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`code` | number
|
|
10
9
|
`message` | string
|
|
11
10
|
`isBatch` | boolean
|
|
12
11
|
`data` | [PostAiTranslate200ResponseData](PostAiTranslate200ResponseData.md)
|
|
@@ -22,7 +21,6 @@ import type { PostAiTranslate200Response } from 'uapi-browser-sdk-browser'
|
|
|
22
21
|
|
|
23
22
|
// TODO: Update the object below with actual values
|
|
24
23
|
const example = {
|
|
25
|
-
"code": 200,
|
|
26
24
|
"message": Translation completed successfully,
|
|
27
25
|
"isBatch": false,
|
|
28
26
|
"data": null,
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`code` | number
|
|
10
9
|
`question` | string
|
|
11
10
|
`answer` | string
|
|
12
11
|
|
|
@@ -17,7 +16,6 @@ import type { PostAnswerbookAsk200Response } from 'uapi-browser-sdk-browser'
|
|
|
17
16
|
|
|
18
17
|
// TODO: Update the object below with actual values
|
|
19
18
|
const example = {
|
|
20
|
-
"code": 200,
|
|
21
19
|
"question": 我应该接受这份工作吗?,
|
|
22
20
|
"answer": 专注当下,
|
|
23
21
|
} satisfies PostAnswerbookAsk200Response
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`code` | number
|
|
10
9
|
`content` | string
|
|
11
10
|
|
|
12
11
|
## Example
|
|
@@ -16,7 +15,6 @@ import type { PostConvertJson200Response } from 'uapi-browser-sdk-browser'
|
|
|
16
15
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
|
-
"code": 200,
|
|
20
18
|
"content": {
|
|
21
19
|
"name": "John Doe",
|
|
22
20
|
"age": 30,
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`code` | number
|
|
10
9
|
`imageUrl` | string
|
|
11
10
|
`msg` | string
|
|
12
11
|
|
|
@@ -17,7 +16,6 @@ import type { PostImageFrombase64200Response } from 'uapi-browser-sdk-browser'
|
|
|
17
16
|
|
|
18
17
|
// TODO: Update the object below with actual values
|
|
19
18
|
const example = {
|
|
20
|
-
"code": 200,
|
|
21
19
|
"imageUrl": https://uapis.cn/static/uploads/91e42db1c66c0b276abf6234dc50b2eb.png,
|
|
22
20
|
"msg": success,
|
|
23
21
|
} satisfies PostImageFrombase64200Response
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
|
|
2
|
+
# PostImageNsfw200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`nsfwScore` | number
|
|
10
|
+
`normalScore` | number
|
|
11
|
+
`isNsfw` | boolean
|
|
12
|
+
`label` | string
|
|
13
|
+
`suggestion` | string
|
|
14
|
+
`riskLevel` | string
|
|
15
|
+
`confidence` | number
|
|
16
|
+
`inferenceTimeMs` | number
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import type { PostImageNsfw200Response } from 'uapi-browser-sdk-browser'
|
|
22
|
+
|
|
23
|
+
// TODO: Update the object below with actual values
|
|
24
|
+
const example = {
|
|
25
|
+
"nsfwScore": 0.05,
|
|
26
|
+
"normalScore": 0.95,
|
|
27
|
+
"isNsfw": false,
|
|
28
|
+
"label": normal,
|
|
29
|
+
"suggestion": pass,
|
|
30
|
+
"riskLevel": low,
|
|
31
|
+
"confidence": 0.95,
|
|
32
|
+
"inferenceTimeMs": 156,
|
|
33
|
+
} satisfies PostImageNsfw200Response
|
|
34
|
+
|
|
35
|
+
console.log(example)
|
|
36
|
+
|
|
37
|
+
// Convert the instance to a JSON string
|
|
38
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
39
|
+
console.log(exampleJSON)
|
|
40
|
+
|
|
41
|
+
// Parse the JSON string back to an object
|
|
42
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostImageNsfw200Response
|
|
43
|
+
console.log(exampleParsed)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
47
|
+
|
|
48
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PostImageNsfw400Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`code` | string
|
|
10
|
+
`message` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PostImageNsfw400Response } from 'uapi-browser-sdk-browser'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"code": INVALID_ARGUMENT,
|
|
20
|
+
"message": 必须提供图片文件或图片URL,
|
|
21
|
+
} satisfies PostImageNsfw400Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostImageNsfw400Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PostImageNsfw413Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`code` | string
|
|
10
|
+
`message` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PostImageNsfw413Response } from 'uapi-browser-sdk-browser'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"code": FILE_TOO_LARGE,
|
|
20
|
+
"message": 文件大小超过限制(最大20MB),
|
|
21
|
+
} satisfies PostImageNsfw413Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostImageNsfw413Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PostImageNsfw500Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`code` | string
|
|
10
|
+
`message` | string
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PostImageNsfw500Response } from 'uapi-browser-sdk-browser'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"code": INTERNAL_SERVER_ERROR,
|
|
20
|
+
"message": NSFW检测服务暂时不可用,
|
|
21
|
+
} satisfies PostImageNsfw500Response
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostImageNsfw500Response
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
# PostMiscDateDiff200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`days` | number
|
|
10
|
+
`hours` | number
|
|
11
|
+
`minutes` | number
|
|
12
|
+
`seconds` | number
|
|
13
|
+
`weeks` | number
|
|
14
|
+
`humanReadable` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { PostMiscDateDiff200Response } from 'uapi-browser-sdk-browser'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"days": 364,
|
|
24
|
+
"hours": 8736,
|
|
25
|
+
"minutes": 524160,
|
|
26
|
+
"seconds": 31449600,
|
|
27
|
+
"weeks": 52,
|
|
28
|
+
"humanReadable": 52周 0天,
|
|
29
|
+
} satisfies PostMiscDateDiff200Response
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostMiscDateDiff200Response
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# PostMiscDateDiff400Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`errorCode` | string
|
|
10
|
+
`errorMessage` | string
|
|
11
|
+
`errorDetails` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { PostMiscDateDiff400Response } from 'uapi-browser-sdk-browser'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"errorCode": DATE_PARSE_ERROR,
|
|
21
|
+
"errorMessage": 解析开始日期失败: 无法识别日期格式: invalid-date,
|
|
22
|
+
"errorDetails": ,
|
|
23
|
+
} satisfies PostMiscDateDiff400Response
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostMiscDateDiff400Response
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
|
|
2
|
+
# PostMiscDateDiffRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`startDate` | string
|
|
10
|
+
`endDate` | string
|
|
11
|
+
`format` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { PostMiscDateDiffRequest } from 'uapi-browser-sdk-browser'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"startDate": 2025-01-01,
|
|
21
|
+
"endDate": 2025-12-31,
|
|
22
|
+
"format": YYYY-MM-DD,
|
|
23
|
+
} satisfies PostMiscDateDiffRequest
|
|
24
|
+
|
|
25
|
+
console.log(example)
|
|
26
|
+
|
|
27
|
+
// Convert the instance to a JSON string
|
|
28
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
29
|
+
console.log(exampleJSON)
|
|
30
|
+
|
|
31
|
+
// Parse the JSON string back to an object
|
|
32
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostMiscDateDiffRequest
|
|
33
|
+
console.log(exampleParsed)
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
37
|
+
|
|
38
|
+
|
|
@@ -11,6 +11,8 @@ Name | Type
|
|
|
11
11
|
`filetype` | string
|
|
12
12
|
`fetchFull` | boolean
|
|
13
13
|
`timeoutMs` | number
|
|
14
|
+
`sort` | string
|
|
15
|
+
`timeRange` | string
|
|
14
16
|
|
|
15
17
|
## Example
|
|
16
18
|
|
|
@@ -24,6 +26,8 @@ const example = {
|
|
|
24
26
|
"filetype": null,
|
|
25
27
|
"fetchFull": null,
|
|
26
28
|
"timeoutMs": null,
|
|
29
|
+
"sort": null,
|
|
30
|
+
"timeRange": null,
|
|
27
31
|
} satisfies PostSearchAggregateRequest
|
|
28
32
|
|
|
29
33
|
console.log(example)
|
|
@@ -7,11 +7,9 @@
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
9
|
`k` | string
|
|
10
|
-
`
|
|
11
|
-
`
|
|
12
|
-
`
|
|
13
|
-
`t` | Array<string>
|
|
14
|
-
`d` | string
|
|
10
|
+
`label` | string
|
|
11
|
+
`category` | string
|
|
12
|
+
`confidence` | number
|
|
15
13
|
|
|
16
14
|
## Example
|
|
17
15
|
|
|
@@ -21,11 +19,9 @@ import type { PostSensitiveWordAnalyze200ResponseResultsInner } from 'uapi-brows
|
|
|
21
19
|
// TODO: Update the object below with actual values
|
|
22
20
|
const example = {
|
|
23
21
|
"k": null,
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"t": null,
|
|
28
|
-
"d": null,
|
|
22
|
+
"label": null,
|
|
23
|
+
"category": null,
|
|
24
|
+
"confidence": null,
|
|
29
25
|
} satisfies PostSensitiveWordAnalyze200ResponseResultsInner
|
|
30
26
|
|
|
31
27
|
console.log(example)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PostTextAesDecryptAdvanced200Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`plaintext` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PostTextAesDecryptAdvanced200Response } from 'uapi-browser-sdk-browser'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"plaintext": Hello, World! 你好世界!,
|
|
19
|
+
} satisfies PostTextAesDecryptAdvanced200Response
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostTextAesDecryptAdvanced200Response
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PostTextAesDecryptAdvanced400Response
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`error` | string
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PostTextAesDecryptAdvanced400Response } from 'uapi-browser-sdk-browser'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"error": 填充验证失败:密钥、模式或填充方式可能不正确,
|
|
19
|
+
} satisfies PostTextAesDecryptAdvanced400Response
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostTextAesDecryptAdvanced400Response
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PostTextAesDecryptAdvancedRequest
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`text` | string
|
|
10
|
+
`key` | string
|
|
11
|
+
`mode` | string
|
|
12
|
+
`padding` | string
|
|
13
|
+
`iv` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostTextAesDecryptAdvancedRequest } from 'uapi-browser-sdk-browser'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"text": 68vWkaxJPg1vx0LWJONpEfYdvW3Wz7V5uXiYg0WWfGJHIZWBmVVghHg=,
|
|
23
|
+
"key": my-super-secret-key,
|
|
24
|
+
"mode": GCM,
|
|
25
|
+
"padding": NONE,
|
|
26
|
+
"iv": cmFuZG9tSVZoZXJl,
|
|
27
|
+
} satisfies PostTextAesDecryptAdvancedRequest
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostTextAesDecryptAdvancedRequest
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|