1.1.0 (2025-05-08)
Features Added
-
Supports alternative cloud environments (Azure United States Government and Azure China Cloud). To use an alternative cloud environment, provide a value for the
scopes
field ofDocumentIntelligenceClientOptions#credentials
to configure the client to authenticate within a Sovereign Cloud.
Import and useKnownDocumentIntelligenceAudience
to get the correct values for a given cloud environment. The currently supported cloud environments are:KnownDocumentIntelligenceAudience.AzureChina
("https://cognitiveservices.azure.cn"
),KnownDocumentIntelligenceAudience.AzureGovernment
("https://cognitiveservices.azure.us"
),KnownDocumentIntelligenceAudience.AzurePublicCloud
("https://cognitiveservices.azure.com"
),
const client = DocumentIntelligence( "<cognitive services endpoint>", <--credential-->, { credentials: { scopes: [ KnownDocumentIntelligenceAudience.AzureGovernment ] } } );
If
scopes
is undefined, the default value is suitable for the Azure Public Cloudhttps://cognitiveservices.azure.com
.