diff --git a/packages/@azure/arm-mediaservices/LICENSE.txt b/packages/@azure/arm-mediaservices/LICENSE.txt index a70e8cf66038..8f3d856145c5 100644 --- a/packages/@azure/arm-mediaservices/LICENSE.txt +++ b/packages/@azure/arm-mediaservices/LICENSE.txt @@ -1,21 +1,21 @@ -The MIT License (MIT) - -Copyright (c) 2018 Microsoft - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +The MIT License (MIT) + +Copyright (c) 2019 Microsoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/packages/@azure/arm-mediaservices/README.md b/packages/@azure/arm-mediaservices/README.md index e47f2234cbab..9ad8dfb2ae5e 100644 --- a/packages/@azure/arm-mediaservices/README.md +++ b/packages/@azure/arm-mediaservices/README.md @@ -1,103 +1,100 @@ -## Azure AzureMediaServices SDK for JavaScript - -This package contains an isomorphic SDK for AzureMediaServices. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -```bash -npm install @azure/arm-mediaservices -``` - -### How to use - -#### nodejs - Authentication, client creation and list accountFilters as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -```bash -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { AzureMediaServices, AzureMediaServicesModels, AzureMediaServicesMappers } from "@azure/arm-mediaservices"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new AzureMediaServices(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const accountName = "testaccountName"; - client.accountFilters.list(resourceGroupName, accountName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and list accountFilters as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-mediaservices sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-mediaservices%2FREADME.png) +## Azure AzureMediaServices SDK for JavaScript + +This package contains an isomorphic SDK for AzureMediaServices. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-mediaservices +``` + +### How to use + +#### nodejs - Authentication, client creation and list accountFilters as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { AzureMediaServices, AzureMediaServicesModels, AzureMediaServicesMappers } from "@azure/arm-mediaservices"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new AzureMediaServices(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const accountName = "testaccountName"; + client.accountFilters.list(resourceGroupName, accountName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and list accountFilters as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-mediaservices sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-mediaservices/lib/models/accountFiltersMappers.ts b/packages/@azure/arm-mediaservices/lib/models/accountFiltersMappers.ts index 1fe8c0885690..204bf83f1236 100644 --- a/packages/@azure/arm-mediaservices/lib/models/accountFiltersMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/accountFiltersMappers.ts @@ -87,6 +87,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/assetFiltersMappers.ts b/packages/@azure/arm-mediaservices/lib/models/assetFiltersMappers.ts index ebcd3601d381..8992269acc03 100644 --- a/packages/@azure/arm-mediaservices/lib/models/assetFiltersMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/assetFiltersMappers.ts @@ -87,6 +87,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/assetsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/assetsMappers.ts index dff866282e3e..d39753360c38 100644 --- a/packages/@azure/arm-mediaservices/lib/models/assetsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/assetsMappers.ts @@ -93,6 +93,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/contentKeyPoliciesMappers.ts b/packages/@azure/arm-mediaservices/lib/models/contentKeyPoliciesMappers.ts index ae41464d591b..08dff697422d 100644 --- a/packages/@azure/arm-mediaservices/lib/models/contentKeyPoliciesMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/contentKeyPoliciesMappers.ts @@ -93,6 +93,7 @@ export { ContentKeyPolicySymmetricTokenKey, ContentKeyPolicyRsaTokenKey, ContentKeyPolicyX509CertificateTokenKey, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/index.ts b/packages/@azure/arm-mediaservices/lib/models/index.ts index f56149846de2..42d577b52812 100644 --- a/packages/@azure/arm-mediaservices/lib/models/index.ts +++ b/packages/@azure/arm-mediaservices/lib/models/index.ts @@ -1364,7 +1364,7 @@ export interface ContentKeyPolicy extends ProxyResource { /** * Contains the possible cases for Preset. */ -export type PresetUnion = Preset | AudioAnalyzerPresetUnion | BuiltInStandardEncoderPreset | StandardEncoderPreset; +export type PresetUnion = Preset | FaceDetectorPreset | AudioAnalyzerPresetUnion | BuiltInStandardEncoderPreset | StandardEncoderPreset; /** * @interface @@ -1478,6 +1478,37 @@ export interface AacAudio { profile?: AacAudioProfile; } +/** + * @interface + * An interface representing FaceDetectorPreset. + * Describes all the settings to be used when analyzing a video in order to + * detect all the faces present. + * + */ +export interface FaceDetectorPreset { + /** + * @member {string} odatatype Polymorphic Discriminator + */ + odatatype: "#Microsoft.Media.FaceDetectorPreset"; + /** + * @member {AnalysisResolution} [resolution] Specifies the maximum resolution + * at which your video is analyzed. The default behavior is + * "SourceResolution," which will keep the input video at its original + * resolution when analyzed. Using "StandardDefinition" will resize input + * videos to standard definition while preserving the appropriate aspect + * ratio. It will only resize if the video is of higher resolution. For + * example, a 1920x1080 input would be scaled to 640x360 before processing. + * Switching to "StandardDefinition" will reduce the time it takes to process + * high resolution video. It may also reduce the cost of using this component + * (see + * https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics + * for details). However, faces that end up being too small in the resized + * video may not be detected. Possible values include: 'SourceResolution', + * 'StandardDefinition' + */ + resolution?: AnalysisResolution; +} + /** * Contains the possible cases for AudioAnalyzerPreset. */ @@ -1498,15 +1529,21 @@ export interface AudioAnalyzerPreset { odatatype: "#Microsoft.Media.AudioAnalyzerPreset"; /** * @member {string} [audioLanguage] The language for the audio payload in the - * input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The - * list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', - * 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU', - * 'hi-IN'. If not specified, automatic language detection would be employed. - * This feature currently supports English, Chinese, French, German, Italian, - * Japanese, Spanish, Russian, and Portuguese. The automatic detection works - * best with audio recordings with clearly discernable speech. If automatic - * detection fails to find the language, transcription would fallback to - * English. + * input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). + * The list of supported languages are English ('en-US' and 'en-GB'), Spanish + * ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese + * ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), + * Arabic ('ar-EG'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean + * ('ko-KR'). If you know the language of your content, it is recommended + * that you specify it. If the language isn't specified or set to null, + * automatic language detection will choose the first language detected and + * process with the selected language for the duration of the file. This + * language detection feature currently supports English, Chinese, French, + * German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not + * currently support dynamically switching between languages after the first + * language is detected. The automatic detection works best with audio + * recordings with clearly discernable speech. If automatic detection fails + * to find the language, transcription would fallback to 'en-US'." */ audioLanguage?: string; } @@ -1528,13 +1565,13 @@ export interface Overlay { */ odatatype: "Overlay"; /** - * @member {string} [inputLabel] The label of the job input which is to be - * used as an overlay. The Input must specify exactly one file. You can - * specify an image file in JPG or PNG formats, or an audio file (such as a - * WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - * for the complete list of supported audio and video file formats. + * @member {string} inputLabel The label of the job input which is to be used + * as an overlay. The Input must specify exactly one file. You can specify an + * image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, + * WMA or M4A file), or a video file. See https://aka.ms/mesformats for the + * complete list of supported audio and video file formats. */ - inputLabel?: string; + inputLabel: string; /** * @member {string} [start] The start position, with reference to the input * video, at which the overlay starts. The value should be in ISO 8601 @@ -1585,13 +1622,13 @@ export interface AudioOverlay { */ odatatype: "#Microsoft.Media.AudioOverlay"; /** - * @member {string} [inputLabel] The label of the job input which is to be - * used as an overlay. The Input must specify exactly one file. You can - * specify an image file in JPG or PNG formats, or an audio file (such as a - * WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - * for the complete list of supported audio and video file formats. + * @member {string} inputLabel The label of the job input which is to be used + * as an overlay. The Input must specify exactly one file. You can specify an + * image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, + * WMA or M4A file), or a video file. See https://aka.ms/mesformats for the + * complete list of supported audio and video file formats. */ - inputLabel?: string; + inputLabel: string; /** * @member {string} [start] The start position, with reference to the input * video, at which the overlay starts. The value should be in ISO 8601 @@ -1721,14 +1758,14 @@ export interface Image { */ stretchMode?: StretchMode; /** - * @member {string} [start] The position in the input video from where to - * start generating thumbnails. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - * or a relative value (For example, 1%). Also supports a macro {Best}, which + * @member {string} start The position in the input video from where to start + * generating thumbnails. The value can be in absolute timestamp (ISO 8601, + * e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a + * relative value (For example, 1%). Also supports a macro {Best}, which * tells the encoder to select the best thumbnail from the first few seconds * of the video. */ - start?: string; + start: string; /** * @member {string} [step] The intervals at which thumbnails are generated. * The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image @@ -1763,7 +1800,7 @@ export interface Format { */ odatatype: "Format"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -1772,7 +1809,7 @@ export interface Format { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; } /** @@ -1792,7 +1829,7 @@ export interface ImageFormat { */ odatatype: "#Microsoft.Media.ImageFormat"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -1801,7 +1838,7 @@ export interface ImageFormat { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; } /** @@ -1816,7 +1853,7 @@ export interface JpgFormat { */ odatatype: "#Microsoft.Media.JpgFormat"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -1825,7 +1862,7 @@ export interface JpgFormat { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; } /** @@ -1840,7 +1877,7 @@ export interface PngFormat { */ odatatype: "#Microsoft.Media.PngFormat"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -1849,7 +1886,7 @@ export interface PngFormat { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; } /** @@ -2030,11 +2067,11 @@ export interface VideoLayer { */ label?: string; /** - * @member {number} [bitrate] The average bitrate in bits per second at which + * @member {number} bitrate The average bitrate in bits per second at which * to encode the input video when generating this layer. This is a required * field. */ - bitrate?: number; + bitrate: number; /** * @member {number} [maxBitrate] The maximum bitrate (in bits per second), at * which the VBV buffer should be assumed to refill. If not specified, @@ -2102,11 +2139,11 @@ export interface H264Layer { */ label?: string; /** - * @member {number} [bitrate] The average bitrate in bits per second at which + * @member {number} bitrate The average bitrate in bits per second at which * to encode the input video when generating this layer. This is a required * field. */ - bitrate?: number; + bitrate: number; /** * @member {number} [maxBitrate] The maximum bitrate (in bits per second), at * which the VBV buffer should be assumed to refill. If not specified, @@ -2290,14 +2327,14 @@ export interface JpgImage { */ stretchMode?: StretchMode; /** - * @member {string} [start] The position in the input video from where to - * start generating thumbnails. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - * or a relative value (For example, 1%). Also supports a macro {Best}, which + * @member {string} start The position in the input video from where to start + * generating thumbnails. The value can be in absolute timestamp (ISO 8601, + * e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a + * relative value (For example, 1%). Also supports a macro {Best}, which * tells the encoder to select the best thumbnail from the first few seconds * of the video. */ - start?: string; + start: string; /** * @member {string} [step] The intervals at which thumbnails are generated. * The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image @@ -2328,14 +2365,14 @@ export interface JpgImage { */ export interface OutputFile { /** - * @member {string[]} [labels] The list of labels that describe how the - * encoder should multiplex video and audio into an output file. For example, - * if the encoder is producing two video layers with labels v1 and v2, and - * one audio layer with label a1, then an array like '[v1, a1]' tells the - * encoder to produce an output file with the video track represented by v1 - * and the audio track represented by a1. + * @member {string[]} labels The list of labels that describe how the encoder + * should multiplex video and audio into an output file. For example, if the + * encoder is producing two video layers with labels v1 and v2, and one audio + * layer with label a1, then an array like '[v1, a1]' tells the encoder to + * produce an output file with the video track represented by v1 and the + * audio track represented by a1. */ - labels?: string[]; + labels: string[]; } /** @@ -2359,7 +2396,7 @@ export interface MultiBitrateFormat { */ odatatype: "#Microsoft.Media.MultiBitrateFormat"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -2368,7 +2405,7 @@ export interface MultiBitrateFormat { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; /** * @member {OutputFile[]} [outputFiles] The list of output files to produce. * Each entry in the list is a set of audio and video layer labels to be @@ -2389,7 +2426,7 @@ export interface Mp4Format { */ odatatype: "#Microsoft.Media.Mp4Format"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -2398,7 +2435,7 @@ export interface Mp4Format { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; /** * @member {OutputFile[]} [outputFiles] The list of output files to produce. * Each entry in the list is a set of audio and video layer labels to be @@ -2470,14 +2507,14 @@ export interface PngImage { */ stretchMode?: StretchMode; /** - * @member {string} [start] The position in the input video from where to - * start generating thumbnails. The value can be in absolute timestamp (ISO - * 8601, e.g: PT05S), or a frame count (For example, 10 for the 10th frame), - * or a relative value (For example, 1%). Also supports a macro {Best}, which + * @member {string} start The position in the input video from where to start + * generating thumbnails. The value can be in absolute timestamp (ISO 8601, + * e.g: PT05S), or a frame count (For example, 10 for the 10th frame), or a + * relative value (For example, 1%). Also supports a macro {Best}, which * tells the encoder to select the best thumbnail from the first few seconds * of the video. */ - start?: string; + start: string; /** * @member {string} [step] The intervals at which thumbnails are generated. * The value can be in absolute timestamp (ISO 8601, e.g: PT05S for one image @@ -2540,15 +2577,15 @@ export interface StandardEncoderPreset { */ filters?: Filters; /** - * @member {CodecUnion[]} [codecs] The list of codecs to be used when - * encoding the input video. + * @member {CodecUnion[]} codecs The list of codecs to be used when encoding + * the input video. */ - codecs?: CodecUnion[]; + codecs: CodecUnion[]; /** - * @member {FormatUnion[]} [formats] The list of outputs to be produced by - * the encoder. + * @member {FormatUnion[]} formats The list of outputs to be produced by the + * encoder. */ - formats?: FormatUnion[]; + formats: FormatUnion[]; } /** @@ -2565,15 +2602,21 @@ export interface VideoAnalyzerPreset { odatatype: "#Microsoft.Media.VideoAnalyzerPreset"; /** * @member {string} [audioLanguage] The language for the audio payload in the - * input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). The - * list of supported languages are, 'en-US', 'en-GB', 'es-ES', 'es-MX', - * 'fr-FR', 'it-IT', 'ja-JP', 'pt-BR', 'zh-CN', 'de-DE', 'ar-EG', 'ru-RU', - * 'hi-IN'. If not specified, automatic language detection would be employed. - * This feature currently supports English, Chinese, French, German, Italian, - * Japanese, Spanish, Russian, and Portuguese. The automatic detection works - * best with audio recordings with clearly discernable speech. If automatic - * detection fails to find the language, transcription would fallback to - * English. + * input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). + * The list of supported languages are English ('en-US' and 'en-GB'), Spanish + * ('es-ES' and 'es-MX'), French ('fr-FR'), Italian ('it-IT'), Japanese + * ('ja-JP'), Portuguese ('pt-BR'), Chinese ('zh-CN'), German ('de-DE'), + * Arabic ('ar-EG'), Russian ('ru-RU'), Hindi ('hi-IN'), and Korean + * ('ko-KR'). If you know the language of your content, it is recommended + * that you specify it. If the language isn't specified or set to null, + * automatic language detection will choose the first language detected and + * process with the selected language for the duration of the file. This + * language detection feature currently supports English, Chinese, French, + * German, Italian, Japanese, Spanish, Russian, and Portuguese. It does not + * currently support dynamically switching between languages after the first + * language is detected. The automatic detection works best with audio + * recordings with clearly discernable speech. If automatic detection fails + * to find the language, transcription would fallback to 'en-US'." */ audioLanguage?: string; /** @@ -2599,7 +2642,7 @@ export interface TransportStreamFormat { */ odatatype: "#Microsoft.Media.TransportStreamFormat"; /** - * @member {string} [filenamePattern] The pattern of the file names for the + * @member {string} filenamePattern The pattern of the file names for the * generated output files. The following macros are supported in the file * name: {Basename} - The base name of the input video {Extension} - The * appropriate extension for this format. {Label} - The label assigned to the @@ -2608,7 +2651,7 @@ export interface TransportStreamFormat { * thumbnails. {Codec} - The type of the audio/video codec. Any unsubstituted * macros will be collapsed and removed from the filename. */ - filenamePattern?: string; + filenamePattern: string; /** * @member {OutputFile[]} [outputFiles] The list of output files to produce. * Each entry in the list is a set of audio and video layer labels to be @@ -2629,13 +2672,13 @@ export interface VideoOverlay { */ odatatype: "#Microsoft.Media.VideoOverlay"; /** - * @member {string} [inputLabel] The label of the job input which is to be - * used as an overlay. The Input must specify exactly one file. You can - * specify an image file in JPG or PNG formats, or an audio file (such as a - * WAV, MP3, WMA or M4A file), or a video file. See https://aka.ms/mesformats - * for the complete list of supported audio and video file formats. + * @member {string} inputLabel The label of the job input which is to be used + * as an overlay. The Input must specify exactly one file. You can specify an + * image file in JPG or PNG formats, or an audio file (such as a WAV, MP3, + * WMA or M4A file), or a video file. See https://aka.ms/mesformats for the + * complete list of supported audio and video file formats. */ - inputLabel?: string; + inputLabel: string; /** * @member {string} [start] The start position, with reference to the input * video, at which the overlay starts. The value should be in ISO 8601 @@ -2794,6 +2837,7 @@ export interface JobInputClip { odatatype: "#Microsoft.Media.JobInputClip"; /** * @member {string[]} [files] List of files. Required for JobInputHttp. + * Maximum of 4000 characters each. */ files?: string[]; /** @@ -2837,6 +2881,7 @@ export interface JobInputAsset { odatatype: "#Microsoft.Media.JobInputAsset"; /** * @member {string[]} [files] List of files. Required for JobInputHttp. + * Maximum of 4000 characters each. */ files?: string[]; /** @@ -2867,6 +2912,7 @@ export interface JobInputHttp { odatatype: "#Microsoft.Media.JobInputHttp"; /** * @member {string[]} [files] List of files. Required for JobInputHttp. + * Maximum of 4000 characters each. */ files?: string[]; /** @@ -2880,8 +2926,9 @@ export interface JobInputHttp { label?: string; /** * @member {string} [baseUri] Base URI for HTTPS job input. It will be - * concatenated with provided file names. If no base uri is given, then the - * provided file list is assumed to be fully qualified uris. + * concatenated with provided file names. If no base uri is given, then the + * provided file list is assumed to be fully qualified uris. Maximum length + * of 4000 characters. */ baseUri?: string; } @@ -3122,7 +3169,7 @@ export interface Job extends ProxyResource { priority?: Priority; /** * @member {{ [propertyName: string]: string }} [correlationData] Customer - * provided correlation data that will be returned in Job and JobOutput state + * provided key, value pairs that will be returned in Job and JobOutput state * events. */ correlationData?: { [propertyName: string]: string }; @@ -3233,9 +3280,14 @@ export interface StreamingPolicyContentKeys { */ export interface StreamingPolicyPlayReadyConfiguration { /** - * @member {string} [customLicenseAcquisitionUrlTemplate] The template for a - * customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @member {string} [customLicenseAcquisitionUrlTemplate] Template for the + * URL of the custom service delivering licenses to end user players. Not + * required when using Azure Media Services for issuing licenses. The + * template supports replaceable tokens that the service will update at + * runtime with the value specific to the request. The currently supported + * token values are {AlternativeMediaId}, which is replaced with the value of + * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + * replaced with the value of identifier of the key being requested. */ customLicenseAcquisitionUrlTemplate?: string; /** @@ -3253,9 +3305,14 @@ export interface StreamingPolicyPlayReadyConfiguration { */ export interface StreamingPolicyWidevineConfiguration { /** - * @member {string} [customLicenseAcquisitionUrlTemplate] The template for a - * customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @member {string} [customLicenseAcquisitionUrlTemplate] Template for the + * URL of the custom service delivering licenses to end user players. Not + * required when using Azure Media Services for issuing licenses. The + * template supports replaceable tokens that the service will update at + * runtime with the value specific to the request. The currently supported + * token values are {AlternativeMediaId}, which is replaced with the value of + * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + * replaced with the value of identifier of the key being requested. */ customLicenseAcquisitionUrlTemplate?: string; } @@ -3268,9 +3325,14 @@ export interface StreamingPolicyWidevineConfiguration { */ export interface StreamingPolicyFairPlayConfiguration { /** - * @member {string} [customLicenseAcquisitionUrlTemplate] The template for a - * customer service to deliver keys to end users. Not needed when using - * Azure Media Services for issuing keys. + * @member {string} [customLicenseAcquisitionUrlTemplate] Template for the + * URL of the custom service delivering licenses to end user players. Not + * required when using Azure Media Services for issuing licenses. The + * template supports replaceable tokens that the service will update at + * runtime with the value specific to the request. The currently supported + * token values are {AlternativeMediaId}, which is replaced with the value of + * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + * replaced with the value of identifier of the key being requested. */ customLicenseAcquisitionUrlTemplate?: string; /** @@ -3388,9 +3450,14 @@ export interface EnvelopeEncryption { */ contentKeys?: StreamingPolicyContentKeys; /** - * @member {string} [customKeyAcquisitionUrlTemplate] - * KeyAcquisitionUrlTemplate is used to point to user specified service to - * delivery content keys + * @member {string} [customKeyAcquisitionUrlTemplate] Template for the URL of + * the custom service delivering keys to end user players. Not required when + * using Azure Media Services for issuing keys. The template supports + * replaceable tokens that the service will update at runtime with the value + * specific to the request. The currently supported token values are + * {AlternativeMediaId}, which is replaced with the value of + * StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is + * replaced with the value of identifier of the key being requested. */ customKeyAcquisitionUrlTemplate?: string; } @@ -3652,6 +3719,11 @@ export interface StreamingLocator extends ProxyResource { * Streaming Locator */ alternativeMediaId?: string; + /** + * @member {string[]} [filters] A list of asset or account filters which + * apply to this streaming locator + */ + filters?: string[]; } /** @@ -4718,6 +4790,14 @@ export type ContentKeyPolicyFairPlayRentalAndLeaseKeyType = 'Unknown' | 'Undefin */ export type AacAudioProfile = 'AacLc' | 'HeAacV1' | 'HeAacV2'; +/** + * Defines values for AnalysisResolution. + * Possible values include: 'SourceResolution', 'StandardDefinition' + * @readonly + * @enum {string} + */ +export type AnalysisResolution = 'SourceResolution' | 'StandardDefinition'; + /** * Defines values for StretchMode. * Possible values include: 'None', 'AutoSize', 'AutoFit' diff --git a/packages/@azure/arm-mediaservices/lib/models/jobsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/jobsMappers.ts index e835a7f1f76d..f0e0a850816b 100644 --- a/packages/@azure/arm-mediaservices/lib/models/jobsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/jobsMappers.ts @@ -92,6 +92,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/liveEventsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/liveEventsMappers.ts index 3a126babcf39..34fcc192081f 100644 --- a/packages/@azure/arm-mediaservices/lib/models/liveEventsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/liveEventsMappers.ts @@ -88,6 +88,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/liveOutputsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/liveOutputsMappers.ts index f5ce2a0d670c..2c45e889b561 100644 --- a/packages/@azure/arm-mediaservices/lib/models/liveOutputsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/liveOutputsMappers.ts @@ -87,6 +87,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/mappers.ts b/packages/@azure/arm-mediaservices/lib/models/mappers.ts index d28f25990304..81ffad523a79 100644 --- a/packages/@azure/arm-mediaservices/lib/models/mappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/mappers.ts @@ -1856,6 +1856,25 @@ export const AacAudio: msRest.CompositeMapper = { } }; +export const FaceDetectorPreset: msRest.CompositeMapper = { + serializedName: "#Microsoft.Media.FaceDetectorPreset", + type: { + name: "Composite", + polymorphicDiscriminator: Preset.type.polymorphicDiscriminator, + uberParent: "Preset", + className: "FaceDetectorPreset", + modelProperties: { + ...Preset.type.modelProperties, + resolution: { + serializedName: "resolution", + type: { + name: "String" + } + } + } + } +}; + export const AudioAnalyzerPreset: msRest.CompositeMapper = { serializedName: "#Microsoft.Media.AudioAnalyzerPreset", type: { @@ -1887,6 +1906,7 @@ export const Overlay: msRest.CompositeMapper = { className: "Overlay", modelProperties: { inputLabel: { + required: true, serializedName: "inputLabel", type: { name: "String" @@ -1994,6 +2014,7 @@ export const Image: msRest.CompositeMapper = { modelProperties: { ...Video.type.modelProperties, start: { + required: true, serializedName: "start", type: { name: "String" @@ -2027,6 +2048,7 @@ export const Format: msRest.CompositeMapper = { className: "Format", modelProperties: { filenamePattern: { + required: true, serializedName: "filenamePattern", type: { name: "String" @@ -2243,6 +2265,7 @@ export const VideoLayer: msRest.CompositeMapper = { modelProperties: { ...Layer.type.modelProperties, bitrate: { + required: true, serializedName: "bitrate", type: { name: "Number" @@ -2413,6 +2436,7 @@ export const OutputFile: msRest.CompositeMapper = { className: "OutputFile", modelProperties: { labels: { + required: true, serializedName: "labels", type: { name: "Sequence", @@ -2540,6 +2564,7 @@ export const StandardEncoderPreset: msRest.CompositeMapper = { } }, codecs: { + required: true, serializedName: "codecs", type: { name: "Sequence", @@ -2552,6 +2577,7 @@ export const StandardEncoderPreset: msRest.CompositeMapper = { } }, formats: { + required: true, serializedName: "formats", type: { name: "Sequence", @@ -3759,6 +3785,17 @@ export const StreamingLocator: msRest.CompositeMapper = { type: { name: "String" } + }, + filters: { + serializedName: "properties.filters", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } } } } @@ -4886,6 +4923,7 @@ export const discriminators = { 'Codec' : Codec, 'Codec.#Microsoft.Media.Audio' : Audio, 'Codec.#Microsoft.Media.AacAudio' : AacAudio, + 'Preset.#Microsoft.Media.FaceDetectorPreset' : FaceDetectorPreset, 'Preset.#Microsoft.Media.AudioAnalyzerPreset' : AudioAnalyzerPreset, 'Overlay' : Overlay, 'Overlay.#Microsoft.Media.AudioOverlay' : AudioOverlay, diff --git a/packages/@azure/arm-mediaservices/lib/models/mediaservicesMappers.ts b/packages/@azure/arm-mediaservices/lib/models/mediaservicesMappers.ts index 6a2f4dadb795..9483f88577d4 100644 --- a/packages/@azure/arm-mediaservices/lib/models/mediaservicesMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/mediaservicesMappers.ts @@ -89,6 +89,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/streamingEndpointsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/streamingEndpointsMappers.ts index 550146e1ccc1..58f078fcdda6 100644 --- a/packages/@azure/arm-mediaservices/lib/models/streamingEndpointsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/streamingEndpointsMappers.ts @@ -88,6 +88,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/streamingLocatorsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/streamingLocatorsMappers.ts index f8cec1e72e6e..3d7bfb692e59 100644 --- a/packages/@azure/arm-mediaservices/lib/models/streamingLocatorsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/streamingLocatorsMappers.ts @@ -90,6 +90,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/streamingPoliciesMappers.ts b/packages/@azure/arm-mediaservices/lib/models/streamingPoliciesMappers.ts index 6b5c06070d5f..86cf338fcf44 100644 --- a/packages/@azure/arm-mediaservices/lib/models/streamingPoliciesMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/streamingPoliciesMappers.ts @@ -87,6 +87,7 @@ export { ContentKeyPolicyPlayReadyExplicitAnalogTelevisionRestriction, ContentKeyPolicyPlayReadyContentKeyLocation, ContentKeyPolicyFairPlayConfiguration, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/lib/models/transformsMappers.ts b/packages/@azure/arm-mediaservices/lib/models/transformsMappers.ts index cac433c85c18..bd2d535b381d 100644 --- a/packages/@azure/arm-mediaservices/lib/models/transformsMappers.ts +++ b/packages/@azure/arm-mediaservices/lib/models/transformsMappers.ts @@ -34,6 +34,7 @@ export { ContentKeyPolicyOption, ContentKeyPolicyConfiguration, ContentKeyPolicyRestriction, + FaceDetectorPreset, AudioAnalyzerPreset, BuiltInStandardEncoderPreset, StandardEncoderPreset, diff --git a/packages/@azure/arm-mediaservices/package.json b/packages/@azure/arm-mediaservices/package.json index 53715455ae37..b33e75ac6989 100644 --- a/packages/@azure/arm-mediaservices/package.json +++ b/packages/@azure/arm-mediaservices/package.json @@ -44,7 +44,6 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "lib/**/*.ts", - "README.md", "rollup.config.js", "tsconfig.json" ], @@ -53,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-mediaservices.js.map'\" -o ./dist/arm-mediaservices.min.js ./dist/arm-mediaservices.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false }