uapi-browser-sdk 0.1.3 → 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/dist/index.d.ts +8 -0
- package/dist/index.js +400 -78
- package/internal/.openapi-generator/FILES +142 -16
- 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 +5 -3
- package/src/index.ts +302 -78
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* 查询指定path参数时返回的单个端点统计数据
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetStatusUsage200ResponseAnyOf1
|
|
20
|
+
*/
|
|
21
|
+
export interface GetStatusUsage200ResponseAnyOf1 {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetStatusUsage200ResponseAnyOf1
|
|
26
|
+
*/
|
|
27
|
+
path?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetStatusUsage200ResponseAnyOf1
|
|
32
|
+
*/
|
|
33
|
+
count?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetStatusUsage200ResponseAnyOf1 interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGetStatusUsage200ResponseAnyOf1(value: object): value is GetStatusUsage200ResponseAnyOf1 {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GetStatusUsage200ResponseAnyOf1FromJSON(json: any): GetStatusUsage200ResponseAnyOf1 {
|
|
44
|
+
return GetStatusUsage200ResponseAnyOf1FromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GetStatusUsage200ResponseAnyOf1FromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStatusUsage200ResponseAnyOf1 {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
54
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetStatusUsage200ResponseAnyOf1ToJSON(json: any): GetStatusUsage200ResponseAnyOf1 {
|
|
59
|
+
return GetStatusUsage200ResponseAnyOf1ToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetStatusUsage200ResponseAnyOf1ToJSONTyped(value?: GetStatusUsage200ResponseAnyOf1 | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'path': value['path'],
|
|
70
|
+
'count': value['count'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetStatusUsage200ResponseAnyOfEndpointsInner
|
|
20
|
+
*/
|
|
21
|
+
export interface GetStatusUsage200ResponseAnyOfEndpointsInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetStatusUsage200ResponseAnyOfEndpointsInner
|
|
26
|
+
*/
|
|
27
|
+
path?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof GetStatusUsage200ResponseAnyOfEndpointsInner
|
|
32
|
+
*/
|
|
33
|
+
count?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetStatusUsage200ResponseAnyOfEndpointsInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGetStatusUsage200ResponseAnyOfEndpointsInner(value: object): value is GetStatusUsage200ResponseAnyOfEndpointsInner {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GetStatusUsage200ResponseAnyOfEndpointsInnerFromJSON(json: any): GetStatusUsage200ResponseAnyOfEndpointsInner {
|
|
44
|
+
return GetStatusUsage200ResponseAnyOfEndpointsInnerFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GetStatusUsage200ResponseAnyOfEndpointsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStatusUsage200ResponseAnyOfEndpointsInner {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
54
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetStatusUsage200ResponseAnyOfEndpointsInnerToJSON(json: any): GetStatusUsage200ResponseAnyOfEndpointsInner {
|
|
59
|
+
return GetStatusUsage200ResponseAnyOfEndpointsInnerToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetStatusUsage200ResponseAnyOfEndpointsInnerToJSONTyped(value?: GetStatusUsage200ResponseAnyOfEndpointsInner | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'path': value['path'],
|
|
70
|
+
'count': value['count'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetStatusUsage200ResponseAnyOfUnaggregated
|
|
20
|
+
*/
|
|
21
|
+
export interface GetStatusUsage200ResponseAnyOfUnaggregated {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof GetStatusUsage200ResponseAnyOfUnaggregated
|
|
26
|
+
*/
|
|
27
|
+
count?: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof GetStatusUsage200ResponseAnyOfUnaggregated
|
|
32
|
+
*/
|
|
33
|
+
oldestLog?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the GetStatusUsage200ResponseAnyOfUnaggregated interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfGetStatusUsage200ResponseAnyOfUnaggregated(value: object): value is GetStatusUsage200ResponseAnyOfUnaggregated {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function GetStatusUsage200ResponseAnyOfUnaggregatedFromJSON(json: any): GetStatusUsage200ResponseAnyOfUnaggregated {
|
|
44
|
+
return GetStatusUsage200ResponseAnyOfUnaggregatedFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function GetStatusUsage200ResponseAnyOfUnaggregatedFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetStatusUsage200ResponseAnyOfUnaggregated {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
54
|
+
'oldestLog': json['oldest_log'] == null ? undefined : json['oldest_log'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function GetStatusUsage200ResponseAnyOfUnaggregatedToJSON(json: any): GetStatusUsage200ResponseAnyOfUnaggregated {
|
|
59
|
+
return GetStatusUsage200ResponseAnyOfUnaggregatedToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function GetStatusUsage200ResponseAnyOfUnaggregatedToJSONTyped(value?: GetStatusUsage200ResponseAnyOfUnaggregated | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'count': value['count'],
|
|
70
|
+
'oldest_log': value['oldestLog'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -25,12 +25,6 @@ export interface GetStatusUsage404Response {
|
|
|
25
25
|
* @memberof GetStatusUsage404Response
|
|
26
26
|
*/
|
|
27
27
|
code?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {object}
|
|
31
|
-
* @memberof GetStatusUsage404Response
|
|
32
|
-
*/
|
|
33
|
-
details?: object;
|
|
34
28
|
/**
|
|
35
29
|
*
|
|
36
30
|
* @type {string}
|
|
@@ -57,7 +51,6 @@ export function GetStatusUsage404ResponseFromJSONTyped(json: any, ignoreDiscrimi
|
|
|
57
51
|
return {
|
|
58
52
|
|
|
59
53
|
'code': json['code'] == null ? undefined : json['code'],
|
|
60
|
-
'details': json['details'] == null ? undefined : json['details'],
|
|
61
54
|
'message': json['message'] == null ? undefined : json['message'],
|
|
62
55
|
};
|
|
63
56
|
}
|
|
@@ -74,7 +67,6 @@ export function GetStatusUsage404ResponseToJSONTyped(value?: GetStatusUsage404Re
|
|
|
74
67
|
return {
|
|
75
68
|
|
|
76
69
|
'code': value['code'],
|
|
77
|
-
'details': value['details'],
|
|
78
70
|
'message': value['message'],
|
|
79
71
|
};
|
|
80
72
|
}
|
|
@@ -55,12 +55,6 @@ import {
|
|
|
55
55
|
* @interface PostAiTranslate200Response
|
|
56
56
|
*/
|
|
57
57
|
export interface PostAiTranslate200Response {
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof PostAiTranslate200Response
|
|
62
|
-
*/
|
|
63
|
-
code?: number;
|
|
64
58
|
/**
|
|
65
59
|
*
|
|
66
60
|
* @type {string}
|
|
@@ -122,7 +116,6 @@ export function PostAiTranslate200ResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
122
116
|
}
|
|
123
117
|
return {
|
|
124
118
|
|
|
125
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
126
119
|
'message': json['message'] == null ? undefined : json['message'],
|
|
127
120
|
'isBatch': json['is_batch'] == null ? undefined : json['is_batch'],
|
|
128
121
|
'data': json['data'] == null ? undefined : PostAiTranslate200ResponseDataFromJSON(json['data']),
|
|
@@ -144,7 +137,6 @@ export function PostAiTranslate200ResponseToJSONTyped(value?: PostAiTranslate200
|
|
|
144
137
|
|
|
145
138
|
return {
|
|
146
139
|
|
|
147
|
-
'code': value['code'],
|
|
148
140
|
'message': value['message'],
|
|
149
141
|
'is_batch': value['isBatch'],
|
|
150
142
|
'data': PostAiTranslate200ResponseDataToJSON(value['data']),
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PostAnswerbookAsk200Response
|
|
20
20
|
*/
|
|
21
21
|
export interface PostAnswerbookAsk200Response {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof PostAnswerbookAsk200Response
|
|
26
|
-
*/
|
|
27
|
-
code?: number;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -56,7 +50,6 @@ export function PostAnswerbookAsk200ResponseFromJSONTyped(json: any, ignoreDiscr
|
|
|
56
50
|
}
|
|
57
51
|
return {
|
|
58
52
|
|
|
59
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
60
53
|
'question': json['question'] == null ? undefined : json['question'],
|
|
61
54
|
'answer': json['answer'] == null ? undefined : json['answer'],
|
|
62
55
|
};
|
|
@@ -73,7 +66,6 @@ export function PostAnswerbookAsk200ResponseToJSONTyped(value?: PostAnswerbookAs
|
|
|
73
66
|
|
|
74
67
|
return {
|
|
75
68
|
|
|
76
|
-
'code': value['code'],
|
|
77
69
|
'question': value['question'],
|
|
78
70
|
'answer': value['answer'],
|
|
79
71
|
};
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PostConvertJson200Response
|
|
20
20
|
*/
|
|
21
21
|
export interface PostConvertJson200Response {
|
|
22
|
-
/**
|
|
23
|
-
* 状态码,200代表操作成功。
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof PostConvertJson200Response
|
|
26
|
-
*/
|
|
27
|
-
code?: number;
|
|
28
22
|
/**
|
|
29
23
|
* 格式化后的JSON字符串,带有标准缩进和换行。
|
|
30
24
|
* @type {string}
|
|
@@ -50,7 +44,6 @@ export function PostConvertJson200ResponseFromJSONTyped(json: any, ignoreDiscrim
|
|
|
50
44
|
}
|
|
51
45
|
return {
|
|
52
46
|
|
|
53
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
54
47
|
'content': json['content'] == null ? undefined : json['content'],
|
|
55
48
|
};
|
|
56
49
|
}
|
|
@@ -66,7 +59,6 @@ export function PostConvertJson200ResponseToJSONTyped(value?: PostConvertJson200
|
|
|
66
59
|
|
|
67
60
|
return {
|
|
68
61
|
|
|
69
|
-
'code': value['code'],
|
|
70
62
|
'content': value['content'],
|
|
71
63
|
};
|
|
72
64
|
}
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface PostImageFrombase64200Response
|
|
20
20
|
*/
|
|
21
21
|
export interface PostImageFrombase64200Response {
|
|
22
|
-
/**
|
|
23
|
-
* 状态码,200代表成功。
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof PostImageFrombase64200Response
|
|
26
|
-
*/
|
|
27
|
-
code?: number;
|
|
28
22
|
/**
|
|
29
23
|
* 图片保存后在服务器上的绝对访问URL。
|
|
30
24
|
* @type {string}
|
|
@@ -56,7 +50,6 @@ export function PostImageFrombase64200ResponseFromJSONTyped(json: any, ignoreDis
|
|
|
56
50
|
}
|
|
57
51
|
return {
|
|
58
52
|
|
|
59
|
-
'code': json['code'] == null ? undefined : json['code'],
|
|
60
53
|
'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
|
|
61
54
|
'msg': json['msg'] == null ? undefined : json['msg'],
|
|
62
55
|
};
|
|
@@ -73,7 +66,6 @@ export function PostImageFrombase64200ResponseToJSONTyped(value?: PostImageFromb
|
|
|
73
66
|
|
|
74
67
|
return {
|
|
75
68
|
|
|
76
|
-
'code': value['code'],
|
|
77
69
|
'image_url': value['imageUrl'],
|
|
78
70
|
'msg': value['msg'],
|
|
79
71
|
};
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostImageNsfw200Response
|
|
20
|
+
*/
|
|
21
|
+
export interface PostImageNsfw200Response {
|
|
22
|
+
/**
|
|
23
|
+
* NSFW 内容的置信度分数,范围 0-1,越高表示越可能是敏感内容。
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PostImageNsfw200Response
|
|
26
|
+
*/
|
|
27
|
+
nsfwScore?: number;
|
|
28
|
+
/**
|
|
29
|
+
* 正常内容的置信度分数,范围 0-1。
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof PostImageNsfw200Response
|
|
32
|
+
*/
|
|
33
|
+
normalScore?: number;
|
|
34
|
+
/**
|
|
35
|
+
* 是否判定为 NSFW 内容。
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PostImageNsfw200Response
|
|
38
|
+
*/
|
|
39
|
+
isNsfw?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* 内容标签,'nsfw' 或 'normal'。
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof PostImageNsfw200Response
|
|
44
|
+
*/
|
|
45
|
+
label?: string;
|
|
46
|
+
/**
|
|
47
|
+
* 处理建议:'pass'(通过)、'review'(人工复核)、'block'(拦截)。
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof PostImageNsfw200Response
|
|
50
|
+
*/
|
|
51
|
+
suggestion?: string;
|
|
52
|
+
/**
|
|
53
|
+
* 风险等级:'low'、'medium'、'high'。
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof PostImageNsfw200Response
|
|
56
|
+
*/
|
|
57
|
+
riskLevel?: string;
|
|
58
|
+
/**
|
|
59
|
+
* 模型对当前判断的置信度。
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof PostImageNsfw200Response
|
|
62
|
+
*/
|
|
63
|
+
confidence?: number;
|
|
64
|
+
/**
|
|
65
|
+
* 模型推理耗时,单位毫秒。
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof PostImageNsfw200Response
|
|
68
|
+
*/
|
|
69
|
+
inferenceTimeMs?: number;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the PostImageNsfw200Response interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfPostImageNsfw200Response(value: object): value is PostImageNsfw200Response {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function PostImageNsfw200ResponseFromJSON(json: any): PostImageNsfw200Response {
|
|
80
|
+
return PostImageNsfw200ResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function PostImageNsfw200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostImageNsfw200Response {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'nsfwScore': json['nsfw_score'] == null ? undefined : json['nsfw_score'],
|
|
90
|
+
'normalScore': json['normal_score'] == null ? undefined : json['normal_score'],
|
|
91
|
+
'isNsfw': json['is_nsfw'] == null ? undefined : json['is_nsfw'],
|
|
92
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
93
|
+
'suggestion': json['suggestion'] == null ? undefined : json['suggestion'],
|
|
94
|
+
'riskLevel': json['risk_level'] == null ? undefined : json['risk_level'],
|
|
95
|
+
'confidence': json['confidence'] == null ? undefined : json['confidence'],
|
|
96
|
+
'inferenceTimeMs': json['inference_time_ms'] == null ? undefined : json['inference_time_ms'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function PostImageNsfw200ResponseToJSON(json: any): PostImageNsfw200Response {
|
|
101
|
+
return PostImageNsfw200ResponseToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function PostImageNsfw200ResponseToJSONTyped(value?: PostImageNsfw200Response | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'nsfw_score': value['nsfwScore'],
|
|
112
|
+
'normal_score': value['normalScore'],
|
|
113
|
+
'is_nsfw': value['isNsfw'],
|
|
114
|
+
'label': value['label'],
|
|
115
|
+
'suggestion': value['suggestion'],
|
|
116
|
+
'risk_level': value['riskLevel'],
|
|
117
|
+
'confidence': value['confidence'],
|
|
118
|
+
'inference_time_ms': value['inferenceTimeMs'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostImageNsfw400Response
|
|
20
|
+
*/
|
|
21
|
+
export interface PostImageNsfw400Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostImageNsfw400Response
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostImageNsfw400Response
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostImageNsfw400Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostImageNsfw400Response(value: object): value is PostImageNsfw400Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PostImageNsfw400ResponseFromJSON(json: any): PostImageNsfw400Response {
|
|
44
|
+
return PostImageNsfw400ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PostImageNsfw400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostImageNsfw400Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
54
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PostImageNsfw400ResponseToJSON(json: any): PostImageNsfw400Response {
|
|
59
|
+
return PostImageNsfw400ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PostImageNsfw400ResponseToJSONTyped(value?: PostImageNsfw400Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'code': value['code'],
|
|
70
|
+
'message': value['message'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PostImageNsfw413Response
|
|
20
|
+
*/
|
|
21
|
+
export interface PostImageNsfw413Response {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PostImageNsfw413Response
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PostImageNsfw413Response
|
|
32
|
+
*/
|
|
33
|
+
message?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the PostImageNsfw413Response interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfPostImageNsfw413Response(value: object): value is PostImageNsfw413Response {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function PostImageNsfw413ResponseFromJSON(json: any): PostImageNsfw413Response {
|
|
44
|
+
return PostImageNsfw413ResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function PostImageNsfw413ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostImageNsfw413Response {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
54
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PostImageNsfw413ResponseToJSON(json: any): PostImageNsfw413Response {
|
|
59
|
+
return PostImageNsfw413ResponseToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function PostImageNsfw413ResponseToJSONTyped(value?: PostImageNsfw413Response | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'code': value['code'],
|
|
70
|
+
'message': value['message'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|