alibabacloud-quanmiaolightapp20240801 2.8.0__tar.gz → 2.9.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/ChangeLog.md +14 -0
  2. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/PKG-INFO +1 -1
  3. alibabacloud_quanmiaolightapp20240801-2.9.0/alibabacloud_quanmiaolightapp20240801/__init__.py +1 -0
  4. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801/client.py +108 -0
  5. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801/models.py +231 -0
  6. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801.egg-info/PKG-INFO +1 -1
  7. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/setup.py +1 -1
  8. alibabacloud_quanmiaolightapp20240801-2.8.0/alibabacloud_quanmiaolightapp20240801/__init__.py +0 -1
  9. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/LICENSE +0 -0
  10. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/MANIFEST.in +0 -0
  11. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/README-CN.md +0 -0
  12. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/README.md +0 -0
  13. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801.egg-info/SOURCES.txt +0 -0
  14. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801.egg-info/dependency_links.txt +0 -0
  15. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801.egg-info/requires.txt +0 -0
  16. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/alibabacloud_quanmiaolightapp20240801.egg-info/top_level.txt +0 -0
  17. {alibabacloud_quanmiaolightapp20240801-2.8.0 → alibabacloud_quanmiaolightapp20240801-2.9.0}/setup.cfg +0 -0
@@ -1,3 +1,17 @@
1
+ 2025-05-20 Version: 2.8.1
2
+ - Update API RunVideoAnalysis: add request parameters videoCaptionInfo.videoCaptionFileUrl.
3
+ - Update API SubmitVideoAnalysisTask: add request parameters videoCaptionInfo.videoCaptionFileUrl.
4
+
5
+
6
+ 2025-05-15 Version: 2.8.0
7
+ - Support API ListAnalysisTagDetailByTaskId.
8
+ - Support API UpdateVideoAnalysisTask.
9
+ - Update API GetVideoAnalysisTask: add response parameters Body.data.payload.output.videoCaptionResult.videoCaptions.$.speaker.
10
+ - Update API RunVideoAnalysis: add request parameters videoCaptionInfo.
11
+ - Update API RunVideoAnalysis: add response parameters Body.payload.output.videoCaptionResult.videoCaptions.$.speaker.
12
+ - Update API SubmitVideoAnalysisTask: add request parameters videoCaptionInfo.
13
+
14
+
1
15
  2025-04-29 Version: 2.7.2
2
16
  - Generated python 2024-08-01 for QuanMiaoLightApp.
3
17
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud_quanmiaolightapp20240801
3
- Version: 2.8.0
3
+ Version: 2.9.0
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -927,6 +927,114 @@ class Client(OpenApiClient):
927
927
  headers = {}
928
928
  return await self.get_video_analysis_task_with_options_async(workspace_id, request, headers, runtime)
929
929
 
930
+ def hot_news_recommend_with_options(
931
+ self,
932
+ workspace_id: str,
933
+ request: quan_miao_light_app_20240801_models.HotNewsRecommendRequest,
934
+ headers: Dict[str, str],
935
+ runtime: util_models.RuntimeOptions,
936
+ ) -> quan_miao_light_app_20240801_models.HotNewsRecommendResponse:
937
+ """
938
+ @summary 热点新闻推荐
939
+
940
+ @param request: HotNewsRecommendRequest
941
+ @param headers: map
942
+ @param runtime: runtime options for this request RuntimeOptions
943
+ @return: HotNewsRecommendResponse
944
+ """
945
+ UtilClient.validate_model(request)
946
+ body = {}
947
+ if not UtilClient.is_unset(request.prompt):
948
+ body['prompt'] = request.prompt
949
+ req = open_api_models.OpenApiRequest(
950
+ headers=headers,
951
+ body=OpenApiUtilClient.parse_to_map(body)
952
+ )
953
+ params = open_api_models.Params(
954
+ action='HotNewsRecommend',
955
+ version='2024-08-01',
956
+ protocol='HTTPS',
957
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/hotNewsRecommend',
958
+ method='POST',
959
+ auth_type='AK',
960
+ style='ROA',
961
+ req_body_type='formData',
962
+ body_type='json'
963
+ )
964
+ return TeaCore.from_map(
965
+ quan_miao_light_app_20240801_models.HotNewsRecommendResponse(),
966
+ self.call_api(params, req, runtime)
967
+ )
968
+
969
+ async def hot_news_recommend_with_options_async(
970
+ self,
971
+ workspace_id: str,
972
+ request: quan_miao_light_app_20240801_models.HotNewsRecommendRequest,
973
+ headers: Dict[str, str],
974
+ runtime: util_models.RuntimeOptions,
975
+ ) -> quan_miao_light_app_20240801_models.HotNewsRecommendResponse:
976
+ """
977
+ @summary 热点新闻推荐
978
+
979
+ @param request: HotNewsRecommendRequest
980
+ @param headers: map
981
+ @param runtime: runtime options for this request RuntimeOptions
982
+ @return: HotNewsRecommendResponse
983
+ """
984
+ UtilClient.validate_model(request)
985
+ body = {}
986
+ if not UtilClient.is_unset(request.prompt):
987
+ body['prompt'] = request.prompt
988
+ req = open_api_models.OpenApiRequest(
989
+ headers=headers,
990
+ body=OpenApiUtilClient.parse_to_map(body)
991
+ )
992
+ params = open_api_models.Params(
993
+ action='HotNewsRecommend',
994
+ version='2024-08-01',
995
+ protocol='HTTPS',
996
+ pathname=f'/{OpenApiUtilClient.get_encode_param(workspace_id)}/quanmiao/lightapp/hotNewsRecommend',
997
+ method='POST',
998
+ auth_type='AK',
999
+ style='ROA',
1000
+ req_body_type='formData',
1001
+ body_type='json'
1002
+ )
1003
+ return TeaCore.from_map(
1004
+ quan_miao_light_app_20240801_models.HotNewsRecommendResponse(),
1005
+ await self.call_api_async(params, req, runtime)
1006
+ )
1007
+
1008
+ def hot_news_recommend(
1009
+ self,
1010
+ workspace_id: str,
1011
+ request: quan_miao_light_app_20240801_models.HotNewsRecommendRequest,
1012
+ ) -> quan_miao_light_app_20240801_models.HotNewsRecommendResponse:
1013
+ """
1014
+ @summary 热点新闻推荐
1015
+
1016
+ @param request: HotNewsRecommendRequest
1017
+ @return: HotNewsRecommendResponse
1018
+ """
1019
+ runtime = util_models.RuntimeOptions()
1020
+ headers = {}
1021
+ return self.hot_news_recommend_with_options(workspace_id, request, headers, runtime)
1022
+
1023
+ async def hot_news_recommend_async(
1024
+ self,
1025
+ workspace_id: str,
1026
+ request: quan_miao_light_app_20240801_models.HotNewsRecommendRequest,
1027
+ ) -> quan_miao_light_app_20240801_models.HotNewsRecommendResponse:
1028
+ """
1029
+ @summary 热点新闻推荐
1030
+
1031
+ @param request: HotNewsRecommendRequest
1032
+ @return: HotNewsRecommendResponse
1033
+ """
1034
+ runtime = util_models.RuntimeOptions()
1035
+ headers = {}
1036
+ return await self.hot_news_recommend_with_options_async(workspace_id, request, headers, runtime)
1037
+
930
1038
  def list_analysis_tag_detail_by_task_id_with_options(
931
1039
  self,
932
1040
  workspace_id: str,
@@ -2979,6 +2979,225 @@ class GetVideoAnalysisTaskResponse(TeaModel):
2979
2979
  return self
2980
2980
 
2981
2981
 
2982
+ class HotNewsRecommendRequest(TeaModel):
2983
+ def __init__(
2984
+ self,
2985
+ prompt: str = None,
2986
+ ):
2987
+ self.prompt = prompt
2988
+
2989
+ def validate(self):
2990
+ pass
2991
+
2992
+ def to_map(self):
2993
+ _map = super().to_map()
2994
+ if _map is not None:
2995
+ return _map
2996
+
2997
+ result = dict()
2998
+ if self.prompt is not None:
2999
+ result['prompt'] = self.prompt
3000
+ return result
3001
+
3002
+ def from_map(self, m: dict = None):
3003
+ m = m or dict()
3004
+ if m.get('prompt') is not None:
3005
+ self.prompt = m.get('prompt')
3006
+ return self
3007
+
3008
+
3009
+ class HotNewsRecommendResponseBodyDataNews(TeaModel):
3010
+ def __init__(
3011
+ self,
3012
+ content: str = None,
3013
+ image_urls: List[str] = None,
3014
+ pub_time: str = None,
3015
+ search_source: str = None,
3016
+ source: str = None,
3017
+ title: str = None,
3018
+ url: str = None,
3019
+ ):
3020
+ self.content = content
3021
+ self.image_urls = image_urls
3022
+ self.pub_time = pub_time
3023
+ self.search_source = search_source
3024
+ self.source = source
3025
+ self.title = title
3026
+ self.url = url
3027
+
3028
+ def validate(self):
3029
+ pass
3030
+
3031
+ def to_map(self):
3032
+ _map = super().to_map()
3033
+ if _map is not None:
3034
+ return _map
3035
+
3036
+ result = dict()
3037
+ if self.content is not None:
3038
+ result['content'] = self.content
3039
+ if self.image_urls is not None:
3040
+ result['imageUrls'] = self.image_urls
3041
+ if self.pub_time is not None:
3042
+ result['pubTime'] = self.pub_time
3043
+ if self.search_source is not None:
3044
+ result['searchSource'] = self.search_source
3045
+ if self.source is not None:
3046
+ result['source'] = self.source
3047
+ if self.title is not None:
3048
+ result['title'] = self.title
3049
+ if self.url is not None:
3050
+ result['url'] = self.url
3051
+ return result
3052
+
3053
+ def from_map(self, m: dict = None):
3054
+ m = m or dict()
3055
+ if m.get('content') is not None:
3056
+ self.content = m.get('content')
3057
+ if m.get('imageUrls') is not None:
3058
+ self.image_urls = m.get('imageUrls')
3059
+ if m.get('pubTime') is not None:
3060
+ self.pub_time = m.get('pubTime')
3061
+ if m.get('searchSource') is not None:
3062
+ self.search_source = m.get('searchSource')
3063
+ if m.get('source') is not None:
3064
+ self.source = m.get('source')
3065
+ if m.get('title') is not None:
3066
+ self.title = m.get('title')
3067
+ if m.get('url') is not None:
3068
+ self.url = m.get('url')
3069
+ return self
3070
+
3071
+
3072
+ class HotNewsRecommendResponseBodyData(TeaModel):
3073
+ def __init__(
3074
+ self,
3075
+ news: List[HotNewsRecommendResponseBodyDataNews] = None,
3076
+ ):
3077
+ self.news = news
3078
+
3079
+ def validate(self):
3080
+ if self.news:
3081
+ for k in self.news:
3082
+ if k:
3083
+ k.validate()
3084
+
3085
+ def to_map(self):
3086
+ _map = super().to_map()
3087
+ if _map is not None:
3088
+ return _map
3089
+
3090
+ result = dict()
3091
+ result['news'] = []
3092
+ if self.news is not None:
3093
+ for k in self.news:
3094
+ result['news'].append(k.to_map() if k else None)
3095
+ return result
3096
+
3097
+ def from_map(self, m: dict = None):
3098
+ m = m or dict()
3099
+ self.news = []
3100
+ if m.get('news') is not None:
3101
+ for k in m.get('news'):
3102
+ temp_model = HotNewsRecommendResponseBodyDataNews()
3103
+ self.news.append(temp_model.from_map(k))
3104
+ return self
3105
+
3106
+
3107
+ class HotNewsRecommendResponseBody(TeaModel):
3108
+ def __init__(
3109
+ self,
3110
+ code: str = None,
3111
+ data: HotNewsRecommendResponseBodyData = None,
3112
+ message: str = None,
3113
+ request_id: str = None,
3114
+ success: bool = None,
3115
+ ):
3116
+ self.code = code
3117
+ self.data = data
3118
+ self.message = message
3119
+ self.request_id = request_id
3120
+ self.success = success
3121
+
3122
+ def validate(self):
3123
+ if self.data:
3124
+ self.data.validate()
3125
+
3126
+ def to_map(self):
3127
+ _map = super().to_map()
3128
+ if _map is not None:
3129
+ return _map
3130
+
3131
+ result = dict()
3132
+ if self.code is not None:
3133
+ result['code'] = self.code
3134
+ if self.data is not None:
3135
+ result['data'] = self.data.to_map()
3136
+ if self.message is not None:
3137
+ result['message'] = self.message
3138
+ if self.request_id is not None:
3139
+ result['requestId'] = self.request_id
3140
+ if self.success is not None:
3141
+ result['success'] = self.success
3142
+ return result
3143
+
3144
+ def from_map(self, m: dict = None):
3145
+ m = m or dict()
3146
+ if m.get('code') is not None:
3147
+ self.code = m.get('code')
3148
+ if m.get('data') is not None:
3149
+ temp_model = HotNewsRecommendResponseBodyData()
3150
+ self.data = temp_model.from_map(m['data'])
3151
+ if m.get('message') is not None:
3152
+ self.message = m.get('message')
3153
+ if m.get('requestId') is not None:
3154
+ self.request_id = m.get('requestId')
3155
+ if m.get('success') is not None:
3156
+ self.success = m.get('success')
3157
+ return self
3158
+
3159
+
3160
+ class HotNewsRecommendResponse(TeaModel):
3161
+ def __init__(
3162
+ self,
3163
+ headers: Dict[str, str] = None,
3164
+ status_code: int = None,
3165
+ body: HotNewsRecommendResponseBody = None,
3166
+ ):
3167
+ self.headers = headers
3168
+ self.status_code = status_code
3169
+ self.body = body
3170
+
3171
+ def validate(self):
3172
+ if self.body:
3173
+ self.body.validate()
3174
+
3175
+ def to_map(self):
3176
+ _map = super().to_map()
3177
+ if _map is not None:
3178
+ return _map
3179
+
3180
+ result = dict()
3181
+ if self.headers is not None:
3182
+ result['headers'] = self.headers
3183
+ if self.status_code is not None:
3184
+ result['statusCode'] = self.status_code
3185
+ if self.body is not None:
3186
+ result['body'] = self.body.to_map()
3187
+ return result
3188
+
3189
+ def from_map(self, m: dict = None):
3190
+ m = m or dict()
3191
+ if m.get('headers') is not None:
3192
+ self.headers = m.get('headers')
3193
+ if m.get('statusCode') is not None:
3194
+ self.status_code = m.get('statusCode')
3195
+ if m.get('body') is not None:
3196
+ temp_model = HotNewsRecommendResponseBody()
3197
+ self.body = temp_model.from_map(m['body'])
3198
+ return self
3199
+
3200
+
2982
3201
  class ListAnalysisTagDetailByTaskIdRequest(TeaModel):
2983
3202
  def __init__(
2984
3203
  self,
@@ -8697,8 +8916,10 @@ class RunVideoAnalysisRequestVideoCaptionInfoVideoCaptions(TeaModel):
8697
8916
  class RunVideoAnalysisRequestVideoCaptionInfo(TeaModel):
8698
8917
  def __init__(
8699
8918
  self,
8919
+ video_caption_file_url: str = None,
8700
8920
  video_captions: List[RunVideoAnalysisRequestVideoCaptionInfoVideoCaptions] = None,
8701
8921
  ):
8922
+ self.video_caption_file_url = video_caption_file_url
8702
8923
  self.video_captions = video_captions
8703
8924
 
8704
8925
  def validate(self):
@@ -8713,6 +8934,8 @@ class RunVideoAnalysisRequestVideoCaptionInfo(TeaModel):
8713
8934
  return _map
8714
8935
 
8715
8936
  result = dict()
8937
+ if self.video_caption_file_url is not None:
8938
+ result['videoCaptionFileUrl'] = self.video_caption_file_url
8716
8939
  result['videoCaptions'] = []
8717
8940
  if self.video_captions is not None:
8718
8941
  for k in self.video_captions:
@@ -8721,6 +8944,8 @@ class RunVideoAnalysisRequestVideoCaptionInfo(TeaModel):
8721
8944
 
8722
8945
  def from_map(self, m: dict = None):
8723
8946
  m = m or dict()
8947
+ if m.get('videoCaptionFileUrl') is not None:
8948
+ self.video_caption_file_url = m.get('videoCaptionFileUrl')
8724
8949
  self.video_captions = []
8725
8950
  if m.get('videoCaptions') is not None:
8726
8951
  for k in m.get('videoCaptions'):
@@ -11122,8 +11347,10 @@ class SubmitVideoAnalysisTaskRequestVideoCaptionInfoVideoCaptions(TeaModel):
11122
11347
  class SubmitVideoAnalysisTaskRequestVideoCaptionInfo(TeaModel):
11123
11348
  def __init__(
11124
11349
  self,
11350
+ video_caption_file_url: str = None,
11125
11351
  video_captions: List[SubmitVideoAnalysisTaskRequestVideoCaptionInfoVideoCaptions] = None,
11126
11352
  ):
11353
+ self.video_caption_file_url = video_caption_file_url
11127
11354
  self.video_captions = video_captions
11128
11355
 
11129
11356
  def validate(self):
@@ -11138,6 +11365,8 @@ class SubmitVideoAnalysisTaskRequestVideoCaptionInfo(TeaModel):
11138
11365
  return _map
11139
11366
 
11140
11367
  result = dict()
11368
+ if self.video_caption_file_url is not None:
11369
+ result['videoCaptionFileUrl'] = self.video_caption_file_url
11141
11370
  result['videoCaptions'] = []
11142
11371
  if self.video_captions is not None:
11143
11372
  for k in self.video_captions:
@@ -11146,6 +11375,8 @@ class SubmitVideoAnalysisTaskRequestVideoCaptionInfo(TeaModel):
11146
11375
 
11147
11376
  def from_map(self, m: dict = None):
11148
11377
  m = m or dict()
11378
+ if m.get('videoCaptionFileUrl') is not None:
11379
+ self.video_caption_file_url = m.get('videoCaptionFileUrl')
11149
11380
  self.video_captions = []
11150
11381
  if m.get('videoCaptions') is not None:
11151
11382
  for k in m.get('videoCaptions'):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: alibabacloud-quanmiaolightapp20240801
3
- Version: 2.8.0
3
+ Version: 2.9.0
4
4
  Summary: Alibaba Cloud QuanMiaoLightApp (20240801) SDK Library for Python
5
5
  Home-page: https://github.com/aliyun/alibabacloud-python-sdk
6
6
  Author: Alibaba Cloud SDK
@@ -24,7 +24,7 @@ from setuptools import setup, find_packages
24
24
  """
25
25
  setup module for alibabacloud_quanmiaolightapp20240801.
26
26
 
27
- Created on 15/05/2025
27
+ Created on 22/05/2025
28
28
 
29
29
  @author: Alibaba Cloud SDK
30
30
  """