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 3.2.0 to 4.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.Azure=e.Azure||{},e.Azure.CognitiveservicesComputervision={}),e.msRest)}(this,function(e,s){"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 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({}),n={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"}}}},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"}}}}},l={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"}}}}},o={serializedName:"ListModelsResult",type:{name:"Composite",className:"ListModelsResult",modelProperties:{modelsProperty:{nullable:!0,readOnly:!0,serializedName:"models",type:{name:"Sequence",element:{type:{name:"Composite",className:"ModelDescription"}}}}}}},p={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"}}}}},d={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"}}}}}}},u={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"}}}}},c={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"}}}}},y={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},N={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"}}}}},g={serializedName:"TextOperationResult",type:{name:"Composite",className:"TextOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["Not Started","Running","Failed","Succeeded"]}},recognitionResult:{serializedName:"recognitionResult",type:{name:"Composite",className:"RecognitionResult"}}}}},z={serializedName:"recognizetext-headers",type:{name:"Composite",className:"RecognizeTextHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},b={serializedName:"recognizetextinstream-headers",type:{name:"Composite",className:"RecognizeTextInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},h=Object.freeze({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"}},adultScore:{nullable:!1,serializedName:"adultScore",type:{name:"Number"}},racyScore:{nullable:!1,serializedName:"racyScore",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"}}}}},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:n,ImageDescription:m,DetectResult:l,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:o,DomainModelResults:p,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:d,TagResult:u,AreaOfInterestResult:c,ImageUrl:y,ComputerVisionError:N,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:{serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{serializedName:"text",type:{name:"String"}}}}},Line:{serializedName:"Line",type:{name:"Composite",className:"Line",modelProperties:{boundingBox:{serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{serializedName:"text",type:{name:"String"}},words:{serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"Word"}}}}}}},RecognitionResult:{serializedName:"RecognitionResult",type:{name:"Composite",className:"RecognitionResult",modelProperties:{lines:{serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"Line"}}}}}}},TextOperationResult:g,RecognizeTextHeaders:z,RecognizeTextInStreamHeaders:b}),C={parameterPath:["options","details"],mapper:{nullable:!0,serializedName:"details",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:s.QueryCollectionFormat.Csv},P={parameterPath:"detectOrientation",mapper:{required:!0,serializedName:"detectOrientation",defaultValue:!0,type:{name:"Boolean"}}},q={parameterPath:"endpoint",mapper:{required:!0,serializedName:"Endpoint",defaultValue:"",type:{name:"String"}},skipEncoding:!0},f={parameterPath:"height",mapper:{required:!0,nullable:!1,serializedName:"height",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},S={parameterPath:["options","language"],mapper:{nullable:!1,serializedName:"language",defaultValue:"en",type:{name:"String"}}},I={parameterPath:["options","language"],mapper:{nullable:!1,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"]}}},O={parameterPath:["options","maxCandidates"],mapper:{nullable:!0,serializedName:"maxCandidates",defaultValue:1,type:{name:"Number"}}},M={parameterPath:"mode",mapper:{required:!0,serializedName:"mode",type:{name:"Enum",allowedValues:["Handwritten","Printed"]}}},R={parameterPath:"model",mapper:{required:!0,nullable:!0,serializedName:"model",type:{name:"String"}}},T={parameterPath:["options","smartCropping"],mapper:{nullable:!0,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"]}}}},collectionFormat:s.QueryCollectionFormat.Csv},B={parameterPath:"width",mapper:{required:!0,nullable:!1,serializedName:"width",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},D=function(n){function e(e,a,t){var r=this;if(null==e)throw new Error("'endpoint' cannot be null.");if(null==a)throw new Error("'credentials' cannot be null.");if(t||(t={}),!t.userAgent){var i=s.getDefaultUserAgentValue();t.userAgent="@azure/cognitiveservices-computervision/3.2.0 "+i}return(r=n.call(this,a,t)||this).baseUri="{Endpoint}",r.requestContentType="application/json; charset=utf-8",r.endpoint=e,r.credentials=a,r}return a(e,n),e}(s.ServiceClient),j=function(r){function e(e,a,t){return r.call(this,e,a,t)||this}return a(e,r),e.prototype.analyzeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},A,t)},e.prototype.describeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},v,t)},e.prototype.detectObjects=function(e,a,t){return this.sendOperationRequest({url:e,options:a},L,t)},e.prototype.listModels=function(e,a){return this.sendOperationRequest({options:e},k,a)},e.prototype.analyzeImageByDomain=function(e,a,t,r){return this.sendOperationRequest({model:e,url:a,options:t},F,r)},e.prototype.recognizePrintedText=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,url:a,options:t},V,r)},e.prototype.tagImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},E,t)},e.prototype.generateThumbnail=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,url:t,options:r},H,i)},e.prototype.getAreaOfInterest=function(e,a,t){return this.sendOperationRequest({url:e,options:a},W,t)},e.prototype.recognizeText=function(e,a,t,r){return this.sendOperationRequest({mode:e,url:a,options:t},_,r)},e.prototype.getTextOperationResult=function(e,a,t){return this.sendOperationRequest({operationId:e,options:a},U,t)},e.prototype.analyzeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},G,t)},e.prototype.getAreaOfInterestInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},Q,t)},e.prototype.describeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},J,t)},e.prototype.detectObjectsInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},K,t)},e.prototype.generateThumbnailInStream=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,image:t,options:r},X,i)},e.prototype.analyzeImageByDomainInStream=function(e,a,t,r){return this.sendOperationRequest({model:e,image:a,options:t},Y,r)},e.prototype.recognizePrintedTextInStream=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,image:a,options:t},Z,r)},e.prototype.tagImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},$,t)},e.prototype.recognizeTextInStream=function(e,a,t,r){return this.sendOperationRequest({image:e,mode:a,options:t},ee,r)},e}(D),w=new s.Serializer(h),A={httpMethod:"POST",path:"analyze",urlParameters:[q],queryParameters:[x,C,S],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:n},default:{bodyMapper:N}},serializer:w},v={httpMethod:"POST",path:"describe",urlParameters:[q],queryParameters:[O,S],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:m},default:{bodyMapper:N}},serializer:w},L={httpMethod:"POST",path:"detect",urlParameters:[q],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:N}},serializer:w},k={httpMethod:"GET",path:"models",urlParameters:[q],responses:{200:{bodyMapper:o},default:{bodyMapper:N}},serializer:w},F={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[q,R],queryParameters:[S],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:p},default:{bodyMapper:N}},serializer:w},V={httpMethod:"POST",path:"ocr",urlParameters:[q],queryParameters:[P,I],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:N}},serializer:w},E={httpMethod:"POST",path:"tag",urlParameters:[q],queryParameters:[S],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:u},default:{bodyMapper:N}},serializer:w},H={httpMethod:"POST",path:"generateThumbnail",urlParameters:[q],queryParameters:[B,f,T],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:w},W={httpMethod:"POST",path:"areaOfInterest",urlParameters:[q],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:c},default:{bodyMapper:N}},serializer:w},_={httpMethod:"POST",path:"recognizeText",urlParameters:[q],queryParameters:[M],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{202:{headersMapper:z},default:{bodyMapper:N}},serializer:w},U={httpMethod:"GET",path:"textOperations/{operationId}",urlParameters:[q,{parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"String"}}}],responses:{200:{bodyMapper:g},default:{bodyMapper:N}},serializer:w},G={httpMethod:"POST",path:"analyze",urlParameters:[q],queryParameters:[x,C,S],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:n},default:{bodyMapper:N}},serializer:w},Q={httpMethod:"POST",path:"areaOfInterest",urlParameters:[q],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:c},default:{bodyMapper:N}},serializer:w},J={httpMethod:"POST",path:"describe",urlParameters:[q],queryParameters:[O,S],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:m},default:{bodyMapper:N}},serializer:w},K={httpMethod:"POST",path:"detect",urlParameters:[q],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:l},default:{bodyMapper:N}},serializer:w},X={httpMethod:"POST",path:"generateThumbnail",urlParameters:[q],queryParameters:[B,f,T],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:w},Y={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[q,R],queryParameters:[S],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:p},default:{bodyMapper:N}},serializer:w},Z={httpMethod:"POST",path:"ocr",urlParameters:[q],queryParameters:[P,I],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:d},default:{bodyMapper:N}},serializer:w},$={httpMethod:"POST",path:"tag",urlParameters:[q],queryParameters:[S],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:u},default:{bodyMapper:N}},serializer:w},ee={httpMethod:"POST",path:"recognizeText",urlParameters:[q],queryParameters:[M],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:b},default:{bodyMapper:N}},serializer:w};e.ComputerVisionClient=j,e.ComputerVisionClientContext=D,e.ComputerVisionModels=i,e.ComputerVisionMappers=h,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.Azure=e.Azure||{},e.Azure.CognitiveservicesComputervision={}),e.msRest)}(this,function(e,s){"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 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({}),n={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"}}}}},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"}}}}},m={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"}}}}},o={serializedName:"ListModelsResult",type:{name:"Composite",className:"ListModelsResult",modelProperties:{modelsProperty:{nullable:!0,readOnly:!0,serializedName:"models",type:{name:"Sequence",element:{type:{name:"Composite",className:"ModelDescription"}}}}}}},p={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"}}}}},d={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"}}}}}}},u={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"}}}}},c={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"}}}}},y={serializedName:"ImageUrl",type:{name:"Composite",className:"ImageUrl",modelProperties:{url:{required:!0,serializedName:"url",type:{name:"String"}}}}},N={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"}}}}},g={serializedName:"TextOperationResult",type:{name:"Composite",className:"TextOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["Not Started","Running","Failed","Succeeded"]}},recognitionResult:{serializedName:"recognitionResult",type:{name:"Composite",className:"TextRecognitionResult"}}}}},z={serializedName:"ReadOperationResult",type:{name:"Composite",className:"ReadOperationResult",modelProperties:{status:{nullable:!1,serializedName:"status",type:{name:"Enum",allowedValues:["Not Started","Running","Failed","Succeeded"]}},recognitionResults:{serializedName:"recognitionResults",type:{name:"Sequence",element:{type:{name:"Composite",className:"TextRecognitionResult"}}}}}}},b={serializedName:"recognizetext-headers",type:{name:"Composite",className:"RecognizeTextHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},h={serializedName:"batchreadfile-headers",type:{name:"Composite",className:"BatchReadFileHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},C={serializedName:"recognizetextinstream-headers",type:{name:"Composite",className:"RecognizeTextInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},P={serializedName:"batchreadfileinstream-headers",type:{name:"Composite",className:"BatchReadFileInStreamHeaders",modelProperties:{operationLocation:{serializedName:"operation-location",type:{name:"String"}}}}},q=Object.freeze({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"}},adultScore:{nullable:!1,serializedName:"adultScore",type:{name:"Number"}},racyScore:{nullable:!1,serializedName:"racyScore",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:n,ImageDescription:l,DetectResult:m,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:o,DomainModelResults:p,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:d,TagResult:u,AreaOfInterestResult:c,ImageUrl:y,ComputerVisionError:N,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:{nullable:!0,serializedName:"confidence",type:{name:"Enum",allowedValues:["High","Low"]}}}}},Line:{serializedName:"Line",type:{name:"Composite",className:"Line",modelProperties:{boundingBox:{serializedName:"boundingBox",type:{name:"Sequence",element:{type:{name:"Number"}}}},text:{serializedName:"text",type:{name:"String"}},words:{serializedName:"words",type:{name:"Sequence",element:{type:{name:"Composite",className:"Word"}}}}}}},TextRecognitionResult:{serializedName:"TextRecognitionResult",type:{name:"Composite",className:"TextRecognitionResult",modelProperties:{page:{serializedName:"page",type:{name:"Number"}},clockwiseOrientation:{serializedName:"clockwiseOrientation",type:{name:"Number"}},width:{serializedName:"width",type:{name:"Number"}},height:{serializedName:"height",type:{name:"Number"}},unit:{nullable:!0,serializedName:"unit",type:{name:"Enum",allowedValues:["pixel","inch"]}},lines:{required:!0,serializedName:"lines",type:{name:"Sequence",element:{type:{name:"Composite",className:"Line"}}}}}}},TextOperationResult:g,ReadOperationResult:z,RecognizeTextHeaders:b,BatchReadFileHeaders:h,RecognizeTextInStreamHeaders:C,BatchReadFileInStreamHeaders:P}),f={parameterPath:["options","details"],mapper:{nullable:!0,serializedName:"details",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["Celebrities","Landmarks"]}}}},collectionFormat:s.QueryCollectionFormat.Csv},S={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,nullable:!1,serializedName:"height",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},R={parameterPath:["options","language"],mapper:{nullable:!1,serializedName:"language",defaultValue:"en",type:{name:"String"}}},M={parameterPath:["options","language"],mapper:{nullable:!1,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","maxCandidates"],mapper:{nullable:!0,serializedName:"maxCandidates",defaultValue:1,type:{name:"Number"}}},B={parameterPath:"mode",mapper:{required:!0,serializedName:"mode",type:{name:"Enum",allowedValues:["Handwritten","Printed"]}}},x={parameterPath:"model",mapper:{required:!0,nullable:!0,serializedName:"model",type:{name:"String"}}},D={parameterPath:"operationId",mapper:{required:!0,serializedName:"operationId",type:{name:"String"}}},w={parameterPath:["options","smartCropping"],mapper:{nullable:!0,serializedName:"smartCropping",defaultValue:!1,type:{name:"Boolean"}}},j={parameterPath:["options","visualFeatures"],mapper:{serializedName:"visualFeatures",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["ImageType","Faces","Adult","Categories","Color","Tags","Description","Objects","Brands"]}}}},collectionFormat:s.QueryCollectionFormat.Csv},A={parameterPath:"width",mapper:{required:!0,nullable:!1,serializedName:"width",constraints:{InclusiveMaximum:1024,InclusiveMinimum:1},type:{name:"Number"}}},F=function(n){function e(e,a,t){var r=this;if(null==a)throw new Error("'endpoint' cannot be null.");if(null==e)throw new Error("'credentials' cannot be null.");if(t||(t={}),!t.userAgent){var i=s.getDefaultUserAgentValue();t.userAgent="@azure/cognitiveservices-computervision/3.2.0 "+i}return(r=n.call(this,e,t)||this).baseUri="{Endpoint}/vision/v2.0",r.requestContentType="application/json; charset=utf-8",r.endpoint=a,r.credentials=e,r}return a(e,n),e}(s.ServiceClient),v=function(r){function e(e,a,t){return r.call(this,e,a,t)||this}return a(e,r),e.prototype.analyzeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},V,t)},e.prototype.describeImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},k,t)},e.prototype.detectObjects=function(e,a,t){return this.sendOperationRequest({url:e,options:a},E,t)},e.prototype.listModels=function(e,a){return this.sendOperationRequest({options:e},H,a)},e.prototype.analyzeImageByDomain=function(e,a,t,r){return this.sendOperationRequest({model:e,url:a,options:t},W,r)},e.prototype.recognizePrintedText=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,url:a,options:t},_,r)},e.prototype.tagImage=function(e,a,t){return this.sendOperationRequest({url:e,options:a},U,t)},e.prototype.generateThumbnail=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,url:t,options:r},G,i)},e.prototype.getAreaOfInterest=function(e,a,t){return this.sendOperationRequest({url:e,options:a},Q,t)},e.prototype.recognizeText=function(e,a,t,r){return this.sendOperationRequest({mode:e,url:a,options:t},J,r)},e.prototype.getTextOperationResult=function(e,a,t){return this.sendOperationRequest({operationId:e,options:a},K,t)},e.prototype.batchReadFile=function(e,a,t,r){return this.sendOperationRequest({mode:e,url:a,options:t},X,r)},e.prototype.getReadOperationResult=function(e,a,t){return this.sendOperationRequest({operationId:e,options:a},Y,t)},e.prototype.analyzeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},Z,t)},e.prototype.getAreaOfInterestInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},$,t)},e.prototype.describeImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ee,t)},e.prototype.detectObjectsInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ae,t)},e.prototype.generateThumbnailInStream=function(e,a,t,r,i){return this.sendOperationRequest({width:e,height:a,image:t,options:r},te,i)},e.prototype.analyzeImageByDomainInStream=function(e,a,t,r){return this.sendOperationRequest({model:e,image:a,options:t},re,r)},e.prototype.recognizePrintedTextInStream=function(e,a,t,r){return this.sendOperationRequest({detectOrientation:e,image:a,options:t},ie,r)},e.prototype.tagImageInStream=function(e,a,t){return this.sendOperationRequest({image:e,options:a},ne,t)},e.prototype.recognizeTextInStream=function(e,a,t,r){return this.sendOperationRequest({image:e,mode:a,options:t},se,r)},e.prototype.batchReadFileInStream=function(e,a,t,r){return this.sendOperationRequest({image:e,mode:a,options:t},le,r)},e}(F),L=new s.Serializer(q),V={httpMethod:"POST",path:"analyze",urlParameters:[I],queryParameters:[j,f,R],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:n},default:{bodyMapper:N}},serializer:L},k={httpMethod:"POST",path:"describe",urlParameters:[I],queryParameters:[T,R],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:l},default:{bodyMapper:N}},serializer:L},E={httpMethod:"POST",path:"detect",urlParameters:[I],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:m},default:{bodyMapper:N}},serializer:L},H={httpMethod:"GET",path:"models",urlParameters:[I],responses:{200:{bodyMapper:o},default:{bodyMapper:N}},serializer:L},W={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[I,x],queryParameters:[R],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:p},default:{bodyMapper:N}},serializer:L},_={httpMethod:"POST",path:"ocr",urlParameters:[I],queryParameters:[S,M],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:d},default:{bodyMapper:N}},serializer:L},U={httpMethod:"POST",path:"tag",urlParameters:[I],queryParameters:[R],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:u},default:{bodyMapper:N}},serializer:L},G={httpMethod:"POST",path:"generateThumbnail",urlParameters:[I],queryParameters:[A,O,w],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:{serializedName:"parsedResponse",type:{name:"Stream"}}},default:{}},serializer:L},Q={httpMethod:"POST",path:"areaOfInterest",urlParameters:[I],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{200:{bodyMapper:c},default:{bodyMapper:N}},serializer:L},J={httpMethod:"POST",path:"recognizeText",urlParameters:[I],queryParameters:[B],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{202:{headersMapper:b},default:{bodyMapper:N}},serializer:L},K={httpMethod:"GET",path:"textOperations/{operationId}",urlParameters:[I,D],responses:{200:{bodyMapper:g},default:{bodyMapper:N}},serializer:L},X={httpMethod:"POST",path:"read/core/asyncBatchAnalyze",urlParameters:[I],queryParameters:[B],requestBody:{parameterPath:{url:"url"},mapper:t({},y,{required:!0})},responses:{202:{headersMapper:h},default:{bodyMapper:N}},serializer:L},Y={httpMethod:"GET",path:"read/operations/{operationId}",urlParameters:[I,D],responses:{200:{bodyMapper:z},default:{bodyMapper:N}},serializer:L},Z={httpMethod:"POST",path:"analyze",urlParameters:[I],queryParameters:[j,f,R],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:n},default:{bodyMapper:N}},serializer:L},$={httpMethod:"POST",path:"areaOfInterest",urlParameters:[I],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:c},default:{bodyMapper:N}},serializer:L},ee={httpMethod:"POST",path:"describe",urlParameters:[I],queryParameters:[T,R],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:l},default:{bodyMapper:N}},serializer:L},ae={httpMethod:"POST",path:"detect",urlParameters:[I],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:m},default:{bodyMapper:N}},serializer:L},te={httpMethod:"POST",path:"generateThumbnail",urlParameters:[I],queryParameters:[A,O,w],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:L},re={httpMethod:"POST",path:"models/{model}/analyze",urlParameters:[I,x],queryParameters:[R],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:p},default:{bodyMapper:N}},serializer:L},ie={httpMethod:"POST",path:"ocr",urlParameters:[I],queryParameters:[S,M],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:d},default:{bodyMapper:N}},serializer:L},ne={httpMethod:"POST",path:"tag",urlParameters:[I],queryParameters:[R],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{200:{bodyMapper:u},default:{bodyMapper:N}},serializer:L},se={httpMethod:"POST",path:"recognizeText",urlParameters:[I],queryParameters:[B],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:C},default:{bodyMapper:N}},serializer:L},le={httpMethod:"POST",path:"read/core/asyncBatchAnalyze",urlParameters:[I],queryParameters:[B],requestBody:{parameterPath:"image",mapper:{required:!0,serializedName:"Image",type:{name:"Stream"}}},contentType:"application/octet-stream",responses:{202:{headersMapper:P},default:{bodyMapper:N}},serializer:L};e.ComputerVisionClient=v,e.ComputerVisionClientContext=F,e.ComputerVisionModels=i,e.ComputerVisionMappers=q,Object.defineProperty(e,"__esModule",{value:!0})});

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

*/
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions);
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions);
/**

@@ -291,2 +291,49 @@ * This operation extracts a rich set of visual features based on the image content.

/**
* Use this interface to get the result of a Read operation, employing the state-of-the-art Optical
* Character Recognition (OCR) algorithms optimized for text-heavy documents. When you use the Read
* File interface, the response contains a field called "Operation-Location". The
* "Operation-Location" field contains the URL that you must use for your "Read Operation Result"
* operation to access OCR results.​
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param [options] The optional parameters
* @returns Promise<Models.BatchReadFileResponse>
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchReadFileResponse>;
/**
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param callback The callback
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param options The optional parameters
* @param callback The callback
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* This interface is used for getting OCR results of Read operation. The URL to this interface
* should be retrieved from "Operation-Location" field returned from Batch Read File interface.
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param [options] The optional parameters
* @returns Promise<Models.GetReadOperationResultResponse>
*/
getReadOperationResult(operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetReadOperationResultResponse>;
/**
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param callback The callback
*/
getReadOperationResult(operationId: string, callback: msRest.ServiceCallback<Models.ReadOperationResult>): void;
/**
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param options The optional parameters
* @param callback The callback
*/
getReadOperationResult(operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ReadOperationResult>): void;
/**
* This operation extracts a rich set of visual features based on the image content.

@@ -529,4 +576,29 @@ * Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within

recognizeTextInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* Use this interface to get the result of a Read Document operation, employing the
* state-of-the-art Optical Character Recognition (OCR) algorithms optimized for text-heavy
* documents. When you use the Read Document interface, the response contains a field called
* "Operation-Location". The "Operation-Location" field contains the URL that you must use for your
* "Get Read Result operation" to access OCR results.​
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param [options] The optional parameters
* @returns Promise<Models.BatchReadFileInStreamResponse>
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options?: msRest.RequestOptionsBase): Promise<Models.BatchReadFileInStreamResponse>;
/**
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param callback The callback
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, callback: msRest.ServiceCallback<void>): void;
/**
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param options The optional parameters
* @param callback The callback
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
}
export { ComputerVisionClient, ComputerVisionClientContext, Models as ComputerVisionModels, Mappers as ComputerVisionMappers };
//# sourceMappingURL=computerVisionClient.d.ts.map

@@ -24,4 +24,4 @@ /*

*/
function ComputerVisionClient(endpoint, credentials, options) {
return _super.call(this, endpoint, credentials, options) || this;
function ComputerVisionClient(credentials, endpoint, options) {
return _super.call(this, credentials, endpoint, options) || this;
}

@@ -98,2 +98,15 @@ ComputerVisionClient.prototype.analyzeImage = function (url, options, callback) {

};
ComputerVisionClient.prototype.batchReadFile = function (mode, url, options, callback) {
return this.sendOperationRequest({
mode: mode,
url: url,
options: options
}, batchReadFileOperationSpec, callback);
};
ComputerVisionClient.prototype.getReadOperationResult = function (operationId, options, callback) {
return this.sendOperationRequest({
operationId: operationId,
options: options
}, getReadOperationResultOperationSpec, callback);
};
ComputerVisionClient.prototype.analyzeImageInStream = function (image, options, callback) {

@@ -158,2 +171,9 @@ return this.sendOperationRequest({

};
ComputerVisionClient.prototype.batchReadFileInStream = function (image, mode, options, callback) {
return this.sendOperationRequest({
image: image,
mode: mode,
options: options
}, batchReadFileInStreamOperationSpec, callback);
};
return ComputerVisionClient;

@@ -425,2 +445,44 @@ }(ComputerVisionClientContext));

};
var batchReadFileOperationSpec = {
httpMethod: "POST",
path: "read/core/asyncBatchAnalyze",
urlParameters: [
Parameters.endpoint
],
queryParameters: [
Parameters.mode
],
requestBody: {
parameterPath: {
url: "url"
},
mapper: tslib_1.__assign({}, Mappers.ImageUrl, { required: true })
},
responses: {
202: {
headersMapper: Mappers.BatchReadFileHeaders
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer: serializer
};
var getReadOperationResultOperationSpec = {
httpMethod: "GET",
path: "read/operations/{operationId}",
urlParameters: [
Parameters.endpoint,
Parameters.operationId
],
responses: {
200: {
bodyMapper: Mappers.ReadOperationResult
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer: serializer
};
var analyzeImageInStreamOperationSpec = {

@@ -700,3 +762,33 @@ httpMethod: "POST",

};
var batchReadFileInStreamOperationSpec = {
httpMethod: "POST",
path: "read/core/asyncBatchAnalyze",
urlParameters: [
Parameters.endpoint
],
queryParameters: [
Parameters.mode
],
requestBody: {
parameterPath: "image",
mapper: {
required: true,
serializedName: "Image",
type: {
name: "Stream"
}
}
},
contentType: "application/octet-stream",
responses: {
202: {
headersMapper: Mappers.BatchReadFileInStreamHeaders
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer: serializer
};
export { ComputerVisionClient, ComputerVisionClientContext, Models as ComputerVisionModels, Mappers as ComputerVisionMappers };
//# sourceMappingURL=computerVisionClient.js.map

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

*/
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions);
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions);
}
//# sourceMappingURL=computerVisionClientContext.d.ts.map

@@ -22,9 +22,9 @@ /*

*/
function ComputerVisionClientContext(endpoint, credentials, options) {
function ComputerVisionClientContext(credentials, endpoint, options) {
var _this = this;
if (endpoint === null || endpoint === undefined) {
throw new Error('\'endpoint\' cannot be null.');
if (endpoint == undefined) {
throw new Error("'endpoint' cannot be null.");
}
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
if (credentials == undefined) {
throw new Error("'credentials' cannot be null.");
}

@@ -39,3 +39,3 @@ if (!options) {

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

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

@@ -270,2 +270,22 @@ /// <reference types="node" />

/**
* A brand detected in an image.
*/
export interface DetectedBrand {
/**
* Label for the brand.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* Confidence score of having observed the brand in the image, as a value ranging from 0 to 1.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly confidence?: number;
/**
* Approximate location of the detected brand.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly rectangle?: BoundingRect;
}
/**
* Image metadata.

@@ -325,2 +345,6 @@ */

/**
* Array of brands detected in the image.
*/
brands?: DetectedBrand[];
/**
* Id of the REST API request.

@@ -566,24 +590,67 @@ */

/**
* An interface representing Word.
* Json object representing a recognized word.
*/
export interface Word {
boundingBox?: number[];
text?: string;
/**
* Bounding box of a recognized word.
*/
boundingBox: number[];
/**
* The text content of the word.
*/
text: string;
/**
* Qualitative confidence measure. Possible values include: 'High', 'Low'
*/
confidence?: TextRecognitionResultConfidenceClass;
}
/**
* An interface representing Line.
* Json object representing a recognized text line.
*/
export interface Line {
/**
* Bounding box of a recognized line.
*/
boundingBox?: number[];
/**
* The text content of the line.
*/
text?: string;
/**
* List of words in the text line.
*/
words?: Word[];
}
/**
* An interface representing RecognitionResult.
* Json object representing a recognized text region
*/
export interface RecognitionResult {
lines?: Line[];
export interface TextRecognitionResult {
/**
* The 1-based page number of the recognition result.
*/
page?: number;
/**
* The orientation of the image in degrees in the clockwise direction. Range between [0, 360).
*/
clockwiseOrientation?: number;
/**
* The width of the image in pixels or the PDF in inches.
*/
width?: number;
/**
* The height of the image in pixels or the PDF in inches.
*/
height?: number;
/**
* The unit used in the Width, Height and BoundingBox. For images, the unit is "pixel". For PDF,
* the unit is "inch". Possible values include: 'pixel', 'inch'
*/
unit?: TextRecognitionResultDimensionUnit;
/**
* A list of recognized text lines.
*/
lines: Line[];
}
/**
* An interface representing TextOperationResult.
* Result of recognition text operation.
*/

@@ -596,5 +663,22 @@ export interface TextOperationResult {

status?: TextOperationStatusCodes;
recognitionResult?: RecognitionResult;
/**
* Text recognition result of the text operation.
*/
recognitionResult?: TextRecognitionResult;
}
/**
* OCR result of the read operation.
*/
export interface ReadOperationResult {
/**
* Status of the read operation. Possible values include: 'Not Started', 'Running', 'Failed',
* 'Succeeded'
*/
status?: TextOperationStatusCodes;
/**
* A array of text recognition result of the read operation.
*/
recognitionResults?: TextRecognitionResult[];
}
/**
* Optional Parameters.

@@ -613,3 +697,5 @@ */

* suggestive content is also detected. Objects - detects various objects within an image,
* including the approximate location. The Objects argument is only available in English.
* including the approximate location. The Objects argument is only available in English. Brands
* - detects various brands within an image, including the approximate location. The Brands
* argument is only available in English.
*/

@@ -706,3 +792,5 @@ visualFeatures?: VisualFeatureTypes[];

* suggestive content is also detected. Objects - detects various objects within an image,
* including the approximate location. The Objects argument is only available in English.
* including the approximate location. The Objects argument is only available in English. Brands
* - detects various brands within an image, including the approximate location. The Brands
* argument is only available in English.
*/

@@ -795,2 +883,11 @@ visualFeatures?: VisualFeatureTypes[];

/**
* Defines headers for BatchReadFile operation.
*/
export interface BatchReadFileHeaders {
/**
* URL to query for status of the operation. The operation ID will expire in 48 hours.
*/
operationLocation: string;
}
/**
* Defines headers for RecognizeTextInStream operation.

@@ -805,2 +902,11 @@ */

/**
* Defines headers for BatchReadFileInStream operation.
*/
export interface BatchReadFileInStreamHeaders {
/**
* URL to query for status of the operation. The operation ID will expire in 48 hours.
*/
operationLocation: string;
}
/**
* Defines values for Gender.

@@ -820,2 +926,16 @@ * Possible values include: 'Male', 'Female'

/**
* Defines values for TextRecognitionResultDimensionUnit.
* Possible values include: 'pixel', 'inch'
* @readonly
* @enum {string}
*/
export declare type TextRecognitionResultDimensionUnit = 'pixel' | 'inch';
/**
* Defines values for TextRecognitionResultConfidenceClass.
* Possible values include: 'High', 'Low'
* @readonly
* @enum {string}
*/
export declare type TextRecognitionResultConfidenceClass = 'High' | 'Low';
/**
* Defines values for OcrLanguages.

@@ -832,7 +952,7 @@ * Possible values include: 'unk', 'zh-Hans', 'zh-Hant', 'cs', 'da', 'nl', 'en', 'fi', 'fr', 'de',

* Possible values include: 'ImageType', 'Faces', 'Adult', 'Categories', 'Color', 'Tags',
* 'Description', 'Objects'
* 'Description', 'Objects', 'Brands'
* @readonly
* @enum {string}
*/
export declare type VisualFeatureTypes = 'ImageType' | 'Faces' | 'Adult' | 'Categories' | 'Color' | 'Tags' | 'Description' | 'Objects';
export declare type VisualFeatureTypes = 'ImageType' | 'Faces' | 'Adult' | 'Categories' | 'Color' | 'Tags' | 'Description' | 'Objects' | 'Brands';
/**

@@ -1108,2 +1228,34 @@ * Defines values for TextRecognitionMode.

/**
* Contains response data for the batchReadFile operation.
*/
export declare type BatchReadFileResponse = BatchReadFileHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: BatchReadFileHeaders;
};
};
/**
* Contains response data for the getReadOperationResult operation.
*/
export declare type GetReadOperationResultResponse = ReadOperationResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: ReadOperationResult;
};
};
/**
* Contains response data for the analyzeImageInStream operation.

@@ -1271,2 +1423,16 @@ */

};
/**
* Contains response data for the batchReadFileInStream operation.
*/
export declare type BatchReadFileInStreamResponse = BatchReadFileInStreamHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: BatchReadFileInStreamHeaders;
};
};
//# sourceMappingURL=index.d.ts.map

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

export declare const DetectedObject: msRest.CompositeMapper;
export declare const DetectedBrand: msRest.CompositeMapper;
export declare const ImageMetadata: msRest.CompositeMapper;

@@ -37,6 +38,9 @@ export declare const ImageAnalysis: msRest.CompositeMapper;

export declare const Line: msRest.CompositeMapper;
export declare const RecognitionResult: msRest.CompositeMapper;
export declare const TextRecognitionResult: msRest.CompositeMapper;
export declare const TextOperationResult: msRest.CompositeMapper;
export declare const ReadOperationResult: msRest.CompositeMapper;
export declare const RecognizeTextHeaders: msRest.CompositeMapper;
export declare const BatchReadFileHeaders: msRest.CompositeMapper;
export declare const RecognizeTextInStreamHeaders: msRest.CompositeMapper;
export declare const BatchReadFileInStreamHeaders: msRest.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map

@@ -498,2 +498,35 @@ /*

};
export var DetectedBrand = {
serializedName: "DetectedBrand",
type: {
name: "Composite",
className: "DetectedBrand",
modelProperties: {
name: {
nullable: true,
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
confidence: {
nullable: false,
readOnly: true,
serializedName: "confidence",
type: {
name: "Number"
}
},
rectangle: {
readOnly: true,
serializedName: "rectangle",
type: {
name: "Composite",
className: "BoundingRect"
}
}
}
}
};
export var ImageMetadata = {

@@ -615,2 +648,15 @@ serializedName: "ImageMetadata",

},
brands: {
nullable: true,
serializedName: "brands",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DetectedBrand"
}
}
}
},
requestId: {

@@ -1113,2 +1159,3 @@ nullable: true,

boundingBox: {
required: true,
serializedName: "boundingBox",

@@ -1125,2 +1172,3 @@ type: {

text: {
required: true,
serializedName: "text",

@@ -1130,2 +1178,13 @@ type: {

}
},
confidence: {
nullable: true,
serializedName: "confidence",
type: {
name: "Enum",
allowedValues: [
"High",
"Low"
]
}
}

@@ -1173,9 +1232,45 @@ }

};
export var RecognitionResult = {
serializedName: "RecognitionResult",
export var TextRecognitionResult = {
serializedName: "TextRecognitionResult",
type: {
name: "Composite",
className: "RecognitionResult",
className: "TextRecognitionResult",
modelProperties: {
page: {
serializedName: "page",
type: {
name: "Number"
}
},
clockwiseOrientation: {
serializedName: "clockwiseOrientation",
type: {
name: "Number"
}
},
width: {
serializedName: "width",
type: {
name: "Number"
}
},
height: {
serializedName: "height",
type: {
name: "Number"
}
},
unit: {
nullable: true,
serializedName: "unit",
type: {
name: "Enum",
allowedValues: [
"pixel",
"inch"
]
}
},
lines: {
required: true,
serializedName: "lines",

@@ -1218,3 +1313,3 @@ type: {

name: "Composite",
className: "RecognitionResult"
className: "TextRecognitionResult"
}

@@ -1225,2 +1320,36 @@ }

};
export var ReadOperationResult = {
serializedName: "ReadOperationResult",
type: {
name: "Composite",
className: "ReadOperationResult",
modelProperties: {
status: {
nullable: false,
serializedName: "status",
type: {
name: "Enum",
allowedValues: [
"Not Started",
"Running",
"Failed",
"Succeeded"
]
}
},
recognitionResults: {
serializedName: "recognitionResults",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "TextRecognitionResult"
}
}
}
}
}
}
};
export var RecognizeTextHeaders = {

@@ -1241,2 +1370,17 @@ serializedName: "recognizetext-headers",

};
export var BatchReadFileHeaders = {
serializedName: "batchreadfile-headers",
type: {
name: "Composite",
className: "BatchReadFileHeaders",
modelProperties: {
operationLocation: {
serializedName: "operation-location",
type: {
name: "String"
}
}
}
}
};
export var RecognizeTextInStreamHeaders = {

@@ -1257,2 +1401,17 @@ serializedName: "recognizetextinstream-headers",

};
export var BatchReadFileInStreamHeaders = {
serializedName: "batchreadfileinstream-headers",
type: {
name: "Composite",
className: "BatchReadFileInStreamHeaders",
modelProperties: {
operationLocation: {
serializedName: "operation-location",
type: {
name: "String"
}
}
}
}
};
//# sourceMappingURL=mappers.js.map

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

"Description",
"Objects"
"Objects",
"Brands"
]

@@ -215,0 +216,0 @@ }

@@ -24,4 +24,4 @@ /*

*/
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) {
super(endpoint, credentials, options);
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) {
super(credentials, endpoint, options);
}

@@ -420,2 +420,70 @@

/**
* Use this interface to get the result of a Read operation, employing the state-of-the-art Optical
* Character Recognition (OCR) algorithms optimized for text-heavy documents. When you use the Read
* File interface, the response contains a field called "Operation-Location". The
* "Operation-Location" field contains the URL that you must use for your "Read Operation Result"
* operation to access OCR results.​
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param [options] The optional parameters
* @returns Promise<Models.BatchReadFileResponse>
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, options?: msRest.RequestOptionsBase): Promise<Models.BatchReadFileResponse>;
/**
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param callback The callback
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, callback: msRest.ServiceCallback<void>): void;
/**
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param url Publicly reachable URL of an image.
* @param options The optional parameters
* @param callback The callback
*/
batchReadFile(mode: Models.TextRecognitionMode, url: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
batchReadFile(mode: Models.TextRecognitionMode, url: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<Models.BatchReadFileResponse> {
return this.sendOperationRequest(
{
mode,
url,
options
},
batchReadFileOperationSpec,
callback) as Promise<Models.BatchReadFileResponse>;
}
/**
* This interface is used for getting OCR results of Read operation. The URL to this interface
* should be retrieved from "Operation-Location" field returned from Batch Read File interface.
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param [options] The optional parameters
* @returns Promise<Models.GetReadOperationResultResponse>
*/
getReadOperationResult(operationId: string, options?: msRest.RequestOptionsBase): Promise<Models.GetReadOperationResultResponse>;
/**
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param callback The callback
*/
getReadOperationResult(operationId: string, callback: msRest.ServiceCallback<Models.ReadOperationResult>): void;
/**
* @param operationId Id of read operation returned in the response of the "Batch Read File"
* interface.
* @param options The optional parameters
* @param callback The callback
*/
getReadOperationResult(operationId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ReadOperationResult>): void;
getReadOperationResult(operationId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ReadOperationResult>, callback?: msRest.ServiceCallback<Models.ReadOperationResult>): Promise<Models.GetReadOperationResultResponse> {
return this.sendOperationRequest(
{
operationId,
options
},
getReadOperationResultOperationSpec,
callback) as Promise<Models.GetReadOperationResultResponse>;
}
/**
* This operation extracts a rich set of visual features based on the image content.

@@ -752,2 +820,38 @@ * Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within

}
/**
* Use this interface to get the result of a Read Document operation, employing the
* state-of-the-art Optical Character Recognition (OCR) algorithms optimized for text-heavy
* documents. When you use the Read Document interface, the response contains a field called
* "Operation-Location". The "Operation-Location" field contains the URL that you must use for your
* "Get Read Result operation" to access OCR results.​
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param [options] The optional parameters
* @returns Promise<Models.BatchReadFileInStreamResponse>
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options?: msRest.RequestOptionsBase): Promise<Models.BatchReadFileInStreamResponse>;
/**
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param callback The callback
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, callback: msRest.ServiceCallback<void>): void;
/**
* @param image An image stream.
* @param mode Type of text to recognize. Possible values include: 'Handwritten', 'Printed'
* @param options The optional parameters
* @param callback The callback
*/
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
batchReadFileInStream(image: msRest.HttpRequestBody, mode: Models.TextRecognitionMode, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<void>, callback?: msRest.ServiceCallback<void>): Promise<Models.BatchReadFileInStreamResponse> {
return this.sendOperationRequest(
{
image,
mode,
options
},
batchReadFileInStreamOperationSpec,
callback) as Promise<Models.BatchReadFileInStreamResponse>;
}
}

@@ -1057,2 +1161,49 @@

const batchReadFileOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "read/core/asyncBatchAnalyze",
urlParameters: [
Parameters.endpoint
],
queryParameters: [
Parameters.mode
],
requestBody: {
parameterPath: {
url: "url"
},
mapper: {
...Mappers.ImageUrl,
required: true
}
},
responses: {
202: {
headersMapper: Mappers.BatchReadFileHeaders
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer
};
const getReadOperationResultOperationSpec: msRest.OperationSpec = {
httpMethod: "GET",
path: "read/operations/{operationId}",
urlParameters: [
Parameters.endpoint,
Parameters.operationId
],
responses: {
200: {
bodyMapper: Mappers.ReadOperationResult
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer
};
const analyzeImageInStreamOperationSpec: msRest.OperationSpec = {

@@ -1341,2 +1492,33 @@ httpMethod: "POST",

const batchReadFileInStreamOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "read/core/asyncBatchAnalyze",
urlParameters: [
Parameters.endpoint
],
queryParameters: [
Parameters.mode
],
requestBody: {
parameterPath: "image",
mapper: {
required: true,
serializedName: "Image",
type: {
name: "Stream"
}
}
},
contentType: "application/octet-stream",
responses: {
202: {
headersMapper: Mappers.BatchReadFileInStreamHeaders
},
default: {
bodyMapper: Mappers.ComputerVisionError
}
},
serializer
};
export {

@@ -1343,0 +1525,0 @@ ComputerVisionClient,

@@ -26,8 +26,8 @@ /*

*/
constructor(endpoint: string, credentials: msRest.ServiceClientCredentials, options?: msRest.ServiceClientOptions) {
if (endpoint === null || endpoint === undefined) {
throw new Error('\'endpoint\' cannot be null.');
constructor(credentials: msRest.ServiceClientCredentials, endpoint: string, options?: msRest.ServiceClientOptions) {
if (endpoint == undefined) {
throw new Error("'endpoint' cannot be null.");
}
if (credentials === null || credentials === undefined) {
throw new Error('\'credentials\' cannot be null.');
if (credentials == undefined) {
throw new Error("'credentials' cannot be null.");
}

@@ -38,3 +38,4 @@

}
if(!options.userAgent) {
if (!options.userAgent) {
const defaultUserAgent = msRest.getDefaultUserAgentValue();

@@ -46,8 +47,7 @@ options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;

this.baseUri = "{Endpoint}";
this.baseUri = "{Endpoint}/vision/v2.0";
this.requestContentType = "application/json; charset=utf-8";
this.endpoint = endpoint;
this.credentials = credentials;
}
}

@@ -294,2 +294,23 @@ /*

/**
* A brand detected in an image.
*/
export interface DetectedBrand {
/**
* Label for the brand.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* Confidence score of having observed the brand in the image, as a value ranging from 0 to 1.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly confidence?: number;
/**
* Approximate location of the detected brand.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly rectangle?: BoundingRect;
}
/**
* Image metadata.

@@ -350,2 +371,6 @@ */

/**
* Array of brands detected in the image.
*/
brands?: DetectedBrand[];
/**
* Id of the REST API request.

@@ -607,15 +632,34 @@ */

/**
* An interface representing Word.
* Json object representing a recognized word.
*/
export interface Word {
boundingBox?: number[];
text?: string;
/**
* Bounding box of a recognized word.
*/
boundingBox: number[];
/**
* The text content of the word.
*/
text: string;
/**
* Qualitative confidence measure. Possible values include: 'High', 'Low'
*/
confidence?: TextRecognitionResultConfidenceClass;
}
/**
* An interface representing Line.
* Json object representing a recognized text line.
*/
export interface Line {
/**
* Bounding box of a recognized line.
*/
boundingBox?: number[];
/**
* The text content of the line.
*/
text?: string;
/**
* List of words in the text line.
*/
words?: Word[];

@@ -625,10 +669,34 @@ }

/**
* An interface representing RecognitionResult.
* Json object representing a recognized text region
*/
export interface RecognitionResult {
lines?: Line[];
export interface TextRecognitionResult {
/**
* The 1-based page number of the recognition result.
*/
page?: number;
/**
* The orientation of the image in degrees in the clockwise direction. Range between [0, 360).
*/
clockwiseOrientation?: number;
/**
* The width of the image in pixels or the PDF in inches.
*/
width?: number;
/**
* The height of the image in pixels or the PDF in inches.
*/
height?: number;
/**
* The unit used in the Width, Height and BoundingBox. For images, the unit is "pixel". For PDF,
* the unit is "inch". Possible values include: 'pixel', 'inch'
*/
unit?: TextRecognitionResultDimensionUnit;
/**
* A list of recognized text lines.
*/
lines: Line[];
}
/**
* An interface representing TextOperationResult.
* Result of recognition text operation.
*/

@@ -641,6 +709,24 @@ export interface TextOperationResult {

status?: TextOperationStatusCodes;
recognitionResult?: RecognitionResult;
/**
* Text recognition result of the text operation.
*/
recognitionResult?: TextRecognitionResult;
}
/**
* OCR result of the read operation.
*/
export interface ReadOperationResult {
/**
* Status of the read operation. Possible values include: 'Not Started', 'Running', 'Failed',
* 'Succeeded'
*/
status?: TextOperationStatusCodes;
/**
* A array of text recognition result of the read operation.
*/
recognitionResults?: TextRecognitionResult[];
}
/**
* Optional Parameters.

@@ -659,3 +745,5 @@ */

* suggestive content is also detected. Objects - detects various objects within an image,
* including the approximate location. The Objects argument is only available in English.
* including the approximate location. The Objects argument is only available in English. Brands
* - detects various brands within an image, including the approximate location. The Brands
* argument is only available in English.
*/

@@ -758,3 +846,5 @@ visualFeatures?: VisualFeatureTypes[];

* suggestive content is also detected. Objects - detects various objects within an image,
* including the approximate location. The Objects argument is only available in English.
* including the approximate location. The Objects argument is only available in English. Brands
* - detects various brands within an image, including the approximate location. The Brands
* argument is only available in English.
*/

@@ -854,2 +944,12 @@ visualFeatures?: VisualFeatureTypes[];

/**
* Defines headers for BatchReadFile operation.
*/
export interface BatchReadFileHeaders {
/**
* URL to query for status of the operation. The operation ID will expire in 48 hours.
*/
operationLocation: string;
}
/**
* Defines headers for RecognizeTextInStream operation.

@@ -865,2 +965,12 @@ */

/**
* Defines headers for BatchReadFileInStream operation.
*/
export interface BatchReadFileInStreamHeaders {
/**
* URL to query for status of the operation. The operation ID will expire in 48 hours.
*/
operationLocation: string;
}
/**
* Defines values for Gender.

@@ -882,2 +992,18 @@ * Possible values include: 'Male', 'Female'

/**
* Defines values for TextRecognitionResultDimensionUnit.
* Possible values include: 'pixel', 'inch'
* @readonly
* @enum {string}
*/
export type TextRecognitionResultDimensionUnit = 'pixel' | 'inch';
/**
* Defines values for TextRecognitionResultConfidenceClass.
* Possible values include: 'High', 'Low'
* @readonly
* @enum {string}
*/
export type TextRecognitionResultConfidenceClass = 'High' | 'Low';
/**
* Defines values for OcrLanguages.

@@ -895,7 +1021,7 @@ * Possible values include: 'unk', 'zh-Hans', 'zh-Hant', 'cs', 'da', 'nl', 'en', 'fi', 'fr', 'de',

* Possible values include: 'ImageType', 'Faces', 'Adult', 'Categories', 'Color', 'Tags',
* 'Description', 'Objects'
* 'Description', 'Objects', 'Brands'
* @readonly
* @enum {string}
*/
export type VisualFeatureTypes = 'ImageType' | 'Faces' | 'Adult' | 'Categories' | 'Color' | 'Tags' | 'Description' | 'Objects';
export type VisualFeatureTypes = 'ImageType' | 'Faces' | 'Adult' | 'Categories' | 'Color' | 'Tags' | 'Description' | 'Objects' | 'Brands';

@@ -1204,2 +1330,37 @@ /**

/**
* Contains response data for the batchReadFile operation.
*/
export type BatchReadFileResponse = BatchReadFileHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: BatchReadFileHeaders;
};
};
/**
* Contains response data for the getReadOperationResult operation.
*/
export type GetReadOperationResultResponse = ReadOperationResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: ReadOperationResult;
};
};
/**
* Contains response data for the analyzeImageInStream operation.

@@ -1384,1 +1545,16 @@ */

};
/**
* Contains response data for the batchReadFileInStream operation.
*/
export type BatchReadFileInStreamResponse = BatchReadFileInStreamHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: BatchReadFileInStreamHeaders;
};
};

@@ -517,2 +517,36 @@ /*

export const DetectedBrand: msRest.CompositeMapper = {
serializedName: "DetectedBrand",
type: {
name: "Composite",
className: "DetectedBrand",
modelProperties: {
name: {
nullable: true,
readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
confidence: {
nullable: false,
readOnly: true,
serializedName: "confidence",
type: {
name: "Number"
}
},
rectangle: {
readOnly: true,
serializedName: "rectangle",
type: {
name: "Composite",
className: "BoundingRect"
}
}
}
}
};
export const ImageMetadata: msRest.CompositeMapper = {

@@ -635,2 +669,15 @@ serializedName: "ImageMetadata",

},
brands: {
nullable: true,
serializedName: "brands",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "DetectedBrand"
}
}
}
},
requestId: {

@@ -1149,2 +1196,3 @@ nullable: true,

boundingBox: {
required: true,
serializedName: "boundingBox",

@@ -1161,2 +1209,3 @@ type: {

text: {
required: true,
serializedName: "text",

@@ -1166,2 +1215,13 @@ type: {

}
},
confidence: {
nullable: true,
serializedName: "confidence",
type: {
name: "Enum",
allowedValues: [
"High",
"Low"
]
}
}

@@ -1211,9 +1271,45 @@ }

export const RecognitionResult: msRest.CompositeMapper = {
serializedName: "RecognitionResult",
export const TextRecognitionResult: msRest.CompositeMapper = {
serializedName: "TextRecognitionResult",
type: {
name: "Composite",
className: "RecognitionResult",
className: "TextRecognitionResult",
modelProperties: {
page: {
serializedName: "page",
type: {
name: "Number"
}
},
clockwiseOrientation: {
serializedName: "clockwiseOrientation",
type: {
name: "Number"
}
},
width: {
serializedName: "width",
type: {
name: "Number"
}
},
height: {
serializedName: "height",
type: {
name: "Number"
}
},
unit: {
nullable: true,
serializedName: "unit",
type: {
name: "Enum",
allowedValues: [
"pixel",
"inch"
]
}
},
lines: {
required: true,
serializedName: "lines",

@@ -1257,3 +1353,3 @@ type: {

name: "Composite",
className: "RecognitionResult"
className: "TextRecognitionResult"
}

@@ -1265,2 +1361,37 @@ }

export const ReadOperationResult: msRest.CompositeMapper = {
serializedName: "ReadOperationResult",
type: {
name: "Composite",
className: "ReadOperationResult",
modelProperties: {
status: {
nullable: false,
serializedName: "status",
type: {
name: "Enum",
allowedValues: [
"Not Started",
"Running",
"Failed",
"Succeeded"
]
}
},
recognitionResults: {
serializedName: "recognitionResults",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "TextRecognitionResult"
}
}
}
}
}
}
};
export const RecognizeTextHeaders: msRest.CompositeMapper = {

@@ -1282,2 +1413,18 @@ serializedName: "recognizetext-headers",

export const BatchReadFileHeaders: msRest.CompositeMapper = {
serializedName: "batchreadfile-headers",
type: {
name: "Composite",
className: "BatchReadFileHeaders",
modelProperties: {
operationLocation: {
serializedName: "operation-location",
type: {
name: "String"
}
}
}
}
};
export const RecognizeTextInStreamHeaders: msRest.CompositeMapper = {

@@ -1298,1 +1445,17 @@ serializedName: "recognizetextinstream-headers",

};
export const BatchReadFileInStreamHeaders: msRest.CompositeMapper = {
serializedName: "batchreadfileinstream-headers",
type: {
name: "Composite",
className: "BatchReadFileInStreamHeaders",
modelProperties: {
operationLocation: {
serializedName: "operation-location",
type: {
name: "String"
}
}
}
}
};

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

"Description",
"Objects"
"Objects",
"Brands"
]

@@ -217,0 +218,0 @@ }

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

"description": "ComputerVisionClient Library with typescript type definitions for node.js and browser.",
"version": "3.2.0",
"version": "4.0.0",
"dependencies": {
"@azure/ms-rest-js": "^1.2.6",
"@azure/ms-rest-js": "^1.6.0",
"tslib": "^1.9.3"

@@ -10,0 +10,0 @@ },

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

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