github Azure/azure-sdk-for-js @azure-rest/ai-document-intelligence_1.1.0

latest releases: @azure/arm-iotfirmwaredefense_2.0.0, @azure/arm-containerservicesafeguards_1.0.0-beta.1, @azure/cosmos_4.5.1...
3 months ago

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 of DocumentIntelligenceClientOptions#credentials to configure the client to authenticate within a Sovereign Cloud.
    Import and use KnownDocumentIntelligenceAudience 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 Cloud https://cognitiveservices.azure.com.

Don't miss a new azure-sdk-for-js release

NewReleases is sending notifications on new releases.