-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document Intelligence 2024-11-30 GA (#31522)
* Document Intelligence 2024-11-30 GA * Fix validation * Address feedback. * Update tspconfig.yaml * Remove extra file * Update description of `pages` for clarity. * Update class names to reflect SDK architect feedback. No behavioral change. * More class renames. --------- Co-authored-by: Harsha Nalluru <[email protected]>
- Loading branch information
1 parent
894ad2b
commit dd4ae36
Showing
79 changed files
with
22,050 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeBatchDocuments.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Base64.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Stream.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
specification/ai/DocumentIntelligence/examples/2024-11-30/AnalyzeDocument_Url.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...fication/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentClassifier.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
specification/ai/DocumentIntelligence/examples/2024-11-30/AuthorizeCopyDocumentModel.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
specification/ai/DocumentIntelligence/examples/2024-11-30/BuildDocumentClassifier.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.