@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.
Files changed (41) hide show
  1. package/build/cjs/index.js +7 -2
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +20 -0
  4. package/build/cjs/index.typings.js +7 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +10 -0
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.d.ts +1 -0
  9. package/build/cjs/schemas.js +6 -1
  10. package/build/cjs/schemas.js.map +1 -1
  11. package/build/es/index.mjs +7 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +20 -0
  14. package/build/es/index.typings.mjs +7 -2
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +10 -0
  17. package/build/es/meta.mjs.map +1 -1
  18. package/build/es/schemas.d.mts +1 -0
  19. package/build/es/schemas.mjs +6 -1
  20. package/build/es/schemas.mjs.map +1 -1
  21. package/build/internal/cjs/index.js +7 -2
  22. package/build/internal/cjs/index.js.map +1 -1
  23. package/build/internal/cjs/index.typings.d.ts +20 -0
  24. package/build/internal/cjs/index.typings.js +7 -2
  25. package/build/internal/cjs/index.typings.js.map +1 -1
  26. package/build/internal/cjs/meta.d.ts +10 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/cjs/schemas.d.ts +1 -0
  29. package/build/internal/cjs/schemas.js +6 -1
  30. package/build/internal/cjs/schemas.js.map +1 -1
  31. package/build/internal/es/index.mjs +7 -2
  32. package/build/internal/es/index.mjs.map +1 -1
  33. package/build/internal/es/index.typings.d.mts +20 -0
  34. package/build/internal/es/index.typings.mjs +7 -2
  35. package/build/internal/es/index.typings.mjs.map +1 -1
  36. package/build/internal/es/meta.d.mts +10 -0
  37. package/build/internal/es/meta.mjs.map +1 -1
  38. package/build/internal/es/schemas.d.mts +1 -0
  39. package/build/internal/es/schemas.mjs +6 -1
  40. package/build/internal/es/schemas.mjs.map +1 -1
  41. 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/>
@@ -1931,7 +1931,8 @@ async function generateVideoStreamingUrl2(fileId, options) {
1931
1931
  const { httpClient, sideEffects } = arguments[2];
1932
1932
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1933
1933
  fileId,
1934
- format: options?.format
1934
+ format: options?.format,
1935
+ expirationInMinutes: options?.expirationInMinutes
1935
1936
  });
1936
1937
  const reqOpts = generateVideoStreamingUrl(
1937
1938
  payload
@@ -1946,7 +1947,11 @@ async function generateVideoStreamingUrl2(fileId, options) {
1946
1947
  err,
1947
1948
  {
1948
1949
  spreadPathsToArguments: {},
1949
- explicitPathsToArguments: { fileId: "$[0]", format: "$[1].format" },
1950
+ explicitPathsToArguments: {
1951
+ fileId: "$[0]",
1952
+ format: "$[1].format",
1953
+ expirationInMinutes: "$[1].expirationInMinutes"
1954
+ },
1950
1955
  singleArgumentUnchanged: false
1951
1956
  },
1952
1957
  ["fileId", "options"]