@wix/auto_sdk_media_files 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +7 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +20 -0
- package/build/cjs/index.typings.js +7 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +10 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +1 -0
- package/build/cjs/schemas.js +6 -1
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +7 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +20 -0
- package/build/es/index.typings.mjs +7 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +10 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +1 -0
- package/build/es/schemas.mjs +6 -1
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +7 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +20 -0
- package/build/internal/cjs/index.typings.js +7 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +10 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +1 -0
- package/build/internal/cjs/schemas.js +6 -1
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +7 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +20 -0
- package/build/internal/es/index.typings.mjs +7 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +10 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +1 -0
- package/build/internal/es/schemas.mjs +6 -1
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1443,6 +1443,16 @@ interface GenerateVideoStreamingUrlRequest {
|
|
|
1443
1443
|
fileId: string;
|
|
1444
1444
|
/** Video stream format. */
|
|
1445
1445
|
format?: StreamFormatWithLiterals;
|
|
1446
|
+
/**
|
|
1447
|
+
* Number of minutes until the streaming URL expires. <br />
|
|
1448
|
+
*
|
|
1449
|
+
* Applies only to private (secure) videos. Public videos are streamed from non-expiring URLs, so this value is ignored for them. <br />
|
|
1450
|
+
* The streaming token is re-validated on every chunk that is played, so set this longer than the video's play duration. <br />
|
|
1451
|
+
* Default: `1440` (24 hours).
|
|
1452
|
+
* @min 60
|
|
1453
|
+
* @max 1440
|
|
1454
|
+
*/
|
|
1455
|
+
expirationInMinutes?: number | null;
|
|
1446
1456
|
}
|
|
1447
1457
|
declare enum StreamFormat {
|
|
1448
1458
|
UNKNOWN = "UNKNOWN",
|
|
@@ -2563,6 +2573,16 @@ declare function generateVideoStreamingUrl(fileId: string, options?: GenerateVid
|
|
|
2563
2573
|
interface GenerateVideoStreamingUrlOptions {
|
|
2564
2574
|
/** Video stream format. */
|
|
2565
2575
|
format?: StreamFormatWithLiterals;
|
|
2576
|
+
/**
|
|
2577
|
+
* Number of minutes until the streaming URL expires. <br />
|
|
2578
|
+
*
|
|
2579
|
+
* Applies only to private (secure) videos. Public videos are streamed from non-expiring URLs, so this value is ignored for them. <br />
|
|
2580
|
+
* The streaming token is re-validated on every chunk that is played, so set this longer than the video's play duration. <br />
|
|
2581
|
+
* Default: `1440` (24 hours).
|
|
2582
|
+
* @min 60
|
|
2583
|
+
* @max 1440
|
|
2584
|
+
*/
|
|
2585
|
+
expirationInMinutes?: number | null;
|
|
2566
2586
|
}
|
|
2567
2587
|
/**
|
|
2568
2588
|
* Deletes the specified files from the Media Manager. <br/>
|
|
@@ -1877,7 +1877,8 @@ async function generateVideoStreamingUrl2(fileId, options) {
|
|
|
1877
1877
|
const { httpClient, sideEffects } = arguments[2];
|
|
1878
1878
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1879
1879
|
fileId,
|
|
1880
|
-
format: options?.format
|
|
1880
|
+
format: options?.format,
|
|
1881
|
+
expirationInMinutes: options?.expirationInMinutes
|
|
1881
1882
|
});
|
|
1882
1883
|
const reqOpts = generateVideoStreamingUrl(
|
|
1883
1884
|
payload
|
|
@@ -1892,7 +1893,11 @@ async function generateVideoStreamingUrl2(fileId, options) {
|
|
|
1892
1893
|
err,
|
|
1893
1894
|
{
|
|
1894
1895
|
spreadPathsToArguments: {},
|
|
1895
|
-
explicitPathsToArguments: {
|
|
1896
|
+
explicitPathsToArguments: {
|
|
1897
|
+
fileId: "$[0]",
|
|
1898
|
+
format: "$[1].format",
|
|
1899
|
+
expirationInMinutes: "$[1].expirationInMinutes"
|
|
1900
|
+
},
|
|
1896
1901
|
singleArgumentUnchanged: false
|
|
1897
1902
|
},
|
|
1898
1903
|
["fileId", "options"]
|