@corti/sdk 2.0.0 → 2.1.0-rc
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/facts/client/requests/FactsExtractRequest.d.ts +1 -1
- package/dist/cjs/api/resources/stream/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/transcribe/client/Socket.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/AgentsCreateExpertReference.d.ts +2 -0
- package/dist/cjs/api/types/AgentsExpertReference.d.ts +2 -0
- package/dist/cjs/api/types/AgentsRegistryExpert.d.ts +2 -0
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplate.d.ts +1 -1
- package/dist/cjs/api/types/DocumentsCreateRequestWithTemplateKey.d.ts +1 -1
- package/dist/cjs/api/types/DocumentsGetResponse.d.ts +1 -1
- package/dist/cjs/api/types/StreamAudioEventData.d.ts +9 -0
- package/dist/cjs/api/types/StreamAudioEventData.js +3 -0
- package/dist/cjs/api/types/StreamAudioEventDataEvent.d.ts +8 -0
- package/dist/cjs/api/types/StreamAudioEventDataEvent.js +11 -0
- package/dist/cjs/api/types/StreamAudioEventMessage.d.ts +5 -0
- package/dist/cjs/api/types/StreamAudioEventMessage.js +3 -0
- package/dist/cjs/api/types/StreamAudioEventsConfig.d.ts +4 -0
- package/dist/cjs/api/types/StreamAudioEventsConfig.js +3 -0
- package/dist/cjs/api/types/StreamConfig.d.ts +1 -0
- package/dist/cjs/api/types/StreamConfigMode.d.ts +2 -0
- package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigModeFactGenerationInterval.js +9 -0
- package/dist/cjs/api/types/TranscribeAudioEventData.d.ts +9 -0
- package/dist/cjs/api/types/TranscribeAudioEventData.js +3 -0
- package/dist/cjs/api/types/TranscribeAudioEventDataEvent.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeAudioEventDataEvent.js +11 -0
- package/dist/cjs/api/types/TranscribeAudioEventMessage.d.ts +5 -0
- package/dist/cjs/api/types/TranscribeAudioEventMessage.js +3 -0
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +4 -0
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.js +3 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +1 -0
- package/dist/cjs/api/types/index.d.ts +9 -0
- package/dist/cjs/api/types/index.js +9 -0
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.d.ts +3 -2
- package/dist/cjs/serialization/resources/stream/client/socket/StreamSocketResponse.js +2 -0
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts +3 -2
- package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js +2 -0
- package/dist/cjs/serialization/types/AgentsCreateExpertReference.d.ts +1 -0
- package/dist/cjs/serialization/types/AgentsCreateExpertReference.js +1 -0
- package/dist/cjs/serialization/types/AgentsExpertReference.d.ts +1 -0
- package/dist/cjs/serialization/types/AgentsExpertReference.js +1 -0
- package/dist/cjs/serialization/types/AgentsRegistryExpert.d.ts +1 -0
- package/dist/cjs/serialization/types/AgentsRegistryExpert.js +1 -0
- package/dist/cjs/serialization/types/StreamAudioEventData.d.ts +12 -0
- package/dist/cjs/serialization/types/StreamAudioEventData.js +44 -0
- package/dist/cjs/serialization/types/StreamAudioEventDataEvent.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamAudioEventDataEvent.js +44 -0
- package/dist/cjs/serialization/types/StreamAudioEventMessage.d.ts +11 -0
- package/dist/cjs/serialization/types/StreamAudioEventMessage.js +43 -0
- package/dist/cjs/serialization/types/StreamAudioEventsConfig.d.ts +9 -0
- package/dist/cjs/serialization/types/StreamAudioEventsConfig.js +41 -0
- package/dist/cjs/serialization/types/StreamConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfig.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigMode.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfigMode.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.d.ts +7 -0
- package/dist/cjs/serialization/types/StreamConfigModeFactGenerationInterval.js +39 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventData.d.ts +12 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventData.js +44 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.d.ts +7 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventDataEvent.js +44 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventMessage.d.ts +11 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventMessage.js +43 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +9 -0
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +41 -0
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
- package/dist/cjs/serialization/types/index.d.ts +9 -0
- package/dist/cjs/serialization/types/index.js +9 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/facts/client/requests/FactsExtractRequest.d.mts +1 -1
- package/dist/esm/api/resources/stream/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/transcribe/client/Socket.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/AgentsCreateExpertReference.d.mts +2 -0
- package/dist/esm/api/types/AgentsExpertReference.d.mts +2 -0
- package/dist/esm/api/types/AgentsRegistryExpert.d.mts +2 -0
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplate.d.mts +1 -1
- package/dist/esm/api/types/DocumentsCreateRequestWithTemplateKey.d.mts +1 -1
- package/dist/esm/api/types/DocumentsGetResponse.d.mts +1 -1
- package/dist/esm/api/types/StreamAudioEventData.d.mts +9 -0
- package/dist/esm/api/types/StreamAudioEventData.mjs +2 -0
- package/dist/esm/api/types/StreamAudioEventDataEvent.d.mts +8 -0
- package/dist/esm/api/types/StreamAudioEventDataEvent.mjs +8 -0
- package/dist/esm/api/types/StreamAudioEventMessage.d.mts +5 -0
- package/dist/esm/api/types/StreamAudioEventMessage.mjs +2 -0
- package/dist/esm/api/types/StreamAudioEventsConfig.d.mts +4 -0
- package/dist/esm/api/types/StreamAudioEventsConfig.mjs +2 -0
- package/dist/esm/api/types/StreamConfig.d.mts +1 -0
- package/dist/esm/api/types/StreamConfigMode.d.mts +2 -0
- package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigModeFactGenerationInterval.mjs +6 -0
- package/dist/esm/api/types/TranscribeAudioEventData.d.mts +9 -0
- package/dist/esm/api/types/TranscribeAudioEventData.mjs +2 -0
- package/dist/esm/api/types/TranscribeAudioEventDataEvent.d.mts +8 -0
- package/dist/esm/api/types/TranscribeAudioEventDataEvent.mjs +8 -0
- package/dist/esm/api/types/TranscribeAudioEventMessage.d.mts +5 -0
- package/dist/esm/api/types/TranscribeAudioEventMessage.mjs +2 -0
- package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +4 -0
- package/dist/esm/api/types/TranscribeAudioEventsConfig.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +1 -0
- package/dist/esm/api/types/index.d.mts +9 -0
- package/dist/esm/api/types/index.mjs +9 -0
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.d.mts +3 -2
- package/dist/esm/serialization/resources/stream/client/socket/StreamSocketResponse.mjs +2 -0
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.mts +3 -2
- package/dist/esm/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.mjs +2 -0
- package/dist/esm/serialization/types/AgentsCreateExpertReference.d.mts +1 -0
- package/dist/esm/serialization/types/AgentsCreateExpertReference.mjs +1 -0
- package/dist/esm/serialization/types/AgentsExpertReference.d.mts +1 -0
- package/dist/esm/serialization/types/AgentsExpertReference.mjs +1 -0
- package/dist/esm/serialization/types/AgentsRegistryExpert.d.mts +1 -0
- package/dist/esm/serialization/types/AgentsRegistryExpert.mjs +1 -0
- package/dist/esm/serialization/types/StreamAudioEventData.d.mts +12 -0
- package/dist/esm/serialization/types/StreamAudioEventData.mjs +8 -0
- package/dist/esm/serialization/types/StreamAudioEventDataEvent.d.mts +7 -0
- package/dist/esm/serialization/types/StreamAudioEventDataEvent.mjs +8 -0
- package/dist/esm/serialization/types/StreamAudioEventMessage.d.mts +11 -0
- package/dist/esm/serialization/types/StreamAudioEventMessage.mjs +7 -0
- package/dist/esm/serialization/types/StreamAudioEventsConfig.d.mts +9 -0
- package/dist/esm/serialization/types/StreamAudioEventsConfig.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfig.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfig.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigMode.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfigMode.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.d.mts +7 -0
- package/dist/esm/serialization/types/StreamConfigModeFactGenerationInterval.mjs +3 -0
- package/dist/esm/serialization/types/TranscribeAudioEventData.d.mts +12 -0
- package/dist/esm/serialization/types/TranscribeAudioEventData.mjs +8 -0
- package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.d.mts +7 -0
- package/dist/esm/serialization/types/TranscribeAudioEventDataEvent.mjs +8 -0
- package/dist/esm/serialization/types/TranscribeAudioEventMessage.d.mts +11 -0
- package/dist/esm/serialization/types/TranscribeAudioEventMessage.mjs +7 -0
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +9 -0
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +5 -0
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
- package/dist/esm/serialization/types/index.d.mts +9 -0
- package/dist/esm/serialization/types/index.mjs +9 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.
|
|
47
|
-
"User-Agent": "@corti/sdk/2.
|
|
46
|
+
"X-Fern-SDK-Version": "2.1.0-rc",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.1.0-rc",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -11,6 +11,6 @@ import type * as Corti from "../../../../index.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export interface FactsExtractRequest {
|
|
13
13
|
context: Corti.CommonTextContext[];
|
|
14
|
-
/** The desired output language code for extracted facts. Check [languages page](/
|
|
14
|
+
/** The desired output language code for extracted facts. Check [languages page](/stt/languages) for more. */
|
|
15
15
|
outputLanguage: string;
|
|
16
16
|
}
|
|
@@ -4,7 +4,7 @@ export declare namespace StreamSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage;
|
|
7
|
+
type Response = Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -4,7 +4,7 @@ export declare namespace TranscribeSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage;
|
|
7
|
+
type Response = Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
|
|
|
29
29
|
list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
|
|
30
30
|
private __list;
|
|
31
31
|
/**
|
|
32
|
-
* Create a transcript from an audio file
|
|
32
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
|
|
33
33
|
*
|
|
34
34
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
35
35
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -142,7 +142,7 @@ class TranscriptsClient {
|
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
/**
|
|
145
|
-
* Create a transcript from an audio file
|
|
145
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 60 min in total duration, or 150 MB in total size, may be used.<br/><br/>Requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. In the latter scenario, a partial or empty transcript with `status=processing` will be returned with a location header that can be used to retrieve the completed transcript.<br/><br/>The client can poll the `/transcripts` endpoint (`GET /interactions/{id}/transcripts/{transcriptId}/status`) for transcript status monitoring:<br/>- `200 OK` with status `processing`, `completed`, or `failed`<br/>- `404 Not Found` if the `interactionId` or `transcriptId` are invalid<br/><br/>The completed transcript can be retrieved via the Get Transcript request (`GET /interactions/{id}/transcripts/{transcriptId}/`).</Note>
|
|
146
146
|
*
|
|
147
147
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
148
148
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -9,7 +9,7 @@ import type * as Corti from "../../../../index.js";
|
|
|
9
9
|
export interface TranscriptsCreateRequest {
|
|
10
10
|
/** The unique identifier for the recording. */
|
|
11
11
|
recordingId: Corti.Uuid;
|
|
12
|
-
/** The primary spoken language of the recording. Check https://docs.corti.ai/
|
|
12
|
+
/** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
|
|
13
13
|
primaryLanguage: string;
|
|
14
14
|
/** Indicates whether spoken dictation commands should be converted to punctuation (e.g., 'comma' → ','). */
|
|
15
15
|
isDictation?: boolean;
|
|
@@ -10,4 +10,6 @@ export interface AgentsCreateExpertReference {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
/** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
|
|
12
12
|
systemPrompt?: string;
|
|
13
|
+
/** Optional configuration override for the registry expert. Values provided here are deep-merged with the schema defaults declared on the registry expert and validated against its `configSchema`. Ignored when the registry expert has no schema. */
|
|
14
|
+
config?: Record<string, unknown>;
|
|
13
15
|
}
|
|
@@ -10,4 +10,6 @@ export interface AgentsExpertReference {
|
|
|
10
10
|
name: string;
|
|
11
11
|
/** Optional. Additional system instructions appended to the default system prompt when creating an expert from the registry, extending the expert's behavior. */
|
|
12
12
|
systemPrompt?: string;
|
|
13
|
+
/** The fully resolved configuration for this expert: schema defaults from the registry expert deep-merged with any `config` override supplied at creation. Present only when the source registry expert defined a `configSchema`. */
|
|
14
|
+
resolvedConfig?: Record<string, unknown>;
|
|
13
15
|
}
|
|
@@ -10,4 +10,6 @@ export interface AgentsRegistryExpert {
|
|
|
10
10
|
description: string;
|
|
11
11
|
/** A list of MCP servers the expert can call, including their authorization types. */
|
|
12
12
|
mcpServers?: Corti.AgentsRegistryMcpServer[];
|
|
13
|
+
/** Optional JSON Schema describing the configuration this expert accepts. When present, callers may supply a matching `config` object on `AgentsCreateExpertReference`; values are deep-merged with schema defaults and validated against this schema. */
|
|
14
|
+
configSchema?: Record<string, unknown>;
|
|
13
15
|
}
|
|
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplate {
|
|
|
6
6
|
template: Corti.DocumentsTemplate;
|
|
7
7
|
/** An optional name for the document. */
|
|
8
8
|
name?: string;
|
|
9
|
-
/** The language in which the document will be generated. Check [languages page](/
|
|
9
|
+
/** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
|
|
10
10
|
outputLanguage: string;
|
|
11
11
|
/** Set to true to disable guardrails during document generation, default is false. */
|
|
12
12
|
disableGuardrails?: boolean;
|
|
@@ -6,7 +6,7 @@ export interface DocumentsCreateRequestWithTemplateKey {
|
|
|
6
6
|
templateKey: string;
|
|
7
7
|
/** An optional name for the document. */
|
|
8
8
|
name?: string;
|
|
9
|
-
/** The language in which the document will be generated. Check [languages page](/
|
|
9
|
+
/** The language in which the document will be generated. Check [languages page](/stt/languages) for more. */
|
|
10
10
|
outputLanguage: string;
|
|
11
11
|
/** Set to true to disable guardrails during document generation, default is false. */
|
|
12
12
|
disableGuardrails?: boolean;
|
|
@@ -13,7 +13,7 @@ export interface DocumentsGetResponse {
|
|
|
13
13
|
createdAt: Date;
|
|
14
14
|
/** The timestamp when the document was last updated. */
|
|
15
15
|
updatedAt: Date;
|
|
16
|
-
/** The language in which the document will be generated. Check https://docs.corti.ai/
|
|
16
|
+
/** The language in which the document will be generated. Check https://docs.corti.ai/stt/languages for more. */
|
|
17
17
|
outputLanguage: string;
|
|
18
18
|
usageInfo: Corti.CommonUsageInfo;
|
|
19
19
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
export interface StreamAudioEventData {
|
|
3
|
+
/** The type of audio quality or speech activity event */
|
|
4
|
+
event: Corti.StreamAudioEventDataEvent;
|
|
5
|
+
/** Audio channel identifier */
|
|
6
|
+
channel: number;
|
|
7
|
+
/** Start time of the event in milliseconds */
|
|
8
|
+
startTimeMs: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The type of audio quality or speech activity event */
|
|
2
|
+
export declare const StreamAudioEventDataEvent: {
|
|
3
|
+
readonly SpeechQualityIssueDetected: "speechQualityIssueDetected";
|
|
4
|
+
readonly SpeechQualityIssueRecovered: "speechQualityIssueRecovered";
|
|
5
|
+
readonly LongSilenceDetected: "longSilenceDetected";
|
|
6
|
+
readonly LongSilenceRecovered: "longSilenceRecovered";
|
|
7
|
+
};
|
|
8
|
+
export type StreamAudioEventDataEvent = (typeof StreamAudioEventDataEvent)[keyof typeof StreamAudioEventDataEvent];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StreamAudioEventDataEvent = void 0;
|
|
5
|
+
/** The type of audio quality or speech activity event */
|
|
6
|
+
exports.StreamAudioEventDataEvent = {
|
|
7
|
+
SpeechQualityIssueDetected: "speechQualityIssueDetected",
|
|
8
|
+
SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
|
|
9
|
+
LongSilenceDetected: "longSilenceDetected",
|
|
10
|
+
LongSilenceRecovered: "longSilenceRecovered",
|
|
11
|
+
};
|
|
@@ -4,6 +4,7 @@ export interface StreamConfig {
|
|
|
4
4
|
mode: Corti.StreamConfigMode;
|
|
5
5
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
6
6
|
retentionPolicy?: Corti.StreamConfigRetentionPolicy;
|
|
7
|
+
audioEvents?: Corti.StreamAudioEventsConfig;
|
|
7
8
|
/** The audio format of the incoming audio stream */
|
|
8
9
|
audioFormat?: string;
|
|
9
10
|
}
|
|
@@ -4,4 +4,6 @@ export interface StreamConfigMode {
|
|
|
4
4
|
type: Corti.StreamConfigModeType;
|
|
5
5
|
/** Output language locale specific to facts. */
|
|
6
6
|
outputLocale?: Corti.StreamSupportedLanguage;
|
|
7
|
+
/** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
|
|
8
|
+
factGenerationInterval?: Corti.StreamConfigModeFactGenerationInterval;
|
|
7
9
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
|
|
2
|
+
export declare const StreamConfigModeFactGenerationInterval: {
|
|
3
|
+
readonly Fixed: "fixed";
|
|
4
|
+
readonly FastInit: "fast_init";
|
|
5
|
+
};
|
|
6
|
+
export type StreamConfigModeFactGenerationInterval = (typeof StreamConfigModeFactGenerationInterval)[keyof typeof StreamConfigModeFactGenerationInterval];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.StreamConfigModeFactGenerationInterval = void 0;
|
|
5
|
+
/** Rate at which fact generation should process and return results. If no value is set, the default is `fixed` and will trigger fact generation at the standard interval of around 60s. With `fast_init`, fact generation will follow a logarithmic curve. */
|
|
6
|
+
exports.StreamConfigModeFactGenerationInterval = {
|
|
7
|
+
Fixed: "fixed",
|
|
8
|
+
FastInit: "fast_init",
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
export interface TranscribeAudioEventData {
|
|
3
|
+
/** The type of audio quality or speech activity event */
|
|
4
|
+
event: Corti.TranscribeAudioEventDataEvent;
|
|
5
|
+
/** Audio channel identifier */
|
|
6
|
+
channel: number;
|
|
7
|
+
/** Start time of the event in milliseconds */
|
|
8
|
+
startTimeMs: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** The type of audio quality or speech activity event */
|
|
2
|
+
export declare const TranscribeAudioEventDataEvent: {
|
|
3
|
+
readonly SpeechQualityIssueDetected: "speechQualityIssueDetected";
|
|
4
|
+
readonly SpeechQualityIssueRecovered: "speechQualityIssueRecovered";
|
|
5
|
+
readonly LongSilenceDetected: "longSilenceDetected";
|
|
6
|
+
readonly LongSilenceRecovered: "longSilenceRecovered";
|
|
7
|
+
};
|
|
8
|
+
export type TranscribeAudioEventDataEvent = (typeof TranscribeAudioEventDataEvent)[keyof typeof TranscribeAudioEventDataEvent];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TranscribeAudioEventDataEvent = void 0;
|
|
5
|
+
/** The type of audio quality or speech activity event */
|
|
6
|
+
exports.TranscribeAudioEventDataEvent = {
|
|
7
|
+
SpeechQualityIssueDetected: "speechQualityIssueDetected",
|
|
8
|
+
SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
|
|
9
|
+
LongSilenceDetected: "longSilenceDetected",
|
|
10
|
+
LongSilenceRecovered: "longSilenceRecovered",
|
|
11
|
+
};
|
|
@@ -11,6 +11,7 @@ export interface TranscribeConfig {
|
|
|
11
11
|
/** Commands that should be registered and detected */
|
|
12
12
|
commands?: Corti.TranscribeCommand[];
|
|
13
13
|
formatting?: Corti.TranscribeFormatting;
|
|
14
|
+
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
14
15
|
/** The audio format of the incoming audio stream */
|
|
15
16
|
audioFormat?: string;
|
|
16
17
|
}
|
|
@@ -127,9 +127,14 @@ export * from "./InteractionsPatient.js";
|
|
|
127
127
|
export * from "./OAuthTokenRequest.js";
|
|
128
128
|
export * from "./RecordingsCreateResponse.js";
|
|
129
129
|
export * from "./RecordingsListResponse.js";
|
|
130
|
+
export * from "./StreamAudioEventData.js";
|
|
131
|
+
export * from "./StreamAudioEventDataEvent.js";
|
|
132
|
+
export * from "./StreamAudioEventMessage.js";
|
|
133
|
+
export * from "./StreamAudioEventsConfig.js";
|
|
130
134
|
export * from "./StreamConfig.js";
|
|
131
135
|
export * from "./StreamConfigMessage.js";
|
|
132
136
|
export * from "./StreamConfigMode.js";
|
|
137
|
+
export * from "./StreamConfigModeFactGenerationInterval.js";
|
|
133
138
|
export * from "./StreamConfigModeType.js";
|
|
134
139
|
export * from "./StreamConfigParticipant.js";
|
|
135
140
|
export * from "./StreamConfigParticipantRole.js";
|
|
@@ -162,6 +167,10 @@ export * from "./TemplatesSectionSorted.js";
|
|
|
162
167
|
export * from "./TemplatesSectionTranslation.js";
|
|
163
168
|
export * from "./TemplatesTranslation.js";
|
|
164
169
|
export * from "./TemplatesWritingStyle.js";
|
|
170
|
+
export * from "./TranscribeAudioEventData.js";
|
|
171
|
+
export * from "./TranscribeAudioEventDataEvent.js";
|
|
172
|
+
export * from "./TranscribeAudioEventMessage.js";
|
|
173
|
+
export * from "./TranscribeAudioEventsConfig.js";
|
|
165
174
|
export * from "./TranscribeCommand.js";
|
|
166
175
|
export * from "./TranscribeCommandData.js";
|
|
167
176
|
export * from "./TranscribeCommandMessage.js";
|
|
@@ -143,9 +143,14 @@ __exportStar(require("./InteractionsPatient.js"), exports);
|
|
|
143
143
|
__exportStar(require("./OAuthTokenRequest.js"), exports);
|
|
144
144
|
__exportStar(require("./RecordingsCreateResponse.js"), exports);
|
|
145
145
|
__exportStar(require("./RecordingsListResponse.js"), exports);
|
|
146
|
+
__exportStar(require("./StreamAudioEventData.js"), exports);
|
|
147
|
+
__exportStar(require("./StreamAudioEventDataEvent.js"), exports);
|
|
148
|
+
__exportStar(require("./StreamAudioEventMessage.js"), exports);
|
|
149
|
+
__exportStar(require("./StreamAudioEventsConfig.js"), exports);
|
|
146
150
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
147
151
|
__exportStar(require("./StreamConfigMessage.js"), exports);
|
|
148
152
|
__exportStar(require("./StreamConfigMode.js"), exports);
|
|
153
|
+
__exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
|
|
149
154
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
150
155
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
151
156
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
@@ -178,6 +183,10 @@ __exportStar(require("./TemplatesSectionSorted.js"), exports);
|
|
|
178
183
|
__exportStar(require("./TemplatesSectionTranslation.js"), exports);
|
|
179
184
|
__exportStar(require("./TemplatesTranslation.js"), exports);
|
|
180
185
|
__exportStar(require("./TemplatesWritingStyle.js"), exports);
|
|
186
|
+
__exportStar(require("./TranscribeAudioEventData.js"), exports);
|
|
187
|
+
__exportStar(require("./TranscribeAudioEventDataEvent.js"), exports);
|
|
188
|
+
__exportStar(require("./TranscribeAudioEventMessage.js"), exports);
|
|
189
|
+
__exportStar(require("./TranscribeAudioEventsConfig.js"), exports);
|
|
181
190
|
__exportStar(require("./TranscribeCommand.js"), exports);
|
|
182
191
|
__exportStar(require("./TranscribeCommandData.js"), exports);
|
|
183
192
|
__exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { StreamAudioEventMessage } from "../../../../types/StreamAudioEventMessage.js";
|
|
4
5
|
import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.js";
|
|
5
6
|
import { StreamDeltaUsageMessage } from "../../../../types/StreamDeltaUsageMessage.js";
|
|
6
7
|
import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.js";
|
|
@@ -9,7 +10,7 @@ import { StreamFactsMessage } from "../../../../types/StreamFactsMessage.js";
|
|
|
9
10
|
import { StreamFlushedMessage } from "../../../../types/StreamFlushedMessage.js";
|
|
10
11
|
import { StreamTranscriptMessage } from "../../../../types/StreamTranscriptMessage.js";
|
|
11
12
|
import { StreamUsageMessage } from "../../../../types/StreamUsageMessage.js";
|
|
12
|
-
export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage>;
|
|
13
|
+
export declare const StreamSocketResponse: core.serialization.Schema<serializers.StreamSocketResponse.Raw, Corti.StreamTranscriptMessage | Corti.StreamFactsMessage | Corti.StreamFlushedMessage | Corti.StreamDeltaUsageMessage | Corti.StreamEndedMessage | Corti.StreamUsageMessage | Corti.StreamErrorMessage | Corti.StreamConfigStatusMessage | Corti.StreamAudioEventMessage>;
|
|
13
14
|
export declare namespace StreamSocketResponse {
|
|
14
|
-
type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw;
|
|
15
|
+
type Raw = StreamTranscriptMessage.Raw | StreamFactsMessage.Raw | StreamFlushedMessage.Raw | StreamDeltaUsageMessage.Raw | StreamEndedMessage.Raw | StreamUsageMessage.Raw | StreamErrorMessage.Raw | StreamConfigStatusMessage.Raw | StreamAudioEventMessage.Raw;
|
|
15
16
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.StreamSocketResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const StreamAudioEventMessage_js_1 = require("../../../../types/StreamAudioEventMessage.js");
|
|
39
40
|
const StreamConfigStatusMessage_js_1 = require("../../../../types/StreamConfigStatusMessage.js");
|
|
40
41
|
const StreamDeltaUsageMessage_js_1 = require("../../../../types/StreamDeltaUsageMessage.js");
|
|
41
42
|
const StreamEndedMessage_js_1 = require("../../../../types/StreamEndedMessage.js");
|
|
@@ -53,4 +54,5 @@ exports.StreamSocketResponse = core.serialization.undiscriminatedUnion([
|
|
|
53
54
|
StreamUsageMessage_js_1.StreamUsageMessage,
|
|
54
55
|
StreamErrorMessage_js_1.StreamErrorMessage,
|
|
55
56
|
StreamConfigStatusMessage_js_1.StreamConfigStatusMessage,
|
|
57
|
+
StreamAudioEventMessage_js_1.StreamAudioEventMessage,
|
|
56
58
|
]);
|
package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../../index.js";
|
|
4
|
+
import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.js";
|
|
4
5
|
import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.js";
|
|
5
6
|
import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.js";
|
|
6
7
|
import { TranscribeDeltaUsageMessage } from "../../../../types/TranscribeDeltaUsageMessage.js";
|
|
@@ -9,7 +10,7 @@ import { TranscribeErrorMessage } from "../../../../types/TranscribeErrorMessage
|
|
|
9
10
|
import { TranscribeFlushedMessage } from "../../../../types/TranscribeFlushedMessage.js";
|
|
10
11
|
import { TranscribeTranscriptMessage } from "../../../../types/TranscribeTranscriptMessage.js";
|
|
11
12
|
import { TranscribeUsageMessage } from "../../../../types/TranscribeUsageMessage.js";
|
|
12
|
-
export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage>;
|
|
13
|
+
export declare const TranscribeSocketResponse: core.serialization.Schema<serializers.TranscribeSocketResponse.Raw, Corti.TranscribeUsageMessage | Corti.TranscribeFlushedMessage | Corti.TranscribeDeltaUsageMessage | Corti.TranscribeEndedMessage | Corti.TranscribeErrorMessage | Corti.TranscribeTranscriptMessage | Corti.TranscribeCommandMessage | Corti.TranscribeConfigStatusMessage | Corti.TranscribeAudioEventMessage>;
|
|
13
14
|
export declare namespace TranscribeSocketResponse {
|
|
14
|
-
type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw;
|
|
15
|
+
type Raw = TranscribeUsageMessage.Raw | TranscribeFlushedMessage.Raw | TranscribeDeltaUsageMessage.Raw | TranscribeEndedMessage.Raw | TranscribeErrorMessage.Raw | TranscribeTranscriptMessage.Raw | TranscribeCommandMessage.Raw | TranscribeConfigStatusMessage.Raw | TranscribeAudioEventMessage.Raw;
|
|
15
16
|
}
|
package/dist/cjs/serialization/resources/transcribe/client/socket/TranscribeSocketResponse.js
CHANGED
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TranscribeSocketResponse = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
const TranscribeAudioEventMessage_js_1 = require("../../../../types/TranscribeAudioEventMessage.js");
|
|
39
40
|
const TranscribeCommandMessage_js_1 = require("../../../../types/TranscribeCommandMessage.js");
|
|
40
41
|
const TranscribeConfigStatusMessage_js_1 = require("../../../../types/TranscribeConfigStatusMessage.js");
|
|
41
42
|
const TranscribeDeltaUsageMessage_js_1 = require("../../../../types/TranscribeDeltaUsageMessage.js");
|
|
@@ -53,4 +54,5 @@ exports.TranscribeSocketResponse = core.serialization.undiscriminatedUnion([
|
|
|
53
54
|
TranscribeTranscriptMessage_js_1.TranscribeTranscriptMessage,
|
|
54
55
|
TranscribeCommandMessage_js_1.TranscribeCommandMessage,
|
|
55
56
|
TranscribeConfigStatusMessage_js_1.TranscribeConfigStatusMessage,
|
|
57
|
+
TranscribeAudioEventMessage_js_1.TranscribeAudioEventMessage,
|
|
56
58
|
]);
|
|
@@ -42,4 +42,5 @@ exports.AgentsCreateExpertReference = core.serialization.object({
|
|
|
42
42
|
id: core.serialization.string().optional(),
|
|
43
43
|
name: core.serialization.string().optional(),
|
|
44
44
|
systemPrompt: core.serialization.string().optional(),
|
|
45
|
+
config: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
45
46
|
});
|
|
@@ -42,4 +42,5 @@ exports.AgentsExpertReference = core.serialization.object({
|
|
|
42
42
|
id: core.serialization.string(),
|
|
43
43
|
name: core.serialization.string(),
|
|
44
44
|
systemPrompt: core.serialization.string().optional(),
|
|
45
|
+
resolvedConfig: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
45
46
|
});
|
|
@@ -43,4 +43,5 @@ exports.AgentsRegistryExpert = core.serialization.object({
|
|
|
43
43
|
displayDescription: core.serialization.string().optional(),
|
|
44
44
|
description: core.serialization.string(),
|
|
45
45
|
mcpServers: core.serialization.list(AgentsRegistryMcpServer_js_1.AgentsRegistryMcpServer).optional(),
|
|
46
|
+
configSchema: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
46
47
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { StreamAudioEventDataEvent } from "./StreamAudioEventDataEvent.js";
|
|
5
|
+
export declare const StreamAudioEventData: core.serialization.ObjectSchema<serializers.StreamAudioEventData.Raw, Corti.StreamAudioEventData>;
|
|
6
|
+
export declare namespace StreamAudioEventData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
event: StreamAudioEventDataEvent.Raw;
|
|
9
|
+
channel: number;
|
|
10
|
+
startTimeMs: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.StreamAudioEventData = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamAudioEventDataEvent_js_1 = require("./StreamAudioEventDataEvent.js");
|
|
40
|
+
exports.StreamAudioEventData = core.serialization.object({
|
|
41
|
+
event: StreamAudioEventDataEvent_js_1.StreamAudioEventDataEvent,
|
|
42
|
+
channel: core.serialization.number(),
|
|
43
|
+
startTimeMs: core.serialization.number(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const StreamAudioEventDataEvent: core.serialization.Schema<serializers.StreamAudioEventDataEvent.Raw, Corti.StreamAudioEventDataEvent>;
|
|
5
|
+
export declare namespace StreamAudioEventDataEvent {
|
|
6
|
+
type Raw = "speechQualityIssueDetected" | "speechQualityIssueRecovered" | "longSilenceDetected" | "longSilenceRecovered";
|
|
7
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.StreamAudioEventDataEvent = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamAudioEventDataEvent = core.serialization.enum_([
|
|
40
|
+
"speechQualityIssueDetected",
|
|
41
|
+
"speechQualityIssueRecovered",
|
|
42
|
+
"longSilenceDetected",
|
|
43
|
+
"longSilenceRecovered",
|
|
44
|
+
]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { StreamAudioEventData } from "./StreamAudioEventData.js";
|
|
5
|
+
export declare const StreamAudioEventMessage: core.serialization.ObjectSchema<serializers.StreamAudioEventMessage.Raw, Corti.StreamAudioEventMessage>;
|
|
6
|
+
export declare namespace StreamAudioEventMessage {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: "audioEvent";
|
|
9
|
+
data: StreamAudioEventData.Raw;
|
|
10
|
+
}
|
|
11
|
+
}
|