@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/src/client.ts CHANGED
@@ -11,7 +11,10 @@ export default class Client extends OpenApi {
11
11
 
12
12
  constructor(config: $OpenApiUtil.Config) {
13
13
  super(config);
14
- this._endpointRule = "";
14
+ this._endpointRule = "regional";
15
+ this._endpointMap = {
16
+ 'cn-beijing': "aidge.cn-beijing.aliyuncs.com",
17
+ };
15
18
  this.checkConfig(config);
16
19
  this._endpoint = this.getEndpoint("aidge", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
17
20
  }
@@ -1230,18 +1233,140 @@ export default class Client extends OpenApi {
1230
1233
  }
1231
1234
 
1232
1235
  /**
1233
- * 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.
1236
+ * 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.
1234
1237
  *
1235
1238
  * @remarks
1236
1239
  * ## Product Introduction
1237
- * 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.
1238
- * ## Scenarios
1239
- * E-commerce product images, marketing images, and images for various other scenarios.
1240
+ * 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.
1241
+ * Supported language pairs:
1242
+ * | **No.** | **Source Language** | | **Target Language** | |
1243
+ * | --- | --- | --- | --- | --- |
1244
+ * | | Language Code | Language Name | Language Code | Language Name |
1245
+ * | 1 | en | English | ar | Arabic |
1246
+ * | 2 | en | English | id | Indonesian |
1247
+ * | 3 | en | English | th | Thai |
1248
+ * | 4 | en | English | ko | Korean |
1249
+ * | 5 | en | English | ja | Japanese |
1250
+ * | 6 | en | English | vi | Vietnamese |
1251
+ * | 7 | en | English | ru | Russian |
1252
+ * | 8 | en | English | tl | Filipino |
1253
+ * | 9 | en | English | es | Spanish |
1254
+ * | 10 | en | English | fr | French |
1255
+ * | 11 | en | English | de | German |
1256
+ * | 12 | en | English | pl | Polish |.
1257
+ * ## Common scenarios
1258
+ * Main product images and detail images for cross-border e-commerce.
1259
+ * ## Functions and features
1260
+ * * **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.
1261
+ *
1262
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1263
+ *
1264
+ * * **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.
1265
+ *
1266
+ * @param request - ImageTranslationPlusRequest
1267
+ * @param runtime - runtime options for this request RuntimeOptions
1268
+ * @returns ImageTranslationPlusResponse
1269
+ */
1270
+ async imageTranslationPlusWithOptions(request: $_model.ImageTranslationPlusRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationPlusResponse> {
1271
+ request.validate();
1272
+ let body : {[key: string ]: any} = { };
1273
+ if (!$dara.isNull(request.glossary)) {
1274
+ body["Glossary"] = request.glossary;
1275
+ }
1276
+
1277
+ if (!$dara.isNull(request.imageUrl)) {
1278
+ body["ImageUrl"] = request.imageUrl;
1279
+ }
1280
+
1281
+ if (!$dara.isNull(request.includingProductArea)) {
1282
+ body["IncludingProductArea"] = request.includingProductArea;
1283
+ }
1284
+
1285
+ if (!$dara.isNull(request.sourceLanguage)) {
1286
+ body["SourceLanguage"] = request.sourceLanguage;
1287
+ }
1288
+
1289
+ if (!$dara.isNull(request.targetLanguage)) {
1290
+ body["TargetLanguage"] = request.targetLanguage;
1291
+ }
1292
+
1293
+ if (!$dara.isNull(request.translatingBrandInTheProduct)) {
1294
+ body["TranslatingBrandInTheProduct"] = request.translatingBrandInTheProduct;
1295
+ }
1296
+
1297
+ if (!$dara.isNull(request.useImageEditor)) {
1298
+ body["UseImageEditor"] = request.useImageEditor;
1299
+ }
1300
+
1301
+ let req = new $OpenApiUtil.OpenApiRequest({
1302
+ body: OpenApiUtil.parseToMap(body),
1303
+ });
1304
+ let params = new $OpenApiUtil.Params({
1305
+ action: "ImageTranslationPlus",
1306
+ version: "2026-04-28",
1307
+ protocol: "HTTPS",
1308
+ pathname: "/",
1309
+ method: "POST",
1310
+ authType: "AK",
1311
+ style: "RPC",
1312
+ reqBodyType: "formData",
1313
+ bodyType: "json",
1314
+ });
1315
+ return $dara.cast<$_model.ImageTranslationPlusResponse>(await this.callApi(params, req, runtime), new $_model.ImageTranslationPlusResponse({}));
1316
+ }
1317
+
1318
+ /**
1319
+ * 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.
1320
+ *
1321
+ * @remarks
1322
+ * ## Product Introduction
1323
+ * 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.
1324
+ * Supported language pairs:
1325
+ * | **No.** | **Source Language** | | **Target Language** | |
1326
+ * | --- | --- | --- | --- | --- |
1327
+ * | | Language Code | Language Name | Language Code | Language Name |
1328
+ * | 1 | en | English | ar | Arabic |
1329
+ * | 2 | en | English | id | Indonesian |
1330
+ * | 3 | en | English | th | Thai |
1331
+ * | 4 | en | English | ko | Korean |
1332
+ * | 5 | en | English | ja | Japanese |
1333
+ * | 6 | en | English | vi | Vietnamese |
1334
+ * | 7 | en | English | ru | Russian |
1335
+ * | 8 | en | English | tl | Filipino |
1336
+ * | 9 | en | English | es | Spanish |
1337
+ * | 10 | en | English | fr | French |
1338
+ * | 11 | en | English | de | German |
1339
+ * | 12 | en | English | pl | Polish |.
1340
+ * ## Common scenarios
1341
+ * Main product images and detail images for cross-border e-commerce.
1342
+ * ## Functions and features
1343
+ * * **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.
1344
+ *
1345
+ * * **Brand name protection**: Supports custom selection of whether to translate brand names on images. This helps protect brand name information from being translated.
1346
+ *
1347
+ * * **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.
1348
+ *
1349
+ * @param request - ImageTranslationPlusRequest
1350
+ * @returns ImageTranslationPlusResponse
1351
+ */
1352
+ async imageTranslationPlus(request: $_model.ImageTranslationPlusRequest): Promise<$_model.ImageTranslationPlusResponse> {
1353
+ let runtime = new $dara.RuntimeOptions({ });
1354
+ return await this.imageTranslationPlusWithOptions(request, runtime);
1355
+ }
1356
+
1357
+ /**
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).
1359
+ *
1360
+ * @remarks
1361
+ * ## Product Introduction
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
1240
1365
  * ## Features
1241
- * - **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.
1242
- * - **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.
1243
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1244
- * - **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.
1245
1370
  *
1246
1371
  * @param request - ImageTranslationProRequest
1247
1372
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1250,6 +1375,10 @@ export default class Client extends OpenApi {
1250
1375
  async imageTranslationProWithOptions(request: $_model.ImageTranslationProRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ImageTranslationProResponse> {
1251
1376
  request.validate();
1252
1377
  let body : {[key: string ]: any} = { };
1378
+ if (!$dara.isNull(request.async)) {
1379
+ body["Async"] = request.async;
1380
+ }
1381
+
1253
1382
  if (!$dara.isNull(request.glossary)) {
1254
1383
  body["Glossary"] = request.glossary;
1255
1384
  }
@@ -1278,10 +1407,6 @@ export default class Client extends OpenApi {
1278
1407
  body["UseImageEditor"] = request.useImageEditor;
1279
1408
  }
1280
1409
 
1281
- if (!$dara.isNull(request.callType)) {
1282
- body["callType"] = request.callType;
1283
- }
1284
-
1285
1410
  let req = new $OpenApiUtil.OpenApiRequest({
1286
1411
  body: OpenApiUtil.parseToMap(body),
1287
1412
  });
@@ -1300,18 +1425,18 @@ export default class Client extends OpenApi {
1300
1425
  }
1301
1426
 
1302
1427
  /**
1303
- * 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.
1428
+ * 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).
1304
1429
  *
1305
1430
  * @remarks
1306
1431
  * ## Product Introduction
1307
- * 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.
1308
- * ## Scenarios
1309
- * E-commerce product images, marketing images, and images for various other scenarios.
1432
+ * 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).
1433
+ * ## Applicable Scenarios
1434
+ * E-commerce product images, marketing images, and images for various other scenarios
1310
1435
  * ## Features
1311
- * - **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.
1312
- * - **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.
1313
- * - **Brand name protection**: Specify whether to translate brand names on images. This helps protect brand name information from being translated.
1314
- * - **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.
1436
+ * - **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.
1437
+ * - **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.
1438
+ * - **Brand Name Protection**: Supports custom selection of whether to translate brand names on images, helping you protect brand name information from being translated.
1439
+ * - **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.
1315
1440
  *
1316
1441
  * @param request - ImageTranslationProRequest
1317
1442
  * @returns ImageTranslationProResponse
@@ -1453,6 +1578,112 @@ export default class Client extends OpenApi {
1453
1578
  return await this.languageDetectWithOptions(request, runtime);
1454
1579
  }
1455
1580
 
1581
+ /**
1582
+ * 物料陈列检测
1583
+ *
1584
+ * @remarks
1585
+ * ## **适用场景**
1586
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
1587
+ *
1588
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
1589
+ *
1590
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
1591
+ *
1592
+ * ## **功能介绍**
1593
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
1594
+ *
1595
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
1596
+ *
1597
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
1598
+ *
1599
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
1600
+ *
1601
+ * ## **调用方式**
1602
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
1603
+ *
1604
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
1605
+ *
1606
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
1607
+ *
1608
+ * @param request - MaterialInspectionRequest
1609
+ * @param runtime - runtime options for this request RuntimeOptions
1610
+ * @returns MaterialInspectionResponse
1611
+ */
1612
+ async materialInspectionWithOptions(request: $_model.MaterialInspectionRequest, runtime: $dara.RuntimeOptions): Promise<$_model.MaterialInspectionResponse> {
1613
+ request.validate();
1614
+ let query = { };
1615
+ if (!$dara.isNull(request.apiId)) {
1616
+ query["ApiId"] = request.apiId;
1617
+ }
1618
+
1619
+ if (!$dara.isNull(request.imageRefer)) {
1620
+ query["ImageRefer"] = request.imageRefer;
1621
+ }
1622
+
1623
+ if (!$dara.isNull(request.imageUrl)) {
1624
+ query["ImageUrl"] = request.imageUrl;
1625
+ }
1626
+
1627
+ if (!$dara.isNull(request.reqId)) {
1628
+ query["ReqId"] = request.reqId;
1629
+ }
1630
+
1631
+ if (!$dara.isNull(request.rules)) {
1632
+ query["Rules"] = request.rules;
1633
+ }
1634
+
1635
+ let req = new $OpenApiUtil.OpenApiRequest({
1636
+ query: OpenApiUtil.query(query),
1637
+ });
1638
+ let params = new $OpenApiUtil.Params({
1639
+ action: "MaterialInspection",
1640
+ version: "2026-04-28",
1641
+ protocol: "HTTPS",
1642
+ pathname: "/",
1643
+ method: "POST",
1644
+ authType: "AK",
1645
+ style: "RPC",
1646
+ reqBodyType: "formData",
1647
+ bodyType: "json",
1648
+ });
1649
+ return $dara.cast<$_model.MaterialInspectionResponse>(await this.callApi(params, req, runtime), new $_model.MaterialInspectionResponse({}));
1650
+ }
1651
+
1652
+ /**
1653
+ * 物料陈列检测
1654
+ *
1655
+ * @remarks
1656
+ * ## **适用场景**
1657
+ * - **门店营销物料合规巡检**:自动判定门店内是否按总部下发的标准陈列指引摆放 / 张贴指定营销物料(功能台卡、海报、门型展架等),识别「未摆放、摆放错误、内容不符」等典型问题。
1658
+ *
1659
+ * - **新品 / 活动期素材落地核验**:新品发布或大促活动期间,对门店实拍图中的活动物料是否已按要求上架进行批量自动核验,替代人工抽检。
1660
+ *
1661
+ * - **双图比对与单图检测自适应**:同一接口同时支持「参考图 + 目标图」双图比对(模式 A)与「仅目标图」单图检测(模式 B),根据是否传入 `ImageRefer` 自动切换,调用方无需区分调用方式。
1662
+ *
1663
+ * ## **功能介绍**
1664
+ * - **多模式智能路由**:内置物料类型解析能力,基于 `Rules` 自然语言文本自动识别目标物料类型,路由至对应的素材检测链路;调用方仅需传入图像 URL 与规则文本。目前已支持「功能台卡」「海报」「门型展架」「其他素材」4 套检测项路由,后续将持续增加细分营销物料类型的检测链路。
1665
+ *
1666
+ * - **MLLM 语义级理解 + 规则结构化协同**:采用多模态大模型完成物料识别、内容比对、文字 OCR 等语义级理解,配合规则清洗与结构化模型将自然语言规则拆解为可逐条判定的步骤(S1 / S2…),在保证准确率的同时兼顾规则灵活性与可追溯性。
1667
+ *
1668
+ * - **结构化审核结论输出**:输出统一为 `Result.OverallResult` + `Result.Steps[]` + `Result.Evidence` 的结构,整体结论由各步骤逻辑 AND 得出,每条步骤独立可见,便于直接驱动下游业务系统并支持 case 级人审追溯。
1669
+ *
1670
+ * - **支持的输入格式**:当前支持公网可访问的图像 URL;支持单图(模式 B)与双图(模式 A)两种调用形态,输出结构完全一致。
1671
+ *
1672
+ * ## **调用方式**
1673
+ * - **同步调用**:单次请求即返回检测结果,无需轮询。响应为 `Code` / `Message` / `RequestId` / `Success` / `Data` 统一信封。
1674
+ *
1675
+ * - **鉴权与签名**:经 Aidge 网关调用,鉴权、签名与公共参数遵循平台统一接入方式。具体请求路径以正式发布的接口文档为准。
1676
+ *
1677
+ * - **超时设置**:建议将请求超时设置为不低于接口的最长响应时间(具体值以正式发布为准)。
1678
+ *
1679
+ * @param request - MaterialInspectionRequest
1680
+ * @returns MaterialInspectionResponse
1681
+ */
1682
+ async materialInspection(request: $_model.MaterialInspectionRequest): Promise<$_model.MaterialInspectionResponse> {
1683
+ let runtime = new $dara.RuntimeOptions({ });
1684
+ return await this.materialInspectionWithOptions(request, runtime);
1685
+ }
1686
+
1456
1687
  /**
1457
1688
  * 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.
1458
1689
  *
@@ -0,0 +1,100 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageTranslationPlusRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The ID of the intervention glossary. This parameter is optional.
9
+ *
10
+ * @example
11
+ * glossary-001
12
+ */
13
+ glossary?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the original image. This parameter is required.
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * https://img.alicdn.com/example.png
22
+ */
23
+ imageUrl?: string;
24
+ /**
25
+ * @remarks
26
+ * Specifies whether to translate text on the product body. This parameter is optional. Default value: false.
27
+ *
28
+ * @example
29
+ * false
30
+ */
31
+ includingProductArea?: boolean;
32
+ /**
33
+ * @remarks
34
+ * The source language. This parameter is required.
35
+ *
36
+ * This parameter is required.
37
+ *
38
+ * @example
39
+ * zh
40
+ */
41
+ sourceLanguage?: string;
42
+ /**
43
+ * @remarks
44
+ * The target language. This parameter is required.
45
+ *
46
+ * This parameter is required.
47
+ *
48
+ * @example
49
+ * en
50
+ */
51
+ targetLanguage?: string;
52
+ /**
53
+ * @remarks
54
+ * Specifies whether to translate brand text on the product. This parameter is optional. Default value: false.
55
+ *
56
+ * @example
57
+ * false
58
+ */
59
+ translatingBrandInTheProduct?: boolean;
60
+ /**
61
+ * @remarks
62
+ * Specifies whether to use the image translation editor protocol. This parameter is optional.
63
+ *
64
+ * @example
65
+ * false
66
+ */
67
+ useImageEditor?: boolean;
68
+ static names(): { [key: string]: string } {
69
+ return {
70
+ glossary: 'Glossary',
71
+ imageUrl: 'ImageUrl',
72
+ includingProductArea: 'IncludingProductArea',
73
+ sourceLanguage: 'SourceLanguage',
74
+ targetLanguage: 'TargetLanguage',
75
+ translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
76
+ useImageEditor: 'UseImageEditor',
77
+ };
78
+ }
79
+
80
+ static types(): { [key: string]: any } {
81
+ return {
82
+ glossary: 'string',
83
+ imageUrl: 'string',
84
+ includingProductArea: 'boolean',
85
+ sourceLanguage: 'string',
86
+ targetLanguage: 'string',
87
+ translatingBrandInTheProduct: 'boolean',
88
+ useImageEditor: 'boolean',
89
+ };
90
+ }
91
+
92
+ validate() {
93
+ super.validate();
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ImageTranslationPlusResponseBody } from "./ImageTranslationPlusResponseBody";
4
+
5
+
6
+ export class ImageTranslationPlusResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ImageTranslationPlusResponseBody;
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: ImageTranslationPlusResponseBody,
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,106 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ImageTranslationPlusResponseBodyData extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The asynchronous task ID. Use the queryTaskResult API to poll for results.
9
+ *
10
+ * @example
11
+ * task-abc123
12
+ */
13
+ taskId?: string;
14
+ static names(): { [key: string]: string } {
15
+ return {
16
+ taskId: 'TaskId',
17
+ };
18
+ }
19
+
20
+ static types(): { [key: string]: any } {
21
+ return {
22
+ taskId: 'string',
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ super.validate();
28
+ }
29
+
30
+ constructor(map?: { [key: string]: any }) {
31
+ super(map);
32
+ }
33
+ }
34
+
35
+ export class ImageTranslationPlusResponseBody extends $dara.Model {
36
+ /**
37
+ * @remarks
38
+ * The error code. This parameter is not returned if the call is successful.
39
+ *
40
+ * @example
41
+ * 200
42
+ */
43
+ code?: string;
44
+ /**
45
+ * @remarks
46
+ * The submit status of the asynchronous task.
47
+ */
48
+ data?: ImageTranslationPlusResponseBodyData;
49
+ /**
50
+ * @remarks
51
+ * The error message. This parameter is not returned if the call is successful.
52
+ *
53
+ * @example
54
+ * OK
55
+ */
56
+ message?: string;
57
+ /**
58
+ * @remarks
59
+ * Id of the request
60
+ *
61
+ * @example
62
+ * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
63
+ */
64
+ requestId?: string;
65
+ /**
66
+ * @remarks
67
+ * Indicates whether the call is successful. Valid values:
68
+ * - true: The call is successful.
69
+ * - false: The call failed.
70
+ *
71
+ * @example
72
+ * True
73
+ */
74
+ success?: boolean;
75
+ static names(): { [key: string]: string } {
76
+ return {
77
+ code: 'Code',
78
+ data: 'Data',
79
+ message: 'Message',
80
+ requestId: 'RequestId',
81
+ success: 'Success',
82
+ };
83
+ }
84
+
85
+ static types(): { [key: string]: any } {
86
+ return {
87
+ code: 'string',
88
+ data: ImageTranslationPlusResponseBodyData,
89
+ message: 'string',
90
+ requestId: 'string',
91
+ success: 'boolean',
92
+ };
93
+ }
94
+
95
+ validate() {
96
+ if(this.data && typeof (this.data as any).validate === 'function') {
97
+ (this.data as any).validate();
98
+ }
99
+ super.validate();
100
+ }
101
+
102
+ constructor(map?: { [key: string]: any }) {
103
+ super(map);
104
+ }
105
+ }
106
+