diff --git a/specification/ai/DocumentIntelligence/client.tsp b/specification/ai/DocumentIntelligence/client.tsp index 37e6b85be6e3..ff52ddfd5e8a 100644 --- a/specification/ai/DocumentIntelligence/client.tsp +++ b/specification/ai/DocumentIntelligence/client.tsp @@ -8,9 +8,7 @@ using Azure.ClientGenerator.Core; using DocumentIntelligence; @TypeSpec.Versioning.useDependency(Azure.Core.Versions.v1_0_Preview_2) -@TypeSpec.Versioning.useDependency( - DocumentIntelligence.Versions.v2024_07_31_preview -) +@TypeSpec.Versioning.useDependency(DocumentIntelligence.Versions.v2024_11_30) namespace ClientCustomizations; @client({ @@ -21,12 +19,19 @@ interface DocumentIntelligenceClient { #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" analyzeDocument is DocumentModels.analyzeDocument; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - analyzeBatchDocuments is DocumentModels.analyzeBatchDocuments; - #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" getAnalyzeResultPdf is DocumentModels.getAnalyzeResultPdf; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" getAnalyzeResultFigure is DocumentModels.getAnalyzeResultFigure; - + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + deleteAnalyzeResult is DocumentModels.deleteAnalyzeResult; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + analyzeBatchDocuments is DocumentModels.analyzeBatchDocuments; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + listAnalyzeBatchResults is DocumentModels.listAnalyzeBatchResults; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + deleteAnalyzeBatchResult is DocumentModels.deleteAnalyzeBatchResult; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + getAnalyzeBatchResult is DocumentModels.getAnalyzeBatchResult; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" classifyDocument is DocumentClassifiers.classifyDocument; } @@ -49,7 +54,7 @@ interface DocumentIntelligenceAdministrationClient { deleteModel is DocumentModels.deleteModel; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - getResourceInfo is MiscellaneousOperations.getResourceInfo; + getResourceDetails is MiscellaneousOperations.getResourceDetails; getOperation is MiscellaneousOperations.getOperation; listOperations is MiscellaneousOperations.listOperations; @@ -69,21 +74,61 @@ interface DocumentIntelligenceAdministrationClient { "csharp" ); @@clientName(AnalyzeDocumentRequest, "AnalyzeDocumentContent", "csharp"); +@@clientName(AnalyzeDocumentRequest.urlSource, "UriSource", "csharp"); @@clientName(AuthorizeClassifierCopyRequest, "AuthorizeClassifierCopyContent", "csharp" ); @@clientName(AuthorizeCopyRequest, "AuthorizeCopyContent", "csharp"); +@@clientName(AzureBlobContentSource, "BlobContentSource", "csharp"); +@@clientName(AzureBlobContentSource.containerUrl, "ContainerUri", "csharp"); +@@clientName(AzureBlobFileListContentSource, + "BlobFileListContentSource", + "csharp" +); +@@clientName(AzureBlobFileListContentSource.containerUrl, + "ContainerUri", + "csharp" +); @@clientName(BuildDocumentClassifierRequest, "BuildDocumentClassifierContent", "csharp" ); +@@clientName(BuildDocumentClassifierRequest.docTypes, + "DocumentTypes", + "csharp" +); @@clientName(BuildDocumentModelRequest, "BuildDocumentModelContent", "csharp"); +@@clientName(BuildDocumentModelRequest.azureBlobSource, "BlobSource", "csharp"); +@@clientName(BuildDocumentModelRequest.azureBlobFileListSource, + "BlobFileListSource", + "csharp" +); +@@clientName(ClassifierCopyAuthorization.expirationDateTime, + "ExpiresOn", + "csharp" +); +@@clientName(ClassifierDocumentTypeDetails.azureBlobSource, + "BlobSource", + "csharp" +); +@@clientName(ClassifierDocumentTypeDetails.azureBlobFileListSource, + "BlobFileListSource", + "csharp" +); @@clientName(ClassifyDocumentRequest, "ClassifyDocumentContent", "csharp"); +@@clientName(ClassifyDocumentRequest.urlSource, "UriSource", "csharp"); @@clientName(ComposeDocumentModelRequest, "ComposeDocumentModelContent", "csharp" ); +@@clientName(ComposeDocumentModelRequest.docTypes, "DocumentTypes", "csharp"); +@@clientName(ContentSourceKind.azureBlob, "Blob", "csharp"); +@@clientName(ContentSourceKind.azureBlobFileList, "BlobFileList", "csharp"); +@@clientName(ContentSourceKind.url, "Uri", "csharp"); +@@clientName(ModelCopyAuthorization.expirationDateTime, "ExpiresOn", "csharp"); +@@clientName(AnalyzedDocument.docType, "DocumentType", "csharp"); +@@clientName(DocumentAnalysisFeature.styleFont, "FontStyling", "csharp"); @@clientName(DocumentBarcodeKind.EAN13, "Ean13", "csharp"); @@clientName(DocumentBarcodeKind.EAN8, "Ean8", "csharp"); @@clientName(DocumentBarcodeKind.ITF, "Itf", "csharp"); @@ -93,63 +138,46 @@ interface DocumentIntelligenceAdministrationClient { @@clientName(DocumentBarcodeKind.UPCA, "Upca", "csharp"); @@clientName(DocumentBarcodeKind.UPCE, "Upce", "csharp"); @@clientName(DocumentClassifierDetails.createdDateTime, "CreatedOn", "csharp"); +@@clientName(DocumentClassifierDetails.docTypes, "DocumentTypes", "csharp"); @@clientName(DocumentClassifierDetails.expirationDateTime, "ExpiresOn", "csharp" ); +@@clientName(DocumentClassifierDetails.modifiedDateTime, + "ModifiedOn", + "csharp" +); @@clientName(DocumentField.valueArray, "ValueList", "csharp"); @@clientName(DocumentField.valueInteger, "ValueLong", "csharp"); @@clientName(DocumentField.valueNumber, "ValueDouble", "csharp"); @@clientName(DocumentField.valueObject, "ValueDictionary", "csharp"); +@@clientName(DocumentFieldSchema.type, "FieldType", "csharp"); @@clientName(DocumentFieldType.array, "List", "csharp"); @@clientName(DocumentFieldType.integer, "Long", "csharp"); @@clientName(DocumentFieldType.number, "Double", "csharp"); @@clientName(DocumentFieldType.object, "Dictionary", "csharp"); +@@clientName(DocumentModelDetails.azureBlobSource, "BlobSource", "csharp"); +@@clientName(DocumentModelDetails.azureBlobFileListSource, + "BlobFileListSource", + "csharp" +); @@clientName(DocumentModelDetails.createdDateTime, "CreatedOn", "csharp"); +@@clientName(DocumentModelDetails.docTypes, "DocumentTypes", "csharp"); @@clientName(DocumentModelDetails.expirationDateTime, "ExpiresOn", "csharp"); -@@clientName(FontStyle, "DocumentFontStyle", "csharp"); -@@clientName(FontWeight, "DocumentFontWeight", "csharp"); -@@clientName(OperationDetails.createdDateTime, "CreatedOn", "csharp"); -@@clientName(OperationDetails.lastUpdatedDateTime, "LastUpdatedOn", "csharp"); - -@@usage(DocumentAnalysisFeature, Usage.output, "csharp"); -@@usage(LengthUnit, Usage.output, "csharp"); -@@usage(DocumentSelectionMarkState, Usage.output, "csharp"); -@@usage(DocumentBarcodeKind, Usage.output, "csharp"); -@@usage(DocumentFormulaKind, Usage.output, "csharp"); -@@usage(ParagraphRole, Usage.output, "csharp"); -@@usage(DocumentTableCellKind, Usage.output, "csharp"); -@@usage(FontStyle, Usage.output, "csharp"); -@@usage(FontWeight, Usage.output, "csharp"); -@@usage(DocumentFieldType, Usage.output, "csharp"); -@@usage(DocumentSignatureType, Usage.output, "csharp"); -@@usage(AnalyzeResult, Usage.output, "csharp"); -@@usage(DocumentPage, Usage.output, "csharp"); -@@usage(DocumentSpan, Usage.output, "csharp"); -@@usage(DocumentWord, Usage.output, "csharp"); -@@usage(DocumentSelectionMark, Usage.output, "csharp"); -@@usage(DocumentLine, Usage.output, "csharp"); -@@usage(DocumentBarcode, Usage.output, "csharp"); -@@usage(DocumentFormula, Usage.output, "csharp"); -@@usage(DocumentParagraph, Usage.output, "csharp"); -@@usage(BoundingRegion, Usage.output, "csharp"); -@@usage(DocumentTable, Usage.output, "csharp"); -@@usage(DocumentTableCell, Usage.output, "csharp"); -@@usage(DocumentFigure, Usage.output, "csharp"); -@@usage(DocumentSection, Usage.output, "csharp"); -@@usage(DocumentCaption, Usage.output, "csharp"); -@@usage(DocumentFootnote, Usage.output, "csharp"); -@@usage(DocumentKeyValuePair, Usage.output, "csharp"); -@@usage(DocumentKeyValueElement, Usage.output, "csharp"); -@@usage(DocumentStyle, Usage.output, "csharp"); -@@usage(DocumentLanguage, Usage.output, "csharp"); -@@usage(Document, Usage.output, "csharp"); -@@usage(DocumentField, Usage.output, "csharp"); -@@usage(CurrencyValue, Usage.output, "csharp"); -@@usage(AddressValue, Usage.output, "csharp"); -@@usage(BuildDocumentModelRequest, Usage.input, "csharp"); -@@usage(ComposeDocumentModelRequest, Usage.input, "csharp"); -@@usage(CopyAuthorization, Usage.input | Usage.output, "csharp"); +@@clientName(DocumentModelDetails.modifiedDateTime, "ModifiedOn", "csharp"); +// https://github.com/Azure/typespec-azure/issues/417 +@@clientName(DocumentIntelligenceInnerError.innererror, + "InnerErrorObject", + "csharp" +); +@@clientName(DocumentIntelligenceOperationDetails.createdDateTime, + "CreatedOn", + "csharp" +); +@@clientName(DocumentIntelligenceOperationDetails.lastUpdatedDateTime, + "LastUpdatedOn", + "csharp" +); @@clientName(AnalyzeDocumentRequest.base64Source, "bytesSource", "python"); @@clientName(ClassifyDocumentRequest.base64Source, "bytesSource", "python"); diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeBatchDocuments.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeBatchDocuments.json new file mode 100644 index 000000000000..c3fb716ffcb1 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeBatchDocuments.json @@ -0,0 +1,28 @@ +{ + "operationId": "DocumentModels_AnalyzeBatchDocuments", + "title": "Analyze Batch Documents", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-5", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeBatchRequest": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "trainingDocs/" + }, + "resultContainerUrl": "https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken", + "resultPrefix": "trainingDocsResult/", + "overwriteExisting": true + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeBatchResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Base64.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Base64.json new file mode 100644 index 000000000000..446cdbf4e0e8 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Base64.json @@ -0,0 +1,22 @@ +{ + "operationId": "DocumentModels_AnalyzeDocument", + "title": "Analyze Document from Base64", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-layout", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeRequest": { + "base64Source": "e2Jhc2U2NEVuY29kZWRQZGZ9" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Stream.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Stream.json new file mode 100644 index 000000000000..10d9017c6ab2 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Stream.json @@ -0,0 +1,20 @@ +{ + "operationId": "DocumentModels_AnalyzeDocumentFromStream", + "title": "Analyze Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "input": "{binaryFile}" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Url.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Url.json new file mode 100644 index 000000000000..e40661279d48 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Url.json @@ -0,0 +1,22 @@ +{ + "operationId": "DocumentModels_AnalyzeDocument", + "title": "Analyze Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeRequest": { + "urlSource": "http://host.com/doc.pdf" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentClassifier.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentClassifier.json new file mode 100644 index 000000000000..f91bd24f2fa3 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentClassifier.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentClassifiers_AuthorizeClassifierCopy", + "title": "Authorize Copy of Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "authorizeCopyRequest": { + "classifierId": "targetClassifier", + "description": "Target classifier description" + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetClassifierId": "targetClassifier", + "targetClassifierLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/targetClassifier", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentModel.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentModel.json new file mode 100644 index 000000000000..d472b8a83e5a --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentModel.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentModels_AuthorizeModelCopy", + "title": "Authorize Copy of Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "authorizeCopyRequest": { + "modelId": "targetModel", + "description": "Target model description" + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetModelId": "targetModel", + "targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentClassifier.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentClassifier.json new file mode 100644 index 000000000000..65b4fd8a1526 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentClassifier.json @@ -0,0 +1,33 @@ +{ + "operationId": "DocumentClassifiers_BuildClassifier", + "title": "Build Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "buildRequest": { + "classifierId": "myClassifier", + "description": "Classifier description", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "fileList": "formB.jsonl" + } + } + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentModel.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentModel.json new file mode 100644 index 000000000000..50ed6d5ae17c --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentModel.json @@ -0,0 +1,27 @@ +{ + "operationId": "DocumentModels_BuildModel", + "title": "Build Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "buildRequest": { + "modelId": "myCustomModel", + "description": "Custom model description", + "buildMode": "template", + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "trainingDocs/" + }, + "tags": { + "createdBy": "myUserId" + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Stream.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Stream.json new file mode 100644 index 000000000000..8f1bf66cd848 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Stream.json @@ -0,0 +1,18 @@ +{ + "operationId": "DocumentClassifiers_ClassifyDocumentFromStream", + "title": "Classify Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "classifierId", + "stringIndexType": "textElements", + "input": "{binaryFile}" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Url.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Url.json new file mode 100644 index 000000000000..8bc71dea7bf2 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/ClassifyDocument_Url.json @@ -0,0 +1,20 @@ +{ + "operationId": "DocumentClassifiers_ClassifyDocument", + "title": "Classify Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "classifierId", + "stringIndexType": "textElements", + "classifyRequest": { + "urlSource": "http://host.com/doc.pdf" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/ComposeDocumentModel.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/ComposeDocumentModel.json new file mode 100644 index 000000000000..ca093a88d035 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/ComposeDocumentModel.json @@ -0,0 +1,28 @@ +{ + "operationId": "DocumentModels_ComposeModel", + "title": "Compose Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "composeRequest": { + "modelId": "composedModel", + "description": "Composed model description", + "classifierId": "customClassifier", + "docTypes": { + "formA": { + "modelId": "model1" + }, + "formB": { + "modelId": "model2" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentClassifierTo.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentClassifierTo.json new file mode 100644 index 000000000000..d9eee097392e --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentClassifierTo.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentClassifiers_CopyClassifierTo", + "title": "Copy Document Classifier To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "sourceClassifier", + "copyToRequest": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetClassifierId": "targetClassifier", + "targetClassifierLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/targetClassifier", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentModelTo.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentModelTo.json new file mode 100644 index 000000000000..f960babc969c --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/CopyDocumentModelTo.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentModels_CopyModelTo", + "title": "Copy Document Model To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "sourceModel", + "copyToRequest": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetModelId": "targetModel", + "targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeBatchDocumentsResult.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeBatchDocumentsResult.json new file mode 100644 index 000000000000..799e1296604a --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeBatchDocumentsResult.json @@ -0,0 +1,13 @@ +{ + "operationId": "DocumentModels_DeleteAnalyzeBatchResult", + "title": "Delete Analyze Batch Documents Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeDocumentResult.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeDocumentResult.json new file mode 100644 index 000000000000..b43cf7a45c86 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteAnalyzeDocumentResult.json @@ -0,0 +1,13 @@ +{ + "operationId": "DocumentModels_DeleteAnalyzeResult", + "title": "Delete Analyze Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentClassifier.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentClassifier.json new file mode 100644 index 000000000000..ee07236dfbcc --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentClassifier.json @@ -0,0 +1,12 @@ +{ + "operationId": "DocumentClassifiers_DeleteClassifier", + "title": "Delete Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentModel.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentModel.json new file mode 100644 index 000000000000..56b04395a892 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/DeleteDocumentModel.json @@ -0,0 +1,12 @@ +{ + "operationId": "DocumentModels_DeleteModel", + "title": "Delete Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResult.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResult.json new file mode 100644 index 000000000000..859bb7cbcaba --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResult.json @@ -0,0 +1,49 @@ +{ + "operationId": "DocumentModels_GetAnalyzeBatchResult", + "title": "Get Analyze Batch Documents Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "result": { + "succeededCount": 1, + "failedCount": 1, + "skippedCount": 1, + "details": [ + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file1.pdf", + "resultUrl": "https://myStorageAccount.blob.core.windows.net/myOutputContainer/trainingDocsResult/file1.pdf.ocr.json", + "status": "succeeded" + }, + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file2.jpg", + "status": "failed", + "error": { + "code": "InvalidRequest", + "message": "Invalid request.", + "innererror": { + "code": "InvalidContent", + "message": "The file format is unsupported or corrupted. Refer to documentation for the list of supported formats." + } + } + }, + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file3.png", + "status": "skipped" + } + ] + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResults.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResults.json new file mode 100644 index 000000000000..b70c82d636de --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeBatchDocumentsResults.json @@ -0,0 +1,30 @@ +{ + "operationId": "DocumentModels_ListAnalyzeBatchResults", + "title": "List Analyze Batch Documents Results", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resultId": "f4d8b3b3-7f76-4b3b-8b3b-3b7f76f4d8b3", + "status": "succeeded", + "createdDateTime": "2021-09-24T12:54:35Z", + "lastUpdatedDateTime": "2021-09-24T12:54:35Z" + }, + { + "resultId": "f4d8b3b3-7f76-4b3b-8b3b-3b7f76f4d8b4", + "status": "running", + "createdDateTime": "2021-09-24T12:54:35Z", + "lastUpdatedDateTime": "2021-09-24T12:54:35Z" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-invoice/analyzeBatchResults?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResult.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResult.json new file mode 100644 index 000000000000..6d627119a3e1 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResult.json @@ -0,0 +1,7222 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResult", + "title": "Get Analyze Document Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "status": "succeeded", + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "analyzeResult": { + "apiVersion": "2024-11-30", + "modelId": "prebuilt-invoice", + "stringIndexType": "textElements", + "contentFormat": "text", + "content": "CONTOSO LTD.\nINVOICE\nContoso Headquarters\nINVOICE: INV-100\n123 456th St\nINVOICE DATE: 11/15/2019\nNew York, NY, 10001\nDUE DATE: 12/15/2019\nCUSTOMER NAME: MICROSOFT CORPORATION\nSERVICE PERIOD: 10/14/2019 – 11/14/2019\nCUSTOMER ID: CID-12345\nMicrosoft Corp\n123 Other St,\nRedmond WA, 98052\nBILL TO:\nSHIP TO:\nSERVICE ADDRESS:\nMicrosoft Finance\nMicrosoft Delivery\nMicrosoft Services\n123 Bill St,\n123 Ship St,\n123 Service St,\nRedmond WA, 98052\nRedmond WA, 98052\nRedmond WA, 98052\nSALESPERSON\nP.O. NUMBER\nREQUISITIONER\nSHIPPED VIA\nF.O.B. POINT\nTERMS\nPO-3333\nDATE\nITEM CODE\nDESCRIPTION\nQTY\nUM\nPRICE\nTAX\nAMOUNT\n3/4/2021\nA123\nConsulting Services\n2\nhours\n$30.00\n10%\n$60.00\n3/5/2021\nB456\nDocument Fee\n3\n$10.00\n5%\n$30.00\n3/6/2021\nC789\nPrinting Fee\n10\npages\n$1.00\n20%\n$10.00\nSUBTOTAL\n$100.00\nSALES TAX\n$10.00\nTOTAL\n$110.00\nPREVIOUS UNPAID BALANCE\n$500.00\nAMOUNT DUE\n$610.00\nTHANK YOU FOR YOUR BUSINESS!\nREMIT TO:\nContoso Billing\n123 Remit St\nNew York, NY, 10001\n:unselected:", + "pages": [ + { + "pageNumber": 1, + "angle": 0, + "width": 8.5, + "height": 11, + "unit": "inch", + "words": [ + { + "content": "CONTOSO", + "polygon": [ + 0.5911, + 0.6857, + 1.7451, + 0.6857, + 1.7451, + 0.8664, + 0.5911, + 0.8664 + ], + "confidence": 1, + "span": { + "offset": 0, + "length": 7 + } + }, + { + "content": "LTD.", + "polygon": [ + 1.8441, + 0.6879, + 2.3181, + 0.6879, + 2.3181, + 0.865, + 1.8441, + 0.865 + ], + "confidence": 1, + "span": { + "offset": 8, + "length": 4 + } + }, + { + "content": "INVOICE", + "polygon": [ + 7.0751, + 0.589, + 7.9886, + 0.589, + 7.9886, + 0.7697, + 7.0751, + 0.7697 + ], + "confidence": 1, + "span": { + "offset": 13, + "length": 7 + } + }, + { + "content": "Contoso", + "polygon": [ + 0.5882, + 1.4303, + 1.1337, + 1.4303, + 1.1337, + 1.5383, + 0.5882, + 1.5383 + ], + "confidence": 1, + "span": { + "offset": 21, + "length": 7 + } + }, + { + "content": "Headquarters", + "polygon": [ + 1.1905, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 1.1905, + 1.5664 + ], + "confidence": 1, + "span": { + "offset": 29, + "length": 12 + } + }, + { + "content": "INVOICE:", + "polygon": [ + 6.8599, + 1.4217, + 7.4328, + 1.4217, + 7.4328, + 1.5218, + 6.8599, + 1.5218 + ], + "confidence": 1, + "span": { + "offset": 42, + "length": 8 + } + }, + { + "content": "INV-100", + "polygon": [ + 7.4959, + 1.422, + 7.9988, + 1.422, + 7.9988, + 1.5215, + 7.4959, + 1.5215 + ], + "confidence": 1, + "span": { + "offset": 51, + "length": 7 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 1.6339, + 0.8213, + 1.6339, + 0.8213, + 1.742, + 0.5945, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 59, + "length": 3 + } + }, + { + "content": "456th", + "polygon": [ + 0.874, + 1.6092, + 1.2102, + 1.6092, + 1.2102, + 1.742, + 0.874, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 63, + "length": 5 + } + }, + { + "content": "St", + "polygon": [ + 1.2598, + 1.6339, + 1.3812, + 1.6339, + 1.3812, + 1.742, + 1.2598, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 69, + "length": 2 + } + }, + { + "content": "INVOICE", + "polygon": [ + 6.2263, + 1.6254, + 6.7562, + 1.6254, + 6.7562, + 1.7256, + 6.2263, + 1.7256 + ], + "confidence": 1, + "span": { + "offset": 72, + "length": 7 + } + }, + { + "content": "DATE:", + "polygon": [ + 6.8132, + 1.6267, + 7.1891, + 1.6267, + 7.1891, + 1.7248, + 6.8132, + 1.7248 + ], + "confidence": 1, + "span": { + "offset": 80, + "length": 5 + } + }, + { + "content": "11/15/2019", + "polygon": [ + 7.2528, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 7.2528, + 1.7449 + ], + "confidence": 1, + "span": { + "offset": 86, + "length": 10 + } + }, + { + "content": "New", + "polygon": [ + 0.5943, + 1.8385, + 0.8848, + 1.8385, + 0.8848, + 1.9454, + 0.5943, + 1.9454 + ], + "confidence": 1, + "span": { + "offset": 97, + "length": 3 + } + }, + { + "content": "York,", + "polygon": [ + 0.9293, + 1.8307, + 1.2568, + 1.8307, + 1.2568, + 1.9675, + 0.9293, + 1.9675 + ], + "confidence": 1, + "span": { + "offset": 101, + "length": 5 + } + }, + { + "content": "NY,", + "polygon": [ + 1.3205, + 1.8382, + 1.5242, + 1.8382, + 1.5242, + 1.9675, + 1.3205, + 1.9675 + ], + "confidence": 1, + "span": { + "offset": 107, + "length": 3 + } + }, + { + "content": "10001", + "polygon": [ + 1.5915, + 1.8372, + 1.9894, + 1.8372, + 1.9894, + 1.9454, + 1.5915, + 1.9454 + ], + "confidence": 1, + "span": { + "offset": 111, + "length": 5 + } + }, + { + "content": "DUE", + "polygon": [ + 6.4966, + 1.8333, + 6.7569, + 1.8333, + 6.7569, + 1.9322, + 6.4966, + 1.9322 + ], + "confidence": 1, + "span": { + "offset": 117, + "length": 3 + } + }, + { + "content": "DATE:", + "polygon": [ + 6.8126, + 1.8333, + 7.1846, + 1.8333, + 7.1846, + 1.9315, + 6.8126, + 1.9315 + ], + "confidence": 1, + "span": { + "offset": 121, + "length": 5 + } + }, + { + "content": "12/15/2019", + "polygon": [ + 7.2494, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 7.2494, + 1.9515 + ], + "confidence": 1, + "span": { + "offset": 127, + "length": 10 + } + }, + { + "content": "CUSTOMER", + "polygon": [ + 4.9513, + 2.0388, + 5.6868, + 2.0388, + 5.6868, + 2.1389, + 4.9513, + 2.1389 + ], + "confidence": 1, + "span": { + "offset": 138, + "length": 8 + } + }, + { + "content": "NAME:", + "polygon": [ + 5.7412, + 2.04, + 6.1764, + 2.04, + 6.1764, + 2.1381, + 5.7412, + 2.1381 + ], + "confidence": 1, + "span": { + "offset": 147, + "length": 5 + } + }, + { + "content": "MICROSOFT", + "polygon": [ + 6.2419, + 2.0391, + 6.9981, + 2.0391, + 6.9981, + 2.1386, + 6.2419, + 2.1386 + ], + "confidence": 1, + "span": { + "offset": 153, + "length": 9 + } + }, + { + "content": "CORPORATION", + "polygon": [ + 7.0448, + 2.0391, + 7.9825, + 2.0391, + 7.9825, + 2.1386, + 7.0448, + 2.1386 + ], + "confidence": 1, + "span": { + "offset": 163, + "length": 11 + } + }, + { + "content": "SERVICE", + "polygon": [ + 5.1667, + 2.2421, + 5.6923, + 2.2421, + 5.6923, + 2.3422, + 5.1667, + 2.3422 + ], + "confidence": 1, + "span": { + "offset": 175, + "length": 7 + } + }, + { + "content": "PERIOD:", + "polygon": [ + 5.748, + 2.2421, + 6.2721, + 2.2421, + 6.2721, + 2.3422, + 5.748, + 2.3422 + ], + "confidence": 1, + "span": { + "offset": 183, + "length": 7 + } + }, + { + "content": "10/14/2019", + "polygon": [ + 6.3357, + 2.2306, + 7.0749, + 2.2306, + 7.0749, + 2.3615, + 6.3357, + 2.3615 + ], + "confidence": 1, + "span": { + "offset": 191, + "length": 10 + } + }, + { + "content": "–", + "polygon": [ + 7.122, + 2.2922, + 7.1995, + 2.2922, + 7.1995, + 2.3037, + 7.122, + 2.3037 + ], + "confidence": 1, + "span": { + "offset": 202, + "length": 1 + } + }, + { + "content": "11/14/2019", + "polygon": [ + 7.2528, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 7.2528, + 2.3615 + ], + "confidence": 1, + "span": { + "offset": 204, + "length": 10 + } + }, + { + "content": "CUSTOMER", + "polygon": [ + 6.3253, + 2.4488, + 7.0608, + 2.4488, + 7.0608, + 2.5489, + 6.3253, + 2.5489 + ], + "confidence": 1, + "span": { + "offset": 215, + "length": 8 + } + }, + { + "content": "ID:", + "polygon": [ + 7.1153, + 2.45, + 7.2809, + 2.45, + 7.2809, + 2.5481, + 7.1153, + 2.5481 + ], + "confidence": 1, + "span": { + "offset": 224, + "length": 3 + } + }, + { + "content": "CID-12345", + "polygon": [ + 7.3369, + 2.4491, + 7.9951, + 2.4491, + 7.9951, + 2.5486, + 7.3369, + 2.5486 + ], + "confidence": 1, + "span": { + "offset": 228, + "length": 9 + } + }, + { + "content": "Microsoft", + "polygon": [ + 0.5943, + 2.6436, + 1.2303, + 2.6436, + 1.2303, + 2.759, + 0.5943, + 2.759 + ], + "confidence": 1, + "span": { + "offset": 238, + "length": 9 + } + }, + { + "content": "Corp", + "polygon": [ + 1.2808, + 2.651, + 1.586, + 2.651, + 1.586, + 2.7871, + 1.2808, + 2.7871 + ], + "confidence": 1, + "span": { + "offset": 248, + "length": 4 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 2.8541, + 0.8213, + 2.8541, + 0.8213, + 2.9623, + 0.5945, + 2.9623 + ], + "confidence": 1, + "span": { + "offset": 253, + "length": 3 + } + }, + { + "content": "Other", + "polygon": [ + 0.875, + 2.8476, + 1.262, + 2.8476, + 1.262, + 2.9623, + 0.875, + 2.9623 + ], + "confidence": 1, + "span": { + "offset": 257, + "length": 5 + } + }, + { + "content": "St,", + "polygon": [ + 1.3058, + 2.8541, + 1.4633, + 2.8541, + 1.4633, + 2.9845, + 1.3058, + 2.9845 + ], + "confidence": 1, + "span": { + "offset": 263, + "length": 3 + } + }, + { + "content": "Redmond", + "polygon": [ + 0.5943, + 3.0513, + 1.2222, + 3.0513, + 1.2222, + 3.1656, + 0.5943, + 3.1656 + ], + "confidence": 1, + "span": { + "offset": 267, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 1.2753, + 3.0585, + 1.5468, + 3.0585, + 1.5468, + 3.1878, + 1.2753, + 3.1878 + ], + "confidence": 1, + "span": { + "offset": 275, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 1.6033, + 3.0575, + 2.0083, + 3.0575, + 2.0083, + 3.1656, + 1.6033, + 3.1656 + ], + "confidence": 1, + "span": { + "offset": 279, + "length": 5 + } + }, + { + "content": "BILL", + "polygon": [ + 0.5909, + 3.5603, + 0.8438, + 3.5603, + 0.8438, + 3.6579, + 0.5909, + 3.6579 + ], + "confidence": 1, + "span": { + "offset": 285, + "length": 4 + } + }, + { + "content": "TO:", + "polygon": [ + 0.8846, + 3.559, + 1.1032, + 3.559, + 1.1032, + 3.6592, + 0.8846, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 290, + "length": 3 + } + }, + { + "content": "SHIP", + "polygon": [ + 3.3361, + 3.559, + 3.6278, + 3.559, + 3.6278, + 3.6592, + 3.3361, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 294, + "length": 4 + } + }, + { + "content": "TO:", + "polygon": [ + 3.6716, + 3.559, + 3.8903, + 3.559, + 3.8903, + 3.6592, + 3.6716, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 299, + "length": 3 + } + }, + { + "content": "SERVICE", + "polygon": [ + 6.2104, + 3.559, + 6.7361, + 3.559, + 6.7361, + 3.6592, + 6.2104, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 303, + "length": 7 + } + }, + { + "content": "ADDRESS:", + "polygon": [ + 6.7828, + 3.559, + 7.4232, + 3.559, + 7.4232, + 3.6592, + 6.7828, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 311, + "length": 8 + } + }, + { + "content": "Microsoft", + "polygon": [ + 0.5943, + 3.7641, + 1.2303, + 3.7641, + 1.2303, + 3.8794, + 0.5943, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 320, + "length": 9 + } + }, + { + "content": "Finance", + "polygon": [ + 1.287, + 3.7701, + 1.7878, + 3.7701, + 1.7878, + 3.8794, + 1.287, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 330, + "length": 7 + } + }, + { + "content": "Microsoft", + "polygon": [ + 3.3454, + 3.7641, + 3.9814, + 3.7641, + 3.9814, + 3.8794, + 3.3454, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 338, + "length": 9 + } + }, + { + "content": "Delivery", + "polygon": [ + 4.0381, + 3.7647, + 4.5762, + 3.7647, + 4.5762, + 3.9076, + 4.0381, + 3.9076 + ], + "confidence": 1, + "span": { + "offset": 348, + "length": 8 + } + }, + { + "content": "Microsoft", + "polygon": [ + 6.2197, + 3.7641, + 6.8557, + 3.7641, + 6.8557, + 3.8794, + 6.2197, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 357, + "length": 9 + } + }, + { + "content": "Services", + "polygon": [ + 6.9042, + 3.7701, + 7.4427, + 3.7701, + 7.4427, + 3.8794, + 6.9042, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 367, + "length": 8 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 3.9746, + 0.8213, + 3.9746, + 0.8213, + 4.0827, + 0.5945, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 376, + "length": 3 + } + }, + { + "content": "Bill", + "polygon": [ + 0.8842, + 3.9681, + 1.0657, + 3.9681, + 1.0657, + 4.0817, + 0.8842, + 4.0817 + ], + "confidence": 1, + "span": { + "offset": 380, + "length": 4 + } + }, + { + "content": "St,", + "polygon": [ + 1.1222, + 3.9746, + 1.2765, + 3.9746, + 1.2765, + 4.1049, + 1.1222, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 385, + "length": 3 + } + }, + { + "content": "123", + "polygon": [ + 3.3456, + 3.9746, + 3.5724, + 3.9746, + 3.5724, + 4.0827, + 3.3456, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 389, + "length": 3 + } + }, + { + "content": "Ship", + "polygon": [ + 3.6239, + 3.9681, + 3.9042, + 3.9681, + 3.9042, + 4.1109, + 3.6239, + 4.1109 + ], + "confidence": 1, + "span": { + "offset": 393, + "length": 4 + } + }, + { + "content": "St,", + "polygon": [ + 3.9536, + 3.9746, + 4.1111, + 3.9746, + 4.1111, + 4.1049, + 3.9536, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 398, + "length": 3 + } + }, + { + "content": "123", + "polygon": [ + 6.2199, + 3.9746, + 6.4467, + 3.9746, + 6.4467, + 4.0827, + 6.2199, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 402, + "length": 3 + } + }, + { + "content": "Service", + "polygon": [ + 6.4985, + 3.9734, + 6.9738, + 3.9734, + 6.9738, + 4.0827, + 6.4985, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 406, + "length": 7 + } + }, + { + "content": "St,", + "polygon": [ + 7.0246, + 3.9746, + 7.1821, + 3.9746, + 7.1821, + 4.1049, + 7.0246, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 414, + "length": 3 + } + }, + { + "content": "Redmond", + "polygon": [ + 0.5943, + 4.1717, + 1.2222, + 4.1717, + 1.2222, + 4.2861, + 0.5943, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 418, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 1.2753, + 4.1789, + 1.5468, + 4.1789, + 1.5468, + 4.3082, + 1.2753, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 426, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 1.6033, + 4.1779, + 2.0083, + 4.1779, + 2.0083, + 4.2861, + 1.6033, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 430, + "length": 5 + } + }, + { + "content": "Redmond", + "polygon": [ + 3.3454, + 4.1717, + 3.9732, + 4.1717, + 3.9732, + 4.2861, + 3.3454, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 436, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 4.0264, + 4.1789, + 4.2979, + 4.1789, + 4.2979, + 4.3082, + 4.0264, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 444, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 4.3544, + 4.1779, + 4.7594, + 4.1779, + 4.7594, + 4.2861, + 4.3544, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 448, + "length": 5 + } + }, + { + "content": "Redmond", + "polygon": [ + 6.2197, + 4.1717, + 6.8475, + 4.1717, + 6.8475, + 4.2861, + 6.2197, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 454, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 6.9007, + 4.1789, + 7.1722, + 4.1789, + 7.1722, + 4.3082, + 6.9007, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 462, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 7.2287, + 4.1779, + 7.6337, + 4.1779, + 7.6337, + 4.2861, + 7.2287, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 466, + "length": 5 + } + }, + { + "content": "SALESPERSON", + "polygon": [ + 0.7018, + 4.6528, + 1.6092, + 4.6528, + 1.6092, + 4.7529, + 0.7018, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 472, + "length": 11 + } + }, + { + "content": "P.O.", + "polygon": [ + 2.1216, + 4.6528, + 2.3788, + 4.6528, + 2.3788, + 4.7529, + 2.1216, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 484, + "length": 4 + } + }, + { + "content": "NUMBER", + "polygon": [ + 2.4376, + 4.654, + 3.0155, + 4.654, + 3.0155, + 4.7529, + 2.4376, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 489, + "length": 6 + } + }, + { + "content": "REQUISITIONER", + "polygon": [ + 3.4953, + 4.6528, + 4.5157, + 4.6528, + 4.5157, + 4.7687, + 3.4953, + 4.7687 + ], + "confidence": 1, + "span": { + "offset": 496, + "length": 13 + } + }, + { + "content": "SHIPPED", + "polygon": [ + 4.81, + 4.6528, + 5.362, + 4.6528, + 5.362, + 4.7529, + 4.81, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 510, + "length": 7 + } + }, + { + "content": "VIA", + "polygon": [ + 5.409, + 4.654, + 5.6317, + 4.654, + 5.6317, + 4.7517, + 5.409, + 4.7517 + ], + "confidence": 1, + "span": { + "offset": 518, + "length": 3 + } + }, + { + "content": "F.O.B.", + "polygon": [ + 5.8696, + 4.6528, + 6.2467, + 4.6528, + 6.2467, + 4.7529, + 5.8696, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 522, + "length": 6 + } + }, + { + "content": "POINT", + "polygon": [ + 6.3054, + 4.6528, + 6.706, + 4.6528, + 6.706, + 4.7529, + 6.3054, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 529, + "length": 5 + } + }, + { + "content": "TERMS", + "polygon": [ + 7.1806, + 4.6528, + 7.6304, + 4.6528, + 7.6304, + 4.7529, + 7.1806, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 535, + "length": 5 + } + }, + { + "content": "PO-3333", + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ], + "confidence": 1, + "span": { + "offset": 541, + "length": 7 + } + }, + { + "content": "DATE", + "polygon": [ + 0.7409, + 5.421, + 1.0744, + 5.421, + 1.0744, + 5.5186, + 0.7409, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 549, + "length": 4 + } + }, + { + "content": "ITEM", + "polygon": [ + 1.4213, + 5.421, + 1.7338, + 5.421, + 1.7338, + 5.5186, + 1.4213, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 554, + "length": 4 + } + }, + { + "content": "CODE", + "polygon": [ + 1.7893, + 5.4197, + 2.1407, + 5.4197, + 2.1407, + 5.5199, + 1.7893, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 559, + "length": 4 + } + }, + { + "content": "DESCRIPTION", + "polygon": [ + 2.8516, + 5.4197, + 3.7134, + 5.4197, + 3.7134, + 5.5199, + 2.8516, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 564, + "length": 11 + } + }, + { + "content": "QTY", + "polygon": [ + 4.4043, + 5.4197, + 4.6631, + 5.4197, + 4.6631, + 5.5357, + 4.4043, + 5.5357 + ], + "confidence": 1, + "span": { + "offset": 576, + "length": 3 + } + }, + { + "content": "UM", + "polygon": [ + 5.049, + 5.421, + 5.2654, + 5.421, + 5.2654, + 5.5199, + 5.049, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 580, + "length": 2 + } + }, + { + "content": "PRICE", + "polygon": [ + 5.8563, + 5.4199, + 6.2163, + 5.4199, + 6.2163, + 5.5197, + 5.8563, + 5.5197 + ], + "confidence": 1, + "span": { + "offset": 583, + "length": 5 + } + }, + { + "content": "TAX", + "polygon": [ + 6.7169, + 5.421, + 6.974, + 5.421, + 6.974, + 5.5186, + 6.7169, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 589, + "length": 3 + } + }, + { + "content": "AMOUNT", + "polygon": [ + 7.2847, + 5.4197, + 7.9039, + 5.4197, + 7.9039, + 5.5199, + 7.2847, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 593, + "length": 6 + } + }, + { + "content": "3/4/2021", + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ], + "confidence": 1, + "span": { + "offset": 600, + "length": 8 + } + }, + { + "content": "A123", + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 609, + "length": 4 + } + }, + { + "content": "Consulting", + "polygon": [ + 2.3388, + 5.6883, + 3.0438, + 5.6883, + 3.0438, + 5.8312, + 2.3388, + 5.8312 + ], + "confidence": 1, + "span": { + "offset": 614, + "length": 10 + } + }, + { + "content": "Services", + "polygon": [ + 3.0925, + 5.6937, + 3.6278, + 5.6937, + 3.6278, + 5.803, + 3.0925, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 625, + "length": 8 + } + }, + { + "content": "2", + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ], + "confidence": 1, + "span": { + "offset": 634, + "length": 1 + } + }, + { + "content": "hours", + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 636, + "length": 5 + } + }, + { + "content": "$30.00", + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ], + "confidence": 1, + "span": { + "offset": 642, + "length": 6 + } + }, + { + "content": "10%", + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ], + "confidence": 1, + "span": { + "offset": 649, + "length": 3 + } + }, + { + "content": "$60.00", + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ], + "confidence": 1, + "span": { + "offset": 653, + "length": 6 + } + }, + { + "content": "3/5/2021", + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ], + "confidence": 1, + "span": { + "offset": 660, + "length": 8 + } + }, + { + "content": "B456", + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 669, + "length": 4 + } + }, + { + "content": "Document", + "polygon": [ + 2.345, + 5.993, + 3.0318, + 5.993, + 3.0318, + 6.0997, + 2.345, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 674, + "length": 8 + } + }, + { + "content": "Fee", + "polygon": [ + 3.0887, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 3.0887, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 683, + "length": 3 + } + }, + { + "content": "3", + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 687, + "length": 1 + } + }, + { + "content": "$10.00", + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ], + "confidence": 1, + "span": { + "offset": 689, + "length": 6 + } + }, + { + "content": "5%", + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ], + "confidence": 1, + "span": { + "offset": 696, + "length": 2 + } + }, + { + "content": "$30.00", + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ], + "confidence": 1, + "span": { + "offset": 699, + "length": 6 + } + }, + { + "content": "3/6/2021", + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ], + "confidence": 1, + "span": { + "offset": 706, + "length": 8 + } + }, + { + "content": "C789", + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 715, + "length": 4 + } + }, + { + "content": "Printing", + "polygon": [ + 2.345, + 6.2906, + 2.8575, + 6.2906, + 2.8575, + 6.4281, + 2.345, + 6.4281 + ], + "confidence": 1, + "span": { + "offset": 720, + "length": 8 + } + }, + { + "content": "Fee", + "polygon": [ + 2.9143, + 6.2933, + 3.1351, + 6.2933, + 3.1351, + 6.3999, + 2.9143, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 729, + "length": 3 + } + }, + { + "content": "10", + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 733, + "length": 2 + } + }, + { + "content": "pages", + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ], + "confidence": 1, + "span": { + "offset": 736, + "length": 5 + } + }, + { + "content": "$1.00", + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ], + "confidence": 1, + "span": { + "offset": 742, + "length": 5 + } + }, + { + "content": "20%", + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ], + "confidence": 1, + "span": { + "offset": 748, + "length": 3 + } + }, + { + "content": "$10.00", + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ], + "confidence": 1, + "span": { + "offset": 752, + "length": 6 + } + }, + { + "content": "SUBTOTAL", + "polygon": [ + 6.0282, + 6.9118, + 6.7309, + 6.9118, + 6.7309, + 7.0199, + 6.0282, + 7.0199 + ], + "confidence": 1, + "span": { + "offset": 759, + "length": 8 + } + }, + { + "content": "$100.00", + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ], + "confidence": 1, + "span": { + "offset": 768, + "length": 7 + } + }, + { + "content": "SALES", + "polygon": [ + 6.0382, + 7.2089, + 6.4262, + 7.2089, + 6.4262, + 7.317, + 6.0382, + 7.317 + ], + "confidence": 1, + "span": { + "offset": 776, + "length": 5 + } + }, + { + "content": "TAX", + "polygon": [ + 6.4702, + 7.2099, + 6.728, + 7.2099, + 6.728, + 7.316, + 6.4702, + 7.316 + ], + "confidence": 1, + "span": { + "offset": 782, + "length": 3 + } + }, + { + "content": "$10.00", + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ], + "confidence": 1, + "span": { + "offset": 786, + "length": 6 + } + }, + { + "content": "TOTAL", + "polygon": [ + 6.2969, + 7.5089, + 6.7309, + 7.5089, + 6.7309, + 7.617, + 6.2969, + 7.617 + ], + "confidence": 1, + "span": { + "offset": 793, + "length": 5 + } + }, + { + "content": "$110.00", + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ], + "confidence": 1, + "span": { + "offset": 799, + "length": 7 + } + }, + { + "content": "PREVIOUS", + "polygon": [ + 4.8126, + 7.8055, + 5.4789, + 7.8055, + 5.4789, + 7.9137, + 4.8126, + 7.9137 + ], + "confidence": 1, + "span": { + "offset": 807, + "length": 8 + } + }, + { + "content": "UNPAID", + "polygon": [ + 5.5362, + 7.8065, + 6.057, + 7.8065, + 6.057, + 7.9137, + 5.5362, + 7.9137 + ], + "confidence": 1, + "span": { + "offset": 816, + "length": 6 + } + }, + { + "content": "BALANCE", + "polygon": [ + 6.1164, + 7.8057, + 6.7249, + 7.8057, + 6.7249, + 7.9135, + 6.1164, + 7.9135 + ], + "confidence": 1, + "span": { + "offset": 823, + "length": 7 + } + }, + { + "content": "$500.00", + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ], + "confidence": 1, + "span": { + "offset": 831, + "length": 7 + } + }, + { + "content": "AMOUNT", + "polygon": [ + 5.7652, + 8.1022, + 6.4055, + 8.1022, + 6.4055, + 8.2104, + 5.7652, + 8.2104 + ], + "confidence": 1, + "span": { + "offset": 839, + "length": 6 + } + }, + { + "content": "DUE", + "polygon": [ + 6.4562, + 8.1032, + 6.725, + 8.1032, + 6.725, + 8.2104, + 6.4562, + 8.2104 + ], + "confidence": 1, + "span": { + "offset": 846, + "length": 3 + } + }, + { + "content": "$610.00", + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ], + "confidence": 1, + "span": { + "offset": 850, + "length": 7 + } + }, + { + "content": "THANK", + "polygon": [ + 3.129, + 8.5453, + 3.5887, + 8.5453, + 3.5887, + 8.6429, + 3.129, + 8.6429 + ], + "confidence": 1, + "span": { + "offset": 858, + "length": 5 + } + }, + { + "content": "YOU", + "polygon": [ + 3.6316, + 8.544, + 3.9064, + 8.544, + 3.9064, + 8.6442, + 3.6316, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 864, + "length": 3 + } + }, + { + "content": "FOR", + "polygon": [ + 3.9671, + 8.544, + 4.2187, + 8.544, + 4.2187, + 8.6442, + 3.9671, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 868, + "length": 3 + } + }, + { + "content": "YOUR", + "polygon": [ + 4.2638, + 8.544, + 4.6347, + 8.544, + 4.6347, + 8.6442, + 4.2638, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 872, + "length": 4 + } + }, + { + "content": "BUSINESS!", + "polygon": [ + 4.6859, + 8.539, + 5.356, + 8.539, + 5.356, + 8.6442, + 4.6859, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 877, + "length": 9 + } + }, + { + "content": "REMIT", + "polygon": [ + 0.5909, + 9.1619, + 1.0014, + 9.1619, + 1.0014, + 9.2596, + 0.5909, + 9.2596 + ], + "confidence": 1, + "span": { + "offset": 887, + "length": 5 + } + }, + { + "content": "TO:", + "polygon": [ + 1.0446, + 9.1607, + 1.2603, + 9.1607, + 1.2603, + 9.2608, + 1.0446, + 9.2608 + ], + "confidence": 1, + "span": { + "offset": 893, + "length": 3 + } + }, + { + "content": "Contoso", + "polygon": [ + 0.5882, + 9.3697, + 1.1337, + 9.3697, + 1.1337, + 9.4777, + 0.5882, + 9.4777 + ], + "confidence": 1, + "span": { + "offset": 897, + "length": 7 + } + }, + { + "content": "Billing", + "polygon": [ + 1.1905, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 1.1905, + 9.5059 + ], + "confidence": 1, + "span": { + "offset": 905, + "length": 7 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 9.5728, + 0.8213, + 9.5728, + 0.8213, + 9.681, + 0.5945, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 913, + "length": 3 + } + }, + { + "content": "Remit", + "polygon": [ + 0.881, + 9.5717, + 1.264, + 9.5717, + 1.264, + 9.681, + 0.881, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 917, + "length": 5 + } + }, + { + "content": "St", + "polygon": [ + 1.3125, + 9.5728, + 1.4337, + 9.5728, + 1.4337, + 9.681, + 1.3125, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 923, + "length": 2 + } + }, + { + "content": "New", + "polygon": [ + 0.5943, + 9.7808, + 0.8848, + 9.7808, + 0.8848, + 9.8877, + 0.5943, + 9.8877 + ], + "confidence": 1, + "span": { + "offset": 926, + "length": 3 + } + }, + { + "content": "York,", + "polygon": [ + 0.9293, + 9.773, + 1.2568, + 9.773, + 1.2568, + 9.9098, + 0.9293, + 9.9098 + ], + "confidence": 1, + "span": { + "offset": 930, + "length": 5 + } + }, + { + "content": "NY,", + "polygon": [ + 1.3205, + 9.7805, + 1.5233, + 9.7805, + 1.5233, + 9.9098, + 1.3205, + 9.9098 + ], + "confidence": 1, + "span": { + "offset": 936, + "length": 3 + } + }, + { + "content": "10001", + "polygon": [ + 1.5903, + 9.7795, + 1.9882, + 9.7795, + 1.9882, + 9.8877, + 1.5903, + 9.8877 + ], + "confidence": 1, + "span": { + "offset": 940, + "length": 5 + } + } + ], + "selectionMarks": [ + { + "state": "unselected", + "polygon": [ + 4.3231, + 5.6279, + 4.7562, + 5.6279, + 4.7562, + 5.8654, + 4.3231, + 5.8654 + ], + "confidence": 0.212, + "span": { + "offset": 946, + "length": 12 + } + } + ], + "lines": [ + { + "content": "CONTOSO LTD.", + "polygon": [ + 0.5911, + 0.6857, + 2.3181, + 0.6857, + 2.3181, + 0.8664, + 0.5911, + 0.8664 + ], + "spans": [ + { + "offset": 0, + "length": 12 + } + ] + }, + { + "content": "INVOICE", + "polygon": [ + 7.0751, + 0.589, + 7.9886, + 0.589, + 7.9886, + 0.7697, + 7.0751, + 0.7697 + ], + "spans": [ + { + "offset": 13, + "length": 7 + } + ] + }, + { + "content": "Contoso Headquarters", + "polygon": [ + 0.5882, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 0.5882, + 1.5664 + ], + "spans": [ + { + "offset": 21, + "length": 20 + } + ] + }, + { + "content": "INVOICE: INV-100", + "polygon": [ + 6.8599, + 1.4217, + 7.9988, + 1.4217, + 7.9988, + 1.5218, + 6.8599, + 1.5218 + ], + "spans": [ + { + "offset": 42, + "length": 16 + } + ] + }, + { + "content": "123 456th St", + "polygon": [ + 0.5945, + 1.6092, + 1.3812, + 1.6092, + 1.3812, + 1.742, + 0.5945, + 1.742 + ], + "spans": [ + { + "offset": 59, + "length": 12 + } + ] + }, + { + "content": "INVOICE DATE: 11/15/2019", + "polygon": [ + 6.2263, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 6.2263, + 1.7449 + ], + "spans": [ + { + "offset": 72, + "length": 24 + } + ] + }, + { + "content": "New York, NY, 10001", + "polygon": [ + 0.5943, + 1.8307, + 1.9894, + 1.8307, + 1.9894, + 1.9675, + 0.5943, + 1.9675 + ], + "spans": [ + { + "offset": 97, + "length": 19 + } + ] + }, + { + "content": "DUE DATE: 12/15/2019", + "polygon": [ + 6.4966, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 6.4966, + 1.9515 + ], + "spans": [ + { + "offset": 117, + "length": 20 + } + ] + }, + { + "content": "CUSTOMER NAME: MICROSOFT CORPORATION", + "polygon": [ + 4.9513, + 2.0388, + 7.9825, + 2.0388, + 7.9825, + 2.1389, + 4.9513, + 2.1389 + ], + "spans": [ + { + "offset": 138, + "length": 36 + } + ] + }, + { + "content": "SERVICE PERIOD: 10/14/2019 – 11/14/2019", + "polygon": [ + 5.1667, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 5.1667, + 2.3615 + ], + "spans": [ + { + "offset": 175, + "length": 39 + } + ] + }, + { + "content": "CUSTOMER ID: CID-12345", + "polygon": [ + 6.3253, + 2.4488, + 7.9951, + 2.4488, + 7.9951, + 2.5489, + 6.3253, + 2.5489 + ], + "spans": [ + { + "offset": 215, + "length": 22 + } + ] + }, + { + "content": "Microsoft Corp", + "polygon": [ + 0.5943, + 2.6436, + 1.586, + 2.6436, + 1.586, + 2.7871, + 0.5943, + 2.7871 + ], + "spans": [ + { + "offset": 238, + "length": 14 + } + ] + }, + { + "content": "123 Other St,", + "polygon": [ + 0.5945, + 2.8476, + 1.4633, + 2.8476, + 1.4633, + 2.9845, + 0.5945, + 2.9845 + ], + "spans": [ + { + "offset": 253, + "length": 13 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 0.5943, + 3.0513, + 2.0083, + 3.0513, + 2.0083, + 3.1878, + 0.5943, + 3.1878 + ], + "spans": [ + { + "offset": 267, + "length": 17 + } + ] + }, + { + "content": "BILL TO:", + "polygon": [ + 0.5909, + 3.559, + 1.1032, + 3.559, + 1.1032, + 3.6592, + 0.5909, + 3.6592 + ], + "spans": [ + { + "offset": 285, + "length": 8 + } + ] + }, + { + "content": "SHIP TO:", + "polygon": [ + 3.3361, + 3.559, + 3.8903, + 3.559, + 3.8903, + 3.6592, + 3.3361, + 3.6592 + ], + "spans": [ + { + "offset": 294, + "length": 8 + } + ] + }, + { + "content": "SERVICE ADDRESS:", + "polygon": [ + 6.2104, + 3.559, + 7.4232, + 3.559, + 7.4232, + 3.6592, + 6.2104, + 3.6592 + ], + "spans": [ + { + "offset": 303, + "length": 16 + } + ] + }, + { + "content": "Microsoft Finance", + "polygon": [ + 0.5943, + 3.7641, + 1.7878, + 3.7641, + 1.7878, + 3.8794, + 0.5943, + 3.8794 + ], + "spans": [ + { + "offset": 320, + "length": 17 + } + ] + }, + { + "content": "Microsoft Delivery", + "polygon": [ + 3.3454, + 3.7641, + 4.5762, + 3.7641, + 4.5762, + 3.9076, + 3.3454, + 3.9076 + ], + "spans": [ + { + "offset": 338, + "length": 18 + } + ] + }, + { + "content": "Microsoft Services", + "polygon": [ + 6.2197, + 3.7641, + 7.4427, + 3.7641, + 7.4427, + 3.8794, + 6.2197, + 3.8794 + ], + "spans": [ + { + "offset": 357, + "length": 18 + } + ] + }, + { + "content": "123 Bill St,", + "polygon": [ + 0.5945, + 3.9681, + 1.2765, + 3.9681, + 1.2765, + 4.1049, + 0.5945, + 4.1049 + ], + "spans": [ + { + "offset": 376, + "length": 12 + } + ] + }, + { + "content": "123 Ship St,", + "polygon": [ + 3.3456, + 3.9681, + 4.1111, + 3.9681, + 4.1111, + 4.1109, + 3.3456, + 4.1109 + ], + "spans": [ + { + "offset": 389, + "length": 12 + } + ] + }, + { + "content": "123 Service St,", + "polygon": [ + 6.2199, + 3.9734, + 7.1821, + 3.9734, + 7.1821, + 4.1049, + 6.2199, + 4.1049 + ], + "spans": [ + { + "offset": 402, + "length": 15 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 0.5943, + 4.1717, + 2.0083, + 4.1717, + 2.0083, + 4.3082, + 0.5943, + 4.3082 + ], + "spans": [ + { + "offset": 418, + "length": 17 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 3.3454, + 4.1717, + 4.7594, + 4.1717, + 4.7594, + 4.3082, + 3.3454, + 4.3082 + ], + "spans": [ + { + "offset": 436, + "length": 17 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 6.2197, + 4.1717, + 7.6337, + 4.1717, + 7.6337, + 4.3082, + 6.2197, + 4.3082 + ], + "spans": [ + { + "offset": 454, + "length": 17 + } + ] + }, + { + "content": "SALESPERSON", + "polygon": [ + 0.7018, + 4.6528, + 1.6092, + 4.6528, + 1.6092, + 4.7529, + 0.7018, + 4.7529 + ], + "spans": [ + { + "offset": 472, + "length": 11 + } + ] + }, + { + "content": "P.O. NUMBER", + "polygon": [ + 2.1216, + 4.6528, + 3.0155, + 4.6528, + 3.0155, + 4.7529, + 2.1216, + 4.7529 + ], + "spans": [ + { + "offset": 484, + "length": 11 + } + ] + }, + { + "content": "REQUISITIONER", + "polygon": [ + 3.4953, + 4.6528, + 4.5157, + 4.6528, + 4.5157, + 4.7687, + 3.4953, + 4.7687 + ], + "spans": [ + { + "offset": 496, + "length": 13 + } + ] + }, + { + "content": "SHIPPED VIA", + "polygon": [ + 4.81, + 4.6528, + 5.6317, + 4.6528, + 5.6317, + 4.7529, + 4.81, + 4.7529 + ], + "spans": [ + { + "offset": 510, + "length": 11 + } + ] + }, + { + "content": "F.O.B. POINT", + "polygon": [ + 5.8696, + 4.6528, + 6.706, + 4.6528, + 6.706, + 4.7529, + 5.8696, + 4.7529 + ], + "spans": [ + { + "offset": 522, + "length": 12 + } + ] + }, + { + "content": "TERMS", + "polygon": [ + 7.1806, + 4.6528, + 7.6304, + 4.6528, + 7.6304, + 4.7529, + 7.1806, + 4.7529 + ], + "spans": [ + { + "offset": 535, + "length": 5 + } + ] + }, + { + "content": "PO-3333", + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ], + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + { + "content": "DATE", + "polygon": [ + 0.7409, + 5.421, + 1.0744, + 5.421, + 1.0744, + 5.5186, + 0.7409, + 5.5186 + ], + "spans": [ + { + "offset": 549, + "length": 4 + } + ] + }, + { + "content": "ITEM CODE", + "polygon": [ + 1.4213, + 5.4197, + 2.1407, + 5.4197, + 2.1407, + 5.5199, + 1.4213, + 5.5199 + ], + "spans": [ + { + "offset": 554, + "length": 9 + } + ] + }, + { + "content": "DESCRIPTION", + "polygon": [ + 2.8516, + 5.4197, + 3.7134, + 5.4197, + 3.7134, + 5.5199, + 2.8516, + 5.5199 + ], + "spans": [ + { + "offset": 564, + "length": 11 + } + ] + }, + { + "content": "QTY", + "polygon": [ + 4.4043, + 5.4197, + 4.6631, + 5.4197, + 4.6631, + 5.5357, + 4.4043, + 5.5357 + ], + "spans": [ + { + "offset": 576, + "length": 3 + } + ] + }, + { + "content": "UM", + "polygon": [ + 5.049, + 5.421, + 5.2654, + 5.421, + 5.2654, + 5.5199, + 5.049, + 5.5199 + ], + "spans": [ + { + "offset": 580, + "length": 2 + } + ] + }, + { + "content": "PRICE", + "polygon": [ + 5.8563, + 5.4199, + 6.2163, + 5.4199, + 6.2163, + 5.5197, + 5.8563, + 5.5197 + ], + "spans": [ + { + "offset": 583, + "length": 5 + } + ] + }, + { + "content": "TAX", + "polygon": [ + 6.7169, + 5.421, + 6.974, + 5.421, + 6.974, + 5.5186, + 6.7169, + 5.5186 + ], + "spans": [ + { + "offset": 589, + "length": 3 + } + ] + }, + { + "content": "AMOUNT", + "polygon": [ + 7.2847, + 5.4197, + 7.9039, + 5.4197, + 7.9039, + 5.5199, + 7.2847, + 5.5199 + ], + "spans": [ + { + "offset": 593, + "length": 6 + } + ] + }, + { + "content": "3/4/2021", + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ], + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + { + "content": "A123", + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ], + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + { + "content": "Consulting Services", + "polygon": [ + 2.3388, + 5.6883, + 3.6278, + 5.6883, + 3.6278, + 5.8312, + 2.3388, + 5.8312 + ], + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + { + "content": "2", + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ], + "spans": [ + { + "offset": 634, + "length": 1 + } + ] + }, + { + "content": "hours", + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ], + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + { + "content": "$30.00", + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ], + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + }, + { + "content": "10%", + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ], + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + { + "content": "$60.00", + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ], + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + { + "content": "3/5/2021", + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ], + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + { + "content": "B456", + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ], + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + { + "content": "Document Fee", + "polygon": [ + 2.345, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 2.345, + 6.0997 + ], + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + { + "content": "3", + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ], + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ], + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + }, + { + "content": "5%", + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ], + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + { + "content": "$30.00", + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ], + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + { + "content": "3/6/2021", + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ], + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + { + "content": "C789", + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ], + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + { + "content": "Printing Fee", + "polygon": [ + 2.345, + 6.2906, + 3.1351, + 6.2906, + 3.1351, + 6.4281, + 2.345, + 6.4281 + ], + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + { + "content": "10", + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ], + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + { + "content": "pages", + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ], + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + { + "content": "$1.00", + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ], + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + }, + { + "content": "20%", + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ], + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ], + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + }, + { + "content": "SUBTOTAL", + "polygon": [ + 6.0282, + 6.9118, + 6.7309, + 6.9118, + 6.7309, + 7.0199, + 6.0282, + 7.0199 + ], + "spans": [ + { + "offset": 759, + "length": 8 + } + ] + }, + { + "content": "$100.00", + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ], + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + { + "content": "SALES TAX", + "polygon": [ + 6.0382, + 7.2089, + 6.728, + 7.2089, + 6.728, + 7.317, + 6.0382, + 7.317 + ], + "spans": [ + { + "offset": 776, + "length": 9 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ], + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + { + "content": "TOTAL", + "polygon": [ + 6.2969, + 7.5089, + 6.7309, + 7.5089, + 6.7309, + 7.617, + 6.2969, + 7.617 + ], + "spans": [ + { + "offset": 793, + "length": 5 + } + ] + }, + { + "content": "$110.00", + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ], + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + { + "content": "PREVIOUS UNPAID BALANCE", + "polygon": [ + 4.8126, + 7.8055, + 6.7249, + 7.8055, + 6.7249, + 7.9137, + 4.8126, + 7.9137 + ], + "spans": [ + { + "offset": 807, + "length": 23 + } + ] + }, + { + "content": "$500.00", + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ], + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + { + "content": "AMOUNT DUE", + "polygon": [ + 5.7652, + 8.1022, + 6.725, + 8.1022, + 6.725, + 8.2104, + 5.7652, + 8.2104 + ], + "spans": [ + { + "offset": 839, + "length": 10 + } + ] + }, + { + "content": "$610.00", + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ], + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + }, + { + "content": "THANK YOU FOR YOUR BUSINESS!", + "polygon": [ + 3.129, + 8.539, + 5.356, + 8.539, + 5.356, + 8.6442, + 3.129, + 8.6442 + ], + "spans": [ + { + "offset": 858, + "length": 28 + } + ] + }, + { + "content": "REMIT TO:", + "polygon": [ + 0.5909, + 9.1607, + 1.2603, + 9.1607, + 1.2603, + 9.2608, + 0.5909, + 9.2608 + ], + "spans": [ + { + "offset": 887, + "length": 9 + } + ] + }, + { + "content": "Contoso Billing", + "polygon": [ + 0.5882, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 0.5882, + 9.5059 + ], + "spans": [ + { + "offset": 897, + "length": 15 + } + ] + }, + { + "content": "123 Remit St", + "polygon": [ + 0.5945, + 9.5717, + 1.4337, + 9.5717, + 1.4337, + 9.681, + 0.5945, + 9.681 + ], + "spans": [ + { + "offset": 913, + "length": 12 + } + ] + }, + { + "content": "New York, NY, 10001", + "polygon": [ + 0.5943, + 9.773, + 1.9882, + 9.773, + 1.9882, + 9.9098, + 0.5943, + 9.9098 + ], + "spans": [ + { + "offset": 926, + "length": 19 + } + ] + } + ], + "spans": [ + { + "offset": 0, + "length": 958 + } + ] + } + ], + "tables": [ + { + "rowCount": 4, + "columnCount": 8, + "cells": [ + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "DATE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4932, + 5.329, + 1.3011, + 5.3213, + 1.3011, + 5.6056, + 0.5009, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 549, + "length": 4 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "ITEM CODE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.3213, + 2.2476, + 5.3213, + 2.2399, + 5.6056, + 1.3011, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 554, + "length": 9 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "DESCRIPTION", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2476, + 5.3213, + 4.3174, + 5.329, + 4.3097, + 5.6056, + 2.2399, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 564, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "QTY", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3174, + 5.329, + 4.7483, + 5.329, + 4.7483, + 5.6056, + 4.3097, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 576, + "length": 3 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "UM", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.329, + 5.5639, + 5.329, + 5.5639, + 5.6056, + 4.7483, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 580, + "length": 2 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "PRICE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.329, + 6.495, + 5.329, + 6.495, + 5.6056, + 5.5639, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 583, + "length": 5 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "TAX", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.329, + 7.1875, + 5.329, + 7.1952, + 5.6056, + 6.495, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 589, + "length": 3 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "AMOUNT", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1875, + 5.329, + 7.9954, + 5.329, + 7.9954, + 5.598, + 7.1952, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 593, + "length": 6 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/4/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5009, + 5.6056, + 1.3011, + 5.6056, + 1.3011, + 5.8976, + 0.5009, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "A123", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.6056, + 2.2399, + 5.6056, + 2.2322, + 5.8976, + 1.3011, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Consulting Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2399, + 5.6056, + 4.3097, + 5.6056, + 4.3097, + 5.8976, + 2.2322, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "2 :unselected:", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 5.6056, + 4.7483, + 5.6056, + 4.7483, + 5.8976, + 4.3097, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 634, + "length": 1 + }, + { + "offset": 946, + "length": 12 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "hours", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.6056, + 5.5639, + 5.6056, + 5.5639, + 5.8976, + 4.7483, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.6056, + 6.495, + 5.6056, + 6.495, + 5.8976, + 5.5639, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "10%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.6056, + 7.1952, + 5.6056, + 7.1952, + 5.8976, + 6.495, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 5.6056, + 7.9954, + 5.598, + 7.9954, + 5.9053, + 7.1952, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/5/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5009, + 5.8976, + 1.3011, + 5.8976, + 1.3011, + 6.1973, + 0.5086, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "B456", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.8976, + 2.2322, + 5.8976, + 2.2245, + 6.1973, + 1.3011, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Document Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2322, + 5.8976, + 4.3097, + 5.8976, + 4.3097, + 6.1973, + 2.2245, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "3", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 5.8976, + 4.7483, + 5.8976, + 4.7483, + 6.1973, + 4.3097, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.8976, + 5.5639, + 5.8976, + 5.5639, + 6.1973, + 4.7483, + 6.1973 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 2, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.8976, + 6.495, + 5.8976, + 6.495, + 6.1973, + 5.5639, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "5%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.8976, + 7.1952, + 5.8976, + 7.1952, + 6.1973, + 6.495, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 5.8976, + 7.9954, + 5.9053, + 7.9954, + 6.1896, + 7.1952, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/6/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5086, + 6.1973, + 1.3011, + 6.1973, + 1.3011, + 6.4969, + 0.5086, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "C789", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 6.1973, + 2.2245, + 6.1973, + 2.2245, + 6.4969, + 1.3011, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Printing Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2245, + 6.1973, + 4.3097, + 6.1973, + 4.3097, + 6.4969, + 2.2245, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "10", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 6.1973, + 4.7483, + 6.1973, + 4.7483, + 6.4969, + 4.3097, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "pages", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 6.1973, + 5.5639, + 6.1973, + 5.5639, + 6.4969, + 4.7483, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$1.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 6.1973, + 6.495, + 6.1973, + 6.495, + 6.4969, + 5.5639, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "20%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 6.1973, + 7.1952, + 6.1973, + 7.1952, + 6.4969, + 6.495, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 6.1973, + 7.9954, + 6.1896, + 7.9954, + 6.5046, + 7.1952, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4901, + 5.3293, + 7.9946, + 5.3289, + 7.9954, + 6.5019, + 0.4906, + 6.502 + ] + } + ], + "spans": [ + { + "offset": 549, + "length": 209 + }, + { + "offset": 946, + "length": 12 + } + ] + }, + { + "rowCount": 2, + "columnCount": 6, + "cells": [ + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SALESPERSON", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4977, + 4.565, + 1.8042, + 4.565, + 1.8119, + 4.8388, + 0.5054, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 472, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "P.O. NUMBER", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.8042, + 4.565, + 3.3105, + 4.565, + 3.3105, + 4.8388, + 1.8119, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 484, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "REQUISITIONER", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3105, + 4.565, + 4.6939, + 4.565, + 4.6862, + 4.8388, + 3.3105, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 496, + "length": 13 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "SHIPPED VIA", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.6939, + 4.565, + 5.7468, + 4.565, + 5.7468, + 4.8388, + 4.6862, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 510, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "F.O.B. POINT", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.7468, + 4.565, + 6.815, + 4.565, + 6.815, + 4.8388, + 5.7468, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 522, + "length": 12 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "TERMS", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.815, + 4.565, + 7.9985, + 4.565, + 7.9985, + 4.8388, + 6.815, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 535, + "length": 5 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5054, + 4.8388, + 1.8119, + 4.8388, + 1.8119, + 5.1058, + 0.5131, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "PO-3333", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.8119, + 4.8388, + 3.3105, + 4.8388, + 3.3105, + 5.1058, + 1.8119, + 5.1058 + ] + } + ], + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3105, + 4.8388, + 4.6862, + 4.8388, + 4.6862, + 5.1058, + 3.3105, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.6862, + 4.8388, + 5.7468, + 4.8388, + 5.7468, + 5.1058, + 4.6862, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.7468, + 4.8388, + 6.815, + 4.8388, + 6.815, + 5.1058, + 5.7468, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.815, + 4.8388, + 7.9985, + 4.8388, + 7.9985, + 5.1125, + 6.815, + 5.1058 + ] + } + ], + "spans": [] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4971, + 4.565, + 7.9889, + 4.5653, + 7.989, + 5.1146, + 0.4963, + 5.1141 + ] + } + ], + "spans": [ + { + "offset": 472, + "length": 76 + } + ] + }, + { + "rowCount": 5, + "columnCount": 2, + "cells": [ + { + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SUBTOTAL", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7474, + 6.7934, + 6.8058, + 6.7934, + 6.8105, + 7.0886, + 4.7474, + 7.0886 + ] + } + ], + "spans": [ + { + "offset": 759, + "length": 8 + } + ] + }, + { + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$100.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8058, + 6.7934, + 7.9981, + 6.7934, + 7.9981, + 7.0934, + 6.8105, + 7.0886 + ] + } + ], + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SALES TAX", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7474, + 7.0886, + 6.8105, + 7.0886, + 6.8105, + 7.3743, + 4.7427, + 7.3743 + ] + } + ], + "spans": [ + { + "offset": 776, + "length": 9 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.0886, + 7.9981, + 7.0934, + 7.9981, + 7.3934, + 6.8105, + 7.3743 + ] + } + ], + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "TOTAL", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.3743, + 6.8105, + 7.3743, + 6.8105, + 7.6839, + 4.7427, + 7.6839 + ] + } + ], + "spans": [ + { + "offset": 793, + "length": 5 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$110.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.3743, + 7.9981, + 7.3934, + 7.9981, + 7.6886, + 6.8105, + 7.6839 + ] + } + ], + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "PREVIOUS UNPAID BALANCE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.6839, + 6.8105, + 7.6839, + 6.8105, + 7.9743, + 4.7427, + 7.9743 + ] + } + ], + "spans": [ + { + "offset": 807, + "length": 23 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$500.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.6839, + 7.9981, + 7.6886, + 7.9981, + 7.9839, + 6.8105, + 7.9743 + ] + } + ], + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + { + "rowIndex": 4, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "AMOUNT DUE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.9743, + 6.8105, + 7.9743, + 6.8105, + 8.2839, + 4.7381, + 8.2839 + ] + } + ], + "spans": [ + { + "offset": 839, + "length": 10 + } + ] + }, + { + "rowIndex": 4, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$610.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.9743, + 7.9981, + 7.9839, + 7.9981, + 8.2839, + 6.8105, + 8.2839 + ] + } + ], + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7456, + 6.7793, + 8.0143, + 6.7788, + 8.0137, + 8.2981, + 4.7446, + 8.2981 + ] + } + ], + "spans": [ + { + "offset": 759, + "length": 98 + } + ] + } + ], + "documents": [ + { + "docType": "prebuilt:invoice", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "fields": { + "AmountDue": { + "type": "number", + "valueNumber": 610, + "content": "$610.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + }, + "BillingAddress": { + "type": "string", + "valueString": "123 Bill St, Redmond WA, 98052", + "content": "123 Bill St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 3.9681, + 2.0083, + 3.9681, + 2.0083, + 4.3082, + 0.5943, + 4.3082 + ] + } + ], + "confidence": 0.947, + "spans": [ + { + "offset": 376, + "length": 12 + }, + { + "offset": 418, + "length": 17 + } + ] + }, + "BillingAddressRecipient": { + "type": "string", + "valueString": "Microsoft Finance", + "content": "Microsoft Finance", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 3.7641, + 1.7878, + 3.7641, + 1.7878, + 3.8794, + 0.5943, + 3.8794 + ] + } + ], + "confidence": 0.957, + "spans": [ + { + "offset": 320, + "length": 17 + } + ] + }, + "CustomerAddress": { + "type": "string", + "valueString": "123 Other St, Redmond WA, 98052", + "content": "123 Other St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 2.8476, + 2.0083, + 2.8476, + 2.0083, + 3.1878, + 0.5943, + 3.1878 + ] + } + ], + "confidence": 0.947, + "spans": [ + { + "offset": 253, + "length": 31 + } + ] + }, + "CustomerAddressRecipient": { + "type": "string", + "valueString": "Microsoft Corp", + "content": "Microsoft Corp", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 2.6436, + 1.586, + 2.6436, + 1.586, + 2.7871, + 0.5943, + 2.7871 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 238, + "length": 14 + } + ] + }, + "CustomerId": { + "type": "string", + "valueString": "CID-12345", + "content": "CID-12345", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3369, + 2.4491, + 7.9951, + 2.4491, + 7.9951, + 2.5486, + 7.3369, + 2.5486 + ] + } + ], + "confidence": 0.964, + "spans": [ + { + "offset": 228, + "length": 9 + } + ] + }, + "CustomerName": { + "type": "string", + "valueString": "MICROSOFT CORPORATION", + "content": "MICROSOFT CORPORATION", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2419, + 2.0391, + 7.9825, + 2.0391, + 7.9825, + 2.1386, + 6.2419, + 2.1386 + ] + } + ], + "confidence": 0.949, + "spans": [ + { + "offset": 153, + "length": 21 + } + ] + }, + "DueDate": { + "type": "date", + "valueDate": "2019-12-15", + "content": "12/15/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2494, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 7.2494, + 1.9515 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 127, + "length": 10 + } + ] + }, + "InvoiceDate": { + "type": "date", + "valueDate": "2019-11-15", + "content": "11/15/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2528, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 7.2528, + 1.7449 + ] + } + ], + "confidence": 0.972, + "spans": [ + { + "offset": 86, + "length": 10 + } + ] + }, + "InvoiceId": { + "type": "string", + "valueString": "INV-100", + "content": "INV-100", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4959, + 1.422, + 7.9988, + 1.422, + 7.9988, + 1.5215, + 7.4959, + 1.5215 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 51, + "length": 7 + } + ] + }, + "InvoiceTotal": { + "type": "number", + "valueNumber": 110, + "content": "$110.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + "Items": { + "type": "array", + "valueArray": [ + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 60, + "content": "$60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ] + } + ], + "confidence": 0.902, + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-04", + "content": "3/4/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ] + } + ], + "confidence": 0.938, + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Consulting Services", + "content": "Consulting Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.3388, + 5.6883, + 3.6278, + 5.6883, + 3.6278, + 5.8312, + 2.3388, + 5.8312 + ] + } + ], + "confidence": 0.9, + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "A123", + "content": "A123", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ] + } + ], + "confidence": 0.877, + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 2, + "content": "2", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 634, + "length": 1 + } + ] + }, + "Tax": { + "type": "number", + "content": "10%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ] + } + ], + "confidence": 0.78, + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + "Unit": { + "type": "string", + "valueString": "hours", + "content": "hours", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 30, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ] + } + ], + "confidence": 0.828, + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + } + }, + "content": "3/4/2021 A123 Consulting Services 2 hours $30.00 10% $60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8312, + 0.592, + 5.8312 + ] + } + ], + "confidence": 0.955, + "spans": [ + { + "offset": 600, + "length": 59 + } + ] + }, + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 30, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ] + } + ], + "confidence": 0.916, + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-05", + "content": "3/5/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ] + } + ], + "confidence": 0.902, + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Document Fee", + "content": "Document Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.345, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 2.345, + 6.0997 + ] + } + ], + "confidence": 0.901, + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "B456", + "content": "B456", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ] + } + ], + "confidence": 0.886, + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 3, + "content": "3", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ] + } + ], + "confidence": 0.898, + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + "Tax": { + "type": "number", + "content": "5%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ] + } + ], + "confidence": 0.772, + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ] + } + ], + "confidence": 0.831, + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + } + }, + "content": "3/5/2021 B456 Document Fee 3 $10.00 5% $30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.121, + 0.592, + 6.121 + ] + } + ], + "confidence": 0.941, + "spans": [ + { + "offset": 660, + "length": 45 + } + ] + }, + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ] + } + ], + "confidence": 0.959, + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-06", + "content": "3/6/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ] + } + ], + "confidence": 0.903, + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Printing Fee", + "content": "Printing Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.345, + 6.2906, + 3.1351, + 6.2906, + 3.1351, + 6.4281, + 2.345, + 6.4281 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "C789", + "content": "C789", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ] + } + ], + "confidence": 0.898, + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 10, + "content": "10", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ] + } + ], + "confidence": 0.903, + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + "Tax": { + "type": "number", + "content": "20%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ] + } + ], + "confidence": 0.791, + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + "Unit": { + "type": "string", + "valueString": "pages", + "content": "pages", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 1, + "content": "$1.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ] + } + ], + "confidence": 0.829, + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + } + }, + "content": "3/6/2021 C789 Printing Fee 10 pages $1.00 20% $10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4281, + 0.592, + 6.4281 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 706, + "length": 52 + } + ] + } + ] + }, + "Locale": { + "type": "string", + "valueString": "en-US", + "confidence": 1 + }, + "PreviousUnpaidBalance": { + "type": "number", + "valueNumber": 500, + "content": "$500.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ] + } + ], + "confidence": 0.962, + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + "PurchaseOrder": { + "type": "string", + "valueString": "PO-3333", + "content": "PO-3333", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ] + } + ], + "confidence": 0.967, + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + "RemittanceAddress": { + "type": "string", + "valueString": "123 Remit St New York, NY, 10001", + "content": "123 Remit St New York, NY, 10001", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 9.5717, + 1.9882, + 9.5717, + 1.9882, + 9.9098, + 0.5943, + 9.9098 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 913, + "length": 32 + } + ] + }, + "RemittanceAddressRecipient": { + "type": "string", + "valueString": "Contoso Billing", + "content": "Contoso Billing", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5882, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 0.5882, + 9.5059 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 897, + "length": 15 + } + ] + }, + "ServiceAddress": { + "type": "string", + "valueString": "123 Service St, Redmond WA, 98052", + "content": "123 Service St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2197, + 3.9734, + 7.6337, + 3.9734, + 7.6337, + 4.3082, + 6.2197, + 4.3082 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 402, + "length": 15 + }, + { + "offset": 454, + "length": 17 + } + ] + }, + "ServiceAddressRecipient": { + "type": "string", + "valueString": "Microsoft Services", + "content": "Microsoft Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2197, + 3.7641, + 7.4427, + 3.7641, + 7.4427, + 3.8794, + 6.2197, + 3.8794 + ] + } + ], + "confidence": 0.951, + "spans": [ + { + "offset": 357, + "length": 18 + } + ] + }, + "ServiceEndDate": { + "type": "date", + "valueDate": "2019-11-14", + "content": "11/14/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2528, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 7.2528, + 2.3615 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 204, + "length": 10 + } + ] + }, + "ServiceStartDate": { + "type": "date", + "valueDate": "2019-10-14", + "content": "10/14/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.3357, + 2.2306, + 7.0749, + 2.2306, + 7.0749, + 2.3615, + 6.3357, + 2.3615 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 191, + "length": 10 + } + ] + }, + "ShippingAddress": { + "type": "string", + "valueString": "123 Ship St, Redmond WA, 98052", + "content": "123 Ship St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3454, + 3.9681, + 4.7594, + 3.9681, + 4.7594, + 4.3082, + 3.3454, + 4.3082 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 389, + "length": 12 + }, + { + "offset": 436, + "length": 17 + } + ] + }, + "ShippingAddressRecipient": { + "type": "string", + "valueString": "Microsoft Delivery", + "content": "Microsoft Delivery", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3454, + 3.7641, + 4.5762, + 3.7641, + 4.5762, + 3.9076, + 3.3454, + 3.9076 + ] + } + ], + "confidence": 0.955, + "spans": [ + { + "offset": 338, + "length": 18 + } + ] + }, + "SubTotal": { + "type": "number", + "valueNumber": 100, + "content": "$100.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + "TotalTax": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + "VendorAddress": { + "type": "string", + "valueString": "123 456th St New York, NY, 10001", + "content": "123 456th St New York, NY, 10001", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 1.6092, + 1.9894, + 1.6092, + 1.9894, + 1.9675, + 0.5943, + 1.9675 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 59, + "length": 12 + }, + { + "offset": 97, + "length": 19 + } + ] + }, + "VendorAddressRecipient": { + "type": "string", + "valueString": "Contoso Headquarters", + "content": "Contoso Headquarters", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5882, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 0.5882, + 1.5664 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 21, + "length": 20 + } + ] + }, + "VendorName": { + "type": "string", + "valueString": "CONTOSO LTD.", + "content": "CONTOSO LTD.", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5911, + 0.6857, + 2.3181, + 0.6857, + 2.3181, + 0.8664, + 0.5911, + 0.8664 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 0, + "length": 12 + } + ] + } + }, + "confidence": 1, + "spans": [ + { + "offset": 0, + "length": 958 + } + ] + } + ] + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFPdf.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFPdf.json new file mode 100644 index 000000000000..100ba4d2e18b --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFPdf.json @@ -0,0 +1,15 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResultPdf", + "title": "Get Analyze Document Result PDF", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": "{pdfBinary}" + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFigure.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFigure.json new file mode 100644 index 000000000000..28783677e477 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetAnalyzeDocumentResultFigure.json @@ -0,0 +1,16 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResultFigure", + "title": "Get Analyze Document Result Figure", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034", + "figureId": "1.0" + }, + "responses": { + "200": { + "body": "{imageBinary}" + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetClassifyDocumentResult.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetClassifyDocumentResult.json new file mode 100644 index 000000000000..baa3f64fbe62 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetClassifyDocumentResult.json @@ -0,0 +1,104 @@ +{ + "operationId": "DocumentClassifiers_GetClassifyResult", + "title": "Get Classify Document Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "status": "succeeded", + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "analyzeResult": { + "apiVersion": "2024-11-30", + "modelId": "myClassifier", + "stringIndexType": "textElements", + "contentFormat": "text", + "content": "", + "pages": [ + { + "pageNumber": 1, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + }, + { + "pageNumber": 2, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + }, + { + "pageNumber": 3, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + } + ], + "documents": [ + { + "docType": "formA", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + }, + { + "pageNumber": 2, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "confidence": 0.97, + "spans": [] + }, + { + "docType": "formB", + "boundingRegions": [ + { + "pageNumber": 3, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "confidence": 0.97, + "spans": [] + } + ] + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifier.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifier.json new file mode 100644 index 000000000000..a2320032dd43 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifier.json @@ -0,0 +1,34 @@ +{ + "operationId": "DocumentClassifiers_GetClassifier", + "title": "Get Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier" + }, + "responses": { + "200": { + "body": { + "classifierId": "myClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifiers.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifiers.json new file mode 100644 index 000000000000..b08240d8002c --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentClassifiers.json @@ -0,0 +1,59 @@ +{ + "operationId": "DocumentClassifiers_ListClassifiers", + "title": "Get Document Classifiers", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "classifierId": "classifier1", + "description": "Classifier1 description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formBDocs/" + } + } + } + }, + { + "classifierId": "classifier2", + "description": "Classifier2 description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formB": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formBDocs/" + } + }, + "formC": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formCDocs/" + } + } + } + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Custom.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Custom.json new file mode 100644 index 000000000000..75e64f19785d --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Custom.json @@ -0,0 +1,44 @@ +{ + "operationId": "DocumentModels_GetModel", + "title": "Get Custom Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel" + }, + "responses": { + "200": { + "body": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-24T12:54:35Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "myForm": { + "fieldSchema": { + "Name": { + "type": "string" + }, + "Date": { + "type": "date" + }, + "Amount": { + "type": "number" + } + }, + "buildMode": "template", + "fieldConfidence": { + "Name": 0.9, + "Date": 0.95, + "Amount": 0.93 + } + } + }, + "tags": { + "createdBy": "myUserId" + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Prebuilt.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Prebuilt.json new file mode 100644 index 000000000000..92364f3579db --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModel_Prebuilt.json @@ -0,0 +1,136 @@ +{ + "operationId": "DocumentModels_GetModel", + "title": "Get Prebuilt Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice" + }, + "responses": { + "200": { + "body": { + "modelId": "prebuilt-invoice", + "description": "Prebuilt model to extract key information from English invoices, including customer, vendor, invoice ID, due date, total, and more.", + "createdDateTime": "2021-07-30T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "prebuilt:invoice": { + "fieldSchema": { + "CustomerName": { + "type": "string" + }, + "CustomerId": { + "type": "string" + }, + "PurchaseOrder": { + "type": "string" + }, + "InvoiceId": { + "type": "string" + }, + "InvoiceDate": { + "type": "date" + }, + "DueDate": { + "type": "date" + }, + "VendorName": { + "type": "string" + }, + "VendorAddress": { + "type": "string" + }, + "VendorAddressRecipient": { + "type": "string" + }, + "CustomerAddress": { + "type": "string" + }, + "CustomerAddressRecipient": { + "type": "string" + }, + "BillingAddress": { + "type": "string" + }, + "BillingAddressRecipient": { + "type": "string" + }, + "ShippingAddress": { + "type": "string" + }, + "ShippingAddressRecipient": { + "type": "string" + }, + "SubTotal": { + "type": "number" + }, + "TotalTax": { + "type": "number" + }, + "InvoiceTotal": { + "type": "number" + }, + "AmountDue": { + "type": "number" + }, + "PreviousUnpaidBalance": { + "type": "number" + }, + "RemittanceAddress": { + "type": "string" + }, + "RemittanceAddressRecipient": { + "type": "string" + }, + "ServiceAddress": { + "type": "string" + }, + "ServiceAddressRecipient": { + "type": "string" + }, + "ServiceStartDate": { + "type": "date" + }, + "ServiceEndDate": { + "type": "date" + }, + "Items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "Amount": { + "type": "number" + }, + "Date": { + "type": "date" + }, + "Description": { + "type": "string" + }, + "Quantity": { + "type": "number" + }, + "ProductCode": { + "type": "string" + }, + "Tax": { + "type": "number" + }, + "Unit": { + "type": "string" + }, + "UnitPrice": { + "type": "number" + } + } + } + } + } + } + }, + "tags": {} + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModels.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModels.json new file mode 100644 index 000000000000..670092c131a3 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetDocumentModels.json @@ -0,0 +1,30 @@ +{ + "operationId": "DocumentModels_ListModels", + "title": "Get Document Models", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "modelId": "prebuilt-layout", + "createdDateTime": "2021-07-30T00:00:00Z", + "description": "Prebuilt model to extract text, selection marks, tables, and other layout information.", + "apiVersion": "2024-11-30" + }, + { + "modelId": "myCustomModel", + "createdDateTime": "2021-09-24T12:54:35Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "description": "Custom model description", + "apiVersion": "2024-11-30" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation.json new file mode 100644 index 000000000000..377daaafa79d --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetOperation", + "title": "Get Operation", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierBuild.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierBuild.json new file mode 100644 index 000000000000..7c1daae937d8 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierBuild.json @@ -0,0 +1,43 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentClassifierBuildOperation", + "title": "Get Operation - Document Classifier Build", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentClassifierBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/myClassifier", + "result": { + "classifierId": "myClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierCopyTo.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierCopyTo.json new file mode 100644 index 000000000000..3f00ba21adab --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentClassifierCopyTo.json @@ -0,0 +1,43 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentClassifierCopyToOperation", + "title": "Get Operation - Document Classifier Copy To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentClassifierCopyTo", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/myCustomClassifier", + "result": { + "classifierId": "myCustomClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelBuild.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelBuild.json new file mode 100644 index 000000000000..4f586bb98c9e --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelBuild.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelBuildOperation", + "title": "Get Operation - Document Model Build", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCompose.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCompose.json new file mode 100644 index 000000000000..52e423f53a7e --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCompose.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelComposeOperation", + "title": "Get Operation - Document Model Compose", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelCompose", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCopyTo.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCopyTo.json new file mode 100644 index 000000000000..caabd08a9369 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperation_DocumentModelCopyTo.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelCopyToOperation", + "title": "Get Operation - Document Model Copy To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelCopyTo", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperations.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperations.json new file mode 100644 index 000000000000..3e68a8f4f659 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetOperations.json @@ -0,0 +1,27 @@ +{ + "operationId": "MiscellaneousOperations_ListOperations", + "title": "Get Operations", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "running", + "percentCompleted": 0, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:12:58Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "apiVersion": "2024-11-30" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/examples/2024-11-30/GetResourceDetails.json b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetResourceDetails.json new file mode 100644 index 000000000000..785459d72918 --- /dev/null +++ b/specification/ai/DocumentIntelligence/examples/2024-11-30/GetResourceDetails.json @@ -0,0 +1,18 @@ +{ + "operationId": "MiscellaneousOperations_GetResourceDetails", + "title": "Get Resource Details", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "customDocumentModels": { + "count": 2, + "limit": 13 + } + } + } + } +} diff --git a/specification/ai/DocumentIntelligence/main.tsp b/specification/ai/DocumentIntelligence/main.tsp index 002f3b490672..e845a080c775 100644 --- a/specification/ai/DocumentIntelligence/main.tsp +++ b/specification/ai/DocumentIntelligence/main.tsp @@ -36,6 +36,6 @@ namespace DocumentIntelligence; @doc("Service API versions.") enum Versions { @useDependency(Azure.Core.Versions.v1_0_Preview_2) - @doc("The 2024-07-31-preview version of the DocumentIntelligence service.") - v2024_07_31_preview: "2024-07-31-preview", + @doc("The 2024-11-30 GA version of the DocumentIntelligence service.") + v2024_11_30: "2024-11-30", } diff --git a/specification/ai/DocumentIntelligence/models.tsp b/specification/ai/DocumentIntelligence/models.tsp index f5863bdbeb5f..127bc6b5afed 100644 --- a/specification/ai/DocumentIntelligence/models.tsp +++ b/specification/ai/DocumentIntelligence/models.tsp @@ -34,7 +34,7 @@ union StringIndexType { } @doc("Format of the content in analyzed result.") -union ContentFormat { +union DocumentContentFormat { string, @doc("Plain text representation of the document content without any formatting.") @@ -52,25 +52,25 @@ union DocumentAnalysisFeature { string, @doc("Perform OCR at a higher resolution to handle documents with fine print.") - "ocrHighResolution", + ocrHighResolution: "ocrHighResolution", @doc("Enable the detection of the text content language.") - "languages", + languages: "languages", @doc("Enable the detection of barcodes in the document.") - "barcodes", + barcodes: "barcodes", @doc("Enable the detection of mathematical expressions in the document.") - "formulas", + formulas: "formulas", @doc("Enable the detection of general key value pairs (form fields) in the document.") - "keyValuePairs", + keyValuePairs: "keyValuePairs", @doc("Enable the recognition of various font styles.") - "styleFont", + styleFont: "styleFont", @doc("Enable the extraction of additional fields via the queryFields query parameter.") - "queryFields", + queryFields: "queryFields", } @doc("The unit used by the width, height, and polygon properties. For images, the unit is \"pixel\". For PDF, the unit is \"inch\".") @@ -190,14 +190,14 @@ union DocumentTableCellKind { } @doc("Font style.") -union FontStyle { +union DocumentFontStyle { string, @doc("Characters are represented normally.") "normal", @doc("Characters are visually slanted to the right.") "italic", } @doc("Font weight.") -union FontWeight { +union DocumentFontWeight { string, @doc("Characters are represented normally.") "normal", @doc("Characters are represented with thicker strokes.") "bold", @@ -269,10 +269,6 @@ union DocumentBuildMode { @doc("Support documents with diverse visual templates.") "neural", - - @added(Versions.v2024_07_31_preview) - @doc("Enable documents of all types using generative AI techniques.") - "generative", } @doc("Type of operation.") @@ -291,7 +287,6 @@ union OperationKind { """) documentModelCopyTo: "documentModelCopyTo", - @added(Versions.v2024_07_31_preview) @doc(""" Copy an existing document classifier to potentially a different resource, region, or subscription. @@ -318,7 +313,7 @@ union SplitMode { @lroStatus @doc("Operation status.") -union OperationStatus { +union DocumentIntelligenceOperationStatus { string, @doc("The operation has not started yet.") @@ -335,13 +330,13 @@ union OperationStatus { @lroSucceeded succeeded: "succeeded", - @doc("The operation has completed.") - @lroSucceeded - completed: "completed", - @doc("The operation has been canceled.") @lroCanceled canceled: "canceled", + + @doc("The operation has been skipped.") + @lroCanceled + skipped: "skipped", } @doc("Type of content source.") @@ -349,19 +344,18 @@ union ContentSourceKind { string, @doc("Content at a specific URL.") - "url", + url: "url", @doc("Content represented via Base64 encoding.") - "base64", + base64: "base64", @doc("Files in a path within an Azure Blob Storage container.") - "azureBlob", + azureBlob: "azureBlob", @doc("A file list specifying individual files in an Azure Blob Storage container.") - "azureBlobFileList", + azureBlobFileList: "azureBlobFileList", } -@added(Versions.v2024_07_31_preview) @doc("Additional output to generate during analysis.") union AnalyzeOutputOption { string, @@ -385,7 +379,6 @@ model AnalyzeDocumentRequest { base64Source?: bytes; } -@added(Versions.v2024_07_31_preview) @doc("Batch document analysis parameters.") model AnalyzeBatchDocumentsRequest { @doc(""" @@ -412,14 +405,13 @@ model AnalyzeBatchDocumentsRequest { @doc("Error response object.") @error -model ErrorResponse { +model DocumentIntelligenceErrorResponse { @doc("Error info.") - error: Error; + error: DocumentIntelligenceError; } @doc("The error object.") -@clientName("DocumentIntelligenceError", "csharp") -model Error { +model DocumentIntelligenceError { @doc("One of a server-defined set of error codes.") code: string; @@ -430,29 +422,27 @@ model Error { target?: string; @doc("An array of details about specific errors that led to this reported error.") - details?: Error[]; + details?: DocumentIntelligenceError[]; @doc("An object containing more specific information than the current object about the error.") - innererror?: InnerError; + innererror?: DocumentIntelligenceInnerError; } +#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "https://github.com/Azure/typespec-azure/issues/417" @doc("An object containing more specific information about the error.") -model InnerError { +model DocumentIntelligenceInnerError { @doc("One of a server-defined set of error codes.") code?: string; @doc("A human-readable representation of the error.") message?: string; - #suppress "@azure-tools/typespec-azure-core/property-name-conflict" "https://github.com/Azure/typespec-azure/issues/417" @doc("Inner error.") - @clientName("InnerErrorObject", "csharp") - innererror?: InnerError; + innererror?: DocumentIntelligenceInnerError; } @doc("The error object.") -@clientName("DocumentIntelligenceWarning", "csharp") -model Warning { +model DocumentIntelligenceWarning { @doc("One of a server-defined set of warning codes.") code: string; @@ -464,9 +454,9 @@ model Warning { } @doc("Status and result of the analyze operation.") -model AnalyzeResultOperation { +model AnalyzeOperation { @doc("Operation status. notStarted, running, succeeded, or failed") - status: OperationStatus; + status: DocumentIntelligenceOperationStatus; @doc("Date and time (UTC) when the analyze operation was submitted.") createdDateTime: utcDateTime; @@ -475,18 +465,20 @@ model AnalyzeResultOperation { lastUpdatedDateTime: utcDateTime; @doc("Encountered error during document analysis.") - error?: Error; + error?: DocumentIntelligenceError; @lroResult @doc("Document analysis result.") analyzeResult?: AnalyzeResult; } -@added(Versions.v2024_07_31_preview) @doc("Status and result of the analyze batch operation.") -model AnalyzeBatchResultOperation { - @doc("Operation status. notStarted, running, completed, or failed") - status: OperationStatus; +model AnalyzeBatchOperation { + @doc("Analyze batch operation result ID.") + resultId?: uuid; + + @doc("Operation status. notStarted, running, succeeded, or failed") + status: DocumentIntelligenceOperationStatus; @doc("Date and time (UTC) when the operation was submitted.") createdDateTime: utcDateTime; @@ -500,14 +492,13 @@ model AnalyzeBatchResultOperation { percentCompleted?: int32; @doc("Encountered error during batch document analysis.") - error?: Error; + error?: DocumentIntelligenceError; @lroResult @doc("Batch document analysis result.") result?: AnalyzeBatchResult; } -@added(Versions.v2024_07_31_preview) @doc("Batch document analysis result.") model AnalyzeBatchResult { @doc("Number of documents that completed with status succeeded.") @@ -520,14 +511,13 @@ model AnalyzeBatchResult { skippedCount: int32; @doc("Operation detail for each document in the batch.") - details: AnalyzeBatchOperationDetail[]; + details?: AnalyzeBatchOperationDetail[]; } -@added(Versions.v2024_07_31_preview) @doc("Operation detail for a document in a batch analysis.") model AnalyzeBatchOperationDetail { @doc("Analyze status. succeeded, failed, or skipped") - status: OperationStatus; + status: DocumentIntelligenceOperationStatus; @doc("URL of the source document.") sourceUrl: url; @@ -536,7 +526,7 @@ model AnalyzeBatchOperationDetail { resultUrl?: url; @doc("Encountered error.") - error?: Error; + error?: DocumentIntelligenceError; } @doc("Document analysis result.") @@ -552,7 +542,7 @@ model AnalyzeResult { stringIndexType: StringIndexType; @doc("Format of the analyze result top-level content.") - contentFormat?: ContentFormat; + contentFormat?: DocumentContentFormat; @doc(""" Concatenate string representation of all textual and visual elements in reading @@ -585,10 +575,10 @@ model AnalyzeResult { languages?: DocumentLanguage[]; @doc("Extracted documents.") - documents?: Document[]; + documents?: AnalyzedDocument[]; @doc("List of warnings encountered.") - warnings?: Warning[]; + warnings?: DocumentIntelligenceWarning[]; } @doc("Content and layout elements extracted from a page from the input.") @@ -886,7 +876,6 @@ model DocumentFigure { @doc("List of footnotes associated with the figure.") footnotes?: DocumentFootnote[]; - @added(Versions.v2024_07_31_preview) @doc("Figure ID.") id?: string; } @@ -977,10 +966,10 @@ model DocumentStyle { similarFontFamily?: string; @doc("Font style.") - fontStyle?: FontStyle; + fontStyle?: DocumentFontStyle; @doc("Font weight.") - fontWeight?: FontWeight; + fontWeight?: DocumentFontWeight; @doc("Foreground color in #rrggbb hexadecimal format.") @pattern("^#[0-9a-f]{6}$") @@ -1020,8 +1009,7 @@ model DocumentLanguage { } @doc("An object describing the location and semantic content of a document.") -@clientName("AnalyzedDocument", "csharp") -model Document { +model AnalyzedDocument { @doc("Document type.") @minLength(2) @maxLength(64) @@ -1195,11 +1183,9 @@ model BuildDocumentModelRequest { @doc("List of key-value tag attributes associated with the document model.") tags?: Record; - @added(Versions.v2024_07_31_preview) @doc("Max number of V100-equivalent GPU hours to use for model training. Default=0.5.") maxTrainingHours?: float32 = 0.5; - @added(Versions.v2024_07_31_preview) @doc("Allow overwriting an existing model with the same name.") allowOverwrite?: boolean = false; } @@ -1263,7 +1249,7 @@ model AuthorizeCopyRequest { Authorization to copy a document model to the specified target resource and modelId. """) -model CopyAuthorization { +model ModelCopyAuthorization { @doc("ID of the target Azure resource where the document model should be copied to.") targetResourceId: string; @@ -1287,7 +1273,6 @@ model CopyAuthorization { expirationDateTime: utcDateTime; } -@added(Versions.v2024_07_31_preview) @doc("Request body to authorize document classifier copy.") model AuthorizeClassifierCopyRequest { @doc("Unique document classifier name.") @@ -1302,7 +1287,6 @@ model AuthorizeClassifierCopyRequest { tags?: Record; } -@added(Versions.v2024_07_31_preview) @doc(""" Authorization to copy a document classifier to the specified target resource and classifierId. @@ -1334,14 +1318,14 @@ model ClassifierCopyAuthorization { @doc("Operation info.") @resource("operations") @discriminator("kind") -model OperationDetails { +model DocumentIntelligenceOperationDetails { @doc("Operation ID") @key @visibility("read", "create") operationId: string; @doc("Operation status. notStarted, running, completed, or failed") - status: OperationStatus; + status: DocumentIntelligenceOperationStatus; @doc("Operation progress (0-100).") @minValue(0) @@ -1367,7 +1351,7 @@ model OperationDetails { tags?: Record; @doc("Encountered error.") - error?: Error; + error?: DocumentIntelligenceError; } @resource("documentModels") @@ -1391,6 +1375,10 @@ model DocumentModelDetails { @visibility("read") expirationDateTime?: utcDateTime; + @doc("Date and time (UTC) when the document model was last modified.") + @visibility("read") + modifiedDateTime?: utcDateTime; + @doc("API version used to create this document model.") @visibility("read") apiVersion?: string; @@ -1428,9 +1416,8 @@ model DocumentModelDetails { @doc("List of warnings encountered while building the model.") @visibility("read") - warnings?: Warning[]; + warnings?: DocumentIntelligenceWarning[]; - @added(Versions.v2024_07_31_preview) @doc("Number of V100-equivalent GPU hours consumed for model training.") @visibility("read") trainingHours?: float32; @@ -1505,7 +1492,6 @@ model BuildDocumentClassifierRequest { @doc("List of document types to classify against.") docTypes: Record; - @added(Versions.v2024_07_31_preview) @doc("Allow overwriting an existing classifier with the same name.") allowOverwrite?: boolean = false; } @@ -1550,6 +1536,10 @@ model DocumentClassifierDetails { @doc("Date and time (UTC) when the document classifier will expire.") expirationDateTime?: utcDateTime; + @doc("Date and time (UTC) when the document model was last modified.") + @visibility("read") + modifiedDateTime?: utcDateTime; + @doc("API version used to create this document classifier.") apiVersion: string; @@ -1561,7 +1551,7 @@ model DocumentClassifierDetails { docTypes: Record; @doc("List of warnings encountered while building the classifier.") - warnings?: Warning[]; + warnings?: DocumentIntelligenceWarning[]; } @doc("Document classification parameters.") @@ -1577,7 +1567,7 @@ model ClassifyDocumentRequest { } @doc("General information regarding the current resource.") -model ResourceDetails { +model DocumentIntelligenceResourceDetails { @doc("Details regarding custom document models.") customDocumentModels: CustomDocumentModelsDetails; } @@ -1592,7 +1582,8 @@ model CustomDocumentModelsDetails { } @doc("Get Operation response object.") -model DocumentModelBuildOperationDetails extends OperationDetails { +model DocumentModelBuildOperationDetails + extends DocumentIntelligenceOperationDetails { @doc("Operation result upon success.") @lroResult result?: DocumentModelDetails; @@ -1602,7 +1593,8 @@ model DocumentModelBuildOperationDetails extends OperationDetails { } @doc("Get Operation response object.") -model DocumentModelComposeOperationDetails extends OperationDetails { +model DocumentModelComposeOperationDetails + extends DocumentIntelligenceOperationDetails { @doc("Operation result upon success.") @lroResult result?: DocumentModelDetails; @@ -1612,7 +1604,8 @@ model DocumentModelComposeOperationDetails extends OperationDetails { } @doc("Get Operation response object.") -model DocumentModelCopyToOperationDetails extends OperationDetails { +model DocumentModelCopyToOperationDetails + extends DocumentIntelligenceOperationDetails { @doc("Operation result upon success.") @lroResult result?: DocumentModelDetails; @@ -1621,9 +1614,9 @@ model DocumentModelCopyToOperationDetails extends OperationDetails { kind: OperationKind.documentModelCopyTo; } -@added(Versions.v2024_07_31_preview) @doc("Get Operation response object.") -model DocumentClassifierCopyToOperationDetails extends OperationDetails { +model DocumentClassifierCopyToOperationDetails + extends DocumentIntelligenceOperationDetails { @doc("Operation result upon success.") @lroResult result?: DocumentClassifierDetails; @@ -1633,7 +1626,8 @@ model DocumentClassifierCopyToOperationDetails extends OperationDetails { } @doc("Get Operation response object.") -model DocumentClassifierBuildOperationDetails extends OperationDetails { +model DocumentClassifierBuildOperationDetails + extends DocumentIntelligenceOperationDetails { @doc("Operation result upon success.") @lroResult result?: DocumentClassifierDetails; diff --git a/specification/ai/DocumentIntelligence/routes.tsp b/specification/ai/DocumentIntelligence/routes.tsp index 1b5439c273f3..2a2a7ba8f876 100644 --- a/specification/ai/DocumentIntelligence/routes.tsp +++ b/specification/ai/DocumentIntelligence/routes.tsp @@ -18,9 +18,17 @@ alias ServiceTraits = NoConditionalRequests & op DocumentIntelligenceOperation< TParams extends TypeSpec.Reflection.Model, TResponse extends TypeSpec.Reflection.Model & Foundations.RetryAfterHeader -> is Foundations.Operation; +> is Foundations.Operation< + TParams, + TResponse, + ServiceTraits, + DocumentIntelligenceErrorResponse +>; -alias DIResourceOperations = ResourceOperations; +alias DIResourceOperations = ResourceOperations< + ServiceTraits, + DocumentIntelligenceErrorResponse +>; #suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "This is a template" op DocumentIntelligenceLongRunningOperation< @@ -35,7 +43,7 @@ op DocumentIntelligenceLongRunningOperation< operationLocation: ResourceLocation; }, ServiceTraits, - ErrorResponse + DocumentIntelligenceErrorResponse >; @doc("Document model analyze request parameters.") @@ -46,7 +54,7 @@ model DocumentModelAnalyzeRequestParams { @maxLength(64) modelId: string; - @doc("List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\"") + @doc("1-based page numbers to analyze. Ex. \"1-3,5,7-9\"") @query @pattern("^(\\d+(-\\d+)?)(,\\s*(\\d+(-\\d+)?))*$") pages?: string; @@ -72,9 +80,8 @@ model DocumentModelAnalyzeRequestParams { @doc("Format of the analyze result top-level content.") @query - outputContentFormat?: ContentFormat = ContentFormat.text; + outputContentFormat?: DocumentContentFormat = DocumentContentFormat.text; - @added(Versions.v2024_07_31_preview) @doc("Additional outputs to generate during analysis.") @query output?: AnalyzeOutputOption[]; @@ -96,8 +103,7 @@ model DocumentClassifierAnalyzeRequestParams { @query split?: SplitMode = SplitMode.none; - @added(Versions.v2024_07_31_preview) - @doc("List of 1-based page numbers to analyze. Ex. \"1-3,5,7-9\"") + @doc("1-based page numbers to analyze. Ex. \"1-3,5,7-9\"") @query @pattern("^(\\d+(-\\d+)?)(,\\s*(\\d+(-\\d+)?))*$") pages?: string; @@ -143,11 +149,10 @@ interface DocumentModels { @path resultId: uuid; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc("Gets the generated searchable PDF output from document analysis.") @route("/documentModels/{modelId}/analyzeResults/{resultId}/pdf") @get @@ -175,7 +180,6 @@ interface DocumentModels { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc("Gets the generated cropped image of specified figure from document analysis.") @route("/documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}") @get @@ -206,6 +210,25 @@ interface DocumentModels { } >; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + @doc("Mark the result of document analysis for deletion.") + @route("/documentModels/{modelId}/analyzeResults/{resultId}") + @delete + deleteAnalyzeResult is DocumentIntelligenceOperation< + { + @doc("Unique document model name.") + @path + @pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$") + @maxLength(64) + modelId: string; + + @doc("Analyze operation result ID.") + @path + resultId: uuid; + }, + TypeSpec.Http.NoContentResponse + >; + #suppress "@azure-tools/typespec-azure-core/byos" "Support uploading input files" #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @doc("Analyzes document with document model.") @@ -218,7 +241,7 @@ interface DocumentModels { ...DocumentModelAnalyzeRequestParams; ...AnalyzeFromStreamRequestParams; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @@ -239,11 +262,10 @@ interface DocumentModels { @bodyRoot analyzeRequest?: AnalyzeDocumentRequest; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc("Gets the result of batch document analysis.") @route("/documentModels/{modelId}/analyzeBatchResults/{resultId}") @get @@ -259,11 +281,10 @@ interface DocumentModels { @path resultId: uuid; }, - AnalyzeBatchResultOperation + AnalyzeBatchOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc("Analyzes batch documents with document model.") @post @pollingOperation(DocumentModels.getAnalyzeBatchResult) @@ -280,7 +301,41 @@ interface DocumentModels { @body analyzeBatchRequest?: AnalyzeBatchDocumentsRequest; }, - AnalyzeBatchResultOperation + AnalyzeBatchOperation + >; + + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + @doc("List batch document analysis results.") + @route("/documentModels/{modelId}/analyzeBatchResults") + @get + listAnalyzeBatchResults is DocumentIntelligenceOperation< + { + @doc("Unique document model name.") + @path + @pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$") + @maxLength(64) + modelId: string; + }, + Foundations.CustomPage + >; + + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" + @doc("Mark the batch document analysis result for deletion.") + @route("/documentModels/{modelId}/analyzeBatchResults/{resultId}") + @delete + deleteAnalyzeBatchResult is DocumentIntelligenceOperation< + { + @doc("Unique document model name.") + @path + @pattern("^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$") + @maxLength(64) + modelId: string; + + @doc("Analyze batch operation result ID.") + @path + resultId: uuid; + }, + NoContentResponse >; @doc("Gets detailed document model information.") @@ -327,7 +382,7 @@ interface DocumentModels { @bodyRoot authorizeCopyRequest: AuthorizeCopyRequest; }, - CopyAuthorization + ModelCopyAuthorization >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @@ -345,7 +400,7 @@ interface DocumentModels { @doc("Copy to request parameters.") @bodyRoot - copyToRequest: CopyAuthorization; + copyToRequest: ModelCopyAuthorization; }, DocumentModelCopyToOperationDetails >; @@ -360,7 +415,7 @@ interface DocumentModels { interface MiscellaneousOperations { @doc("Lists all operations.") - listOperations is DIResourceOperations.ResourceList; + listOperations is DIResourceOperations.ResourceList; @sharedRoute @doc("Gets operation info.") @@ -374,7 +429,6 @@ interface MiscellaneousOperations { @doc("Gets operation info.") getDocumentModelCopyToOperation is DIResourceOperations.ResourceRead; - @added(Versions.v2024_07_31_preview) @sharedRoute @doc("Gets operation info.") getDocumentClassifierCopyToOperation is DIResourceOperations.ResourceRead; @@ -385,13 +439,16 @@ interface MiscellaneousOperations { @sharedRoute @doc("Gets operation info.") - getOperation is DIResourceOperations.ResourceRead; + getOperation is DIResourceOperations.ResourceRead; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @doc("Return information about the current resource.") @route("/info") @get - getResourceInfo is DocumentIntelligenceOperation<{}, ResourceDetails>; + getResourceDetails is DocumentIntelligenceOperation< + {}, + DocumentIntelligenceResourceDetails + >; } interface DocumentClassifiers { @@ -430,7 +487,7 @@ interface DocumentClassifiers { ...DocumentClassifierAnalyzeRequestParams; ...AnalyzeFromStreamRequestParams; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @@ -451,7 +508,7 @@ interface DocumentClassifiers { @bodyRoot classifyRequest: ClassifyDocumentRequest; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" @@ -470,11 +527,10 @@ interface DocumentClassifiers { @path resultId: uuid; }, - AnalyzeResultOperation + AnalyzeOperation >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc(""" Generates authorization to copy a document classifier to this location with specified classifierId and optional description. @@ -491,7 +547,6 @@ interface DocumentClassifiers { >; #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Doesn't fit standard ops" - @added(Versions.v2024_07_31_preview) @doc("Copies document classifier to the target resource, region, and classifierId.") @pollingOperation( MiscellaneousOperations.getDocumentClassifierCopyToOperation diff --git a/specification/ai/DocumentIntelligence/tspconfig.yaml b/specification/ai/DocumentIntelligence/tspconfig.yaml index 35640ce9b98c..6b55c75a6913 100644 --- a/specification/ai/DocumentIntelligence/tspconfig.yaml +++ b/specification/ai/DocumentIntelligence/tspconfig.yaml @@ -51,8 +51,9 @@ options: title: DocumentIntelligence package-dir: "ai-document-intelligence-rest" generateMetadata: true + generate-tests: false packageDetails: name: "@azure-rest/ai-document-intelligence" description: "Document Intelligence Rest Client" - version: "1.0.0-beta.1" + version: "1.0.0" flavor: azure diff --git a/specification/ai/data-plane/DocumentIntelligence/readme.md b/specification/ai/data-plane/DocumentIntelligence/readme.md index f9fbb0bc6f6a..82a6dc457c10 100644 --- a/specification/ai/data-plane/DocumentIntelligence/readme.md +++ b/specification/ai/data-plane/DocumentIntelligence/readme.md @@ -4,17 +4,24 @@ Configuration for generating Document Intelligence SDK. -The current release is `2024-07-31-preview`. +The current release is `2024-11-30`. ``` yaml -tag: 2024-07-31-preview +tag: 2024-11-30 add-credentials: true openapi-type: data-plane ``` # Releases +### Release 2024-11-30 +These settings apply only when `--tag=2024-11-30` is specified on the command line. +``` yaml $(tag) == '2024-11-30' +input-file: + - stable/2024-11-30/DocumentIntelligence.json +``` + ### Release 2024-07-31-preview These settings apply only when `--tag=2024-07-31-preview` is specified on the command line. ``` yaml $(tag) == '2024-07-31-preview' diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json new file mode 100644 index 000000000000..3d1b10c174f7 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/DocumentIntelligence.json @@ -0,0 +1,5112 @@ +{ + "swagger": "2.0", + "info": { + "title": "Document Intelligence (formerly Form Recognizer)", + "version": "2024-11-30", + "description": "Extracts content, layout, and structured data from documents.", + "x-typespec-generated": [ + { + "emitter": "@azure-tools/typespec-autorest" + } + ] + }, + "schemes": [ + "https" + ], + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}/documentintelligence", + "useSchemePrefix": false, + "parameters": [ + { + "name": "endpoint", + "in": "path", + "description": "The Document Intelligence service endpoint.", + "required": true, + "type": "string", + "format": "uri", + "x-ms-skip-url-encoding": true + } + ] + }, + "produces": [ + "application/json" + ], + "consumes": [ + "application/json" + ], + "security": [ + { + "ApiKeyAuth": [] + }, + { + "OAuth2Auth": [ + "https://cognitiveservices.azure.com/.default" + ] + } + ], + "securityDefinitions": { + "ApiKeyAuth": { + "type": "apiKey", + "name": "Ocp-Apim-Subscription-Key", + "in": "header" + }, + "OAuth2Auth": { + "type": "oauth2", + "flow": "accessCode", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "scopes": { + "https://cognitiveservices.azure.com/.default": "" + }, + "tokenUrl": "https://login.microsoftonline.com/common/oauth2/token" + } + }, + "tags": [], + "paths": { + "/documentClassifiers": { + "get": { + "operationId": "DocumentClassifiers_ListClassifiers", + "description": "List all document classifiers.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDocumentClassifierDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Document Classifiers": { + "$ref": "./examples/GetDocumentClassifiers.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/documentClassifiers/{classifierId}": { + "get": { + "operationId": "DocumentClassifiers_GetClassifier", + "description": "Gets detailed document classifier information.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "classifierId", + "in": "path", + "description": "Unique document classifier name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentClassifierDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Document Classifier": { + "$ref": "./examples/GetDocumentClassifier.json" + } + } + }, + "delete": { + "operationId": "DocumentClassifiers_DeleteClassifier", + "description": "Deletes document classifier.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "classifierId", + "in": "path", + "description": "Unique document classifier name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Document Classifier": { + "$ref": "./examples/DeleteDocumentClassifier.json" + } + } + } + }, + "/documentClassifiers/{classifierId}:analyze": { + "post": { + "operationId": "DocumentClassifiers_ClassifyDocumentFromStream", + "description": "Classifies document with document classifier.", + "consumes": [ + "application/octet-stream", + "application/pdf", + "image/jpeg", + "image/png", + "image/tiff", + "image/bmp", + "image/heif", + "text/html", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.openxmlformats-officedocument.presentationml.presentation" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.classifierId" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.stringIndexType" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.split" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.pages" + }, + { + "$ref": "#/parameters/AnalyzeFromStreamRequestParams.input" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of AnalyzeOperation" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Classify Document from Url": { + "$ref": "./examples/ClassifyDocument_Stream.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentClassifiers/{classifierId}:copyTo": { + "post": { + "operationId": "DocumentClassifiers_CopyClassifierTo", + "description": "Copies document classifier to the target resource, region, and classifierId.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "classifierId", + "in": "path", + "description": "Unique document classifier name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "copyToRequest", + "in": "body", + "description": "Copy to request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ClassifierCopyAuthorization" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DocumentClassifierCopyToOperationDetails" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Copy Document Classifier To": { + "$ref": "./examples/CopyDocumentClassifierTo.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentClassifiers/{classifierId}/analyzeResults/{resultId}": { + "get": { + "operationId": "DocumentClassifiers_GetClassifyResult", + "description": "Gets the result of document classifier.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "classifierId", + "in": "path", + "description": "Unique document classifier name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AnalyzeOperation" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Classify Document Result": { + "$ref": "./examples/GetClassifyDocumentResult.json" + } + } + } + }, + "/documentClassifiers:authorizeCopy": { + "post": { + "operationId": "DocumentClassifiers_AuthorizeClassifierCopy", + "description": "Generates authorization to copy a document classifier to this location with\nspecified classifierId and optional description.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "authorizeCopyRequest", + "in": "body", + "description": "Authorize copy request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/AuthorizeClassifierCopyRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ClassifierCopyAuthorization" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Authorize Copy of Document Classifier": { + "$ref": "./examples/AuthorizeCopyDocumentClassifier.json" + } + } + } + }, + "/documentClassifiers:build": { + "post": { + "operationId": "DocumentClassifiers_BuildClassifier", + "description": "Builds a custom document classifier.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "buildRequest", + "in": "body", + "description": "Build request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/BuildDocumentClassifierRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DocumentClassifierBuildOperationDetails" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Build Document Classifier": { + "$ref": "./examples/BuildDocumentClassifier.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels": { + "get": { + "operationId": "DocumentModels_ListModels", + "description": "List all document models", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDocumentModelDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Document Models": { + "$ref": "./examples/GetDocumentModels.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/documentModels/{modelId}:analyze": { + "post": { + "operationId": "DocumentModels_AnalyzeDocumentFromStream", + "description": "Analyzes document with document model.", + "consumes": [ + "application/octet-stream", + "application/pdf", + "image/jpeg", + "image/png", + "image/tiff", + "image/bmp", + "image/heif", + "text/html", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", + "application/vnd.openxmlformats-officedocument.presentationml.presentation" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.modelId" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.pages" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.locale" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.stringIndexType" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.features" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.queryFields" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.outputContentFormat" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.output" + }, + { + "$ref": "#/parameters/AnalyzeFromStreamRequestParams.input" + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of AnalyzeOperation" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Analyze Document from Url": { + "$ref": "./examples/AnalyzeDocument_Stream.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels/{modelId}:analyzeBatch": { + "post": { + "operationId": "DocumentModels_AnalyzeBatchDocuments", + "description": "Analyzes batch documents with document model.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.modelId" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.pages" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.locale" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.stringIndexType" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.features" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.queryFields" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.outputContentFormat" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.output" + }, + { + "name": "analyzeBatchRequest", + "in": "body", + "description": "Analyze batch request parameters.", + "required": false, + "schema": { + "$ref": "#/definitions/AnalyzeBatchDocumentsRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of AnalyzeBatchOperation" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Analyze Batch Documents": { + "$ref": "./examples/AnalyzeBatchDocuments.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels/{modelId}": { + "get": { + "operationId": "DocumentModels_GetModel", + "description": "Gets detailed document model information.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentModelDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Custom Document Model": { + "$ref": "./examples/GetDocumentModel_Custom.json" + }, + "Get Prebuilt Document Model": { + "$ref": "./examples/GetDocumentModel_Prebuilt.json" + } + } + }, + "delete": { + "operationId": "DocumentModels_DeleteModel", + "description": "Deletes document model.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful. ", + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Document Model": { + "$ref": "./examples/DeleteDocumentModel.json" + } + } + } + }, + "/documentModels/{modelId}:copyTo": { + "post": { + "operationId": "DocumentModels_CopyModelTo", + "description": "Copies document model to the target resource, region, and modelId.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "copyToRequest", + "in": "body", + "description": "Copy to request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ModelCopyAuthorization" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DocumentModelCopyToOperationDetails" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Copy Document Model To": { + "$ref": "./examples/CopyDocumentModelTo.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels/{modelId}/analyzeBatchResults": { + "get": { + "operationId": "DocumentModels_ListAnalyzeBatchResults", + "description": "List batch document analysis results.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedAnalyzeBatchOperation" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "List Analyze Batch Documents Results": { + "$ref": "./examples/GetAnalyzeBatchDocumentsResults.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/documentModels/{modelId}/analyzeBatchResults/{resultId}": { + "get": { + "operationId": "DocumentModels_GetAnalyzeBatchResult", + "description": "Gets the result of batch document analysis.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze batch operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AnalyzeBatchOperation" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Analyze Batch Documents Result": { + "$ref": "./examples/GetAnalyzeBatchDocumentsResult.json" + } + } + }, + "delete": { + "operationId": "DocumentModels_DeleteAnalyzeBatchResult", + "description": "Mark the batch document analysis result for deletion.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze batch operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Analyze Batch Documents Result": { + "$ref": "./examples/DeleteAnalyzeBatchDocumentsResult.json" + } + } + } + }, + "/documentModels/{modelId}/analyzeResults/{resultId}": { + "get": { + "operationId": "DocumentModels_GetAnalyzeResult", + "description": "Gets the result of document analysis.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/AnalyzeOperation" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Analyze Document Result": { + "$ref": "./examples/GetAnalyzeDocumentResult.json" + } + } + }, + "delete": { + "operationId": "DocumentModels_DeleteAnalyzeResult", + "description": "Mark the result of document analysis for deletion.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "204": { + "description": "There is no content to send for this request, but the headers may be useful." + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Delete Analyze Result": { + "$ref": "./examples/DeleteAnalyzeDocumentResult.json" + } + } + } + }, + "/documentModels/{modelId}/analyzeResults/{resultId}/figures/{figureId}": { + "get": { + "operationId": "DocumentModels_GetAnalyzeResultFigure", + "description": "Gets the generated cropped image of specified figure from document analysis.", + "produces": [ + "image/png", + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + }, + { + "name": "figureId", + "in": "path", + "description": "Figure ID.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "type": "file" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Analyze Document Result Figure": { + "$ref": "./examples/GetAnalyzeDocumentResultFigure.json" + } + } + } + }, + "/documentModels/{modelId}/analyzeResults/{resultId}/pdf": { + "get": { + "operationId": "DocumentModels_GetAnalyzeResultPdf", + "description": "Gets the generated searchable PDF output from document analysis.", + "produces": [ + "application/pdf", + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + { + "name": "resultId", + "in": "path", + "description": "Analyze operation result ID.", + "required": true, + "type": "string", + "format": "uuid" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "type": "file" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Analyze Document Result PDF": { + "$ref": "./examples/GetAnalyzeDocumentResultFPdf.json" + } + } + } + }, + "/documentModels:authorizeCopy": { + "post": { + "operationId": "DocumentModels_AuthorizeModelCopy", + "description": "Generates authorization to copy a document model to this location with\nspecified modelId and optional description.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "authorizeCopyRequest", + "in": "body", + "description": "Authorize copy request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/AuthorizeCopyRequest" + } + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/ModelCopyAuthorization" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Authorize Copy of Document Model": { + "$ref": "./examples/AuthorizeCopyDocumentModel.json" + } + } + } + }, + "/documentModels:build": { + "post": { + "operationId": "DocumentModels_BuildModel", + "description": "Builds a custom document analysis model.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "buildRequest", + "in": "body", + "description": "Build request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/BuildDocumentModelRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DocumentModelBuildOperationDetails" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Build Document Model": { + "$ref": "./examples/BuildDocumentModel.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels:compose": { + "post": { + "operationId": "DocumentModels_ComposeModel", + "description": "Creates a new document model from document types of existing document models.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "composeRequest", + "in": "body", + "description": "Compose request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ComposeDocumentModelRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of DocumentModelComposeOperationDetails" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Compose Document Model": { + "$ref": "./examples/ComposeDocumentModel.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/info": { + "get": { + "operationId": "MiscellaneousOperations_GetResourceDetails", + "description": "Return information about the current resource.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceResourceDetails" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Resource Details": { + "$ref": "./examples/GetResourceDetails.json" + } + } + } + }, + "/operations": { + "get": { + "operationId": "MiscellaneousOperations_ListOperations", + "description": "Lists all operations.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/PagedDocumentIntelligenceOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operations": { + "$ref": "./examples/GetOperations.json" + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/operations/{operationId}": { + "get": { + "operationId": "MiscellaneousOperations_GetDocumentModelBuildOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentModelBuildOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation - Document Model Build": { + "$ref": "./examples/GetOperation_DocumentModelBuild.json" + } + } + } + } + }, + "x-ms-paths": { + "/documentClassifiers/{classifierId}:analyze?_overload=classifyDocument": { + "post": { + "operationId": "DocumentClassifiers_ClassifyDocument", + "description": "Classifies document with document classifier.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.classifierId" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.stringIndexType" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.split" + }, + { + "$ref": "#/parameters/DocumentClassifierAnalyzeRequestParams.pages" + }, + { + "name": "classifyRequest", + "in": "body", + "description": "Classify request parameters.", + "required": true, + "schema": { + "$ref": "#/definitions/ClassifyDocumentRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of AnalyzeOperation" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Classify Document from Url": { + "$ref": "./examples/ClassifyDocument_Url.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/documentModels/{modelId}:analyze?_overload=analyzeDocument": { + "post": { + "operationId": "DocumentModels_AnalyzeDocument", + "description": "Analyzes document with document model.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.modelId" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.pages" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.locale" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.stringIndexType" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.features" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.queryFields" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.outputContentFormat" + }, + { + "$ref": "#/parameters/DocumentModelAnalyzeRequestParams.output" + }, + { + "name": "analyzeRequest", + "in": "body", + "description": "Analyze request parameters.", + "required": false, + "schema": { + "$ref": "#/definitions/AnalyzeDocumentRequest" + } + } + ], + "responses": { + "202": { + "description": "The request has been accepted for processing, but processing has not yet completed.", + "headers": { + "Operation-Location": { + "type": "string", + "format": "uri", + "description": "The location of an instance of AnalyzeOperation" + }, + "Retry-After": { + "type": "integer", + "format": "int32", + "description": "The Retry-After header can indicate how long the client should wait before polling the operation status." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Analyze Document from Base64": { + "$ref": "./examples/AnalyzeDocument_Base64.json" + }, + "Analyze Document from Url": { + "$ref": "./examples/AnalyzeDocument_Url.json" + } + }, + "x-ms-long-running-operation": true + } + }, + "/operations/{operationId}?_overload=getDocumentModelComposeOperation": { + "get": { + "operationId": "MiscellaneousOperations_GetDocumentModelComposeOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentModelComposeOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation - Document Model Compose": { + "$ref": "./examples/GetOperation_DocumentModelCompose.json" + } + } + } + }, + "/operations/{operationId}?_overload=getDocumentModelCopyToOperation": { + "get": { + "operationId": "MiscellaneousOperations_GetDocumentModelCopyToOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentModelCopyToOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation - Document Model Copy To": { + "$ref": "./examples/GetOperation_DocumentModelCopyTo.json" + } + } + } + }, + "/operations/{operationId}?_overload=getDocumentClassifierCopyToOperation": { + "get": { + "operationId": "MiscellaneousOperations_GetDocumentClassifierCopyToOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentClassifierCopyToOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation - Document Classifier Copy To": { + "$ref": "./examples/GetOperation_DocumentClassifierCopyTo.json" + } + } + } + }, + "/operations/{operationId}?_overload=getDocumentClassifierBuildOperation": { + "get": { + "operationId": "MiscellaneousOperations_GetDocumentClassifierBuildOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentClassifierBuildOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation - Document Classifier Build": { + "$ref": "./examples/GetOperation_DocumentClassifierBuild.json" + } + } + } + }, + "/operations/{operationId}?_overload=getOperation": { + "get": { + "operationId": "MiscellaneousOperations_GetOperation", + "description": "Gets operation info.", + "parameters": [ + { + "$ref": "#/parameters/Azure.Core.Foundations.ApiVersionParameter" + }, + { + "name": "operationId", + "in": "path", + "description": "Operation ID", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/Azure.Core.ClientRequestIdHeader" + } + ], + "responses": { + "200": { + "description": "The request has succeeded.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + }, + "headers": { + "x-ms-client-request-id": { + "type": "string", + "format": "uuid", + "description": "An opaque, globally-unique, client-generated string identifier for the request." + } + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/DocumentIntelligenceErrorResponse" + } + } + }, + "x-ms-examples": { + "Get Operation": { + "$ref": "./examples/GetOperation.json" + } + } + } + } + }, + "definitions": { + "AddressValue": { + "type": "object", + "description": "Address field value.", + "properties": { + "houseNumber": { + "type": "string", + "description": "House or building number." + }, + "poBox": { + "type": "string", + "description": "Post office box number." + }, + "road": { + "type": "string", + "description": "Street name." + }, + "city": { + "type": "string", + "description": "Name of city, town, village, etc." + }, + "state": { + "type": "string", + "description": "First-level administrative division." + }, + "postalCode": { + "type": "string", + "description": "Postal code used for mail sorting." + }, + "countryRegion": { + "type": "string", + "description": "Country/region." + }, + "streetAddress": { + "type": "string", + "description": "Street-level address, excluding city, state, countryRegion, and postalCode." + }, + "unit": { + "type": "string", + "description": "Apartment or office number" + }, + "cityDistrict": { + "type": "string", + "description": "Districts or boroughs within a city, such as Brooklyn in New York City or City\nof Westminster in London." + }, + "stateDistrict": { + "type": "string", + "description": "Second-level administrative division used in certain locales." + }, + "suburb": { + "type": "string", + "description": "Unofficial neighborhood name, like Chinatown." + }, + "house": { + "type": "string", + "description": "Build name, such as World Trade Center." + }, + "level": { + "type": "string", + "description": "Floor number, such as 3F." + } + } + }, + "AnalyzeBatchDocumentsRequest": { + "type": "object", + "description": "Batch document analysis parameters.", + "properties": { + "azureBlobSource": { + "$ref": "#/definitions/AzureBlobContentSource", + "description": "Azure Blob Storage location containing the batch documents. Either\nazureBlobSource or azureBlobFileListSource must be specified." + }, + "azureBlobFileListSource": { + "$ref": "#/definitions/AzureBlobFileListContentSource", + "description": "Azure Blob Storage file list specifying the batch documents. Either\nazureBlobSource or azureBlobFileListSource must be specified." + }, + "resultContainerUrl": { + "type": "string", + "format": "uri", + "description": "Azure Blob Storage container URL where analyze result files will be stored." + }, + "resultPrefix": { + "type": "string", + "description": "Blob name prefix of result files." + }, + "overwriteExisting": { + "type": "boolean", + "description": "Overwrite existing analyze result files?", + "default": false + } + }, + "required": [ + "resultContainerUrl" + ] + }, + "AnalyzeBatchOperation": { + "type": "object", + "description": "Status and result of the analyze batch operation.", + "properties": { + "resultId": { + "$ref": "#/definitions/Azure.Core.uuid", + "description": "Analyze batch operation result ID." + }, + "status": { + "$ref": "#/definitions/DocumentIntelligenceOperationStatus", + "description": "Operation status. notStarted, running, succeeded, or failed" + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the operation was submitted." + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the status was last updated." + }, + "percentCompleted": { + "type": "integer", + "format": "int32", + "description": "Operation progress (0-100).", + "minimum": 0, + "maximum": 100 + }, + "error": { + "$ref": "#/definitions/DocumentIntelligenceError", + "description": "Encountered error during batch document analysis." + }, + "result": { + "$ref": "#/definitions/AnalyzeBatchResult", + "description": "Batch document analysis result." + } + }, + "required": [ + "status", + "createdDateTime", + "lastUpdatedDateTime" + ] + }, + "AnalyzeBatchOperationDetail": { + "type": "object", + "description": "Operation detail for a document in a batch analysis.", + "properties": { + "status": { + "$ref": "#/definitions/DocumentIntelligenceOperationStatus", + "description": "Analyze status. succeeded, failed, or skipped" + }, + "sourceUrl": { + "type": "string", + "format": "uri", + "description": "URL of the source document." + }, + "resultUrl": { + "type": "string", + "format": "uri", + "description": "URL of the analyze result JSON." + }, + "error": { + "$ref": "#/definitions/DocumentIntelligenceError", + "description": "Encountered error." + } + }, + "required": [ + "status", + "sourceUrl" + ] + }, + "AnalyzeBatchResult": { + "type": "object", + "description": "Batch document analysis result.", + "properties": { + "succeededCount": { + "type": "integer", + "format": "int32", + "description": "Number of documents that completed with status succeeded." + }, + "failedCount": { + "type": "integer", + "format": "int32", + "description": "Number of documents that completed with status failed." + }, + "skippedCount": { + "type": "integer", + "format": "int32", + "description": "Number of documents that completed with status skipped." + }, + "details": { + "type": "array", + "description": "Operation detail for each document in the batch.", + "items": { + "$ref": "#/definitions/AnalyzeBatchOperationDetail" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "succeededCount", + "failedCount", + "skippedCount" + ] + }, + "AnalyzeDocumentRequest": { + "type": "object", + "description": "Document analysis parameters.", + "properties": { + "urlSource": { + "type": "string", + "format": "uri", + "description": "Document URL to analyze. Either urlSource or base64Source must be specified." + }, + "base64Source": { + "type": "string", + "format": "byte", + "description": "Base64 encoding of the document to analyze. Either urlSource or base64Source\nmust be specified." + } + } + }, + "AnalyzeOperation": { + "type": "object", + "description": "Status and result of the analyze operation.", + "properties": { + "status": { + "$ref": "#/definitions/DocumentIntelligenceOperationStatus", + "description": "Operation status. notStarted, running, succeeded, or failed" + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the analyze operation was submitted." + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the status was last updated." + }, + "error": { + "$ref": "#/definitions/DocumentIntelligenceError", + "description": "Encountered error during document analysis." + }, + "analyzeResult": { + "$ref": "#/definitions/AnalyzeResult", + "description": "Document analysis result." + } + }, + "required": [ + "status", + "createdDateTime", + "lastUpdatedDateTime" + ] + }, + "AnalyzeResult": { + "type": "object", + "description": "Document analysis result.", + "properties": { + "apiVersion": { + "type": "string", + "description": "API version used to produce this result." + }, + "modelId": { + "type": "string", + "description": "Document model ID used to produce this result.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "stringIndexType": { + "$ref": "#/definitions/StringIndexType", + "description": "Method used to compute string offset and length." + }, + "contentFormat": { + "$ref": "#/definitions/DocumentContentFormat", + "description": "Format of the analyze result top-level content." + }, + "content": { + "type": "string", + "description": "Concatenate string representation of all textual and visual elements in reading\norder." + }, + "pages": { + "type": "array", + "description": "Analyzed pages.", + "items": { + "$ref": "#/definitions/DocumentPage" + }, + "x-ms-identifiers": [] + }, + "paragraphs": { + "type": "array", + "description": "Extracted paragraphs.", + "items": { + "$ref": "#/definitions/DocumentParagraph" + }, + "x-ms-identifiers": [] + }, + "tables": { + "type": "array", + "description": "Extracted tables.", + "items": { + "$ref": "#/definitions/DocumentTable" + }, + "x-ms-identifiers": [] + }, + "figures": { + "type": "array", + "description": "Extracted figures.", + "items": { + "$ref": "#/definitions/DocumentFigure" + } + }, + "sections": { + "type": "array", + "description": "Extracted sections.", + "items": { + "$ref": "#/definitions/DocumentSection" + }, + "x-ms-identifiers": [] + }, + "keyValuePairs": { + "type": "array", + "description": "Extracted key-value pairs.", + "items": { + "$ref": "#/definitions/DocumentKeyValuePair" + }, + "x-ms-identifiers": [] + }, + "styles": { + "type": "array", + "description": "Extracted font styles.", + "items": { + "$ref": "#/definitions/DocumentStyle" + }, + "x-ms-identifiers": [] + }, + "languages": { + "type": "array", + "description": "Detected languages.", + "items": { + "$ref": "#/definitions/DocumentLanguage" + }, + "x-ms-identifiers": [] + }, + "documents": { + "type": "array", + "description": "Extracted documents.", + "items": { + "$ref": "#/definitions/AnalyzedDocument" + }, + "x-ms-identifiers": [] + }, + "warnings": { + "type": "array", + "description": "List of warnings encountered.", + "items": { + "$ref": "#/definitions/DocumentIntelligenceWarning" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "apiVersion", + "modelId", + "stringIndexType", + "content", + "pages" + ] + }, + "AnalyzedDocument": { + "type": "object", + "description": "An object describing the location and semantic content of a document.", + "properties": { + "docType": { + "type": "string", + "description": "Document type.", + "minLength": 2, + "maxLength": 64 + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the document.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the document in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "fields": { + "type": "object", + "description": "Dictionary of named field values.", + "additionalProperties": { + "$ref": "#/definitions/DocumentField" + } + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the document.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "docType", + "spans", + "confidence" + ] + }, + "AuthorizeClassifierCopyRequest": { + "type": "object", + "description": "Request body to authorize document classifier copy.", + "properties": { + "classifierId": { + "type": "string", + "description": "Unique document classifier name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "description": { + "type": "string", + "description": "Document classifier description.", + "maxLength": 4096 + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document classifier.", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "classifierId" + ] + }, + "AuthorizeCopyRequest": { + "type": "object", + "description": "Request body to authorize document model copy.", + "properties": { + "modelId": { + "type": "string", + "description": "Unique document model name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "description": { + "type": "string", + "description": "Document model description.", + "maxLength": 4096 + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document model.", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "modelId" + ] + }, + "Azure.Core.uuid": { + "type": "string", + "format": "uuid", + "description": "Universally Unique Identifier" + }, + "AzureBlobContentSource": { + "type": "object", + "description": "Azure Blob Storage content.", + "properties": { + "containerUrl": { + "type": "string", + "format": "uri", + "description": "Azure Blob Storage container URL." + }, + "prefix": { + "type": "string", + "description": "Blob name prefix." + } + }, + "required": [ + "containerUrl" + ] + }, + "AzureBlobFileListContentSource": { + "type": "object", + "description": "File list in Azure Blob Storage.", + "properties": { + "containerUrl": { + "type": "string", + "format": "uri", + "description": "Azure Blob Storage container URL." + }, + "fileList": { + "type": "string", + "description": "Path to a JSONL file within the container specifying a subset of documents." + } + }, + "required": [ + "containerUrl", + "fileList" + ] + }, + "BoundingRegion": { + "type": "object", + "description": "Bounding polygon on a specific page of the input.", + "properties": { + "pageNumber": { + "type": "integer", + "format": "int32", + "description": "1-based page number of page containing the bounding region.", + "minimum": 1 + }, + "polygon": { + "type": "array", + "description": "Bounding polygon on the page, or the entire page if not specified.\nCoordinates specified relative to the top-left of the page. The numbers\nrepresent the x, y values of the polygon vertices, clockwise from the left\n(-180 degrees inclusive) relative to the element orientation.", + "items": { + "type": "number", + "format": "float" + } + } + }, + "required": [ + "pageNumber", + "polygon" + ] + }, + "BuildDocumentClassifierRequest": { + "type": "object", + "description": "Request body to build a new custom document classifier.", + "properties": { + "classifierId": { + "type": "string", + "description": "Unique document classifier name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "description": { + "type": "string", + "description": "Document classifier description.", + "maxLength": 4096 + }, + "baseClassifierId": { + "type": "string", + "description": "Base classifierId on top of which to train the classifier.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "docTypes": { + "type": "object", + "description": "List of document types to classify against.", + "additionalProperties": { + "$ref": "#/definitions/ClassifierDocumentTypeDetails" + } + }, + "allowOverwrite": { + "type": "boolean", + "description": "Allow overwriting an existing classifier with the same name.", + "default": false + } + }, + "required": [ + "classifierId", + "docTypes" + ] + }, + "BuildDocumentModelRequest": { + "type": "object", + "description": "Request body to build a new custom document model.", + "properties": { + "modelId": { + "type": "string", + "description": "Unique document model name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "description": { + "type": "string", + "description": "Document model description.", + "maxLength": 4096 + }, + "buildMode": { + "$ref": "#/definitions/DocumentBuildMode", + "description": "Custom document model build mode." + }, + "azureBlobSource": { + "$ref": "#/definitions/AzureBlobContentSource", + "description": "Azure Blob Storage location containing the training data. Either\nazureBlobSource or azureBlobFileListSource must be specified." + }, + "azureBlobFileListSource": { + "$ref": "#/definitions/AzureBlobFileListContentSource", + "description": "Azure Blob Storage file list specifying the training data. Either\nazureBlobSource or azureBlobFileListSource must be specified." + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document model.", + "additionalProperties": { + "type": "string" + } + }, + "maxTrainingHours": { + "type": "number", + "format": "float", + "description": "Max number of V100-equivalent GPU hours to use for model training. Default=0.5.", + "default": 0.5 + }, + "allowOverwrite": { + "type": "boolean", + "description": "Allow overwriting an existing model with the same name.", + "default": false + } + }, + "required": [ + "modelId", + "buildMode" + ] + }, + "ClassifierCopyAuthorization": { + "type": "object", + "description": "Authorization to copy a document classifier to the specified target resource and\nclassifierId.", + "properties": { + "targetResourceId": { + "type": "string", + "description": "ID of the target Azure resource where the document classifier should be copied to." + }, + "targetResourceRegion": { + "type": "string", + "description": "Location of the target Azure resource where the document classifier should be copied\nto." + }, + "targetClassifierId": { + "type": "string", + "description": "Identifier of the target document classifier.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "targetClassifierLocation": { + "type": "string", + "format": "uri", + "description": "URL of the copied document classifier in the target account." + }, + "accessToken": { + "type": "string", + "description": "Token used to authorize the request." + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Date/time when the access token expires." + } + }, + "required": [ + "targetResourceId", + "targetResourceRegion", + "targetClassifierId", + "targetClassifierLocation", + "accessToken", + "expirationDateTime" + ] + }, + "ClassifierDocumentTypeDetails": { + "type": "object", + "description": "Classifier document type info.", + "properties": { + "sourceKind": { + "$ref": "#/definitions/ContentSourceKind", + "description": "Type of training data source." + }, + "azureBlobSource": { + "$ref": "#/definitions/AzureBlobContentSource", + "description": "Azure Blob Storage location containing the training data for a classifier\ndocument type. Either azureBlobSource or azureBlobFileListSource must be\nspecified." + }, + "azureBlobFileListSource": { + "$ref": "#/definitions/AzureBlobFileListContentSource", + "description": "Azure Blob Storage file list specifying the training data for a classifier\ndocument type. Either azureBlobSource or azureBlobFileListSource must be\nspecified." + } + } + }, + "ClassifyDocumentRequest": { + "type": "object", + "description": "Document classification parameters.", + "properties": { + "urlSource": { + "type": "string", + "format": "uri", + "description": "Document URL to classify. Either urlSource or base64Source must be specified." + }, + "base64Source": { + "type": "string", + "format": "byte", + "description": "Base64 encoding of the document to classify. Either urlSource or base64Source\nmust be specified." + } + } + }, + "ComposeDocumentModelRequest": { + "type": "object", + "description": "Request body to create a composed document model from component document models.", + "properties": { + "modelId": { + "type": "string", + "description": "Unique document model name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "description": { + "type": "string", + "description": "Document model description.", + "maxLength": 4096 + }, + "classifierId": { + "type": "string", + "description": "Custom classifier to split and classify the input file." + }, + "split": { + "type": "string", + "description": "File splitting behavior.", + "default": "none", + "enum": [ + "auto", + "none", + "perPage" + ], + "x-ms-enum": { + "name": "SplitMode", + "modelAsString": true, + "values": [ + { + "name": "auto", + "value": "auto", + "description": "Automatically split file into documents." + }, + { + "name": "none", + "value": "none", + "description": "Treat the entire file as a single document." + }, + { + "name": "perPage", + "value": "perPage", + "description": "Treat each page in the file as a separate document." + } + ] + } + }, + "docTypes": { + "type": "object", + "description": "Dictionary mapping supported docTypes to the corresponding document models.", + "additionalProperties": { + "$ref": "#/definitions/DocumentTypeDetails" + } + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document model.", + "additionalProperties": { + "type": "string" + } + } + }, + "required": [ + "modelId", + "classifierId", + "docTypes" + ] + }, + "ContentSourceKind": { + "type": "string", + "description": "Type of content source.", + "enum": [ + "url", + "base64", + "azureBlob", + "azureBlobFileList" + ], + "x-ms-enum": { + "name": "ContentSourceKind", + "modelAsString": true, + "values": [ + { + "name": "url", + "value": "url", + "description": "Content at a specific URL." + }, + { + "name": "base64", + "value": "base64", + "description": "Content represented via Base64 encoding." + }, + { + "name": "azureBlob", + "value": "azureBlob", + "description": "Files in a path within an Azure Blob Storage container." + }, + { + "name": "azureBlobFileList", + "value": "azureBlobFileList", + "description": "A file list specifying individual files in an Azure Blob Storage container." + } + ] + } + }, + "CurrencyValue": { + "type": "object", + "description": "Currency field value.", + "properties": { + "amount": { + "type": "number", + "format": "double", + "description": "Currency amount." + }, + "currencySymbol": { + "type": "string", + "description": "Currency symbol label, if any." + }, + "currencyCode": { + "type": "string", + "description": "Resolved currency code (ISO 4217), if any." + } + }, + "required": [ + "amount" + ] + }, + "CustomDocumentModelsDetails": { + "type": "object", + "description": "Details regarding custom document models.", + "properties": { + "count": { + "type": "integer", + "format": "int32", + "description": "Number of custom document models in the current resource." + }, + "limit": { + "type": "integer", + "format": "int32", + "description": "Maximum number of custom document models supported in the current resource." + } + }, + "required": [ + "count", + "limit" + ] + }, + "DocumentAnalysisFeature": { + "type": "string", + "description": "Document analysis features to enable.", + "enum": [ + "ocrHighResolution", + "languages", + "barcodes", + "formulas", + "keyValuePairs", + "styleFont", + "queryFields" + ], + "x-ms-enum": { + "name": "DocumentAnalysisFeature", + "modelAsString": true, + "values": [ + { + "name": "ocrHighResolution", + "value": "ocrHighResolution", + "description": "Perform OCR at a higher resolution to handle documents with fine print." + }, + { + "name": "languages", + "value": "languages", + "description": "Enable the detection of the text content language." + }, + { + "name": "barcodes", + "value": "barcodes", + "description": "Enable the detection of barcodes in the document." + }, + { + "name": "formulas", + "value": "formulas", + "description": "Enable the detection of mathematical expressions in the document." + }, + { + "name": "keyValuePairs", + "value": "keyValuePairs", + "description": "Enable the detection of general key value pairs (form fields) in the document." + }, + { + "name": "styleFont", + "value": "styleFont", + "description": "Enable the recognition of various font styles." + }, + { + "name": "queryFields", + "value": "queryFields", + "description": "Enable the extraction of additional fields via the queryFields query parameter." + } + ] + } + }, + "DocumentBarcode": { + "type": "object", + "description": "A barcode object.", + "properties": { + "kind": { + "$ref": "#/definitions/DocumentBarcodeKind", + "description": "Barcode kind." + }, + "value": { + "type": "string", + "description": "Barcode value." + }, + "polygon": { + "type": "array", + "description": "Bounding polygon of the barcode, with coordinates specified relative to the\ntop-left of the page. The numbers represent the x, y values of the polygon\nvertices, clockwise from the left (-180 degrees inclusive) relative to the\nelement orientation.", + "items": { + "type": "number", + "format": "float" + } + }, + "span": { + "$ref": "#/definitions/DocumentSpan", + "description": "Location of the barcode in the reading order concatenated content." + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the barcode.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "kind", + "value", + "span", + "confidence" + ] + }, + "DocumentBarcodeKind": { + "type": "string", + "description": "Barcode kind.", + "enum": [ + "QRCode", + "PDF417", + "UPCA", + "UPCE", + "Code39", + "Code128", + "EAN8", + "EAN13", + "DataBar", + "Code93", + "Codabar", + "DataBarExpanded", + "ITF", + "MicroQRCode", + "Aztec", + "DataMatrix", + "MaxiCode" + ], + "x-ms-enum": { + "name": "DocumentBarcodeKind", + "modelAsString": true, + "values": [ + { + "name": "QRCode", + "value": "QRCode", + "description": "QR code, as defined in ISO/IEC 18004:2015." + }, + { + "name": "PDF417", + "value": "PDF417", + "description": "PDF417, as defined in ISO 15438." + }, + { + "name": "UPCA", + "value": "UPCA", + "description": "GS1 12-digit Universal Product Code." + }, + { + "name": "UPCE", + "value": "UPCE", + "description": "GS1 6-digit Universal Product Code." + }, + { + "name": "Code39", + "value": "Code39", + "description": "Code 39 barcode, as defined in ISO/IEC 16388:2007." + }, + { + "name": "Code128", + "value": "Code128", + "description": "Code 128 barcode, as defined in ISO/IEC 15417:2007." + }, + { + "name": "EAN8", + "value": "EAN8", + "description": "GS1 8-digit International Article Number (European Article Number)." + }, + { + "name": "EAN13", + "value": "EAN13", + "description": "GS1 13-digit International Article Number (European Article Number)." + }, + { + "name": "DataBar", + "value": "DataBar", + "description": "GS1 DataBar barcode." + }, + { + "name": "Code93", + "value": "Code93", + "description": "Code 93 barcode, as defined in ANSI/AIM BC5-1995." + }, + { + "name": "Codabar", + "value": "Codabar", + "description": "Codabar barcode, as defined in ANSI/AIM BC3-1995." + }, + { + "name": "DataBarExpanded", + "value": "DataBarExpanded", + "description": "GS1 DataBar Expanded barcode." + }, + { + "name": "ITF", + "value": "ITF", + "description": "Interleaved 2 of 5 barcode, as defined in ANSI/AIM BC2-1995." + }, + { + "name": "MicroQRCode", + "value": "MicroQRCode", + "description": "Micro QR code, as defined in ISO/IEC 23941:2022." + }, + { + "name": "Aztec", + "value": "Aztec", + "description": "Aztec code, as defined in ISO/IEC 24778:2008." + }, + { + "name": "DataMatrix", + "value": "DataMatrix", + "description": "Data matrix code, as defined in ISO/IEC 16022:2006." + }, + { + "name": "MaxiCode", + "value": "MaxiCode", + "description": "MaxiCode, as defined in ISO/IEC 16023:2000." + } + ] + } + }, + "DocumentBuildMode": { + "type": "string", + "description": "Custom document model build mode.", + "enum": [ + "template", + "neural" + ], + "x-ms-enum": { + "name": "DocumentBuildMode", + "modelAsString": true, + "values": [ + { + "name": "template", + "value": "template", + "description": "Target documents with similar visual templates." + }, + { + "name": "neural", + "value": "neural", + "description": "Support documents with diverse visual templates." + } + ] + } + }, + "DocumentCaption": { + "type": "object", + "description": "A caption object describing a table or figure.", + "properties": { + "content": { + "type": "string", + "description": "Content of the caption." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the caption.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the caption in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "elements": { + "type": "array", + "description": "Child elements of the caption.", + "items": { + "$ref": "#/definitions/DocumentElement" + } + } + }, + "required": [ + "content", + "spans" + ] + }, + "DocumentClassifierBuildOperationDetails": { + "type": "object", + "description": "Get Operation response object.", + "properties": { + "result": { + "$ref": "#/definitions/DocumentClassifierDetails", + "description": "Operation result upon success." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + } + ], + "x-ms-discriminator-value": "documentClassifierBuild" + }, + "DocumentClassifierCopyToOperationDetails": { + "type": "object", + "description": "Get Operation response object.", + "properties": { + "result": { + "$ref": "#/definitions/DocumentClassifierDetails", + "description": "Operation result upon success." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + } + ], + "x-ms-discriminator-value": "documentClassifierCopyTo" + }, + "DocumentClassifierDetails": { + "type": "object", + "description": "Document classifier info.", + "properties": { + "classifierId": { + "type": "string", + "description": "Unique document classifier name.", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "description": { + "type": "string", + "description": "Document classifier description.", + "maxLength": 4096 + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document classifier was created." + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document classifier will expire." + }, + "modifiedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document model was last modified.", + "readOnly": true + }, + "apiVersion": { + "type": "string", + "description": "API version used to create this document classifier." + }, + "baseClassifierId": { + "type": "string", + "description": "Base classifierId on top of which the classifier was trained.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "docTypes": { + "type": "object", + "description": "List of document types to classify against.", + "additionalProperties": { + "$ref": "#/definitions/ClassifierDocumentTypeDetails" + } + }, + "warnings": { + "type": "array", + "description": "List of warnings encountered while building the classifier.", + "items": { + "$ref": "#/definitions/DocumentIntelligenceWarning" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "classifierId", + "createdDateTime", + "apiVersion", + "docTypes" + ] + }, + "DocumentContentFormat": { + "type": "string", + "description": "Format of the content in analyzed result.", + "enum": [ + "text", + "markdown" + ], + "x-ms-enum": { + "name": "DocumentContentFormat", + "modelAsString": true, + "values": [ + { + "name": "text", + "value": "text", + "description": "Plain text representation of the document content without any formatting." + }, + { + "name": "markdown", + "value": "markdown", + "description": "Markdown representation of the document content with section headings, tables,\netc." + } + ] + } + }, + "DocumentElement": { + "type": "string", + "description": "An JSON pointer referencing an element of the document, such as paragraph,\ntable, section, etc." + }, + "DocumentField": { + "type": "object", + "description": "An object representing the content and location of a field value.", + "properties": { + "type": { + "$ref": "#/definitions/DocumentFieldType", + "description": "Data type of the field value." + }, + "valueString": { + "type": "string", + "description": "String value." + }, + "valueDate": { + "type": "string", + "format": "date", + "description": "Date value in YYYY-MM-DD format (ISO 8601)." + }, + "valueTime": { + "type": "string", + "format": "time", + "description": "Time value in hh:mm:ss format (ISO 8601)." + }, + "valuePhoneNumber": { + "type": "string", + "description": "Phone number value in E.164 format (ex. +19876543210)." + }, + "valueNumber": { + "type": "number", + "format": "double", + "description": "Floating point value." + }, + "valueInteger": { + "type": "integer", + "format": "int64", + "description": "Integer value." + }, + "valueSelectionMark": { + "$ref": "#/definitions/DocumentSelectionMarkState", + "description": "Selection mark value." + }, + "valueSignature": { + "$ref": "#/definitions/DocumentSignatureType", + "description": "Presence of signature." + }, + "valueCountryRegion": { + "type": "string", + "description": "3-letter country code value (ISO 3166-1 alpha-3)." + }, + "valueArray": { + "type": "array", + "description": "Array of field values.", + "items": { + "$ref": "#/definitions/DocumentField" + }, + "x-ms-identifiers": [] + }, + "valueObject": { + "type": "object", + "description": "Dictionary of named field values.", + "additionalProperties": { + "$ref": "#/definitions/DocumentField" + } + }, + "valueCurrency": { + "$ref": "#/definitions/CurrencyValue", + "description": "Currency value." + }, + "valueAddress": { + "$ref": "#/definitions/AddressValue", + "description": "Address value." + }, + "valueBoolean": { + "type": "boolean", + "description": "Boolean value." + }, + "valueSelectionGroup": { + "type": "array", + "description": "Selection group value.", + "items": { + "type": "string" + } + }, + "content": { + "type": "string", + "description": "Field content." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the field.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the field in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the field.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "type" + ] + }, + "DocumentFieldSchema": { + "type": "object", + "description": "Description of the field semantic schema using a JSON Schema style syntax.", + "properties": { + "type": { + "$ref": "#/definitions/DocumentFieldType", + "description": "Semantic data type of the field value." + }, + "description": { + "type": "string", + "description": "Field description.", + "maxLength": 4096 + }, + "example": { + "type": "string", + "description": "Example field content." + }, + "items": { + "$ref": "#/definitions/DocumentFieldSchema", + "description": "Field type schema of each array element." + }, + "properties": { + "type": "object", + "description": "Named sub-fields of the object field.", + "additionalProperties": { + "$ref": "#/definitions/DocumentFieldSchema" + } + } + }, + "required": [ + "type" + ] + }, + "DocumentFieldType": { + "type": "string", + "description": "Semantic data type of the field value.", + "enum": [ + "string", + "date", + "time", + "phoneNumber", + "number", + "integer", + "selectionMark", + "countryRegion", + "signature", + "array", + "object", + "currency", + "address", + "boolean", + "selectionGroup" + ], + "x-ms-enum": { + "name": "DocumentFieldType", + "modelAsString": true, + "values": [ + { + "name": "string", + "value": "string", + "description": "Plain text." + }, + { + "name": "date", + "value": "date", + "description": "Date, normalized to ISO 8601 (YYYY-MM-DD) format." + }, + { + "name": "time", + "value": "time", + "description": "Time, normalized to ISO 8601 (hh:mm:ss) format." + }, + { + "name": "phoneNumber", + "value": "phoneNumber", + "description": "Phone number, normalized to E.164 (+{CountryCode}{SubscriberNumber}) format." + }, + { + "name": "number", + "value": "number", + "description": "Floating point number, normalized to double precision floating point." + }, + { + "name": "integer", + "value": "integer", + "description": "Integer number, normalized to 64-bit signed integer." + }, + { + "name": "selectionMark", + "value": "selectionMark", + "description": "Is field selected?" + }, + { + "name": "countryRegion", + "value": "countryRegion", + "description": "Country/region, normalized to ISO 3166-1 alpha-3 format (ex. USA)." + }, + { + "name": "signature", + "value": "signature", + "description": "Is signature present?" + }, + { + "name": "array", + "value": "array", + "description": "List of subfields of the same type." + }, + { + "name": "object", + "value": "object", + "description": "Named list of subfields of potentially different types." + }, + { + "name": "currency", + "value": "currency", + "description": "Currency amount with optional currency symbol and unit." + }, + { + "name": "address", + "value": "address", + "description": "Parsed address." + }, + { + "name": "boolean", + "value": "boolean", + "description": "Boolean value, normalized to true or false." + }, + { + "name": "selectionGroup", + "value": "selectionGroup", + "description": "Array of selected string values." + } + ] + } + }, + "DocumentFigure": { + "type": "object", + "description": "An object representing a figure in the document.", + "properties": { + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the figure.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the figure in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "elements": { + "type": "array", + "description": "Child elements of the figure, excluding any caption or footnotes.", + "items": { + "$ref": "#/definitions/DocumentElement" + } + }, + "caption": { + "$ref": "#/definitions/DocumentCaption", + "description": "Caption associated with the figure." + }, + "footnotes": { + "type": "array", + "description": "List of footnotes associated with the figure.", + "items": { + "$ref": "#/definitions/DocumentFootnote" + }, + "x-ms-identifiers": [] + }, + "id": { + "type": "string", + "description": "Figure ID." + } + }, + "required": [ + "spans" + ] + }, + "DocumentFontStyle": { + "type": "string", + "description": "Font style.", + "enum": [ + "normal", + "italic" + ], + "x-ms-enum": { + "name": "DocumentFontStyle", + "modelAsString": true, + "values": [ + { + "name": "normal", + "value": "normal", + "description": "Characters are represented normally." + }, + { + "name": "italic", + "value": "italic", + "description": "Characters are visually slanted to the right." + } + ] + } + }, + "DocumentFontWeight": { + "type": "string", + "description": "Font weight.", + "enum": [ + "normal", + "bold" + ], + "x-ms-enum": { + "name": "DocumentFontWeight", + "modelAsString": true, + "values": [ + { + "name": "normal", + "value": "normal", + "description": "Characters are represented normally." + }, + { + "name": "bold", + "value": "bold", + "description": "Characters are represented with thicker strokes." + } + ] + } + }, + "DocumentFootnote": { + "type": "object", + "description": "A footnote object describing a table or figure.", + "properties": { + "content": { + "type": "string", + "description": "Content of the footnote." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the footnote.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the footnote in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "elements": { + "type": "array", + "description": "Child elements of the footnote.", + "items": { + "$ref": "#/definitions/DocumentElement" + } + } + }, + "required": [ + "content", + "spans" + ] + }, + "DocumentFormula": { + "type": "object", + "description": "A formula object.", + "properties": { + "kind": { + "$ref": "#/definitions/DocumentFormulaKind", + "description": "Formula kind." + }, + "value": { + "type": "string", + "description": "LaTex expression describing the formula." + }, + "polygon": { + "type": "array", + "description": "Bounding polygon of the formula, with coordinates specified relative to the\ntop-left of the page. The numbers represent the x, y values of the polygon\nvertices, clockwise from the left (-180 degrees inclusive) relative to the\nelement orientation.", + "items": { + "type": "number", + "format": "float" + } + }, + "span": { + "$ref": "#/definitions/DocumentSpan", + "description": "Location of the formula in the reading order concatenated content." + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the formula.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "kind", + "value", + "span", + "confidence" + ] + }, + "DocumentFormulaKind": { + "type": "string", + "description": "Formula kind.", + "enum": [ + "inline", + "display" + ], + "x-ms-enum": { + "name": "DocumentFormulaKind", + "modelAsString": true, + "values": [ + { + "name": "inline", + "value": "inline", + "description": "A formula embedded within the content of a paragraph." + }, + { + "name": "display", + "value": "display", + "description": "A formula in display mode that takes up an entire line." + } + ] + } + }, + "DocumentIntelligenceError": { + "type": "object", + "description": "The error object.", + "properties": { + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." + }, + "message": { + "type": "string", + "description": "A human-readable representation of the error." + }, + "target": { + "type": "string", + "description": "The target of the error." + }, + "details": { + "type": "array", + "description": "An array of details about specific errors that led to this reported error.", + "items": { + "$ref": "#/definitions/DocumentIntelligenceError" + }, + "x-ms-identifiers": [] + }, + "innererror": { + "$ref": "#/definitions/DocumentIntelligenceInnerError", + "description": "An object containing more specific information than the current object about the error." + } + }, + "required": [ + "code", + "message" + ] + }, + "DocumentIntelligenceErrorResponse": { + "type": "object", + "description": "Error response object.", + "properties": { + "error": { + "$ref": "#/definitions/DocumentIntelligenceError", + "description": "Error info." + } + }, + "required": [ + "error" + ] + }, + "DocumentIntelligenceInnerError": { + "type": "object", + "description": "An object containing more specific information about the error.", + "properties": { + "code": { + "type": "string", + "description": "One of a server-defined set of error codes." + }, + "message": { + "type": "string", + "description": "A human-readable representation of the error." + }, + "innererror": { + "$ref": "#/definitions/DocumentIntelligenceInnerError", + "description": "Inner error." + } + } + }, + "DocumentIntelligenceOperationDetails": { + "type": "object", + "description": "Operation info.", + "properties": { + "operationId": { + "type": "string", + "description": "Operation ID", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "status": { + "$ref": "#/definitions/DocumentIntelligenceOperationStatus", + "description": "Operation status. notStarted, running, completed, or failed" + }, + "percentCompleted": { + "type": "integer", + "format": "int32", + "description": "Operation progress (0-100).", + "minimum": 0, + "maximum": 100 + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the operation was created." + }, + "lastUpdatedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the status was last updated." + }, + "kind": { + "$ref": "#/definitions/OperationKind", + "description": "Type of operation." + }, + "resourceLocation": { + "type": "string", + "format": "uri", + "description": "URL of the resource targeted by this operation." + }, + "apiVersion": { + "type": "string", + "description": "API version used to create this operation." + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document model.", + "additionalProperties": { + "type": "string" + } + }, + "error": { + "$ref": "#/definitions/DocumentIntelligenceError", + "description": "Encountered error." + } + }, + "discriminator": "kind", + "required": [ + "operationId", + "status", + "createdDateTime", + "lastUpdatedDateTime", + "kind", + "resourceLocation" + ] + }, + "DocumentIntelligenceOperationStatus": { + "type": "string", + "description": "Operation status.", + "enum": [ + "notStarted", + "running", + "failed", + "succeeded", + "canceled", + "skipped" + ], + "x-ms-enum": { + "name": "DocumentIntelligenceOperationStatus", + "modelAsString": true, + "values": [ + { + "name": "notStarted", + "value": "notStarted", + "description": "The operation has not started yet." + }, + { + "name": "running", + "value": "running", + "description": "The operation is in progress." + }, + { + "name": "failed", + "value": "failed", + "description": "The operation has failed." + }, + { + "name": "succeeded", + "value": "succeeded", + "description": "The operation has succeeded." + }, + { + "name": "canceled", + "value": "canceled", + "description": "The operation has been canceled." + }, + { + "name": "skipped", + "value": "skipped", + "description": "The operation has been skipped." + } + ] + } + }, + "DocumentIntelligenceResourceDetails": { + "type": "object", + "description": "General information regarding the current resource.", + "properties": { + "customDocumentModels": { + "$ref": "#/definitions/CustomDocumentModelsDetails", + "description": "Details regarding custom document models." + } + }, + "required": [ + "customDocumentModels" + ] + }, + "DocumentIntelligenceWarning": { + "type": "object", + "description": "The error object.", + "properties": { + "code": { + "type": "string", + "description": "One of a server-defined set of warning codes." + }, + "message": { + "type": "string", + "description": "A human-readable representation of the warning." + }, + "target": { + "type": "string", + "description": "The target of the error." + } + }, + "required": [ + "code", + "message" + ] + }, + "DocumentKeyValueElement": { + "type": "object", + "description": "An object representing the field key or value in a key-value pair.", + "properties": { + "content": { + "type": "string", + "description": "Concatenated content of the key-value element in reading order." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the key-value element.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the key-value element in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "content", + "spans" + ] + }, + "DocumentKeyValuePair": { + "type": "object", + "description": "An object representing a form field with distinct field label (key) and field\nvalue (may be empty).", + "properties": { + "key": { + "$ref": "#/definitions/DocumentKeyValueElement", + "description": "Field label of the key-value pair." + }, + "value": { + "$ref": "#/definitions/DocumentKeyValueElement", + "description": "Field value of the key-value pair." + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the key-value pair.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "key", + "confidence" + ] + }, + "DocumentLanguage": { + "type": "object", + "description": "An object representing the detected language for a given text span.", + "properties": { + "locale": { + "type": "string", + "description": "Detected language. Value may an ISO 639-1 language code (ex. \"en\", \"fr\")\nor BCP 47 language tag (ex. \"zh-Hans\")." + }, + "spans": { + "type": "array", + "description": "Location of the text elements in the concatenated content the language applies\nto.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly identifying the language.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "locale", + "spans", + "confidence" + ] + }, + "DocumentLine": { + "type": "object", + "description": "A content line object consisting of an adjacent sequence of content elements,\nsuch as words and selection marks.", + "properties": { + "content": { + "type": "string", + "description": "Concatenated content of the contained elements in reading order." + }, + "polygon": { + "type": "array", + "description": "Bounding polygon of the line, with coordinates specified relative to the\ntop-left of the page. The numbers represent the x, y values of the polygon\nvertices, clockwise from the left (-180 degrees inclusive) relative to the\nelement orientation.", + "items": { + "type": "number", + "format": "float" + } + }, + "spans": { + "type": "array", + "description": "Location of the line in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "content", + "spans" + ] + }, + "DocumentModelBuildOperationDetails": { + "type": "object", + "description": "Get Operation response object.", + "properties": { + "result": { + "$ref": "#/definitions/DocumentModelDetails", + "description": "Operation result upon success." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + } + ], + "x-ms-discriminator-value": "documentModelBuild" + }, + "DocumentModelComposeOperationDetails": { + "type": "object", + "description": "Get Operation response object.", + "properties": { + "result": { + "$ref": "#/definitions/DocumentModelDetails", + "description": "Operation result upon success." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + } + ], + "x-ms-discriminator-value": "documentModelCompose" + }, + "DocumentModelCopyToOperationDetails": { + "type": "object", + "description": "Get Operation response object.", + "properties": { + "result": { + "$ref": "#/definitions/DocumentModelDetails", + "description": "Operation result upon success." + } + }, + "allOf": [ + { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + } + ], + "x-ms-discriminator-value": "documentModelCopyTo" + }, + "DocumentModelDetails": { + "type": "object", + "description": "Document model info.", + "properties": { + "modelId": { + "type": "string", + "description": "Unique document model name.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$", + "x-ms-mutability": [ + "read", + "create" + ] + }, + "description": { + "type": "string", + "description": "Document model description.", + "maxLength": 4096 + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document model was created.", + "readOnly": true + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document model will expire.", + "readOnly": true + }, + "modifiedDateTime": { + "type": "string", + "format": "date-time", + "description": "Date and time (UTC) when the document model was last modified.", + "readOnly": true + }, + "apiVersion": { + "type": "string", + "description": "API version used to create this document model.", + "readOnly": true + }, + "tags": { + "type": "object", + "description": "List of key-value tag attributes associated with the document model.", + "additionalProperties": { + "type": "string" + } + }, + "buildMode": { + "$ref": "#/definitions/DocumentBuildMode", + "description": "Custom document model build mode.", + "readOnly": true + }, + "azureBlobSource": { + "$ref": "#/definitions/AzureBlobContentSource", + "description": "Azure Blob Storage location containing the training data. Either\nazureBlobSource or azureBlobFileListSource must be specified.", + "readOnly": true + }, + "azureBlobFileListSource": { + "$ref": "#/definitions/AzureBlobFileListContentSource", + "description": "Azure Blob Storage file list specifying the training data. Either\nazureBlobSource or azureBlobFileListSource must be specified.", + "readOnly": true + }, + "classifierId": { + "type": "string", + "description": "For composed models, the custom classifier to split and classify the input file." + }, + "split": { + "type": "string", + "description": "For composed models, the file splitting behavior.", + "default": "none", + "enum": [ + "auto", + "none", + "perPage" + ], + "x-ms-enum": { + "name": "SplitMode", + "modelAsString": true, + "values": [ + { + "name": "auto", + "value": "auto", + "description": "Automatically split file into documents." + }, + { + "name": "none", + "value": "none", + "description": "Treat the entire file as a single document." + }, + { + "name": "perPage", + "value": "perPage", + "description": "Treat each page in the file as a separate document." + } + ] + } + }, + "docTypes": { + "type": "object", + "description": "Supported document types.", + "additionalProperties": { + "$ref": "#/definitions/DocumentTypeDetails" + }, + "readOnly": true + }, + "warnings": { + "type": "array", + "description": "List of warnings encountered while building the model.", + "items": { + "$ref": "#/definitions/DocumentIntelligenceWarning" + }, + "readOnly": true, + "x-ms-identifiers": [] + }, + "trainingHours": { + "type": "number", + "format": "float", + "description": "Number of V100-equivalent GPU hours consumed for model training.", + "readOnly": true + } + }, + "required": [ + "modelId", + "createdDateTime" + ] + }, + "DocumentPage": { + "type": "object", + "description": "Content and layout elements extracted from a page from the input.", + "properties": { + "pageNumber": { + "type": "integer", + "format": "int32", + "description": "1-based page number in the input document.", + "minimum": 1 + }, + "angle": { + "type": "number", + "format": "float", + "description": "The general orientation of the content in clockwise direction, measured in\ndegrees between (-180, 180].", + "maximum": 180 + }, + "width": { + "type": "number", + "format": "float", + "description": "The width of the image/PDF in pixels/inches, respectively.", + "minimum": 0 + }, + "height": { + "type": "number", + "format": "float", + "description": "The height of the image/PDF in pixels/inches, respectively.", + "minimum": 0 + }, + "unit": { + "$ref": "#/definitions/LengthUnit", + "description": "The unit used by the width, height, and polygon properties. For images, the\nunit is \"pixel\". For PDF, the unit is \"inch\"." + }, + "spans": { + "type": "array", + "description": "Location of the page in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "words": { + "type": "array", + "description": "Extracted words from the page.", + "items": { + "$ref": "#/definitions/DocumentWord" + }, + "x-ms-identifiers": [] + }, + "selectionMarks": { + "type": "array", + "description": "Extracted selection marks from the page.", + "items": { + "$ref": "#/definitions/DocumentSelectionMark" + }, + "x-ms-identifiers": [] + }, + "lines": { + "type": "array", + "description": "Extracted lines from the page, potentially containing both textual and visual\nelements.", + "items": { + "$ref": "#/definitions/DocumentLine" + }, + "x-ms-identifiers": [] + }, + "barcodes": { + "type": "array", + "description": "Extracted barcodes from the page.", + "items": { + "$ref": "#/definitions/DocumentBarcode" + }, + "x-ms-identifiers": [] + }, + "formulas": { + "type": "array", + "description": "Extracted formulas from the page.", + "items": { + "$ref": "#/definitions/DocumentFormula" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "pageNumber", + "spans" + ] + }, + "DocumentParagraph": { + "type": "object", + "description": "A paragraph object consisting with contiguous lines generally with common\nalignment and spacing.", + "properties": { + "role": { + "$ref": "#/definitions/ParagraphRole", + "description": "Semantic role of the paragraph." + }, + "content": { + "type": "string", + "description": "Concatenated content of the paragraph in reading order." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the paragraph.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the paragraph in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "content", + "spans" + ] + }, + "DocumentSection": { + "type": "object", + "description": "An object representing a section in the document.", + "properties": { + "spans": { + "type": "array", + "description": "Location of the section in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "elements": { + "type": "array", + "description": "Child elements of the section.", + "items": { + "$ref": "#/definitions/DocumentElement" + } + } + }, + "required": [ + "spans" + ] + }, + "DocumentSelectionMark": { + "type": "object", + "description": "A selection mark object representing check boxes, radio buttons, and other\nelements indicating a selection.", + "properties": { + "state": { + "$ref": "#/definitions/DocumentSelectionMarkState", + "description": "State of the selection mark." + }, + "polygon": { + "type": "array", + "description": "Bounding polygon of the selection mark, with coordinates specified relative\nto the top-left of the page. The numbers represent the x, y values of the\npolygon vertices, clockwise from the left (-180 degrees inclusive) relative\nto the element orientation.", + "items": { + "type": "number", + "format": "float" + } + }, + "span": { + "$ref": "#/definitions/DocumentSpan", + "description": "Location of the selection mark in the reading order concatenated content." + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the selection mark.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "state", + "span", + "confidence" + ] + }, + "DocumentSelectionMarkState": { + "type": "string", + "description": "State of the selection mark.", + "enum": [ + "selected", + "unselected" + ], + "x-ms-enum": { + "name": "DocumentSelectionMarkState", + "modelAsString": true, + "values": [ + { + "name": "selected", + "value": "selected", + "description": "The selection mark is selected, often indicated by a check ✓ or cross X inside\nthe selection mark." + }, + { + "name": "unselected", + "value": "unselected", + "description": "The selection mark is not selected." + } + ] + } + }, + "DocumentSignatureType": { + "type": "string", + "description": "Presence of signature.", + "enum": [ + "signed", + "unsigned" + ], + "x-ms-enum": { + "name": "DocumentSignatureType", + "modelAsString": true, + "values": [ + { + "name": "signed", + "value": "signed", + "description": "A signature is detected." + }, + { + "name": "unsigned", + "value": "unsigned", + "description": "No signatures are detected." + } + ] + } + }, + "DocumentSpan": { + "type": "object", + "description": "Contiguous region of the concatenated content property, specified as an offset\nand length.", + "properties": { + "offset": { + "type": "integer", + "format": "int32", + "description": "Zero-based index of the content represented by the span.", + "minimum": 0 + }, + "length": { + "type": "integer", + "format": "int32", + "description": "Number of characters in the content represented by the span.", + "minimum": 0 + } + }, + "required": [ + "offset", + "length" + ] + }, + "DocumentStyle": { + "type": "object", + "description": "An object representing observed text styles.", + "properties": { + "isHandwritten": { + "type": "boolean", + "description": "Is content handwritten?" + }, + "similarFontFamily": { + "type": "string", + "description": "Visually most similar font from among the set of supported font families, with\nfallback fonts following CSS convention (ex. 'Arial, sans-serif')." + }, + "fontStyle": { + "$ref": "#/definitions/DocumentFontStyle", + "description": "Font style." + }, + "fontWeight": { + "$ref": "#/definitions/DocumentFontWeight", + "description": "Font weight." + }, + "color": { + "type": "string", + "description": "Foreground color in #rrggbb hexadecimal format.", + "pattern": "^#[0-9a-f]{6}$" + }, + "backgroundColor": { + "type": "string", + "description": "Background color in #rrggbb hexadecimal format..", + "pattern": "^#[0-9a-f]{6}$" + }, + "spans": { + "type": "array", + "description": "Location of the text elements in the concatenated content the style applies to.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly identifying the style.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "spans", + "confidence" + ] + }, + "DocumentTable": { + "type": "object", + "description": "A table object consisting table cells arranged in a rectangular layout.", + "properties": { + "rowCount": { + "type": "integer", + "format": "int32", + "description": "Number of rows in the table.", + "minimum": 1 + }, + "columnCount": { + "type": "integer", + "format": "int32", + "description": "Number of columns in the table.", + "minimum": 1 + }, + "cells": { + "type": "array", + "description": "Cells contained within the table.", + "items": { + "$ref": "#/definitions/DocumentTableCell" + }, + "x-ms-identifiers": [] + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the table.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the table in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "caption": { + "$ref": "#/definitions/DocumentCaption", + "description": "Caption associated with the table." + }, + "footnotes": { + "type": "array", + "description": "List of footnotes associated with the table.", + "items": { + "$ref": "#/definitions/DocumentFootnote" + }, + "x-ms-identifiers": [] + } + }, + "required": [ + "rowCount", + "columnCount", + "cells", + "spans" + ] + }, + "DocumentTableCell": { + "type": "object", + "description": "An object representing the location and content of a table cell.", + "properties": { + "kind": { + "type": "string", + "description": "Table cell kind.", + "default": "content", + "enum": [ + "content", + "rowHeader", + "columnHeader", + "stubHead", + "description" + ], + "x-ms-enum": { + "name": "DocumentTableCellKind", + "modelAsString": true, + "values": [ + { + "name": "content", + "value": "content", + "description": "Contains the main content/data." + }, + { + "name": "rowHeader", + "value": "rowHeader", + "description": "Describes the content of the row." + }, + { + "name": "columnHeader", + "value": "columnHeader", + "description": "Describes the content of the column." + }, + { + "name": "stubHead", + "value": "stubHead", + "description": "Describes the row headers, usually located at the top left corner of a table." + }, + { + "name": "description", + "value": "description", + "description": "Describes the content in (parts of) the table." + } + ] + } + }, + "rowIndex": { + "type": "integer", + "format": "int32", + "description": "Row index of the cell." + }, + "columnIndex": { + "type": "integer", + "format": "int32", + "description": "Column index of the cell." + }, + "rowSpan": { + "type": "integer", + "format": "int32", + "description": "Number of rows spanned by this cell.", + "default": 1, + "minimum": 1 + }, + "columnSpan": { + "type": "integer", + "format": "int32", + "description": "Number of columns spanned by this cell.", + "default": 1, + "minimum": 1 + }, + "content": { + "type": "string", + "description": "Concatenated content of the table cell in reading order." + }, + "boundingRegions": { + "type": "array", + "description": "Bounding regions covering the table cell.", + "items": { + "$ref": "#/definitions/BoundingRegion" + }, + "x-ms-identifiers": [] + }, + "spans": { + "type": "array", + "description": "Location of the table cell in the reading order concatenated content.", + "items": { + "$ref": "#/definitions/DocumentSpan" + }, + "x-ms-identifiers": [] + }, + "elements": { + "type": "array", + "description": "Child elements of the table cell.", + "items": { + "$ref": "#/definitions/DocumentElement" + } + } + }, + "required": [ + "rowIndex", + "columnIndex", + "content", + "spans" + ] + }, + "DocumentTypeDetails": { + "type": "object", + "description": "Document type info.", + "properties": { + "description": { + "type": "string", + "description": "Document model description.", + "maxLength": 4096 + }, + "buildMode": { + "$ref": "#/definitions/DocumentBuildMode", + "description": "Custom document model build mode." + }, + "fieldSchema": { + "type": "object", + "description": "Description of the document semantic schema using a JSON Schema style syntax.", + "additionalProperties": { + "$ref": "#/definitions/DocumentFieldSchema" + } + }, + "fieldConfidence": { + "type": "object", + "description": "Estimated confidence for each field.", + "additionalProperties": { + "format": "float", + "type": "number" + } + }, + "modelId": { + "type": "string", + "description": "Document model to use for analyzing documents with specified type.", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "confidenceThreshold": { + "type": "number", + "format": "float", + "description": "Only perform analysis if docType confidence is above threshold." + }, + "features": { + "type": "array", + "description": "List of optional analysis features.", + "items": { + "$ref": "#/definitions/DocumentAnalysisFeature" + } + }, + "queryFields": { + "type": "array", + "description": "List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\"", + "items": { + "type": "string" + } + }, + "maxDocumentsToAnalyze": { + "type": "integer", + "format": "int32", + "description": "Maximum number of documents of specified type to analyze. Default=all." + } + } + }, + "DocumentWord": { + "type": "object", + "description": "A word object consisting of a contiguous sequence of characters. For non-space\ndelimited languages, such as Chinese, Japanese, and Korean, each character is\nrepresented as its own word.", + "properties": { + "content": { + "type": "string", + "description": "Text content of the word." + }, + "polygon": { + "type": "array", + "description": "Bounding polygon of the word, with coordinates specified relative to the\ntop-left of the page. The numbers represent the x, y values of the polygon\nvertices, clockwise from the left (-180 degrees inclusive) relative to the\nelement orientation.", + "items": { + "type": "number", + "format": "float" + } + }, + "span": { + "$ref": "#/definitions/DocumentSpan", + "description": "Location of the word in the reading order concatenated content." + }, + "confidence": { + "type": "number", + "format": "float", + "description": "Confidence of correctly extracting the word.", + "minimum": 0, + "maximum": 1 + } + }, + "required": [ + "content", + "span", + "confidence" + ] + }, + "LengthUnit": { + "type": "string", + "description": "The unit used by the width, height, and polygon properties. For images, the unit is \"pixel\". For PDF, the unit is \"inch\".", + "enum": [ + "pixel", + "inch" + ], + "x-ms-enum": { + "name": "LengthUnit", + "modelAsString": true, + "values": [ + { + "name": "pixel", + "value": "pixel", + "description": "Length unit for image files." + }, + { + "name": "inch", + "value": "inch", + "description": "Length unit for PDF files." + } + ] + } + }, + "ModelCopyAuthorization": { + "type": "object", + "description": "Authorization to copy a document model to the specified target resource and\nmodelId.", + "properties": { + "targetResourceId": { + "type": "string", + "description": "ID of the target Azure resource where the document model should be copied to." + }, + "targetResourceRegion": { + "type": "string", + "description": "Location of the target Azure resource where the document model should be copied\nto." + }, + "targetModelId": { + "type": "string", + "description": "Identifier of the target document model.", + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$" + }, + "targetModelLocation": { + "type": "string", + "format": "uri", + "description": "URL of the copied document model in the target account." + }, + "accessToken": { + "type": "string", + "description": "Token used to authorize the request." + }, + "expirationDateTime": { + "type": "string", + "format": "date-time", + "description": "Date/time when the access token expires." + } + }, + "required": [ + "targetResourceId", + "targetResourceRegion", + "targetModelId", + "targetModelLocation", + "accessToken", + "expirationDateTime" + ] + }, + "OperationKind": { + "type": "string", + "description": "Type of operation.", + "enum": [ + "documentModelBuild", + "documentModelCompose", + "documentModelCopyTo", + "documentClassifierCopyTo", + "documentClassifierBuild" + ], + "x-ms-enum": { + "name": "OperationKind", + "modelAsString": true, + "values": [ + { + "name": "documentModelBuild", + "value": "documentModelBuild", + "description": "Build a new custom document model." + }, + { + "name": "documentModelCompose", + "value": "documentModelCompose", + "description": "Compose a new custom document model from existing models." + }, + { + "name": "documentModelCopyTo", + "value": "documentModelCopyTo", + "description": "Copy an existing document model to potentially a different resource, region, or\nsubscription." + }, + { + "name": "documentClassifierCopyTo", + "value": "documentClassifierCopyTo", + "description": "Copy an existing document classifier to potentially a different resource, region, or\nsubscription." + }, + { + "name": "documentClassifierBuild", + "value": "documentClassifierBuild", + "description": "Build a new custom classifier model." + } + ] + } + }, + "PagedAnalyzeBatchOperation": { + "type": "object", + "description": "Paged collection of AnalyzeBatchOperation items", + "properties": { + "value": { + "type": "array", + "description": "The AnalyzeBatchOperation items on this page", + "items": { + "$ref": "#/definitions/AnalyzeBatchOperation" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDocumentClassifierDetails": { + "type": "object", + "description": "Paged collection of DocumentClassifierDetails items", + "properties": { + "value": { + "type": "array", + "description": "The DocumentClassifierDetails items on this page", + "items": { + "$ref": "#/definitions/DocumentClassifierDetails" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDocumentIntelligenceOperationDetails": { + "type": "object", + "description": "Paged collection of DocumentIntelligenceOperationDetails items", + "properties": { + "value": { + "type": "array", + "description": "The DocumentIntelligenceOperationDetails items on this page", + "items": { + "$ref": "#/definitions/DocumentIntelligenceOperationDetails" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "PagedDocumentModelDetails": { + "type": "object", + "description": "Paged collection of DocumentModelDetails items", + "properties": { + "value": { + "type": "array", + "description": "The DocumentModelDetails items on this page", + "items": { + "$ref": "#/definitions/DocumentModelDetails" + }, + "x-ms-identifiers": [] + }, + "nextLink": { + "type": "string", + "format": "uri", + "description": "The link to the next page of items" + } + }, + "required": [ + "value" + ] + }, + "ParagraphRole": { + "type": "string", + "description": "Semantic role of the paragraph.", + "enum": [ + "pageHeader", + "pageFooter", + "pageNumber", + "title", + "sectionHeading", + "footnote", + "formulaBlock" + ], + "x-ms-enum": { + "name": "ParagraphRole", + "modelAsString": true, + "values": [ + { + "name": "pageHeader", + "value": "pageHeader", + "description": "Text near the top edge of the page." + }, + { + "name": "pageFooter", + "value": "pageFooter", + "description": "Text near the bottom edge of the page." + }, + { + "name": "pageNumber", + "value": "pageNumber", + "description": "Page number." + }, + { + "name": "title", + "value": "title", + "description": "Top-level title describing the entire document." + }, + { + "name": "sectionHeading", + "value": "sectionHeading", + "description": "Sub heading describing a section of the document." + }, + { + "name": "footnote", + "value": "footnote", + "description": "A note usually placed after the main content on a page." + }, + { + "name": "formulaBlock", + "value": "formulaBlock", + "description": "A block of formulas, often with shared alignment." + } + ] + } + }, + "StringIndexType": { + "type": "string", + "description": "Method used to compute string offset and length.", + "enum": [ + "textElements", + "unicodeCodePoint", + "utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "textElements", + "value": "textElements", + "description": "User-perceived display character, or grapheme cluster, as defined by Unicode\n8.0.0." + }, + { + "name": "unicodeCodePoint", + "value": "unicodeCodePoint", + "description": "Character unit represented by a single unicode code point. Used by Python 3." + }, + { + "name": "utf16CodeUnit", + "value": "utf16CodeUnit", + "description": "Character unit represented by a 16-bit Unicode code unit. Used by JavaScript,\nJava, and .NET." + } + ] + } + } + }, + "parameters": { + "AnalyzeFromStreamRequestParams.input": { + "name": "input", + "in": "body", + "description": "Input content.", + "required": true, + "schema": { + "type": "string", + "format": "binary" + }, + "x-ms-parameter-location": "method" + }, + "Azure.Core.ClientRequestIdHeader": { + "name": "x-ms-client-request-id", + "in": "header", + "description": "An opaque, globally-unique, client-generated string identifier for the request.", + "required": false, + "type": "string", + "format": "uuid", + "x-ms-parameter-location": "method", + "x-ms-client-name": "clientRequestId" + }, + "Azure.Core.Foundations.ApiVersionParameter": { + "name": "api-version", + "in": "query", + "description": "The API version to use for this operation.", + "required": true, + "type": "string", + "minLength": 1, + "x-ms-parameter-location": "method", + "x-ms-client-name": "apiVersion" + }, + "DocumentClassifierAnalyzeRequestParams.classifierId": { + "name": "classifierId", + "in": "path", + "description": "Unique document classifier name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$", + "x-ms-parameter-location": "method" + }, + "DocumentClassifierAnalyzeRequestParams.pages": { + "name": "pages", + "in": "query", + "description": "1-based page numbers to analyze. Ex. \"1-3,5,7-9\"", + "required": false, + "type": "string", + "pattern": "^(\\d+(-\\d+)?)(,\\s*(\\d+(-\\d+)?))*$", + "x-ms-parameter-location": "method" + }, + "DocumentClassifierAnalyzeRequestParams.split": { + "name": "split", + "in": "query", + "description": "Document splitting mode.", + "required": false, + "type": "string", + "default": "none", + "enum": [ + "auto", + "none", + "perPage" + ], + "x-ms-enum": { + "name": "SplitMode", + "modelAsString": true, + "values": [ + { + "name": "auto", + "value": "auto", + "description": "Automatically split file into documents." + }, + { + "name": "none", + "value": "none", + "description": "Treat the entire file as a single document." + }, + { + "name": "perPage", + "value": "perPage", + "description": "Treat each page in the file as a separate document." + } + ] + }, + "x-ms-parameter-location": "method" + }, + "DocumentClassifierAnalyzeRequestParams.stringIndexType": { + "name": "stringIndexType", + "in": "query", + "description": "Method used to compute string offset and length.", + "required": false, + "type": "string", + "default": "textElements", + "enum": [ + "textElements", + "unicodeCodePoint", + "utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "textElements", + "value": "textElements", + "description": "User-perceived display character, or grapheme cluster, as defined by Unicode\n8.0.0." + }, + { + "name": "unicodeCodePoint", + "value": "unicodeCodePoint", + "description": "Character unit represented by a single unicode code point. Used by Python 3." + }, + { + "name": "utf16CodeUnit", + "value": "utf16CodeUnit", + "description": "Character unit represented by a 16-bit Unicode code unit. Used by JavaScript,\nJava, and .NET." + } + ] + }, + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.features": { + "name": "features", + "in": "query", + "description": "List of optional analysis features.", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "ocrHighResolution", + "languages", + "barcodes", + "formulas", + "keyValuePairs", + "styleFont", + "queryFields" + ], + "x-ms-enum": { + "name": "DocumentAnalysisFeature", + "modelAsString": true, + "values": [ + { + "name": "ocrHighResolution", + "value": "ocrHighResolution", + "description": "Perform OCR at a higher resolution to handle documents with fine print." + }, + { + "name": "languages", + "value": "languages", + "description": "Enable the detection of the text content language." + }, + { + "name": "barcodes", + "value": "barcodes", + "description": "Enable the detection of barcodes in the document." + }, + { + "name": "formulas", + "value": "formulas", + "description": "Enable the detection of mathematical expressions in the document." + }, + { + "name": "keyValuePairs", + "value": "keyValuePairs", + "description": "Enable the detection of general key value pairs (form fields) in the document." + }, + { + "name": "styleFont", + "value": "styleFont", + "description": "Enable the recognition of various font styles." + }, + { + "name": "queryFields", + "value": "queryFields", + "description": "Enable the extraction of additional fields via the queryFields query parameter." + } + ] + } + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.locale": { + "name": "locale", + "in": "query", + "description": "Locale hint for text recognition and document analysis. Value may contain only\nthe language code (ex. \"en\", \"fr\") or BCP 47 language tag (ex. \"en-US\").", + "required": false, + "type": "string", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.modelId": { + "name": "modelId", + "in": "path", + "description": "Unique document model name.", + "required": true, + "type": "string", + "maxLength": 64, + "pattern": "^[a-zA-Z0-9][a-zA-Z0-9._~-]{1,63}$", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.output": { + "name": "output", + "in": "query", + "description": "Additional outputs to generate during analysis.", + "required": false, + "type": "array", + "items": { + "type": "string", + "enum": [ + "pdf", + "figures" + ], + "x-ms-enum": { + "name": "AnalyzeOutputOption", + "modelAsString": true, + "values": [ + { + "name": "pdf", + "value": "pdf", + "description": "Generate searchable PDF output." + }, + { + "name": "figures", + "value": "figures", + "description": "Generate cropped images of detected figures." + } + ] + } + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.outputContentFormat": { + "name": "outputContentFormat", + "in": "query", + "description": "Format of the analyze result top-level content.", + "required": false, + "type": "string", + "default": "text", + "enum": [ + "text", + "markdown" + ], + "x-ms-enum": { + "name": "DocumentContentFormat", + "modelAsString": true, + "values": [ + { + "name": "text", + "value": "text", + "description": "Plain text representation of the document content without any formatting." + }, + { + "name": "markdown", + "value": "markdown", + "description": "Markdown representation of the document content with section headings, tables,\netc." + } + ] + }, + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.pages": { + "name": "pages", + "in": "query", + "description": "1-based page numbers to analyze. Ex. \"1-3,5,7-9\"", + "required": false, + "type": "string", + "pattern": "^(\\d+(-\\d+)?)(,\\s*(\\d+(-\\d+)?))*$", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.queryFields": { + "name": "queryFields", + "in": "query", + "description": "List of additional fields to extract. Ex. \"NumberOfGuests,StoreNumber\"", + "required": false, + "type": "array", + "items": { + "type": "string" + }, + "collectionFormat": "csv", + "x-ms-parameter-location": "method" + }, + "DocumentModelAnalyzeRequestParams.stringIndexType": { + "name": "stringIndexType", + "in": "query", + "description": "Method used to compute string offset and length.", + "required": false, + "type": "string", + "default": "textElements", + "enum": [ + "textElements", + "unicodeCodePoint", + "utf16CodeUnit" + ], + "x-ms-enum": { + "name": "StringIndexType", + "modelAsString": true, + "values": [ + { + "name": "textElements", + "value": "textElements", + "description": "User-perceived display character, or grapheme cluster, as defined by Unicode\n8.0.0." + }, + { + "name": "unicodeCodePoint", + "value": "unicodeCodePoint", + "description": "Character unit represented by a single unicode code point. Used by Python 3." + }, + { + "name": "utf16CodeUnit", + "value": "utf16CodeUnit", + "description": "Character unit represented by a 16-bit Unicode code unit. Used by JavaScript,\nJava, and .NET." + } + ] + }, + "x-ms-parameter-location": "method" + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeBatchDocuments.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeBatchDocuments.json new file mode 100644 index 000000000000..c3fb716ffcb1 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeBatchDocuments.json @@ -0,0 +1,28 @@ +{ + "operationId": "DocumentModels_AnalyzeBatchDocuments", + "title": "Analyze Batch Documents", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-5", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeBatchRequest": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "trainingDocs/" + }, + "resultContainerUrl": "https://myStorageAccount.blob.core.windows.net/myOutputContainer?mySasToken", + "resultPrefix": "trainingDocsResult/", + "overwriteExisting": true + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeBatchResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-02-29-preview" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Base64.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Base64.json new file mode 100644 index 000000000000..446cdbf4e0e8 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Base64.json @@ -0,0 +1,22 @@ +{ + "operationId": "DocumentModels_AnalyzeDocument", + "title": "Analyze Document from Base64", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-layout", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeRequest": { + "base64Source": "e2Jhc2U2NEVuY29kZWRQZGZ9" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-layout/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Stream.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Stream.json new file mode 100644 index 000000000000..10d9017c6ab2 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Stream.json @@ -0,0 +1,20 @@ +{ + "operationId": "DocumentModels_AnalyzeDocumentFromStream", + "title": "Analyze Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "input": "{binaryFile}" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Url.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Url.json new file mode 100644 index 000000000000..e40661279d48 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AnalyzeDocument_Url.json @@ -0,0 +1,22 @@ +{ + "operationId": "DocumentModels_AnalyzeDocument", + "title": "Analyze Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "customModel", + "pages": "1-2,4", + "locale": "en-US", + "stringIndexType": "textElements", + "analyzeRequest": { + "urlSource": "http://host.com/doc.pdf" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/customModel/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentClassifier.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentClassifier.json new file mode 100644 index 000000000000..f91bd24f2fa3 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentClassifier.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentClassifiers_AuthorizeClassifierCopy", + "title": "Authorize Copy of Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "authorizeCopyRequest": { + "classifierId": "targetClassifier", + "description": "Target classifier description" + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetClassifierId": "targetClassifier", + "targetClassifierLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/targetClassifier", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentModel.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentModel.json new file mode 100644 index 000000000000..d472b8a83e5a --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/AuthorizeCopyDocumentModel.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentModels_AuthorizeModelCopy", + "title": "Authorize Copy of Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "authorizeCopyRequest": { + "modelId": "targetModel", + "description": "Target model description" + } + }, + "responses": { + "200": { + "body": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetModelId": "targetModel", + "targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentClassifier.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentClassifier.json new file mode 100644 index 000000000000..65b4fd8a1526 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentClassifier.json @@ -0,0 +1,33 @@ +{ + "operationId": "DocumentClassifiers_BuildClassifier", + "title": "Build Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "buildRequest": { + "classifierId": "myClassifier", + "description": "Classifier description", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "fileList": "formB.jsonl" + } + } + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentModel.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentModel.json new file mode 100644 index 000000000000..50ed6d5ae17c --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/BuildDocumentModel.json @@ -0,0 +1,27 @@ +{ + "operationId": "DocumentModels_BuildModel", + "title": "Build Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "buildRequest": { + "modelId": "myCustomModel", + "description": "Custom model description", + "buildMode": "template", + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer?mySasToken", + "prefix": "trainingDocs/" + }, + "tags": { + "createdBy": "myUserId" + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Stream.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Stream.json new file mode 100644 index 000000000000..8f1bf66cd848 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Stream.json @@ -0,0 +1,18 @@ +{ + "operationId": "DocumentClassifiers_ClassifyDocumentFromStream", + "title": "Classify Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "classifierId", + "stringIndexType": "textElements", + "input": "{binaryFile}" + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Url.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Url.json new file mode 100644 index 000000000000..8bc71dea7bf2 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ClassifyDocument_Url.json @@ -0,0 +1,20 @@ +{ + "operationId": "DocumentClassifiers_ClassifyDocument", + "title": "Classify Document from Url", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "classifierId", + "stringIndexType": "textElements", + "classifyRequest": { + "urlSource": "http://host.com/doc.pdf" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/customClassifier/analyzeResults/3b31320d-8bab-4f88-b19c-2322a7f11034?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ComposeDocumentModel.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ComposeDocumentModel.json new file mode 100644 index 000000000000..ca093a88d035 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/ComposeDocumentModel.json @@ -0,0 +1,28 @@ +{ + "operationId": "DocumentModels_ComposeModel", + "title": "Compose Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "composeRequest": { + "modelId": "composedModel", + "description": "Composed model description", + "classifierId": "customClassifier", + "docTypes": { + "formA": { + "modelId": "model1" + }, + "formB": { + "modelId": "model2" + } + } + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentClassifierTo.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentClassifierTo.json new file mode 100644 index 000000000000..d9eee097392e --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentClassifierTo.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentClassifiers_CopyClassifierTo", + "title": "Copy Document Classifier To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "sourceClassifier", + "copyToRequest": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetClassifierId": "targetClassifier", + "targetClassifierLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/targetClassifier", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentModelTo.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentModelTo.json new file mode 100644 index 000000000000..f960babc969c --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/CopyDocumentModelTo.json @@ -0,0 +1,24 @@ +{ + "operationId": "DocumentModels_CopyModelTo", + "title": "Copy Document Model To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "sourceModel", + "copyToRequest": { + "targetResourceId": "/subscriptions/targetSub/resourceGroups/targetRG/providers/Microsoft.CognitiveServices/accounts/targetService", + "targetResourceRegion": "targetResourceRegion", + "targetModelId": "targetModel", + "targetModelLocation": "https://targetEndpoint.cognitiveservices.azure.com/documentintelligence/documentModels/targetModel", + "accessToken": "accessToken", + "expirationDateTime": "2021-09-23T09:12:54.552Z" + } + }, + "responses": { + "202": { + "headers": { + "Operation-Location": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations/b704bb00-d130-4f3f-a1d8-ca96de3eabb4?api-version=2024-11-30" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeBatchDocumentsResult.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeBatchDocumentsResult.json new file mode 100644 index 000000000000..799e1296604a --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeBatchDocumentsResult.json @@ -0,0 +1,13 @@ +{ + "operationId": "DocumentModels_DeleteAnalyzeBatchResult", + "title": "Delete Analyze Batch Documents Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeDocumentResult.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeDocumentResult.json new file mode 100644 index 000000000000..b43cf7a45c86 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteAnalyzeDocumentResult.json @@ -0,0 +1,13 @@ +{ + "operationId": "DocumentModels_DeleteAnalyzeResult", + "title": "Delete Analyze Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentClassifier.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentClassifier.json new file mode 100644 index 000000000000..ee07236dfbcc --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentClassifier.json @@ -0,0 +1,12 @@ +{ + "operationId": "DocumentClassifiers_DeleteClassifier", + "title": "Delete Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentModel.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentModel.json new file mode 100644 index 000000000000..56b04395a892 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/DeleteDocumentModel.json @@ -0,0 +1,12 @@ +{ + "operationId": "DocumentModels_DeleteModel", + "title": "Delete Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel" + }, + "responses": { + "204": {} + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResult.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResult.json new file mode 100644 index 000000000000..859bb7cbcaba --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResult.json @@ -0,0 +1,49 @@ +{ + "operationId": "DocumentModels_GetAnalyzeBatchResult", + "title": "Get Analyze Batch Documents Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "result": { + "succeededCount": 1, + "failedCount": 1, + "skippedCount": 1, + "details": [ + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file1.pdf", + "resultUrl": "https://myStorageAccount.blob.core.windows.net/myOutputContainer/trainingDocsResult/file1.pdf.ocr.json", + "status": "succeeded" + }, + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file2.jpg", + "status": "failed", + "error": { + "code": "InvalidRequest", + "message": "Invalid request.", + "innererror": { + "code": "InvalidContent", + "message": "The file format is unsupported or corrupted. Refer to documentation for the list of supported formats." + } + } + }, + { + "sourceUrl": "https://myStorageAccount.blob.core.windows.net/myContainer/trainingDocs/file3.png", + "status": "skipped" + } + ] + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResults.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResults.json new file mode 100644 index 000000000000..b70c82d636de --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeBatchDocumentsResults.json @@ -0,0 +1,30 @@ +{ + "operationId": "DocumentModels_ListAnalyzeBatchResults", + "title": "List Analyze Batch Documents Results", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "resultId": "f4d8b3b3-7f76-4b3b-8b3b-3b7f76f4d8b3", + "status": "succeeded", + "createdDateTime": "2021-09-24T12:54:35Z", + "lastUpdatedDateTime": "2021-09-24T12:54:35Z" + }, + { + "resultId": "f4d8b3b3-7f76-4b3b-8b3b-3b7f76f4d8b4", + "status": "running", + "createdDateTime": "2021-09-24T12:54:35Z", + "lastUpdatedDateTime": "2021-09-24T12:54:35Z" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/prebuilt-invoice/analyzeBatchResults?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResult.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResult.json new file mode 100644 index 000000000000..6d627119a3e1 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResult.json @@ -0,0 +1,7222 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResult", + "title": "Get Analyze Document Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "status": "succeeded", + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "analyzeResult": { + "apiVersion": "2024-11-30", + "modelId": "prebuilt-invoice", + "stringIndexType": "textElements", + "contentFormat": "text", + "content": "CONTOSO LTD.\nINVOICE\nContoso Headquarters\nINVOICE: INV-100\n123 456th St\nINVOICE DATE: 11/15/2019\nNew York, NY, 10001\nDUE DATE: 12/15/2019\nCUSTOMER NAME: MICROSOFT CORPORATION\nSERVICE PERIOD: 10/14/2019 – 11/14/2019\nCUSTOMER ID: CID-12345\nMicrosoft Corp\n123 Other St,\nRedmond WA, 98052\nBILL TO:\nSHIP TO:\nSERVICE ADDRESS:\nMicrosoft Finance\nMicrosoft Delivery\nMicrosoft Services\n123 Bill St,\n123 Ship St,\n123 Service St,\nRedmond WA, 98052\nRedmond WA, 98052\nRedmond WA, 98052\nSALESPERSON\nP.O. NUMBER\nREQUISITIONER\nSHIPPED VIA\nF.O.B. POINT\nTERMS\nPO-3333\nDATE\nITEM CODE\nDESCRIPTION\nQTY\nUM\nPRICE\nTAX\nAMOUNT\n3/4/2021\nA123\nConsulting Services\n2\nhours\n$30.00\n10%\n$60.00\n3/5/2021\nB456\nDocument Fee\n3\n$10.00\n5%\n$30.00\n3/6/2021\nC789\nPrinting Fee\n10\npages\n$1.00\n20%\n$10.00\nSUBTOTAL\n$100.00\nSALES TAX\n$10.00\nTOTAL\n$110.00\nPREVIOUS UNPAID BALANCE\n$500.00\nAMOUNT DUE\n$610.00\nTHANK YOU FOR YOUR BUSINESS!\nREMIT TO:\nContoso Billing\n123 Remit St\nNew York, NY, 10001\n:unselected:", + "pages": [ + { + "pageNumber": 1, + "angle": 0, + "width": 8.5, + "height": 11, + "unit": "inch", + "words": [ + { + "content": "CONTOSO", + "polygon": [ + 0.5911, + 0.6857, + 1.7451, + 0.6857, + 1.7451, + 0.8664, + 0.5911, + 0.8664 + ], + "confidence": 1, + "span": { + "offset": 0, + "length": 7 + } + }, + { + "content": "LTD.", + "polygon": [ + 1.8441, + 0.6879, + 2.3181, + 0.6879, + 2.3181, + 0.865, + 1.8441, + 0.865 + ], + "confidence": 1, + "span": { + "offset": 8, + "length": 4 + } + }, + { + "content": "INVOICE", + "polygon": [ + 7.0751, + 0.589, + 7.9886, + 0.589, + 7.9886, + 0.7697, + 7.0751, + 0.7697 + ], + "confidence": 1, + "span": { + "offset": 13, + "length": 7 + } + }, + { + "content": "Contoso", + "polygon": [ + 0.5882, + 1.4303, + 1.1337, + 1.4303, + 1.1337, + 1.5383, + 0.5882, + 1.5383 + ], + "confidence": 1, + "span": { + "offset": 21, + "length": 7 + } + }, + { + "content": "Headquarters", + "polygon": [ + 1.1905, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 1.1905, + 1.5664 + ], + "confidence": 1, + "span": { + "offset": 29, + "length": 12 + } + }, + { + "content": "INVOICE:", + "polygon": [ + 6.8599, + 1.4217, + 7.4328, + 1.4217, + 7.4328, + 1.5218, + 6.8599, + 1.5218 + ], + "confidence": 1, + "span": { + "offset": 42, + "length": 8 + } + }, + { + "content": "INV-100", + "polygon": [ + 7.4959, + 1.422, + 7.9988, + 1.422, + 7.9988, + 1.5215, + 7.4959, + 1.5215 + ], + "confidence": 1, + "span": { + "offset": 51, + "length": 7 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 1.6339, + 0.8213, + 1.6339, + 0.8213, + 1.742, + 0.5945, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 59, + "length": 3 + } + }, + { + "content": "456th", + "polygon": [ + 0.874, + 1.6092, + 1.2102, + 1.6092, + 1.2102, + 1.742, + 0.874, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 63, + "length": 5 + } + }, + { + "content": "St", + "polygon": [ + 1.2598, + 1.6339, + 1.3812, + 1.6339, + 1.3812, + 1.742, + 1.2598, + 1.742 + ], + "confidence": 1, + "span": { + "offset": 69, + "length": 2 + } + }, + { + "content": "INVOICE", + "polygon": [ + 6.2263, + 1.6254, + 6.7562, + 1.6254, + 6.7562, + 1.7256, + 6.2263, + 1.7256 + ], + "confidence": 1, + "span": { + "offset": 72, + "length": 7 + } + }, + { + "content": "DATE:", + "polygon": [ + 6.8132, + 1.6267, + 7.1891, + 1.6267, + 7.1891, + 1.7248, + 6.8132, + 1.7248 + ], + "confidence": 1, + "span": { + "offset": 80, + "length": 5 + } + }, + { + "content": "11/15/2019", + "polygon": [ + 7.2528, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 7.2528, + 1.7449 + ], + "confidence": 1, + "span": { + "offset": 86, + "length": 10 + } + }, + { + "content": "New", + "polygon": [ + 0.5943, + 1.8385, + 0.8848, + 1.8385, + 0.8848, + 1.9454, + 0.5943, + 1.9454 + ], + "confidence": 1, + "span": { + "offset": 97, + "length": 3 + } + }, + { + "content": "York,", + "polygon": [ + 0.9293, + 1.8307, + 1.2568, + 1.8307, + 1.2568, + 1.9675, + 0.9293, + 1.9675 + ], + "confidence": 1, + "span": { + "offset": 101, + "length": 5 + } + }, + { + "content": "NY,", + "polygon": [ + 1.3205, + 1.8382, + 1.5242, + 1.8382, + 1.5242, + 1.9675, + 1.3205, + 1.9675 + ], + "confidence": 1, + "span": { + "offset": 107, + "length": 3 + } + }, + { + "content": "10001", + "polygon": [ + 1.5915, + 1.8372, + 1.9894, + 1.8372, + 1.9894, + 1.9454, + 1.5915, + 1.9454 + ], + "confidence": 1, + "span": { + "offset": 111, + "length": 5 + } + }, + { + "content": "DUE", + "polygon": [ + 6.4966, + 1.8333, + 6.7569, + 1.8333, + 6.7569, + 1.9322, + 6.4966, + 1.9322 + ], + "confidence": 1, + "span": { + "offset": 117, + "length": 3 + } + }, + { + "content": "DATE:", + "polygon": [ + 6.8126, + 1.8333, + 7.1846, + 1.8333, + 7.1846, + 1.9315, + 6.8126, + 1.9315 + ], + "confidence": 1, + "span": { + "offset": 121, + "length": 5 + } + }, + { + "content": "12/15/2019", + "polygon": [ + 7.2494, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 7.2494, + 1.9515 + ], + "confidence": 1, + "span": { + "offset": 127, + "length": 10 + } + }, + { + "content": "CUSTOMER", + "polygon": [ + 4.9513, + 2.0388, + 5.6868, + 2.0388, + 5.6868, + 2.1389, + 4.9513, + 2.1389 + ], + "confidence": 1, + "span": { + "offset": 138, + "length": 8 + } + }, + { + "content": "NAME:", + "polygon": [ + 5.7412, + 2.04, + 6.1764, + 2.04, + 6.1764, + 2.1381, + 5.7412, + 2.1381 + ], + "confidence": 1, + "span": { + "offset": 147, + "length": 5 + } + }, + { + "content": "MICROSOFT", + "polygon": [ + 6.2419, + 2.0391, + 6.9981, + 2.0391, + 6.9981, + 2.1386, + 6.2419, + 2.1386 + ], + "confidence": 1, + "span": { + "offset": 153, + "length": 9 + } + }, + { + "content": "CORPORATION", + "polygon": [ + 7.0448, + 2.0391, + 7.9825, + 2.0391, + 7.9825, + 2.1386, + 7.0448, + 2.1386 + ], + "confidence": 1, + "span": { + "offset": 163, + "length": 11 + } + }, + { + "content": "SERVICE", + "polygon": [ + 5.1667, + 2.2421, + 5.6923, + 2.2421, + 5.6923, + 2.3422, + 5.1667, + 2.3422 + ], + "confidence": 1, + "span": { + "offset": 175, + "length": 7 + } + }, + { + "content": "PERIOD:", + "polygon": [ + 5.748, + 2.2421, + 6.2721, + 2.2421, + 6.2721, + 2.3422, + 5.748, + 2.3422 + ], + "confidence": 1, + "span": { + "offset": 183, + "length": 7 + } + }, + { + "content": "10/14/2019", + "polygon": [ + 6.3357, + 2.2306, + 7.0749, + 2.2306, + 7.0749, + 2.3615, + 6.3357, + 2.3615 + ], + "confidence": 1, + "span": { + "offset": 191, + "length": 10 + } + }, + { + "content": "–", + "polygon": [ + 7.122, + 2.2922, + 7.1995, + 2.2922, + 7.1995, + 2.3037, + 7.122, + 2.3037 + ], + "confidence": 1, + "span": { + "offset": 202, + "length": 1 + } + }, + { + "content": "11/14/2019", + "polygon": [ + 7.2528, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 7.2528, + 2.3615 + ], + "confidence": 1, + "span": { + "offset": 204, + "length": 10 + } + }, + { + "content": "CUSTOMER", + "polygon": [ + 6.3253, + 2.4488, + 7.0608, + 2.4488, + 7.0608, + 2.5489, + 6.3253, + 2.5489 + ], + "confidence": 1, + "span": { + "offset": 215, + "length": 8 + } + }, + { + "content": "ID:", + "polygon": [ + 7.1153, + 2.45, + 7.2809, + 2.45, + 7.2809, + 2.5481, + 7.1153, + 2.5481 + ], + "confidence": 1, + "span": { + "offset": 224, + "length": 3 + } + }, + { + "content": "CID-12345", + "polygon": [ + 7.3369, + 2.4491, + 7.9951, + 2.4491, + 7.9951, + 2.5486, + 7.3369, + 2.5486 + ], + "confidence": 1, + "span": { + "offset": 228, + "length": 9 + } + }, + { + "content": "Microsoft", + "polygon": [ + 0.5943, + 2.6436, + 1.2303, + 2.6436, + 1.2303, + 2.759, + 0.5943, + 2.759 + ], + "confidence": 1, + "span": { + "offset": 238, + "length": 9 + } + }, + { + "content": "Corp", + "polygon": [ + 1.2808, + 2.651, + 1.586, + 2.651, + 1.586, + 2.7871, + 1.2808, + 2.7871 + ], + "confidence": 1, + "span": { + "offset": 248, + "length": 4 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 2.8541, + 0.8213, + 2.8541, + 0.8213, + 2.9623, + 0.5945, + 2.9623 + ], + "confidence": 1, + "span": { + "offset": 253, + "length": 3 + } + }, + { + "content": "Other", + "polygon": [ + 0.875, + 2.8476, + 1.262, + 2.8476, + 1.262, + 2.9623, + 0.875, + 2.9623 + ], + "confidence": 1, + "span": { + "offset": 257, + "length": 5 + } + }, + { + "content": "St,", + "polygon": [ + 1.3058, + 2.8541, + 1.4633, + 2.8541, + 1.4633, + 2.9845, + 1.3058, + 2.9845 + ], + "confidence": 1, + "span": { + "offset": 263, + "length": 3 + } + }, + { + "content": "Redmond", + "polygon": [ + 0.5943, + 3.0513, + 1.2222, + 3.0513, + 1.2222, + 3.1656, + 0.5943, + 3.1656 + ], + "confidence": 1, + "span": { + "offset": 267, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 1.2753, + 3.0585, + 1.5468, + 3.0585, + 1.5468, + 3.1878, + 1.2753, + 3.1878 + ], + "confidence": 1, + "span": { + "offset": 275, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 1.6033, + 3.0575, + 2.0083, + 3.0575, + 2.0083, + 3.1656, + 1.6033, + 3.1656 + ], + "confidence": 1, + "span": { + "offset": 279, + "length": 5 + } + }, + { + "content": "BILL", + "polygon": [ + 0.5909, + 3.5603, + 0.8438, + 3.5603, + 0.8438, + 3.6579, + 0.5909, + 3.6579 + ], + "confidence": 1, + "span": { + "offset": 285, + "length": 4 + } + }, + { + "content": "TO:", + "polygon": [ + 0.8846, + 3.559, + 1.1032, + 3.559, + 1.1032, + 3.6592, + 0.8846, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 290, + "length": 3 + } + }, + { + "content": "SHIP", + "polygon": [ + 3.3361, + 3.559, + 3.6278, + 3.559, + 3.6278, + 3.6592, + 3.3361, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 294, + "length": 4 + } + }, + { + "content": "TO:", + "polygon": [ + 3.6716, + 3.559, + 3.8903, + 3.559, + 3.8903, + 3.6592, + 3.6716, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 299, + "length": 3 + } + }, + { + "content": "SERVICE", + "polygon": [ + 6.2104, + 3.559, + 6.7361, + 3.559, + 6.7361, + 3.6592, + 6.2104, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 303, + "length": 7 + } + }, + { + "content": "ADDRESS:", + "polygon": [ + 6.7828, + 3.559, + 7.4232, + 3.559, + 7.4232, + 3.6592, + 6.7828, + 3.6592 + ], + "confidence": 1, + "span": { + "offset": 311, + "length": 8 + } + }, + { + "content": "Microsoft", + "polygon": [ + 0.5943, + 3.7641, + 1.2303, + 3.7641, + 1.2303, + 3.8794, + 0.5943, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 320, + "length": 9 + } + }, + { + "content": "Finance", + "polygon": [ + 1.287, + 3.7701, + 1.7878, + 3.7701, + 1.7878, + 3.8794, + 1.287, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 330, + "length": 7 + } + }, + { + "content": "Microsoft", + "polygon": [ + 3.3454, + 3.7641, + 3.9814, + 3.7641, + 3.9814, + 3.8794, + 3.3454, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 338, + "length": 9 + } + }, + { + "content": "Delivery", + "polygon": [ + 4.0381, + 3.7647, + 4.5762, + 3.7647, + 4.5762, + 3.9076, + 4.0381, + 3.9076 + ], + "confidence": 1, + "span": { + "offset": 348, + "length": 8 + } + }, + { + "content": "Microsoft", + "polygon": [ + 6.2197, + 3.7641, + 6.8557, + 3.7641, + 6.8557, + 3.8794, + 6.2197, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 357, + "length": 9 + } + }, + { + "content": "Services", + "polygon": [ + 6.9042, + 3.7701, + 7.4427, + 3.7701, + 7.4427, + 3.8794, + 6.9042, + 3.8794 + ], + "confidence": 1, + "span": { + "offset": 367, + "length": 8 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 3.9746, + 0.8213, + 3.9746, + 0.8213, + 4.0827, + 0.5945, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 376, + "length": 3 + } + }, + { + "content": "Bill", + "polygon": [ + 0.8842, + 3.9681, + 1.0657, + 3.9681, + 1.0657, + 4.0817, + 0.8842, + 4.0817 + ], + "confidence": 1, + "span": { + "offset": 380, + "length": 4 + } + }, + { + "content": "St,", + "polygon": [ + 1.1222, + 3.9746, + 1.2765, + 3.9746, + 1.2765, + 4.1049, + 1.1222, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 385, + "length": 3 + } + }, + { + "content": "123", + "polygon": [ + 3.3456, + 3.9746, + 3.5724, + 3.9746, + 3.5724, + 4.0827, + 3.3456, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 389, + "length": 3 + } + }, + { + "content": "Ship", + "polygon": [ + 3.6239, + 3.9681, + 3.9042, + 3.9681, + 3.9042, + 4.1109, + 3.6239, + 4.1109 + ], + "confidence": 1, + "span": { + "offset": 393, + "length": 4 + } + }, + { + "content": "St,", + "polygon": [ + 3.9536, + 3.9746, + 4.1111, + 3.9746, + 4.1111, + 4.1049, + 3.9536, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 398, + "length": 3 + } + }, + { + "content": "123", + "polygon": [ + 6.2199, + 3.9746, + 6.4467, + 3.9746, + 6.4467, + 4.0827, + 6.2199, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 402, + "length": 3 + } + }, + { + "content": "Service", + "polygon": [ + 6.4985, + 3.9734, + 6.9738, + 3.9734, + 6.9738, + 4.0827, + 6.4985, + 4.0827 + ], + "confidence": 1, + "span": { + "offset": 406, + "length": 7 + } + }, + { + "content": "St,", + "polygon": [ + 7.0246, + 3.9746, + 7.1821, + 3.9746, + 7.1821, + 4.1049, + 7.0246, + 4.1049 + ], + "confidence": 1, + "span": { + "offset": 414, + "length": 3 + } + }, + { + "content": "Redmond", + "polygon": [ + 0.5943, + 4.1717, + 1.2222, + 4.1717, + 1.2222, + 4.2861, + 0.5943, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 418, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 1.2753, + 4.1789, + 1.5468, + 4.1789, + 1.5468, + 4.3082, + 1.2753, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 426, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 1.6033, + 4.1779, + 2.0083, + 4.1779, + 2.0083, + 4.2861, + 1.6033, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 430, + "length": 5 + } + }, + { + "content": "Redmond", + "polygon": [ + 3.3454, + 4.1717, + 3.9732, + 4.1717, + 3.9732, + 4.2861, + 3.3454, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 436, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 4.0264, + 4.1789, + 4.2979, + 4.1789, + 4.2979, + 4.3082, + 4.0264, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 444, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 4.3544, + 4.1779, + 4.7594, + 4.1779, + 4.7594, + 4.2861, + 4.3544, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 448, + "length": 5 + } + }, + { + "content": "Redmond", + "polygon": [ + 6.2197, + 4.1717, + 6.8475, + 4.1717, + 6.8475, + 4.2861, + 6.2197, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 454, + "length": 7 + } + }, + { + "content": "WA,", + "polygon": [ + 6.9007, + 4.1789, + 7.1722, + 4.1789, + 7.1722, + 4.3082, + 6.9007, + 4.3082 + ], + "confidence": 1, + "span": { + "offset": 462, + "length": 3 + } + }, + { + "content": "98052", + "polygon": [ + 7.2287, + 4.1779, + 7.6337, + 4.1779, + 7.6337, + 4.2861, + 7.2287, + 4.2861 + ], + "confidence": 1, + "span": { + "offset": 466, + "length": 5 + } + }, + { + "content": "SALESPERSON", + "polygon": [ + 0.7018, + 4.6528, + 1.6092, + 4.6528, + 1.6092, + 4.7529, + 0.7018, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 472, + "length": 11 + } + }, + { + "content": "P.O.", + "polygon": [ + 2.1216, + 4.6528, + 2.3788, + 4.6528, + 2.3788, + 4.7529, + 2.1216, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 484, + "length": 4 + } + }, + { + "content": "NUMBER", + "polygon": [ + 2.4376, + 4.654, + 3.0155, + 4.654, + 3.0155, + 4.7529, + 2.4376, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 489, + "length": 6 + } + }, + { + "content": "REQUISITIONER", + "polygon": [ + 3.4953, + 4.6528, + 4.5157, + 4.6528, + 4.5157, + 4.7687, + 3.4953, + 4.7687 + ], + "confidence": 1, + "span": { + "offset": 496, + "length": 13 + } + }, + { + "content": "SHIPPED", + "polygon": [ + 4.81, + 4.6528, + 5.362, + 4.6528, + 5.362, + 4.7529, + 4.81, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 510, + "length": 7 + } + }, + { + "content": "VIA", + "polygon": [ + 5.409, + 4.654, + 5.6317, + 4.654, + 5.6317, + 4.7517, + 5.409, + 4.7517 + ], + "confidence": 1, + "span": { + "offset": 518, + "length": 3 + } + }, + { + "content": "F.O.B.", + "polygon": [ + 5.8696, + 4.6528, + 6.2467, + 4.6528, + 6.2467, + 4.7529, + 5.8696, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 522, + "length": 6 + } + }, + { + "content": "POINT", + "polygon": [ + 6.3054, + 4.6528, + 6.706, + 4.6528, + 6.706, + 4.7529, + 6.3054, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 529, + "length": 5 + } + }, + { + "content": "TERMS", + "polygon": [ + 7.1806, + 4.6528, + 7.6304, + 4.6528, + 7.6304, + 4.7529, + 7.1806, + 4.7529 + ], + "confidence": 1, + "span": { + "offset": 535, + "length": 5 + } + }, + { + "content": "PO-3333", + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ], + "confidence": 1, + "span": { + "offset": 541, + "length": 7 + } + }, + { + "content": "DATE", + "polygon": [ + 0.7409, + 5.421, + 1.0744, + 5.421, + 1.0744, + 5.5186, + 0.7409, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 549, + "length": 4 + } + }, + { + "content": "ITEM", + "polygon": [ + 1.4213, + 5.421, + 1.7338, + 5.421, + 1.7338, + 5.5186, + 1.4213, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 554, + "length": 4 + } + }, + { + "content": "CODE", + "polygon": [ + 1.7893, + 5.4197, + 2.1407, + 5.4197, + 2.1407, + 5.5199, + 1.7893, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 559, + "length": 4 + } + }, + { + "content": "DESCRIPTION", + "polygon": [ + 2.8516, + 5.4197, + 3.7134, + 5.4197, + 3.7134, + 5.5199, + 2.8516, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 564, + "length": 11 + } + }, + { + "content": "QTY", + "polygon": [ + 4.4043, + 5.4197, + 4.6631, + 5.4197, + 4.6631, + 5.5357, + 4.4043, + 5.5357 + ], + "confidence": 1, + "span": { + "offset": 576, + "length": 3 + } + }, + { + "content": "UM", + "polygon": [ + 5.049, + 5.421, + 5.2654, + 5.421, + 5.2654, + 5.5199, + 5.049, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 580, + "length": 2 + } + }, + { + "content": "PRICE", + "polygon": [ + 5.8563, + 5.4199, + 6.2163, + 5.4199, + 6.2163, + 5.5197, + 5.8563, + 5.5197 + ], + "confidence": 1, + "span": { + "offset": 583, + "length": 5 + } + }, + { + "content": "TAX", + "polygon": [ + 6.7169, + 5.421, + 6.974, + 5.421, + 6.974, + 5.5186, + 6.7169, + 5.5186 + ], + "confidence": 1, + "span": { + "offset": 589, + "length": 3 + } + }, + { + "content": "AMOUNT", + "polygon": [ + 7.2847, + 5.4197, + 7.9039, + 5.4197, + 7.9039, + 5.5199, + 7.2847, + 5.5199 + ], + "confidence": 1, + "span": { + "offset": 593, + "length": 6 + } + }, + { + "content": "3/4/2021", + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ], + "confidence": 1, + "span": { + "offset": 600, + "length": 8 + } + }, + { + "content": "A123", + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 609, + "length": 4 + } + }, + { + "content": "Consulting", + "polygon": [ + 2.3388, + 5.6883, + 3.0438, + 5.6883, + 3.0438, + 5.8312, + 2.3388, + 5.8312 + ], + "confidence": 1, + "span": { + "offset": 614, + "length": 10 + } + }, + { + "content": "Services", + "polygon": [ + 3.0925, + 5.6937, + 3.6278, + 5.6937, + 3.6278, + 5.803, + 3.0925, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 625, + "length": 8 + } + }, + { + "content": "2", + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ], + "confidence": 1, + "span": { + "offset": 634, + "length": 1 + } + }, + { + "content": "hours", + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ], + "confidence": 1, + "span": { + "offset": 636, + "length": 5 + } + }, + { + "content": "$30.00", + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ], + "confidence": 1, + "span": { + "offset": 642, + "length": 6 + } + }, + { + "content": "10%", + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ], + "confidence": 1, + "span": { + "offset": 649, + "length": 3 + } + }, + { + "content": "$60.00", + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ], + "confidence": 1, + "span": { + "offset": 653, + "length": 6 + } + }, + { + "content": "3/5/2021", + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ], + "confidence": 1, + "span": { + "offset": 660, + "length": 8 + } + }, + { + "content": "B456", + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 669, + "length": 4 + } + }, + { + "content": "Document", + "polygon": [ + 2.345, + 5.993, + 3.0318, + 5.993, + 3.0318, + 6.0997, + 2.345, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 674, + "length": 8 + } + }, + { + "content": "Fee", + "polygon": [ + 3.0887, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 3.0887, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 683, + "length": 3 + } + }, + { + "content": "3", + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ], + "confidence": 1, + "span": { + "offset": 687, + "length": 1 + } + }, + { + "content": "$10.00", + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ], + "confidence": 1, + "span": { + "offset": 689, + "length": 6 + } + }, + { + "content": "5%", + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ], + "confidence": 1, + "span": { + "offset": 696, + "length": 2 + } + }, + { + "content": "$30.00", + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ], + "confidence": 1, + "span": { + "offset": 699, + "length": 6 + } + }, + { + "content": "3/6/2021", + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ], + "confidence": 1, + "span": { + "offset": 706, + "length": 8 + } + }, + { + "content": "C789", + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 715, + "length": 4 + } + }, + { + "content": "Printing", + "polygon": [ + 2.345, + 6.2906, + 2.8575, + 6.2906, + 2.8575, + 6.4281, + 2.345, + 6.4281 + ], + "confidence": 1, + "span": { + "offset": 720, + "length": 8 + } + }, + { + "content": "Fee", + "polygon": [ + 2.9143, + 6.2933, + 3.1351, + 6.2933, + 3.1351, + 6.3999, + 2.9143, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 729, + "length": 3 + } + }, + { + "content": "10", + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ], + "confidence": 1, + "span": { + "offset": 733, + "length": 2 + } + }, + { + "content": "pages", + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ], + "confidence": 1, + "span": { + "offset": 736, + "length": 5 + } + }, + { + "content": "$1.00", + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ], + "confidence": 1, + "span": { + "offset": 742, + "length": 5 + } + }, + { + "content": "20%", + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ], + "confidence": 1, + "span": { + "offset": 748, + "length": 3 + } + }, + { + "content": "$10.00", + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ], + "confidence": 1, + "span": { + "offset": 752, + "length": 6 + } + }, + { + "content": "SUBTOTAL", + "polygon": [ + 6.0282, + 6.9118, + 6.7309, + 6.9118, + 6.7309, + 7.0199, + 6.0282, + 7.0199 + ], + "confidence": 1, + "span": { + "offset": 759, + "length": 8 + } + }, + { + "content": "$100.00", + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ], + "confidence": 1, + "span": { + "offset": 768, + "length": 7 + } + }, + { + "content": "SALES", + "polygon": [ + 6.0382, + 7.2089, + 6.4262, + 7.2089, + 6.4262, + 7.317, + 6.0382, + 7.317 + ], + "confidence": 1, + "span": { + "offset": 776, + "length": 5 + } + }, + { + "content": "TAX", + "polygon": [ + 6.4702, + 7.2099, + 6.728, + 7.2099, + 6.728, + 7.316, + 6.4702, + 7.316 + ], + "confidence": 1, + "span": { + "offset": 782, + "length": 3 + } + }, + { + "content": "$10.00", + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ], + "confidence": 1, + "span": { + "offset": 786, + "length": 6 + } + }, + { + "content": "TOTAL", + "polygon": [ + 6.2969, + 7.5089, + 6.7309, + 7.5089, + 6.7309, + 7.617, + 6.2969, + 7.617 + ], + "confidence": 1, + "span": { + "offset": 793, + "length": 5 + } + }, + { + "content": "$110.00", + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ], + "confidence": 1, + "span": { + "offset": 799, + "length": 7 + } + }, + { + "content": "PREVIOUS", + "polygon": [ + 4.8126, + 7.8055, + 5.4789, + 7.8055, + 5.4789, + 7.9137, + 4.8126, + 7.9137 + ], + "confidence": 1, + "span": { + "offset": 807, + "length": 8 + } + }, + { + "content": "UNPAID", + "polygon": [ + 5.5362, + 7.8065, + 6.057, + 7.8065, + 6.057, + 7.9137, + 5.5362, + 7.9137 + ], + "confidence": 1, + "span": { + "offset": 816, + "length": 6 + } + }, + { + "content": "BALANCE", + "polygon": [ + 6.1164, + 7.8057, + 6.7249, + 7.8057, + 6.7249, + 7.9135, + 6.1164, + 7.9135 + ], + "confidence": 1, + "span": { + "offset": 823, + "length": 7 + } + }, + { + "content": "$500.00", + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ], + "confidence": 1, + "span": { + "offset": 831, + "length": 7 + } + }, + { + "content": "AMOUNT", + "polygon": [ + 5.7652, + 8.1022, + 6.4055, + 8.1022, + 6.4055, + 8.2104, + 5.7652, + 8.2104 + ], + "confidence": 1, + "span": { + "offset": 839, + "length": 6 + } + }, + { + "content": "DUE", + "polygon": [ + 6.4562, + 8.1032, + 6.725, + 8.1032, + 6.725, + 8.2104, + 6.4562, + 8.2104 + ], + "confidence": 1, + "span": { + "offset": 846, + "length": 3 + } + }, + { + "content": "$610.00", + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ], + "confidence": 1, + "span": { + "offset": 850, + "length": 7 + } + }, + { + "content": "THANK", + "polygon": [ + 3.129, + 8.5453, + 3.5887, + 8.5453, + 3.5887, + 8.6429, + 3.129, + 8.6429 + ], + "confidence": 1, + "span": { + "offset": 858, + "length": 5 + } + }, + { + "content": "YOU", + "polygon": [ + 3.6316, + 8.544, + 3.9064, + 8.544, + 3.9064, + 8.6442, + 3.6316, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 864, + "length": 3 + } + }, + { + "content": "FOR", + "polygon": [ + 3.9671, + 8.544, + 4.2187, + 8.544, + 4.2187, + 8.6442, + 3.9671, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 868, + "length": 3 + } + }, + { + "content": "YOUR", + "polygon": [ + 4.2638, + 8.544, + 4.6347, + 8.544, + 4.6347, + 8.6442, + 4.2638, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 872, + "length": 4 + } + }, + { + "content": "BUSINESS!", + "polygon": [ + 4.6859, + 8.539, + 5.356, + 8.539, + 5.356, + 8.6442, + 4.6859, + 8.6442 + ], + "confidence": 1, + "span": { + "offset": 877, + "length": 9 + } + }, + { + "content": "REMIT", + "polygon": [ + 0.5909, + 9.1619, + 1.0014, + 9.1619, + 1.0014, + 9.2596, + 0.5909, + 9.2596 + ], + "confidence": 1, + "span": { + "offset": 887, + "length": 5 + } + }, + { + "content": "TO:", + "polygon": [ + 1.0446, + 9.1607, + 1.2603, + 9.1607, + 1.2603, + 9.2608, + 1.0446, + 9.2608 + ], + "confidence": 1, + "span": { + "offset": 893, + "length": 3 + } + }, + { + "content": "Contoso", + "polygon": [ + 0.5882, + 9.3697, + 1.1337, + 9.3697, + 1.1337, + 9.4777, + 0.5882, + 9.4777 + ], + "confidence": 1, + "span": { + "offset": 897, + "length": 7 + } + }, + { + "content": "Billing", + "polygon": [ + 1.1905, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 1.1905, + 9.5059 + ], + "confidence": 1, + "span": { + "offset": 905, + "length": 7 + } + }, + { + "content": "123", + "polygon": [ + 0.5945, + 9.5728, + 0.8213, + 9.5728, + 0.8213, + 9.681, + 0.5945, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 913, + "length": 3 + } + }, + { + "content": "Remit", + "polygon": [ + 0.881, + 9.5717, + 1.264, + 9.5717, + 1.264, + 9.681, + 0.881, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 917, + "length": 5 + } + }, + { + "content": "St", + "polygon": [ + 1.3125, + 9.5728, + 1.4337, + 9.5728, + 1.4337, + 9.681, + 1.3125, + 9.681 + ], + "confidence": 1, + "span": { + "offset": 923, + "length": 2 + } + }, + { + "content": "New", + "polygon": [ + 0.5943, + 9.7808, + 0.8848, + 9.7808, + 0.8848, + 9.8877, + 0.5943, + 9.8877 + ], + "confidence": 1, + "span": { + "offset": 926, + "length": 3 + } + }, + { + "content": "York,", + "polygon": [ + 0.9293, + 9.773, + 1.2568, + 9.773, + 1.2568, + 9.9098, + 0.9293, + 9.9098 + ], + "confidence": 1, + "span": { + "offset": 930, + "length": 5 + } + }, + { + "content": "NY,", + "polygon": [ + 1.3205, + 9.7805, + 1.5233, + 9.7805, + 1.5233, + 9.9098, + 1.3205, + 9.9098 + ], + "confidence": 1, + "span": { + "offset": 936, + "length": 3 + } + }, + { + "content": "10001", + "polygon": [ + 1.5903, + 9.7795, + 1.9882, + 9.7795, + 1.9882, + 9.8877, + 1.5903, + 9.8877 + ], + "confidence": 1, + "span": { + "offset": 940, + "length": 5 + } + } + ], + "selectionMarks": [ + { + "state": "unselected", + "polygon": [ + 4.3231, + 5.6279, + 4.7562, + 5.6279, + 4.7562, + 5.8654, + 4.3231, + 5.8654 + ], + "confidence": 0.212, + "span": { + "offset": 946, + "length": 12 + } + } + ], + "lines": [ + { + "content": "CONTOSO LTD.", + "polygon": [ + 0.5911, + 0.6857, + 2.3181, + 0.6857, + 2.3181, + 0.8664, + 0.5911, + 0.8664 + ], + "spans": [ + { + "offset": 0, + "length": 12 + } + ] + }, + { + "content": "INVOICE", + "polygon": [ + 7.0751, + 0.589, + 7.9886, + 0.589, + 7.9886, + 0.7697, + 7.0751, + 0.7697 + ], + "spans": [ + { + "offset": 13, + "length": 7 + } + ] + }, + { + "content": "Contoso Headquarters", + "polygon": [ + 0.5882, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 0.5882, + 1.5664 + ], + "spans": [ + { + "offset": 21, + "length": 20 + } + ] + }, + { + "content": "INVOICE: INV-100", + "polygon": [ + 6.8599, + 1.4217, + 7.9988, + 1.4217, + 7.9988, + 1.5218, + 6.8599, + 1.5218 + ], + "spans": [ + { + "offset": 42, + "length": 16 + } + ] + }, + { + "content": "123 456th St", + "polygon": [ + 0.5945, + 1.6092, + 1.3812, + 1.6092, + 1.3812, + 1.742, + 0.5945, + 1.742 + ], + "spans": [ + { + "offset": 59, + "length": 12 + } + ] + }, + { + "content": "INVOICE DATE: 11/15/2019", + "polygon": [ + 6.2263, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 6.2263, + 1.7449 + ], + "spans": [ + { + "offset": 72, + "length": 24 + } + ] + }, + { + "content": "New York, NY, 10001", + "polygon": [ + 0.5943, + 1.8307, + 1.9894, + 1.8307, + 1.9894, + 1.9675, + 0.5943, + 1.9675 + ], + "spans": [ + { + "offset": 97, + "length": 19 + } + ] + }, + { + "content": "DUE DATE: 12/15/2019", + "polygon": [ + 6.4966, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 6.4966, + 1.9515 + ], + "spans": [ + { + "offset": 117, + "length": 20 + } + ] + }, + { + "content": "CUSTOMER NAME: MICROSOFT CORPORATION", + "polygon": [ + 4.9513, + 2.0388, + 7.9825, + 2.0388, + 7.9825, + 2.1389, + 4.9513, + 2.1389 + ], + "spans": [ + { + "offset": 138, + "length": 36 + } + ] + }, + { + "content": "SERVICE PERIOD: 10/14/2019 – 11/14/2019", + "polygon": [ + 5.1667, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 5.1667, + 2.3615 + ], + "spans": [ + { + "offset": 175, + "length": 39 + } + ] + }, + { + "content": "CUSTOMER ID: CID-12345", + "polygon": [ + 6.3253, + 2.4488, + 7.9951, + 2.4488, + 7.9951, + 2.5489, + 6.3253, + 2.5489 + ], + "spans": [ + { + "offset": 215, + "length": 22 + } + ] + }, + { + "content": "Microsoft Corp", + "polygon": [ + 0.5943, + 2.6436, + 1.586, + 2.6436, + 1.586, + 2.7871, + 0.5943, + 2.7871 + ], + "spans": [ + { + "offset": 238, + "length": 14 + } + ] + }, + { + "content": "123 Other St,", + "polygon": [ + 0.5945, + 2.8476, + 1.4633, + 2.8476, + 1.4633, + 2.9845, + 0.5945, + 2.9845 + ], + "spans": [ + { + "offset": 253, + "length": 13 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 0.5943, + 3.0513, + 2.0083, + 3.0513, + 2.0083, + 3.1878, + 0.5943, + 3.1878 + ], + "spans": [ + { + "offset": 267, + "length": 17 + } + ] + }, + { + "content": "BILL TO:", + "polygon": [ + 0.5909, + 3.559, + 1.1032, + 3.559, + 1.1032, + 3.6592, + 0.5909, + 3.6592 + ], + "spans": [ + { + "offset": 285, + "length": 8 + } + ] + }, + { + "content": "SHIP TO:", + "polygon": [ + 3.3361, + 3.559, + 3.8903, + 3.559, + 3.8903, + 3.6592, + 3.3361, + 3.6592 + ], + "spans": [ + { + "offset": 294, + "length": 8 + } + ] + }, + { + "content": "SERVICE ADDRESS:", + "polygon": [ + 6.2104, + 3.559, + 7.4232, + 3.559, + 7.4232, + 3.6592, + 6.2104, + 3.6592 + ], + "spans": [ + { + "offset": 303, + "length": 16 + } + ] + }, + { + "content": "Microsoft Finance", + "polygon": [ + 0.5943, + 3.7641, + 1.7878, + 3.7641, + 1.7878, + 3.8794, + 0.5943, + 3.8794 + ], + "spans": [ + { + "offset": 320, + "length": 17 + } + ] + }, + { + "content": "Microsoft Delivery", + "polygon": [ + 3.3454, + 3.7641, + 4.5762, + 3.7641, + 4.5762, + 3.9076, + 3.3454, + 3.9076 + ], + "spans": [ + { + "offset": 338, + "length": 18 + } + ] + }, + { + "content": "Microsoft Services", + "polygon": [ + 6.2197, + 3.7641, + 7.4427, + 3.7641, + 7.4427, + 3.8794, + 6.2197, + 3.8794 + ], + "spans": [ + { + "offset": 357, + "length": 18 + } + ] + }, + { + "content": "123 Bill St,", + "polygon": [ + 0.5945, + 3.9681, + 1.2765, + 3.9681, + 1.2765, + 4.1049, + 0.5945, + 4.1049 + ], + "spans": [ + { + "offset": 376, + "length": 12 + } + ] + }, + { + "content": "123 Ship St,", + "polygon": [ + 3.3456, + 3.9681, + 4.1111, + 3.9681, + 4.1111, + 4.1109, + 3.3456, + 4.1109 + ], + "spans": [ + { + "offset": 389, + "length": 12 + } + ] + }, + { + "content": "123 Service St,", + "polygon": [ + 6.2199, + 3.9734, + 7.1821, + 3.9734, + 7.1821, + 4.1049, + 6.2199, + 4.1049 + ], + "spans": [ + { + "offset": 402, + "length": 15 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 0.5943, + 4.1717, + 2.0083, + 4.1717, + 2.0083, + 4.3082, + 0.5943, + 4.3082 + ], + "spans": [ + { + "offset": 418, + "length": 17 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 3.3454, + 4.1717, + 4.7594, + 4.1717, + 4.7594, + 4.3082, + 3.3454, + 4.3082 + ], + "spans": [ + { + "offset": 436, + "length": 17 + } + ] + }, + { + "content": "Redmond WA, 98052", + "polygon": [ + 6.2197, + 4.1717, + 7.6337, + 4.1717, + 7.6337, + 4.3082, + 6.2197, + 4.3082 + ], + "spans": [ + { + "offset": 454, + "length": 17 + } + ] + }, + { + "content": "SALESPERSON", + "polygon": [ + 0.7018, + 4.6528, + 1.6092, + 4.6528, + 1.6092, + 4.7529, + 0.7018, + 4.7529 + ], + "spans": [ + { + "offset": 472, + "length": 11 + } + ] + }, + { + "content": "P.O. NUMBER", + "polygon": [ + 2.1216, + 4.6528, + 3.0155, + 4.6528, + 3.0155, + 4.7529, + 2.1216, + 4.7529 + ], + "spans": [ + { + "offset": 484, + "length": 11 + } + ] + }, + { + "content": "REQUISITIONER", + "polygon": [ + 3.4953, + 4.6528, + 4.5157, + 4.6528, + 4.5157, + 4.7687, + 3.4953, + 4.7687 + ], + "spans": [ + { + "offset": 496, + "length": 13 + } + ] + }, + { + "content": "SHIPPED VIA", + "polygon": [ + 4.81, + 4.6528, + 5.6317, + 4.6528, + 5.6317, + 4.7529, + 4.81, + 4.7529 + ], + "spans": [ + { + "offset": 510, + "length": 11 + } + ] + }, + { + "content": "F.O.B. POINT", + "polygon": [ + 5.8696, + 4.6528, + 6.706, + 4.6528, + 6.706, + 4.7529, + 5.8696, + 4.7529 + ], + "spans": [ + { + "offset": 522, + "length": 12 + } + ] + }, + { + "content": "TERMS", + "polygon": [ + 7.1806, + 4.6528, + 7.6304, + 4.6528, + 7.6304, + 4.7529, + 7.1806, + 4.7529 + ], + "spans": [ + { + "offset": 535, + "length": 5 + } + ] + }, + { + "content": "PO-3333", + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ], + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + { + "content": "DATE", + "polygon": [ + 0.7409, + 5.421, + 1.0744, + 5.421, + 1.0744, + 5.5186, + 0.7409, + 5.5186 + ], + "spans": [ + { + "offset": 549, + "length": 4 + } + ] + }, + { + "content": "ITEM CODE", + "polygon": [ + 1.4213, + 5.4197, + 2.1407, + 5.4197, + 2.1407, + 5.5199, + 1.4213, + 5.5199 + ], + "spans": [ + { + "offset": 554, + "length": 9 + } + ] + }, + { + "content": "DESCRIPTION", + "polygon": [ + 2.8516, + 5.4197, + 3.7134, + 5.4197, + 3.7134, + 5.5199, + 2.8516, + 5.5199 + ], + "spans": [ + { + "offset": 564, + "length": 11 + } + ] + }, + { + "content": "QTY", + "polygon": [ + 4.4043, + 5.4197, + 4.6631, + 5.4197, + 4.6631, + 5.5357, + 4.4043, + 5.5357 + ], + "spans": [ + { + "offset": 576, + "length": 3 + } + ] + }, + { + "content": "UM", + "polygon": [ + 5.049, + 5.421, + 5.2654, + 5.421, + 5.2654, + 5.5199, + 5.049, + 5.5199 + ], + "spans": [ + { + "offset": 580, + "length": 2 + } + ] + }, + { + "content": "PRICE", + "polygon": [ + 5.8563, + 5.4199, + 6.2163, + 5.4199, + 6.2163, + 5.5197, + 5.8563, + 5.5197 + ], + "spans": [ + { + "offset": 583, + "length": 5 + } + ] + }, + { + "content": "TAX", + "polygon": [ + 6.7169, + 5.421, + 6.974, + 5.421, + 6.974, + 5.5186, + 6.7169, + 5.5186 + ], + "spans": [ + { + "offset": 589, + "length": 3 + } + ] + }, + { + "content": "AMOUNT", + "polygon": [ + 7.2847, + 5.4197, + 7.9039, + 5.4197, + 7.9039, + 5.5199, + 7.2847, + 5.5199 + ], + "spans": [ + { + "offset": 593, + "length": 6 + } + ] + }, + { + "content": "3/4/2021", + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ], + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + { + "content": "A123", + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ], + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + { + "content": "Consulting Services", + "polygon": [ + 2.3388, + 5.6883, + 3.6278, + 5.6883, + 3.6278, + 5.8312, + 2.3388, + 5.8312 + ], + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + { + "content": "2", + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ], + "spans": [ + { + "offset": 634, + "length": 1 + } + ] + }, + { + "content": "hours", + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ], + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + { + "content": "$30.00", + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ], + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + }, + { + "content": "10%", + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ], + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + { + "content": "$60.00", + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ], + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + { + "content": "3/5/2021", + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ], + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + { + "content": "B456", + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ], + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + { + "content": "Document Fee", + "polygon": [ + 2.345, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 2.345, + 6.0997 + ], + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + { + "content": "3", + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ], + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ], + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + }, + { + "content": "5%", + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ], + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + { + "content": "$30.00", + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ], + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + { + "content": "3/6/2021", + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ], + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + { + "content": "C789", + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ], + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + { + "content": "Printing Fee", + "polygon": [ + 2.345, + 6.2906, + 3.1351, + 6.2906, + 3.1351, + 6.4281, + 2.345, + 6.4281 + ], + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + { + "content": "10", + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ], + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + { + "content": "pages", + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ], + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + { + "content": "$1.00", + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ], + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + }, + { + "content": "20%", + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ], + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ], + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + }, + { + "content": "SUBTOTAL", + "polygon": [ + 6.0282, + 6.9118, + 6.7309, + 6.9118, + 6.7309, + 7.0199, + 6.0282, + 7.0199 + ], + "spans": [ + { + "offset": 759, + "length": 8 + } + ] + }, + { + "content": "$100.00", + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ], + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + { + "content": "SALES TAX", + "polygon": [ + 6.0382, + 7.2089, + 6.728, + 7.2089, + 6.728, + 7.317, + 6.0382, + 7.317 + ], + "spans": [ + { + "offset": 776, + "length": 9 + } + ] + }, + { + "content": "$10.00", + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ], + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + { + "content": "TOTAL", + "polygon": [ + 6.2969, + 7.5089, + 6.7309, + 7.5089, + 6.7309, + 7.617, + 6.2969, + 7.617 + ], + "spans": [ + { + "offset": 793, + "length": 5 + } + ] + }, + { + "content": "$110.00", + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ], + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + { + "content": "PREVIOUS UNPAID BALANCE", + "polygon": [ + 4.8126, + 7.8055, + 6.7249, + 7.8055, + 6.7249, + 7.9137, + 4.8126, + 7.9137 + ], + "spans": [ + { + "offset": 807, + "length": 23 + } + ] + }, + { + "content": "$500.00", + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ], + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + { + "content": "AMOUNT DUE", + "polygon": [ + 5.7652, + 8.1022, + 6.725, + 8.1022, + 6.725, + 8.2104, + 5.7652, + 8.2104 + ], + "spans": [ + { + "offset": 839, + "length": 10 + } + ] + }, + { + "content": "$610.00", + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ], + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + }, + { + "content": "THANK YOU FOR YOUR BUSINESS!", + "polygon": [ + 3.129, + 8.539, + 5.356, + 8.539, + 5.356, + 8.6442, + 3.129, + 8.6442 + ], + "spans": [ + { + "offset": 858, + "length": 28 + } + ] + }, + { + "content": "REMIT TO:", + "polygon": [ + 0.5909, + 9.1607, + 1.2603, + 9.1607, + 1.2603, + 9.2608, + 0.5909, + 9.2608 + ], + "spans": [ + { + "offset": 887, + "length": 9 + } + ] + }, + { + "content": "Contoso Billing", + "polygon": [ + 0.5882, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 0.5882, + 9.5059 + ], + "spans": [ + { + "offset": 897, + "length": 15 + } + ] + }, + { + "content": "123 Remit St", + "polygon": [ + 0.5945, + 9.5717, + 1.4337, + 9.5717, + 1.4337, + 9.681, + 0.5945, + 9.681 + ], + "spans": [ + { + "offset": 913, + "length": 12 + } + ] + }, + { + "content": "New York, NY, 10001", + "polygon": [ + 0.5943, + 9.773, + 1.9882, + 9.773, + 1.9882, + 9.9098, + 0.5943, + 9.9098 + ], + "spans": [ + { + "offset": 926, + "length": 19 + } + ] + } + ], + "spans": [ + { + "offset": 0, + "length": 958 + } + ] + } + ], + "tables": [ + { + "rowCount": 4, + "columnCount": 8, + "cells": [ + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "DATE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4932, + 5.329, + 1.3011, + 5.3213, + 1.3011, + 5.6056, + 0.5009, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 549, + "length": 4 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "ITEM CODE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.3213, + 2.2476, + 5.3213, + 2.2399, + 5.6056, + 1.3011, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 554, + "length": 9 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "DESCRIPTION", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2476, + 5.3213, + 4.3174, + 5.329, + 4.3097, + 5.6056, + 2.2399, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 564, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "QTY", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3174, + 5.329, + 4.7483, + 5.329, + 4.7483, + 5.6056, + 4.3097, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 576, + "length": 3 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "UM", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.329, + 5.5639, + 5.329, + 5.5639, + 5.6056, + 4.7483, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 580, + "length": 2 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "PRICE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.329, + 6.495, + 5.329, + 6.495, + 5.6056, + 5.5639, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 583, + "length": 5 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "TAX", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.329, + 7.1875, + 5.329, + 7.1952, + 5.6056, + 6.495, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 589, + "length": 3 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "AMOUNT", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1875, + 5.329, + 7.9954, + 5.329, + 7.9954, + 5.598, + 7.1952, + 5.6056 + ] + } + ], + "spans": [ + { + "offset": 593, + "length": 6 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/4/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5009, + 5.6056, + 1.3011, + 5.6056, + 1.3011, + 5.8976, + 0.5009, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "A123", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.6056, + 2.2399, + 5.6056, + 2.2322, + 5.8976, + 1.3011, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Consulting Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2399, + 5.6056, + 4.3097, + 5.6056, + 4.3097, + 5.8976, + 2.2322, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "2 :unselected:", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 5.6056, + 4.7483, + 5.6056, + 4.7483, + 5.8976, + 4.3097, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 634, + "length": 1 + }, + { + "offset": 946, + "length": 12 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "hours", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.6056, + 5.5639, + 5.6056, + 5.5639, + 5.8976, + 4.7483, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.6056, + 6.495, + 5.6056, + 6.495, + 5.8976, + 5.5639, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "10%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.6056, + 7.1952, + 5.6056, + 7.1952, + 5.8976, + 6.495, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 5.6056, + 7.9954, + 5.598, + 7.9954, + 5.9053, + 7.1952, + 5.8976 + ] + } + ], + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/5/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5009, + 5.8976, + 1.3011, + 5.8976, + 1.3011, + 6.1973, + 0.5086, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "B456", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 5.8976, + 2.2322, + 5.8976, + 2.2245, + 6.1973, + 1.3011, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Document Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2322, + 5.8976, + 4.3097, + 5.8976, + 4.3097, + 6.1973, + 2.2245, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "3", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 5.8976, + 4.7483, + 5.8976, + 4.7483, + 6.1973, + 4.3097, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 5.8976, + 5.5639, + 5.8976, + 5.5639, + 6.1973, + 4.7483, + 6.1973 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 2, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 5.8976, + 6.495, + 5.8976, + 6.495, + 6.1973, + 5.5639, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "5%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 5.8976, + 7.1952, + 5.8976, + 7.1952, + 6.1973, + 6.495, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 5.8976, + 7.9954, + 5.9053, + 7.9954, + 6.1896, + 7.1952, + 6.1973 + ] + } + ], + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "3/6/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5086, + 6.1973, + 1.3011, + 6.1973, + 1.3011, + 6.4969, + 0.5086, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "C789", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.3011, + 6.1973, + 2.2245, + 6.1973, + 2.2245, + 6.4969, + 1.3011, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "Printing Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.2245, + 6.1973, + 4.3097, + 6.1973, + 4.3097, + 6.4969, + 2.2245, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "10", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.3097, + 6.1973, + 4.7483, + 6.1973, + 4.7483, + 6.4969, + 4.3097, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "pages", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7483, + 6.1973, + 5.5639, + 6.1973, + 5.5639, + 6.4969, + 4.7483, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "$1.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.5639, + 6.1973, + 6.495, + 6.1973, + 6.495, + 6.4969, + 5.5639, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 6, + "rowSpan": 1, + "columnSpan": 1, + "content": "20%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.495, + 6.1973, + 7.1952, + 6.1973, + 7.1952, + 6.4969, + 6.495, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 7, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.1952, + 6.1973, + 7.9954, + 6.1896, + 7.9954, + 6.5046, + 7.1952, + 6.4969 + ] + } + ], + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4901, + 5.3293, + 7.9946, + 5.3289, + 7.9954, + 6.5019, + 0.4906, + 6.502 + ] + } + ], + "spans": [ + { + "offset": 549, + "length": 209 + }, + { + "offset": 946, + "length": 12 + } + ] + }, + { + "rowCount": 2, + "columnCount": 6, + "cells": [ + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SALESPERSON", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4977, + 4.565, + 1.8042, + 4.565, + 1.8119, + 4.8388, + 0.5054, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 472, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "P.O. NUMBER", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.8042, + 4.565, + 3.3105, + 4.565, + 3.3105, + 4.8388, + 1.8119, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 484, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "REQUISITIONER", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3105, + 4.565, + 4.6939, + 4.565, + 4.6862, + 4.8388, + 3.3105, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 496, + "length": 13 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "SHIPPED VIA", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.6939, + 4.565, + 5.7468, + 4.565, + 5.7468, + 4.8388, + 4.6862, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 510, + "length": 11 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "F.O.B. POINT", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.7468, + 4.565, + 6.815, + 4.565, + 6.815, + 4.8388, + 5.7468, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 522, + "length": 12 + } + ] + }, + { + "kind": "columnHeader", + "rowIndex": 0, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "TERMS", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.815, + 4.565, + 7.9985, + 4.565, + 7.9985, + 4.8388, + 6.815, + 4.8388 + ] + } + ], + "spans": [ + { + "offset": 535, + "length": 5 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5054, + 4.8388, + 1.8119, + 4.8388, + 1.8119, + 5.1058, + 0.5131, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "PO-3333", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.8119, + 4.8388, + 3.3105, + 4.8388, + 3.3105, + 5.1058, + 1.8119, + 5.1058 + ] + } + ], + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 2, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3105, + 4.8388, + 4.6862, + 4.8388, + 4.6862, + 5.1058, + 3.3105, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 3, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.6862, + 4.8388, + 5.7468, + 4.8388, + 5.7468, + 5.1058, + 4.6862, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 4, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.7468, + 4.8388, + 6.815, + 4.8388, + 6.815, + 5.1058, + 5.7468, + 5.1058 + ] + } + ], + "spans": [] + }, + { + "rowIndex": 1, + "columnIndex": 5, + "rowSpan": 1, + "columnSpan": 1, + "content": "", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.815, + 4.8388, + 7.9985, + 4.8388, + 7.9985, + 5.1125, + 6.815, + 5.1058 + ] + } + ], + "spans": [] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.4971, + 4.565, + 7.9889, + 4.5653, + 7.989, + 5.1146, + 0.4963, + 5.1141 + ] + } + ], + "spans": [ + { + "offset": 472, + "length": 76 + } + ] + }, + { + "rowCount": 5, + "columnCount": 2, + "cells": [ + { + "rowIndex": 0, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SUBTOTAL", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7474, + 6.7934, + 6.8058, + 6.7934, + 6.8105, + 7.0886, + 4.7474, + 7.0886 + ] + } + ], + "spans": [ + { + "offset": 759, + "length": 8 + } + ] + }, + { + "rowIndex": 0, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$100.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8058, + 6.7934, + 7.9981, + 6.7934, + 7.9981, + 7.0934, + 6.8105, + 7.0886 + ] + } + ], + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "SALES TAX", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7474, + 7.0886, + 6.8105, + 7.0886, + 6.8105, + 7.3743, + 4.7427, + 7.3743 + ] + } + ], + "spans": [ + { + "offset": 776, + "length": 9 + } + ] + }, + { + "rowIndex": 1, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.0886, + 7.9981, + 7.0934, + 7.9981, + 7.3934, + 6.8105, + 7.3743 + ] + } + ], + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "TOTAL", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.3743, + 6.8105, + 7.3743, + 6.8105, + 7.6839, + 4.7427, + 7.6839 + ] + } + ], + "spans": [ + { + "offset": 793, + "length": 5 + } + ] + }, + { + "rowIndex": 2, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$110.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.3743, + 7.9981, + 7.3934, + 7.9981, + 7.6886, + 6.8105, + 7.6839 + ] + } + ], + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "PREVIOUS UNPAID BALANCE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.6839, + 6.8105, + 7.6839, + 6.8105, + 7.9743, + 4.7427, + 7.9743 + ] + } + ], + "spans": [ + { + "offset": 807, + "length": 23 + } + ] + }, + { + "rowIndex": 3, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$500.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.6839, + 7.9981, + 7.6886, + 7.9981, + 7.9839, + 6.8105, + 7.9743 + ] + } + ], + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + { + "rowIndex": 4, + "columnIndex": 0, + "rowSpan": 1, + "columnSpan": 1, + "content": "AMOUNT DUE", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7427, + 7.9743, + 6.8105, + 7.9743, + 6.8105, + 8.2839, + 4.7381, + 8.2839 + ] + } + ], + "spans": [ + { + "offset": 839, + "length": 10 + } + ] + }, + { + "rowIndex": 4, + "columnIndex": 1, + "rowSpan": 1, + "columnSpan": 1, + "content": "$610.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.8105, + 7.9743, + 7.9981, + 7.9839, + 7.9981, + 8.2839, + 6.8105, + 8.2839 + ] + } + ], + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + } + ], + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.7456, + 6.7793, + 8.0143, + 6.7788, + 8.0137, + 8.2981, + 4.7446, + 8.2981 + ] + } + ], + "spans": [ + { + "offset": 759, + "length": 98 + } + ] + } + ], + "documents": [ + { + "docType": "prebuilt:invoice", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "fields": { + "AmountDue": { + "type": "number", + "valueNumber": 610, + "content": "$610.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 8.0584, + 7.9181, + 8.0584, + 7.9181, + 8.2022, + 7.3842, + 8.2022 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 850, + "length": 7 + } + ] + }, + "BillingAddress": { + "type": "string", + "valueString": "123 Bill St, Redmond WA, 98052", + "content": "123 Bill St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 3.9681, + 2.0083, + 3.9681, + 2.0083, + 4.3082, + 0.5943, + 4.3082 + ] + } + ], + "confidence": 0.947, + "spans": [ + { + "offset": 376, + "length": 12 + }, + { + "offset": 418, + "length": 17 + } + ] + }, + "BillingAddressRecipient": { + "type": "string", + "valueString": "Microsoft Finance", + "content": "Microsoft Finance", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 3.7641, + 1.7878, + 3.7641, + 1.7878, + 3.8794, + 0.5943, + 3.8794 + ] + } + ], + "confidence": 0.957, + "spans": [ + { + "offset": 320, + "length": 17 + } + ] + }, + "CustomerAddress": { + "type": "string", + "valueString": "123 Other St, Redmond WA, 98052", + "content": "123 Other St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 2.8476, + 2.0083, + 2.8476, + 2.0083, + 3.1878, + 0.5943, + 3.1878 + ] + } + ], + "confidence": 0.947, + "spans": [ + { + "offset": 253, + "length": 31 + } + ] + }, + "CustomerAddressRecipient": { + "type": "string", + "valueString": "Microsoft Corp", + "content": "Microsoft Corp", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 2.6436, + 1.586, + 2.6436, + 1.586, + 2.7871, + 0.5943, + 2.7871 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 238, + "length": 14 + } + ] + }, + "CustomerId": { + "type": "string", + "valueString": "CID-12345", + "content": "CID-12345", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3369, + 2.4491, + 7.9951, + 2.4491, + 7.9951, + 2.5486, + 7.3369, + 2.5486 + ] + } + ], + "confidence": 0.964, + "spans": [ + { + "offset": 228, + "length": 9 + } + ] + }, + "CustomerName": { + "type": "string", + "valueString": "MICROSOFT CORPORATION", + "content": "MICROSOFT CORPORATION", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2419, + 2.0391, + 7.9825, + 2.0391, + 7.9825, + 2.1386, + 6.2419, + 2.1386 + ] + } + ], + "confidence": 0.949, + "spans": [ + { + "offset": 153, + "length": 21 + } + ] + }, + "DueDate": { + "type": "date", + "valueDate": "2019-12-15", + "content": "12/15/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2494, + 1.8206, + 7.993, + 1.8206, + 7.993, + 1.9515, + 7.2494, + 1.9515 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 127, + "length": 10 + } + ] + }, + "InvoiceDate": { + "type": "date", + "valueDate": "2019-11-15", + "content": "11/15/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2528, + 1.6139, + 7.993, + 1.6139, + 7.993, + 1.7449, + 7.2528, + 1.7449 + ] + } + ], + "confidence": 0.972, + "spans": [ + { + "offset": 86, + "length": 10 + } + ] + }, + "InvoiceId": { + "type": "string", + "valueString": "INV-100", + "content": "INV-100", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4959, + 1.422, + 7.9988, + 1.422, + 7.9988, + 1.5215, + 7.4959, + 1.5215 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 51, + "length": 7 + } + ] + }, + "InvoiceTotal": { + "type": "number", + "valueNumber": 110, + "content": "$110.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 7.465, + 7.9181, + 7.465, + 7.9181, + 7.6089, + 7.3842, + 7.6089 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 799, + "length": 7 + } + ] + }, + "Items": { + "type": "array", + "valueArray": [ + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 60, + "content": "$60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8215, + 7.4642, + 5.8215 + ] + } + ], + "confidence": 0.902, + "spans": [ + { + "offset": 653, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-04", + "content": "3/4/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.682, + 1.2092, + 5.682, + 1.2092, + 5.8243, + 0.592, + 5.8243 + ] + } + ], + "confidence": 0.938, + "spans": [ + { + "offset": 600, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Consulting Services", + "content": "Consulting Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.3388, + 5.6883, + 3.6278, + 5.6883, + 3.6278, + 5.8312, + 2.3388, + 5.8312 + ] + } + ], + "confidence": 0.9, + "spans": [ + { + "offset": 614, + "length": 19 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "A123", + "content": "A123", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6069, + 5.6948, + 1.9417, + 5.6948, + 1.9417, + 5.803, + 1.6069, + 5.803 + ] + } + ], + "confidence": 0.877, + "spans": [ + { + "offset": 609, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 2, + "content": "2", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5977, + 5.6948, + 4.6635, + 5.6948, + 4.6635, + 5.8017, + 4.5977, + 5.8017 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 634, + "length": 1 + } + ] + }, + "Tax": { + "type": "number", + "content": "10%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.7168, + 5.6932, + 6.9826, + 5.6932, + 6.9826, + 5.8045, + 6.7168, + 5.8045 + ] + } + ], + "confidence": 0.78, + "spans": [ + { + "offset": 649, + "length": 3 + } + ] + }, + "Unit": { + "type": "string", + "valueString": "hours", + "content": "hours", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.8444, + 5.6883, + 5.2071, + 5.6883, + 5.2071, + 5.803, + 4.8444, + 5.803 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 636, + "length": 5 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 30, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.9669, + 5.6777, + 6.4142, + 5.6777, + 6.4142, + 5.8215, + 5.9669, + 5.8215 + ] + } + ], + "confidence": 0.828, + "spans": [ + { + "offset": 642, + "length": 6 + } + ] + } + }, + "content": "3/4/2021 A123 Consulting Services 2 hours $30.00 10% $60.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.6777, + 7.9116, + 5.6777, + 7.9116, + 5.8312, + 0.592, + 5.8312 + ] + } + ], + "confidence": 0.955, + "spans": [ + { + "offset": 600, + "length": 59 + } + ] + }, + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 30, + "content": "$30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.1182, + 7.4642, + 6.1182 + ] + } + ], + "confidence": 0.916, + "spans": [ + { + "offset": 699, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-05", + "content": "3/5/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.9787, + 1.2088, + 5.9787, + 1.2088, + 6.121, + 0.592, + 6.121 + ] + } + ], + "confidence": 0.902, + "spans": [ + { + "offset": 660, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Document Fee", + "content": "Document Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.345, + 5.993, + 3.3096, + 5.993, + 3.3096, + 6.0997, + 2.345, + 6.0997 + ] + } + ], + "confidence": 0.901, + "spans": [ + { + "offset": 674, + "length": 12 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "B456", + "content": "B456", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6214, + 5.9915, + 1.9419, + 5.9915, + 1.9419, + 6.0997, + 1.6214, + 6.0997 + ] + } + ], + "confidence": 0.886, + "spans": [ + { + "offset": 669, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 3, + "content": "3", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5967, + 5.9915, + 4.6627, + 5.9915, + 4.6627, + 6.0997, + 4.5967, + 6.0997 + ] + } + ], + "confidence": 0.898, + "spans": [ + { + "offset": 687, + "length": 1 + } + ] + }, + "Tax": { + "type": "number", + "content": "5%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.7508, + 5.9898, + 6.9393, + 5.9898, + 6.9393, + 6.1012, + 6.7508, + 6.1012 + ] + } + ], + "confidence": 0.772, + "spans": [ + { + "offset": 696, + "length": 2 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 5.9669, + 5.9743, + 6.4142, + 5.9743, + 6.4142, + 6.1182, + 5.9669, + 6.1182 + ] + } + ], + "confidence": 0.831, + "spans": [ + { + "offset": 689, + "length": 6 + } + ] + } + }, + "content": "3/5/2021 B456 Document Fee 3 $10.00 5% $30.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 5.9743, + 7.9116, + 5.9743, + 7.9116, + 6.121, + 0.592, + 6.121 + ] + } + ], + "confidence": 0.941, + "spans": [ + { + "offset": 660, + "length": 45 + } + ] + }, + { + "type": "object", + "valueObject": { + "Amount": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4642, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4184, + 7.4642, + 6.4184 + ] + } + ], + "confidence": 0.959, + "spans": [ + { + "offset": 752, + "length": 6 + } + ] + }, + "Date": { + "type": "date", + "valueDate": "2021-03-06", + "content": "3/6/2021", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 6.2789, + 1.2088, + 6.2789, + 1.2088, + 6.4213, + 0.592, + 6.4213 + ] + } + ], + "confidence": 0.903, + "spans": [ + { + "offset": 706, + "length": 8 + } + ] + }, + "Description": { + "type": "string", + "valueString": "Printing Fee", + "content": "Printing Fee", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 2.345, + 6.2906, + 3.1351, + 6.2906, + 3.1351, + 6.4281, + 2.345, + 6.4281 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 720, + "length": 12 + } + ] + }, + "ProductCode": { + "type": "string", + "valueString": "C789", + "content": "C789", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.6152, + 6.2918, + 1.94, + 6.2918, + 1.94, + 6.3999, + 1.6152, + 6.3999 + ] + } + ], + "confidence": 0.898, + "spans": [ + { + "offset": 715, + "length": 4 + } + ] + }, + "Quantity": { + "type": "number", + "valueNumber": 10, + "content": "10", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.5158, + 6.2918, + 4.6637, + 6.2918, + 4.6637, + 6.3999, + 4.5158, + 6.3999 + ] + } + ], + "confidence": 0.903, + "spans": [ + { + "offset": 733, + "length": 2 + } + ] + }, + "Tax": { + "type": "number", + "content": "20%", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.712, + 6.2901, + 6.9826, + 6.2901, + 6.9826, + 6.4014, + 6.712, + 6.4014 + ] + } + ], + "confidence": 0.791, + "spans": [ + { + "offset": 748, + "length": 3 + } + ] + }, + "Unit": { + "type": "string", + "valueString": "pages", + "content": "pages", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 4.8444, + 6.3196, + 5.2199, + 6.3196, + 5.2199, + 6.4281, + 4.8444, + 6.4281 + ] + } + ], + "confidence": 0.899, + "spans": [ + { + "offset": 736, + "length": 5 + } + ] + }, + "UnitPrice": { + "type": "number", + "valueNumber": 1, + "content": "$1.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.0502, + 6.2746, + 6.4142, + 6.2746, + 6.4142, + 6.4184, + 6.0502, + 6.4184 + ] + } + ], + "confidence": 0.829, + "spans": [ + { + "offset": 742, + "length": 5 + } + ] + } + }, + "content": "3/6/2021 C789 Printing Fee 10 pages $1.00 20% $10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.592, + 6.2746, + 7.9116, + 6.2746, + 7.9116, + 6.4281, + 0.592, + 6.4281 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 706, + "length": 52 + } + ] + } + ] + }, + "Locale": { + "type": "string", + "valueString": "en-US", + "confidence": 1 + }, + "PreviousUnpaidBalance": { + "type": "number", + "valueNumber": 500, + "content": "$500.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 7.7617, + 7.9181, + 7.7617, + 7.9181, + 7.9055, + 7.3842, + 7.9055 + ] + } + ], + "confidence": 0.962, + "spans": [ + { + "offset": 831, + "length": 7 + } + ] + }, + "PurchaseOrder": { + "type": "string", + "valueString": "PO-3333", + "content": "PO-3333", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 1.9114, + 4.9282, + 2.4718, + 4.9282, + 2.4718, + 5.0363, + 1.9114, + 5.0363 + ] + } + ], + "confidence": 0.967, + "spans": [ + { + "offset": 541, + "length": 7 + } + ] + }, + "RemittanceAddress": { + "type": "string", + "valueString": "123 Remit St New York, NY, 10001", + "content": "123 Remit St New York, NY, 10001", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 9.5717, + 1.9882, + 9.5717, + 1.9882, + 9.9098, + 0.5943, + 9.9098 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 913, + "length": 32 + } + ] + }, + "RemittanceAddressRecipient": { + "type": "string", + "valueString": "Contoso Billing", + "content": "Contoso Billing", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5882, + 9.3631, + 1.5828, + 9.3631, + 1.5828, + 9.5059, + 0.5882, + 9.5059 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 897, + "length": 15 + } + ] + }, + "ServiceAddress": { + "type": "string", + "valueString": "123 Service St, Redmond WA, 98052", + "content": "123 Service St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2197, + 3.9734, + 7.6337, + 3.9734, + 7.6337, + 4.3082, + 6.2197, + 4.3082 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 402, + "length": 15 + }, + { + "offset": 454, + "length": 17 + } + ] + }, + "ServiceAddressRecipient": { + "type": "string", + "valueString": "Microsoft Services", + "content": "Microsoft Services", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.2197, + 3.7641, + 7.4427, + 3.7641, + 7.4427, + 3.8794, + 6.2197, + 3.8794 + ] + } + ], + "confidence": 0.951, + "spans": [ + { + "offset": 357, + "length": 18 + } + ] + }, + "ServiceEndDate": { + "type": "date", + "valueDate": "2019-11-14", + "content": "11/14/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.2528, + 2.2306, + 7.9952, + 2.2306, + 7.9952, + 2.3615, + 7.2528, + 2.3615 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 204, + "length": 10 + } + ] + }, + "ServiceStartDate": { + "type": "date", + "valueDate": "2019-10-14", + "content": "10/14/2019", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 6.3357, + 2.2306, + 7.0749, + 2.2306, + 7.0749, + 2.3615, + 6.3357, + 2.3615 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 191, + "length": 10 + } + ] + }, + "ShippingAddress": { + "type": "string", + "valueString": "123 Ship St, Redmond WA, 98052", + "content": "123 Ship St, Redmond WA, 98052", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3454, + 3.9681, + 4.7594, + 3.9681, + 4.7594, + 4.3082, + 3.3454, + 4.3082 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 389, + "length": 12 + }, + { + "offset": 436, + "length": 17 + } + ] + }, + "ShippingAddressRecipient": { + "type": "string", + "valueString": "Microsoft Delivery", + "content": "Microsoft Delivery", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 3.3454, + 3.7641, + 4.5762, + 3.7641, + 4.5762, + 3.9076, + 3.3454, + 3.9076 + ] + } + ], + "confidence": 0.955, + "spans": [ + { + "offset": 338, + "length": 18 + } + ] + }, + "SubTotal": { + "type": "number", + "valueNumber": 100, + "content": "$100.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.3842, + 6.8679, + 7.9181, + 6.8679, + 7.9181, + 7.0118, + 7.3842, + 7.0118 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 768, + "length": 7 + } + ] + }, + "TotalTax": { + "type": "number", + "valueNumber": 10, + "content": "$10.00", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 7.4709, + 7.165, + 7.9182, + 7.165, + 7.9182, + 7.3089, + 7.4709, + 7.3089 + ] + } + ], + "confidence": 0.973, + "spans": [ + { + "offset": 786, + "length": 6 + } + ] + }, + "VendorAddress": { + "type": "string", + "valueString": "123 456th St New York, NY, 10001", + "content": "123 456th St New York, NY, 10001", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5943, + 1.6092, + 1.9894, + 1.6092, + 1.9894, + 1.9675, + 0.5943, + 1.9675 + ] + } + ], + "confidence": 0.946, + "spans": [ + { + "offset": 59, + "length": 12 + }, + { + "offset": 97, + "length": 19 + } + ] + }, + "VendorAddressRecipient": { + "type": "string", + "valueString": "Contoso Headquarters", + "content": "Contoso Headquarters", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5882, + 1.4239, + 2.0978, + 1.4239, + 2.0978, + 1.5664, + 0.5882, + 1.5664 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 21, + "length": 20 + } + ] + }, + "VendorName": { + "type": "string", + "valueString": "CONTOSO LTD.", + "content": "CONTOSO LTD.", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0.5911, + 0.6857, + 2.3181, + 0.6857, + 2.3181, + 0.8664, + 0.5911, + 0.8664 + ] + } + ], + "confidence": 0.956, + "spans": [ + { + "offset": 0, + "length": 12 + } + ] + } + }, + "confidence": 1, + "spans": [ + { + "offset": 0, + "length": 958 + } + ] + } + ] + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFPdf.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFPdf.json new file mode 100644 index 000000000000..100ba4d2e18b --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFPdf.json @@ -0,0 +1,15 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResultPdf", + "title": "Get Analyze Document Result PDF", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": "{pdfBinary}" + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFigure.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFigure.json new file mode 100644 index 000000000000..28783677e477 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetAnalyzeDocumentResultFigure.json @@ -0,0 +1,16 @@ +{ + "operationId": "DocumentModels_GetAnalyzeResultFigure", + "title": "Get Analyze Document Result Figure", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034", + "figureId": "1.0" + }, + "responses": { + "200": { + "body": "{imageBinary}" + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetClassifyDocumentResult.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetClassifyDocumentResult.json new file mode 100644 index 000000000000..baa3f64fbe62 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetClassifyDocumentResult.json @@ -0,0 +1,104 @@ +{ + "operationId": "DocumentClassifiers_GetClassifyResult", + "title": "Get Classify Document Result", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier", + "resultId": "3b31320d-8bab-4f88-b19c-2322a7f11034" + }, + "responses": { + "200": { + "body": { + "status": "succeeded", + "createdDateTime": "2021-09-24T13:00:46Z", + "lastUpdatedDateTime": "2021-09-24T13:00:49Z", + "analyzeResult": { + "apiVersion": "2024-11-30", + "modelId": "myClassifier", + "stringIndexType": "textElements", + "contentFormat": "text", + "content": "", + "pages": [ + { + "pageNumber": 1, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + }, + { + "pageNumber": 2, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + }, + { + "pageNumber": 3, + "width": 8.5, + "height": 11, + "unit": "inch", + "spans": [] + } + ], + "documents": [ + { + "docType": "formA", + "boundingRegions": [ + { + "pageNumber": 1, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + }, + { + "pageNumber": 2, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "confidence": 0.97, + "spans": [] + }, + { + "docType": "formB", + "boundingRegions": [ + { + "pageNumber": 3, + "polygon": [ + 0, + 0, + 8.5, + 0, + 8.5, + 11, + 0, + 11 + ] + } + ], + "confidence": 0.97, + "spans": [] + } + ] + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifier.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifier.json new file mode 100644 index 000000000000..a2320032dd43 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifier.json @@ -0,0 +1,34 @@ +{ + "operationId": "DocumentClassifiers_GetClassifier", + "title": "Get Document Classifier", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "classifierId": "myClassifier" + }, + "responses": { + "200": { + "body": { + "classifierId": "myClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifiers.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifiers.json new file mode 100644 index 000000000000..b08240d8002c --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentClassifiers.json @@ -0,0 +1,59 @@ +{ + "operationId": "DocumentClassifiers_ListClassifiers", + "title": "Get Document Classifiers", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "classifierId": "classifier1", + "description": "Classifier1 description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formBDocs/" + } + } + } + }, + { + "classifierId": "classifier2", + "description": "Classifier2 description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formB": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formBDocs/" + } + }, + "formC": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formCDocs/" + } + } + } + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Custom.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Custom.json new file mode 100644 index 000000000000..75e64f19785d --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Custom.json @@ -0,0 +1,44 @@ +{ + "operationId": "DocumentModels_GetModel", + "title": "Get Custom Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "myCustomModel" + }, + "responses": { + "200": { + "body": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-24T12:54:35Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "myForm": { + "fieldSchema": { + "Name": { + "type": "string" + }, + "Date": { + "type": "date" + }, + "Amount": { + "type": "number" + } + }, + "buildMode": "template", + "fieldConfidence": { + "Name": 0.9, + "Date": 0.95, + "Amount": 0.93 + } + } + }, + "tags": { + "createdBy": "myUserId" + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Prebuilt.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Prebuilt.json new file mode 100644 index 000000000000..92364f3579db --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModel_Prebuilt.json @@ -0,0 +1,136 @@ +{ + "operationId": "DocumentModels_GetModel", + "title": "Get Prebuilt Document Model", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "modelId": "prebuilt-invoice" + }, + "responses": { + "200": { + "body": { + "modelId": "prebuilt-invoice", + "description": "Prebuilt model to extract key information from English invoices, including customer, vendor, invoice ID, due date, total, and more.", + "createdDateTime": "2021-07-30T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "prebuilt:invoice": { + "fieldSchema": { + "CustomerName": { + "type": "string" + }, + "CustomerId": { + "type": "string" + }, + "PurchaseOrder": { + "type": "string" + }, + "InvoiceId": { + "type": "string" + }, + "InvoiceDate": { + "type": "date" + }, + "DueDate": { + "type": "date" + }, + "VendorName": { + "type": "string" + }, + "VendorAddress": { + "type": "string" + }, + "VendorAddressRecipient": { + "type": "string" + }, + "CustomerAddress": { + "type": "string" + }, + "CustomerAddressRecipient": { + "type": "string" + }, + "BillingAddress": { + "type": "string" + }, + "BillingAddressRecipient": { + "type": "string" + }, + "ShippingAddress": { + "type": "string" + }, + "ShippingAddressRecipient": { + "type": "string" + }, + "SubTotal": { + "type": "number" + }, + "TotalTax": { + "type": "number" + }, + "InvoiceTotal": { + "type": "number" + }, + "AmountDue": { + "type": "number" + }, + "PreviousUnpaidBalance": { + "type": "number" + }, + "RemittanceAddress": { + "type": "string" + }, + "RemittanceAddressRecipient": { + "type": "string" + }, + "ServiceAddress": { + "type": "string" + }, + "ServiceAddressRecipient": { + "type": "string" + }, + "ServiceStartDate": { + "type": "date" + }, + "ServiceEndDate": { + "type": "date" + }, + "Items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "Amount": { + "type": "number" + }, + "Date": { + "type": "date" + }, + "Description": { + "type": "string" + }, + "Quantity": { + "type": "number" + }, + "ProductCode": { + "type": "string" + }, + "Tax": { + "type": "number" + }, + "Unit": { + "type": "string" + }, + "UnitPrice": { + "type": "number" + } + } + } + } + } + } + }, + "tags": {} + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModels.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModels.json new file mode 100644 index 000000000000..670092c131a3 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetDocumentModels.json @@ -0,0 +1,30 @@ +{ + "operationId": "DocumentModels_ListModels", + "title": "Get Document Models", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "modelId": "prebuilt-layout", + "createdDateTime": "2021-07-30T00:00:00Z", + "description": "Prebuilt model to extract text, selection marks, tables, and other layout information.", + "apiVersion": "2024-11-30" + }, + { + "modelId": "myCustomModel", + "createdDateTime": "2021-09-24T12:54:35Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "description": "Custom model description", + "apiVersion": "2024-11-30" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation.json new file mode 100644 index 000000000000..377daaafa79d --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetOperation", + "title": "Get Operation", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierBuild.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierBuild.json new file mode 100644 index 000000000000..7c1daae937d8 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierBuild.json @@ -0,0 +1,43 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentClassifierBuildOperation", + "title": "Get Operation - Document Classifier Build", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentClassifierBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/myClassifier", + "result": { + "classifierId": "myClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierCopyTo.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierCopyTo.json new file mode 100644 index 000000000000..3f00ba21adab --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentClassifierCopyTo.json @@ -0,0 +1,43 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentClassifierCopyToOperation", + "title": "Get Operation - Document Classifier Copy To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentClassifierCopyTo", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentClassifiers/myCustomClassifier", + "result": { + "classifierId": "myCustomClassifier", + "description": "Classifier description", + "createdDateTime": "2022-07-30T00:00:00Z", + "expirationDateTime": "2023-01-01T00:00:00Z", + "apiVersion": "2024-11-30", + "docTypes": { + "formA": { + "azureBlobSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "prefix": "formADocs/" + } + }, + "formB": { + "azureBlobFileListSource": { + "containerUrl": "https://myStorageAccount.blob.core.windows.net/myContainer", + "fileList": "formB.jsonl" + } + } + } + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelBuild.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelBuild.json new file mode 100644 index 000000000000..4f586bb98c9e --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelBuild.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelBuildOperation", + "title": "Get Operation - Document Model Build", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCompose.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCompose.json new file mode 100644 index 000000000000..52e423f53a7e --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCompose.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelComposeOperation", + "title": "Get Operation - Document Model Compose", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelCompose", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCopyTo.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCopyTo.json new file mode 100644 index 000000000000..caabd08a9369 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperation_DocumentModelCopyTo.json @@ -0,0 +1,28 @@ +{ + "operationId": "MiscellaneousOperations_GetDocumentModelCopyToOperation", + "title": "Get Operation - Document Model Copy To", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30", + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4" + }, + "responses": { + "200": { + "body": { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "succeeded", + "percentCompleted": 100, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:13:01Z", + "kind": "documentModelCopyTo", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "result": { + "modelId": "myCustomModel", + "description": "Custom model description", + "createdDateTime": "2021-09-23T09:13:01Z", + "apiVersion": "2024-11-30" + } + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperations.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperations.json new file mode 100644 index 000000000000..3e68a8f4f659 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetOperations.json @@ -0,0 +1,27 @@ +{ + "operationId": "MiscellaneousOperations_ListOperations", + "title": "Get Operations", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "operationId": "b704bb00-d130-4f3f-a1d8-ca96de3eabb4", + "status": "running", + "percentCompleted": 0, + "createdDateTime": "2021-09-23T09:12:57Z", + "lastUpdatedDateTime": "2021-09-23T09:12:58Z", + "kind": "documentModelBuild", + "resourceLocation": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/documentModels/myCustomModel", + "apiVersion": "2024-11-30" + } + ], + "nextLink": "https://myendpoint.cognitiveservices.azure.com/documentintelligence/operations?nextLink=nextLinkData" + } + } + } +} diff --git a/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetResourceDetails.json b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetResourceDetails.json new file mode 100644 index 000000000000..785459d72918 --- /dev/null +++ b/specification/ai/data-plane/DocumentIntelligence/stable/2024-11-30/examples/GetResourceDetails.json @@ -0,0 +1,18 @@ +{ + "operationId": "MiscellaneousOperations_GetResourceDetails", + "title": "Get Resource Details", + "parameters": { + "endpoint": "https://myendpoint.cognitiveservices.azure.com", + "api-version": "2024-11-30" + }, + "responses": { + "200": { + "body": { + "customDocumentModels": { + "count": 2, + "limit": 13 + } + } + } + } +}