@alicloud/polardb20170801 8.4.0 → 8.4.2

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 (47) hide show
  1. package/dist/client.d.ts +8 -8
  2. package/dist/client.js +23 -8
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AnswerKnowledgeBaseRequest.d.ts +5 -5
  5. package/dist/models/CreateApplicationRequest.d.ts +30 -22
  6. package/dist/models/CreateApplicationRequest.js +2 -0
  7. package/dist/models/CreateApplicationRequest.js.map +1 -1
  8. package/dist/models/CreateApplicationResponseBody.d.ts +1 -1
  9. package/dist/models/CreateApplicationShrinkRequest.d.ts +14 -6
  10. package/dist/models/CreateApplicationShrinkRequest.js +2 -0
  11. package/dist/models/CreateApplicationShrinkRequest.js.map +1 -1
  12. package/dist/models/CreateKbsyncLinkRequest.d.ts +12 -4
  13. package/dist/models/CreateKbsyncLinkRequest.js +2 -0
  14. package/dist/models/CreateKbsyncLinkRequest.js.map +1 -1
  15. package/dist/models/CreateKbsyncLinkResponseBody.d.ts +2 -2
  16. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.d.ts +64 -7
  17. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js +33 -1
  18. package/dist/models/DescribeKnowledgeBaseAnswerResponseBody.js.map +1 -1
  19. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.d.ts +68 -1
  20. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js +43 -1
  21. package/dist/models/DescribeKnowledgeBaseFileShardsResponseBody.js.map +1 -1
  22. package/dist/models/ModifyAidbclusterModelRequest.d.ts +20 -2
  23. package/dist/models/ModifyAidbclusterModelRequest.js +4 -0
  24. package/dist/models/ModifyAidbclusterModelRequest.js.map +1 -1
  25. package/dist/models/ModifyAidbclusterModelResponseBody.d.ts +3 -3
  26. package/dist/models/UpdateKbsyncLinkRequest.d.ts +12 -4
  27. package/dist/models/UpdateKbsyncLinkRequest.js +2 -0
  28. package/dist/models/UpdateKbsyncLinkRequest.js.map +1 -1
  29. package/dist/models/UpdateKbsyncLinkResponseBody.d.ts +1 -1
  30. package/dist/models/model.d.ts +2 -0
  31. package/dist/models/model.js +44 -40
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +28 -8
  35. package/src/models/AnswerKnowledgeBaseRequest.ts +5 -5
  36. package/src/models/CreateApplicationRequest.ts +32 -22
  37. package/src/models/CreateApplicationResponseBody.ts +1 -1
  38. package/src/models/CreateApplicationShrinkRequest.ts +16 -6
  39. package/src/models/CreateKbsyncLinkRequest.ts +14 -4
  40. package/src/models/CreateKbsyncLinkResponseBody.ts +2 -2
  41. package/src/models/DescribeKnowledgeBaseAnswerResponseBody.ts +87 -7
  42. package/src/models/DescribeKnowledgeBaseFileShardsResponseBody.ts +101 -1
  43. package/src/models/ModifyAidbclusterModelRequest.ts +24 -2
  44. package/src/models/ModifyAidbclusterModelResponseBody.ts +3 -3
  45. package/src/models/UpdateKbsyncLinkRequest.ts +14 -4
  46. package/src/models/UpdateKbsyncLinkResponseBody.ts +1 -1
  47. package/src/models/model.ts +2 -0
@@ -2,12 +2,97 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The index of the source document to which the image belongs, 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 DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Model {
76
+ /**
77
+ * @remarks
78
+ * The list of figure or table captions associated with the shard.
79
+ */
80
+ captions?: string[];
81
+ /**
82
+ * @remarks
83
+ * The list of Docling source document structured element references associated with the shard. You can use these references to precisely locate original document elements.
84
+ */
85
+ docItems?: string[];
6
86
  /**
7
87
  * @remarks
8
88
  * The chain of section headings to which the shard belongs.
9
89
  */
10
90
  headings?: string[];
91
+ /**
92
+ * @remarks
93
+ * The list of image resources referenced by the shard.
94
+ */
95
+ imageResources?: DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources[];
11
96
  /**
12
97
  * @remarks
13
98
  * The list of page numbers to which the shard belongs.
@@ -23,7 +108,7 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
23
108
  shardContent?: string;
24
109
  /**
25
110
  * @remarks
26
- * The shard index.
111
+ * The index of the shard.
27
112
  *
28
113
  * @example
29
114
  * 1
@@ -31,7 +116,10 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
31
116
  shardIndex?: number;
32
117
  static names(): { [key: string]: string } {
33
118
  return {
119
+ captions: 'Captions',
120
+ docItems: 'DocItems',
34
121
  headings: 'Headings',
122
+ imageResources: 'ImageResources',
35
123
  pageNumbers: 'PageNumbers',
36
124
  shardContent: 'ShardContent',
37
125
  shardIndex: 'ShardIndex',
@@ -40,7 +128,10 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
40
128
 
41
129
  static types(): { [key: string]: any } {
42
130
  return {
131
+ captions: { 'type': 'array', 'itemType': 'string' },
132
+ docItems: { 'type': 'array', 'itemType': 'string' },
43
133
  headings: { 'type': 'array', 'itemType': 'string' },
134
+ imageResources: { 'type': 'array', 'itemType': DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources },
44
135
  pageNumbers: { 'type': 'array', 'itemType': 'string' },
45
136
  shardContent: 'string',
46
137
  shardIndex: 'number',
@@ -48,9 +139,18 @@ export class DescribeKnowledgeBaseFileShardsResponseBodyShards extends $dara.Mod
48
139
  }
49
140
 
50
141
  validate() {
142
+ if(Array.isArray(this.captions)) {
143
+ $dara.Model.validateArray(this.captions);
144
+ }
145
+ if(Array.isArray(this.docItems)) {
146
+ $dara.Model.validateArray(this.docItems);
147
+ }
51
148
  if(Array.isArray(this.headings)) {
52
149
  $dara.Model.validateArray(this.headings);
53
150
  }
151
+ if(Array.isArray(this.imageResources)) {
152
+ $dara.Model.validateArray(this.imageResources);
153
+ }
54
154
  if(Array.isArray(this.pageNumbers)) {
55
155
  $dara.Model.validateArray(this.pageNumbers);
56
156
  }
@@ -15,7 +15,7 @@ export class ModifyAIDBClusterModelRequest extends $dara.Model {
15
15
  DBClusterId?: string;
16
16
  /**
17
17
  * @remarks
18
- * The new customer-facing invocation name. If this parameter is not specified, the existing invocation name is retained.
18
+ * The new client-facing invocation name. If this parameter is not specified, the existing invocation name is retained.
19
19
  *
20
20
  * @example
21
21
  * my-flagship-chat
@@ -23,7 +23,7 @@ export class ModifyAIDBClusterModelRequest extends $dara.Model {
23
23
  displayModelName?: string;
24
24
  /**
25
25
  * @remarks
26
- * Specifies whether to only preview the change.
26
+ * Specifies whether to only preview the change without actually performing it.
27
27
  *
28
28
  * @example
29
29
  * true
@@ -49,6 +49,24 @@ export class ModifyAIDBClusterModelRequest extends $dara.Model {
49
49
  * cn-beijing
50
50
  */
51
51
  regionId?: string;
52
+ /**
53
+ * @remarks
54
+ * The restart mode for workers. Valid values:
55
+ * - inPlace
56
+ * - recreate
57
+ *
58
+ * @example
59
+ * inPlace
60
+ */
61
+ restartMode?: string;
62
+ /**
63
+ * @remarks
64
+ * The maximum number of workers to restart per batch within a single MSD. Valid values: 1 to 30. This parameter takes effect only when RestartMode is set to inPlace.
65
+ *
66
+ * @example
67
+ * 8
68
+ */
69
+ workerBatchSize?: number;
52
70
  static names(): { [key: string]: string } {
53
71
  return {
54
72
  DBClusterId: 'DBClusterId',
@@ -56,6 +74,8 @@ export class ModifyAIDBClusterModelRequest extends $dara.Model {
56
74
  dryRun: 'DryRun',
57
75
  modelName: 'ModelName',
58
76
  regionId: 'RegionId',
77
+ restartMode: 'RestartMode',
78
+ workerBatchSize: 'WorkerBatchSize',
59
79
  };
60
80
  }
61
81
 
@@ -66,6 +86,8 @@ export class ModifyAIDBClusterModelRequest extends $dara.Model {
66
86
  dryRun: 'boolean',
67
87
  modelName: 'string',
68
88
  regionId: 'string',
89
+ restartMode: 'string',
90
+ workerBatchSize: 'number',
69
91
  };
70
92
  }
71
93
 
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ModifyAIDBClusterModelResponseBody extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * Indicates whether the request is a dry run.
8
+ * Indicates whether the request is a dry-run request.
9
9
  *
10
10
  * @example
11
11
  * true
@@ -61,7 +61,7 @@ export class ModifyAIDBClusterModelResponseBody extends $dara.Model {
61
61
  totalBatches?: number;
62
62
  /**
63
63
  * @remarks
64
- * The number of affected model service instances.
64
+ * The number of affected model serving instances.
65
65
  *
66
66
  * @example
67
67
  * 2
@@ -69,7 +69,7 @@ export class ModifyAIDBClusterModelResponseBody extends $dara.Model {
69
69
  totalMsds?: number;
70
70
  /**
71
71
  * @remarks
72
- * The change warnings returned by the upstream service. The caller must display these warnings.
72
+ * The change warnings returned by the upstream. The caller must display these warnings.
73
73
  */
74
74
  warnings?: string[];
75
75
  static names(): { [key: string]: string } {
@@ -21,7 +21,7 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
21
21
  clientSecret?: string;
22
22
  /**
23
23
  * @remarks
24
- * The unique identifier of the knowledge base.
24
+ * The unique ID of the knowledge base.
25
25
  *
26
26
  * This parameter is required.
27
27
  *
@@ -41,7 +41,7 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
41
41
  linkId?: string;
42
42
  /**
43
43
  * @remarks
44
- * The MCP Server address for DingTalk documents.
44
+ * The DingTalk document MCP Server endpoint.
45
45
  *
46
46
  * @example
47
47
  * https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx789?key=d5e6fxxxxxx876
@@ -59,7 +59,7 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
59
59
  regionId?: string;
60
60
  /**
61
61
  * @remarks
62
- * The MCP Server address for DingTalk spreadsheets.
62
+ * The DingTalk spreadsheet MCP Server endpoint.
63
63
  *
64
64
  * @example
65
65
  * https://mcp-gw.dingtalk.com/server/1a2b3cxxxxxx567?key=d5e6fxxxxxx543
@@ -83,7 +83,15 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
83
83
  syncIntervalMinutes?: number;
84
84
  /**
85
85
  * @remarks
86
- * The DingTalk user ID for the operation.
86
+ * The new Lark user access token.
87
+ *
88
+ * @example
89
+ * ******
90
+ */
91
+ userAccessToken?: string;
92
+ /**
93
+ * @remarks
94
+ * The DingTalk user ID of the operator.
87
95
  *
88
96
  * @example
89
97
  * 123***56
@@ -100,6 +108,7 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
100
108
  sheetMcpEndpoint: 'SheetMcpEndpoint',
101
109
  syncEnabled: 'SyncEnabled',
102
110
  syncIntervalMinutes: 'SyncIntervalMinutes',
111
+ userAccessToken: 'UserAccessToken',
103
112
  userId: 'UserId',
104
113
  };
105
114
  }
@@ -115,6 +124,7 @@ export class UpdateKBSyncLinkRequest extends $dara.Model {
115
124
  sheetMcpEndpoint: 'string',
116
125
  syncEnabled: 'boolean',
117
126
  syncIntervalMinutes: 'number',
127
+ userAccessToken: 'string',
118
128
  userId: 'string',
119
129
  };
120
130
  }
@@ -21,7 +21,7 @@ export class UpdateKBSyncLinkResponseBody extends $dara.Model {
21
21
  requestId?: string;
22
22
  /**
23
23
  * @remarks
24
- * The scheduling time of the synchronization task.
24
+ * The scheduled time of the synchronization task.
25
25
  */
26
26
  syncSchedule?: string;
27
27
  static names(): { [key: string]: string } {
@@ -280,7 +280,9 @@ export { DescribeHistoryEventsResponseBodyItems } from './DescribeHistoryEventsR
280
280
  export { DescribeHistoryTasksResponseBodyItems } from './DescribeHistoryTasksResponseBody';
281
281
  export { DescribeHistoryTasksStatResponseBodyItems } from './DescribeHistoryTasksStatResponseBody';
282
282
  export { DescribeKBSyncLinksResponseBodyItems } from './DescribeKbsyncLinksResponseBody';
283
+ export { DescribeKnowledgeBaseAnswerResponseBodySourcesImageResources } from './DescribeKnowledgeBaseAnswerResponseBody';
283
284
  export { DescribeKnowledgeBaseAnswerResponseBodySources } from './DescribeKnowledgeBaseAnswerResponseBody';
285
+ export { DescribeKnowledgeBaseFileShardsResponseBodyShardsImageResources } from './DescribeKnowledgeBaseFileShardsResponseBody';
284
286
  export { DescribeKnowledgeBaseFileShardsResponseBodyShards } from './DescribeKnowledgeBaseFileShardsResponseBody';
285
287
  export { DescribeKnowledgeBaseFilesResponseBodyItemsShardingStrategyConfigDefaultStrategyParameters } from './DescribeKnowledgeBaseFilesResponseBody';
286
288
  export { DescribeKnowledgeBaseFilesResponseBodyItemsShardingStrategyConfigDefaultStrategy } from './DescribeKnowledgeBaseFilesResponseBody';