@brivioio/api-server-types 7.48.0 → 7.50.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.
package/dist/index.d.ts CHANGED
@@ -19,4 +19,5 @@ export * from './slackChannels.types';
19
19
  export * from './slackMessages.types';
20
20
  export * from './slackWorkspaces.types';
21
21
  export * from './sourcingRuns.types';
22
+ export * from './voice.types';
22
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -19,3 +19,4 @@ export * from './slackChannels.types';
19
19
  export * from './slackMessages.types';
20
20
  export * from './slackWorkspaces.types';
21
21
  export * from './sourcingRuns.types';
22
+ export * from './voice.types';
@@ -0,0 +1,31 @@
1
+ import type { IResponse } from './utils.types';
2
+ export declare namespace VoiceTranscriptionAPITypes {
3
+ /**
4
+ * POST /api/voice/realtime-token — mints 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.
8
+ */
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<{
28
+ text: string;
29
+ } | null>;
30
+ }
31
+ //# sourceMappingURL=voice.types.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brivioio/api-server-types",
3
- "version": "7.48.0",
3
+ "version": "7.50.0",
4
4
  "description": "TypeScript type definitions for Brivio API Server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",