@brivioio/api-server-types 7.50.0 → 7.51.0

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.
@@ -1,30 +1,21 @@
1
1
  import type { IResponse } from './utils.types';
2
2
  export declare namespace VoiceTranscriptionAPITypes {
3
3
  /**
4
- * POST /api/voice/realtime-tokenmints a short-lived ephemeral client secret
5
- * the browser uses to open a WebRTC realtime *transcription* session directly
6
- * with OpenAI (our long-lived key never reaches the client). `expiresAt` is a
7
- * unix timestamp in seconds.
4
+ * POST /api/voice/transcribemultipart.
5
+ *
6
+ * Fields:
7
+ * - `audio` : the recorded audio blob (webm/mp4/ogg/wav). Required.
8
+ * - `existingText` : (optional) whatever the recruiter has already typed into
9
+ * the composer. Used only as *context* for the refinement pass so numbers,
10
+ * casing and continuation read consistently — never echoed back.
11
+ * - `vocabulary` : (optional) JSON-encoded string[] of known proper nouns
12
+ * for this chat (company, candidate names, role/tech terms) used to bias
13
+ * Whisper and correct mis-transcriptions during refinement.
14
+ *
15
+ * `data.text` is the cleaned text to append (already trimmed; may be an empty
16
+ * string when nothing intelligible was said).
8
17
  */
9
- type TRealtimeTokenResponse = IResponse<{
10
- value: string;
11
- expiresAt: number;
12
- } | null>;
13
- /**
14
- * POST /api/voice/refine — cleans up a raw realtime transcript. `existingText`
15
- * (optional) is the recruiter's already-typed composer content, used only as
16
- * refinement context (never echoed back). `vocabulary` (optional) is a list of
17
- * known proper nouns for this chat (company name, candidate names, role/tech
18
- * terms) the refiner uses to correct mis-transcribed names to their exact
19
- * spelling. `data.text` is the cleaned text to append (already trimmed; may be
20
- * empty when nothing intelligible was said).
21
- */
22
- type TRefineRequestBody = {
23
- transcript: string;
24
- existingText?: string;
25
- vocabulary?: string[];
26
- };
27
- type TRefineResponse = IResponse<{
18
+ type TTranscribeResponse = IResponse<{
28
19
  text: string;
29
20
  } | null>;
30
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"voice.types.d.ts","sourceRoot":"","sources":["../src/voice.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,yBAAiB,0BAA0B,CAAC;IAC1C;;;;;OAKG;IACH,KAAY,sBAAsB,GAAG,SAAS,CAAC;QAC7C,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI,CAAC,CAAC;IAEV;;;;;;;;OAQG;IACH,KAAY,kBAAkB,GAAG;QAC/B,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC;IAEF,KAAY,eAAe,GAAG,SAAS,CAAC;QACtC,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI,CAAC,CAAC;CACX"}
1
+ {"version":3,"file":"voice.types.d.ts","sourceRoot":"","sources":["../src/voice.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE/C,yBAAiB,0BAA0B,CAAC;IAC1C;;;;;;;;;;;;;;OAcG;IACH,KAAY,mBAAmB,GAAG,SAAS,CAAC;QAC1C,IAAI,EAAE,MAAM,CAAC;KACd,GAAG,IAAI,CAAC,CAAC;CACX"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brivioio/api-server-types",
3
- "version": "7.50.0",
3
+ "version": "7.51.0",
4
4
  "description": "TypeScript type definitions for Brivio API Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",