@hyperframes/studio-server 0.7.58 → 0.7.60

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/dist/index.d.ts CHANGED
@@ -223,6 +223,16 @@ declare function walkDir(dir: string, prefix?: string): string[];
223
223
  declare const MIME_TYPES: Record<string, string>;
224
224
  declare function getMimeType(path: string): string;
225
225
 
226
+ interface FileWriteReceipt {
227
+ path: string;
228
+ version: string;
229
+ writeToken: string;
230
+ }
231
+ /** Strong content version used as both the JSON version and HTTP ETag. */
232
+ declare function fileContentVersion(content: string): string;
233
+ /** Attach one API write's identity to the corresponding filesystem-watch echo. */
234
+ declare function consumeFileWriteReceipt(absPath: string): FileWriteReceipt | null;
235
+
226
236
  /**
227
237
  * Build a standalone HTML page for a sub-composition.
228
238
  *
@@ -274,4 +284,4 @@ type BackgroundRemovalRender = (options: {
274
284
  }>;
275
285
  declare function createBackgroundRemovalJob(opts: BackgroundRemovalJobOptions, render: BackgroundRemovalRender): MediaProcessingJobState;
276
286
 
277
- export { type BackgroundRemovalRender, type LintResult, MIME_TYPES, type MediaProcessingJobState, type RenderJobState, type ResolvedProject, type StudioApiAdapter, type StudioSelectionResponse, type StudioSelectionSnapshot, type StudioSelectionTextField, buildSubCompositionHtml, createBackgroundRemovalJob, createProjectSignature, createStudioApi, getMimeType, walkDir };
287
+ export { type BackgroundRemovalRender, type FileWriteReceipt, type LintResult, MIME_TYPES, type MediaProcessingJobState, type RenderJobState, type ResolvedProject, type StudioApiAdapter, type StudioSelectionResponse, type StudioSelectionSnapshot, type StudioSelectionTextField, buildSubCompositionHtml, consumeFileWriteReceipt, createBackgroundRemovalJob, createProjectSignature, createStudioApi, fileContentVersion, getMimeType, walkDir };