@vocalstack/sanity 0.4.0 → 0.4.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/api.d.ts CHANGED
@@ -10,8 +10,8 @@ export declare const DEFAULT_API_URL = "https://api.vocalstack.com";
10
10
  /** Sent as the User-Agent of every call to VocalStack (they run in the
11
11
  * handler, on the server): VocalStack lists the transcriptions it makes
12
12
  * as made in Sanity. Keep it to package.json's version. */
13
- export declare const PLUGIN_VERSION = "0.4.0";
14
- export declare const USER_AGENT = "VocalStack-Sanity/0.4.0";
13
+ export declare const PLUGIN_VERSION = "0.4.1";
14
+ export declare const USER_AGENT = "VocalStack-Sanity/0.4.1";
15
15
  export declare const DEFAULT_DASHBOARD_URL = "https://app.vocalstack.com";
16
16
  export type JobState = 'cropping' | 'done' | 'failed' | 'fetching' | 'queued' | 'stopped' | 'transcribing';
17
17
  export type Job = {
package/dist/api.js CHANGED
@@ -9,7 +9,7 @@ export const DEFAULT_API_URL = 'https://api.vocalstack.com';
9
9
  /** Sent as the User-Agent of every call to VocalStack (they run in the
10
10
  * handler, on the server): VocalStack lists the transcriptions it makes
11
11
  * as made in Sanity. Keep it to package.json's version. */
12
- export const PLUGIN_VERSION = '0.4.0';
12
+ export const PLUGIN_VERSION = '0.4.1';
13
13
  export const USER_AGENT = `VocalStack-Sanity/${PLUGIN_VERSION}`;
14
14
  export const DEFAULT_DASHBOARD_URL = 'https://app.vocalstack.com';
15
15
  export class VocalStackAPIError extends Error {
@@ -41,7 +41,7 @@ const call = async (run) => {
41
41
  throw toAPIError(err);
42
42
  }
43
43
  };
44
- const createOptions = (opts) => ({ name: opts.name, settings: opts.spokenLanguage ? { spokenLanguage: opts.spokenLanguage } : undefined });
44
+ const createOptions = (opts) => ({ name: opts.name, settings: { summary: true, title: true, summaryTranslations: true, ...(opts.spokenLanguage ? { spokenLanguage: opts.spokenLanguage } : {}) } });
45
45
  export class VocalStackAPI {
46
46
  sdk;
47
47
  constructor(apiKey, baseURL = DEFAULT_API_URL) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vocalstack/sanity",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "VocalStack for Sanity Studio: a Transcribe button next to every audio file.",
5
5
  "license": "MIT",
6
6
  "type": "module",