@deadair/sdk 0.37.7 → 0.38.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.
package/dist/index.js CHANGED
@@ -2939,7 +2939,7 @@ var PluginsClient = class {
2939
2939
  }
2940
2940
  /**
2941
2941
  * @name Remove plugin
2942
- * @description Removes a plugin the operator installed: stops it and deletes its folder. Its settings are kept, so importing it again brings them back. A bundled plugin is refused
2942
+ * @description Removes a plugin the operator installed: stops it and deletes its folder. Its settings are kept, so importing it again brings them back. A bundled plugin is refused, unless an installed copy of it is left over from before the station shipped it: that copy never loads, and it is what gets removed
2943
2943
  */
2944
2944
  async removePlugin(id) {
2945
2945
  const result = await this.fetch(`/plugins/${encodeURIComponent(id)}`, {
@@ -3482,8 +3482,9 @@ var RenderClient = class {
3482
3482
  * @name Get segment audio
3483
3483
  * @description The audio of one segment
3484
3484
  */
3485
- async getSegmentAudio(id) {
3486
- const result = await this.fetch(`/segments/${encodeURIComponent(id)}/audio`, {
3485
+ async getSegmentAudio(id, query) {
3486
+ const qs = buildQueryString(query);
3487
+ const result = await this.fetch(`/segments/${encodeURIComponent(id)}/audio${qs}`, {
3487
3488
  method: "GET",
3488
3489
  expectStatuses: [
3489
3490
  304
@@ -3501,7 +3502,8 @@ var RenderClient = class {
3501
3502
  data: await result.blob(),
3502
3503
  headers: {
3503
3504
  cacheControl: result.headers.get("cache-control") ?? void 0,
3504
- etag: result.headers.get("etag") ?? void 0
3505
+ etag: result.headers.get("etag") ?? void 0,
3506
+ contentDisposition: result.headers.get("content-disposition") ?? void 0
3505
3507
  }
3506
3508
  };
3507
3509
  }