@alicloud/polardb20170801 8.2.5 → 8.3.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.
Files changed (33) hide show
  1. package/dist/client.d.ts +19 -4
  2. package/dist/client.js +55 -4
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/DescribeKbsyncLinksRequest.d.ts +16 -0
  5. package/dist/models/DescribeKbsyncLinksRequest.js +4 -0
  6. package/dist/models/DescribeKbsyncLinksRequest.js.map +1 -1
  7. package/dist/models/DescribeKbsyncLinksResponseBody.d.ts +25 -1
  8. package/dist/models/DescribeKbsyncLinksResponseBody.js +6 -0
  9. package/dist/models/DescribeKbsyncLinksResponseBody.js.map +1 -1
  10. package/dist/models/RegisterKnowledgeBaseFileRequest.d.ts +43 -0
  11. package/dist/models/RegisterKnowledgeBaseFileRequest.js +62 -0
  12. package/dist/models/RegisterKnowledgeBaseFileRequest.js.map +1 -0
  13. package/dist/models/RegisterKnowledgeBaseFileResponse.d.ts +19 -0
  14. package/dist/models/RegisterKnowledgeBaseFileResponse.js +69 -0
  15. package/dist/models/RegisterKnowledgeBaseFileResponse.js.map +1 -0
  16. package/dist/models/RegisterKnowledgeBaseFileResponseBody.d.ts +63 -0
  17. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js +68 -0
  18. package/dist/models/RegisterKnowledgeBaseFileResponseBody.js.map +1 -0
  19. package/dist/models/RetrievalKnowledgeBaseResponseBody.d.ts +72 -5
  20. package/dist/models/RetrievalKnowledgeBaseResponseBody.js +43 -1
  21. package/dist/models/RetrievalKnowledgeBaseResponseBody.js.map +1 -1
  22. package/dist/models/model.d.ts +4 -0
  23. package/dist/models/model.js +41 -33
  24. package/dist/models/model.js.map +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +62 -4
  27. package/src/models/DescribeKbsyncLinksRequest.ts +20 -0
  28. package/src/models/DescribeKbsyncLinksResponseBody.ts +31 -1
  29. package/src/models/RegisterKnowledgeBaseFileRequest.ts +60 -0
  30. package/src/models/RegisterKnowledgeBaseFileResponse.ts +40 -0
  31. package/src/models/RegisterKnowledgeBaseFileResponseBody.ts +86 -0
  32. package/src/models/RetrievalKnowledgeBaseResponseBody.ts +105 -5
  33. package/src/models/model.ts +4 -0
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { RegisterKnowledgeBaseFileResponseBody } from "./RegisterKnowledgeBaseFileResponseBody";
4
+
5
+
6
+ export class RegisterKnowledgeBaseFileResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: RegisterKnowledgeBaseFileResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: RegisterKnowledgeBaseFileResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,86 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class RegisterKnowledgeBaseFileResponseBody extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The file ID, which is generated by the server based on the ETL rules for native OSS files.
9
+ *
10
+ * @example
11
+ * 3566626f-3cc5-57a3-904c-e777b39baa3d
12
+ */
13
+ fileId?: string;
14
+ /**
15
+ * @remarks
16
+ * The file name.
17
+ *
18
+ * @example
19
+ * example.pdf
20
+ */
21
+ fileName?: string;
22
+ /**
23
+ * @remarks
24
+ * The OSS object key of the registered file.
25
+ *
26
+ * @example
27
+ * pks-2ze123456789abcd/pkb-2ze123456789abcd/example.pdf
28
+ */
29
+ filePath?: string;
30
+ /**
31
+ * @remarks
32
+ * Indicates whether an existing idempotent record is matched. Valid values:
33
+ * - true: An existing idempotent record is matched.
34
+ * - false: No existing idempotent record is matched.
35
+ *
36
+ * @example
37
+ * false
38
+ */
39
+ idempotent?: boolean;
40
+ /**
41
+ * @remarks
42
+ * The request ID.
43
+ *
44
+ * @example
45
+ * 9C3E5A7B-12D4-4F68-9A01-2B3C4D5E6F70
46
+ */
47
+ requestId?: string;
48
+ /**
49
+ * @remarks
50
+ * The file processing status.
51
+ *
52
+ * @example
53
+ * DISPATCHED
54
+ */
55
+ status?: string;
56
+ static names(): { [key: string]: string } {
57
+ return {
58
+ fileId: 'FileId',
59
+ fileName: 'FileName',
60
+ filePath: 'FilePath',
61
+ idempotent: 'Idempotent',
62
+ requestId: 'RequestId',
63
+ status: 'Status',
64
+ };
65
+ }
66
+
67
+ static types(): { [key: string]: any } {
68
+ return {
69
+ fileId: 'string',
70
+ fileName: 'string',
71
+ filePath: 'string',
72
+ idempotent: 'boolean',
73
+ requestId: 'string',
74
+ status: 'string',
75
+ };
76
+ }
77
+
78
+ validate() {
79
+ super.validate();
80
+ }
81
+
82
+ constructor(map?: { [key: string]: any }) {
83
+ super(map);
84
+ }
85
+ }
86
+
@@ -2,7 +2,87 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class RetrievalKnowledgeBaseResponseBodyResultsImageResources extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The index of the source document that the image belongs to, starting from 0.
9
+ *
10
+ * @example
11
+ * 0
12
+ */
13
+ documentIndex?: number;
14
+ /**
15
+ * @remarks
16
+ * The unique ID of the image resource.
17
+ *
18
+ * @example
19
+ * document-0/pictures/1
20
+ */
21
+ id?: string;
22
+ /**
23
+ * @remarks
24
+ * The element reference of the image in the Docling source document structure.
25
+ *
26
+ * @example
27
+ * #/pictures/1
28
+ */
29
+ itemRef?: string;
30
+ /**
31
+ * @remarks
32
+ * The media type of the image resource.
33
+ *
34
+ * @example
35
+ * image/png
36
+ */
37
+ mimeType?: string;
38
+ /**
39
+ * @remarks
40
+ * The OSS URI of the image resource.
41
+ *
42
+ * @example
43
+ * oss://my-bucket/results/my-space/doc-001/artifacts/image-1.png
44
+ */
45
+ uri?: string;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ documentIndex: 'DocumentIndex',
49
+ id: 'Id',
50
+ itemRef: 'ItemRef',
51
+ mimeType: 'MimeType',
52
+ uri: 'Uri',
53
+ };
54
+ }
55
+
56
+ static types(): { [key: string]: any } {
57
+ return {
58
+ documentIndex: 'number',
59
+ id: 'string',
60
+ itemRef: 'string',
61
+ mimeType: 'string',
62
+ uri: 'string',
63
+ };
64
+ }
65
+
66
+ validate() {
67
+ super.validate();
68
+ }
69
+
70
+ constructor(map?: { [key: string]: any }) {
71
+ super(map);
72
+ }
73
+ }
74
+
5
75
  export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
76
+ /**
77
+ * @remarks
78
+ * The list of figure or table captions associated with the chunk.
79
+ */
80
+ captions?: string[];
81
+ /**
82
+ * @remarks
83
+ * The list of Docling source document structured element references associated with the chunk. You can use these references to precisely locate original elements.
84
+ */
85
+ docItems?: string[];
6
86
  /**
7
87
  * @remarks
8
88
  * The unique ID of the file.
@@ -13,7 +93,7 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
13
93
  fileId?: string;
14
94
  /**
15
95
  * @remarks
16
- * The file name.
96
+ * The name of the file.
17
97
  *
18
98
  * @example
19
99
  * 2024FinancialReport.pdf
@@ -21,9 +101,14 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
21
101
  fileName?: string;
22
102
  /**
23
103
  * @remarks
24
- * The chain of section headings to which the shard belongs.
104
+ * The chain of section headings that the chunk belongs to.
25
105
  */
26
106
  headings?: string[];
107
+ /**
108
+ * @remarks
109
+ * The list of image resources referenced by the chunk.
110
+ */
111
+ imageResources?: RetrievalKnowledgeBaseResponseBodyResultsImageResources[];
27
112
  /**
28
113
  * @remarks
29
114
  * The metadata.
@@ -34,12 +119,12 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
34
119
  metadata?: string;
35
120
  /**
36
121
  * @remarks
37
- * The list of page numbers to which the shard belongs.
122
+ * The list of page numbers that the chunk belongs to.
38
123
  */
39
124
  pageNumbers?: number[];
40
125
  /**
41
126
  * @remarks
42
- * The text content of the shard.
127
+ * The text content of the chunk.
43
128
  *
44
129
  * @example
45
130
  * Financial report
@@ -47,7 +132,7 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
47
132
  shardContent?: string;
48
133
  /**
49
134
  * @remarks
50
- * The shard index.
135
+ * The index of the chunk.
51
136
  *
52
137
  * @example
53
138
  * 1
@@ -63,9 +148,12 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
63
148
  similarityScore?: number;
64
149
  static names(): { [key: string]: string } {
65
150
  return {
151
+ captions: 'Captions',
152
+ docItems: 'DocItems',
66
153
  fileId: 'FileId',
67
154
  fileName: 'FileName',
68
155
  headings: 'Headings',
156
+ imageResources: 'ImageResources',
69
157
  metadata: 'Metadata',
70
158
  pageNumbers: 'PageNumbers',
71
159
  shardContent: 'ShardContent',
@@ -76,9 +164,12 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
76
164
 
77
165
  static types(): { [key: string]: any } {
78
166
  return {
167
+ captions: { 'type': 'array', 'itemType': 'string' },
168
+ docItems: { 'type': 'array', 'itemType': 'string' },
79
169
  fileId: 'string',
80
170
  fileName: 'string',
81
171
  headings: { 'type': 'array', 'itemType': 'string' },
172
+ imageResources: { 'type': 'array', 'itemType': RetrievalKnowledgeBaseResponseBodyResultsImageResources },
82
173
  metadata: 'string',
83
174
  pageNumbers: { 'type': 'array', 'itemType': 'number' },
84
175
  shardContent: 'string',
@@ -88,9 +179,18 @@ export class RetrievalKnowledgeBaseResponseBodyResults extends $dara.Model {
88
179
  }
89
180
 
90
181
  validate() {
182
+ if(Array.isArray(this.captions)) {
183
+ $dara.Model.validateArray(this.captions);
184
+ }
185
+ if(Array.isArray(this.docItems)) {
186
+ $dara.Model.validateArray(this.docItems);
187
+ }
91
188
  if(Array.isArray(this.headings)) {
92
189
  $dara.Model.validateArray(this.headings);
93
190
  }
191
+ if(Array.isArray(this.imageResources)) {
192
+ $dara.Model.validateArray(this.imageResources);
193
+ }
94
194
  if(Array.isArray(this.pageNumbers)) {
95
195
  $dara.Model.validateArray(this.pageNumbers);
96
196
  }
@@ -411,6 +411,7 @@ export { ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup } from
411
411
  export { ModifyGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupRel } from './ModifyGlobalSecurityIpgroupRelationResponseBody';
412
412
  export { ModifyLogBackupPolicyRequestAdvancedLogPolicies } from './ModifyLogBackupPolicyRequest';
413
413
  export { MovePolarFsObjectsRequestObjectsToMove } from './MovePolarFsObjectsRequest';
414
+ export { RetrievalKnowledgeBaseResponseBodyResultsImageResources } from './RetrievalKnowledgeBaseResponseBody';
414
415
  export { RetrievalKnowledgeBaseResponseBodyResults } from './RetrievalKnowledgeBaseResponseBody';
415
416
  export { RetryKnowledgeBaseFilesResponseBodyItems } from './RetryKnowledgeBaseFilesResponseBody';
416
417
  export { SearchMemoriesResponseBodyResults } from './SearchMemoriesResponseBody';
@@ -1727,6 +1728,9 @@ export { ReactivateDBClusterBackupResponse } from './ReactivateDbclusterBackupRe
1727
1728
  export { RefreshDBClusterStorageUsageRequest } from './RefreshDbclusterStorageUsageRequest';
1728
1729
  export { RefreshDBClusterStorageUsageResponseBody } from './RefreshDbclusterStorageUsageResponseBody';
1729
1730
  export { RefreshDBClusterStorageUsageResponse } from './RefreshDbclusterStorageUsageResponse';
1731
+ export { RegisterKnowledgeBaseFileRequest } from './RegisterKnowledgeBaseFileRequest';
1732
+ export { RegisterKnowledgeBaseFileResponseBody } from './RegisterKnowledgeBaseFileResponseBody';
1733
+ export { RegisterKnowledgeBaseFileResponse } from './RegisterKnowledgeBaseFileResponse';
1730
1734
  export { RejectPolarClawDevicePairRequest } from './RejectPolarClawDevicePairRequest';
1731
1735
  export { RejectPolarClawDevicePairResponseBody } from './RejectPolarClawDevicePairResponseBody';
1732
1736
  export { RejectPolarClawDevicePairResponse } from './RejectPolarClawDevicePairResponse';