Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"cliVersion": "4.53.1",
"cliVersion": "4.76.1",
"generatorName": "fernapi/fern-typescript-node-sdk",
"generatorVersion": "3.54.0",
"generatorConfig": {
Expand Down Expand Up @@ -32,6 +32,6 @@
}
}
},
"originGitCommit": "177f72bd52a0833eabcddb0967f6d00ef24d9896",
"originGitCommit": "bc5129b292b8ce78588e8e6e9ca96d39cfbe1b6e",
"sdkVersion": "0.0.0-dev"
}
3 changes: 2 additions & 1 deletion src/api/resources/stream/client/Socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export declare namespace StreamSocket {
| Corti.StreamEndedMessage
| Corti.StreamUsageMessage
| Corti.StreamErrorMessage
| Corti.StreamConfigStatusMessage;
| Corti.StreamConfigStatusMessage
| Corti.StreamAudioEventMessage;
type EventHandlers = {
open?: () => void;
message?: (message: Response) => void;
Expand Down
3 changes: 2 additions & 1 deletion src/api/resources/transcribe/client/Socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ export declare namespace TranscribeSocket {
| Corti.TranscribeErrorMessage
| Corti.TranscribeTranscriptMessage
| Corti.TranscribeCommandMessage
| Corti.TranscribeConfigStatusMessage;
| Corti.TranscribeConfigStatusMessage
| Corti.TranscribeAudioEventMessage;
type EventHandlers = {
open?: () => void;
message?: (message: Response) => void;
Expand Down
12 changes: 12 additions & 0 deletions src/api/types/StreamAudioEventData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../index.js";

export interface StreamAudioEventData {
/** The type of audio quality or speech activity event */
event: Corti.StreamAudioEventDataEvent;
/** Audio channel identifier */
channel: number;
/** Start time of the event in milliseconds */
startTimeMs: number;
}
10 changes: 10 additions & 0 deletions src/api/types/StreamAudioEventDataEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file was auto-generated by Fern from our API Definition.

/** The type of audio quality or speech activity event */
export const StreamAudioEventDataEvent = {
SpeechQualityIssueDetected: "speechQualityIssueDetected",
SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
LongSilenceDetected: "longSilenceDetected",
LongSilenceRecovered: "longSilenceRecovered",
} as const;
export type StreamAudioEventDataEvent = (typeof StreamAudioEventDataEvent)[keyof typeof StreamAudioEventDataEvent];
8 changes: 8 additions & 0 deletions src/api/types/StreamAudioEventMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../index.js";

export interface StreamAudioEventMessage {
type: "audioEvent";
data: Corti.StreamAudioEventData;
}
12 changes: 12 additions & 0 deletions src/api/types/TranscribeAudioEventData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../index.js";

export interface TranscribeAudioEventData {
/** The type of audio quality or speech activity event */
event: Corti.TranscribeAudioEventDataEvent;
/** Audio channel identifier */
channel: number;
/** Start time of the event in milliseconds */
startTimeMs: number;
}
11 changes: 11 additions & 0 deletions src/api/types/TranscribeAudioEventDataEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// This file was auto-generated by Fern from our API Definition.

/** The type of audio quality or speech activity event */
export const TranscribeAudioEventDataEvent = {
SpeechQualityIssueDetected: "speechQualityIssueDetected",
SpeechQualityIssueRecovered: "speechQualityIssueRecovered",
LongSilenceDetected: "longSilenceDetected",
LongSilenceRecovered: "longSilenceRecovered",
} as const;
export type TranscribeAudioEventDataEvent =
(typeof TranscribeAudioEventDataEvent)[keyof typeof TranscribeAudioEventDataEvent];
8 changes: 8 additions & 0 deletions src/api/types/TranscribeAudioEventMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../index.js";

export interface TranscribeAudioEventMessage {
type: "audioEvent";
data: Corti.TranscribeAudioEventData;
}
6 changes: 6 additions & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export * from "./InteractionsPatient.js";
export * from "./OAuthTokenRequest.js";
export * from "./RecordingsCreateResponse.js";
export * from "./RecordingsListResponse.js";
export * from "./StreamAudioEventData.js";
export * from "./StreamAudioEventDataEvent.js";
export * from "./StreamAudioEventMessage.js";
export * from "./StreamConfig.js";
export * from "./StreamConfigMessage.js";
export * from "./StreamConfigMode.js";
Expand Down Expand Up @@ -160,6 +163,9 @@ export * from "./TemplatesSectionSorted.js";
export * from "./TemplatesSectionTranslation.js";
export * from "./TemplatesTranslation.js";
export * from "./TemplatesWritingStyle.js";
export * from "./TranscribeAudioEventData.js";
export * from "./TranscribeAudioEventDataEvent.js";
export * from "./TranscribeAudioEventMessage.js";
export * from "./TranscribeCommand.js";
export * from "./TranscribeCommandData.js";
export * from "./TranscribeCommandMessage.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import type * as Corti from "../../../../../api/index.js";
import * as core from "../../../../../core/index.js";
import type * as serializers from "../../../../index.js";
import { StreamAudioEventMessage } from "../../../../types/StreamAudioEventMessage.js";
import { StreamConfigStatusMessage } from "../../../../types/StreamConfigStatusMessage.js";
import { StreamEndedMessage } from "../../../../types/StreamEndedMessage.js";
import { StreamErrorMessage } from "../../../../types/StreamErrorMessage.js";
Expand All @@ -20,6 +21,7 @@ export const StreamSocketResponse: core.serialization.Schema<
| Corti.StreamUsageMessage
| Corti.StreamErrorMessage
| Corti.StreamConfigStatusMessage
| Corti.StreamAudioEventMessage
> = core.serialization.undiscriminatedUnion([
StreamTranscriptMessage,
StreamFactsMessage,
Expand All @@ -28,6 +30,7 @@ export const StreamSocketResponse: core.serialization.Schema<
StreamUsageMessage,
StreamErrorMessage,
StreamConfigStatusMessage,
StreamAudioEventMessage,
]);

export declare namespace StreamSocketResponse {
Expand All @@ -38,5 +41,6 @@ export declare namespace StreamSocketResponse {
| StreamEndedMessage.Raw
| StreamUsageMessage.Raw
| StreamErrorMessage.Raw
| StreamConfigStatusMessage.Raw;
| StreamConfigStatusMessage.Raw
| StreamAudioEventMessage.Raw;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import type * as Corti from "../../../../../api/index.js";
import * as core from "../../../../../core/index.js";
import type * as serializers from "../../../../index.js";
import { TranscribeAudioEventMessage } from "../../../../types/TranscribeAudioEventMessage.js";
import { TranscribeCommandMessage } from "../../../../types/TranscribeCommandMessage.js";
import { TranscribeConfigStatusMessage } from "../../../../types/TranscribeConfigStatusMessage.js";
import { TranscribeEndedMessage } from "../../../../types/TranscribeEndedMessage.js";
Expand All @@ -20,6 +21,7 @@ export const TranscribeSocketResponse: core.serialization.Schema<
| Corti.TranscribeTranscriptMessage
| Corti.TranscribeCommandMessage
| Corti.TranscribeConfigStatusMessage
| Corti.TranscribeAudioEventMessage
> = core.serialization.undiscriminatedUnion([
TranscribeUsageMessage,
TranscribeFlushedMessage,
Expand All @@ -28,6 +30,7 @@ export const TranscribeSocketResponse: core.serialization.Schema<
TranscribeTranscriptMessage,
TranscribeCommandMessage,
TranscribeConfigStatusMessage,
TranscribeAudioEventMessage,
]);

export declare namespace TranscribeSocketResponse {
Expand All @@ -38,5 +41,6 @@ export declare namespace TranscribeSocketResponse {
| TranscribeErrorMessage.Raw
| TranscribeTranscriptMessage.Raw
| TranscribeCommandMessage.Raw
| TranscribeConfigStatusMessage.Raw;
| TranscribeConfigStatusMessage.Raw
| TranscribeAudioEventMessage.Raw;
}
23 changes: 23 additions & 0 deletions src/serialization/types/StreamAudioEventData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
import { StreamAudioEventDataEvent } from "./StreamAudioEventDataEvent.js";

export const StreamAudioEventData: core.serialization.ObjectSchema<
serializers.StreamAudioEventData.Raw,
Corti.StreamAudioEventData
> = core.serialization.object({
event: StreamAudioEventDataEvent,
channel: core.serialization.number(),
startTimeMs: core.serialization.number(),
});

export declare namespace StreamAudioEventData {
export interface Raw {
event: StreamAudioEventDataEvent.Raw;
channel: number;
startTimeMs: number;
}
}
23 changes: 23 additions & 0 deletions src/serialization/types/StreamAudioEventDataEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";

export const StreamAudioEventDataEvent: core.serialization.Schema<
serializers.StreamAudioEventDataEvent.Raw,
Corti.StreamAudioEventDataEvent
> = core.serialization.enum_([
"speechQualityIssueDetected",
"speechQualityIssueRecovered",
"longSilenceDetected",
"longSilenceRecovered",
]);

export declare namespace StreamAudioEventDataEvent {
export type Raw =
| "speechQualityIssueDetected"
| "speechQualityIssueRecovered"
| "longSilenceDetected"
| "longSilenceRecovered";
}
21 changes: 21 additions & 0 deletions src/serialization/types/StreamAudioEventMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
import { StreamAudioEventData } from "./StreamAudioEventData.js";

export const StreamAudioEventMessage: core.serialization.ObjectSchema<
serializers.StreamAudioEventMessage.Raw,
Corti.StreamAudioEventMessage
> = core.serialization.object({
type: core.serialization.stringLiteral("audioEvent"),
data: StreamAudioEventData,
});

export declare namespace StreamAudioEventMessage {
export interface Raw {
type: "audioEvent";
data: StreamAudioEventData.Raw;
}
}
23 changes: 23 additions & 0 deletions src/serialization/types/TranscribeAudioEventData.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
import { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.js";

export const TranscribeAudioEventData: core.serialization.ObjectSchema<
serializers.TranscribeAudioEventData.Raw,
Corti.TranscribeAudioEventData
> = core.serialization.object({
event: TranscribeAudioEventDataEvent,
channel: core.serialization.number(),
startTimeMs: core.serialization.number(),
});

export declare namespace TranscribeAudioEventData {
export interface Raw {
event: TranscribeAudioEventDataEvent.Raw;
channel: number;
startTimeMs: number;
}
}
23 changes: 23 additions & 0 deletions src/serialization/types/TranscribeAudioEventDataEvent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";

export const TranscribeAudioEventDataEvent: core.serialization.Schema<
serializers.TranscribeAudioEventDataEvent.Raw,
Corti.TranscribeAudioEventDataEvent
> = core.serialization.enum_([
"speechQualityIssueDetected",
"speechQualityIssueRecovered",
"longSilenceDetected",
"longSilenceRecovered",
]);

export declare namespace TranscribeAudioEventDataEvent {
export type Raw =
| "speechQualityIssueDetected"
| "speechQualityIssueRecovered"
| "longSilenceDetected"
| "longSilenceRecovered";
}
21 changes: 21 additions & 0 deletions src/serialization/types/TranscribeAudioEventMessage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Corti from "../../api/index.js";
import * as core from "../../core/index.js";
import type * as serializers from "../index.js";
import { TranscribeAudioEventData } from "./TranscribeAudioEventData.js";

export const TranscribeAudioEventMessage: core.serialization.ObjectSchema<
serializers.TranscribeAudioEventMessage.Raw,
Corti.TranscribeAudioEventMessage
> = core.serialization.object({
type: core.serialization.stringLiteral("audioEvent"),
data: TranscribeAudioEventData,
});

export declare namespace TranscribeAudioEventMessage {
export interface Raw {
type: "audioEvent";
data: TranscribeAudioEventData.Raw;
}
}
6 changes: 6 additions & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ export * from "./InteractionsPatient.js";
export * from "./OAuthTokenRequest.js";
export * from "./RecordingsCreateResponse.js";
export * from "./RecordingsListResponse.js";
export * from "./StreamAudioEventData.js";
export * from "./StreamAudioEventDataEvent.js";
export * from "./StreamAudioEventMessage.js";
export * from "./StreamConfig.js";
export * from "./StreamConfigMessage.js";
export * from "./StreamConfigMode.js";
Expand Down Expand Up @@ -160,6 +163,9 @@ export * from "./TemplatesSectionSorted.js";
export * from "./TemplatesSectionTranslation.js";
export * from "./TemplatesTranslation.js";
export * from "./TemplatesWritingStyle.js";
export * from "./TranscribeAudioEventData.js";
export * from "./TranscribeAudioEventDataEvent.js";
export * from "./TranscribeAudioEventMessage.js";
export * from "./TranscribeCommand.js";
export * from "./TranscribeCommandData.js";
export * from "./TranscribeCommandMessage.js";
Expand Down
Loading