@@ -174,9 +174,9 @@ model UnifiedPageItem {
174
174
link?: string (name= ' link' ),
175
175
mainText?: string (name= ' mainText' ),
176
176
markdownText?: string (name= ' markdownText' ),
177
- publishedTime?: string (name= ' publishedTime' ),
177
+ publishedTime?: string (name= ' publishedTime' , example = ' 2025-04-07T10:15:30.123+08:00 ' ),
178
178
rerankScore?: double (name= ' rerankScore' ),
179
- snippet?: string (name= ' snippet' , example = ' 2025-04-07T10:15:30.123+08:00 ' ),
179
+ snippet?: string (name= ' snippet' ),
180
180
summary?: string (name= ' summary' ),
181
181
title?: string (name= ' title' ),
182
182
}
@@ -201,15 +201,15 @@ model UnifiedSearchInformation {
201
201
searchTime?: long (name= ' searchTime' ),
202
202
}
203
203
204
- model UnifiedSearchRequest {
204
+ model UnifiedSearchInput {
205
205
category?: string (name= ' category' ),
206
206
contents?: RequestContents (name= ' contents' ),
207
207
engineType?: string (name= ' engineType' ),
208
208
query?: string (name= ' query' ),
209
209
timeRange?: string (name= ' timeRange' ),
210
210
}
211
211
212
- model UnifiedSearchResponse {
212
+ model UnifiedSearchOutput {
213
213
costCredits?: UnifiedCostCredits (name= ' costCredits' ),
214
214
pageItems?: [
215
215
UnifiedPageItem
@@ -551,3 +551,53 @@ async function globalSearch(request: GlobalSearchRequest): GlobalSearchResponse
551
551
return globalSearchWithOptions (request, headers, runtime);
552
552
}
553
553
554
+ model UnifiedSearchRequest {
555
+ body?: UnifiedSearchInput (name= ' body' ),
556
+ }
557
+
558
+ model UnifiedSearchResponse = {
559
+ headers?: map[string]string (name= ' headers' ),
560
+ statusCode?: int32 (name= ' statusCode' ),
561
+ body?: UnifiedSearchOutput
562
+ }
563
+
564
+ /**
565
+ * @summary 通晓统一搜索API
566
+ *
567
+ * @param request UnifiedSearchRequest
568
+ * @param headers map
569
+ * @param runtime runtime options for this request RuntimeOptions
570
+ * @return UnifiedSearchResponse
571
+ */
572
+ async function unifiedSearchWithOptions (request : UnifiedSearchRequest , headers : map [string ]string , runtime : Util .RuntimeOptions ): UnifiedSearchResponse {
573
+ Util .validateModel (request);
574
+ var req = new OpenApi.OpenApiRequest {
575
+ headers = headers,
576
+ body = OpenApiUtil .parseToMap (request .body ),
577
+ };
578
+ var params = new OpenApi.Params {
579
+ action = ' UnifiedSearch' ,
580
+ version = ' 2024-11-11' ,
581
+ protocol = ' HTTPS' ,
582
+ pathname = ` /linked-retrieval/linked-retrieval-entry/v1/iqs/search/unified` ,
583
+ method = ' POST' ,
584
+ authType = ' AK' ,
585
+ style = ' ROA' ,
586
+ reqBodyType = ' json' ,
587
+ bodyType = ' json' ,
588
+ };
589
+ return callApi (params, req, runtime);
590
+ }
591
+
592
+ /**
593
+ * @summary 通晓统一搜索API
594
+ *
595
+ * @param request UnifiedSearchRequest
596
+ * @return UnifiedSearchResponse
597
+ */
598
+ async function unifiedSearch (request : UnifiedSearchRequest ): UnifiedSearchResponse {
599
+ var runtime = new Util.RuntimeOptions {};
600
+ var headers : map[string]string = {};
601
+ return unifiedSearchWithOptions (request, headers, runtime);
602
+ }
603
+
0 commit comments