@alicloud/aidge20260428 1.0.0 → 2.0.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 (39) hide show
  1. package/dist/client.d.ts +150 -16
  2. package/dist/client.js +235 -20
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationPlusRequest.d.ts +75 -0
  5. package/dist/models/ImageTranslationPlusRequest.js +70 -0
  6. package/dist/models/ImageTranslationPlusRequest.js.map +1 -0
  7. package/dist/models/ImageTranslationPlusResponse.d.ts +19 -0
  8. package/dist/models/ImageTranslationPlusResponse.js +69 -0
  9. package/dist/models/ImageTranslationPlusResponse.js.map +1 -0
  10. package/dist/models/ImageTranslationPlusResponseBody.d.ts +72 -0
  11. package/dist/models/ImageTranslationPlusResponseBody.js +88 -0
  12. package/dist/models/ImageTranslationPlusResponseBody.js.map +1 -0
  13. package/dist/models/ImageTranslationProRequest.d.ts +8 -15
  14. package/dist/models/ImageTranslationProRequest.js +2 -2
  15. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  16. package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
  17. package/dist/models/MaterialInspectionRequest.d.ts +41 -0
  18. package/dist/models/MaterialInspectionRequest.js +66 -0
  19. package/dist/models/MaterialInspectionRequest.js.map +1 -0
  20. package/dist/models/MaterialInspectionResponse.d.ts +19 -0
  21. package/dist/models/MaterialInspectionResponse.js +69 -0
  22. package/dist/models/MaterialInspectionResponse.js.map +1 -0
  23. package/dist/models/MaterialInspectionResponseBody.d.ts +109 -0
  24. package/dist/models/MaterialInspectionResponseBody.js +147 -0
  25. package/dist/models/MaterialInspectionResponseBody.js.map +1 -0
  26. package/dist/models/model.d.ts +10 -0
  27. package/dist/models/model.js +23 -2
  28. package/dist/models/model.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/client.ts +252 -21
  31. package/src/models/ImageTranslationPlusRequest.ts +100 -0
  32. package/src/models/ImageTranslationPlusResponse.ts +40 -0
  33. package/src/models/ImageTranslationPlusResponseBody.ts +106 -0
  34. package/src/models/ImageTranslationProRequest.ts +10 -17
  35. package/src/models/ImageTranslationProResponseBody.ts +55 -55
  36. package/src/models/MaterialInspectionRequest.ts +62 -0
  37. package/src/models/MaterialInspectionResponse.ts +40 -0
  38. package/src/models/MaterialInspectionResponseBody.ts +182 -0
  39. package/src/models/model.ts +10 -0
package/dist/client.d.ts CHANGED
@@ -730,18 +730,89 @@ export default class Client extends OpenApi {
730
730
  */
731
731
  imageRemove(request: $_model.ImageRemoveRequest): Promise<$_model.ImageRemoveResponse>;
732
732
  /**
733
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
733
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
734
734
  *
735
735
  * @remarks
736
736
  * ## Product Introduction
737
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
738
- * ## Scenarios
739
- * E-commerce product images, marketing images, and images for various other scenarios.
737
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
738
+ * Supported language pairs:
739
+ * | **No.** | **Source Language** | | **Target Language** | |
740
+ * | --- | --- | --- | --- | --- |
741
+ * | | Language Code | Language Name | Language Code | Language Name |
742
+ * | 1 | en | English | ar | Arabic |
743
+ * | 2 | en | English | id | Indonesian |
744
+ * | 3 | en | English | th | Thai |
745
+ * | 4 | en | English | ko | Korean |
746
+ * | 5 | en | English | ja | Japanese |
747
+ * | 6 | en | English | vi | Vietnamese |
748
+ * | 7 | en | English | ru | Russian |
749
+ * | 8 | en | English | tl | Filipino |
750
+ * | 9 | en | English | es | Spanish |
751
+ * | 10 | en | English | fr | French |
752
+ * | 11 | en | English | de | German |
753
+ * | 12 | en | English | pl | Polish |.
754
+ * ## Common scenarios
755
+ * Main product images and detail images for cross-border e-commerce.
756
+ * ## Functions and features
757
+ * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
758
+ *
759
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
760
+ *
761
+ * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
762
+ *
763
+ * @param request - ImageTranslationPlusRequest
764
+ * @param runtime - runtime options for this request RuntimeOptions
765
+ * @returns ImageTranslationPlusResponse
766
+ */
767
+ imageTranslationPlusWithOptions(request: $_model.ImageTranslationPlusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusResponse>;
768
+ /**
769
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
770
+ *
771
+ * @remarks
772
+ * ## Product Introduction
773
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
774
+ * Supported language pairs:
775
+ * | **No.** | **Source Language** | | **Target Language** | |
776
+ * | --- | --- | --- | --- | --- |
777
+ * | | Language Code | Language Name | Language Code | Language Name |
778
+ * | 1 | en | English | ar | Arabic |
779
+ * | 2 | en | English | id | Indonesian |
780
+ * | 3 | en | English | th | Thai |
781
+ * | 4 | en | English | ko | Korean |
782
+ * | 5 | en | English | ja | Japanese |
783
+ * | 6 | en | English | vi | Vietnamese |
784
+ * | 7 | en | English | ru | Russian |
785
+ * | 8 | en | English | tl | Filipino |
786
+ * | 9 | en | English | es | Spanish |
787
+ * | 10 | en | English | fr | French |
788
+ * | 11 | en | English | de | German |
789
+ * | 12 | en | English | pl | Polish |.
790
+ * ## Common scenarios
791
+ * Main product images and detail images for cross-border e-commerce.
792
+ * ## Functions and features
793
+ * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
794
+ *
795
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
796
+ *
797
+ * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
798
+ *
799
+ * @param request - ImageTranslationPlusRequest
800
+ * @returns ImageTranslationPlusResponse
801
+ */
802
+ imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse>;
803
+ /**
804
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
805
+ *
806
+ * @remarks
807
+ * ## Product Introduction
808
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
809
+ * ## Applicable Scenarios
810
+ * E-commerce product images, marketing images, and images for various other scenarios
740
811
  * ## Features
741
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
742
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
743
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
744
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
812
+ * - **Product Subject Information Protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded product names.
813
+ * - **Post-translation Secondary Editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrating with an image editor. The editor SDK package is not yet publicly available; please follow platform notifications.
814
+ * - **Brand Name Protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
815
+ * - **Translation Intervention Support**: Allows customization of translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to achieve this, meeting your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. For additional needs, please contact the platform for assistance.
745
816
  *
746
817
  * @param request - ImageTranslationProRequest
747
818
  * @param runtime - runtime options for this request RuntimeOptions
@@ -749,18 +820,18 @@ export default class Client extends OpenApi {
749
820
  */
750
821
  imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse>;
751
822
  /**
752
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
823
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
753
824
  *
754
825
  * @remarks
755
826
  * ## Product Introduction
756
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
757
- * ## Scenarios
758
- * E-commerce product images, marketing images, and images for various other scenarios.
827
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
828
+ * ## Applicable Scenarios
829
+ * E-commerce product images, marketing images, and images for various other scenarios
759
830
  * ## Features
760
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
761
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
762
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
763
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
831
+ * - **Product Subject Information Protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded product names.
832
+ * - **Post-translation Secondary Editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrating with an image editor. The editor SDK package is not yet publicly available; please follow platform notifications.
833
+ * - **Brand Name Protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
834
+ * - **Translation Intervention Support**: Allows customization of translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to achieve this, meeting your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. For additional needs, please contact the platform for assistance.
764
835
  *
765
836
  * @param request - ImageTranslationProRequest
766
837
  * @returns ImageTranslationProResponse
@@ -824,6 +895,69 @@ export default class Client extends OpenApi {
824
895
  * @returns LanguageDetectResponse
825
896
  */
826
897
  languageDetect(request: $_model.LanguageDetectRequest): Promise<$_model.LanguageDetectResponse>;
898
+ /**
899
+ * 物料陈列检测
900
+ *
901
+ * @remarks
902
+ * ## **适用场景**
903
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
904
+ *
905
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
906
+ *
907
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
908
+ *
909
+ * ## **功能介绍**
910
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
911
+ *
912
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
913
+ *
914
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
915
+ *
916
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
917
+ *
918
+ * ## **调用方式**
919
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
920
+ *
921
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
922
+ *
923
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
924
+ *
925
+ * @param request - MaterialInspectionRequest
926
+ * @param runtime - runtime options for this request RuntimeOptions
927
+ * @returns MaterialInspectionResponse
928
+ */
929
+ materialInspectionWithOptions(request: $_model.MaterialInspectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MaterialInspectionResponse>;
930
+ /**
931
+ * 物料陈列检测
932
+ *
933
+ * @remarks
934
+ * ## **适用场景**
935
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
936
+ *
937
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
938
+ *
939
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
940
+ *
941
+ * ## **功能介绍**
942
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
943
+ *
944
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
945
+ *
946
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
947
+ *
948
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
949
+ *
950
+ * ## **调用方式**
951
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
952
+ *
953
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
954
+ *
955
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
956
+ *
957
+ * @param request - MaterialInspectionRequest
958
+ * @returns MaterialInspectionResponse
959
+ */
960
+ materialInspection(request: $_model.MaterialInspectionRequest): Promise<$_model.MaterialInspectionResponse>;
827
961
  /**
828
962
  * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
829
963
  *
package/dist/client.js CHANGED
@@ -48,7 +48,10 @@ __exportStar(require("./models/model"), exports);
48
48
  class Client extends openapi_core_1.default {
49
49
  constructor(config) {
50
50
  super(config);
51
- this._endpointRule = "";
51
+ this._endpointRule = "regional";
52
+ this._endpointMap = {
53
+ 'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
54
+ };
52
55
  this.checkConfig(config);
53
56
  this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
54
57
  }
@@ -1178,18 +1181,131 @@ class Client extends openapi_core_1.default {
1178
1181
  return await this.imageRemoveWithOptions(request, runtime);
1179
1182
  }
1180
1183
  /**
1181
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1184
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
1182
1185
  *
1183
1186
  * @remarks
1184
1187
  * ## Product Introduction
1185
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1186
- * ## Scenarios
1187
- * E-commerce product images, marketing images, and images for various other scenarios.
1188
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
1189
+ * Supported language pairs:
1190
+ * | **No.** | **Source Language** | | **Target Language** | |
1191
+ * | --- | --- | --- | --- | --- |
1192
+ * | | Language Code | Language Name | Language Code | Language Name |
1193
+ * | 1 | en | English | ar | Arabic |
1194
+ * | 2 | en | English | id | Indonesian |
1195
+ * | 3 | en | English | th | Thai |
1196
+ * | 4 | en | English | ko | Korean |
1197
+ * | 5 | en | English | ja | Japanese |
1198
+ * | 6 | en | English | vi | Vietnamese |
1199
+ * | 7 | en | English | ru | Russian |
1200
+ * | 8 | en | English | tl | Filipino |
1201
+ * | 9 | en | English | es | Spanish |
1202
+ * | 10 | en | English | fr | French |
1203
+ * | 11 | en | English | de | German |
1204
+ * | 12 | en | English | pl | Polish |.
1205
+ * ## Common scenarios
1206
+ * Main product images and detail images for cross-border e-commerce.
1207
+ * ## Functions and features
1208
+ * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
1209
+ *
1210
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1211
+ *
1212
+ * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1213
+ *
1214
+ * @param request - ImageTranslationPlusRequest
1215
+ * @param runtime - runtime options for this request RuntimeOptions
1216
+ * @returns ImageTranslationPlusResponse
1217
+ */
1218
+ async imageTranslationPlusWithOptions(request, runtime) {
1219
+ request.validate();
1220
+ let body = {};
1221
+ if (!$dara.isNull(request.glossary)) {
1222
+ body["Glossary"] = request.glossary;
1223
+ }
1224
+ if (!$dara.isNull(request.imageUrl)) {
1225
+ body["ImageUrl"] = request.imageUrl;
1226
+ }
1227
+ if (!$dara.isNull(request.includingProductArea)) {
1228
+ body["IncludingProductArea"] = request.includingProductArea;
1229
+ }
1230
+ if (!$dara.isNull(request.sourceLanguage)) {
1231
+ body["SourceLanguage"] = request.sourceLanguage;
1232
+ }
1233
+ if (!$dara.isNull(request.targetLanguage)) {
1234
+ body["TargetLanguage"] = request.targetLanguage;
1235
+ }
1236
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1237
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1238
+ }
1239
+ if (!$dara.isNull(request.useImageEditor)) {
1240
+ body["UseImageEditor"] = request.useImageEditor;
1241
+ }
1242
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1243
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1244
+ });
1245
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1246
+ action: "ImageTranslationPlus",
1247
+ version: "2026-04-28",
1248
+ protocol: "HTTPS",
1249
+ pathname: "/",
1250
+ method: "POST",
1251
+ authType: "AK",
1252
+ style: "RPC",
1253
+ reqBodyType: "formData",
1254
+ bodyType: "json",
1255
+ });
1256
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
1257
+ }
1258
+ /**
1259
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following 8 language pairs, with more to be supported in the future.
1260
+ *
1261
+ * @remarks
1262
+ * ## Product Introduction
1263
+ * Image Translation Plus is designed specifically for e-commerce images. It uses a Mixture of Experts (MOE) architecture and outperforms Image Translation Lite and Pro in translation accuracy for multiple minor languages. We recommend using it for the following language pairs, with more to be supported in the future.
1264
+ * Supported language pairs:
1265
+ * | **No.** | **Source Language** | | **Target Language** | |
1266
+ * | --- | --- | --- | --- | --- |
1267
+ * | | Language Code | Language Name | Language Code | Language Name |
1268
+ * | 1 | en | English | ar | Arabic |
1269
+ * | 2 | en | English | id | Indonesian |
1270
+ * | 3 | en | English | th | Thai |
1271
+ * | 4 | en | English | ko | Korean |
1272
+ * | 5 | en | English | ja | Japanese |
1273
+ * | 6 | en | English | vi | Vietnamese |
1274
+ * | 7 | en | English | ru | Russian |
1275
+ * | 8 | en | English | tl | Filipino |
1276
+ * | 9 | en | English | es | Spanish |
1277
+ * | 10 | en | English | fr | French |
1278
+ * | 11 | en | English | de | German |
1279
+ * | 12 | en | English | pl | Polish |.
1280
+ * ## Common scenarios
1281
+ * Main product images and detail images for cross-border e-commerce.
1282
+ * ## Functions and features
1283
+ * * **Product body information protection**: Supports custom selection of whether to translate text on the product body. This helps protect body information such as embedded product names from being translated.
1284
+ *
1285
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1286
+ *
1287
+ * * **Translation intervention**: Supports custom translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). This is commonly used for brand name protection scenarios. Simply pass the corresponding intervention glossary ID when calling the API to meet your translation needs in different scenarios. You can upload up to 100,000 intervention terms. If you need more, contact the platform for assistance.
1288
+ *
1289
+ * @param request - ImageTranslationPlusRequest
1290
+ * @returns ImageTranslationPlusResponse
1291
+ */
1292
+ async imageTranslationPlus(request) {
1293
+ let runtime = new $dara.RuntimeOptions({});
1294
+ return await this.imageTranslationPlusWithOptions(request, runtime);
1295
+ }
1296
+ /**
1297
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
1298
+ *
1299
+ * @remarks
1300
+ * ## Product Introduction
1301
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
1302
+ * ## Applicable Scenarios
1303
+ * E-commerce product images, marketing images, and images for various other scenarios
1188
1304
  * ## Features
1189
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1190
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
1191
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1192
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1305
+ * - **Product Subject Information Protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded product names.
1306
+ * - **Post-translation Secondary Editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrating with an image editor. The editor SDK package is not yet publicly available; please follow platform notifications.
1307
+ * - **Brand Name Protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1308
+ * - **Translation Intervention Support**: Allows customization of translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to achieve this, meeting your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. For additional needs, please contact the platform for assistance.
1193
1309
  *
1194
1310
  * @param request - ImageTranslationProRequest
1195
1311
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1198,6 +1314,9 @@ class Client extends openapi_core_1.default {
1198
1314
  async imageTranslationProWithOptions(request, runtime) {
1199
1315
  request.validate();
1200
1316
  let body = {};
1317
+ if (!$dara.isNull(request.async)) {
1318
+ body["Async"] = request.async;
1319
+ }
1201
1320
  if (!$dara.isNull(request.glossary)) {
1202
1321
  body["Glossary"] = request.glossary;
1203
1322
  }
@@ -1219,9 +1338,6 @@ class Client extends openapi_core_1.default {
1219
1338
  if (!$dara.isNull(request.useImageEditor)) {
1220
1339
  body["UseImageEditor"] = request.useImageEditor;
1221
1340
  }
1222
- if (!$dara.isNull(request.callType)) {
1223
- body["callType"] = request.callType;
1224
- }
1225
1341
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1226
1342
  body: openapi_core_2.OpenApiUtil.parseToMap(body),
1227
1343
  });
@@ -1239,18 +1355,18 @@ class Client extends openapi_core_1.default {
1239
1355
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ImageTranslationProResponse({}));
1240
1356
  }
1241
1357
  /**
1242
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1358
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
1243
1359
  *
1244
1360
  * @remarks
1245
1361
  * ## Product Introduction
1246
- * Image Translation Pro is designed specifically for e-commerce images. It integrates multimodal foundation model technology to achieve more accurate image understanding, significantly improve translation quality, and continuously expand and optimize multilingual translation capabilities. More than 100 language directions are supported, including bridged translations.
1247
- * ## Scenarios
1248
- * E-commerce product images, marketing images, and images for various other scenarios.
1362
+ * The Image Translation Pro version is specifically designed for e-commerce images, integrating multimodal large model technology to achieve more accurate understanding of images, significantly improving translation quality, and continuously expanding and optimizing multilingual translation capabilities. It supports over 100 language pairs (including bridged translations).
1363
+ * ## Applicable Scenarios
1364
+ * E-commerce product images, marketing images, and images for various other scenarios
1249
1365
  * ## Features
1250
- * - **Product subject information protection**: Specify whether to translate text on the product subject. This helps protect subject information such as embedded product names from being translated.
1251
- * - **Post-translation editing**: Specify whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrated with an image editor. The editor SDK is not yet available. Follow platform notifications for updates.
1252
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1253
- * - **Translation intervention**: Customize translation results, including do-not-translate (ABCABC), specified translation (ABCDEF), and remove text (ABCempty value). This is commonly used for brand name protection. Pass the corresponding intervention glossary ID when calling the API to meet translation needs across different scenarios. You can upload up to 100,000 intervention terms. Contact the platform if you need more.
1366
+ * - **Product Subject Information Protection**: Supports custom selection of whether to translate text on the product subject, helping you protect subject information from being translated, such as embedded product names.
1367
+ * - **Post-translation Secondary Editing**: Supports custom selection of whether to return layout information such as text position, font, and color. This can be used for secondary editing when integrating with an image editor. The editor SDK package is not yet publicly available; please follow platform notifications.
1368
+ * - **Brand Name Protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1369
+ * - **Translation Intervention Support**: Allows customization of translation results, including do-not-translate (ABC-ABC), specified translation (ABC-DEF), and no translation (ABC-empty value). Commonly used for brand name protection scenarios. Simply pass the corresponding glossary ID when calling the API to achieve this, meeting your translation needs in different scenarios. Generally, you can upload up to 100,000 intervention terms. For additional needs, please contact the platform for assistance.
1254
1370
  *
1255
1371
  * @param request - ImageTranslationProRequest
1256
1372
  * @returns ImageTranslationProResponse
@@ -1380,6 +1496,105 @@ class Client extends openapi_core_1.default {
1380
1496
  let runtime = new $dara.RuntimeOptions({});
1381
1497
  return await this.languageDetectWithOptions(request, runtime);
1382
1498
  }
1499
+ /**
1500
+ * 物料陈列检测
1501
+ *
1502
+ * @remarks
1503
+ * ## **适用场景**
1504
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
1505
+ *
1506
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
1507
+ *
1508
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
1509
+ *
1510
+ * ## **功能介绍**
1511
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
1512
+ *
1513
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
1514
+ *
1515
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
1516
+ *
1517
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
1518
+ *
1519
+ * ## **调用方式**
1520
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
1521
+ *
1522
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
1523
+ *
1524
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
1525
+ *
1526
+ * @param request - MaterialInspectionRequest
1527
+ * @param runtime - runtime options for this request RuntimeOptions
1528
+ * @returns MaterialInspectionResponse
1529
+ */
1530
+ async materialInspectionWithOptions(request, runtime) {
1531
+ request.validate();
1532
+ let query = {};
1533
+ if (!$dara.isNull(request.apiId)) {
1534
+ query["ApiId"] = request.apiId;
1535
+ }
1536
+ if (!$dara.isNull(request.imageRefer)) {
1537
+ query["ImageRefer"] = request.imageRefer;
1538
+ }
1539
+ if (!$dara.isNull(request.imageUrl)) {
1540
+ query["ImageUrl"] = request.imageUrl;
1541
+ }
1542
+ if (!$dara.isNull(request.reqId)) {
1543
+ query["ReqId"] = request.reqId;
1544
+ }
1545
+ if (!$dara.isNull(request.rules)) {
1546
+ query["Rules"] = request.rules;
1547
+ }
1548
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1549
+ query: openapi_core_2.OpenApiUtil.query(query),
1550
+ });
1551
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1552
+ action: "MaterialInspection",
1553
+ version: "2026-04-28",
1554
+ protocol: "HTTPS",
1555
+ pathname: "/",
1556
+ method: "POST",
1557
+ authType: "AK",
1558
+ style: "RPC",
1559
+ reqBodyType: "formData",
1560
+ bodyType: "json",
1561
+ });
1562
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
1563
+ }
1564
+ /**
1565
+ * 物料陈列检测
1566
+ *
1567
+ * @remarks
1568
+ * ## **适用场景**
1569
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
1570
+ *
1571
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
1572
+ *
1573
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
1574
+ *
1575
+ * ## **功能介绍**
1576
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
1577
+ *
1578
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
1579
+ *
1580
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
1581
+ *
1582
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
1583
+ *
1584
+ * ## **调用方式**
1585
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
1586
+ *
1587
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
1588
+ *
1589
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
1590
+ *
1591
+ * @param request - MaterialInspectionRequest
1592
+ * @returns MaterialInspectionResponse
1593
+ */
1594
+ async materialInspection(request) {
1595
+ let runtime = new $dara.RuntimeOptions({});
1596
+ return await this.materialInspectionWithOptions(request, runtime);
1597
+ }
1383
1598
  /**
1384
1599
  * An intelligent logistics parcel auditing product built on the synergy of Multimodal Large Language Models (MLLM) and specialized vision algorithms, designed for automated compliance review in the "piece-weight-dimension" stage of e-commerce logistics. The product performs structured auditing across multiple dimensions including bounding box validity, bounding box fit accuracy, and foreign object interference on parcels placed on scanning platforms. It supports different hardware acquisition scenarios such as white background boards and green background boards, and outputs Boolean audit conclusions with Chinese reason descriptions that can be directly integrated into business systems. It is suitable for large-scale, high-concurrency inbound quality inspection pipelines.
1385
1600
  *