@alicloud/eventbridge20200401 6.5.0 → 6.6.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 +321 -6
- package/dist/client.js +1050 -216
- package/dist/client.js.map +1 -1
- package/dist/models/AgentBridgeRuntime.d.ts +77 -0
- package/dist/models/AgentBridgeRuntime.js +72 -0
- package/dist/models/AgentBridgeRuntime.js.map +1 -0
- package/dist/models/CreateEventStreamingRequest.d.ts +240 -119
- package/dist/models/CreateEventStreamingRequest.js +11 -0
- package/dist/models/CreateEventStreamingRequest.js.map +1 -1
- package/dist/models/CreateEventStreamingResponseBody.d.ts +3 -1
- package/dist/models/CreateEventStreamingResponseBody.js.map +1 -1
- package/dist/models/CreateEventStreamingShrinkRequest.d.ts +6 -6
- package/dist/models/DeleteNamespaceRequest.d.ts +3 -3
- package/dist/models/DeleteNamespaceResponseBody.d.ts +4 -4
- package/dist/models/ExecutionResult.d.ts +9 -6
- package/dist/models/ExecutionResult.js.map +1 -1
- package/dist/models/GetEventStreamingRequest.d.ts +1 -1
- package/dist/models/GetEventStreamingResponseBody.d.ts +277 -154
- package/dist/models/GetEventStreamingResponseBody.js +6 -0
- package/dist/models/GetEventStreamingResponseBody.js.map +1 -1
- package/dist/models/GetLumaCatalogRequest.d.ts +33 -0
- package/dist/models/GetLumaCatalogRequest.js +60 -0
- package/dist/models/GetLumaCatalogRequest.js.map +1 -0
- package/dist/models/GetLumaCatalogResponse.d.ts +19 -0
- package/dist/models/GetLumaCatalogResponse.js +69 -0
- package/dist/models/GetLumaCatalogResponse.js.map +1 -0
- package/dist/models/GetLumaCatalogResponseBody.d.ts +51 -0
- package/dist/models/GetLumaCatalogResponseBody.js +70 -0
- package/dist/models/GetLumaCatalogResponseBody.js.map +1 -0
- package/dist/models/GetLumaChunkRequest.d.ts +73 -0
- package/dist/models/GetLumaChunkRequest.js +68 -0
- package/dist/models/GetLumaChunkRequest.js.map +1 -0
- package/dist/models/GetLumaChunkResponse.d.ts +19 -0
- package/dist/models/GetLumaChunkResponse.js +69 -0
- package/dist/models/GetLumaChunkResponse.js.map +1 -0
- package/dist/models/GetLumaChunkResponseBody.d.ts +51 -0
- package/dist/models/GetLumaChunkResponseBody.js +70 -0
- package/dist/models/GetLumaChunkResponseBody.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.d.ts +75 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.js +68 -0
- package/dist/models/GetLumaDocumentDownloadUrlRequest.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.d.ts +19 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.js +69 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponse.js.map +1 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.d.ts +78 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js +90 -0
- package/dist/models/GetLumaDocumentDownloadUrlResponseBody.js.map +1 -0
- package/dist/models/GetLumaDocumentRequest.d.ts +63 -0
- package/dist/models/GetLumaDocumentRequest.js +66 -0
- package/dist/models/GetLumaDocumentRequest.js.map +1 -0
- package/dist/models/GetLumaDocumentResponse.d.ts +19 -0
- package/dist/models/GetLumaDocumentResponse.js +69 -0
- package/dist/models/GetLumaDocumentResponse.js.map +1 -0
- package/dist/models/GetLumaDocumentResponseBody.d.ts +51 -0
- package/dist/models/GetLumaDocumentResponseBody.js +70 -0
- package/dist/models/GetLumaDocumentResponseBody.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.d.ts +53 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.js +64 -0
- package/dist/models/GetLumaKnowledgeBaseRequest.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.d.ts +19 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.js +69 -0
- package/dist/models/GetLumaKnowledgeBaseResponse.js.map +1 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.d.ts +51 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.js +70 -0
- package/dist/models/GetLumaKnowledgeBaseResponseBody.js.map +1 -0
- package/dist/models/GetLumaNamespaceRequest.d.ts +43 -0
- package/dist/models/GetLumaNamespaceRequest.js +62 -0
- package/dist/models/GetLumaNamespaceRequest.js.map +1 -0
- package/dist/models/GetLumaNamespaceResponse.d.ts +19 -0
- package/dist/models/GetLumaNamespaceResponse.js +69 -0
- package/dist/models/GetLumaNamespaceResponse.js.map +1 -0
- package/dist/models/GetLumaNamespaceResponseBody.d.ts +51 -0
- package/dist/models/GetLumaNamespaceResponseBody.js +70 -0
- package/dist/models/GetLumaNamespaceResponseBody.js.map +1 -0
- package/dist/models/GetLumaTableRequest.d.ts +53 -0
- package/dist/models/GetLumaTableRequest.js +64 -0
- package/dist/models/GetLumaTableRequest.js.map +1 -0
- package/dist/models/GetLumaTableResponse.d.ts +19 -0
- package/dist/models/GetLumaTableResponse.js +69 -0
- package/dist/models/GetLumaTableResponse.js.map +1 -0
- package/dist/models/GetLumaTableResponseBody.d.ts +51 -0
- package/dist/models/GetLumaTableResponseBody.js +70 -0
- package/dist/models/GetLumaTableResponseBody.js.map +1 -0
- package/dist/models/KnowledgeBase.d.ts +281 -0
- package/dist/models/KnowledgeBase.js +176 -0
- package/dist/models/KnowledgeBase.js.map +1 -0
- package/dist/models/KnowledgeBaseChunk.d.ts +93 -0
- package/dist/models/KnowledgeBaseChunk.js +76 -0
- package/dist/models/KnowledgeBaseChunk.js.map +1 -0
- package/dist/models/KnowledgeBaseDocument.d.ts +249 -0
- package/dist/models/KnowledgeBaseDocument.js +164 -0
- package/dist/models/KnowledgeBaseDocument.js.map +1 -0
- package/dist/models/KnowledgeBaseSearchChunk.d.ts +118 -0
- package/dist/models/KnowledgeBaseSearchChunk.js +100 -0
- package/dist/models/KnowledgeBaseSearchChunk.js.map +1 -0
- package/dist/models/ListEventStreamingsRequest.d.ts +3 -3
- package/dist/models/ListEventStreamingsResponseBody.d.ts +171 -166
- package/dist/models/ListEventStreamingsResponseBody.js +6 -0
- package/dist/models/ListEventStreamingsResponseBody.js.map +1 -1
- package/dist/models/ListLumaCatalogsRequest.d.ts +23 -0
- package/dist/models/ListLumaCatalogsRequest.js +58 -0
- package/dist/models/ListLumaCatalogsRequest.js.map +1 -0
- package/dist/models/ListLumaCatalogsResponse.d.ts +19 -0
- package/dist/models/ListLumaCatalogsResponse.js +69 -0
- package/dist/models/ListLumaCatalogsResponse.js.map +1 -0
- package/dist/models/ListLumaCatalogsResponseBody.d.ts +71 -0
- package/dist/models/ListLumaCatalogsResponseBody.js +92 -0
- package/dist/models/ListLumaCatalogsResponseBody.js.map +1 -0
- package/dist/models/ListLumaChunksRequest.d.ts +93 -0
- package/dist/models/ListLumaChunksRequest.js +74 -0
- package/dist/models/ListLumaChunksRequest.js.map +1 -0
- package/dist/models/ListLumaChunksResponse.d.ts +19 -0
- package/dist/models/ListLumaChunksResponse.js +69 -0
- package/dist/models/ListLumaChunksResponse.js.map +1 -0
- package/dist/models/ListLumaChunksResponseBody.d.ts +87 -0
- package/dist/models/ListLumaChunksResponseBody.js +96 -0
- package/dist/models/ListLumaChunksResponseBody.js.map +1 -0
- package/dist/models/ListLumaDocumentsRequest.d.ts +85 -0
- package/dist/models/ListLumaDocumentsRequest.js +72 -0
- package/dist/models/ListLumaDocumentsRequest.js.map +1 -0
- package/dist/models/ListLumaDocumentsResponse.d.ts +19 -0
- package/dist/models/ListLumaDocumentsResponse.js +69 -0
- package/dist/models/ListLumaDocumentsResponse.js.map +1 -0
- package/dist/models/ListLumaDocumentsResponseBody.d.ts +87 -0
- package/dist/models/ListLumaDocumentsResponseBody.js +96 -0
- package/dist/models/ListLumaDocumentsResponseBody.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.d.ts +43 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.js +62 -0
- package/dist/models/ListLumaKnowledgeBasesRequest.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.d.ts +19 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.js +69 -0
- package/dist/models/ListLumaKnowledgeBasesResponse.js.map +1 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.js +92 -0
- package/dist/models/ListLumaKnowledgeBasesResponseBody.js.map +1 -0
- package/dist/models/ListLumaNamespacesRequest.d.ts +33 -0
- package/dist/models/ListLumaNamespacesRequest.js +60 -0
- package/dist/models/ListLumaNamespacesRequest.js.map +1 -0
- package/dist/models/ListLumaNamespacesResponse.d.ts +19 -0
- package/dist/models/ListLumaNamespacesResponse.js +69 -0
- package/dist/models/ListLumaNamespacesResponse.js.map +1 -0
- package/dist/models/ListLumaNamespacesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaNamespacesResponseBody.js +92 -0
- package/dist/models/ListLumaNamespacesResponseBody.js.map +1 -0
- package/dist/models/ListLumaTablesRequest.d.ts +43 -0
- package/dist/models/ListLumaTablesRequest.js +62 -0
- package/dist/models/ListLumaTablesRequest.js.map +1 -0
- package/dist/models/ListLumaTablesResponse.d.ts +19 -0
- package/dist/models/ListLumaTablesResponse.js +69 -0
- package/dist/models/ListLumaTablesResponse.js.map +1 -0
- package/dist/models/ListLumaTablesResponseBody.d.ts +71 -0
- package/dist/models/ListLumaTablesResponseBody.js +92 -0
- package/dist/models/ListLumaTablesResponseBody.js.map +1 -0
- package/dist/models/LumaTable.d.ts +138 -0
- package/dist/models/LumaTable.js +122 -0
- package/dist/models/LumaTable.js.map +1 -0
- package/dist/models/MetadataSchemaField.d.ts +49 -0
- package/dist/models/MetadataSchemaField.js +64 -0
- package/dist/models/MetadataSchemaField.js.map +1 -0
- package/dist/models/PollAskResultResponseBody.d.ts +4 -4
- package/dist/models/QueryAskLumaLogRequest.d.ts +2 -2
- package/dist/models/QueryLumaWithSqlrequest.d.ts +41 -0
- package/dist/models/QueryLumaWithSqlrequest.js +62 -0
- package/dist/models/QueryLumaWithSqlrequest.js.map +1 -0
- package/dist/models/QueryLumaWithSqlresponse.d.ts +19 -0
- package/dist/models/QueryLumaWithSqlresponse.js +69 -0
- package/dist/models/QueryLumaWithSqlresponse.js.map +1 -0
- package/dist/models/QueryLumaWithSqlresponseBody.d.ts +51 -0
- package/dist/models/QueryLumaWithSqlresponseBody.js +70 -0
- package/dist/models/QueryLumaWithSqlresponseBody.js.map +1 -0
- package/dist/models/SchemaColumn.d.ts +2 -2
- package/dist/models/SearchLumaKnowledgeBaseRequest.d.ts +95 -0
- package/dist/models/SearchLumaKnowledgeBaseRequest.js +74 -0
- package/dist/models/SearchLumaKnowledgeBaseRequest.js.map +1 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.d.ts +19 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.js +69 -0
- package/dist/models/SearchLumaKnowledgeBaseResponse.js.map +1 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.d.ts +79 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.js +94 -0
- package/dist/models/SearchLumaKnowledgeBaseResponseBody.js.map +1 -0
- package/dist/models/SinkKnowledgeBaseParameters.d.ts +37 -0
- package/dist/models/SinkKnowledgeBaseParameters.js +62 -0
- package/dist/models/SinkKnowledgeBaseParameters.js.map +1 -0
- package/dist/models/SourceFeiShuDocsParameters.d.ts +28 -0
- package/dist/models/SourceFeiShuDocsParameters.js.map +1 -1
- package/dist/models/UpdateEventStreamingRequest.d.ts +302 -161
- package/dist/models/UpdateEventStreamingRequest.js +11 -0
- package/dist/models/UpdateEventStreamingRequest.js.map +1 -1
- package/dist/models/UpdateEventStreamingResponseBody.d.ts +2 -4
- package/dist/models/UpdateEventStreamingResponseBody.js.map +1 -1
- package/dist/models/UpdateEventStreamingShrinkRequest.d.ts +4 -4
- package/dist/models/model.d.ts +70 -0
- package/dist/models/model.js +164 -22
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +1149 -217
- package/src/models/AgentBridgeRuntime.ts +104 -0
- package/src/models/CreateEventStreamingRequest.ts +250 -119
- package/src/models/CreateEventStreamingResponseBody.ts +3 -1
- package/src/models/CreateEventStreamingShrinkRequest.ts +6 -6
- package/src/models/DeleteNamespaceRequest.ts +3 -3
- package/src/models/DeleteNamespaceResponseBody.ts +4 -4
- package/src/models/ExecutionResult.ts +9 -6
- package/src/models/GetEventStreamingRequest.ts +1 -1
- package/src/models/GetEventStreamingResponseBody.ts +282 -154
- package/src/models/GetLumaCatalogRequest.ts +48 -0
- package/src/models/GetLumaCatalogResponse.ts +40 -0
- package/src/models/GetLumaCatalogResponseBody.ts +75 -0
- package/src/models/GetLumaChunkRequest.ts +96 -0
- package/src/models/GetLumaChunkResponse.ts +40 -0
- package/src/models/GetLumaChunkResponseBody.ts +75 -0
- package/src/models/GetLumaDocumentDownloadUrlRequest.ts +98 -0
- package/src/models/GetLumaDocumentDownloadUrlResponse.ts +40 -0
- package/src/models/GetLumaDocumentDownloadUrlResponseBody.ts +114 -0
- package/src/models/GetLumaDocumentRequest.ts +84 -0
- package/src/models/GetLumaDocumentResponse.ts +40 -0
- package/src/models/GetLumaDocumentResponseBody.ts +75 -0
- package/src/models/GetLumaKnowledgeBaseRequest.ts +72 -0
- package/src/models/GetLumaKnowledgeBaseResponse.ts +40 -0
- package/src/models/GetLumaKnowledgeBaseResponseBody.ts +75 -0
- package/src/models/GetLumaNamespaceRequest.ts +60 -0
- package/src/models/GetLumaNamespaceResponse.ts +40 -0
- package/src/models/GetLumaNamespaceResponseBody.ts +75 -0
- package/src/models/GetLumaTableRequest.ts +72 -0
- package/src/models/GetLumaTableResponse.ts +40 -0
- package/src/models/GetLumaTableResponseBody.ts +75 -0
- package/src/models/KnowledgeBase.ts +384 -0
- package/src/models/KnowledgeBaseChunk.ts +124 -0
- package/src/models/KnowledgeBaseDocument.ts +341 -0
- package/src/models/KnowledgeBaseSearchChunk.ts +164 -0
- package/src/models/ListEventStreamingsRequest.ts +3 -3
- package/src/models/ListEventStreamingsResponseBody.ts +177 -167
- package/src/models/ListLumaCatalogsRequest.ts +36 -0
- package/src/models/ListLumaCatalogsResponse.ts +40 -0
- package/src/models/ListLumaCatalogsResponseBody.ts +108 -0
- package/src/models/ListLumaChunksRequest.ts +122 -0
- package/src/models/ListLumaChunksResponse.ts +40 -0
- package/src/models/ListLumaChunksResponseBody.ts +128 -0
- package/src/models/ListLumaDocumentsRequest.ts +112 -0
- package/src/models/ListLumaDocumentsResponse.ts +40 -0
- package/src/models/ListLumaDocumentsResponseBody.ts +128 -0
- package/src/models/ListLumaKnowledgeBasesRequest.ts +60 -0
- package/src/models/ListLumaKnowledgeBasesResponse.ts +40 -0
- package/src/models/ListLumaKnowledgeBasesResponseBody.ts +108 -0
- package/src/models/ListLumaNamespacesRequest.ts +48 -0
- package/src/models/ListLumaNamespacesResponse.ts +40 -0
- package/src/models/ListLumaNamespacesResponseBody.ts +108 -0
- package/src/models/ListLumaTablesRequest.ts +60 -0
- package/src/models/ListLumaTablesResponse.ts +40 -0
- package/src/models/ListLumaTablesResponseBody.ts +108 -0
- package/src/models/LumaTable.ts +197 -0
- package/src/models/MetadataSchemaField.ts +68 -0
- package/src/models/PollAskResultResponseBody.ts +4 -4
- package/src/models/QueryAskLumaLogRequest.ts +2 -2
- package/src/models/QueryLumaWithSqlrequest.ts +58 -0
- package/src/models/QueryLumaWithSqlresponse.ts +40 -0
- package/src/models/QueryLumaWithSqlresponseBody.ts +75 -0
- package/src/models/SchemaColumn.ts +2 -2
- package/src/models/SearchLumaKnowledgeBaseRequest.ts +124 -0
- package/src/models/SearchLumaKnowledgeBaseResponse.ts +40 -0
- package/src/models/SearchLumaKnowledgeBaseResponseBody.ts +118 -0
- package/src/models/SinkKnowledgeBaseParameters.ts +54 -0
- package/src/models/SourceFeiShuDocsParameters.ts +28 -0
- package/src/models/UpdateEventStreamingRequest.ts +312 -161
- package/src/models/UpdateEventStreamingResponseBody.ts +2 -4
- package/src/models/UpdateEventStreamingShrinkRequest.ts +4 -4
- package/src/models/model.ts +70 -0
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class KnowledgeBaseDocumentChunkConfigurationPreprocessRules extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Specifies whether to remove URLs and email addresses during parsing.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* false
|
|
12
|
+
*/
|
|
13
|
+
removeUrlsAndEmails?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Specifies whether to replace consecutive whitespace characters (spaces, line breaks, and tab characters) with a single space.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* true
|
|
20
|
+
*/
|
|
21
|
+
replaceConsecutiveWhitespace?: boolean;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
removeUrlsAndEmails: 'RemoveUrlsAndEmails',
|
|
25
|
+
replaceConsecutiveWhitespace: 'ReplaceConsecutiveWhitespace',
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
static types(): { [key: string]: any } {
|
|
30
|
+
return {
|
|
31
|
+
removeUrlsAndEmails: 'boolean',
|
|
32
|
+
replaceConsecutiveWhitespace: 'boolean',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
validate() {
|
|
37
|
+
super.validate();
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
constructor(map?: { [key: string]: any }) {
|
|
41
|
+
super(map);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export class KnowledgeBaseDocumentChunkConfiguration extends $dara.Model {
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* The heading level (1 to 6) used for splitting in the BY_HEADING strategy. Headings at or above this level serve as split boundaries. Deeper-level headings are retained in the chunk body.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 2
|
|
52
|
+
*/
|
|
53
|
+
headingLevel?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* The maximum character length of a single chunk. Starting from revision 22, this value is character-based. Valid values: 1 to 6000.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* 600
|
|
60
|
+
*/
|
|
61
|
+
maxChunkSize?: number;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* The overlap character length between adjacent chunks. This parameter takes effect only for the BY_LENGTH strategy. If the value is greater than 0, the beginning of the next chunk repeats the content from the end of the previous chunk within this window. The overlap does not cause a chunk to exceed MaxChunkSize. A value of 0 indicates no overlap.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 40
|
|
68
|
+
*/
|
|
69
|
+
overlapSize?: number;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* The snapshot of preprocessing rules.
|
|
73
|
+
*/
|
|
74
|
+
preprocessRules?: KnowledgeBaseDocumentChunkConfigurationPreprocessRules;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* The separator used in the BY_SEPARATOR strategy. The separator is matched as a literal string (not a regular expression). The maximum length is 32 characters.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* \\\\n\\\\n
|
|
81
|
+
*/
|
|
82
|
+
separator?: string;
|
|
83
|
+
/**
|
|
84
|
+
* @remarks
|
|
85
|
+
* The chunking strategy. Valid values:
|
|
86
|
+
* - AUTO: intelligent splitting (heading-aware + paragraph packing).
|
|
87
|
+
* - BY_LENGTH: sliding window splitting by length. You can specify OverlapSize.
|
|
88
|
+
* - BY_SEPARATOR: splitting by separator. You must specify Separator.
|
|
89
|
+
* - BY_HEADING: splitting by heading level. You must specify HeadingLevel.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* BY_SEPARATOR
|
|
93
|
+
*/
|
|
94
|
+
strategy?: string;
|
|
95
|
+
static names(): { [key: string]: string } {
|
|
96
|
+
return {
|
|
97
|
+
headingLevel: 'HeadingLevel',
|
|
98
|
+
maxChunkSize: 'MaxChunkSize',
|
|
99
|
+
overlapSize: 'OverlapSize',
|
|
100
|
+
preprocessRules: 'PreprocessRules',
|
|
101
|
+
separator: 'Separator',
|
|
102
|
+
strategy: 'Strategy',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
static types(): { [key: string]: any } {
|
|
107
|
+
return {
|
|
108
|
+
headingLevel: 'number',
|
|
109
|
+
maxChunkSize: 'number',
|
|
110
|
+
overlapSize: 'number',
|
|
111
|
+
preprocessRules: KnowledgeBaseDocumentChunkConfigurationPreprocessRules,
|
|
112
|
+
separator: 'string',
|
|
113
|
+
strategy: 'string',
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
validate() {
|
|
118
|
+
if(this.preprocessRules && typeof (this.preprocessRules as any).validate === 'function') {
|
|
119
|
+
(this.preprocessRules as any).validate();
|
|
120
|
+
}
|
|
121
|
+
super.validate();
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
constructor(map?: { [key: string]: any }) {
|
|
125
|
+
super(map);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export class KnowledgeBaseDocumentMetadata extends $dara.Model {
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* The metadata field name.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* department
|
|
136
|
+
*/
|
|
137
|
+
key?: string;
|
|
138
|
+
/**
|
|
139
|
+
* @remarks
|
|
140
|
+
* The metadata field value.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* R&D
|
|
144
|
+
*/
|
|
145
|
+
value?: string;
|
|
146
|
+
static names(): { [key: string]: string } {
|
|
147
|
+
return {
|
|
148
|
+
key: 'Key',
|
|
149
|
+
value: 'Value',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static types(): { [key: string]: any } {
|
|
154
|
+
return {
|
|
155
|
+
key: 'string',
|
|
156
|
+
value: 'string',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
validate() {
|
|
161
|
+
super.validate();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
constructor(map?: { [key: string]: any }) {
|
|
165
|
+
super(map);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export class KnowledgeBaseDocument extends $dara.Model {
|
|
170
|
+
/**
|
|
171
|
+
* @remarks
|
|
172
|
+
* The snapshot of the document-level chunking policy actually used for this document. This field is returned only if ChunkConfiguration was explicitly specified during upload (BeginUpload) or update (UpdateDocument). If not specified, the document is chunked based on the knowledge base-level default configurations, and this field is not returned. The knowledge base-level configuration is not echoed back to avoid misleading users about the actual chunking basis for this document when the knowledge base-level configuration is subsequently changed.
|
|
173
|
+
*/
|
|
174
|
+
chunkConfiguration?: KnowledgeBaseDocumentChunkConfiguration;
|
|
175
|
+
/**
|
|
176
|
+
* @remarks
|
|
177
|
+
* The number of chunks generated after processing is complete.
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* 120
|
|
181
|
+
*/
|
|
182
|
+
chunkCount?: number;
|
|
183
|
+
/**
|
|
184
|
+
* @remarks
|
|
185
|
+
* The time when the document was created.
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* 2026-08-24T10:00:00Z
|
|
189
|
+
*/
|
|
190
|
+
createdAt?: string;
|
|
191
|
+
/**
|
|
192
|
+
* @remarks
|
|
193
|
+
* The unique identifier of the document.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* doc-bp1xxxxxxxxxxxx
|
|
197
|
+
*/
|
|
198
|
+
documentId?: string;
|
|
199
|
+
/**
|
|
200
|
+
* @remarks
|
|
201
|
+
* The stable error code returned when processing fails.
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* FILE_CORRUPTED
|
|
205
|
+
*/
|
|
206
|
+
errorCode?: string;
|
|
207
|
+
/**
|
|
208
|
+
* @remarks
|
|
209
|
+
* The desensitized error message returned when processing fails.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* parse pdf failed
|
|
213
|
+
*/
|
|
214
|
+
errorMessage?: string;
|
|
215
|
+
/**
|
|
216
|
+
* @remarks
|
|
217
|
+
* The file name of the document.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* manual.pdf
|
|
221
|
+
*/
|
|
222
|
+
fileName?: string;
|
|
223
|
+
/**
|
|
224
|
+
* @remarks
|
|
225
|
+
* The file size of the document, in bytes.
|
|
226
|
+
*
|
|
227
|
+
* @example
|
|
228
|
+
* 1048576
|
|
229
|
+
*/
|
|
230
|
+
fileSize?: number;
|
|
231
|
+
/**
|
|
232
|
+
* @remarks
|
|
233
|
+
* The document-level metadata key-value pairs, including constant field values and system variable values. This field is not returned if no metadata is specified.
|
|
234
|
+
*
|
|
235
|
+
* @example
|
|
236
|
+
* [{"Key":"department","Value":"R&D"}]
|
|
237
|
+
*/
|
|
238
|
+
metadata?: KnowledgeBaseDocumentMetadata[];
|
|
239
|
+
/**
|
|
240
|
+
* @remarks
|
|
241
|
+
* The last modification time in the upstream source system, in epoch milliseconds. This field is empty if no source information is available.
|
|
242
|
+
*
|
|
243
|
+
* @example
|
|
244
|
+
* 1788000000000
|
|
245
|
+
*/
|
|
246
|
+
sourceModifiedTime?: number;
|
|
247
|
+
/**
|
|
248
|
+
* @remarks
|
|
249
|
+
* The delivery channel through which the document entered the knowledge base. This value is written by the system and cannot be specified by users. Valid values:
|
|
250
|
+
* - UPLOAD: manually uploaded through the console or API.
|
|
251
|
+
* - OSS: imported through an OSS event stream.
|
|
252
|
+
*
|
|
253
|
+
* New values may be added when new channels are supported. The values are not restricted to a fixed enumeration.
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* UPLOAD
|
|
257
|
+
*/
|
|
258
|
+
sourceType?: string;
|
|
259
|
+
/**
|
|
260
|
+
* @remarks
|
|
261
|
+
* The original source address of the document, such as oss://bucket/path/file.md. This field may be empty for manually uploaded documents.
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* oss://my-bucket/docs/handbook.pdf
|
|
265
|
+
*/
|
|
266
|
+
sourceUri?: string;
|
|
267
|
+
/**
|
|
268
|
+
* @remarks
|
|
269
|
+
* The processing status of the document. Valid values:
|
|
270
|
+
* - UPLOADING: uploading in progress.
|
|
271
|
+
* - PENDING: upload complete and queued for processing. This is typically a transitional state that lasts for seconds.
|
|
272
|
+
* - PROCESSING: parsing and processing in progress.
|
|
273
|
+
* - COMPLETED: processing complete and searchable.
|
|
274
|
+
* - FAILED: processing failed.
|
|
275
|
+
* - DELETING: deletion in progress.
|
|
276
|
+
*
|
|
277
|
+
* @example
|
|
278
|
+
* COMPLETED
|
|
279
|
+
*/
|
|
280
|
+
status?: string;
|
|
281
|
+
/**
|
|
282
|
+
* @remarks
|
|
283
|
+
* The time when the document was last updated.
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* 2026-08-24T10:00:00Z
|
|
287
|
+
*/
|
|
288
|
+
updatedAt?: string;
|
|
289
|
+
static names(): { [key: string]: string } {
|
|
290
|
+
return {
|
|
291
|
+
chunkConfiguration: 'ChunkConfiguration',
|
|
292
|
+
chunkCount: 'ChunkCount',
|
|
293
|
+
createdAt: 'CreatedAt',
|
|
294
|
+
documentId: 'DocumentId',
|
|
295
|
+
errorCode: 'ErrorCode',
|
|
296
|
+
errorMessage: 'ErrorMessage',
|
|
297
|
+
fileName: 'FileName',
|
|
298
|
+
fileSize: 'FileSize',
|
|
299
|
+
metadata: 'Metadata',
|
|
300
|
+
sourceModifiedTime: 'SourceModifiedTime',
|
|
301
|
+
sourceType: 'SourceType',
|
|
302
|
+
sourceUri: 'SourceUri',
|
|
303
|
+
status: 'Status',
|
|
304
|
+
updatedAt: 'UpdatedAt',
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
static types(): { [key: string]: any } {
|
|
309
|
+
return {
|
|
310
|
+
chunkConfiguration: KnowledgeBaseDocumentChunkConfiguration,
|
|
311
|
+
chunkCount: 'number',
|
|
312
|
+
createdAt: 'string',
|
|
313
|
+
documentId: 'string',
|
|
314
|
+
errorCode: 'string',
|
|
315
|
+
errorMessage: 'string',
|
|
316
|
+
fileName: 'string',
|
|
317
|
+
fileSize: 'number',
|
|
318
|
+
metadata: { 'type': 'array', 'itemType': KnowledgeBaseDocumentMetadata },
|
|
319
|
+
sourceModifiedTime: 'number',
|
|
320
|
+
sourceType: 'string',
|
|
321
|
+
sourceUri: 'string',
|
|
322
|
+
status: 'string',
|
|
323
|
+
updatedAt: 'string',
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
validate() {
|
|
328
|
+
if(this.chunkConfiguration && typeof (this.chunkConfiguration as any).validate === 'function') {
|
|
329
|
+
(this.chunkConfiguration as any).validate();
|
|
330
|
+
}
|
|
331
|
+
if(Array.isArray(this.metadata)) {
|
|
332
|
+
$dara.Model.validateArray(this.metadata);
|
|
333
|
+
}
|
|
334
|
+
super.validate();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
constructor(map?: { [key: string]: any }) {
|
|
338
|
+
super(map);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class KnowledgeBaseSearchChunkScores extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The score after hybrid search fusion (reciprocal rank fusion or weighted normalization, depending on the active fusion algorithm). Value range: [0, 1].
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 0.78
|
|
12
|
+
*/
|
|
13
|
+
fusion?: number;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The normalized score of keyword (full-text) search. Value range: [0, 1].
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 0.62
|
|
20
|
+
*/
|
|
21
|
+
keyword?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The score assigned by the rerank model. Value range: [0, 1].
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 0.91
|
|
28
|
+
*/
|
|
29
|
+
rerank?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The similarity score of vector retrieval. Value range: [0, 1].
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 0.85
|
|
36
|
+
*/
|
|
37
|
+
vector?: number;
|
|
38
|
+
static names(): { [key: string]: string } {
|
|
39
|
+
return {
|
|
40
|
+
fusion: 'Fusion',
|
|
41
|
+
keyword: 'Keyword',
|
|
42
|
+
rerank: 'Rerank',
|
|
43
|
+
vector: 'Vector',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static types(): { [key: string]: any } {
|
|
48
|
+
return {
|
|
49
|
+
fusion: 'number',
|
|
50
|
+
keyword: 'number',
|
|
51
|
+
rerank: 'number',
|
|
52
|
+
vector: 'number',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
validate() {
|
|
57
|
+
super.validate();
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
constructor(map?: { [key: string]: any }) {
|
|
61
|
+
super(map);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export class KnowledgeBaseSearchChunk extends $dara.Model {
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The sequence number of the chunk within the document.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* 12
|
|
72
|
+
*/
|
|
73
|
+
chunkSeq?: number;
|
|
74
|
+
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* The body content of the hit chunk.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* EventBridge supports routing events to multiple target services
|
|
80
|
+
*/
|
|
81
|
+
content?: string;
|
|
82
|
+
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* The ID of the document to which the hit chunk belongs.
|
|
85
|
+
*
|
|
86
|
+
* @example
|
|
87
|
+
* doc-bp1xxxxxxxxxxxx
|
|
88
|
+
*/
|
|
89
|
+
documentId?: string;
|
|
90
|
+
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* The file name of the document to which the hit chunk belongs. This value has the same source as the FileName returned by GetDocument and can be used to render the reference source.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* product-handbook.pdf
|
|
96
|
+
*/
|
|
97
|
+
fileName?: string;
|
|
98
|
+
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* The retrieval relevance score. A higher score indicates higher relevance.
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* 0.92
|
|
104
|
+
*/
|
|
105
|
+
score?: number;
|
|
106
|
+
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* The score details for each stage. Score fields that are not involved in the calculation are not returned.
|
|
109
|
+
*/
|
|
110
|
+
scores?: KnowledgeBaseSearchChunkScores;
|
|
111
|
+
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* The location of the chunk in the original document. p.N indicates page N (PDF). s.N indicates slide N (PPT/PPTX).
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* p.3
|
|
117
|
+
*/
|
|
118
|
+
sourceLocation?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @remarks
|
|
121
|
+
* The title path to which the chunk belongs, such as Chapter 1>1.1 Overview.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* Installation Guide>Prerequisites
|
|
125
|
+
*/
|
|
126
|
+
titlePath?: string;
|
|
127
|
+
static names(): { [key: string]: string } {
|
|
128
|
+
return {
|
|
129
|
+
chunkSeq: 'ChunkSeq',
|
|
130
|
+
content: 'Content',
|
|
131
|
+
documentId: 'DocumentId',
|
|
132
|
+
fileName: 'FileName',
|
|
133
|
+
score: 'Score',
|
|
134
|
+
scores: 'Scores',
|
|
135
|
+
sourceLocation: 'SourceLocation',
|
|
136
|
+
titlePath: 'TitlePath',
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
static types(): { [key: string]: any } {
|
|
141
|
+
return {
|
|
142
|
+
chunkSeq: 'number',
|
|
143
|
+
content: 'string',
|
|
144
|
+
documentId: 'string',
|
|
145
|
+
fileName: 'string',
|
|
146
|
+
score: 'number',
|
|
147
|
+
scores: KnowledgeBaseSearchChunkScores,
|
|
148
|
+
sourceLocation: 'string',
|
|
149
|
+
titlePath: 'string',
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
validate() {
|
|
154
|
+
if(this.scores && typeof (this.scores as any).validate === 'function') {
|
|
155
|
+
(this.scores as any).validate();
|
|
156
|
+
}
|
|
157
|
+
super.validate();
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
constructor(map?: { [key: string]: any }) {
|
|
161
|
+
super(map);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
@@ -45,7 +45,7 @@ export class ListEventStreamingsRequestTags extends $dara.Model {
|
|
|
45
45
|
export class ListEventStreamingsRequest extends $dara.Model {
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The maximum number of entries
|
|
48
|
+
* The maximum number of entries to return per request. You can use this parameter together with NextToken to implement paging.
|
|
49
49
|
* >Notice: The maximum number of entries returned per request cannot exceed 100.
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
@@ -62,7 +62,7 @@ export class ListEventStreamingsRequest extends $dara.Model {
|
|
|
62
62
|
namePrefix?: string;
|
|
63
63
|
/**
|
|
64
64
|
* @remarks
|
|
65
|
-
* If the number of entries exceeds the value of Limit, a NextToken is returned.
|
|
65
|
+
* If the number of entries that match the specified conditions exceeds the value of Limit, a NextToken is returned.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
68
|
* 10
|
|
@@ -78,7 +78,7 @@ export class ListEventStreamingsRequest extends $dara.Model {
|
|
|
78
78
|
sinkArn?: string;
|
|
79
79
|
/**
|
|
80
80
|
* @remarks
|
|
81
|
-
* The ARN of the event source.
|
|
81
|
+
* The Alibaba Cloud Resource Name (ARN) of the event source.
|
|
82
82
|
*/
|
|
83
83
|
sourceArn?: string;
|
|
84
84
|
/**
|