@stack0/sdk 0.3.4 → 0.3.41

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.mjs CHANGED
@@ -552,6 +552,25 @@ var CDN = class {
552
552
  if (request.format) params.set("format", request.format);
553
553
  return this.http.get(`/cdn/video/thumbnail/${request.assetId}?${params.toString()}`);
554
554
  }
555
+ /**
556
+ * Regenerate a thumbnail for a video (force regeneration even if one exists)
557
+ *
558
+ * Useful for retrying failed thumbnail generation or regenerating with different settings.
559
+ *
560
+ * @example
561
+ * ```typescript
562
+ * const result = await cdn.regenerateThumbnail({
563
+ * assetId: 'video-asset-id',
564
+ * timestamp: 5, // 5 seconds into the video
565
+ * width: 1280,
566
+ * format: 'jpg',
567
+ * });
568
+ * console.log(`Thumbnail regeneration queued: ${result.status}`);
569
+ * ```
570
+ */
571
+ async regenerateThumbnail(request) {
572
+ return this.http.post("/cdn/video/thumbnail/regenerate", request);
573
+ }
555
574
  /**
556
575
  * Extract audio from a video file
557
576
  *