@alicloud/quanmiaolightapp20240801 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +350 -0
- package/dist/client.js +401 -2
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +594 -0
package/dist/client.d.ts
CHANGED
|
@@ -3,6 +3,75 @@
|
|
|
3
3
|
import * as $Util from '@alicloud/tea-util';
|
|
4
4
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
5
5
|
import * as $tea from '@alicloud/tea-typescript';
|
|
6
|
+
export declare class GenerateBroadcastNewsRequest extends $tea.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* This parameter is required.
|
|
10
|
+
*/
|
|
11
|
+
prompt?: string;
|
|
12
|
+
static names(): {
|
|
13
|
+
[key: string]: string;
|
|
14
|
+
};
|
|
15
|
+
static types(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
constructor(map?: {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export declare class GenerateBroadcastNewsResponseBody extends $tea.Model {
|
|
23
|
+
/**
|
|
24
|
+
* @example
|
|
25
|
+
* xx
|
|
26
|
+
*/
|
|
27
|
+
code?: string;
|
|
28
|
+
data?: GenerateBroadcastNewsResponseBodyData;
|
|
29
|
+
/**
|
|
30
|
+
* @example
|
|
31
|
+
* 200
|
|
32
|
+
*/
|
|
33
|
+
httpStatusCode?: number;
|
|
34
|
+
/**
|
|
35
|
+
* @example
|
|
36
|
+
* success
|
|
37
|
+
*/
|
|
38
|
+
message?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @example
|
|
41
|
+
* 117F5ABE-CF02-5502-9A3F-E56BC9081A64
|
|
42
|
+
*/
|
|
43
|
+
requestId?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @example
|
|
46
|
+
* True
|
|
47
|
+
*/
|
|
48
|
+
success?: boolean;
|
|
49
|
+
static names(): {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
static types(): {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
};
|
|
55
|
+
constructor(map?: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
export declare class GenerateBroadcastNewsResponse extends $tea.Model {
|
|
60
|
+
headers?: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
statusCode?: number;
|
|
64
|
+
body?: GenerateBroadcastNewsResponseBody;
|
|
65
|
+
static names(): {
|
|
66
|
+
[key: string]: string;
|
|
67
|
+
};
|
|
68
|
+
static types(): {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
};
|
|
71
|
+
constructor(map?: {
|
|
72
|
+
[key: string]: any;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
6
75
|
export declare class ListHotTopicSummariesRequest extends $tea.Model {
|
|
7
76
|
/**
|
|
8
77
|
* @example
|
|
@@ -107,6 +176,59 @@ export declare class ListHotTopicSummariesResponse extends $tea.Model {
|
|
|
107
176
|
[key: string]: any;
|
|
108
177
|
});
|
|
109
178
|
}
|
|
179
|
+
export declare class RunCommentGenerationRequest extends $tea.Model {
|
|
180
|
+
/**
|
|
181
|
+
* @example
|
|
182
|
+
* 20
|
|
183
|
+
*/
|
|
184
|
+
length?: string;
|
|
185
|
+
/**
|
|
186
|
+
* @example
|
|
187
|
+
* 10
|
|
188
|
+
*/
|
|
189
|
+
numComments?: string;
|
|
190
|
+
sourceMaterial?: string;
|
|
191
|
+
style?: string;
|
|
192
|
+
static names(): {
|
|
193
|
+
[key: string]: string;
|
|
194
|
+
};
|
|
195
|
+
static types(): {
|
|
196
|
+
[key: string]: any;
|
|
197
|
+
};
|
|
198
|
+
constructor(map?: {
|
|
199
|
+
[key: string]: any;
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
export declare class RunCommentGenerationResponseBody extends $tea.Model {
|
|
203
|
+
end?: boolean;
|
|
204
|
+
header?: RunCommentGenerationResponseBodyHeader;
|
|
205
|
+
payload?: RunCommentGenerationResponseBodyPayload;
|
|
206
|
+
static names(): {
|
|
207
|
+
[key: string]: string;
|
|
208
|
+
};
|
|
209
|
+
static types(): {
|
|
210
|
+
[key: string]: any;
|
|
211
|
+
};
|
|
212
|
+
constructor(map?: {
|
|
213
|
+
[key: string]: any;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
export declare class RunCommentGenerationResponse extends $tea.Model {
|
|
217
|
+
headers?: {
|
|
218
|
+
[key: string]: string;
|
|
219
|
+
};
|
|
220
|
+
statusCode?: number;
|
|
221
|
+
body?: RunCommentGenerationResponseBody;
|
|
222
|
+
static names(): {
|
|
223
|
+
[key: string]: string;
|
|
224
|
+
};
|
|
225
|
+
static types(): {
|
|
226
|
+
[key: string]: any;
|
|
227
|
+
};
|
|
228
|
+
constructor(map?: {
|
|
229
|
+
[key: string]: any;
|
|
230
|
+
});
|
|
231
|
+
}
|
|
110
232
|
export declare class RunMarketingInformationExtractRequest extends $tea.Model {
|
|
111
233
|
customPrompt?: string;
|
|
112
234
|
extractType?: string;
|
|
@@ -475,11 +597,13 @@ export declare class RunVideoAnalysisRequest extends $tea.Model {
|
|
|
475
597
|
* a3d1c2ac-f086-4a21-9069-f5631542f5ax
|
|
476
598
|
*/
|
|
477
599
|
originalSessionId?: string;
|
|
600
|
+
snapshotInterval?: number;
|
|
478
601
|
/**
|
|
479
602
|
* @example
|
|
480
603
|
* a3d1c2ac-f086-4a21-9069-f5631542f5a2
|
|
481
604
|
*/
|
|
482
605
|
taskId?: string;
|
|
606
|
+
videoExtraInfo?: string;
|
|
483
607
|
videoModelCustomPromptTemplate?: string;
|
|
484
608
|
/**
|
|
485
609
|
* @example
|
|
@@ -519,11 +643,13 @@ export declare class RunVideoAnalysisShrinkRequest extends $tea.Model {
|
|
|
519
643
|
* a3d1c2ac-f086-4a21-9069-f5631542f5ax
|
|
520
644
|
*/
|
|
521
645
|
originalSessionId?: string;
|
|
646
|
+
snapshotInterval?: number;
|
|
522
647
|
/**
|
|
523
648
|
* @example
|
|
524
649
|
* a3d1c2ac-f086-4a21-9069-f5631542f5a2
|
|
525
650
|
*/
|
|
526
651
|
taskId?: string;
|
|
652
|
+
videoExtraInfo?: string;
|
|
527
653
|
videoModelCustomPromptTemplate?: string;
|
|
528
654
|
/**
|
|
529
655
|
* @example
|
|
@@ -579,6 +705,106 @@ export declare class RunVideoAnalysisResponse extends $tea.Model {
|
|
|
579
705
|
[key: string]: any;
|
|
580
706
|
});
|
|
581
707
|
}
|
|
708
|
+
export declare class GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages extends $tea.Model {
|
|
709
|
+
/**
|
|
710
|
+
* @example
|
|
711
|
+
* http://xxx.com/xxx.jpeg
|
|
712
|
+
*/
|
|
713
|
+
url?: string;
|
|
714
|
+
static names(): {
|
|
715
|
+
[key: string]: string;
|
|
716
|
+
};
|
|
717
|
+
static types(): {
|
|
718
|
+
[key: string]: any;
|
|
719
|
+
};
|
|
720
|
+
constructor(map?: {
|
|
721
|
+
[key: string]: any;
|
|
722
|
+
});
|
|
723
|
+
}
|
|
724
|
+
export declare class GenerateBroadcastNewsResponseBodyDataHotTopicSummaries extends $tea.Model {
|
|
725
|
+
category?: string;
|
|
726
|
+
hotTopic?: string;
|
|
727
|
+
/**
|
|
728
|
+
* @example
|
|
729
|
+
* 2024-09-13_08
|
|
730
|
+
*/
|
|
731
|
+
hotTopicVersion?: string;
|
|
732
|
+
/**
|
|
733
|
+
* @example
|
|
734
|
+
* 1000000
|
|
735
|
+
*/
|
|
736
|
+
hotValue?: number;
|
|
737
|
+
/**
|
|
738
|
+
* @example
|
|
739
|
+
* 1458tb3bjo7531kap42a
|
|
740
|
+
*/
|
|
741
|
+
id?: string;
|
|
742
|
+
images?: GenerateBroadcastNewsResponseBodyDataHotTopicSummariesImages[];
|
|
743
|
+
/**
|
|
744
|
+
* @example
|
|
745
|
+
* xxx
|
|
746
|
+
*/
|
|
747
|
+
textSummary?: string;
|
|
748
|
+
static names(): {
|
|
749
|
+
[key: string]: string;
|
|
750
|
+
};
|
|
751
|
+
static types(): {
|
|
752
|
+
[key: string]: any;
|
|
753
|
+
};
|
|
754
|
+
constructor(map?: {
|
|
755
|
+
[key: string]: any;
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
export declare class GenerateBroadcastNewsResponseBodyDataUsage extends $tea.Model {
|
|
759
|
+
/**
|
|
760
|
+
* @example
|
|
761
|
+
* 1
|
|
762
|
+
*/
|
|
763
|
+
inputTokens?: number;
|
|
764
|
+
/**
|
|
765
|
+
* @example
|
|
766
|
+
* 2
|
|
767
|
+
*/
|
|
768
|
+
outputTokens?: number;
|
|
769
|
+
/**
|
|
770
|
+
* @example
|
|
771
|
+
* 3
|
|
772
|
+
*/
|
|
773
|
+
totalTokens?: number;
|
|
774
|
+
static names(): {
|
|
775
|
+
[key: string]: string;
|
|
776
|
+
};
|
|
777
|
+
static types(): {
|
|
778
|
+
[key: string]: any;
|
|
779
|
+
};
|
|
780
|
+
constructor(map?: {
|
|
781
|
+
[key: string]: any;
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
export declare class GenerateBroadcastNewsResponseBodyData extends $tea.Model {
|
|
785
|
+
hotTopicSummaries?: GenerateBroadcastNewsResponseBodyDataHotTopicSummaries[];
|
|
786
|
+
/**
|
|
787
|
+
* @example
|
|
788
|
+
* 2bb0ea82dafd48a8817fadc4c90e2b52
|
|
789
|
+
*/
|
|
790
|
+
sessionId?: string;
|
|
791
|
+
/**
|
|
792
|
+
* @example
|
|
793
|
+
* 3feb69ed02d9b1a17d0f1a942675d300
|
|
794
|
+
*/
|
|
795
|
+
taskId?: string;
|
|
796
|
+
text?: string;
|
|
797
|
+
usage?: GenerateBroadcastNewsResponseBodyDataUsage;
|
|
798
|
+
static names(): {
|
|
799
|
+
[key: string]: string;
|
|
800
|
+
};
|
|
801
|
+
static types(): {
|
|
802
|
+
[key: string]: any;
|
|
803
|
+
};
|
|
804
|
+
constructor(map?: {
|
|
805
|
+
[key: string]: any;
|
|
806
|
+
});
|
|
807
|
+
}
|
|
582
808
|
export declare class ListHotTopicSummariesResponseBodyDataNewsComments extends $tea.Model {
|
|
583
809
|
/**
|
|
584
810
|
* @example
|
|
@@ -702,6 +928,94 @@ export declare class ListHotTopicSummariesResponseBodyData extends $tea.Model {
|
|
|
702
928
|
[key: string]: any;
|
|
703
929
|
});
|
|
704
930
|
}
|
|
931
|
+
export declare class RunCommentGenerationResponseBodyHeader extends $tea.Model {
|
|
932
|
+
/**
|
|
933
|
+
* @example
|
|
934
|
+
* result-generated
|
|
935
|
+
*/
|
|
936
|
+
event?: string;
|
|
937
|
+
eventInfo?: string;
|
|
938
|
+
/**
|
|
939
|
+
* @example
|
|
940
|
+
* F8A35034-EDCF-5C50-95A5-1044316F36E3
|
|
941
|
+
*/
|
|
942
|
+
requestId?: string;
|
|
943
|
+
/**
|
|
944
|
+
* @example
|
|
945
|
+
* tcm9xac9dsfbfgm8hf5k94l3cqybwh9o3mn0iuyytdgd9qoejxf1crxsdvuvr8fu0zuhbe8anhdaoeif2wbkmebagnezh23cuhkiazx2tmjh4eml791eak7t95sshvtkz14bh2lnbktzvdhialzd8reoaem0pktw41slinwyoabe75xlnxsqb5eo1i6ly70
|
|
946
|
+
*/
|
|
947
|
+
sessionId?: string;
|
|
948
|
+
/**
|
|
949
|
+
* @example
|
|
950
|
+
* task-fu1918oghtodbis3chgpfr
|
|
951
|
+
*/
|
|
952
|
+
taskId?: string;
|
|
953
|
+
/**
|
|
954
|
+
* @example
|
|
955
|
+
* 21507c3517074446017046500ed5f1
|
|
956
|
+
*/
|
|
957
|
+
traceId?: string;
|
|
958
|
+
static names(): {
|
|
959
|
+
[key: string]: string;
|
|
960
|
+
};
|
|
961
|
+
static types(): {
|
|
962
|
+
[key: string]: any;
|
|
963
|
+
};
|
|
964
|
+
constructor(map?: {
|
|
965
|
+
[key: string]: any;
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
export declare class RunCommentGenerationResponseBodyPayloadOutput extends $tea.Model {
|
|
969
|
+
text?: string;
|
|
970
|
+
static names(): {
|
|
971
|
+
[key: string]: string;
|
|
972
|
+
};
|
|
973
|
+
static types(): {
|
|
974
|
+
[key: string]: any;
|
|
975
|
+
};
|
|
976
|
+
constructor(map?: {
|
|
977
|
+
[key: string]: any;
|
|
978
|
+
});
|
|
979
|
+
}
|
|
980
|
+
export declare class RunCommentGenerationResponseBodyPayloadUsage extends $tea.Model {
|
|
981
|
+
/**
|
|
982
|
+
* @example
|
|
983
|
+
* 100
|
|
984
|
+
*/
|
|
985
|
+
inputTokens?: number;
|
|
986
|
+
/**
|
|
987
|
+
* @example
|
|
988
|
+
* 100
|
|
989
|
+
*/
|
|
990
|
+
outputTokens?: number;
|
|
991
|
+
/**
|
|
992
|
+
* @example
|
|
993
|
+
* 200
|
|
994
|
+
*/
|
|
995
|
+
totalTokens?: number;
|
|
996
|
+
static names(): {
|
|
997
|
+
[key: string]: string;
|
|
998
|
+
};
|
|
999
|
+
static types(): {
|
|
1000
|
+
[key: string]: any;
|
|
1001
|
+
};
|
|
1002
|
+
constructor(map?: {
|
|
1003
|
+
[key: string]: any;
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
export declare class RunCommentGenerationResponseBodyPayload extends $tea.Model {
|
|
1007
|
+
output?: RunCommentGenerationResponseBodyPayloadOutput;
|
|
1008
|
+
usage?: RunCommentGenerationResponseBodyPayloadUsage;
|
|
1009
|
+
static names(): {
|
|
1010
|
+
[key: string]: string;
|
|
1011
|
+
};
|
|
1012
|
+
static types(): {
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
};
|
|
1015
|
+
constructor(map?: {
|
|
1016
|
+
[key: string]: any;
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
705
1019
|
export declare class RunMarketingInformationExtractResponseBodyHeader extends $tea.Model {
|
|
706
1020
|
/**
|
|
707
1021
|
* @example
|
|
@@ -1577,6 +1891,24 @@ export default class Client extends OpenApi {
|
|
|
1577
1891
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
1578
1892
|
[key: string]: string;
|
|
1579
1893
|
}, endpoint: string): string;
|
|
1894
|
+
/**
|
|
1895
|
+
* 新闻播报-抽取分类获取播报热点
|
|
1896
|
+
*
|
|
1897
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
1898
|
+
* @param headers - map
|
|
1899
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1900
|
+
* @returns GenerateBroadcastNewsResponse
|
|
1901
|
+
*/
|
|
1902
|
+
generateBroadcastNewsWithOptions(workspaceId: string, request: GenerateBroadcastNewsRequest, headers: {
|
|
1903
|
+
[key: string]: string;
|
|
1904
|
+
}, runtime: $Util.RuntimeOptions): Promise<GenerateBroadcastNewsResponse>;
|
|
1905
|
+
/**
|
|
1906
|
+
* 新闻播报-抽取分类获取播报热点
|
|
1907
|
+
*
|
|
1908
|
+
* @param request - GenerateBroadcastNewsRequest
|
|
1909
|
+
* @returns GenerateBroadcastNewsResponse
|
|
1910
|
+
*/
|
|
1911
|
+
generateBroadcastNews(workspaceId: string, request: GenerateBroadcastNewsRequest): Promise<GenerateBroadcastNewsResponse>;
|
|
1580
1912
|
/**
|
|
1581
1913
|
* 轻应用-新闻播报-获取热点话题摘要列表
|
|
1582
1914
|
*
|
|
@@ -1595,6 +1927,24 @@ export default class Client extends OpenApi {
|
|
|
1595
1927
|
* @returns ListHotTopicSummariesResponse
|
|
1596
1928
|
*/
|
|
1597
1929
|
listHotTopicSummaries(workspaceId: string, request: ListHotTopicSummariesRequest): Promise<ListHotTopicSummariesResponse>;
|
|
1930
|
+
/**
|
|
1931
|
+
* 评论生成服务
|
|
1932
|
+
*
|
|
1933
|
+
* @param request - RunCommentGenerationRequest
|
|
1934
|
+
* @param headers - map
|
|
1935
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1936
|
+
* @returns RunCommentGenerationResponse
|
|
1937
|
+
*/
|
|
1938
|
+
runCommentGenerationWithOptions(workspaceId: string, request: RunCommentGenerationRequest, headers: {
|
|
1939
|
+
[key: string]: string;
|
|
1940
|
+
}, runtime: $Util.RuntimeOptions): Promise<RunCommentGenerationResponse>;
|
|
1941
|
+
/**
|
|
1942
|
+
* 评论生成服务
|
|
1943
|
+
*
|
|
1944
|
+
* @param request - RunCommentGenerationRequest
|
|
1945
|
+
* @returns RunCommentGenerationResponse
|
|
1946
|
+
*/
|
|
1947
|
+
runCommentGeneration(workspaceId: string, request: RunCommentGenerationRequest): Promise<RunCommentGenerationResponse>;
|
|
1598
1948
|
/**
|
|
1599
1949
|
* 营销信息抽取服务
|
|
1600
1950
|
*
|