@corti/sdk 2.0.0-templates.9 → 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
|
@@ -0,0 +1,43 @@
|
|
|
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.StreamAudioEventMessage = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamAudioEventData_js_1 = require("./StreamAudioEventData.js");
|
|
40
|
+
exports.StreamAudioEventMessage = core.serialization.object({
|
|
41
|
+
type: core.serialization.stringLiteral("audioEvent"),
|
|
42
|
+
data: StreamAudioEventData_js_1.StreamAudioEventData,
|
|
43
|
+
});
|
|
@@ -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 StreamAudioEventsConfig: core.serialization.ObjectSchema<serializers.StreamAudioEventsConfig.Raw, Corti.StreamAudioEventsConfig>;
|
|
5
|
+
export declare namespace StreamAudioEventsConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
enabled?: boolean | null;
|
|
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.StreamAudioEventsConfig = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamAudioEventsConfig = core.serialization.object({
|
|
40
|
+
enabled: core.serialization.boolean().optional(),
|
|
41
|
+
});
|
|
@@ -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 { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.js";
|
|
4
5
|
import { StreamConfigMode } from "./StreamConfigMode.js";
|
|
5
6
|
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js";
|
|
6
7
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
|
|
@@ -10,6 +11,7 @@ export declare namespace StreamConfig {
|
|
|
10
11
|
transcription: StreamConfigTranscription.Raw;
|
|
11
12
|
mode: StreamConfigMode.Raw;
|
|
12
13
|
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
14
|
+
audioEvents?: StreamAudioEventsConfig.Raw | null;
|
|
13
15
|
audioFormat?: string | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.StreamConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamAudioEventsConfig_js_1 = require("./StreamAudioEventsConfig.js");
|
|
39
40
|
const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
|
|
40
41
|
const StreamConfigRetentionPolicy_js_1 = require("./StreamConfigRetentionPolicy.js");
|
|
41
42
|
const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
|
|
@@ -43,5 +44,6 @@ exports.StreamConfig = core.serialization.object({
|
|
|
43
44
|
transcription: StreamConfigTranscription_js_1.StreamConfigTranscription,
|
|
44
45
|
mode: StreamConfigMode_js_1.StreamConfigMode,
|
|
45
46
|
retentionPolicy: StreamConfigRetentionPolicy_js_1.StreamConfigRetentionPolicy.optional(),
|
|
47
|
+
audioEvents: StreamAudioEventsConfig_js_1.StreamAudioEventsConfig.optional(),
|
|
46
48
|
audioFormat: core.serialization.string().optional(),
|
|
47
49
|
});
|
|
@@ -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 { StreamConfigModeFactGenerationInterval } from "./StreamConfigModeFactGenerationInterval.js";
|
|
4
5
|
import { StreamConfigModeType } from "./StreamConfigModeType.js";
|
|
5
6
|
import { StreamSupportedLanguage } from "./StreamSupportedLanguage.js";
|
|
6
7
|
export declare const StreamConfigMode: core.serialization.ObjectSchema<serializers.StreamConfigMode.Raw, Corti.StreamConfigMode>;
|
|
@@ -8,5 +9,6 @@ export declare namespace StreamConfigMode {
|
|
|
8
9
|
interface Raw {
|
|
9
10
|
type: StreamConfigModeType.Raw;
|
|
10
11
|
outputLocale?: StreamSupportedLanguage.Raw | null;
|
|
12
|
+
factGenerationInterval?: StreamConfigModeFactGenerationInterval.Raw | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -36,9 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.StreamConfigMode = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamConfigModeFactGenerationInterval_js_1 = require("./StreamConfigModeFactGenerationInterval.js");
|
|
39
40
|
const StreamConfigModeType_js_1 = require("./StreamConfigModeType.js");
|
|
40
41
|
const StreamSupportedLanguage_js_1 = require("./StreamSupportedLanguage.js");
|
|
41
42
|
exports.StreamConfigMode = core.serialization.object({
|
|
42
43
|
type: StreamConfigModeType_js_1.StreamConfigModeType,
|
|
43
44
|
outputLocale: StreamSupportedLanguage_js_1.StreamSupportedLanguage.optional(),
|
|
45
|
+
factGenerationInterval: StreamConfigModeFactGenerationInterval_js_1.StreamConfigModeFactGenerationInterval.optional(),
|
|
44
46
|
});
|
|
@@ -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 StreamConfigModeFactGenerationInterval: core.serialization.Schema<serializers.StreamConfigModeFactGenerationInterval.Raw, Corti.StreamConfigModeFactGenerationInterval>;
|
|
5
|
+
export declare namespace StreamConfigModeFactGenerationInterval {
|
|
6
|
+
type Raw = "fixed" | "fast_init";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.StreamConfigModeFactGenerationInterval = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamConfigModeFactGenerationInterval = core.serialization.enum_(["fixed", "fast_init"]);
|
|
@@ -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 { TranscribeAudioEventDataEvent } from "./TranscribeAudioEventDataEvent.js";
|
|
5
|
+
export declare const TranscribeAudioEventData: core.serialization.ObjectSchema<serializers.TranscribeAudioEventData.Raw, Corti.TranscribeAudioEventData>;
|
|
6
|
+
export declare namespace TranscribeAudioEventData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
event: TranscribeAudioEventDataEvent.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.TranscribeAudioEventData = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeAudioEventDataEvent_js_1 = require("./TranscribeAudioEventDataEvent.js");
|
|
40
|
+
exports.TranscribeAudioEventData = core.serialization.object({
|
|
41
|
+
event: TranscribeAudioEventDataEvent_js_1.TranscribeAudioEventDataEvent,
|
|
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 TranscribeAudioEventDataEvent: core.serialization.Schema<serializers.TranscribeAudioEventDataEvent.Raw, Corti.TranscribeAudioEventDataEvent>;
|
|
5
|
+
export declare namespace TranscribeAudioEventDataEvent {
|
|
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.TranscribeAudioEventDataEvent = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.TranscribeAudioEventDataEvent = 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 { TranscribeAudioEventData } from "./TranscribeAudioEventData.js";
|
|
5
|
+
export declare const TranscribeAudioEventMessage: core.serialization.ObjectSchema<serializers.TranscribeAudioEventMessage.Raw, Corti.TranscribeAudioEventMessage>;
|
|
6
|
+
export declare namespace TranscribeAudioEventMessage {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: "audioEvent";
|
|
9
|
+
data: TranscribeAudioEventData.Raw;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.TranscribeAudioEventMessage = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeAudioEventData_js_1 = require("./TranscribeAudioEventData.js");
|
|
40
|
+
exports.TranscribeAudioEventMessage = core.serialization.object({
|
|
41
|
+
type: core.serialization.stringLiteral("audioEvent"),
|
|
42
|
+
data: TranscribeAudioEventData_js_1.TranscribeAudioEventData,
|
|
43
|
+
});
|
|
@@ -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 TranscribeAudioEventsConfig: core.serialization.ObjectSchema<serializers.TranscribeAudioEventsConfig.Raw, Corti.TranscribeAudioEventsConfig>;
|
|
5
|
+
export declare namespace TranscribeAudioEventsConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
enabled?: boolean | null;
|
|
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.TranscribeAudioEventsConfig = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.TranscribeAudioEventsConfig = core.serialization.object({
|
|
40
|
+
enabled: core.serialization.boolean().optional(),
|
|
41
|
+
});
|
|
@@ -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 { TranscribeAudioEventsConfig } from "./TranscribeAudioEventsConfig.js";
|
|
4
5
|
import { TranscribeCommand } from "./TranscribeCommand.js";
|
|
5
6
|
import { TranscribeFormatting } from "./TranscribeFormatting.js";
|
|
6
7
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js";
|
|
@@ -13,6 +14,7 @@ export declare namespace TranscribeConfig {
|
|
|
13
14
|
automaticPunctuation?: boolean | null;
|
|
14
15
|
commands?: TranscribeCommand.Raw[] | null;
|
|
15
16
|
formatting?: TranscribeFormatting.Raw | null;
|
|
17
|
+
audioEvents?: TranscribeAudioEventsConfig.Raw | null;
|
|
16
18
|
audioFormat?: string | null;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TranscribeConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeAudioEventsConfig_js_1 = require("./TranscribeAudioEventsConfig.js");
|
|
39
40
|
const TranscribeCommand_js_1 = require("./TranscribeCommand.js");
|
|
40
41
|
const TranscribeFormatting_js_1 = require("./TranscribeFormatting.js");
|
|
41
42
|
const TranscribeSupportedLanguage_js_1 = require("./TranscribeSupportedLanguage.js");
|
|
@@ -46,5 +47,6 @@ exports.TranscribeConfig = core.serialization.object({
|
|
|
46
47
|
automaticPunctuation: core.serialization.boolean().optional(),
|
|
47
48
|
commands: core.serialization.list(TranscribeCommand_js_1.TranscribeCommand).optional(),
|
|
48
49
|
formatting: TranscribeFormatting_js_1.TranscribeFormatting.optional(),
|
|
50
|
+
audioEvents: TranscribeAudioEventsConfig_js_1.TranscribeAudioEventsConfig.optional(),
|
|
49
51
|
audioFormat: core.serialization.string().optional(),
|
|
50
52
|
});
|
|
@@ -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);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.
|
|
1
|
+
export declare const SDK_VERSION = "2.1.0-rc";
|
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": "2.
|
|
10
|
-
"User-Agent": "@corti/sdk/2.
|
|
9
|
+
"X-Fern-SDK-Version": "2.1.0-rc",
|
|
10
|
+
"User-Agent": "@corti/sdk/2.1.0-rc",
|
|
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,
|
|
@@ -11,6 +11,6 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
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
|
|
@@ -106,7 +106,7 @@ export class TranscriptsClient {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Create a transcript from an audio file
|
|
109
|
+
* 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>
|
|
110
110
|
*
|
|
111
111
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
112
112
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -9,7 +9,7 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
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
|
}
|