Socket
Socket
Sign inDemoInstall

@azure/cognitiveservices-computervision

Package Overview
Dependencies
Maintainers
6
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azure/cognitiveservices-computervision - npm Package Compare versions

Comparing version 7.1.0 to 8.0.0

2

dist/cognitiveservices-computervision.min.js

@@ -1,1 +0,1 @@

!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],a):a(((e=e||self).Azure=e.Azure||{},e.Azure.CognitiveservicesComputervision={}),e.msRest)}(this,function(e,n){"use strict";var r=function(e,a){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var t in a)a.hasOwnProperty(t)&&(e[t]=a[t])})(e,a)};function a(e,a){function t(){this.constructor=e}r(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}var s,t=function(){return(t=Object.assign||function(e){for(var a,t=1,r=arguments.length;t<r;t++)for(var i in a=arguments[t])Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);return e}).apply(this,arguments)},i=Object.freeze({__proto__:null}),l={serializedName:"ImageAnalysis",type:{name:"Composite",className:"ImageAnalysis",modelProperties:{categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"Composite",className:"Category"}}}},adult:{serializedName:"adult",type:{name:"Composite",className:"AdultInfo"}},color:{serializedName:"color",type:{name:"Composite",className:"ColorInfo"}},imageType:{serializedName:"imageType",type:{name:"Composite",className:"ImageType"}},tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},description:{serializedName:"description",type:{name:"Composite",className:"ImageDescriptionDetails"}},faces:{nullable:!0,serializedName:"faces",type:{name:"Sequence",element:{type:{name:"Composite",className:"FaceDescription"}}}},objects:{nullable:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},brands:{nullable:!0,serializedName:"brands",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedBrand"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},m={serializedName:"ImageDescription",type:{name:"Composite",className:"ImageDescription",modelProperties:{tags:{nullable:!0,serializedName:"description.tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"description.captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},o={serializedName:"DetectResult",type:{name:"Composite",className:"DetectResult",modelProperties:{objects:{nullable:!0,readOnly:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},p={serializedName:"ListModelsResult",type:{name:"Composite",className:"ListModelsResult",modelProperties:{modelsProperty:{nullable:!0,readOnly:!0,serializedName:"models",type:{name:"Sequence",element:{type:{name:"Composite",className:"ModelDescription"}}}}}}},d={serializedName:"DomainModelResults",type:{name:"Composite",className:"DomainModelResults",modelProperties:{result:{serializedName:"result",type:{name:"Object"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},u={serializedName:"OcrResult",type:{name:"Composite",className:"OcrResult",modelProperties:{language:{nullable:!0,serializedName:"language",type:{name:"String"}},textAngle:{nullable:!1,serializedName:"textAngle",type:{name:"Number"}},orientation:{nullable:!0,serializedName:"orientation",type:{name:"String"}},regions:{nullable:!0,serializedName:"regions",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrRegion"}}}}}}},c={serializedName:"TagResult",type:{name:"Composite",className:"TagResult",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},y={serializedName:"AreaOfInterestResult",type:{name:"Composite",className:"AreaOfInterestResult",modelProperties:{areaOfInterest:{readOnly:!0,serializedName:"areaOfInterest",type:{name:"Composite",className:"BoundingRect"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},N={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},g={serializedName:"ComputerVisionError",type:{name:"Composite",className:"ComputerVisionError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"Object"}},message:{required:!0,serializedName:"message",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}}}}},z={serializedName:"ReadOperationResult",type:{name:"Composite",className:"ReadOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["notStarted","running","failed","succeeded"]}},createdDateTime:{nullable:!1,serializedName:"createdDateTime",type:{name:"String"}},lastUpdatedDateTime:{nullable:!1,serializedName:"lastUpdatedDateTime",type:{name:"String"}},analyzeResult:{serializedName:"analyzeResult",type:{name:"Composite",className:"AnalyzeResults"}}}}},b={serializedName:"read-headers",type:{name:"Composite",className:"ReadHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},h={serializedName:"readinstream-headers",type:{name:"Composite",className:"ReadInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},C=Object.freeze({__proto__:null,FaceRectangle:{serializedName:"FaceRectangle",type:{name:"Composite",className:"FaceRectangle",modelProperties:{left:{nullable:!1,serializedName:"left",type:{name:"Number"}},top:{nullable:!1,serializedName:"top",type:{name:"Number"}},width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}}}}},CelebritiesModel:{serializedName:"CelebritiesModel",type:{name:"Composite",className:"CelebritiesModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},LandmarksModel:{serializedName:"LandmarksModel",type:{name:"Composite",className:"LandmarksModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},CategoryDetail:{serializedName:"CategoryDetail",type:{name:"Composite",className:"CategoryDetail",modelProperties:{celebrities:{nullable:!0,serializedName:"celebrities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CelebritiesModel"}}}},landmarks:{nullable:!0,serializedName:"landmarks",type:{name:"Sequence",element:{type:{name:"Composite",className:"LandmarksModel"}}}}}}},Category:{serializedName:"Category",type:{name:"Composite",className:"Category",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},score:{nullable:!1,serializedName:"score",type:{name:"Number"}},detail:{serializedName:"detail",type:{name:"Composite",className:"CategoryDetail"}}}}},AdultInfo:{serializedName:"AdultInfo",type:{name:"Composite",className:"AdultInfo",modelProperties:{isAdultContent:{nullable:!1,serializedName:"isAdultContent",type:{name:"Boolean"}},isRacyContent:{nullable:!1,serializedName:"isRacyContent",type:{name:"Boolean"}},isGoryContent:{nullable:!1,serializedName:"isGoryContent",type:{name:"Boolean"}},adultScore:{nullable:!1,serializedName:"adultScore",type:{name:"Number"}},racyScore:{nullable:!1,serializedName:"racyScore",type:{name:"Number"}},goreScore:{nullable:!1,serializedName:"goreScore",type:{name:"Number"}}}}},ColorInfo:{serializedName:"ColorInfo",type:{name:"Composite",className:"ColorInfo",modelProperties:{dominantColorForeground:{nullable:!0,serializedName:"dominantColorForeground",type:{name:"String"}},dominantColorBackground:{nullable:!0,serializedName:"dominantColorBackground",type:{name:"String"}},dominantColors:{nullable:!0,serializedName:"dominantColors",type:{name:"Sequence",element:{type:{name:"String"}}}},accentColor:{nullable:!0,serializedName:"accentColor",type:{name:"String"}},isBWImg:{nullable:!1,serializedName:"isBWImg",type:{name:"Boolean"}}}}},ImageType:{serializedName:"ImageType",type:{name:"Composite",className:"ImageType",modelProperties:{clipArtType:{nullable:!1,serializedName:"clipArtType",type:{name:"Number"}},lineDrawingType:{nullable:!1,serializedName:"lineDrawingType",type:{name:"Number"}}}}},ImageTag:{serializedName:"ImageTag",type:{name:"Composite",className:"ImageTag",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},hint:{nullable:!0,serializedName:"hint",type:{name:"String"}}}}},ImageCaption:{serializedName:"ImageCaption",type:{name:"Composite",className:"ImageCaption",modelProperties:{text:{nullable:!0,serializedName:"text",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},ImageDescriptionDetails:{serializedName:"ImageDescriptionDetails",type:{name:"Composite",className:"ImageDescriptionDetails",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}}}}},FaceDescription:{serializedName:"FaceDescription",type:{name:"Composite",className:"FaceDescription",modelProperties:{age:{nullable:!1,serializedName:"age",type:{name:"Number"}},gender:{nullable:!0,serializedName:"gender",type:{name:"Enum",allowedValues:["Male","Female"]}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},BoundingRect:{serializedName:"BoundingRect",type:{name:"Composite",className:"BoundingRect",modelProperties:{x:{nullable:!1,serializedName:"x",type:{name:"Number"}},y:{nullable:!1,serializedName:"y",type:{name:"Number"}},w:{nullable:!1,serializedName:"w",type:{name:"Number"}},h:{nullable:!1,serializedName:"h",type:{name:"Number"}}}}},ObjectHierarchy:{serializedName:"ObjectHierarchy",type:{name:"Composite",className:"ObjectHierarchy",modelProperties:{object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},DetectedObject:{serializedName:"DetectedObject",type:{name:"Composite",className:"DetectedObject",modelProperties:{rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}},object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},DetectedBrand:{serializedName:"DetectedBrand",type:{name:"Composite",className:"DetectedBrand",modelProperties:{name:{nullable:!0,readOnly:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,readOnly:!0,serializedName:"confidence",type:{name:"Number"}},rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}}}}},ImageMetadata:{serializedName:"ImageMetadata",type:{name:"Composite",className:"ImageMetadata",modelProperties:{width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}},format:{nullable:!0,serializedName:"format",type:{name:"String"}}}}},ImageAnalysis:l,ImageDescription:m,DetectResult:o,ModelDescription:{serializedName:"ModelDescription",type:{name:"Composite",className:"ModelDescription",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ListModelsResult:p,DomainModelResults:d,OcrWord:{serializedName:"OcrWord",type:{name:"Composite",className:"OcrWord",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},text:{nullable:!0,serializedName:"text",type:{name:"String"}}}}},OcrLine:{serializedName:"OcrLine",type:{name:"Composite",className:"OcrLine",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},words:{nullable:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrWord"}}}}}}},OcrRegion:{serializedName:"OcrRegion",type:{name:"Composite",className:"OcrRegion",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},lines:{nullable:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrLine"}}}}}}},OcrResult:u,TagResult:c,AreaOfInterestResult:y,ImageUrl:N,ComputerVisionError:g,LandmarkResults:{serializedName:"LandmarkResults",type:{name:"Composite",className:"LandmarkResults",modelProperties:{landmarks:{nullable:!0,serializedName:"landmarks",type:{name:"Sequence",element:{type:{name:"Composite",className:"LandmarksModel"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},CelebrityResults:{serializedName:"CelebrityResults",type:{name:"Composite",className:"CelebrityResults",modelProperties:{celebrities:{nullable:!0,serializedName:"celebrities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CelebritiesModel"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}}}}},Word:{serializedName:"Word",type:{name:"Composite",className:"Word",modelProperties:{boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{required:!0,serializedName:"text",type:{name:"String"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},Line:{serializedName:"Line",type:{name:"Composite",className:"Line",modelProperties:{language:{serializedName:"language",type:{name:"String"}},boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{required:!0,serializedName:"text",type:{name:"String"}},words:{required:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"Word"}}}}}}},ReadResult:{serializedName:"ReadResult",type:{name:"Composite",className:"ReadResult",modelProperties:{page:{required:!0,serializedName:"page",type:{name:"Number"}},language:{serializedName:"language",type:{name:"String"}},angle:{required:!0,serializedName:"angle",type:{name:"Number"}},width:{required:!0,serializedName:"width",type:{name:"Number"}},height:{required:!0,serializedName:"height",type:{name:"Number"}},unit:{required:!0,nullable:!1,serializedName:"unit",type:{name:"Enum",allowedValues:["pixel","inch"]}},lines:{required:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"Line"}}}}}}},AnalyzeResults:{serializedName:"analyzeResults",type:{name:"Composite",className:"AnalyzeResults",modelProperties:{version:{required:!0,serializedName:"version",type:{name:"String"}},readResults:{required:!0,serializedName:"readResults",type:{name:"Sequence",element:{type:{name:"Composite",className:"ReadResult"}}}}}}},ReadOperationResult:z,ReadHeaders:b,ReadInStreamHeaders:h}),q={parameterPath:["options","descriptionExclude"],mapper:{serializedName:"descriptionExclude",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},P={parameterPath:["options","details"],mapper:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},S={parameterPath:"detectOrientation",mapper:{required:!0,serializedName:"detectOrientation",defaultValue:!0,type:{name:"Boolean"}}},f={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},I={parameterPath:"height",mapper:{required:!0,serializedName:"height",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},O={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"en",type:{name:"String"}}},M={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"unk",type:{name:"Enum",allowedValues:["unk","zh-Hans","zh-Hant","cs","da","nl","en","fi","fr","de","el","hu","it","ja","ko","nb","pl","pt","ru","es","sv","tr","ar","ro","sr-Cyrl","sr-Latn","sk"]}}},R={parameterPath:["options","maxCandidates"],mapper:{serializedName:"maxCandidates",defaultValue:1,type:{name:"Number"}}},T={parameterPath:"model",mapper:{required:!0,serializedName:"model",type:{name:"String"}}},B={parameterPath:["options","smartCropping"],mapper:{serializedName:"smartCropping",defaultValue:!1,type:{name:"Boolean"}}},D={parameterPath:["options","visualFeatures"],mapper:{serializedName:"visualFeatures",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["ImageType","Faces","Adult","Categories","Color","Tags","Description","Objects","Brands"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},j={parameterPath:"width",mapper:{required:!0,serializedName:"width",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},x=(a(w,s=n.ServiceClient),w);function w(e,a,t){var r,i=this;if(null==a)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");return(t=t||{}).userAgent||(r=n.getDefaultUserAgentValue(),t.userAgent="@azure/cognitiveservices-computervision/7.1.0 "+r),(i=s.call(this,e,t)||this).baseUri="{Endpoint}/vision/v3.1",i.requestContentType="application/json; charset=utf-8",i.endpoint=a,i.credentials=e,i}var v,A=(a(L,v=x),L.prototype.analyzeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},F,t)},L.prototype.describeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},V,t)},L.prototype.detectObjects=function(e,a,t){return this.sendOperationRequest({url:e,options:a},E,t)},L.prototype.listModels=function(e,a){return this.sendOperationRequest({options:e},_,a)},L.prototype.analyzeImageByDomain=function(e,a,t,r){return this.sendOperationRequest({model:e,url:a,options:t},H,r)},L.prototype.recognizePrintedText=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,url:a,options:t},W,r)},L.prototype.tagImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},U,t)},L.prototype.generateThumbnail=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,url:t,options:r},G,i)},L.prototype.getAreaOfInterest=function(e,a,t){return this.sendOperationRequest({url:e,options:a},Q,t)},L.prototype.read=function(e,a,t){return this.sendOperationRequest({url:e,options:a},J,t)},L.prototype.getReadResult=function(e,a,t){return this.sendOperationRequest({operationId:e,options:a},K,t)},L.prototype.analyzeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},X,t)},L.prototype.getAreaOfInterestInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},Y,t)},L.prototype.describeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},Z,t)},L.prototype.detectObjectsInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},$,t)},L.prototype.generateThumbnailInStream=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,image:t,options:r},ee,i)},L.prototype.analyzeImageByDomainInStream=function(e,a,t,r){return this.sendOperationRequest({model:e,image:a,options:t},ae,r)},L.prototype.recognizePrintedTextInStream=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,image:a,options:t},te,r)},L.prototype.tagImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},re,t)},L.prototype.readInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ie,t)},L);function L(e,a,t){return v.call(this,e,a,t)||this}var k=new n.Serializer(C),F={httpMethod:"POST",path:"analyze",urlParameters:[f],queryParameters:[D,P,O,q],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:g}},serializer:k},V={httpMethod:"POST",path:"describe",urlParameters:[f],queryParameters:[R,O,q],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:m},default:{bodyMapper:g}},serializer:k},E={httpMethod:"POST",path:"detect",urlParameters:[f],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:o},default:{bodyMapper:g}},serializer:k},_={httpMethod:"GET",path:"models",urlParameters:[f],responses:{200:{bodyMapper:p},default:{bodyMapper:g}},serializer:k},H={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[f,T],queryParameters:[O],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:g}},serializer:k},W={httpMethod:"POST",path:"ocr",urlParameters:[f],queryParameters:[S,M],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:u},default:{bodyMapper:g}},serializer:k},U={httpMethod:"POST",path:"tag",urlParameters:[f],queryParameters:[O],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:c},default:{bodyMapper:g}},serializer:k},G={httpMethod:"POST",path:"generateThumbnail",urlParameters:[f],queryParameters:[j,I,B],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:k},Q={httpMethod:"POST",path:"areaOfInterest",urlParameters:[f],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:y},default:{bodyMapper:g}},serializer:k},J={httpMethod:"POST",path:"read/analyze",urlParameters:[f],queryParameters:[O],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{202:{headersMapper:b},default:{bodyMapper:g,headersMapper:b}},serializer:k},K={httpMethod:"GET",path:"read/analyzeResults/{operationId}",urlParameters:[f,{parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"Uuid"}}}],responses:{200:{bodyMapper:z},default:{bodyMapper:g}},serializer:k},X={httpMethod:"POST",path:"analyze",urlParameters:[f],queryParameters:[D,P,O,q],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:l},default:{bodyMapper:g}},serializer:k},Y={httpMethod:"POST",path:"areaOfInterest",urlParameters:[f],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:y},default:{bodyMapper:g}},serializer:k},Z={httpMethod:"POST",path:"describe",urlParameters:[f],queryParameters:[R,O,q],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:m},default:{bodyMapper:g}},serializer:k},$={httpMethod:"POST",path:"detect",urlParameters:[f],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:o},default:{bodyMapper:g}},serializer:k},ee={httpMethod:"POST",path:"generateThumbnail",urlParameters:[f],queryParameters:[j,I,B],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:k},ae={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[f,T],queryParameters:[O],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:d},default:{bodyMapper:g}},serializer:k},te={httpMethod:"POST",path:"ocr",urlParameters:[f],queryParameters:[S,M],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:u},default:{bodyMapper:g}},serializer:k},re={httpMethod:"POST",path:"tag",urlParameters:[f],queryParameters:[O],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:c},default:{bodyMapper:g}},serializer:k},ie={httpMethod:"POST",path:"read/analyze",urlParameters:[f],queryParameters:[O],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:h},default:{bodyMapper:g,headersMapper:h}},serializer:k};e.ComputerVisionClient=A,e.ComputerVisionClientContext=x,e.ComputerVisionMappers=C,e.ComputerVisionModels=i,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-js"],a):a(((e=e||self).Azure=e.Azure||{},e.Azure.CognitiveservicesComputervision={}),e.msRest)}(this,function(e,n){"use strict";var r=function(e,a){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var t in a)a.hasOwnProperty(t)&&(e[t]=a[t])})(e,a)};function a(e,a){function t(){this.constructor=e}r(e,a),e.prototype=null===a?Object.create(a):(t.prototype=a.prototype,new t)}var s,t=function(){return(t=Object.assign||function(e){for(var a,t=1,r=arguments.length;t<r;t++)for(var i in a=arguments[t])Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);return e}).apply(this,arguments)},i=Object.freeze({__proto__:null}),m={serializedName:"ImageAnalysis",type:{name:"Composite",className:"ImageAnalysis",modelProperties:{categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"Composite",className:"Category"}}}},adult:{serializedName:"adult",type:{name:"Composite",className:"AdultInfo"}},color:{serializedName:"color",type:{name:"Composite",className:"ColorInfo"}},imageType:{serializedName:"imageType",type:{name:"Composite",className:"ImageType"}},tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},description:{serializedName:"description",type:{name:"Composite",className:"ImageDescriptionDetails"}},faces:{nullable:!0,serializedName:"faces",type:{name:"Sequence",element:{type:{name:"Composite",className:"FaceDescription"}}}},objects:{nullable:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},brands:{nullable:!0,serializedName:"brands",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedBrand"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},l={serializedName:"ImageDescription",type:{name:"Composite",className:"ImageDescription",modelProperties:{tags:{nullable:!0,serializedName:"description.tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"description.captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},o={serializedName:"DetectResult",type:{name:"Composite",className:"DetectResult",modelProperties:{objects:{nullable:!0,readOnly:!0,serializedName:"objects",type:{name:"Sequence",element:{type:{name:"Composite",className:"DetectedObject"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},p={serializedName:"ListModelsResult",type:{name:"Composite",className:"ListModelsResult",modelProperties:{modelsProperty:{nullable:!0,readOnly:!0,serializedName:"models",type:{name:"Sequence",element:{type:{name:"Composite",className:"ModelDescription"}}}}}}},d={serializedName:"DomainModelResults",type:{name:"Composite",className:"DomainModelResults",modelProperties:{result:{serializedName:"result",type:{name:"Object"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},u={serializedName:"OcrResult",type:{name:"Composite",className:"OcrResult",modelProperties:{language:{nullable:!0,serializedName:"language",type:{name:"String"}},textAngle:{nullable:!1,serializedName:"textAngle",type:{name:"Number"}},orientation:{nullable:!0,serializedName:"orientation",type:{name:"String"}},regions:{nullable:!0,serializedName:"regions",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrRegion"}}}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},c={serializedName:"TagResult",type:{name:"Composite",className:"TagResult",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageTag"}}}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},y={serializedName:"AreaOfInterestResult",type:{name:"Composite",className:"AreaOfInterestResult",modelProperties:{areaOfInterest:{readOnly:!0,serializedName:"areaOfInterest",type:{name:"Composite",className:"BoundingRect"}},requestId:{nullable:!0,serializedName:"requestId",type:{name:"String"}},metadata:{serializedName:"metadata",type:{name:"Composite",className:"ImageMetadata"}},modelVersion:{serializedName:"modelVersion",type:{name:"String"}}}}},N={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},g={serializedName:"ComputerVisionErrorResponse",type:{name:"Composite",className:"ComputerVisionErrorResponse",modelProperties:{error:{required:!0,serializedName:"error",type:{name:"Composite",className:"ComputerVisionError"}}}}},z={serializedName:"ReadOperationResult",type:{name:"Composite",className:"ReadOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["notStarted","running","failed","succeeded"]}},createdDateTime:{nullable:!1,serializedName:"createdDateTime",type:{name:"String"}},lastUpdatedDateTime:{nullable:!1,serializedName:"lastUpdatedDateTime",type:{name:"String"}},analyzeResult:{serializedName:"analyzeResult",type:{name:"Composite",className:"AnalyzeResults"}}}}},b={serializedName:"ComputerVisionOcrError",type:{name:"Composite",className:"ComputerVisionOcrError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"Object"}},message:{required:!0,serializedName:"message",type:{name:"String"}},requestId:{serializedName:"requestId",type:{name:"String"}}}}},h={serializedName:"read-headers",type:{name:"Composite",className:"ReadHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},C={serializedName:"readinstream-headers",type:{name:"Composite",className:"ReadInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},q=Object.freeze({__proto__:null,FaceRectangle:{serializedName:"FaceRectangle",type:{name:"Composite",className:"FaceRectangle",modelProperties:{left:{nullable:!1,serializedName:"left",type:{name:"Number"}},top:{nullable:!1,serializedName:"top",type:{name:"Number"}},width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}}}}},CelebritiesModel:{serializedName:"CelebritiesModel",type:{name:"Composite",className:"CelebritiesModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},LandmarksModel:{serializedName:"LandmarksModel",type:{name:"Composite",className:"LandmarksModel",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},CategoryDetail:{serializedName:"CategoryDetail",type:{name:"Composite",className:"CategoryDetail",modelProperties:{celebrities:{nullable:!0,serializedName:"celebrities",type:{name:"Sequence",element:{type:{name:"Composite",className:"CelebritiesModel"}}}},landmarks:{nullable:!0,serializedName:"landmarks",type:{name:"Sequence",element:{type:{name:"Composite",className:"LandmarksModel"}}}}}}},Category:{serializedName:"Category",type:{name:"Composite",className:"Category",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},score:{nullable:!1,serializedName:"score",type:{name:"Number"}},detail:{serializedName:"detail",type:{name:"Composite",className:"CategoryDetail"}}}}},AdultInfo:{serializedName:"AdultInfo",type:{name:"Composite",className:"AdultInfo",modelProperties:{isAdultContent:{nullable:!1,serializedName:"isAdultContent",type:{name:"Boolean"}},isRacyContent:{nullable:!1,serializedName:"isRacyContent",type:{name:"Boolean"}},isGoryContent:{nullable:!1,serializedName:"isGoryContent",type:{name:"Boolean"}},adultScore:{nullable:!1,serializedName:"adultScore",type:{name:"Number"}},racyScore:{nullable:!1,serializedName:"racyScore",type:{name:"Number"}},goreScore:{nullable:!1,serializedName:"goreScore",type:{name:"Number"}}}}},ColorInfo:{serializedName:"ColorInfo",type:{name:"Composite",className:"ColorInfo",modelProperties:{dominantColorForeground:{nullable:!0,serializedName:"dominantColorForeground",type:{name:"String"}},dominantColorBackground:{nullable:!0,serializedName:"dominantColorBackground",type:{name:"String"}},dominantColors:{nullable:!0,serializedName:"dominantColors",type:{name:"Sequence",element:{type:{name:"String"}}}},accentColor:{nullable:!0,serializedName:"accentColor",type:{name:"String"}},isBWImg:{nullable:!1,serializedName:"isBWImg",type:{name:"Boolean"}}}}},ImageType:{serializedName:"ImageType",type:{name:"Composite",className:"ImageType",modelProperties:{clipArtType:{nullable:!1,serializedName:"clipArtType",type:{name:"Number"}},lineDrawingType:{nullable:!1,serializedName:"lineDrawingType",type:{name:"Number"}}}}},ImageTag:{serializedName:"ImageTag",type:{name:"Composite",className:"ImageTag",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},hint:{nullable:!0,serializedName:"hint",type:{name:"String"}}}}},ImageCaption:{serializedName:"ImageCaption",type:{name:"Composite",className:"ImageCaption",modelProperties:{text:{nullable:!0,serializedName:"text",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}}}}},ImageDescriptionDetails:{serializedName:"ImageDescriptionDetails",type:{name:"Composite",className:"ImageDescriptionDetails",modelProperties:{tags:{nullable:!0,serializedName:"tags",type:{name:"Sequence",element:{type:{name:"String"}}}},captions:{nullable:!0,serializedName:"captions",type:{name:"Sequence",element:{type:{name:"Composite",className:"ImageCaption"}}}}}}},FaceDescription:{serializedName:"FaceDescription",type:{name:"Composite",className:"FaceDescription",modelProperties:{age:{nullable:!1,serializedName:"age",type:{name:"Number"}},gender:{nullable:!0,serializedName:"gender",type:{name:"Enum",allowedValues:["Male","Female"]}},faceRectangle:{serializedName:"faceRectangle",type:{name:"Composite",className:"FaceRectangle"}}}}},BoundingRect:{serializedName:"BoundingRect",type:{name:"Composite",className:"BoundingRect",modelProperties:{x:{nullable:!1,serializedName:"x",type:{name:"Number"}},y:{nullable:!1,serializedName:"y",type:{name:"Number"}},w:{nullable:!1,serializedName:"w",type:{name:"Number"}},h:{nullable:!1,serializedName:"h",type:{name:"Number"}}}}},ObjectHierarchy:{serializedName:"ObjectHierarchy",type:{name:"Composite",className:"ObjectHierarchy",modelProperties:{object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},DetectedObject:{serializedName:"DetectedObject",type:{name:"Composite",className:"DetectedObject",modelProperties:{rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}},object:{nullable:!0,serializedName:"object",type:{name:"String"}},confidence:{nullable:!1,serializedName:"confidence",type:{name:"Number"}},parent:{serializedName:"parent",type:{name:"Composite",className:"ObjectHierarchy"}}}}},DetectedBrand:{serializedName:"DetectedBrand",type:{name:"Composite",className:"DetectedBrand",modelProperties:{name:{nullable:!0,readOnly:!0,serializedName:"name",type:{name:"String"}},confidence:{nullable:!1,readOnly:!0,serializedName:"confidence",type:{name:"Number"}},rectangle:{readOnly:!0,serializedName:"rectangle",type:{name:"Composite",className:"BoundingRect"}}}}},ImageMetadata:{serializedName:"ImageMetadata",type:{name:"Composite",className:"ImageMetadata",modelProperties:{width:{nullable:!1,serializedName:"width",type:{name:"Number"}},height:{nullable:!1,serializedName:"height",type:{name:"Number"}},format:{nullable:!0,serializedName:"format",type:{name:"String"}}}}},ImageAnalysis:m,ImageDescription:l,DetectResult:o,ModelDescription:{serializedName:"ModelDescription",type:{name:"Composite",className:"ModelDescription",modelProperties:{name:{nullable:!0,serializedName:"name",type:{name:"String"}},categories:{nullable:!0,serializedName:"categories",type:{name:"Sequence",element:{type:{name:"String"}}}}}}},ListModelsResult:p,DomainModelResults:d,OcrWord:{serializedName:"OcrWord",type:{name:"Composite",className:"OcrWord",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},text:{nullable:!0,serializedName:"text",type:{name:"String"}}}}},OcrLine:{serializedName:"OcrLine",type:{name:"Composite",className:"OcrLine",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},words:{nullable:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrWord"}}}}}}},OcrRegion:{serializedName:"OcrRegion",type:{name:"Composite",className:"OcrRegion",modelProperties:{boundingBox:{nullable:!0,serializedName:"boundingBox",type:{name:"String"}},lines:{nullable:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"OcrLine"}}}}}}},OcrResult:u,TagResult:c,AreaOfInterestResult:y,ImageUrl:N,ComputerVisionInnerError:{serializedName:"ComputerVisionInnerError",type:{name:"Composite",className:"ComputerVisionInnerError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}}}}},ComputerVisionError:{serializedName:"ComputerVisionError",type:{name:"Composite",className:"ComputerVisionError",modelProperties:{code:{required:!0,serializedName:"code",type:{name:"String"}},message:{required:!0,serializedName:"message",type:{name:"String"}},innererror:{serializedName:"innererror",type:{name:"Composite",className:"ComputerVisionInnerError"}}}}},ComputerVisionErrorResponse:g,Style:{serializedName:"Style",type:{name:"Composite",className:"Style",modelProperties:{name:{required:!0,serializedName:"name",type:{name:"String"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},Appearance:{serializedName:"Appearance",type:{name:"Composite",className:"Appearance",modelProperties:{style:{required:!0,serializedName:"style",type:{name:"Composite",className:"Style"}}}}},Word:{serializedName:"Word",type:{name:"Composite",className:"Word",modelProperties:{boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{required:!0,serializedName:"text",type:{name:"String"}},confidence:{required:!0,serializedName:"confidence",type:{name:"Number"}}}}},Line:{serializedName:"Line",type:{name:"Composite",className:"Line",modelProperties:{language:{serializedName:"language",type:{name:"String"}},boundingBox:{required:!0,serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},appearance:{serializedName:"appearance",type:{name:"Composite",className:"Appearance"}},text:{required:!0,serializedName:"text",type:{name:"String"}},words:{required:!0,serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"Word"}}}}}}},ReadResult:{serializedName:"ReadResult",type:{name:"Composite",className:"ReadResult",modelProperties:{page:{required:!0,serializedName:"page",type:{name:"Number"}},language:{serializedName:"language",type:{name:"String"}},angle:{required:!0,serializedName:"angle",type:{name:"Number"}},width:{required:!0,serializedName:"width",type:{name:"Number"}},height:{required:!0,serializedName:"height",type:{name:"Number"}},unit:{required:!0,nullable:!1,serializedName:"unit",type:{name:"Enum",allowedValues:["pixel","inch"]}},lines:{required:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"Line"}}}}}}},AnalyzeResults:{serializedName:"analyzeResults",type:{name:"Composite",className:"AnalyzeResults",modelProperties:{version:{required:!0,serializedName:"version",type:{name:"String"}},modelVersion:{required:!0,serializedName:"modelVersion",constraints:{Pattern:/^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/},type:{name:"String"}},readResults:{required:!0,serializedName:"readResults",type:{name:"Sequence",element:{type:{name:"Composite",className:"ReadResult"}}}}}}},ReadOperationResult:z,ComputerVisionOcrError:b,ReadHeaders:h,ReadInStreamHeaders:C}),P={parameterPath:["options","descriptionExclude"],mapper:{serializedName:"descriptionExclude",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},S={parameterPath:["options","details"],mapper:{serializedName:"details",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},f={parameterPath:"detectOrientation",mapper:{required:!0,serializedName:"detectOrientation",defaultValue:!0,type:{name:"Boolean"}}},I={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},O={parameterPath:"height",mapper:{required:!0,serializedName:"height",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},M={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"en",type:{name:"String"}}},R={parameterPath:["options","language"],mapper:{serializedName:"language",defaultValue:"unk",type:{name:"Enum",allowedValues:["unk","zh-Hans","zh-Hant","cs","da","nl","en","fi","fr","de","el","hu","it","ja","ko","nb","pl","pt","ru","es","sv","tr","ar","ro","sr-Cyrl","sr-Latn","sk"]}}},T={parameterPath:["options","language"],mapper:{serializedName:"language",type:{name:"String"}}},B={parameterPath:["options","maxCandidates"],mapper:{serializedName:"maxCandidates",defaultValue:1,type:{name:"Number"}}},V={parameterPath:"model",mapper:{required:!0,serializedName:"model",type:{name:"String"}}},D={parameterPath:["options","modelVersion"],mapper:{serializedName:"model-version",defaultValue:"latest",constraints:{Pattern:/^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/},type:{name:"String"}}},j={parameterPath:["options","pages"],mapper:{serializedName:"pages",type:{name:"Sequence",element:{type:{name:"String"}}}},collectionFormat:n.QueryCollectionFormat.Csv},w={parameterPath:["options","smartCropping"],mapper:{serializedName:"smartCropping",defaultValue:!1,type:{name:"Boolean"}}},x={parameterPath:["options","visualFeatures"],mapper:{serializedName:"visualFeatures",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["ImageType","Faces","Adult","Categories","Color","Tags","Description","Objects","Brands"]}}}},collectionFormat:n.QueryCollectionFormat.Csv},v={parameterPath:"width",mapper:{required:!0,serializedName:"width",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},A=(a(E,s=n.ServiceClient),E);function E(e,a,t){var r,i=this;if(null==a)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");return(t=t||{}).userAgent||(r=n.getDefaultUserAgentValue(),t.userAgent="@azure/cognitiveservices-computervision/8.0.0 "+r),(i=s.call(this,e,t)||this).baseUri="{Endpoint}/vision/v3.2",i.requestContentType="application/json; charset=utf-8",i.endpoint=a,i.credentials=e,i}var F,L=(a(_,F=A),_.prototype.analyzeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},H,t)},_.prototype.describeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},W,t)},_.prototype.detectObjects=function(e,a,t){return this.sendOperationRequest({url:e,options:a},U,t)},_.prototype.listModels=function(e,a){return this.sendOperationRequest({options:e},G,a)},_.prototype.analyzeImageByDomain=function(e,a,t,r){return this.sendOperationRequest({model:e,url:a,options:t},Q,r)},_.prototype.recognizePrintedText=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,url:a,options:t},$,r)},_.prototype.tagImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},J,t)},_.prototype.generateThumbnail=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,url:t,options:r},K,i)},_.prototype.getAreaOfInterest=function(e,a,t){return this.sendOperationRequest({url:e,options:a},X,t)},_.prototype.read=function(e,a,t){return this.sendOperationRequest({url:e,options:a},Y,t)},_.prototype.getReadResult=function(e,a,t){return this.sendOperationRequest({operationId:e,options:a},Z,t)},_.prototype.analyzeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ee,t)},_.prototype.getAreaOfInterestInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ae,t)},_.prototype.describeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},te,t)},_.prototype.detectObjectsInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},re,t)},_.prototype.generateThumbnailInStream=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,image:t,options:r},ie,i)},_.prototype.analyzeImageByDomainInStream=function(e,a,t,r){return this.sendOperationRequest({model:e,image:a,options:t},ne,r)},_.prototype.recognizePrintedTextInStream=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,image:a,options:t},se,r)},_.prototype.tagImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},me,t)},_.prototype.readInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},le,t)},_);function _(e,a,t){return F.call(this,e,a,t)||this}var k=new n.Serializer(q),H={httpMethod:"POST",path:"analyze",urlParameters:[I],queryParameters:[x,S,M,P,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:m},default:{bodyMapper:g}},serializer:k},W={httpMethod:"POST",path:"describe",urlParameters:[I],queryParameters:[B,M,P,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:g}},serializer:k},U={httpMethod:"POST",path:"detect",urlParameters:[I],queryParameters:[D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:o},default:{bodyMapper:g}},serializer:k},G={httpMethod:"GET",path:"models",urlParameters:[I],responses:{200:{bodyMapper:p},default:{bodyMapper:g}},serializer:k},Q={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[I,V],queryParameters:[M,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:g}},serializer:k},$={httpMethod:"POST",path:"ocr",urlParameters:[I],queryParameters:[f,R,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:u},default:{bodyMapper:g}},serializer:k},J={httpMethod:"POST",path:"tag",urlParameters:[I],queryParameters:[M,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:c},default:{bodyMapper:g}},serializer:k},K={httpMethod:"POST",path:"generateThumbnail",urlParameters:[I],queryParameters:[v,O,w,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:k},X={httpMethod:"POST",path:"areaOfInterest",urlParameters:[I],queryParameters:[D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{200:{bodyMapper:y},default:{bodyMapper:g}},serializer:k},Y={httpMethod:"POST",path:"read/analyze",urlParameters:[I],queryParameters:[T,j,D],requestBody:{parameterPath:{url:"url"},mapper:t(t({},N),{required:!0})},responses:{202:{headersMapper:h},default:{bodyMapper:b,headersMapper:h}},serializer:k},Z={httpMethod:"GET",path:"read/analyzeResults/{operationId}",urlParameters:[I,{parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"Uuid"}}}],responses:{200:{bodyMapper:z},default:{bodyMapper:b}},serializer:k},ee={httpMethod:"POST",path:"analyze",urlParameters:[I],queryParameters:[x,S,M,P,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:m},default:{bodyMapper:g}},serializer:k},ae={httpMethod:"POST",path:"areaOfInterest",urlParameters:[I],queryParameters:[D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:y},default:{bodyMapper:g}},serializer:k},te={httpMethod:"POST",path:"describe",urlParameters:[I],queryParameters:[B,M,P,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:l},default:{bodyMapper:g}},serializer:k},re={httpMethod:"POST",path:"detect",urlParameters:[I],queryParameters:[D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:o},default:{bodyMapper:g}},serializer:k},ie={httpMethod:"POST",path:"generateThumbnail",urlParameters:[I],queryParameters:[v,O,w,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:k},ne={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[I,V],queryParameters:[M,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:d},default:{bodyMapper:g}},serializer:k},se={httpMethod:"POST",path:"ocr",urlParameters:[I],queryParameters:[f,R,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:u},default:{bodyMapper:g}},serializer:k},me={httpMethod:"POST",path:"tag",urlParameters:[I],queryParameters:[M,D],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:c},default:{bodyMapper:g}},serializer:k},le={httpMethod:"POST",path:"read/analyze",urlParameters:[I],queryParameters:[T,j],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:C},default:{bodyMapper:b,headersMapper:C}},serializer:k};e.ComputerVisionClient=L,e.ComputerVisionClientContext=A,e.ComputerVisionMappers=q,e.ComputerVisionModels=i,Object.defineProperty(e,"__esModule",{value:!0})});

@@ -70,3 +70,3 @@ import * as msRest from "@azure/ms-rest-js";

*/
detectObjects(url: string, options?: msRest.RequestOptionsBase): Promise<Models.DetectObjectsResponse>;
detectObjects(url: string, options?: Models.ComputerVisionClientDetectObjectsOptionalParams): Promise<Models.DetectObjectsResponse>;
/**

@@ -82,3 +82,3 @@ * @param url Publicly reachable URL of an image.

*/
detectObjects(url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjects(url: string, options: Models.ComputerVisionClientDetectObjectsOptionalParams, callback: msRest.ServiceCallback<Models.DetectResult>): void;
/**

@@ -238,3 +238,3 @@ * This operation returns the list of domain-specific models that are supported by the Computer

*/
getAreaOfInterest(url: string, options?: msRest.RequestOptionsBase): Promise<Models.GetAreaOfInterestResponse>;
getAreaOfInterest(url: string, options?: Models.ComputerVisionClientGetAreaOfInterestOptionalParams): Promise<Models.GetAreaOfInterestResponse>;
/**

@@ -250,3 +250,3 @@ * @param url Publicly reachable URL of an image.

*/
getAreaOfInterest(url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterest(url: string, options: Models.ComputerVisionClientGetAreaOfInterestOptionalParams, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
/**

@@ -327,3 +327,3 @@ * Use this interface to get the result of a Read operation, employing the state-of-the-art Optical

*/
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise<Models.GetAreaOfInterestInStreamResponse>;
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientGetAreaOfInterestInStreamOptionalParams): Promise<Models.GetAreaOfInterestInStreamResponse>;
/**

@@ -339,3 +339,3 @@ * @param image An image stream.

*/
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options: Models.ComputerVisionClientGetAreaOfInterestInStreamOptionalParams, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
/**

@@ -375,3 +375,3 @@ * This operation generates a description of an image in human readable language with complete

*/
detectObjectsInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise<Models.DetectObjectsInStreamResponse>;
detectObjectsInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientDetectObjectsInStreamOptionalParams): Promise<Models.DetectObjectsInStreamResponse>;
/**

@@ -387,3 +387,3 @@ * @param image An image stream.

*/
detectObjectsInStream(image: msRest.HttpRequestBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjectsInStream(image: msRest.HttpRequestBody, options: Models.ComputerVisionClientDetectObjectsInStreamOptionalParams, callback: msRest.ServiceCallback<Models.DetectResult>): void;
/**

@@ -390,0 +390,0 @@ * This operation generates a thumbnail image with the user-specified width and height. By default,

@@ -168,3 +168,4 @@ /*

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -182,3 +183,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -197,3 +198,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -211,3 +213,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -223,2 +225,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -235,3 +240,3 @@ parameterPath: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -252,3 +257,3 @@ },

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -266,3 +271,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -280,3 +286,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -294,3 +300,4 @@ },

Parameters.detectOrientation,
Parameters.language1
Parameters.language1,
Parameters.modelVersion
],

@@ -308,3 +315,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -321,3 +328,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -335,3 +343,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -350,3 +358,4 @@ },

Parameters.height,
Parameters.smartCropping
Parameters.smartCropping,
Parameters.modelVersion
],

@@ -378,2 +387,5 @@ requestBody: {

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -390,3 +402,3 @@ parameterPath: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -403,3 +415,5 @@ },

queryParameters: [
Parameters.language0
Parameters.language2,
Parameters.pages,
Parameters.modelVersion
],

@@ -417,3 +431,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError,
bodyMapper: Mappers.ComputerVisionOcrError,
headersMapper: Mappers.ReadHeaders

@@ -436,3 +450,3 @@ }

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionOcrError
}

@@ -452,3 +466,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -471,3 +486,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -483,2 +498,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -500,3 +518,3 @@ parameterPath: "image",

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -515,3 +533,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -534,3 +553,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -546,2 +565,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -563,3 +585,3 @@ parameterPath: "image",

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -578,3 +600,4 @@ },

Parameters.height,
Parameters.smartCropping
Parameters.smartCropping,
Parameters.modelVersion
],

@@ -613,3 +636,4 @@ requestBody: {

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -632,3 +656,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -646,3 +670,4 @@ },

Parameters.detectOrientation,
Parameters.language1
Parameters.language1,
Parameters.modelVersion
],

@@ -665,3 +690,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -678,3 +703,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -697,3 +723,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -710,3 +736,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language2,
Parameters.pages
],

@@ -729,3 +756,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError,
bodyMapper: Mappers.ComputerVisionOcrError,
headersMapper: Mappers.ReadInStreamHeaders

@@ -732,0 +759,0 @@ }

@@ -13,3 +13,3 @@ /*

var packageName = "@azure/cognitiveservices-computervision";
var packageVersion = "7.1.0";
var packageVersion = "8.0.0";
var ComputerVisionClientContext = /** @class */ (function (_super) {

@@ -39,3 +39,3 @@ __extends(ComputerVisionClientContext, _super);

_this = _super.call(this, credentials, options) || this;
_this.baseUri = "{Endpoint}/vision/v3.1";
_this.baseUri = "{Endpoint}/vision/v3.2";
_this.requestContentType = "application/json; charset=utf-8";

@@ -42,0 +42,0 @@ _this.endpoint = endpoint;

@@ -360,2 +360,3 @@ /// <reference types="node" />

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -380,2 +381,3 @@ /**

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -396,2 +398,3 @@ /**

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -434,2 +437,3 @@ /**

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -518,2 +522,3 @@ /**

regions?: OcrRegion[];
modelVersion?: string;
}

@@ -533,2 +538,3 @@ /**

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -549,2 +555,3 @@ /**

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -563,7 +570,26 @@ /**

*/
export interface ComputerVisionInnerError {
/**
* The error code. Possible values include: 'InvalidImageFormat', 'UnsupportedMediaType',
* 'InvalidImageUrl', 'NotSupportedFeature', 'NotSupportedImage', 'Timeout',
* 'InternalServerError', 'InvalidImageSize', 'BadArgument', 'DetectFaceError',
* 'NotSupportedLanguage', 'InvalidThumbnailSize', 'InvalidDetails', 'InvalidModel',
* 'CancelledRequest', 'NotSupportedVisualFeature', 'FailedToProcess', 'Unspecified',
* 'StorageException'
*/
code: ComputerVisionInnerErrorCodeValue;
/**
* Error message.
*/
message: string;
}
/**
* The API request error.
*/
export interface ComputerVisionError {
/**
* The error code.
* The error code. Possible values include: 'InvalidRequest', 'InvalidArgument',
* 'InternalServerError', 'ServiceUnavailable'
*/
code: any;
code: ComputerVisionErrorCodes;
/**

@@ -574,35 +600,39 @@ * A message explaining the error reported by the service.

/**
* A unique request identifier.
* Inner error contains more specific information.
*/
requestId?: string;
innererror?: ComputerVisionInnerError;
}
/**
* Result of domain-specific classifications for the domain of landmarks.
* The API error response.
*/
export interface LandmarkResults {
export interface ComputerVisionErrorResponse {
/**
* List of landmarks recognized in the image.
* Error contents.
*/
landmarks?: LandmarksModel[];
/**
* Id of the REST API request.
*/
requestId?: string;
metadata?: ImageMetadata;
error: ComputerVisionError;
}
/**
* Result of domain-specific classifications for the domain of celebrities.
* An object representing the style of the text line.
*/
export interface CelebrityResults {
export interface Style {
/**
* List of celebrities recognized in the image.
* The text line style name, including handwriting and other. Possible values include: 'other',
* 'handwriting'
*/
celebrities?: CelebritiesModel[];
name: TextStyle;
/**
* Id of the REST API request.
* The confidence of text line style.
*/
requestId?: string;
metadata?: ImageMetadata;
confidence: number;
}
/**
* An object representing the appearance of the text line.
*/
export interface Appearance {
/**
* An object representing the style of the text line.
*/
style: Style;
}
/**
* An object representing a recognized word.

@@ -638,2 +668,6 @@ */

/**
* Appearance of the text line.
*/
appearance?: Appearance;
/**
* The text content of the line.

@@ -690,2 +724,6 @@ */

/**
* Version of the OCR model used for text extraction.
*/
modelVersion: string;
/**
* Text extracted from the input.

@@ -718,2 +756,19 @@ */

/**
* Details about the API request error.
*/
export interface ComputerVisionOcrError {
/**
* The error code.
*/
code: any;
/**
* A message explaining the error reported by the service.
*/
message: string;
/**
* A unique request identifier.
*/
requestId?: string;
}
/**
* Optional Parameters.

@@ -755,2 +810,7 @@ */

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -776,2 +836,7 @@ /**

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -781,2 +846,12 @@ /**

*/
export interface ComputerVisionClientDetectObjectsOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientAnalyzeImageByDomainOptionalParams extends msRest.RequestOptionsBase {

@@ -790,2 +865,7 @@ /**

language?: Language2;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -803,2 +883,7 @@ /**

language?: OcrLanguages;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -816,2 +901,7 @@ /**

language?: Language3;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -826,2 +916,7 @@ /**

smartCropping?: boolean;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -831,12 +926,37 @@ /**

*/
export interface ComputerVisionClientGetAreaOfInterestOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientReadOptionalParams extends msRest.RequestOptionsBase {
/**
* The BCP-47 language code of the text in the document. Currently, only English ('en'), Dutch
* (‘nl’), French (‘fr’), German (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
* supported. Read supports auto language identification and multi-language documents, so only
* provide a language code if you would like to force the documented to be processed as that
* specific language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'. Default
* value: 'en'.
* The BCP-47 language code of the text in the document. Read supports auto language
* identification and multi-language documents, so only provide a language code if you would like
* to force the document to be processed in that specific language. See
* https://aka.ms/ocr-languages for list of supported languages. Possible values include: 'af',
* 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb', 'da', 'de', 'en', 'es', 'et',
* 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil', 'gl', 'gv', 'hni', 'hsb', 'ht',
* 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea', 'kha', 'kl', 'ko', 'ku', 'kw',
* 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc', 'rm', 'sco', 'sl', 'sq', 'sv',
* 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za', 'zh-Hans', 'zh-Hant', 'zu'
*/
language?: OcrDetectionLanguage;
/**
* Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want
* to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a
* comma.
*/
pages?: string[];
/**
* Optional parameter to specify the version of the OCR model used for text extraction. Accepted
* values are: "latest", "latest-preview", "2021-04-12". Defaults to "latest". Default value:
* 'latest'.
*/
modelVersion?: string;
}

@@ -880,2 +1000,7 @@ /**

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -885,2 +1010,12 @@ /**

*/
export interface ComputerVisionClientGetAreaOfInterestInStreamOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientDescribeImageInStreamOptionalParams extends msRest.RequestOptionsBase {

@@ -902,2 +1037,7 @@ /**

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -907,2 +1047,12 @@ /**

*/
export interface ComputerVisionClientDetectObjectsInStreamOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientGenerateThumbnailInStreamOptionalParams extends msRest.RequestOptionsBase {

@@ -913,2 +1063,7 @@ /**

smartCropping?: boolean;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -926,2 +1081,7 @@ /**

language?: Language6;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -939,2 +1099,7 @@ /**

language?: OcrLanguages;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -952,2 +1117,7 @@ /**

language?: Language7;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -959,10 +1129,19 @@ /**

/**
* The BCP-47 language code of the text in the document. Currently, only English ('en'), Dutch
* (‘nl’), French (‘fr’), German (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
* supported. Read supports auto language identification and multi-language documents, so only
* provide a language code if you would like to force the documented to be processed as that
* specific language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'. Default
* value: 'en'.
* The BCP-47 language code of the text in the document. Read supports auto language
* identification and multi-language documents, so only provide a language code if you would like
* to force the document to be processed in that specific language. See
* https://aka.ms/ocr-languages for list of supported languages. Possible values include: 'af',
* 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb', 'da', 'de', 'en', 'es', 'et',
* 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil', 'gl', 'gv', 'hni', 'hsb', 'ht',
* 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea', 'kha', 'kl', 'ko', 'ku', 'kw',
* 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc', 'rm', 'sco', 'sl', 'sq', 'sv',
* 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za', 'zh-Hans', 'zh-Hant', 'zu'
*/
language?: OcrDetectionLanguage;
/**
* Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want
* to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a
* comma.
*/
pages?: string[];
}

@@ -995,2 +1174,21 @@ /**

/**
* Defines values for ComputerVisionErrorCodes.
* Possible values include: 'InvalidRequest', 'InvalidArgument', 'InternalServerError',
* 'ServiceUnavailable'
* @readonly
* @enum {string}
*/
export declare type ComputerVisionErrorCodes = 'InvalidRequest' | 'InvalidArgument' | 'InternalServerError' | 'ServiceUnavailable';
/**
* Defines values for ComputerVisionInnerErrorCodeValue.
* Possible values include: 'InvalidImageFormat', 'UnsupportedMediaType', 'InvalidImageUrl',
* 'NotSupportedFeature', 'NotSupportedImage', 'Timeout', 'InternalServerError',
* 'InvalidImageSize', 'BadArgument', 'DetectFaceError', 'NotSupportedLanguage',
* 'InvalidThumbnailSize', 'InvalidDetails', 'InvalidModel', 'CancelledRequest',
* 'NotSupportedVisualFeature', 'FailedToProcess', 'Unspecified', 'StorageException'
* @readonly
* @enum {string}
*/
export declare type ComputerVisionInnerErrorCodeValue = 'InvalidImageFormat' | 'UnsupportedMediaType' | 'InvalidImageUrl' | 'NotSupportedFeature' | 'NotSupportedImage' | 'Timeout' | 'InternalServerError' | 'InvalidImageSize' | 'BadArgument' | 'DetectFaceError' | 'NotSupportedLanguage' | 'InvalidThumbnailSize' | 'InvalidDetails' | 'InvalidModel' | 'CancelledRequest' | 'NotSupportedVisualFeature' | 'FailedToProcess' | 'Unspecified' | 'StorageException';
/**
* Defines values for OperationStatusCodes.

@@ -1010,2 +1208,9 @@ * Possible values include: 'notStarted', 'running', 'failed', 'succeeded'

/**
* Defines values for TextStyle.
* Possible values include: 'other', 'handwriting'
* @readonly
* @enum {string}
*/
export declare type TextStyle = 'other' | 'handwriting';
/**
* Defines values for DescriptionExclude.

@@ -1036,7 +1241,12 @@ * Possible values include: 'Celebrities', 'Landmarks'

* Defines values for OcrDetectionLanguage.
* Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'
* Possible values include: 'af', 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb',
* 'da', 'de', 'en', 'es', 'et', 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil',
* 'gl', 'gv', 'hni', 'hsb', 'ht', 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea',
* 'kha', 'kl', 'ko', 'ku', 'kw', 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc',
* 'rm', 'sco', 'sl', 'sq', 'sv', 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za',
* 'zh-Hans', 'zh-Hant', 'zu'
* @readonly
* @enum {string}
*/
export declare type OcrDetectionLanguage = 'en' | 'es' | 'fr' | 'de' | 'it' | 'nl' | 'pt';
export declare type OcrDetectionLanguage = 'af' | 'ast' | 'bi' | 'br' | 'ca' | 'ceb' | 'ch' | 'co' | 'crh' | 'cs' | 'csb' | 'da' | 'de' | 'en' | 'es' | 'et' | 'eu' | 'fi' | 'fil' | 'fj' | 'fr' | 'fur' | 'fy' | 'ga' | 'gd' | 'gil' | 'gl' | 'gv' | 'hni' | 'hsb' | 'ht' | 'hu' | 'ia' | 'id' | 'it' | 'iu' | 'ja' | 'jv' | 'kaa' | 'kac' | 'kea' | 'kha' | 'kl' | 'ko' | 'ku' | 'kw' | 'lb' | 'ms' | 'mww' | 'nap' | 'nl' | 'no' | 'oc' | 'pl' | 'pt' | 'quc' | 'rm' | 'sco' | 'sl' | 'sq' | 'sv' | 'sw' | 'tet' | 'tr' | 'tt' | 'uz' | 'vo' | 'wae' | 'yua' | 'za' | 'zh-Hans' | 'zh-Hant' | 'zu';
/**

@@ -1043,0 +1253,0 @@ * Defines values for Details.

@@ -32,5 +32,7 @@ import * as msRest from "@azure/ms-rest-js";

export declare const ImageUrl: msRest.CompositeMapper;
export declare const ComputerVisionInnerError: msRest.CompositeMapper;
export declare const ComputerVisionError: msRest.CompositeMapper;
export declare const LandmarkResults: msRest.CompositeMapper;
export declare const CelebrityResults: msRest.CompositeMapper;
export declare const ComputerVisionErrorResponse: msRest.CompositeMapper;
export declare const Style: msRest.CompositeMapper;
export declare const Appearance: msRest.CompositeMapper;
export declare const Word: msRest.CompositeMapper;

@@ -41,4 +43,5 @@ export declare const Line: msRest.CompositeMapper;

export declare const ReadOperationResult: msRest.CompositeMapper;
export declare const ComputerVisionOcrError: msRest.CompositeMapper;
export declare const ReadHeaders: msRest.CompositeMapper;
export declare const ReadInStreamHeaders: msRest.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map

@@ -687,2 +687,8 @@ /*

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -736,2 +742,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -774,2 +786,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -855,2 +873,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -980,2 +1004,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1017,2 +1047,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1049,2 +1085,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1070,7 +1112,7 @@ }

};
export var ComputerVisionError = {
serializedName: "ComputerVisionError",
export var ComputerVisionInnerError = {
serializedName: "ComputerVisionInnerError",
type: {
name: "Composite",
className: "ComputerVisionError",
className: "ComputerVisionInnerError",
modelProperties: {

@@ -1081,3 +1123,3 @@ code: {

type: {
name: "Object"
name: "String"
}

@@ -1091,8 +1133,2 @@ },

}
},
requestId: {
serializedName: "requestId",
type: {
name: "String"
}
}

@@ -1102,24 +1138,18 @@ }

};
export var LandmarkResults = {
serializedName: "LandmarkResults",
export var ComputerVisionError = {
serializedName: "ComputerVisionError",
type: {
name: "Composite",
className: "LandmarkResults",
className: "ComputerVisionError",
modelProperties: {
landmarks: {
nullable: true,
serializedName: "landmarks",
code: {
required: true,
serializedName: "code",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "LandmarksModel"
}
}
name: "String"
}
},
requestId: {
nullable: true,
serializedName: "requestId",
message: {
required: true,
serializedName: "message",
type: {

@@ -1129,7 +1159,7 @@ name: "String"

},
metadata: {
serializedName: "metadata",
innererror: {
serializedName: "innererror",
type: {
name: "Composite",
className: "ImageMetadata"
className: "ComputerVisionInnerError"
}

@@ -1140,24 +1170,28 @@ }

};
export var CelebrityResults = {
serializedName: "CelebrityResults",
export var ComputerVisionErrorResponse = {
serializedName: "ComputerVisionErrorResponse",
type: {
name: "Composite",
className: "CelebrityResults",
className: "ComputerVisionErrorResponse",
modelProperties: {
celebrities: {
nullable: true,
serializedName: "celebrities",
error: {
required: true,
serializedName: "error",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CelebritiesModel"
}
}
name: "Composite",
className: "ComputerVisionError"
}
},
requestId: {
nullable: true,
serializedName: "requestId",
}
}
}
};
export var Style = {
serializedName: "Style",
type: {
name: "Composite",
className: "Style",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {

@@ -1167,7 +1201,24 @@ name: "String"

},
metadata: {
serializedName: "metadata",
confidence: {
required: true,
serializedName: "confidence",
type: {
name: "Number"
}
}
}
}
};
export var Appearance = {
serializedName: "Appearance",
type: {
name: "Composite",
className: "Appearance",
modelProperties: {
style: {
required: true,
serializedName: "style",
type: {
name: "Composite",
className: "ImageMetadata"
className: "Style"
}

@@ -1237,2 +1288,9 @@ }

},
appearance: {
serializedName: "appearance",
type: {
name: "Composite",
className: "Appearance"
}
},
text: {

@@ -1342,2 +1400,12 @@ required: true,

},
modelVersion: {
required: true,
serializedName: "modelVersion",
constraints: {
Pattern: /^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/
},
type: {
name: "String"
}
},
readResults: {

@@ -1402,2 +1470,31 @@ required: true,

};
export var ComputerVisionOcrError = {
serializedName: "ComputerVisionOcrError",
type: {
name: "Composite",
className: "ComputerVisionOcrError",
modelProperties: {
code: {
required: true,
serializedName: "code",
type: {
name: "Object"
}
},
message: {
required: true,
serializedName: "message",
type: {
name: "String"
}
},
requestId: {
serializedName: "requestId",
type: {
name: "String"
}
}
}
}
};
export var ReadHeaders = {

@@ -1404,0 +1501,0 @@ serializedName: "read-headers",

@@ -9,5 +9,8 @@ import * as msRest from "@azure/ms-rest-js";

export declare const language1: msRest.OperationQueryParameter;
export declare const language2: msRest.OperationQueryParameter;
export declare const maxCandidates: msRest.OperationQueryParameter;
export declare const model: msRest.OperationURLParameter;
export declare const modelVersion: msRest.OperationQueryParameter;
export declare const operationId: msRest.OperationURLParameter;
export declare const pages: msRest.OperationQueryParameter;
export declare const smartCropping: msRest.OperationQueryParameter;

@@ -14,0 +17,0 @@ export declare const visualFeatures: msRest.OperationQueryParameter;

@@ -147,2 +147,14 @@ /*

};
export var language2 = {
parameterPath: [
"options",
"language"
],
mapper: {
serializedName: "language",
type: {
name: "String"
}
}
};
export var maxCandidates = {

@@ -171,2 +183,18 @@ parameterPath: [

};
export var modelVersion = {
parameterPath: [
"options",
"modelVersion"
],
mapper: {
serializedName: "model-version",
defaultValue: 'latest',
constraints: {
Pattern: /^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/
},
type: {
name: "String"
}
}
};
export var operationId = {

@@ -182,2 +210,20 @@ parameterPath: "operationId",

};
export var pages = {
parameterPath: [
"options",
"pages"
],
mapper: {
serializedName: "pages",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
collectionFormat: msRest.QueryCollectionFormat.Csv
};
export var smartCropping = {

@@ -184,0 +230,0 @@ parameterPath: [

The MIT License (MIT)
Copyright (c) 2020 Microsoft
Copyright (c) 2021 Microsoft

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

@@ -5,3 +5,3 @@ {

"description": "ComputerVisionClient Library with typescript type definitions for node.js and browser.",
"version": "7.1.0",
"version": "8.0.0",
"dependencies": {

@@ -8,0 +8,0 @@ "@azure/ms-rest-js": "^2.0.4",

@@ -105,3 +105,3 @@ /*

*/
detectObjects(url: string, options?: msRest.RequestOptionsBase): Promise<Models.DetectObjectsResponse>;
detectObjects(url: string, options?: Models.ComputerVisionClientDetectObjectsOptionalParams): Promise<Models.DetectObjectsResponse>;
/**

@@ -117,4 +117,4 @@ * @param url Publicly reachable URL of an image.

*/
detectObjects(url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjects(url: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DetectResult>, callback?: msRest.ServiceCallback<Models.DetectResult>): Promise<Models.DetectObjectsResponse> {
detectObjects(url: string, options: Models.ComputerVisionClientDetectObjectsOptionalParams, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjects(url: string, options?: Models.ComputerVisionClientDetectObjectsOptionalParams | msRest.ServiceCallback<Models.DetectResult>, callback?: msRest.ServiceCallback<Models.DetectResult>): Promise<Models.DetectObjectsResponse> {
return this.sendOperationRequest(

@@ -336,3 +336,3 @@ {

*/
getAreaOfInterest(url: string, options?: msRest.RequestOptionsBase): Promise<Models.GetAreaOfInterestResponse>;
getAreaOfInterest(url: string, options?: Models.ComputerVisionClientGetAreaOfInterestOptionalParams): Promise<Models.GetAreaOfInterestResponse>;
/**

@@ -348,4 +348,4 @@ * @param url Publicly reachable URL of an image.

*/
getAreaOfInterest(url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterest(url: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AreaOfInterestResult>, callback?: msRest.ServiceCallback<Models.AreaOfInterestResult>): Promise<Models.GetAreaOfInterestResponse> {
getAreaOfInterest(url: string, options: Models.ComputerVisionClientGetAreaOfInterestOptionalParams, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterest(url: string, options?: Models.ComputerVisionClientGetAreaOfInterestOptionalParams | msRest.ServiceCallback<Models.AreaOfInterestResult>, callback?: msRest.ServiceCallback<Models.AreaOfInterestResult>): Promise<Models.GetAreaOfInterestResponse> {
return this.sendOperationRequest(

@@ -465,3 +465,3 @@ {

*/
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise<Models.GetAreaOfInterestInStreamResponse>;
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientGetAreaOfInterestInStreamOptionalParams): Promise<Models.GetAreaOfInterestInStreamResponse>;
/**

@@ -477,4 +477,4 @@ * @param image An image stream.

*/
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.AreaOfInterestResult>, callback?: msRest.ServiceCallback<Models.AreaOfInterestResult>): Promise<Models.GetAreaOfInterestInStreamResponse> {
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options: Models.ComputerVisionClientGetAreaOfInterestInStreamOptionalParams, callback: msRest.ServiceCallback<Models.AreaOfInterestResult>): void;
getAreaOfInterestInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientGetAreaOfInterestInStreamOptionalParams | msRest.ServiceCallback<Models.AreaOfInterestResult>, callback?: msRest.ServiceCallback<Models.AreaOfInterestResult>): Promise<Models.GetAreaOfInterestInStreamResponse> {
return this.sendOperationRequest(

@@ -533,3 +533,3 @@ {

*/
detectObjectsInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase): Promise<Models.DetectObjectsInStreamResponse>;
detectObjectsInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientDetectObjectsInStreamOptionalParams): Promise<Models.DetectObjectsInStreamResponse>;
/**

@@ -545,4 +545,4 @@ * @param image An image stream.

*/
detectObjectsInStream(image: msRest.HttpRequestBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjectsInStream(image: msRest.HttpRequestBody, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DetectResult>, callback?: msRest.ServiceCallback<Models.DetectResult>): Promise<Models.DetectObjectsInStreamResponse> {
detectObjectsInStream(image: msRest.HttpRequestBody, options: Models.ComputerVisionClientDetectObjectsInStreamOptionalParams, callback: msRest.ServiceCallback<Models.DetectResult>): void;
detectObjectsInStream(image: msRest.HttpRequestBody, options?: Models.ComputerVisionClientDetectObjectsInStreamOptionalParams | msRest.ServiceCallback<Models.DetectResult>, callback?: msRest.ServiceCallback<Models.DetectResult>): Promise<Models.DetectObjectsInStreamResponse> {
return this.sendOperationRequest(

@@ -770,3 +770,4 @@ {

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -787,3 +788,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -803,3 +804,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -820,3 +822,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -833,2 +835,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -848,3 +853,3 @@ parameterPath: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -866,3 +871,3 @@ },

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -881,3 +886,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -898,3 +904,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -913,3 +919,4 @@ },

Parameters.detectOrientation,
Parameters.language1
Parameters.language1,
Parameters.modelVersion
],

@@ -930,3 +937,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -944,3 +951,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -961,3 +969,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -977,3 +985,4 @@ },

Parameters.height,
Parameters.smartCropping
Parameters.smartCropping,
Parameters.modelVersion
],

@@ -1009,2 +1018,5 @@ requestBody: {

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -1024,3 +1036,3 @@ parameterPath: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1038,3 +1050,5 @@ },

queryParameters: [
Parameters.language0
Parameters.language2,
Parameters.pages,
Parameters.modelVersion
],

@@ -1055,3 +1069,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError,
bodyMapper: Mappers.ComputerVisionOcrError,
headersMapper: Mappers.ReadHeaders

@@ -1075,3 +1089,3 @@ }

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionOcrError
}

@@ -1092,3 +1106,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -1111,3 +1126,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1124,2 +1139,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -1141,3 +1159,3 @@ parameterPath: "image",

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1157,3 +1175,4 @@ },

Parameters.language0,
Parameters.descriptionExclude
Parameters.descriptionExclude,
Parameters.modelVersion
],

@@ -1176,3 +1195,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1189,2 +1208,5 @@ },

],
queryParameters: [
Parameters.modelVersion
],
requestBody: {

@@ -1206,3 +1228,3 @@ parameterPath: "image",

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1222,3 +1244,4 @@ },

Parameters.height,
Parameters.smartCropping
Parameters.smartCropping,
Parameters.modelVersion
],

@@ -1258,3 +1281,4 @@ requestBody: {

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -1277,3 +1301,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1292,3 +1316,4 @@ },

Parameters.detectOrientation,
Parameters.language1
Parameters.language1,
Parameters.modelVersion
],

@@ -1311,3 +1336,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1325,3 +1350,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language0,
Parameters.modelVersion
],

@@ -1344,3 +1370,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError
bodyMapper: Mappers.ComputerVisionErrorResponse
}

@@ -1358,3 +1384,4 @@ },

queryParameters: [
Parameters.language0
Parameters.language2,
Parameters.pages
],

@@ -1377,3 +1404,3 @@ requestBody: {

default: {
bodyMapper: Mappers.ComputerVisionError,
bodyMapper: Mappers.ComputerVisionOcrError,
headersMapper: Mappers.ReadInStreamHeaders

@@ -1380,0 +1407,0 @@ }

@@ -14,3 +14,3 @@ /*

const packageName = "@azure/cognitiveservices-computervision";
const packageVersion = "7.1.0";
const packageVersion = "8.0.0";

@@ -46,3 +46,3 @@ export class ComputerVisionClientContext extends msRest.ServiceClient {

this.baseUri = "{Endpoint}/vision/v3.1";
this.baseUri = "{Endpoint}/vision/v3.2";
this.requestContentType = "application/json; charset=utf-8";

@@ -49,0 +49,0 @@ this.endpoint = endpoint;

@@ -386,2 +386,3 @@ /*

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -407,2 +408,3 @@

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -424,2 +426,3 @@

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -465,2 +468,3 @@

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -553,2 +557,3 @@

regions?: OcrRegion[];
modelVersion?: string;
}

@@ -569,2 +574,3 @@

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -586,2 +592,3 @@

metadata?: ImageMetadata;
modelVersion?: string;
}

@@ -602,7 +609,27 @@

*/
export interface ComputerVisionInnerError {
/**
* The error code. Possible values include: 'InvalidImageFormat', 'UnsupportedMediaType',
* 'InvalidImageUrl', 'NotSupportedFeature', 'NotSupportedImage', 'Timeout',
* 'InternalServerError', 'InvalidImageSize', 'BadArgument', 'DetectFaceError',
* 'NotSupportedLanguage', 'InvalidThumbnailSize', 'InvalidDetails', 'InvalidModel',
* 'CancelledRequest', 'NotSupportedVisualFeature', 'FailedToProcess', 'Unspecified',
* 'StorageException'
*/
code: ComputerVisionInnerErrorCodeValue;
/**
* Error message.
*/
message: string;
}
/**
* The API request error.
*/
export interface ComputerVisionError {
/**
* The error code.
* The error code. Possible values include: 'InvalidRequest', 'InvalidArgument',
* 'InternalServerError', 'ServiceUnavailable'
*/
code: any;
code: ComputerVisionErrorCodes;
/**

@@ -613,38 +640,43 @@ * A message explaining the error reported by the service.

/**
* A unique request identifier.
* Inner error contains more specific information.
*/
requestId?: string;
innererror?: ComputerVisionInnerError;
}
/**
* Result of domain-specific classifications for the domain of landmarks.
* The API error response.
*/
export interface LandmarkResults {
export interface ComputerVisionErrorResponse {
/**
* List of landmarks recognized in the image.
* Error contents.
*/
landmarks?: LandmarksModel[];
/**
* Id of the REST API request.
*/
requestId?: string;
metadata?: ImageMetadata;
error: ComputerVisionError;
}
/**
* Result of domain-specific classifications for the domain of celebrities.
* An object representing the style of the text line.
*/
export interface CelebrityResults {
export interface Style {
/**
* List of celebrities recognized in the image.
* The text line style name, including handwriting and other. Possible values include: 'other',
* 'handwriting'
*/
celebrities?: CelebritiesModel[];
name: TextStyle;
/**
* Id of the REST API request.
* The confidence of text line style.
*/
requestId?: string;
metadata?: ImageMetadata;
confidence: number;
}
/**
* An object representing the appearance of the text line.
*/
export interface Appearance {
/**
* An object representing the style of the text line.
*/
style: Style;
}
/**
* An object representing a recognized word.

@@ -681,2 +713,6 @@ */

/**
* Appearance of the text line.
*/
appearance?: Appearance;
/**
* The text content of the line.

@@ -735,2 +771,6 @@ */

/**
* Version of the OCR model used for text extraction.
*/
modelVersion: string;
/**
* Text extracted from the input.

@@ -765,2 +805,20 @@ */

/**
* Details about the API request error.
*/
export interface ComputerVisionOcrError {
/**
* The error code.
*/
code: any;
/**
* A message explaining the error reported by the service.
*/
message: string;
/**
* A unique request identifier.
*/
requestId?: string;
}
/**
* Optional Parameters.

@@ -802,2 +860,7 @@ */

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -824,2 +887,7 @@

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -830,2 +898,13 @@

*/
export interface ComputerVisionClientDetectObjectsOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientAnalyzeImageByDomainOptionalParams extends msRest.RequestOptionsBase {

@@ -839,2 +918,7 @@ /**

language?: Language2;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -853,2 +937,7 @@

language?: OcrLanguages;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -867,2 +956,7 @@

language?: Language3;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -878,2 +972,7 @@

smartCropping?: boolean;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -884,12 +983,38 @@

*/
export interface ComputerVisionClientGetAreaOfInterestOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientReadOptionalParams extends msRest.RequestOptionsBase {
/**
* The BCP-47 language code of the text in the document. Currently, only English ('en'), Dutch
* (‘nl’), French (‘fr’), German (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
* supported. Read supports auto language identification and multi-language documents, so only
* provide a language code if you would like to force the documented to be processed as that
* specific language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'. Default
* value: 'en'.
* The BCP-47 language code of the text in the document. Read supports auto language
* identification and multi-language documents, so only provide a language code if you would like
* to force the document to be processed in that specific language. See
* https://aka.ms/ocr-languages for list of supported languages. Possible values include: 'af',
* 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb', 'da', 'de', 'en', 'es', 'et',
* 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil', 'gl', 'gv', 'hni', 'hsb', 'ht',
* 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea', 'kha', 'kl', 'ko', 'ku', 'kw',
* 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc', 'rm', 'sco', 'sl', 'sq', 'sv',
* 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za', 'zh-Hans', 'zh-Hant', 'zu'
*/
language?: OcrDetectionLanguage;
/**
* Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want
* to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a
* comma.
*/
pages?: string[];
/**
* Optional parameter to specify the version of the OCR model used for text extraction. Accepted
* values are: "latest", "latest-preview", "2021-04-12". Defaults to "latest". Default value:
* 'latest'.
*/
modelVersion?: string;
}

@@ -934,2 +1059,7 @@

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -940,2 +1070,13 @@

*/
export interface ComputerVisionClientGetAreaOfInterestInStreamOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientDescribeImageInStreamOptionalParams extends msRest.RequestOptionsBase {

@@ -957,2 +1098,7 @@ /**

descriptionExclude?: DescriptionExclude[];
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -963,2 +1109,13 @@

*/
export interface ComputerVisionClientDetectObjectsInStreamOptionalParams extends msRest.RequestOptionsBase {
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}
/**
* Optional Parameters.
*/
export interface ComputerVisionClientGenerateThumbnailInStreamOptionalParams extends msRest.RequestOptionsBase {

@@ -969,2 +1126,7 @@ /**

smartCropping?: boolean;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -983,2 +1145,7 @@

language?: Language6;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -997,2 +1164,7 @@

language?: OcrLanguages;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -1011,2 +1183,7 @@

language?: Language7;
/**
* Optional parameter to specify the version of the AI model. Accepted values are: "latest",
* "2021-04-01". Defaults to "latest". Default value: 'latest'.
*/
modelVersion?: string;
}

@@ -1019,10 +1196,19 @@

/**
* The BCP-47 language code of the text in the document. Currently, only English ('en'), Dutch
* (‘nl’), French (‘fr’), German (‘de’), Italian (‘it’), Portuguese (‘pt), and Spanish ('es') are
* supported. Read supports auto language identification and multi-language documents, so only
* provide a language code if you would like to force the documented to be processed as that
* specific language. Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'. Default
* value: 'en'.
* The BCP-47 language code of the text in the document. Read supports auto language
* identification and multi-language documents, so only provide a language code if you would like
* to force the document to be processed in that specific language. See
* https://aka.ms/ocr-languages for list of supported languages. Possible values include: 'af',
* 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb', 'da', 'de', 'en', 'es', 'et',
* 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil', 'gl', 'gv', 'hni', 'hsb', 'ht',
* 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea', 'kha', 'kl', 'ko', 'ku', 'kw',
* 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc', 'rm', 'sco', 'sl', 'sq', 'sv',
* 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za', 'zh-Hans', 'zh-Hant', 'zu'
*/
language?: OcrDetectionLanguage;
/**
* Custom page numbers for multi-page documents(PDF/TIFF), input the number of the pages you want
* to get OCR result. For a range of pages, use a hyphen. Separate each page or range with a
* comma.
*/
pages?: string[];
}

@@ -1059,2 +1245,23 @@

/**
* Defines values for ComputerVisionErrorCodes.
* Possible values include: 'InvalidRequest', 'InvalidArgument', 'InternalServerError',
* 'ServiceUnavailable'
* @readonly
* @enum {string}
*/
export type ComputerVisionErrorCodes = 'InvalidRequest' | 'InvalidArgument' | 'InternalServerError' | 'ServiceUnavailable';
/**
* Defines values for ComputerVisionInnerErrorCodeValue.
* Possible values include: 'InvalidImageFormat', 'UnsupportedMediaType', 'InvalidImageUrl',
* 'NotSupportedFeature', 'NotSupportedImage', 'Timeout', 'InternalServerError',
* 'InvalidImageSize', 'BadArgument', 'DetectFaceError', 'NotSupportedLanguage',
* 'InvalidThumbnailSize', 'InvalidDetails', 'InvalidModel', 'CancelledRequest',
* 'NotSupportedVisualFeature', 'FailedToProcess', 'Unspecified', 'StorageException'
* @readonly
* @enum {string}
*/
export type ComputerVisionInnerErrorCodeValue = 'InvalidImageFormat' | 'UnsupportedMediaType' | 'InvalidImageUrl' | 'NotSupportedFeature' | 'NotSupportedImage' | 'Timeout' | 'InternalServerError' | 'InvalidImageSize' | 'BadArgument' | 'DetectFaceError' | 'NotSupportedLanguage' | 'InvalidThumbnailSize' | 'InvalidDetails' | 'InvalidModel' | 'CancelledRequest' | 'NotSupportedVisualFeature' | 'FailedToProcess' | 'Unspecified' | 'StorageException';
/**
* Defines values for OperationStatusCodes.

@@ -1076,2 +1283,10 @@ * Possible values include: 'notStarted', 'running', 'failed', 'succeeded'

/**
* Defines values for TextStyle.
* Possible values include: 'other', 'handwriting'
* @readonly
* @enum {string}
*/
export type TextStyle = 'other' | 'handwriting';
/**
* Defines values for DescriptionExclude.

@@ -1105,7 +1320,12 @@ * Possible values include: 'Celebrities', 'Landmarks'

* Defines values for OcrDetectionLanguage.
* Possible values include: 'en', 'es', 'fr', 'de', 'it', 'nl', 'pt'
* Possible values include: 'af', 'ast', 'bi', 'br', 'ca', 'ceb', 'ch', 'co', 'crh', 'cs', 'csb',
* 'da', 'de', 'en', 'es', 'et', 'eu', 'fi', 'fil', 'fj', 'fr', 'fur', 'fy', 'ga', 'gd', 'gil',
* 'gl', 'gv', 'hni', 'hsb', 'ht', 'hu', 'ia', 'id', 'it', 'iu', 'ja', 'jv', 'kaa', 'kac', 'kea',
* 'kha', 'kl', 'ko', 'ku', 'kw', 'lb', 'ms', 'mww', 'nap', 'nl', 'no', 'oc', 'pl', 'pt', 'quc',
* 'rm', 'sco', 'sl', 'sq', 'sv', 'sw', 'tet', 'tr', 'tt', 'uz', 'vo', 'wae', 'yua', 'za',
* 'zh-Hans', 'zh-Hant', 'zu'
* @readonly
* @enum {string}
*/
export type OcrDetectionLanguage = 'en' | 'es' | 'fr' | 'de' | 'it' | 'nl' | 'pt';
export type OcrDetectionLanguage = 'af' | 'ast' | 'bi' | 'br' | 'ca' | 'ceb' | 'ch' | 'co' | 'crh' | 'cs' | 'csb' | 'da' | 'de' | 'en' | 'es' | 'et' | 'eu' | 'fi' | 'fil' | 'fj' | 'fr' | 'fur' | 'fy' | 'ga' | 'gd' | 'gil' | 'gl' | 'gv' | 'hni' | 'hsb' | 'ht' | 'hu' | 'ia' | 'id' | 'it' | 'iu' | 'ja' | 'jv' | 'kaa' | 'kac' | 'kea' | 'kha' | 'kl' | 'ko' | 'ku' | 'kw' | 'lb' | 'ms' | 'mww' | 'nap' | 'nl' | 'no' | 'oc' | 'pl' | 'pt' | 'quc' | 'rm' | 'sco' | 'sl' | 'sq' | 'sv' | 'sw' | 'tet' | 'tr' | 'tt' | 'uz' | 'vo' | 'wae' | 'yua' | 'za' | 'zh-Hans' | 'zh-Hant' | 'zu';

@@ -1112,0 +1332,0 @@ /**

@@ -708,2 +708,8 @@ /*

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -758,2 +764,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -797,2 +809,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -881,2 +899,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1010,2 +1034,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1048,2 +1078,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1081,2 +1117,8 @@ }

}
},
modelVersion: {
serializedName: "modelVersion",
type: {
name: "String"
}
}

@@ -1104,7 +1146,7 @@ }

export const ComputerVisionError: msRest.CompositeMapper = {
serializedName: "ComputerVisionError",
export const ComputerVisionInnerError: msRest.CompositeMapper = {
serializedName: "ComputerVisionInnerError",
type: {
name: "Composite",
className: "ComputerVisionError",
className: "ComputerVisionInnerError",
modelProperties: {

@@ -1115,3 +1157,3 @@ code: {

type: {
name: "Object"
name: "String"
}

@@ -1125,8 +1167,2 @@ },

}
},
requestId: {
serializedName: "requestId",
type: {
name: "String"
}
}

@@ -1137,24 +1173,18 @@ }

export const LandmarkResults: msRest.CompositeMapper = {
serializedName: "LandmarkResults",
export const ComputerVisionError: msRest.CompositeMapper = {
serializedName: "ComputerVisionError",
type: {
name: "Composite",
className: "LandmarkResults",
className: "ComputerVisionError",
modelProperties: {
landmarks: {
nullable: true,
serializedName: "landmarks",
code: {
required: true,
serializedName: "code",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "LandmarksModel"
}
}
name: "String"
}
},
requestId: {
nullable: true,
serializedName: "requestId",
message: {
required: true,
serializedName: "message",
type: {

@@ -1164,7 +1194,7 @@ name: "String"

},
metadata: {
serializedName: "metadata",
innererror: {
serializedName: "innererror",
type: {
name: "Composite",
className: "ImageMetadata"
className: "ComputerVisionInnerError"
}

@@ -1176,24 +1206,29 @@ }

export const CelebrityResults: msRest.CompositeMapper = {
serializedName: "CelebrityResults",
export const ComputerVisionErrorResponse: msRest.CompositeMapper = {
serializedName: "ComputerVisionErrorResponse",
type: {
name: "Composite",
className: "CelebrityResults",
className: "ComputerVisionErrorResponse",
modelProperties: {
celebrities: {
nullable: true,
serializedName: "celebrities",
error: {
required: true,
serializedName: "error",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "CelebritiesModel"
}
}
name: "Composite",
className: "ComputerVisionError"
}
},
requestId: {
nullable: true,
serializedName: "requestId",
}
}
}
};
export const Style: msRest.CompositeMapper = {
serializedName: "Style",
type: {
name: "Composite",
className: "Style",
modelProperties: {
name: {
required: true,
serializedName: "name",
type: {

@@ -1203,7 +1238,25 @@ name: "String"

},
metadata: {
serializedName: "metadata",
confidence: {
required: true,
serializedName: "confidence",
type: {
name: "Number"
}
}
}
}
};
export const Appearance: msRest.CompositeMapper = {
serializedName: "Appearance",
type: {
name: "Composite",
className: "Appearance",
modelProperties: {
style: {
required: true,
serializedName: "style",
type: {
name: "Composite",
className: "ImageMetadata"
className: "Style"
}

@@ -1275,2 +1328,9 @@ }

},
appearance: {
serializedName: "appearance",
type: {
name: "Composite",
className: "Appearance"
}
},
text: {

@@ -1382,2 +1442,12 @@ required: true,

},
modelVersion: {
required: true,
serializedName: "modelVersion",
constraints: {
Pattern: /^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/
},
type: {
name: "String"
}
},
readResults: {

@@ -1444,2 +1514,32 @@ required: true,

export const ComputerVisionOcrError: msRest.CompositeMapper = {
serializedName: "ComputerVisionOcrError",
type: {
name: "Composite",
className: "ComputerVisionOcrError",
modelProperties: {
code: {
required: true,
serializedName: "code",
type: {
name: "Object"
}
},
message: {
required: true,
serializedName: "message",
type: {
name: "String"
}
},
requestId: {
serializedName: "requestId",
type: {
name: "String"
}
}
}
}
};
export const ReadHeaders: msRest.CompositeMapper = {

@@ -1446,0 +1546,0 @@ serializedName: "read-headers",

@@ -149,2 +149,14 @@ /*

};
export const language2: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"language"
],
mapper: {
serializedName: "language",
type: {
name: "String"
}
}
};
export const maxCandidates: msRest.OperationQueryParameter = {

@@ -173,2 +185,18 @@ parameterPath: [

};
export const modelVersion: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"modelVersion"
],
mapper: {
serializedName: "model-version",
defaultValue: 'latest',
constraints: {
Pattern: /^(latest|\d{4}-\d{2}-\d{2})(-preview)?$/
},
type: {
name: "String"
}
}
};
export const operationId: msRest.OperationURLParameter = {

@@ -184,2 +212,20 @@ parameterPath: "operationId",

};
export const pages: msRest.OperationQueryParameter = {
parameterPath: [
"options",
"pages"
],
mapper: {
serializedName: "pages",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
collectionFormat: msRest.QueryCollectionFormat.Csv
};
export const smartCropping: msRest.OperationQueryParameter = {

@@ -186,0 +232,0 @@ parameterPath: [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc