@corti/sdk 3.1.0-rc.1 → 3.1.0-rc.2
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/types/StreamConfig.d.ts +4 -0
- package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +8 -0
- package/dist/cjs/api/types/StreamConfigKeyterms.js +3 -0
- package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.js +3 -0
- package/dist/cjs/api/types/StreamConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigReplacementsItem.js +3 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +3 -1
- package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeConfigKeyterms.js +3 -0
- package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- package/dist/cjs/serialization/types/StreamConfig.d.ts +4 -0
- package/dist/cjs/serialization/types/StreamConfig.js +4 -0
- package/dist/cjs/serialization/types/StreamConfigKeyterms.d.ts +10 -0
- package/dist/cjs/serialization/types/StreamConfigKeyterms.js +42 -0
- package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.js +41 -0
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.js +42 -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/TranscribeConfigKeyterms.d.ts +10 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeyterms.js +42 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.js +41 -0
- package/dist/cjs/serialization/types/index.d.ts +5 -0
- package/dist/cjs/serialization/types/index.js +5 -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/types/StreamConfig.d.mts +4 -0
- package/dist/esm/api/types/StreamConfigKeyterms.d.mts +8 -0
- package/dist/esm/api/types/StreamConfigKeyterms.mjs +2 -0
- package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/types/StreamConfigKeytermsTermsItem.mjs +2 -0
- package/dist/esm/api/types/StreamConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigReplacementsItem.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +3 -1
- package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +8 -0
- package/dist/esm/api/types/TranscribeConfigKeyterms.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfig.d.mts +4 -0
- package/dist/esm/serialization/types/StreamConfig.mjs +4 -0
- package/dist/esm/serialization/types/StreamConfigKeyterms.d.mts +10 -0
- package/dist/esm/serialization/types/StreamConfigKeyterms.mjs +6 -0
- package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.d.mts +9 -0
- package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfigReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/types/StreamConfigReplacementsItem.mjs +6 -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/TranscribeConfigKeyterms.d.mts +10 -0
- package/dist/esm/serialization/types/TranscribeConfigKeyterms.mjs +6 -0
- package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.d.mts +9 -0
- package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.mjs +5 -0
- package/dist/esm/serialization/types/index.d.mts +5 -0
- package/dist/esm/serialization/types/index.mjs +5 -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": "3.1.0-rc.
|
|
47
|
-
"User-Agent": "@corti/sdk/3.1.0-rc.
|
|
46
|
+
"X-Fern-SDK-Version": "3.1.0-rc.2",
|
|
47
|
+
"User-Agent": "@corti/sdk/3.1.0-rc.2",
|
|
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,
|
|
@@ -7,4 +7,8 @@ export interface StreamConfig {
|
|
|
7
7
|
audioEvents?: Corti.StreamAudioEventsConfig;
|
|
8
8
|
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
9
9
|
audioFormat?: string;
|
|
10
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
11
|
+
replacements?: Corti.StreamConfigReplacementsItem[];
|
|
12
|
+
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
13
|
+
keyterms?: Corti.StreamConfigKeyterms;
|
|
10
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
|
|
4
|
+
*/
|
|
5
|
+
export interface StreamConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. */
|
|
7
|
+
terms?: Corti.StreamConfigKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -14,6 +14,8 @@ export interface TranscribeConfig {
|
|
|
14
14
|
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
15
15
|
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
16
16
|
audioFormat?: string;
|
|
17
|
-
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is limited to 1,000 replacements per stream. */
|
|
17
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
18
18
|
replacements?: Corti.TranscribeConfigReplacementsItem[];
|
|
19
|
+
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
20
|
+
keyterms?: Corti.TranscribeConfigKeyterms;
|
|
19
21
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
|
|
4
|
+
*/
|
|
5
|
+
export interface TranscribeConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. */
|
|
7
|
+
terms?: Corti.TranscribeConfigKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.js";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.js";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.js";
|
|
192
192
|
export * from "./StreamConfig.js";
|
|
193
|
+
export * from "./StreamConfigKeyterms.js";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.js";
|
|
193
195
|
export * from "./StreamConfigMessage.js";
|
|
194
196
|
export * from "./StreamConfigMode.js";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.js";
|
|
196
198
|
export * from "./StreamConfigModeType.js";
|
|
197
199
|
export * from "./StreamConfigParticipant.js";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.js";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.js";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.js";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.js";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.js";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.js";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.js";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.js";
|
|
237
240
|
export * from "./TranscribeConfig.js";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.js";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.js";
|
|
238
243
|
export * from "./TranscribeConfigMessage.js";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.js";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
@@ -206,12 +206,15 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
|
|
|
206
206
|
__exportStar(require("./StreamAudioEventMessage.js"), exports);
|
|
207
207
|
__exportStar(require("./StreamAudioEventsConfig.js"), exports);
|
|
208
208
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
209
|
+
__exportStar(require("./StreamConfigKeyterms.js"), exports);
|
|
210
|
+
__exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
|
|
209
211
|
__exportStar(require("./StreamConfigMessage.js"), exports);
|
|
210
212
|
__exportStar(require("./StreamConfigMode.js"), exports);
|
|
211
213
|
__exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
|
|
212
214
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
213
215
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
214
216
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
217
|
+
__exportStar(require("./StreamConfigReplacementsItem.js"), exports);
|
|
215
218
|
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
216
219
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
217
220
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
@@ -251,6 +254,8 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
|
251
254
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
252
255
|
__exportStar(require("./TranscribeCommandVariableType.js"), exports);
|
|
253
256
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
257
|
+
__exportStar(require("./TranscribeConfigKeyterms.js"), exports);
|
|
258
|
+
__exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
|
|
254
259
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
255
260
|
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
256
261
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
@@ -2,7 +2,9 @@ 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
4
|
import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.js";
|
|
5
|
+
import { StreamConfigKeyterms } from "./StreamConfigKeyterms.js";
|
|
5
6
|
import { StreamConfigMode } from "./StreamConfigMode.js";
|
|
7
|
+
import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.js";
|
|
6
8
|
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js";
|
|
7
9
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
|
|
8
10
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
@@ -13,5 +15,7 @@ export declare namespace StreamConfig {
|
|
|
13
15
|
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
14
16
|
audioEvents?: StreamAudioEventsConfig.Raw | null;
|
|
15
17
|
audioFormat?: string | null;
|
|
18
|
+
replacements?: StreamConfigReplacementsItem.Raw[] | null;
|
|
19
|
+
keyterms?: StreamConfigKeyterms.Raw | null;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
@@ -37,7 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.StreamConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const StreamAudioEventsConfig_js_1 = require("./StreamAudioEventsConfig.js");
|
|
40
|
+
const StreamConfigKeyterms_js_1 = require("./StreamConfigKeyterms.js");
|
|
40
41
|
const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
|
|
42
|
+
const StreamConfigReplacementsItem_js_1 = require("./StreamConfigReplacementsItem.js");
|
|
41
43
|
const StreamConfigRetentionPolicy_js_1 = require("./StreamConfigRetentionPolicy.js");
|
|
42
44
|
const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
|
|
43
45
|
exports.StreamConfig = core.serialization.object({
|
|
@@ -46,4 +48,6 @@ exports.StreamConfig = core.serialization.object({
|
|
|
46
48
|
retentionPolicy: StreamConfigRetentionPolicy_js_1.StreamConfigRetentionPolicy.optional(),
|
|
47
49
|
audioEvents: StreamAudioEventsConfig_js_1.StreamAudioEventsConfig.optional(),
|
|
48
50
|
audioFormat: core.serialization.string().optional(),
|
|
51
|
+
replacements: core.serialization.list(StreamConfigReplacementsItem_js_1.StreamConfigReplacementsItem).optional(),
|
|
52
|
+
keyterms: StreamConfigKeyterms_js_1.StreamConfigKeyterms.optional(),
|
|
49
53
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { StreamConfigKeytermsTermsItem } from "./StreamConfigKeytermsTermsItem.js";
|
|
5
|
+
export declare const StreamConfigKeyterms: core.serialization.ObjectSchema<serializers.StreamConfigKeyterms.Raw, Corti.StreamConfigKeyterms>;
|
|
6
|
+
export declare namespace StreamConfigKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: StreamConfigKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.StreamConfigKeyterms = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamConfigKeytermsTermsItem_js_1 = require("./StreamConfigKeytermsTermsItem.js");
|
|
40
|
+
exports.StreamConfigKeyterms = core.serialization.object({
|
|
41
|
+
terms: core.serialization.list(StreamConfigKeytermsTermsItem_js_1.StreamConfigKeytermsTermsItem).optional(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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 StreamConfigKeytermsTermsItem: core.serialization.ObjectSchema<serializers.StreamConfigKeytermsTermsItem.Raw, Corti.StreamConfigKeytermsTermsItem>;
|
|
5
|
+
export declare namespace StreamConfigKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.StreamConfigKeytermsTermsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamConfigKeytermsTermsItem = core.serialization.object({
|
|
40
|
+
term: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 StreamConfigReplacementsItem: core.serialization.ObjectSchema<serializers.StreamConfigReplacementsItem.Raw, Corti.StreamConfigReplacementsItem>;
|
|
5
|
+
export declare namespace StreamConfigReplacementsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
find: string;
|
|
8
|
+
replace: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.StreamConfigReplacementsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamConfigReplacementsItem = core.serialization.object({
|
|
40
|
+
find: core.serialization.string(),
|
|
41
|
+
replace: core.serialization.string(),
|
|
42
|
+
});
|
|
@@ -3,6 +3,7 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.js";
|
|
5
5
|
import { TranscribeCommand } from "./TranscribeCommand.js";
|
|
6
|
+
import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.js";
|
|
6
7
|
import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.js";
|
|
7
8
|
import { TranscribeFormatting } from "./TranscribeFormatting.js";
|
|
8
9
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js";
|
|
@@ -18,5 +19,6 @@ export declare namespace TranscribeConfig {
|
|
|
18
19
|
audioEvents?: TranscribeAudioEventsConfig.Raw | null;
|
|
19
20
|
audioFormat?: string | null;
|
|
20
21
|
replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
|
|
22
|
+
keyterms?: TranscribeConfigKeyterms.Raw | null;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -38,6 +38,7 @@ exports.TranscribeConfig = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const TranscribeAudioEventsConfig_js_1 = require("./TranscribeAudioEventsConfig.js");
|
|
40
40
|
const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
|
|
41
|
+
const TranscribeConfigKeyterms_js_1 = require("./TranscribeConfigKeyterms.js");
|
|
41
42
|
const TranscribeConfigReplacementsItem_js_1 = require("./TranscribeConfigReplacementsItem.js");
|
|
42
43
|
const TranscribeFormatting_js_1 = require("./TranscribeFormatting.js");
|
|
43
44
|
const TranscribeSupportedLanguage_js_1 = require("./TranscribeSupportedLanguage.js");
|
|
@@ -51,4 +52,5 @@ exports.TranscribeConfig = core.serialization.object({
|
|
|
51
52
|
audioEvents: TranscribeAudioEventsConfig_js_1.TranscribeAudioEventsConfig.optional(),
|
|
52
53
|
audioFormat: core.serialization.string().optional(),
|
|
53
54
|
replacements: core.serialization.list(TranscribeConfigReplacementsItem_js_1.TranscribeConfigReplacementsItem).optional(),
|
|
55
|
+
keyterms: TranscribeConfigKeyterms_js_1.TranscribeConfigKeyterms.optional(),
|
|
54
56
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 { TranscribeConfigKeytermsTermsItem } from "./TranscribeConfigKeytermsTermsItem.js";
|
|
5
|
+
export declare const TranscribeConfigKeyterms: core.serialization.ObjectSchema<serializers.TranscribeConfigKeyterms.Raw, Corti.TranscribeConfigKeyterms>;
|
|
6
|
+
export declare namespace TranscribeConfigKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: TranscribeConfigKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.TranscribeConfigKeyterms = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeConfigKeytermsTermsItem_js_1 = require("./TranscribeConfigKeytermsTermsItem.js");
|
|
40
|
+
exports.TranscribeConfigKeyterms = core.serialization.object({
|
|
41
|
+
terms: core.serialization.list(TranscribeConfigKeytermsTermsItem_js_1.TranscribeConfigKeytermsTermsItem).optional(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
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 TranscribeConfigKeytermsTermsItem: core.serialization.ObjectSchema<serializers.TranscribeConfigKeytermsTermsItem.Raw, Corti.TranscribeConfigKeytermsTermsItem>;
|
|
5
|
+
export declare namespace TranscribeConfigKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.TranscribeConfigKeytermsTermsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.TranscribeConfigKeytermsTermsItem = core.serialization.object({
|
|
40
|
+
term: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.js";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.js";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.js";
|
|
192
192
|
export * from "./StreamConfig.js";
|
|
193
|
+
export * from "./StreamConfigKeyterms.js";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.js";
|
|
193
195
|
export * from "./StreamConfigMessage.js";
|
|
194
196
|
export * from "./StreamConfigMode.js";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.js";
|
|
196
198
|
export * from "./StreamConfigModeType.js";
|
|
197
199
|
export * from "./StreamConfigParticipant.js";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.js";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.js";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.js";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.js";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.js";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.js";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.js";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.js";
|
|
237
240
|
export * from "./TranscribeConfig.js";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.js";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.js";
|
|
238
243
|
export * from "./TranscribeConfigMessage.js";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.js";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
@@ -206,12 +206,15 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
|
|
|
206
206
|
__exportStar(require("./StreamAudioEventMessage.js"), exports);
|
|
207
207
|
__exportStar(require("./StreamAudioEventsConfig.js"), exports);
|
|
208
208
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
209
|
+
__exportStar(require("./StreamConfigKeyterms.js"), exports);
|
|
210
|
+
__exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
|
|
209
211
|
__exportStar(require("./StreamConfigMessage.js"), exports);
|
|
210
212
|
__exportStar(require("./StreamConfigMode.js"), exports);
|
|
211
213
|
__exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
|
|
212
214
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
213
215
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
214
216
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
217
|
+
__exportStar(require("./StreamConfigReplacementsItem.js"), exports);
|
|
215
218
|
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
216
219
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
217
220
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
@@ -251,6 +254,8 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
|
251
254
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
252
255
|
__exportStar(require("./TranscribeCommandVariableType.js"), exports);
|
|
253
256
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
257
|
+
__exportStar(require("./TranscribeConfigKeyterms.js"), exports);
|
|
258
|
+
__exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
|
|
254
259
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
255
260
|
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
256
261
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.0-rc.2";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "3.1.0-rc.
|
|
10
|
-
"User-Agent": "@corti/sdk/3.1.0-rc.
|
|
9
|
+
"X-Fern-SDK-Version": "3.1.0-rc.2",
|
|
10
|
+
"User-Agent": "@corti/sdk/3.1.0-rc.2",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -7,4 +7,8 @@ export interface StreamConfig {
|
|
|
7
7
|
audioEvents?: Corti.StreamAudioEventsConfig;
|
|
8
8
|
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
9
9
|
audioFormat?: string;
|
|
10
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
11
|
+
replacements?: Corti.StreamConfigReplacementsItem[];
|
|
12
|
+
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
13
|
+
keyterms?: Corti.StreamConfigKeyterms;
|
|
10
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
|
|
4
|
+
*/
|
|
5
|
+
export interface StreamConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. */
|
|
7
|
+
terms?: Corti.StreamConfigKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -14,6 +14,8 @@ export interface TranscribeConfig {
|
|
|
14
14
|
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
15
15
|
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
16
16
|
audioFormat?: string;
|
|
17
|
-
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is limited to 1,000 replacements per stream. */
|
|
17
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
18
18
|
replacements?: Corti.TranscribeConfigReplacementsItem[];
|
|
19
|
+
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
20
|
+
keyterms?: Corti.TranscribeConfigKeyterms;
|
|
19
21
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. Configuration is case sensitive and limited to 1,000 key terms per stream.
|
|
4
|
+
*/
|
|
5
|
+
export interface TranscribeConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. */
|
|
7
|
+
terms?: Corti.TranscribeConfigKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
192
|
export * from "./StreamConfig.mjs";
|
|
193
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
195
|
export * from "./StreamConfigMessage.mjs";
|
|
194
196
|
export * from "./StreamConfigMode.mjs";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
198
|
export * from "./StreamConfigModeType.mjs";
|
|
197
199
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
240
|
export * from "./TranscribeConfig.mjs";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
243
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
192
|
export * from "./StreamConfig.mjs";
|
|
193
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
195
|
export * from "./StreamConfigMessage.mjs";
|
|
194
196
|
export * from "./StreamConfigMode.mjs";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
198
|
export * from "./StreamConfigModeType.mjs";
|
|
197
199
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
240
|
export * from "./TranscribeConfig.mjs";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
243
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
|
@@ -2,7 +2,9 @@ import type * as Corti from "../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
|
|
5
|
+
import { StreamConfigKeyterms } from "./StreamConfigKeyterms.mjs";
|
|
5
6
|
import { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
7
|
+
import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.mjs";
|
|
6
8
|
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
|
|
7
9
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
8
10
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
@@ -13,5 +15,7 @@ export declare namespace StreamConfig {
|
|
|
13
15
|
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
14
16
|
audioEvents?: StreamAudioEventsConfig.Raw | null;
|
|
15
17
|
audioFormat?: string | null;
|
|
18
|
+
replacements?: StreamConfigReplacementsItem.Raw[] | null;
|
|
19
|
+
keyterms?: StreamConfigKeyterms.Raw | null;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.mjs";
|
|
4
|
+
import { StreamConfigKeyterms } from "./StreamConfigKeyterms.mjs";
|
|
4
5
|
import { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
6
|
+
import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.mjs";
|
|
5
7
|
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
|
|
6
8
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
7
9
|
export const StreamConfig = core.serialization.object({
|
|
@@ -10,4 +12,6 @@ export const StreamConfig = core.serialization.object({
|
|
|
10
12
|
retentionPolicy: StreamConfigRetentionPolicy.optional(),
|
|
11
13
|
audioEvents: StreamAudioEventsConfig.optional(),
|
|
12
14
|
audioFormat: core.serialization.string().optional(),
|
|
15
|
+
replacements: core.serialization.list(StreamConfigReplacementsItem).optional(),
|
|
16
|
+
keyterms: StreamConfigKeyterms.optional(),
|
|
13
17
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { StreamConfigKeytermsTermsItem } from "./StreamConfigKeytermsTermsItem.mjs";
|
|
5
|
+
export declare const StreamConfigKeyterms: core.serialization.ObjectSchema<serializers.StreamConfigKeyterms.Raw, Corti.StreamConfigKeyterms>;
|
|
6
|
+
export declare namespace StreamConfigKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: StreamConfigKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { StreamConfigKeytermsTermsItem } from "./StreamConfigKeytermsTermsItem.mjs";
|
|
4
|
+
export const StreamConfigKeyterms = core.serialization.object({
|
|
5
|
+
terms: core.serialization.list(StreamConfigKeytermsTermsItem).optional(),
|
|
6
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const StreamConfigKeytermsTermsItem: core.serialization.ObjectSchema<serializers.StreamConfigKeytermsTermsItem.Raw, Corti.StreamConfigKeytermsTermsItem>;
|
|
5
|
+
export declare namespace StreamConfigKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const StreamConfigReplacementsItem: core.serialization.ObjectSchema<serializers.StreamConfigReplacementsItem.Raw, Corti.StreamConfigReplacementsItem>;
|
|
5
|
+
export declare namespace StreamConfigReplacementsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
find: string;
|
|
8
|
+
replace: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -3,6 +3,7 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
4
|
import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
|
|
5
5
|
import { TranscribeCommand } from "./TranscribeCommand.mjs";
|
|
6
|
+
import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.mjs";
|
|
6
7
|
import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.mjs";
|
|
7
8
|
import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
|
|
8
9
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
|
|
@@ -18,5 +19,6 @@ export declare namespace TranscribeConfig {
|
|
|
18
19
|
audioEvents?: TranscribeAudioEventsConfig.Raw | null;
|
|
19
20
|
audioFormat?: string | null;
|
|
20
21
|
replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
|
|
22
|
+
keyterms?: TranscribeConfigKeyterms.Raw | null;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.mjs";
|
|
4
4
|
import { TranscribeCommand } from "./TranscribeCommand.mjs";
|
|
5
|
+
import { TranscribeConfigKeyterms } from "./TranscribeConfigKeyterms.mjs";
|
|
5
6
|
import { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.mjs";
|
|
6
7
|
import { TranscribeFormatting } from "./TranscribeFormatting.mjs";
|
|
7
8
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.mjs";
|
|
@@ -15,4 +16,5 @@ export const TranscribeConfig = core.serialization.object({
|
|
|
15
16
|
audioEvents: TranscribeAudioEventsConfig.optional(),
|
|
16
17
|
audioFormat: core.serialization.string().optional(),
|
|
17
18
|
replacements: core.serialization.list(TranscribeConfigReplacementsItem).optional(),
|
|
19
|
+
keyterms: TranscribeConfigKeyterms.optional(),
|
|
18
20
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { TranscribeConfigKeytermsTermsItem } from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
5
|
+
export declare const TranscribeConfigKeyterms: core.serialization.ObjectSchema<serializers.TranscribeConfigKeyterms.Raw, Corti.TranscribeConfigKeyterms>;
|
|
6
|
+
export declare namespace TranscribeConfigKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: TranscribeConfigKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { TranscribeConfigKeytermsTermsItem } from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
4
|
+
export const TranscribeConfigKeyterms = core.serialization.object({
|
|
5
|
+
terms: core.serialization.list(TranscribeConfigKeytermsTermsItem).optional(),
|
|
6
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const TranscribeConfigKeytermsTermsItem: core.serialization.ObjectSchema<serializers.TranscribeConfigKeytermsTermsItem.Raw, Corti.TranscribeConfigKeytermsTermsItem>;
|
|
5
|
+
export declare namespace TranscribeConfigKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
192
|
export * from "./StreamConfig.mjs";
|
|
193
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
195
|
export * from "./StreamConfigMessage.mjs";
|
|
194
196
|
export * from "./StreamConfigMode.mjs";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
198
|
export * from "./StreamConfigModeType.mjs";
|
|
197
199
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
240
|
export * from "./TranscribeConfig.mjs";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
243
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
|
@@ -190,12 +190,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
190
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
191
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
192
|
export * from "./StreamConfig.mjs";
|
|
193
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
194
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
195
|
export * from "./StreamConfigMessage.mjs";
|
|
194
196
|
export * from "./StreamConfigMode.mjs";
|
|
195
197
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
198
|
export * from "./StreamConfigModeType.mjs";
|
|
197
199
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
200
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
201
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
202
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
203
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
204
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +238,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
238
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
239
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
240
|
export * from "./TranscribeConfig.mjs";
|
|
241
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
242
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
243
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
244
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
245
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "3.1.0-rc.
|
|
1
|
+
export declare const SDK_VERSION = "3.1.0-rc.2";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "3.1.0-rc.
|
|
1
|
+
export const SDK_VERSION = "3.1.0-rc.2";
|