@alicloud/aidge20260428 5.8.0 → 5.10.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.
- package/dist/client.d.ts +1534 -313
- package/dist/client.js +2648 -749
- package/dist/client.js.map +1 -1
- package/dist/models/AddDisplayKnowledgeRequest.d.ts +68 -0
- package/dist/models/AddDisplayKnowledgeRequest.js +88 -0
- package/dist/models/AddDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/AddDisplayKnowledgeResponse.js +69 -0
- package/dist/models/AddDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.d.ts +210 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/AddDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/AddDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/AiTryOnRequest.d.ts +4 -4
- package/dist/models/AiTryOnResponseBody.d.ts +10 -10
- package/dist/models/AiTryOnResponseBody.js +0 -2
- package/dist/models/AiTryOnResponseBody.js.map +1 -1
- package/dist/models/DeleteDisplayKnowledgeRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js +63 -0
- package/dist/models/DeleteDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js +69 -0
- package/dist/models/DeleteDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.d.ts +214 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js +145 -0
- package/dist/models/DeleteDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/DeleteDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/DocumentTranslateRequest.d.ts +4 -4
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -3
- package/dist/models/EcomVideoRecreationRequest.d.ts +24 -16
- package/dist/models/EcomVideoRecreationRequest.js +2 -0
- package/dist/models/EcomVideoRecreationRequest.js.map +1 -1
- package/dist/models/EcomVideoRecreationResponseBody.d.ts +5 -5
- package/dist/models/EcomVideoRecreationShrinkRequest.d.ts +2 -2
- package/dist/models/ImageMattingAsyncRequest.d.ts +59 -0
- package/dist/models/ImageMattingAsyncRequest.js +66 -0
- package/dist/models/ImageMattingAsyncRequest.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponse.d.ts +19 -0
- package/dist/models/ImageMattingAsyncResponse.js +69 -0
- package/dist/models/ImageMattingAsyncResponse.js.map +1 -0
- package/dist/models/ImageMattingAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageMattingAsyncResponseBody.js +88 -0
- package/dist/models/ImageMattingAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncRequest.js +78 -0
- package/dist/models/ImageRecognitionAsyncRequest.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRecognitionAsyncResponse.js +69 -0
- package/dist/models/ImageRecognitionAsyncResponse.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.d.ts +72 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js +88 -0
- package/dist/models/ImageRecognitionAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.d.ts +101 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js +72 -0
- package/dist/models/ImageRecognitionAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncRequest.d.ts +23 -0
- package/dist/models/ImageRemovalProAsyncRequest.js +58 -0
- package/dist/models/ImageRemovalProAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemovalProAsyncResponse.js +69 -0
- package/dist/models/ImageRemovalProAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemovalProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncRequest.js +82 -0
- package/dist/models/ImageRemoveAsyncRequest.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponse.d.ts +19 -0
- package/dist/models/ImageRemoveAsyncResponse.js +69 -0
- package/dist/models/ImageRemoveAsyncResponse.js.map +1 -0
- package/dist/models/ImageRemoveAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js +88 -0
- package/dist/models/ImageRemoveAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.d.ts +59 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js +70 -0
- package/dist/models/ImageRemoveAsyncShrinkRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationPlusAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationPlusAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationPlusAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncRequest.d.ts +78 -0
- package/dist/models/ImageTranslationProAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationProAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationProAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationProAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationProAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationProRequest.d.ts +12 -8
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +4 -2
- package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
- package/dist/models/ImageTranslationStandardAsyncRequest.d.ts +75 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js +70 -0
- package/dist/models/ImageTranslationStandardAsyncRequest.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.d.ts +19 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js +69 -0
- package/dist/models/ImageTranslationStandardAsyncResponse.js.map +1 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.d.ts +70 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js +88 -0
- package/dist/models/ImageTranslationStandardAsyncResponseBody.js.map +1 -0
- package/dist/models/ImageTranslationStandardRequest.d.ts +11 -7
- package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
- package/dist/models/ImageTranslationStandardResponseBody.d.ts +8 -8
- package/dist/models/MerchandisePlacementDetectionLiteRequest.d.ts +23 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js +58 -0
- package/dist/models/MerchandisePlacementDetectionLiteRequest.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.d.ts +19 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js +69 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponse.js.map +1 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.d.ts +239 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js +229 -0
- package/dist/models/MerchandisePlacementDetectionLiteResponseBody.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js +58 -0
- package/dist/models/MerchandisePriceTagDetectionRequest.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js +69 -0
- package/dist/models/MerchandisePriceTagDetectionResponse.js.map +1 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.d.ts +258 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js +230 -0
- package/dist/models/MerchandisePriceTagDetectionResponseBody.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionRequest.d.ts +23 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js +58 -0
- package/dist/models/MerchandiseSceneDetectionRequest.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponse.d.ts +19 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js +69 -0
- package/dist/models/MerchandiseSceneDetectionResponse.js.map +1 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.d.ts +263 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js +235 -0
- package/dist/models/MerchandiseSceneDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.d.ts +170 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js +172 -0
- package/dist/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.d.ts +23 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js +58 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionRequest.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.d.ts +19 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js +69 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponse.js.map +1 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.d.ts +197 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js +178 -0
- package/dist/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.js.map +1 -0
- package/dist/models/PetHealthAnalysisRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisRequest.js.map +1 -1
- package/dist/models/PetHealthAnalysisResponseBody.d.ts +0 -19
- package/dist/models/PetHealthAnalysisResponseBody.js.map +1 -1
- package/dist/models/PetHealthAnalysisShrinkRequest.d.ts +2 -10
- package/dist/models/PetHealthAnalysisShrinkRequest.js.map +1 -1
- package/dist/models/QueryDisplayKnowledgeRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js +71 -0
- package/dist/models/QueryDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js +69 -0
- package/dist/models/QueryDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.d.ts +240 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js +151 -0
- package/dist/models/QueryDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.d.ts +60 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js +68 -0
- package/dist/models/QueryDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncRequest.js +65 -0
- package/dist/models/SizeChartExtractAsyncRequest.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponse.d.ts +19 -0
- package/dist/models/SizeChartExtractAsyncResponse.js +69 -0
- package/dist/models/SizeChartExtractAsyncResponse.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.d.ts +70 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js +88 -0
- package/dist/models/SizeChartExtractAsyncResponseBody.js.map +1 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.d.ts +36 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js +62 -0
- package/dist/models/SizeChartExtractAsyncShrinkRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionRequest.d.ts +23 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js +58 -0
- package/dist/models/StorefrontSceneRecognitionRequest.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponse.d.ts +19 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js +69 -0
- package/dist/models/StorefrontSceneRecognitionResponse.js.map +1 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.d.ts +190 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js +199 -0
- package/dist/models/StorefrontSceneRecognitionResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncRequest.d.ts +84 -0
- package/dist/models/TextTranslateAsyncRequest.js +75 -0
- package/dist/models/TextTranslateAsyncRequest.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponse.d.ts +19 -0
- package/dist/models/TextTranslateAsyncResponse.js +69 -0
- package/dist/models/TextTranslateAsyncResponse.js.map +1 -0
- package/dist/models/TextTranslateAsyncResponseBody.d.ts +70 -0
- package/dist/models/TextTranslateAsyncResponseBody.js +88 -0
- package/dist/models/TextTranslateAsyncResponseBody.js.map +1 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.d.ts +84 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js +72 -0
- package/dist/models/TextTranslateAsyncShrinkRequest.js.map +1 -0
- package/dist/models/TextTranslateRequest.d.ts +10 -10
- package/dist/models/TextTranslateResponseBody.d.ts +1 -1
- package/dist/models/TextTranslateShrinkRequest.d.ts +10 -10
- package/dist/models/UpdateDisplayKnowledgeRequest.d.ts +74 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js +88 -0
- package/dist/models/UpdateDisplayKnowledgeRequest.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.d.ts +19 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js +69 -0
- package/dist/models/UpdateDisplayKnowledgeResponse.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.d.ts +206 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js +143 -0
- package/dist/models/UpdateDisplayKnowledgeResponseBody.js.map +1 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.d.ts +30 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js +60 -0
- package/dist/models/UpdateDisplayKnowledgeShrinkRequest.js.map +1 -0
- package/dist/models/VideoGenerationRequest.d.ts +21 -12
- package/dist/models/VideoGenerationRequest.js.map +1 -1
- package/dist/models/VideoGenerationResponseBody.d.ts +5 -5
- package/dist/models/VideoTranslationRequest.d.ts +36 -6
- package/dist/models/VideoTranslationRequest.js +8 -0
- package/dist/models/VideoTranslationRequest.js.map +1 -1
- package/dist/models/VideoTranslationResponseBody.d.ts +4 -4
- package/dist/models/VideoTranslationShrinkRequest.d.ts +36 -6
- package/dist/models/VideoTranslationShrinkRequest.js +8 -0
- package/dist/models/VideoTranslationShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +115 -0
- package/dist/models/model.js +237 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +2810 -786
- package/src/models/AddDisplayKnowledgeRequest.ts +100 -0
- package/src/models/AddDisplayKnowledgeResponse.ts +40 -0
- package/src/models/AddDisplayKnowledgeResponseBody.ts +288 -0
- package/src/models/AddDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/AiTryOnRequest.ts +4 -4
- package/src/models/AiTryOnResponseBody.ts +10 -10
- package/src/models/DeleteDisplayKnowledgeRequest.ts +48 -0
- package/src/models/DeleteDisplayKnowledgeResponse.ts +40 -0
- package/src/models/DeleteDisplayKnowledgeResponseBody.ts +294 -0
- package/src/models/DeleteDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/DocumentTranslateRequest.ts +4 -4
- package/src/models/DocumentTranslateResponseBody.ts +3 -3
- package/src/models/EcomVideoRecreationRequest.ts +26 -16
- package/src/models/EcomVideoRecreationResponseBody.ts +5 -5
- package/src/models/EcomVideoRecreationShrinkRequest.ts +2 -2
- package/src/models/ImageMattingAsyncRequest.ts +80 -0
- package/src/models/ImageMattingAsyncResponse.ts +40 -0
- package/src/models/ImageMattingAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncRequest.ts +134 -0
- package/src/models/ImageRecognitionAsyncResponse.ts +40 -0
- package/src/models/ImageRecognitionAsyncResponseBody.ts +106 -0
- package/src/models/ImageRecognitionAsyncShrinkRequest.ts +128 -0
- package/src/models/ImageRemovalProAsyncRequest.ts +36 -0
- package/src/models/ImageRemovalProAsyncResponse.ts +40 -0
- package/src/models/ImageRemovalProAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncRequest.ts +96 -0
- package/src/models/ImageRemoveAsyncResponse.ts +40 -0
- package/src/models/ImageRemoveAsyncResponseBody.ts +104 -0
- package/src/models/ImageRemoveAsyncShrinkRequest.ts +84 -0
- package/src/models/ImageTranslationPlusAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationPlusAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationPlusAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProAsyncRequest.ts +103 -0
- package/src/models/ImageTranslationProAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationProAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationProRequest.ts +12 -8
- package/src/models/ImageTranslationProResponseBody.ts +4 -2
- package/src/models/ImageTranslationStandardAsyncRequest.ts +100 -0
- package/src/models/ImageTranslationStandardAsyncResponse.ts +40 -0
- package/src/models/ImageTranslationStandardAsyncResponseBody.ts +104 -0
- package/src/models/ImageTranslationStandardRequest.ts +11 -7
- package/src/models/ImageTranslationStandardResponseBody.ts +8 -8
- package/src/models/MerchandisePlacementDetectionLiteRequest.ts +36 -0
- package/src/models/MerchandisePlacementDetectionLiteResponse.ts +40 -0
- package/src/models/MerchandisePlacementDetectionLiteResponseBody.ts +367 -0
- package/src/models/MerchandisePriceTagDetectionRequest.ts +36 -0
- package/src/models/MerchandisePriceTagDetectionResponse.ts +40 -0
- package/src/models/MerchandisePriceTagDetectionResponseBody.ts +387 -0
- package/src/models/MerchandiseSceneDetectionRequest.ts +36 -0
- package/src/models/MerchandiseSceneDetectionResponse.ts +40 -0
- package/src/models/MerchandiseSceneDetectionResponseBody.ts +397 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCanBottomCodeRephotographyDetectionResponseBody.ts +259 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionRequest.ts +36 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponse.ts +40 -0
- package/src/models/MilkPowderCartonCodeRephotographyDetectionResponseBody.ts +292 -0
- package/src/models/PetHealthAnalysisRequest.ts +2 -10
- package/src/models/PetHealthAnalysisResponseBody.ts +0 -19
- package/src/models/PetHealthAnalysisShrinkRequest.ts +2 -10
- package/src/models/QueryDisplayKnowledgeRequest.ts +86 -0
- package/src/models/QueryDisplayKnowledgeResponse.ts +40 -0
- package/src/models/QueryDisplayKnowledgeResponseBody.ts +326 -0
- package/src/models/QueryDisplayKnowledgeShrinkRequest.ts +83 -0
- package/src/models/SizeChartExtractAsyncRequest.ts +56 -0
- package/src/models/SizeChartExtractAsyncResponse.ts +40 -0
- package/src/models/SizeChartExtractAsyncResponseBody.ts +104 -0
- package/src/models/SizeChartExtractAsyncShrinkRequest.ts +53 -0
- package/src/models/StorefrontSceneRecognitionRequest.ts +36 -0
- package/src/models/StorefrontSceneRecognitionResponse.ts +40 -0
- package/src/models/StorefrontSceneRecognitionResponseBody.ts +297 -0
- package/src/models/TextTranslateAsyncRequest.ts +114 -0
- package/src/models/TextTranslateAsyncResponse.ts +40 -0
- package/src/models/TextTranslateAsyncResponseBody.ts +104 -0
- package/src/models/TextTranslateAsyncShrinkRequest.ts +111 -0
- package/src/models/TextTranslateRequest.ts +10 -10
- package/src/models/TextTranslateResponseBody.ts +1 -1
- package/src/models/TextTranslateShrinkRequest.ts +10 -10
- package/src/models/UpdateDisplayKnowledgeRequest.ts +108 -0
- package/src/models/UpdateDisplayKnowledgeResponse.ts +40 -0
- package/src/models/UpdateDisplayKnowledgeResponseBody.ts +284 -0
- package/src/models/UpdateDisplayKnowledgeShrinkRequest.ts +45 -0
- package/src/models/VideoGenerationRequest.ts +21 -12
- package/src/models/VideoGenerationResponseBody.ts +5 -5
- package/src/models/VideoTranslationRequest.ts +44 -6
- package/src/models/VideoTranslationResponseBody.ts +4 -4
- package/src/models/VideoTranslationShrinkRequest.ts +44 -6
- package/src/models/model.ts +115 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { ImageTranslationProAsyncResponseBody } from "./ImageTranslationProAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ImageTranslationProAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ImageTranslationProAsyncResponseBody;
|
|
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: ImageTranslationProAsyncResponseBody,
|
|
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,104 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageTranslationProAsyncResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the asynchronous task. It is used to query results and associate notifications. Do not use the example prefix as a business validation rule.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
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 ImageTranslationProAsyncResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The response code. A value of success indicates that the task is submitted successfully.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* success
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The submission result of the Image Translation Pro asynchronous task.
|
|
47
|
+
*/
|
|
48
|
+
data?: ImageTranslationProAsyncResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The call description. A successful call returns Success. If the call fails, read the actual error message.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* success
|
|
55
|
+
*/
|
|
56
|
+
message?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @remarks
|
|
59
|
+
* The ID of the submission request. It is used for troubleshooting.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* E1AD60F1-BAC7-546B-9533-E7AD02B16E3F
|
|
63
|
+
*/
|
|
64
|
+
requestId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* @remarks
|
|
67
|
+
* Indicates whether the submission call is successful. This does not indicate that the translation is complete.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* True
|
|
71
|
+
*/
|
|
72
|
+
success?: boolean;
|
|
73
|
+
static names(): { [key: string]: string } {
|
|
74
|
+
return {
|
|
75
|
+
code: 'Code',
|
|
76
|
+
data: 'Data',
|
|
77
|
+
message: 'Message',
|
|
78
|
+
requestId: 'RequestId',
|
|
79
|
+
success: 'Success',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
code: 'string',
|
|
86
|
+
data: ImageTranslationProAsyncResponseBodyData,
|
|
87
|
+
message: 'string',
|
|
88
|
+
requestId: 'string',
|
|
89
|
+
success: 'boolean',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
95
|
+
(this.data as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ImageTranslationProRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId. Use the query translation result API to
|
|
8
|
+
* Specifies whether to use asynchronous mode. Default value: false (synchronous mode). When set to true, the API immediately returns a TaskId. Use the query translation result API to retrieve the final result.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* true
|
|
@@ -24,9 +24,9 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
24
24
|
* The URL of the original image. This parameter is required.
|
|
25
25
|
*
|
|
26
26
|
* Image requirements:
|
|
27
|
-
* - Image URL:
|
|
27
|
+
* - Image URL: The URL must be publicly accessible.
|
|
28
28
|
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
29
|
-
* - Pixels:
|
|
29
|
+
* - Pixels: The width and height must not exceed 4000 pixels each.
|
|
30
30
|
* - File size: The original file must be 10 MB or smaller.
|
|
31
31
|
*
|
|
32
32
|
* This parameter is required.
|
|
@@ -37,7 +37,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
37
37
|
imageUrl?: string;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false.
|
|
40
|
+
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. Setting this parameter to false helps protect information such as embedded product names from being translated.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
43
43
|
* false
|
|
@@ -45,7 +45,9 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
45
45
|
includingProductArea?: boolean;
|
|
46
46
|
/**
|
|
47
47
|
* @remarks
|
|
48
|
-
* The source language code. This parameter is required.
|
|
48
|
+
* The source language code. This parameter is required.
|
|
49
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
50
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
49
51
|
*
|
|
50
52
|
* This parameter is required.
|
|
51
53
|
*
|
|
@@ -55,7 +57,9 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
55
57
|
sourceLanguage?: string;
|
|
56
58
|
/**
|
|
57
59
|
* @remarks
|
|
58
|
-
* The target language code. This parameter is required.
|
|
60
|
+
* The target language code. This parameter is required.
|
|
61
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
62
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
59
63
|
*
|
|
60
64
|
* This parameter is required.
|
|
61
65
|
*
|
|
@@ -65,7 +69,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
65
69
|
targetLanguage?: string;
|
|
66
70
|
/**
|
|
67
71
|
* @remarks
|
|
68
|
-
* Specifies whether to translate brand names on
|
|
72
|
+
* Specifies whether to translate brand names on images. This parameter is optional. Default value: false. Setting this parameter to false helps protect brand name information from being translated.
|
|
69
73
|
*
|
|
70
74
|
* @example
|
|
71
75
|
* false
|
|
@@ -73,7 +77,7 @@ export class ImageTranslationProRequest extends $dara.Model {
|
|
|
73
77
|
translatingBrandInTheProduct?: boolean;
|
|
74
78
|
/**
|
|
75
79
|
* @remarks
|
|
76
|
-
* Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned
|
|
80
|
+
* Specifies whether to return layout information such as text position, font, and color. When set to true, layer information is returned, which can be used with an image editor for secondary editing. Default value: false.
|
|
77
81
|
*
|
|
78
82
|
* @example
|
|
79
83
|
* false
|
|
@@ -708,7 +708,7 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
708
708
|
data?: ImageTranslationProResponseBodyData;
|
|
709
709
|
/**
|
|
710
710
|
* @remarks
|
|
711
|
-
* The error message. "Success" is returned
|
|
711
|
+
* The error message. "Success" is returned if the call is successful. A specific error message is returned if the call fails, such as "The content contains sensitive data. Try other input."
|
|
712
712
|
*
|
|
713
713
|
* @example
|
|
714
714
|
* Success
|
|
@@ -724,7 +724,9 @@ export class ImageTranslationProResponseBody extends $dara.Model {
|
|
|
724
724
|
requestId?: string;
|
|
725
725
|
/**
|
|
726
726
|
* @remarks
|
|
727
|
-
* Indicates whether the call is successful.
|
|
727
|
+
* Indicates whether the call is successful. Valid values:
|
|
728
|
+
* - true: The call is successful.
|
|
729
|
+
* - false: The call failed.
|
|
728
730
|
*
|
|
729
731
|
* @example
|
|
730
732
|
* true
|
|
@@ -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 ImageTranslationStandardAsyncRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The intervention glossary.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* glossary_1
|
|
12
|
+
*/
|
|
13
|
+
glossary?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The URL of the image to be translated.
|
|
17
|
+
*
|
|
18
|
+
* This parameter is required.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* https://example.com/image.jpg
|
|
22
|
+
*/
|
|
23
|
+
imageUrl?: string;
|
|
24
|
+
/**
|
|
25
|
+
* @remarks
|
|
26
|
+
* Specifies whether to include the product area in the translation.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* false
|
|
30
|
+
*/
|
|
31
|
+
includingProductArea?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* The source language.
|
|
35
|
+
*
|
|
36
|
+
* This parameter is required.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* zh
|
|
40
|
+
*/
|
|
41
|
+
sourceLanguage?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The target language.
|
|
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 in the product area.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* false
|
|
58
|
+
*/
|
|
59
|
+
translatingBrandInTheProduct?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* @remarks
|
|
62
|
+
* Specifies whether to use the image editor protocol.
|
|
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 { ImageTranslationStandardAsyncResponseBody } from "./ImageTranslationStandardAsyncResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ImageTranslationStandardAsyncResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: ImageTranslationStandardAsyncResponseBody;
|
|
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: ImageTranslationStandardAsyncResponseBody,
|
|
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,104 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ImageTranslationStandardAsyncResponseBodyData extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The ID of the task used to query the asynchronous task result.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* TID_550e8400-e29b-41d4-a716-446655440000
|
|
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 ImageTranslationStandardAsyncResponseBody extends $dara.Model {
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The error code. This parameter is not returned for successful calls.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* 200
|
|
42
|
+
*/
|
|
43
|
+
code?: string;
|
|
44
|
+
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* The submission result of the asynchronous task for Image Translation Standard Edition.
|
|
47
|
+
*/
|
|
48
|
+
data?: ImageTranslationStandardAsyncResponseBodyData;
|
|
49
|
+
/**
|
|
50
|
+
* @remarks
|
|
51
|
+
* The error message. This parameter is not returned for successful calls.
|
|
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.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* True
|
|
71
|
+
*/
|
|
72
|
+
success?: boolean;
|
|
73
|
+
static names(): { [key: string]: string } {
|
|
74
|
+
return {
|
|
75
|
+
code: 'Code',
|
|
76
|
+
data: 'Data',
|
|
77
|
+
message: 'Message',
|
|
78
|
+
requestId: 'RequestId',
|
|
79
|
+
success: 'Success',
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
static types(): { [key: string]: any } {
|
|
84
|
+
return {
|
|
85
|
+
code: 'string',
|
|
86
|
+
data: ImageTranslationStandardAsyncResponseBodyData,
|
|
87
|
+
message: 'string',
|
|
88
|
+
requestId: 'string',
|
|
89
|
+
success: 'boolean',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
validate() {
|
|
94
|
+
if(this.data && typeof (this.data as any).validate === 'function') {
|
|
95
|
+
(this.data as any).validate();
|
|
96
|
+
}
|
|
97
|
+
super.validate();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
constructor(map?: { [key: string]: any }) {
|
|
101
|
+
super(map);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
@@ -13,10 +13,10 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
13
13
|
glossary?: string;
|
|
14
14
|
/**
|
|
15
15
|
* @remarks
|
|
16
|
-
* - Image URL:
|
|
16
|
+
* - Image URL: Must be publicly accessible.
|
|
17
17
|
* - Format: png, jpeg, jpg, bmp, or webp.
|
|
18
|
-
* - Pixels:
|
|
19
|
-
* - File size: The original file must be 10 MB
|
|
18
|
+
* - Pixels: Both width and height must not exceed 4000.
|
|
19
|
+
* - File size: The original file must be ≤ 10 MB.
|
|
20
20
|
*
|
|
21
21
|
* This parameter is required.
|
|
22
22
|
*
|
|
@@ -26,7 +26,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
26
26
|
imageUrl?: string;
|
|
27
27
|
/**
|
|
28
28
|
* @remarks
|
|
29
|
-
* Specifies whether to translate text on the
|
|
29
|
+
* Specifies whether to translate text on the image subject. This parameter is optional. Default value: false. This helps protect information and avoids translating embedded information such as product names.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* false
|
|
@@ -34,7 +34,9 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
34
34
|
includingProductArea?: boolean;
|
|
35
35
|
/**
|
|
36
36
|
* @remarks
|
|
37
|
-
* The source language code. This parameter is required.
|
|
37
|
+
* The source language code. This parameter is required.
|
|
38
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
39
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
38
40
|
*
|
|
39
41
|
* This parameter is required.
|
|
40
42
|
*
|
|
@@ -44,7 +46,9 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
44
46
|
sourceLanguage?: string;
|
|
45
47
|
/**
|
|
46
48
|
* @remarks
|
|
47
|
-
* The target language code. This parameter is required.
|
|
49
|
+
* The target language code. This parameter is required.
|
|
50
|
+
* <props="china">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/en/document_detail/3041883.html).
|
|
51
|
+
* <props="intl">For supported language directions, see [Language direction mapping](https://www.alibabacloud.com/help/zh/aidge/language-direction-mapping).
|
|
48
52
|
*
|
|
49
53
|
* This parameter is required.
|
|
50
54
|
*
|
|
@@ -62,7 +66,7 @@ export class ImageTranslationStandardRequest extends $dara.Model {
|
|
|
62
66
|
translatingBrandInTheProduct?: boolean;
|
|
63
67
|
/**
|
|
64
68
|
* @remarks
|
|
65
|
-
* Specifies whether to return layer information such as text position, font, and color. If
|
|
69
|
+
* Specifies whether to return layer information such as text position, font, and color. If this parameter is set to true, layer information is returned, which can be used to connect to an image editor for secondary editing. Default value: false.
|
|
66
70
|
*
|
|
67
71
|
* @example
|
|
68
72
|
* false
|
|
@@ -207,7 +207,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts exte
|
|
|
207
207
|
language?: string;
|
|
208
208
|
/**
|
|
209
209
|
* @remarks
|
|
210
|
-
* The
|
|
210
|
+
* The line count.
|
|
211
211
|
*
|
|
212
212
|
* @example
|
|
213
213
|
* 1
|
|
@@ -322,7 +322,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreas extends $
|
|
|
322
322
|
horizontalLayout?: string;
|
|
323
323
|
/**
|
|
324
324
|
* @remarks
|
|
325
|
-
* The
|
|
325
|
+
* The line count.
|
|
326
326
|
*
|
|
327
327
|
* @example
|
|
328
328
|
* 2
|
|
@@ -388,12 +388,12 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
388
388
|
font?: string[];
|
|
389
389
|
/**
|
|
390
390
|
* @remarks
|
|
391
|
-
* The
|
|
391
|
+
* The product area rectangles.
|
|
392
392
|
*/
|
|
393
393
|
goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
|
|
394
394
|
/**
|
|
395
395
|
* @remarks
|
|
396
|
-
* The
|
|
396
|
+
* The product image URL.
|
|
397
397
|
*
|
|
398
398
|
* @example
|
|
399
399
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -409,7 +409,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
409
409
|
languages?: string[];
|
|
410
410
|
/**
|
|
411
411
|
* @remarks
|
|
412
|
-
* The
|
|
412
|
+
* The original image URL.
|
|
413
413
|
*
|
|
414
414
|
* @example
|
|
415
415
|
* https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
|
|
@@ -417,7 +417,7 @@ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Mode
|
|
|
417
417
|
pictUrl?: string;
|
|
418
418
|
/**
|
|
419
419
|
* @remarks
|
|
420
|
-
* The
|
|
420
|
+
* The repaired image URL.
|
|
421
421
|
*
|
|
422
422
|
* @example
|
|
423
423
|
* http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
|
|
@@ -568,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
|
|
|
568
568
|
export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
569
569
|
/**
|
|
570
570
|
* @remarks
|
|
571
|
-
* The response code. 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
571
|
+
* The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
|
|
572
572
|
*
|
|
573
573
|
* @example
|
|
574
574
|
* 200
|
|
@@ -576,7 +576,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
|
|
|
576
576
|
code?: string;
|
|
577
577
|
/**
|
|
578
578
|
* @remarks
|
|
579
|
-
* The translation result data, including the
|
|
579
|
+
* The translation result data, including the translated image URL and usage information.
|
|
580
580
|
*/
|
|
581
581
|
data?: ImageTranslationStandardResponseBodyData;
|
|
582
582
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class MerchandisePlacementDetectionLiteRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The HTTPS URL of the display image to be detected.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* https://example.com/image.jpg
|
|
14
|
+
*/
|
|
15
|
+
imageUrl?: string;
|
|
16
|
+
static names(): { [key: string]: string } {
|
|
17
|
+
return {
|
|
18
|
+
imageUrl: 'ImageUrl',
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
static types(): { [key: string]: any } {
|
|
23
|
+
return {
|
|
24
|
+
imageUrl: 'string',
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
validate() {
|
|
29
|
+
super.validate();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
constructor(map?: { [key: string]: any }) {
|
|
33
|
+
super(map);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { MerchandisePlacementDetectionLiteResponseBody } from "./MerchandisePlacementDetectionLiteResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class MerchandisePlacementDetectionLiteResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: MerchandisePlacementDetectionLiteResponseBody;
|
|
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: MerchandisePlacementDetectionLiteResponseBody,
|
|
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
|
+
|