@editframe/api 0.12.0-beta.8 → 0.13.0-beta.1

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 (119) hide show
  1. package/dist/ProgressIterator.d.ts +1 -1
  2. package/dist/{api/src/ProgressIterator.js → ProgressIterator.js} +14 -2
  3. package/dist/StreamEventSource.d.ts +5 -3
  4. package/dist/{api/src/StreamEventSource.js → StreamEventSource.js} +0 -2
  5. package/dist/client.d.ts +1 -1
  6. package/dist/index.d.ts +14 -10
  7. package/dist/{api/src/index.js → index.js} +9 -5
  8. package/dist/node.d.ts +6 -0
  9. package/dist/node.js +98 -0
  10. package/dist/resources/caption-file.d.ts +32 -4
  11. package/dist/{api/src/resources → resources}/caption-file.js +9 -0
  12. package/dist/resources/image-file.d.ts +28 -10
  13. package/dist/{api/src/resources → resources}/image-file.js +18 -1
  14. package/dist/resources/isobmff-file.d.ts +25 -5
  15. package/dist/resources/isobmff-track.d.ts +497 -6
  16. package/dist/{api/src/resources → resources}/isobmff-track.js +24 -18
  17. package/dist/resources/process-isobmff.d.ts +2 -2
  18. package/dist/resources/renders.d.ts +27 -15
  19. package/dist/{api/src/resources → resources}/renders.js +21 -13
  20. package/dist/resources/transcriptions.d.ts +4 -3
  21. package/dist/resources/unprocessed-file.d.ts +11 -10
  22. package/dist/{api/src/resources → resources}/unprocessed-file.js +0 -33
  23. package/dist/resources/url-token.d.ts +1 -1
  24. package/dist/uploadChunks.d.ts +4 -1
  25. package/dist/utils/assertTypesMatch.d.ts +3 -0
  26. package/dist/utils/createReadableStreamFromReadable.d.ts +4 -0
  27. package/docs/packages/api/docs/.nojekyll +1 -0
  28. package/docs/packages/api/docs/assets/highlight.css +71 -0
  29. package/docs/packages/api/docs/assets/icons.js +18 -0
  30. package/docs/packages/api/docs/assets/icons.svg +1 -0
  31. package/docs/packages/api/docs/assets/main.js +60 -0
  32. package/docs/packages/api/docs/assets/navigation.js +1 -0
  33. package/docs/packages/api/docs/assets/search.js +1 -0
  34. package/docs/packages/api/docs/assets/style.css +1493 -0
  35. package/docs/packages/api/docs/classes/Client.html +4 -0
  36. package/docs/packages/api/docs/functions/createCaptionFile.html +8 -0
  37. package/docs/packages/api/docs/functions/createISOBMFFFile.html +1 -0
  38. package/docs/packages/api/docs/functions/createISOBMFFTrack.html +1 -0
  39. package/docs/packages/api/docs/functions/createImageFile.html +1 -0
  40. package/docs/packages/api/docs/functions/createRender.html +1 -0
  41. package/docs/packages/api/docs/functions/createTranscription.html +1 -0
  42. package/docs/packages/api/docs/functions/createURLToken.html +1 -0
  43. package/docs/packages/api/docs/functions/createUnprocessedFile.html +1 -0
  44. package/docs/packages/api/docs/functions/getISOBMFFFileTranscription.html +1 -0
  45. package/docs/packages/api/docs/functions/getIsobmffProcessInfo.html +1 -0
  46. package/docs/packages/api/docs/functions/getIsobmffProcessProgress.html +1 -0
  47. package/docs/packages/api/docs/functions/getTranscriptionInfo.html +1 -0
  48. package/docs/packages/api/docs/functions/getTranscriptionProgress.html +1 -0
  49. package/docs/packages/api/docs/functions/lookupCaptionFileByMd5.html +1 -0
  50. package/docs/packages/api/docs/functions/lookupISOBMFFFileByMd5.html +1 -0
  51. package/docs/packages/api/docs/functions/lookupImageFileByMd5.html +1 -0
  52. package/docs/packages/api/docs/functions/lookupRenderByMd5.html +1 -0
  53. package/docs/packages/api/docs/functions/lookupUnprocessedFileByMd5.html +1 -0
  54. package/docs/packages/api/docs/functions/processIsobmffFile.html +1 -0
  55. package/docs/packages/api/docs/functions/transcribeISOBMFFFile.html +1 -0
  56. package/docs/packages/api/docs/functions/uploadCaptionFile.html +1 -0
  57. package/docs/packages/api/docs/functions/uploadFragmentIndex.html +1 -0
  58. package/docs/packages/api/docs/functions/uploadISOBMFFTrack.html +1 -0
  59. package/docs/packages/api/docs/functions/uploadImageFile.html +1 -0
  60. package/docs/packages/api/docs/functions/uploadRender.html +1 -0
  61. package/docs/packages/api/docs/functions/uploadUnprocessedReadableStream.html +1 -0
  62. package/docs/packages/api/docs/index.html +39 -0
  63. package/docs/packages/api/docs/interfaces/CreateCaptionFileResult.html +4 -0
  64. package/docs/packages/api/docs/interfaces/CreateISOBMFFFileResult.html +5 -0
  65. package/docs/packages/api/docs/interfaces/CreateISOBMFFTrackResult.html +6 -0
  66. package/docs/packages/api/docs/interfaces/CreateImageFileResult.html +5 -0
  67. package/docs/packages/api/docs/interfaces/CreateRenderResult.html +4 -0
  68. package/docs/packages/api/docs/interfaces/CreateTranscriptionResult.html +3 -0
  69. package/docs/packages/api/docs/interfaces/CreateUnprocessedFileResult.html +6 -0
  70. package/docs/packages/api/docs/interfaces/GetISOBMFFFileTranscriptionResult.html +4 -0
  71. package/docs/packages/api/docs/interfaces/IsobmffProcessInfoResult.html +7 -0
  72. package/docs/packages/api/docs/interfaces/LookupCaptionFileByMd5Result.html +4 -0
  73. package/docs/packages/api/docs/interfaces/LookupISOBMFFFileByMd5Result.html +5 -0
  74. package/docs/packages/api/docs/interfaces/LookupImageFileByMd5Result.html +5 -0
  75. package/docs/packages/api/docs/interfaces/LookupRenderByMd5Result.html +4 -0
  76. package/docs/packages/api/docs/interfaces/LookupUnprocessedFileByMd5Result.html +6 -0
  77. package/docs/packages/api/docs/interfaces/ProcessIsobmffFileResult.html +2 -0
  78. package/docs/packages/api/docs/interfaces/TranscribeISOBMFFFileResult.html +4 -0
  79. package/docs/packages/api/docs/interfaces/TranscriptionInfoResult.html +3 -0
  80. package/docs/packages/api/docs/interfaces/URLTokenResult.html +2 -0
  81. package/docs/packages/api/docs/modules.html +54 -0
  82. package/docs/packages/api/docs/variables/CreateCaptionFilePayload.html +1 -0
  83. package/docs/packages/api/docs/variables/CreateISOBMFFFilePayload.html +1 -0
  84. package/docs/packages/api/docs/variables/CreateISOBMFFTrackPayload.html +1 -0
  85. package/docs/packages/api/docs/variables/CreateImageFilePayload.html +1 -0
  86. package/docs/packages/api/docs/variables/CreateRenderPayload.html +1 -0
  87. package/docs/packages/api/docs/variables/CreateTranscriptionPayload.html +1 -0
  88. package/docs/packages/api/docs/variables/CreateUnprocessedFilePayload.html +1 -0
  89. package/docs/packages/api/docs/variables/TranscribeISOBMFFFilePayload.html +1 -0
  90. package/package.json +12 -4
  91. package/src/resources/caption-file.test.ts +3 -3
  92. package/src/resources/caption-file.ts +31 -2
  93. package/src/resources/image-file.test.ts +3 -3
  94. package/src/resources/image-file.ts +23 -37
  95. package/src/resources/isobmff-file.test.ts +3 -3
  96. package/src/resources/isobmff-file.ts +27 -3
  97. package/src/resources/isobmff-track.test.ts +4 -4
  98. package/src/resources/isobmff-track.ts +147 -25
  99. package/src/resources/process-isobmff.test.ts +3 -3
  100. package/src/resources/process-isobmff.ts +2 -2
  101. package/src/resources/renders.test.ts +3 -18
  102. package/src/resources/renders.ts +44 -15
  103. package/src/resources/transcriptions.test.ts +2 -2
  104. package/src/resources/transcriptions.ts +7 -3
  105. package/src/resources/unprocessed-file.test.ts +3 -3
  106. package/src/resources/unprocessed-file.ts +20 -53
  107. package/src/resources/url-token.test.ts +3 -3
  108. package/src/resources/url-token.ts +1 -1
  109. package/src/utils/assertTypesMatch.ts +10 -0
  110. package/src/utils/createReadableStreamFromReadable.ts +117 -0
  111. /package/dist/{api/src/CHUNK_SIZE_BYTES.js → CHUNK_SIZE_BYTES.js} +0 -0
  112. /package/dist/{api/src/client.js → client.js} +0 -0
  113. /package/dist/{api/src/resources → resources}/isobmff-file.js +0 -0
  114. /package/dist/{api/src/resources → resources}/process-isobmff.js +0 -0
  115. /package/dist/{api/src/resources → resources}/transcriptions.js +0 -0
  116. /package/dist/{api/src/resources → resources}/url-token.js +0 -0
  117. /package/dist/{api/src/streamChunker.js → streamChunker.js} +0 -0
  118. /package/dist/{api/src/uploadChunks.js → uploadChunks.js} +0 -0
  119. /package/dist/{cli/src/utils → utils}/createReadableStreamFromReadable.js +0 -0
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CreateImageFilePayload | @editframe/api</title><meta name="description" content="Documentation for @editframe/api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@editframe/api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@editframe/api</a></li><li><a href="CreateImageFilePayload.html">CreateImageFilePayload</a></li></ul><h1>Variable CreateImageFilePayload<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">Create<wbr/>Image<wbr/>File<wbr/>Payload</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">mime_type</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodEnum</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;image/jpeg&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;image/png&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;image/jpg&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;image/webp&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;strip&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ZodTypeAny</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">mime_type</span><span class="tsd-signature-symbol">: </span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/jpeg&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/png&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/jpg&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/webp&quot;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">mime_type</span><span class="tsd-signature-symbol">: </span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/jpeg&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/png&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/jpg&quot;</span><br/><span>        </span><span class="tsd-signature-symbol">| </span><span class="tsd-signature-type">&quot;image/webp&quot;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/editframe/elements/blob/a7cae45037ea5d64a2143ecc642ff3e9026e1368/packages/api/src/resources/image-file.ts#L11">packages/api/src/resources/image-file.ts:11</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@editframe/api</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CreateRenderPayload | @editframe/api</title><meta name="description" content="Documentation for @editframe/api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@editframe/api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@editframe/api</a></li><li><a href="CreateRenderPayload.html">CreateRenderPayload</a></li></ul><h1>Variable CreateRenderPayload<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">Create<wbr/>Render<wbr/>Payload</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">duration_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">fps</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">strategy</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodEnum</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">&quot;v1&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;v2&quot;</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">work_slice_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;strip&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ZodTypeAny</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">duration_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">fps</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">strategy</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;v1&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;v2&quot;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">work_slice_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">duration_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">fps</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">height</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">strategy</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;v1&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;v2&quot;</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">width</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">work_slice_ms</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/editframe/elements/blob/a7cae45037ea5d64a2143ecc642ff3e9026e1368/packages/api/src/resources/renders.ts#L9">packages/api/src/resources/renders.ts:9</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@editframe/api</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CreateTranscriptionPayload | @editframe/api</title><meta name="description" content="Documentation for @editframe/api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@editframe/api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@editframe/api</a></li><li><a href="CreateTranscriptionPayload.html">CreateTranscriptionPayload</a></li></ul><h1>Variable CreateTranscriptionPayload<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">Create<wbr/>Transcription<wbr/>Payload</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">file_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">track_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;strip&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ZodTypeAny</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">file_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">track_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">file_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">track_id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/editframe/elements/blob/a7cae45037ea5d64a2143ecc642ff3e9026e1368/packages/api/src/resources/transcriptions.ts#L9">packages/api/src/resources/transcriptions.ts:9</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@editframe/api</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>CreateUnprocessedFilePayload | @editframe/api</title><meta name="description" content="Documentation for @editframe/api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@editframe/api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@editframe/api</a></li><li><a href="CreateUnprocessedFilePayload.html">CreateUnprocessedFilePayload</a></li></ul><h1>Variable CreateUnprocessedFilePayload<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">Create<wbr/>Unprocessed<wbr/>File<wbr/>Payload</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodNumber</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;strip&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ZodTypeAny</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">byte_size</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">filename</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">md5</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/editframe/elements/blob/a7cae45037ea5d64a2143ecc642ff3e9026e1368/packages/api/src/resources/unprocessed-file.ts#L11">packages/api/src/resources/unprocessed-file.ts:11</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@editframe/api</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -0,0 +1 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>TranscribeISOBMFFFilePayload | @editframe/api</title><meta name="description" content="Documentation for @editframe/api"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@editframe/api</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@editframe/api</a></li><li><a href="TranscribeISOBMFFFilePayload.html">TranscribeISOBMFFFilePayload</a></li></ul><h1>Variable TranscribeISOBMFFFilePayload<code class="tsd-tag">Const</code></h1></div><div class="tsd-signature"><span class="tsd-kind-variable">TranscribeISOBMFFFile<wbr/>Payload</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ZodObject</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">trackId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">ZodOptional</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">ZodString</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">&quot;strip&quot;</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">ZodTypeAny</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">trackId</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">trackId</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/editframe/elements/blob/a7cae45037ea5d64a2143ecc642ff3e9026e1368/packages/api/src/resources/isobmff-file.ts#L132">packages/api/src/resources/isobmff-file.ts:132</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>@editframe/api</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@editframe/api",
3
- "version": "0.12.0-beta.8",
3
+ "version": "0.13.0-beta.1",
4
4
  "description": "API functions for EditFrame",
5
5
  "exports": {
6
6
  ".": {
@@ -8,20 +8,26 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "default": "./dist/index.js"
10
10
  }
11
+ },
12
+ "./node": {
13
+ "import": {
14
+ "types": "./dist/node.d.ts",
15
+ "default": "./dist/node.js"
16
+ }
11
17
  }
12
18
  },
13
19
  "type": "module",
14
20
  "scripts": {
15
21
  "typecheck": "tsc --noEmit --emitDeclarationOnly false",
16
22
  "build": "vite build",
17
- "build:watch": "vite build --watch"
23
+ "build:watch": "vite build --watch",
24
+ "typedoc": "typedoc --json ../../docs/api.json --plugin typedoc-plugin-zod --excludeExternals ./src"
18
25
  },
19
26
  "author": "",
20
27
  "license": "UNLICENSED",
21
28
  "devDependencies": {
22
29
  "@types/jsonwebtoken": "^9.0.6",
23
30
  "@types/node": "^20.14.13",
24
- "eventsource-parser": "^3.0.0",
25
31
  "typedoc": "^0.26.5",
26
32
  "typescript": "^5.5.4",
27
33
  "vite": "^5.2.11",
@@ -29,9 +35,11 @@
29
35
  "vite-tsconfig-paths": "^4.3.2"
30
36
  },
31
37
  "dependencies": {
32
- "@editframe/assets": "0.12.0-beta.8",
38
+ "@editframe/assets": "0.13.0-beta.1",
33
39
  "debug": "^4.3.5",
40
+ "eventsource-parser": "^3.0.0",
34
41
  "jsonwebtoken": "^9.0.2",
42
+ "mime": "^4.0.4",
35
43
  "node-fetch": "^3.3.2",
36
44
  "zod": "^3.23.8"
37
45
  }
@@ -2,13 +2,13 @@ import { http, HttpResponse } from "msw";
2
2
  import { setupServer } from "msw/node";
3
3
  import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
4
4
 
5
- import { Client } from "../client.ts";
6
- import { webReadableFromBuffers } from "../readableFromBuffers.ts";
5
+ import { Client } from "../client.js";
6
+ import { webReadableFromBuffers } from "../readableFromBuffers.js";
7
7
  import {
8
8
  createCaptionFile,
9
9
  lookupCaptionFileByMd5,
10
10
  uploadCaptionFile,
11
- } from "./caption-file.ts";
11
+ } from "./caption-file.js";
12
12
 
13
13
  const server = setupServer();
14
14
  const client = new Client("ef_TEST_TOKEN", "http://localhost");
@@ -1,27 +1,56 @@
1
1
  import debug from "debug";
2
2
  import { z } from "zod";
3
3
 
4
- import type { Client } from "../client.ts";
4
+ import type { Client } from "../client.js";
5
5
 
6
6
  const log = debug("ef:api:caption-file");
7
7
 
8
8
  const MAX_CAPTION_SIZE = 1024 * 1024 * 2; // 2MB
9
9
 
10
10
  export const CreateCaptionFilePayload = z.object({
11
+ /**
12
+ * The md5 hash of the caption file
13
+ */
11
14
  md5: z.string(),
15
+ /**
16
+ * The filename of the caption file
17
+ */
12
18
  filename: z.string(),
19
+ /**
20
+ * The size of the caption file in bytes
21
+ */
13
22
  byte_size: z.number().int().max(MAX_CAPTION_SIZE),
14
23
  });
15
24
 
25
+ export type CreateCaptionFilePayload = z.infer<typeof CreateCaptionFilePayload>;
26
+
16
27
  export interface CreateCaptionFileResult {
28
+ /**
29
+ * Whether the caption file is complete
30
+ */
17
31
  complete: boolean | null;
32
+ /**
33
+ * The id of the caption file
34
+ */
18
35
  id: string;
36
+ /**
37
+ * The md5 hash of the caption file
38
+ */
19
39
  md5: string;
20
40
  }
21
41
 
22
42
  export interface LookupCaptionFileByMd5Result {
43
+ /**
44
+ * Whether the caption file is complete
45
+ */
23
46
  complete: boolean | null;
47
+ /**
48
+ * The id of the caption file
49
+ */
24
50
  id: string;
51
+ /**
52
+ * The md5 hash of the caption file
53
+ */
25
54
  md5: string;
26
55
  }
27
56
 
@@ -52,7 +81,7 @@ const restrictSize = (size: number) => {
52
81
  */
53
82
  export const createCaptionFile = async (
54
83
  client: Client,
55
- payload: z.infer<typeof CreateCaptionFilePayload>,
84
+ payload: CreateCaptionFilePayload,
56
85
  ) => {
57
86
  log("Creating caption file", payload);
58
87
  restrictSize(payload.byte_size);
@@ -3,13 +3,13 @@ import { setupServer } from "msw/node";
3
3
  import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
4
4
  import { ZodError } from "zod";
5
5
 
6
- import { Client } from "../client.ts";
7
- import { webReadableFromBuffers } from "../readableFromBuffers.ts";
6
+ import { Client } from "../client.js";
7
+ import { webReadableFromBuffers } from "../readableFromBuffers.js";
8
8
  import {
9
9
  createImageFile,
10
10
  lookupImageFileByMd5,
11
11
  uploadImageFile,
12
- } from "./image-file.ts";
12
+ } from "./image-file.js";
13
13
 
14
14
  const server = setupServer();
15
15
  const client = new Client("ef_TEST_TOKEN", "http://localhost");
@@ -1,23 +1,42 @@
1
1
  import debug from "debug";
2
- import mime from "mime";
3
2
  import { z } from "zod";
4
3
 
5
- import type { Client } from "../client.ts";
6
- import { uploadChunks } from "../uploadChunks.ts";
4
+ import type { Client } from "../client.js";
5
+ import { uploadChunks } from "../uploadChunks.js";
7
6
 
8
7
  const log = debug("ef:api:image-file");
9
8
 
10
9
  const MAX_IMAGE_SIZE = 1024 * 1024 * 16; // 16MB
11
10
 
12
11
  export const CreateImageFilePayload = z.object({
12
+ /**
13
+ * The md5 hash of the image file.
14
+ */
13
15
  md5: z.string(),
16
+ /**
17
+ * The height of the image file in pixels.
18
+ */
14
19
  height: z.number().int(),
20
+ /**
21
+ * The width of the image file in pixels.
22
+ */
15
23
  width: z.number().int(),
24
+ /**
25
+ * The mime type of the image file.
26
+ */
16
27
  mime_type: z.enum(["image/jpeg", "image/png", "image/jpg", "image/webp"]),
28
+ /**
29
+ * The filename of the image file.
30
+ */
17
31
  filename: z.string(),
32
+ /**
33
+ * The byte size of the image file.
34
+ */
18
35
  byte_size: z.number().int().max(MAX_IMAGE_SIZE),
19
36
  });
20
37
 
38
+ export type CreateImageFilePayload = z.infer<typeof CreateImageFilePayload>;
39
+
21
40
  export interface CreateImageFileResult {
22
41
  complete: boolean | null;
23
42
  byte_size: number;
@@ -32,42 +51,9 @@ export interface LookupImageFileByMd5Result {
32
51
  md5: string;
33
52
  }
34
53
 
35
- export const createImageFileFromPath = async (client: Client, path: string) => {
36
- const [{ stat }, { basename }, { md5FilePath }] = await Promise.all([
37
- import("node:fs/promises"),
38
- import("node:path"),
39
- import("@editframe/assets"),
40
- ]).catch((error) => {
41
- console.error("Error importing modules", error);
42
- console.error(
43
- "This is likely because you are bundling for the browser. createImageFileFromPath can only be run in environments that support importing `node:path`",
44
- );
45
- throw error;
46
- });
47
-
48
- const fileInfo = await stat(path);
49
-
50
- const byte_size = fileInfo.size;
51
-
52
- const md5 = await md5FilePath(path);
53
-
54
- const mime_type = mime.getType(path);
55
-
56
- return createImageFile(client, {
57
- ...CreateImageFilePayload.parse({
58
- md5,
59
- height: 0,
60
- width: 0,
61
- mime_type,
62
- filename: basename(path),
63
- byte_size,
64
- }),
65
- });
66
- };
67
-
68
54
  export const createImageFile = async (
69
55
  client: Client,
70
- payload: z.infer<typeof CreateImageFilePayload>,
56
+ payload: CreateImageFilePayload,
71
57
  ) => {
72
58
  log("Creating image file", payload);
73
59
  CreateImageFilePayload.parse(payload);
@@ -2,13 +2,13 @@ import { http, HttpResponse } from "msw";
2
2
  import { setupServer } from "msw/node";
3
3
  import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
4
4
 
5
- import { Client } from "../client.ts";
6
- import { webReadableFromBuffers } from "../readableFromBuffers.ts";
5
+ import { Client } from "../client.js";
6
+ import { webReadableFromBuffers } from "../readableFromBuffers.js";
7
7
  import {
8
8
  createISOBMFFFile,
9
9
  lookupISOBMFFFileByMd5,
10
10
  uploadFragmentIndex,
11
- } from "./isobmff-file.ts";
11
+ } from "./isobmff-file.js";
12
12
 
13
13
  const server = setupServer();
14
14
  const client = new Client("ef_TEST_TOKEN", "http://localhost");
@@ -1,7 +1,7 @@
1
1
  import debug from "debug";
2
2
  import { z } from "zod";
3
3
 
4
- import type { Client } from "../client.ts";
4
+ import type { Client } from "../client.js";
5
5
 
6
6
  const log = debug("ef:api:isobmff-file");
7
7
  const FILE_SIZE_LIMIT = 1024 * 1024 * 2; // 32MB
@@ -11,15 +11,35 @@ export const CreateISOBMFFFilePayload = z.object({
11
11
  filename: z.string(),
12
12
  });
13
13
 
14
+ export type CreateISOBMFFFilePayload = z.infer<typeof CreateISOBMFFFilePayload>;
15
+
14
16
  export interface CreateISOBMFFFileResult {
17
+ /**
18
+ * Whether the fragment index is complete. The fragment index is used internally by editframe to efficiently seek within files.
19
+ */
15
20
  fragment_index_complete: boolean;
21
+ /**
22
+ * The filename of the isobmff file
23
+ */
16
24
  filename: string;
25
+ /**
26
+ * The id of the isobmff file
27
+ */
17
28
  id: string;
29
+ /**
30
+ * The md5 hash of the isobmff file
31
+ */
18
32
  md5: string;
19
33
  }
20
34
 
21
35
  export interface LookupISOBMFFFileByMd5Result {
36
+ /**
37
+ * Whether the fragment index is complete
38
+ */
22
39
  fragment_index_complete: boolean;
40
+ /**
41
+ * The filename of the isobmff file
42
+ */
23
43
  filename: string;
24
44
  id: string;
25
45
  md5: string;
@@ -35,7 +55,7 @@ export interface GetISOBMFFFileTranscriptionResult {
35
55
 
36
56
  export const createISOBMFFFile = async (
37
57
  client: Client,
38
- payload: z.infer<typeof CreateISOBMFFFilePayload>,
58
+ payload: CreateISOBMFFFilePayload,
39
59
  ) => {
40
60
  log("Creating isobmff file", payload);
41
61
  const response = await client.authenticatedFetch("/api/v1/isobmff_files", {
@@ -133,6 +153,10 @@ export const TranscribeISOBMFFFilePayload = z.object({
133
153
  trackId: z.string().optional(),
134
154
  });
135
155
 
156
+ export type TranscribeISOBMFFFilePayload = z.infer<
157
+ typeof TranscribeISOBMFFFilePayload
158
+ >;
159
+
136
160
  export interface TranscribeISOBMFFFileResult {
137
161
  id: string;
138
162
  file_id: string;
@@ -142,7 +166,7 @@ export interface TranscribeISOBMFFFileResult {
142
166
  export const transcribeISOBMFFFile = async (
143
167
  client: Client,
144
168
  id: string,
145
- payload: z.infer<typeof TranscribeISOBMFFFilePayload> = {},
169
+ payload: TranscribeISOBMFFFilePayload = {},
146
170
  ) => {
147
171
  const response = await client.authenticatedFetch(
148
172
  `/api/v1/isobmff_files/${id}/transcribe`,
@@ -3,10 +3,10 @@ import { setupServer } from "msw/node";
3
3
  import { afterAll, afterEach, beforeAll, describe, expect, test } from "vitest";
4
4
  import { ZodError } from "zod";
5
5
 
6
- import { createTestTrack } from "TEST/createTestTrack.ts";
7
- import { Client } from "../client.ts";
8
- import { webReadableFromBuffers } from "../readableFromBuffers.ts";
9
- import { createISOBMFFTrack, uploadISOBMFFTrack } from "./isobmff-track.ts";
6
+ import { createTestTrack } from "TEST/createTestTrack.js";
7
+ import { Client } from "../client.js";
8
+ import { webReadableFromBuffers } from "../readableFromBuffers.js";
9
+ import { createISOBMFFTrack, uploadISOBMFFTrack } from "./isobmff-track.js";
10
10
 
11
11
  const server = setupServer();
12
12
  const client = new Client("ef_TEST_TOKEN", "http://localhost");