@alicloud/aidge20260428 5.9.0 → 5.10.1

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 (160) hide show
  1. package/dist/client.d.ts +324 -264
  2. package/dist/client.js +488 -264
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
  5. package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
  6. package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
  7. package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
  8. package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
  9. package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
  10. package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
  11. package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
  12. package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
  13. package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
  14. package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
  15. package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
  16. package/dist/models/AiTryOnRequest.d.ts +4 -4
  17. package/dist/models/AiTryOnResponseBody.d.ts +10 -10
  18. package/dist/models/AiTryOnResponseBody.js +0 -2
  19. package/dist/models/AiTryOnResponseBody.js.map +1 -1
  20. package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
  21. package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
  22. package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
  23. package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
  24. package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
  25. package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
  26. package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
  27. package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
  28. package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
  29. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
  30. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
  31. package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
  32. package/dist/models/ImageMattingAsyncRequest.d.ts +9 -1
  33. package/dist/models/ImageMattingAsyncRequest.js +2 -0
  34. package/dist/models/ImageMattingAsyncRequest.js.map +1 -1
  35. package/dist/models/ImageMattingAsyncResponseBody.d.ts +5 -5
  36. package/dist/models/ImageRecognitionAsyncRequest.d.ts +33 -25
  37. package/dist/models/ImageRecognitionAsyncRequest.js +2 -0
  38. package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -1
  39. package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +6 -6
  40. package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +33 -25
  41. package/dist/models/ImageRecognitionAsyncShrinkRequest.js +2 -0
  42. package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -1
  43. package/dist/models/ImageRemovalProAsyncRequest.d.ts +10 -1
  44. package/dist/models/ImageRemovalProAsyncRequest.js +2 -0
  45. package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -1
  46. package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +7 -5
  47. package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -1
  48. package/dist/models/ImageRemoveAsyncRequest.d.ts +25 -6
  49. package/dist/models/ImageRemoveAsyncRequest.js +2 -0
  50. package/dist/models/ImageRemoveAsyncRequest.js.map +1 -1
  51. package/dist/models/ImageRemoveAsyncResponseBody.d.ts +6 -4
  52. package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -1
  53. package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +25 -6
  54. package/dist/models/ImageRemoveAsyncShrinkRequest.js +2 -0
  55. package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -1
  56. package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +17 -9
  57. package/dist/models/ImageTranslationPlusAsyncRequest.js +2 -0
  58. package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -1
  59. package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +5 -5
  60. package/dist/models/ImageTranslationProAsyncRequest.d.ts +15 -7
  61. package/dist/models/ImageTranslationProAsyncRequest.js +2 -0
  62. package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -1
  63. package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +4 -4
  64. package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +10 -2
  65. package/dist/models/ImageTranslationStandardAsyncRequest.js +2 -0
  66. package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -1
  67. package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +4 -4
  68. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +13 -7
  69. package/dist/models/QueryAsyncTaskResultResponseBody.js +2 -0
  70. package/dist/models/QueryAsyncTaskResultResponseBody.js.map +1 -1
  71. package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
  72. package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
  73. package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
  74. package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
  75. package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
  76. package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
  77. package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
  78. package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
  79. package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
  80. package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
  81. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
  82. package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
  83. package/dist/models/SizeChartExtractAsyncRequest.d.ts +9 -1
  84. package/dist/models/SizeChartExtractAsyncRequest.js +2 -0
  85. package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -1
  86. package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +5 -5
  87. package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +9 -1
  88. package/dist/models/SizeChartExtractAsyncShrinkRequest.js +2 -0
  89. package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -1
  90. package/dist/models/TextTranslateAsyncRequest.d.ts +28 -0
  91. package/dist/models/TextTranslateAsyncRequest.js.map +1 -1
  92. package/dist/models/TextTranslateAsyncResponseBody.d.ts +19 -0
  93. package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -1
  94. package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +28 -0
  95. package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -1
  96. package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
  97. package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
  98. package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
  99. package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
  100. package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
  101. package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
  102. package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
  103. package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
  104. package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
  105. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
  106. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
  107. package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
  108. package/dist/models/VideoTranslationRequest.d.ts +12 -12
  109. package/dist/models/VideoTranslationResponseBody.d.ts +1 -1
  110. package/dist/models/VideoTranslationShrinkRequest.d.ts +12 -12
  111. package/dist/models/model.d.ts +26 -0
  112. package/dist/models/model.js +59 -6
  113. package/dist/models/model.js.map +1 -1
  114. package/package.json +1 -1
  115. package/src/client.ts +524 -268
  116. package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
  117. package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
  118. package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
  119. package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
  120. package/src/models/AiTryOnRequest.ts +4 -4
  121. package/src/models/AiTryOnResponseBody.ts +10 -10
  122. package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
  123. package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
  124. package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
  125. package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
  126. package/src/models/ImageMattingAsyncRequest.ts +11 -1
  127. package/src/models/ImageMattingAsyncResponseBody.ts +5 -5
  128. package/src/models/ImageRecognitionAsyncRequest.ts +35 -25
  129. package/src/models/ImageRecognitionAsyncResponseBody.ts +6 -6
  130. package/src/models/ImageRecognitionAsyncShrinkRequest.ts +35 -25
  131. package/src/models/ImageRemovalProAsyncRequest.ts +12 -1
  132. package/src/models/ImageRemovalProAsyncResponseBody.ts +7 -5
  133. package/src/models/ImageRemoveAsyncRequest.ts +27 -6
  134. package/src/models/ImageRemoveAsyncResponseBody.ts +6 -4
  135. package/src/models/ImageRemoveAsyncShrinkRequest.ts +27 -6
  136. package/src/models/ImageTranslationPlusAsyncRequest.ts +19 -9
  137. package/src/models/ImageTranslationPlusAsyncResponseBody.ts +5 -5
  138. package/src/models/ImageTranslationProAsyncRequest.ts +17 -7
  139. package/src/models/ImageTranslationProAsyncResponseBody.ts +4 -4
  140. package/src/models/ImageTranslationStandardAsyncRequest.ts +12 -2
  141. package/src/models/ImageTranslationStandardAsyncResponseBody.ts +4 -4
  142. package/src/models/QueryAsyncTaskResultResponseBody.ts +15 -7
  143. package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
  144. package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
  145. package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
  146. package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
  147. package/src/models/SizeChartExtractAsyncRequest.ts +11 -1
  148. package/src/models/SizeChartExtractAsyncResponseBody.ts +5 -5
  149. package/src/models/SizeChartExtractAsyncShrinkRequest.ts +11 -1
  150. package/src/models/TextTranslateAsyncRequest.ts +28 -0
  151. package/src/models/TextTranslateAsyncResponseBody.ts +19 -0
  152. package/src/models/TextTranslateAsyncShrinkRequest.ts +28 -0
  153. package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
  154. package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
  155. package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
  156. package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
  157. package/src/models/VideoTranslationRequest.ts +12 -12
  158. package/src/models/VideoTranslationResponseBody.ts +1 -1
  159. package/src/models/VideoTranslationShrinkRequest.ts +12 -12
  160. package/src/models/model.ts +26 -0
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class ImageTranslationStandardAsyncRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The business order ID of the caller. It is recorded upon acceptance and returned as-is when querying the asynchronous task result.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
6
14
  /**
7
15
  * @remarks
8
16
  * The intervention glossary.
@@ -23,7 +31,7 @@ export class ImageTranslationStandardAsyncRequest extends $dara.Model {
23
31
  imageUrl?: string;
24
32
  /**
25
33
  * @remarks
26
- * Specifies whether to include the product area in the translation.
34
+ * Specifies whether to include the translation of the product area.
27
35
  *
28
36
  * @example
29
37
  * false
@@ -51,7 +59,7 @@ export class ImageTranslationStandardAsyncRequest extends $dara.Model {
51
59
  targetLanguage?: string;
52
60
  /**
53
61
  * @remarks
54
- * Specifies whether to translate brand text in the product area.
62
+ * Specifies whether to translate the brand text in the product area.
55
63
  *
56
64
  * @example
57
65
  * false
@@ -67,6 +75,7 @@ export class ImageTranslationStandardAsyncRequest extends $dara.Model {
67
75
  useImageEditor?: boolean;
68
76
  static names(): { [key: string]: string } {
69
77
  return {
78
+ bizId: 'BizId',
70
79
  glossary: 'Glossary',
71
80
  imageUrl: 'ImageUrl',
72
81
  includingProductArea: 'IncludingProductArea',
@@ -79,6 +88,7 @@ export class ImageTranslationStandardAsyncRequest extends $dara.Model {
79
88
 
80
89
  static types(): { [key: string]: any } {
81
90
  return {
91
+ bizId: 'string',
82
92
  glossary: 'string',
83
93
  imageUrl: 'string',
84
94
  includingProductArea: 'boolean',
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class ImageTranslationStandardAsyncResponseBodyData extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
- * The ID of the task used to query the asynchronous task result.
8
+ * The task ID used to query the asynchronous task result.
9
9
  *
10
10
  * @example
11
11
  * TID_550e8400-e29b-41d4-a716-446655440000
@@ -35,7 +35,7 @@ export class ImageTranslationStandardAsyncResponseBodyData extends $dara.Model {
35
35
  export class ImageTranslationStandardAsyncResponseBody extends $dara.Model {
36
36
  /**
37
37
  * @remarks
38
- * The error code. This parameter is not returned for successful calls.
38
+ * The error code. This parameter is not returned for normal calls.
39
39
  *
40
40
  * @example
41
41
  * 200
@@ -43,12 +43,12 @@ export class ImageTranslationStandardAsyncResponseBody extends $dara.Model {
43
43
  code?: string;
44
44
  /**
45
45
  * @remarks
46
- * The submission result of the asynchronous task for Image Translation Standard Edition.
46
+ * The asynchronous task submission result of Image Translation Standard Edition.
47
47
  */
48
48
  data?: ImageTranslationStandardAsyncResponseBodyData;
49
49
  /**
50
50
  * @remarks
51
- * The error message. This parameter is not returned for successful calls.
51
+ * The error message. This parameter is not returned for normal calls.
52
52
  *
53
53
  * @example
54
54
  * OK
@@ -3,6 +3,14 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The business ID.
9
+ *
10
+ * @example
11
+ * order-20260928-001
12
+ */
13
+ bizId?: string;
6
14
  /**
7
15
  * @remarks
8
16
  * The task result.
@@ -21,7 +29,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
21
29
  status?: string;
22
30
  /**
23
31
  * @remarks
24
- * The downstream task ID.
32
+ * The ID of the downstream task.
25
33
  *
26
34
  * @example
27
35
  * task-xxxxx
@@ -34,6 +42,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
34
42
  usageMap?: { [key: string]: any };
35
43
  static names(): { [key: string]: string } {
36
44
  return {
45
+ bizId: 'BizId',
37
46
  result: 'Result',
38
47
  status: 'Status',
39
48
  taskId: 'TaskId',
@@ -43,6 +52,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
43
52
 
44
53
  static types(): { [key: string]: any } {
45
54
  return {
55
+ bizId: 'string',
46
56
  result: 'string',
47
57
  status: 'string',
48
58
  taskId: 'string',
@@ -65,7 +75,7 @@ export class QueryAsyncTaskResultResponseBodyData extends $dara.Model {
65
75
  export class QueryAsyncTaskResultResponseBody extends $dara.Model {
66
76
  /**
67
77
  * @remarks
68
- * The error code. This parameter is not returned if the call is successful.
78
+ * The error code. This parameter is not returned when the call is successful.
69
79
  *
70
80
  * @example
71
81
  * 200
@@ -73,12 +83,12 @@ export class QueryAsyncTaskResultResponseBody extends $dara.Model {
73
83
  code?: string;
74
84
  /**
75
85
  * @remarks
76
- * The asynchronous task result.
86
+ * The result of the asynchronous task.
77
87
  */
78
88
  data?: QueryAsyncTaskResultResponseBodyData;
79
89
  /**
80
90
  * @remarks
81
- * The error message. This parameter is not returned if the call is successful.
91
+ * The error message. This parameter is not returned when the call is successful.
82
92
  *
83
93
  * @example
84
94
  * OK
@@ -94,9 +104,7 @@ export class QueryAsyncTaskResultResponseBody extends $dara.Model {
94
104
  requestId?: string;
95
105
  /**
96
106
  * @remarks
97
- * Indicates whether the call is successful. Valid values:
98
- * - true: The call is successful.
99
- * - false: The call failed.
107
+ * Indicates whether the call is successful. Valid values: true: The call is successful. false: The call fails.
100
108
  *
101
109
  * @example
102
110
  * True
@@ -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 QueryDisplayKnowledgeRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The page number. Default value: 1.
9
+ *
10
+ * @example
11
+ * 10
12
+ */
13
+ pageNum?: number;
14
+ /**
15
+ * @remarks
16
+ * The number of entries per page. Default value: 20. Maximum value: 100.
17
+ *
18
+ * @example
19
+ * 50
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * @remarks
24
+ * The knowledge base ID.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * rag_xxx
30
+ */
31
+ ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The SKU ID for exact match.
35
+ *
36
+ * @example
37
+ * sku-001
38
+ */
39
+ skuId?: string;
40
+ /**
41
+ * @remarks
42
+ * The keyword in the SKU name.
43
+ *
44
+ * @example
45
+ * Product front image
46
+ */
47
+ skuName?: string;
48
+ /**
49
+ * @remarks
50
+ * The list of record statuses. Valid values: UPDATING, EMBEDDED, and FAILED.
51
+ */
52
+ statuses?: string[];
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ pageNum: 'PageNum',
56
+ pageSize: 'PageSize',
57
+ ragId: 'RagId',
58
+ skuId: 'SkuId',
59
+ skuName: 'SkuName',
60
+ statuses: 'Statuses',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ pageNum: 'number',
67
+ pageSize: 'number',
68
+ ragId: 'string',
69
+ skuId: 'string',
70
+ skuName: 'string',
71
+ statuses: { 'type': 'array', 'itemType': 'string' },
72
+ };
73
+ }
74
+
75
+ validate() {
76
+ if(Array.isArray(this.statuses)) {
77
+ $dara.Model.validateArray(this.statuses);
78
+ }
79
+ super.validate();
80
+ }
81
+
82
+ constructor(map?: { [key: string]: any }) {
83
+ super(map);
84
+ }
85
+ }
86
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { QueryDisplayKnowledgeResponseBody } from "./QueryDisplayKnowledgeResponseBody";
4
+
5
+
6
+ export class QueryDisplayKnowledgeResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: QueryDisplayKnowledgeResponseBody;
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: QueryDisplayKnowledgeResponseBody,
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,326 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryDisplayKnowledgeResponseBodyDataRecords extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The description of the failure cause. This parameter is returned only when the status is FAILED.
9
+ *
10
+ * @example
11
+ * Image is inaccessible
12
+ */
13
+ failureMessage?: string;
14
+ /**
15
+ * @remarks
16
+ * The code of the failure cause. This parameter is returned only when the status is FAILED.
17
+ *
18
+ * @example
19
+ * Image is inaccessible
20
+ */
21
+ failureReason?: string;
22
+ /**
23
+ * @remarks
24
+ * The last modified time.
25
+ *
26
+ * @example
27
+ * 2026-08-01T15:53:46Z
28
+ */
29
+ gmtModified?: string;
30
+ /**
31
+ * @remarks
32
+ * The 24-hour signed URL of the transferred image.
33
+ *
34
+ * @example
35
+ * https://xxx/2190149752-0-cib.jpg
36
+ */
37
+ imageUrl?: string;
38
+ /**
39
+ * @remarks
40
+ * The expiration time of the signed URL.
41
+ *
42
+ * @example
43
+ * Date
44
+ */
45
+ imageUrlExpireTime?: string;
46
+ /**
47
+ * @remarks
48
+ * The record ID.
49
+ *
50
+ * @example
51
+ * 4410879640480000
52
+ */
53
+ recordId?: number;
54
+ /**
55
+ * @remarks
56
+ * SKU ID
57
+ *
58
+ * @example
59
+ * sku-001
60
+ */
61
+ skuId?: string;
62
+ /**
63
+ * @remarks
64
+ * The SKU name.
65
+ *
66
+ * @example
67
+ * Product side image
68
+ */
69
+ skuName?: string;
70
+ /**
71
+ * @remarks
72
+ * The record status.
73
+ *
74
+ * @example
75
+ * UPDATING - Updating
76
+ * EMBEDDED - Vectorization completed
77
+ * FAILED - Processing failed
78
+ */
79
+ status?: string;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ failureMessage: 'FailureMessage',
83
+ failureReason: 'FailureReason',
84
+ gmtModified: 'GmtModified',
85
+ imageUrl: 'ImageUrl',
86
+ imageUrlExpireTime: 'ImageUrlExpireTime',
87
+ recordId: 'RecordId',
88
+ skuId: 'SkuId',
89
+ skuName: 'SkuName',
90
+ status: 'Status',
91
+ };
92
+ }
93
+
94
+ static types(): { [key: string]: any } {
95
+ return {
96
+ failureMessage: 'string',
97
+ failureReason: 'string',
98
+ gmtModified: 'string',
99
+ imageUrl: 'string',
100
+ imageUrlExpireTime: 'string',
101
+ recordId: 'number',
102
+ skuId: 'string',
103
+ skuName: 'string',
104
+ status: 'string',
105
+ };
106
+ }
107
+
108
+ validate() {
109
+ super.validate();
110
+ }
111
+
112
+ constructor(map?: { [key: string]: any }) {
113
+ super(map);
114
+ }
115
+ }
116
+
117
+ export class QueryDisplayKnowledgeResponseBodyData extends $dara.Model {
118
+ /**
119
+ * @remarks
120
+ * The business error code.
121
+ *
122
+ * @example
123
+ * Success
124
+ */
125
+ errorCode?: string;
126
+ /**
127
+ * @remarks
128
+ * The business error message.
129
+ *
130
+ * @example
131
+ * Success
132
+ */
133
+ errorMessage?: string;
134
+ /**
135
+ * @remarks
136
+ * The knowledge base status.
137
+ *
138
+ * @example
139
+ * AVAILABLE - Available
140
+ */
141
+ knowledgeBaseStatus?: string;
142
+ /**
143
+ * @remarks
144
+ * The page number.
145
+ *
146
+ * @example
147
+ * 10
148
+ */
149
+ pageNum?: number;
150
+ /**
151
+ * @remarks
152
+ * The number of entries per page.
153
+ *
154
+ * @example
155
+ * 10
156
+ */
157
+ pageSize?: number;
158
+ /**
159
+ * @remarks
160
+ * The knowledge base ID.
161
+ *
162
+ * @example
163
+ * rag_xxx
164
+ */
165
+ ragId?: string;
166
+ /**
167
+ * @remarks
168
+ * The records on the current page.
169
+ */
170
+ records?: QueryDisplayKnowledgeResponseBodyDataRecords[];
171
+ /**
172
+ * @remarks
173
+ * Indicates whether the business processing is successful.
174
+ *
175
+ * @example
176
+ * True
177
+ */
178
+ success?: boolean;
179
+ /**
180
+ * @remarks
181
+ * The asynchronous task ID. This parameter is empty for synchronous API operations.
182
+ *
183
+ * @example
184
+ * a8323ada-a196-9061-976f-90e38b27323a
185
+ */
186
+ taskId?: string;
187
+ /**
188
+ * @remarks
189
+ * The total number of records.
190
+ *
191
+ * @example
192
+ * 17
193
+ */
194
+ total?: number;
195
+ /**
196
+ * @remarks
197
+ * The total number of pages.
198
+ *
199
+ * @example
200
+ * 20
201
+ */
202
+ totalPage?: number;
203
+ /**
204
+ * @remarks
205
+ * The usage information. This parameter is empty for free API operations.
206
+ */
207
+ usageMap?: { [key: string]: number };
208
+ static names(): { [key: string]: string } {
209
+ return {
210
+ errorCode: 'ErrorCode',
211
+ errorMessage: 'ErrorMessage',
212
+ knowledgeBaseStatus: 'KnowledgeBaseStatus',
213
+ pageNum: 'PageNum',
214
+ pageSize: 'PageSize',
215
+ ragId: 'RagId',
216
+ records: 'Records',
217
+ success: 'Success',
218
+ taskId: 'TaskId',
219
+ total: 'Total',
220
+ totalPage: 'TotalPage',
221
+ usageMap: 'UsageMap',
222
+ };
223
+ }
224
+
225
+ static types(): { [key: string]: any } {
226
+ return {
227
+ errorCode: 'string',
228
+ errorMessage: 'string',
229
+ knowledgeBaseStatus: 'string',
230
+ pageNum: 'number',
231
+ pageSize: 'number',
232
+ ragId: 'string',
233
+ records: { 'type': 'array', 'itemType': QueryDisplayKnowledgeResponseBodyDataRecords },
234
+ success: 'boolean',
235
+ taskId: 'string',
236
+ total: 'number',
237
+ totalPage: 'number',
238
+ usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
239
+ };
240
+ }
241
+
242
+ validate() {
243
+ if(Array.isArray(this.records)) {
244
+ $dara.Model.validateArray(this.records);
245
+ }
246
+ if(this.usageMap) {
247
+ $dara.Model.validateMap(this.usageMap);
248
+ }
249
+ super.validate();
250
+ }
251
+
252
+ constructor(map?: { [key: string]: any }) {
253
+ super(map);
254
+ }
255
+ }
256
+
257
+ export class QueryDisplayKnowledgeResponseBody extends $dara.Model {
258
+ /**
259
+ * @remarks
260
+ * The error code.
261
+ *
262
+ * @example
263
+ * success
264
+ */
265
+ code?: string;
266
+ /**
267
+ * @remarks
268
+ * The query result of the display knowledge base content.
269
+ */
270
+ data?: QueryDisplayKnowledgeResponseBodyData;
271
+ /**
272
+ * @remarks
273
+ * The returned message or failure description.
274
+ *
275
+ * @example
276
+ * Success
277
+ */
278
+ message?: string;
279
+ /**
280
+ * @remarks
281
+ * The request ID.
282
+ *
283
+ * @example
284
+ * 70CBEFDF-BB17-1EB3-8A21-569F3124738F
285
+ */
286
+ requestId?: string;
287
+ /**
288
+ * @remarks
289
+ * Indicates whether the call is successful.
290
+ *
291
+ * @example
292
+ * True
293
+ */
294
+ success?: boolean;
295
+ static names(): { [key: string]: string } {
296
+ return {
297
+ code: 'Code',
298
+ data: 'Data',
299
+ message: 'Message',
300
+ requestId: 'RequestId',
301
+ success: 'Success',
302
+ };
303
+ }
304
+
305
+ static types(): { [key: string]: any } {
306
+ return {
307
+ code: 'string',
308
+ data: QueryDisplayKnowledgeResponseBodyData,
309
+ message: 'string',
310
+ requestId: 'string',
311
+ success: 'boolean',
312
+ };
313
+ }
314
+
315
+ validate() {
316
+ if(this.data && typeof (this.data as any).validate === 'function') {
317
+ (this.data as any).validate();
318
+ }
319
+ super.validate();
320
+ }
321
+
322
+ constructor(map?: { [key: string]: any }) {
323
+ super(map);
324
+ }
325
+ }
326
+
@@ -0,0 +1,83 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class QueryDisplayKnowledgeShrinkRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The page number. Default value: 1.
9
+ *
10
+ * @example
11
+ * 10
12
+ */
13
+ pageNum?: number;
14
+ /**
15
+ * @remarks
16
+ * The number of entries per page. Default value: 20. Maximum value: 100.
17
+ *
18
+ * @example
19
+ * 50
20
+ */
21
+ pageSize?: number;
22
+ /**
23
+ * @remarks
24
+ * The knowledge base ID.
25
+ *
26
+ * This parameter is required.
27
+ *
28
+ * @example
29
+ * rag_xxx
30
+ */
31
+ ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The SKU ID for exact match.
35
+ *
36
+ * @example
37
+ * sku-001
38
+ */
39
+ skuId?: string;
40
+ /**
41
+ * @remarks
42
+ * The keyword in the SKU name.
43
+ *
44
+ * @example
45
+ * Product front image
46
+ */
47
+ skuName?: string;
48
+ /**
49
+ * @remarks
50
+ * The list of record statuses. Valid values: UPDATING, EMBEDDED, and FAILED.
51
+ */
52
+ statusesShrink?: string;
53
+ static names(): { [key: string]: string } {
54
+ return {
55
+ pageNum: 'PageNum',
56
+ pageSize: 'PageSize',
57
+ ragId: 'RagId',
58
+ skuId: 'SkuId',
59
+ skuName: 'SkuName',
60
+ statusesShrink: 'Statuses',
61
+ };
62
+ }
63
+
64
+ static types(): { [key: string]: any } {
65
+ return {
66
+ pageNum: 'number',
67
+ pageSize: 'number',
68
+ ragId: 'string',
69
+ skuId: 'string',
70
+ skuName: 'string',
71
+ statusesShrink: 'string',
72
+ };
73
+ }
74
+
75
+ validate() {
76
+ super.validate();
77
+ }
78
+
79
+ constructor(map?: { [key: string]: any }) {
80
+ super(map);
81
+ }
82
+ }
83
+