@corti/sdk 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/types/StreamConfig.d.ts +3 -1
- package/dist/cjs/api/types/{StreamConfigXCortiRetentionPolicy.d.ts → StreamConfigRetentionPolicy.d.ts} +2 -2
- package/dist/cjs/api/types/{StreamConfigXCortiRetentionPolicy.js → StreamConfigRetentionPolicy.js} +2 -2
- package/dist/cjs/api/types/StreamConfigStatusMessage.d.ts +2 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/api/types/TranscribeConfigStatusMessage.d.ts +4 -2
- package/dist/cjs/api/types/index.d.ts +1 -1
- package/dist/cjs/api/types/index.js +1 -1
- package/dist/cjs/serialization/types/StreamConfig.d.ts +3 -2
- package/dist/cjs/serialization/types/StreamConfig.js +3 -2
- package/dist/cjs/serialization/types/StreamConfigRetentionPolicy.d.ts +7 -0
- package/dist/cjs/serialization/types/{StreamConfigXCortiRetentionPolicy.js → StreamConfigRetentionPolicy.js} +2 -2
- package/dist/cjs/serialization/types/StreamConfigStatusMessage.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfigStatusMessage.js +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +1 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +1 -0
- package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.d.ts +3 -1
- package/dist/cjs/serialization/types/TranscribeConfigStatusMessage.js +3 -1
- package/dist/cjs/serialization/types/index.d.ts +1 -1
- package/dist/cjs/serialization/types/index.js +1 -1
- 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 +3 -1
- package/dist/esm/api/types/{StreamConfigXCortiRetentionPolicy.d.mts → StreamConfigRetentionPolicy.d.mts} +2 -2
- package/dist/esm/api/types/{StreamConfigXCortiRetentionPolicy.mjs → StreamConfigRetentionPolicy.mjs} +1 -1
- package/dist/esm/api/types/StreamConfigStatusMessage.d.mts +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/api/types/TranscribeConfigStatusMessage.d.mts +4 -2
- package/dist/esm/api/types/index.d.mts +1 -1
- package/dist/esm/api/types/index.mjs +1 -1
- package/dist/esm/serialization/types/StreamConfig.d.mts +3 -2
- package/dist/esm/serialization/types/StreamConfig.mjs +3 -2
- package/dist/esm/serialization/types/StreamConfigRetentionPolicy.d.mts +7 -0
- package/dist/esm/serialization/types/{StreamConfigXCortiRetentionPolicy.mjs → StreamConfigRetentionPolicy.mjs} +1 -1
- package/dist/esm/serialization/types/StreamConfigStatusMessage.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfigStatusMessage.mjs +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +1 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +1 -0
- package/dist/esm/serialization/types/TranscribeConfigStatusMessage.d.mts +3 -1
- package/dist/esm/serialization/types/TranscribeConfigStatusMessage.mjs +3 -1
- package/dist/esm/serialization/types/index.d.mts +1 -1
- package/dist/esm/serialization/types/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +4 -2
- package/dist/cjs/serialization/types/StreamConfigXCortiRetentionPolicy.d.ts +0 -7
- package/dist/esm/serialization/types/StreamConfigXCortiRetentionPolicy.d.mts +0 -7
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": "
|
|
47
|
-
"User-Agent": "@corti/sdk/
|
|
46
|
+
"X-Fern-SDK-Version": "2.0.0",
|
|
47
|
+
"User-Agent": "@corti/sdk/2.0.0",
|
|
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,
|
|
@@ -3,5 +3,7 @@ export interface StreamConfig {
|
|
|
3
3
|
transcription: Corti.StreamConfigTranscription;
|
|
4
4
|
mode: Corti.StreamConfigMode;
|
|
5
5
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
6
|
-
|
|
6
|
+
retentionPolicy?: Corti.StreamConfigRetentionPolicy;
|
|
7
|
+
/** The audio format of the incoming audio stream */
|
|
8
|
+
audioFormat?: string;
|
|
7
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const StreamConfigRetentionPolicy: {
|
|
3
3
|
readonly Retain: "retain";
|
|
4
4
|
readonly None: "none";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type StreamConfigRetentionPolicy = (typeof StreamConfigRetentionPolicy)[keyof typeof StreamConfigRetentionPolicy];
|
package/dist/cjs/api/types/{StreamConfigXCortiRetentionPolicy.js → StreamConfigRetentionPolicy.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.StreamConfigRetentionPolicy = void 0;
|
|
5
5
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
6
|
-
exports.
|
|
6
|
+
exports.StreamConfigRetentionPolicy = {
|
|
7
7
|
Retain: "retain",
|
|
8
8
|
None: "none",
|
|
9
9
|
};
|
|
@@ -4,4 +4,6 @@ export interface StreamConfigStatusMessage {
|
|
|
4
4
|
type: Corti.StreamConfigStatusMessageType;
|
|
5
5
|
/** Optional reason for rejection (e.g., 'language unavailable') */
|
|
6
6
|
reason?: string;
|
|
7
|
+
/** The resolved configuration. Only present when type is CONFIG_ACCEPTED. */
|
|
8
|
+
configuration?: Corti.StreamConfig;
|
|
7
9
|
}
|
|
@@ -4,6 +4,8 @@ export interface TranscribeConfigStatusMessage {
|
|
|
4
4
|
type: Corti.TranscribeConfigStatusMessageType;
|
|
5
5
|
/** Optional reason for rejection */
|
|
6
6
|
reason?: string;
|
|
7
|
-
/** Session identifier
|
|
8
|
-
sessionId
|
|
7
|
+
/** Session identifier. Only present when type is CONFIG_ACCEPTED. */
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
/** The resolved configuration. Only present when type is CONFIG_ACCEPTED. */
|
|
10
|
+
configuration?: Corti.TranscribeConfig;
|
|
9
11
|
}
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.js";
|
|
|
133
133
|
export * from "./StreamConfigModeType.js";
|
|
134
134
|
export * from "./StreamConfigParticipant.js";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.js";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.js";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.js";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.js";
|
|
138
139
|
export * from "./StreamConfigTranscription.js";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.js";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.js";
|
|
141
141
|
export * from "./StreamEndedMessage.js";
|
|
142
142
|
export * from "./StreamEndMessage.js";
|
|
@@ -149,10 +149,10 @@ __exportStar(require("./StreamConfigMode.js"), exports);
|
|
|
149
149
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
150
150
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
151
151
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
152
|
+
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
152
153
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
153
154
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
154
155
|
__exportStar(require("./StreamConfigTranscription.js"), exports);
|
|
155
|
-
__exportStar(require("./StreamConfigXCortiRetentionPolicy.js"), exports);
|
|
156
156
|
__exportStar(require("./StreamDeltaUsageMessage.js"), exports);
|
|
157
157
|
__exportStar(require("./StreamEndedMessage.js"), exports);
|
|
158
158
|
__exportStar(require("./StreamEndMessage.js"), exports);
|
|
@@ -2,13 +2,14 @@ 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 { StreamConfigMode } from "./StreamConfigMode.js";
|
|
5
|
+
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js";
|
|
5
6
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
|
|
6
|
-
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.js";
|
|
7
7
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
8
8
|
export declare namespace StreamConfig {
|
|
9
9
|
interface Raw {
|
|
10
10
|
transcription: StreamConfigTranscription.Raw;
|
|
11
11
|
mode: StreamConfigMode.Raw;
|
|
12
|
-
|
|
12
|
+
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
13
|
+
audioFormat?: string | null;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -37,10 +37,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.StreamConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
|
|
40
|
+
const StreamConfigRetentionPolicy_js_1 = require("./StreamConfigRetentionPolicy.js");
|
|
40
41
|
const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
|
|
41
|
-
const StreamConfigXCortiRetentionPolicy_js_1 = require("./StreamConfigXCortiRetentionPolicy.js");
|
|
42
42
|
exports.StreamConfig = core.serialization.object({
|
|
43
43
|
transcription: StreamConfigTranscription_js_1.StreamConfigTranscription,
|
|
44
44
|
mode: StreamConfigMode_js_1.StreamConfigMode,
|
|
45
|
-
|
|
45
|
+
retentionPolicy: StreamConfigRetentionPolicy_js_1.StreamConfigRetentionPolicy.optional(),
|
|
46
|
+
audioFormat: core.serialization.string().optional(),
|
|
46
47
|
});
|
|
@@ -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 StreamConfigRetentionPolicy: core.serialization.Schema<serializers.StreamConfigRetentionPolicy.Raw, Corti.StreamConfigRetentionPolicy>;
|
|
5
|
+
export declare namespace StreamConfigRetentionPolicy {
|
|
6
|
+
type Raw = "retain" | "none";
|
|
7
|
+
}
|
|
@@ -34,6 +34,6 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.StreamConfigRetentionPolicy = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
39
|
+
exports.StreamConfigRetentionPolicy = core.serialization.enum_(["retain", "none"]);
|
|
@@ -1,11 +1,13 @@
|
|
|
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 { StreamConfig } from "./StreamConfig.js";
|
|
4
5
|
import { StreamConfigStatusMessageType } from "./StreamConfigStatusMessageType.js";
|
|
5
6
|
export declare const StreamConfigStatusMessage: core.serialization.ObjectSchema<serializers.StreamConfigStatusMessage.Raw, Corti.StreamConfigStatusMessage>;
|
|
6
7
|
export declare namespace StreamConfigStatusMessage {
|
|
7
8
|
interface Raw {
|
|
8
9
|
type: StreamConfigStatusMessageType.Raw;
|
|
9
10
|
reason?: string | null;
|
|
11
|
+
configuration?: StreamConfig.Raw | null;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -36,8 +36,10 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.StreamConfigStatusMessage = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const StreamConfig_js_1 = require("./StreamConfig.js");
|
|
39
40
|
const StreamConfigStatusMessageType_js_1 = require("./StreamConfigStatusMessageType.js");
|
|
40
41
|
exports.StreamConfigStatusMessage = core.serialization.object({
|
|
41
42
|
type: StreamConfigStatusMessageType_js_1.StreamConfigStatusMessageType,
|
|
42
43
|
reason: core.serialization.string().optional(),
|
|
44
|
+
configuration: StreamConfig_js_1.StreamConfig.optional(),
|
|
43
45
|
});
|
|
@@ -46,4 +46,5 @@ exports.TranscribeConfig = core.serialization.object({
|
|
|
46
46
|
automaticPunctuation: core.serialization.boolean().optional(),
|
|
47
47
|
commands: core.serialization.list(TranscribeCommand_js_1.TranscribeCommand).optional(),
|
|
48
48
|
formatting: TranscribeFormatting_js_1.TranscribeFormatting.optional(),
|
|
49
|
+
audioFormat: core.serialization.string().optional(),
|
|
49
50
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
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 { TranscribeConfig } from "./TranscribeConfig.js";
|
|
4
5
|
import { TranscribeConfigStatusMessageType } from "./TranscribeConfigStatusMessageType.js";
|
|
5
6
|
export declare const TranscribeConfigStatusMessage: core.serialization.ObjectSchema<serializers.TranscribeConfigStatusMessage.Raw, Corti.TranscribeConfigStatusMessage>;
|
|
6
7
|
export declare namespace TranscribeConfigStatusMessage {
|
|
7
8
|
interface Raw {
|
|
8
9
|
type: TranscribeConfigStatusMessageType.Raw;
|
|
9
10
|
reason?: string | null;
|
|
10
|
-
sessionId
|
|
11
|
+
sessionId?: string | null;
|
|
12
|
+
configuration?: TranscribeConfig.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.TranscribeConfigStatusMessage = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeConfig_js_1 = require("./TranscribeConfig.js");
|
|
39
40
|
const TranscribeConfigStatusMessageType_js_1 = require("./TranscribeConfigStatusMessageType.js");
|
|
40
41
|
exports.TranscribeConfigStatusMessage = core.serialization.object({
|
|
41
42
|
type: TranscribeConfigStatusMessageType_js_1.TranscribeConfigStatusMessageType,
|
|
42
43
|
reason: core.serialization.string().optional(),
|
|
43
|
-
sessionId: core.serialization.string(),
|
|
44
|
+
sessionId: core.serialization.string().optional(),
|
|
45
|
+
configuration: TranscribeConfig_js_1.TranscribeConfig.optional(),
|
|
44
46
|
});
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.js";
|
|
|
133
133
|
export * from "./StreamConfigModeType.js";
|
|
134
134
|
export * from "./StreamConfigParticipant.js";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.js";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.js";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.js";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.js";
|
|
138
139
|
export * from "./StreamConfigTranscription.js";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.js";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.js";
|
|
141
141
|
export * from "./StreamEndedMessage.js";
|
|
142
142
|
export * from "./StreamEndMessage.js";
|
|
@@ -149,10 +149,10 @@ __exportStar(require("./StreamConfigMode.js"), exports);
|
|
|
149
149
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
150
150
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
151
151
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
152
|
+
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
152
153
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
153
154
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
154
155
|
__exportStar(require("./StreamConfigTranscription.js"), exports);
|
|
155
|
-
__exportStar(require("./StreamConfigXCortiRetentionPolicy.js"), exports);
|
|
156
156
|
__exportStar(require("./StreamDeltaUsageMessage.js"), exports);
|
|
157
157
|
__exportStar(require("./StreamEndedMessage.js"), exports);
|
|
158
158
|
__exportStar(require("./StreamEndMessage.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0";
|
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": "
|
|
10
|
-
"User-Agent": "@corti/sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "2.0.0",
|
|
10
|
+
"User-Agent": "@corti/sdk/2.0.0",
|
|
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,
|
|
@@ -3,5 +3,7 @@ export interface StreamConfig {
|
|
|
3
3
|
transcription: Corti.StreamConfigTranscription;
|
|
4
4
|
mode: Corti.StreamConfigMode;
|
|
5
5
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
6
|
-
|
|
6
|
+
retentionPolicy?: Corti.StreamConfigRetentionPolicy;
|
|
7
|
+
/** The audio format of the incoming audio stream */
|
|
8
|
+
audioFormat?: string;
|
|
7
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const StreamConfigRetentionPolicy: {
|
|
3
3
|
readonly Retain: "retain";
|
|
4
4
|
readonly None: "none";
|
|
5
5
|
};
|
|
6
|
-
export type
|
|
6
|
+
export type StreamConfigRetentionPolicy = (typeof StreamConfigRetentionPolicy)[keyof typeof StreamConfigRetentionPolicy];
|
package/dist/esm/api/types/{StreamConfigXCortiRetentionPolicy.mjs → StreamConfigRetentionPolicy.mjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
/** Optional parameter to specify data retention policy for the generated transcripts and facts. Use value 'none' to indicate data should not be stored in the database. Use value 'retain' to indicate that the data should be retained according to standard retention policies. If configuration is not provided, then the default retention policy will apply. */
|
|
3
|
-
export const
|
|
3
|
+
export const StreamConfigRetentionPolicy = {
|
|
4
4
|
Retain: "retain",
|
|
5
5
|
None: "none",
|
|
6
6
|
};
|
|
@@ -4,4 +4,6 @@ export interface StreamConfigStatusMessage {
|
|
|
4
4
|
type: Corti.StreamConfigStatusMessageType;
|
|
5
5
|
/** Optional reason for rejection (e.g., 'language unavailable') */
|
|
6
6
|
reason?: string;
|
|
7
|
+
/** The resolved configuration. Only present when type is CONFIG_ACCEPTED. */
|
|
8
|
+
configuration?: Corti.StreamConfig;
|
|
7
9
|
}
|
|
@@ -4,6 +4,8 @@ export interface TranscribeConfigStatusMessage {
|
|
|
4
4
|
type: Corti.TranscribeConfigStatusMessageType;
|
|
5
5
|
/** Optional reason for rejection */
|
|
6
6
|
reason?: string;
|
|
7
|
-
/** Session identifier
|
|
8
|
-
sessionId
|
|
7
|
+
/** Session identifier. Only present when type is CONFIG_ACCEPTED. */
|
|
8
|
+
sessionId?: string;
|
|
9
|
+
/** The resolved configuration. Only present when type is CONFIG_ACCEPTED. */
|
|
10
|
+
configuration?: Corti.TranscribeConfig;
|
|
9
11
|
}
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.mjs";
|
|
|
133
133
|
export * from "./StreamConfigModeType.mjs";
|
|
134
134
|
export * from "./StreamConfigParticipant.mjs";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
138
139
|
export * from "./StreamConfigTranscription.mjs";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.mjs";
|
|
141
141
|
export * from "./StreamEndedMessage.mjs";
|
|
142
142
|
export * from "./StreamEndMessage.mjs";
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.mjs";
|
|
|
133
133
|
export * from "./StreamConfigModeType.mjs";
|
|
134
134
|
export * from "./StreamConfigParticipant.mjs";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
138
139
|
export * from "./StreamConfigTranscription.mjs";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.mjs";
|
|
141
141
|
export * from "./StreamEndedMessage.mjs";
|
|
142
142
|
export * from "./StreamEndMessage.mjs";
|
|
@@ -2,13 +2,14 @@ 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 { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
5
|
+
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
|
|
5
6
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
6
|
-
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
7
7
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
8
8
|
export declare namespace StreamConfig {
|
|
9
9
|
interface Raw {
|
|
10
10
|
transcription: StreamConfigTranscription.Raw;
|
|
11
11
|
mode: StreamConfigMode.Raw;
|
|
12
|
-
|
|
12
|
+
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
13
|
+
audioFormat?: string | null;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { StreamConfigMode } from "./StreamConfigMode.mjs";
|
|
4
|
+
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.mjs";
|
|
4
5
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.mjs";
|
|
5
|
-
import { StreamConfigXCortiRetentionPolicy } from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
6
6
|
export const StreamConfig = core.serialization.object({
|
|
7
7
|
transcription: StreamConfigTranscription,
|
|
8
8
|
mode: StreamConfigMode,
|
|
9
|
-
|
|
9
|
+
retentionPolicy: StreamConfigRetentionPolicy.optional(),
|
|
10
|
+
audioFormat: core.serialization.string().optional(),
|
|
10
11
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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 StreamConfigRetentionPolicy: core.serialization.Schema<serializers.StreamConfigRetentionPolicy.Raw, Corti.StreamConfigRetentionPolicy>;
|
|
5
|
+
export declare namespace StreamConfigRetentionPolicy {
|
|
6
|
+
type Raw = "retain" | "none";
|
|
7
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
export const
|
|
3
|
+
export const StreamConfigRetentionPolicy = core.serialization.enum_(["retain", "none"]);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
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
|
+
import { StreamConfig } from "./StreamConfig.mjs";
|
|
4
5
|
import { StreamConfigStatusMessageType } from "./StreamConfigStatusMessageType.mjs";
|
|
5
6
|
export declare const StreamConfigStatusMessage: core.serialization.ObjectSchema<serializers.StreamConfigStatusMessage.Raw, Corti.StreamConfigStatusMessage>;
|
|
6
7
|
export declare namespace StreamConfigStatusMessage {
|
|
7
8
|
interface Raw {
|
|
8
9
|
type: StreamConfigStatusMessageType.Raw;
|
|
9
10
|
reason?: string | null;
|
|
11
|
+
configuration?: StreamConfig.Raw | null;
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -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
|
+
import { StreamConfig } from "./StreamConfig.mjs";
|
|
3
4
|
import { StreamConfigStatusMessageType } from "./StreamConfigStatusMessageType.mjs";
|
|
4
5
|
export const StreamConfigStatusMessage = core.serialization.object({
|
|
5
6
|
type: StreamConfigStatusMessageType,
|
|
6
7
|
reason: core.serialization.string().optional(),
|
|
8
|
+
configuration: StreamConfig.optional(),
|
|
7
9
|
});
|
|
@@ -10,4 +10,5 @@ export const TranscribeConfig = core.serialization.object({
|
|
|
10
10
|
automaticPunctuation: core.serialization.boolean().optional(),
|
|
11
11
|
commands: core.serialization.list(TranscribeCommand).optional(),
|
|
12
12
|
formatting: TranscribeFormatting.optional(),
|
|
13
|
+
audioFormat: core.serialization.string().optional(),
|
|
13
14
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
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
|
+
import { TranscribeConfig } from "./TranscribeConfig.mjs";
|
|
4
5
|
import { TranscribeConfigStatusMessageType } from "./TranscribeConfigStatusMessageType.mjs";
|
|
5
6
|
export declare const TranscribeConfigStatusMessage: core.serialization.ObjectSchema<serializers.TranscribeConfigStatusMessage.Raw, Corti.TranscribeConfigStatusMessage>;
|
|
6
7
|
export declare namespace TranscribeConfigStatusMessage {
|
|
7
8
|
interface Raw {
|
|
8
9
|
type: TranscribeConfigStatusMessageType.Raw;
|
|
9
10
|
reason?: string | null;
|
|
10
|
-
sessionId
|
|
11
|
+
sessionId?: string | null;
|
|
12
|
+
configuration?: TranscribeConfig.Raw | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { TranscribeConfig } from "./TranscribeConfig.mjs";
|
|
3
4
|
import { TranscribeConfigStatusMessageType } from "./TranscribeConfigStatusMessageType.mjs";
|
|
4
5
|
export const TranscribeConfigStatusMessage = core.serialization.object({
|
|
5
6
|
type: TranscribeConfigStatusMessageType,
|
|
6
7
|
reason: core.serialization.string().optional(),
|
|
7
|
-
sessionId: core.serialization.string(),
|
|
8
|
+
sessionId: core.serialization.string().optional(),
|
|
9
|
+
configuration: TranscribeConfig.optional(),
|
|
8
10
|
});
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.mjs";
|
|
|
133
133
|
export * from "./StreamConfigModeType.mjs";
|
|
134
134
|
export * from "./StreamConfigParticipant.mjs";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
138
139
|
export * from "./StreamConfigTranscription.mjs";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.mjs";
|
|
141
141
|
export * from "./StreamEndedMessage.mjs";
|
|
142
142
|
export * from "./StreamEndMessage.mjs";
|
|
@@ -133,10 +133,10 @@ export * from "./StreamConfigMode.mjs";
|
|
|
133
133
|
export * from "./StreamConfigModeType.mjs";
|
|
134
134
|
export * from "./StreamConfigParticipant.mjs";
|
|
135
135
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
136
|
+
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
136
137
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
137
138
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
138
139
|
export * from "./StreamConfigTranscription.mjs";
|
|
139
|
-
export * from "./StreamConfigXCortiRetentionPolicy.mjs";
|
|
140
140
|
export * from "./StreamDeltaUsageMessage.mjs";
|
|
141
141
|
export * from "./StreamEndedMessage.mjs";
|
|
142
142
|
export * from "./StreamEndMessage.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "2.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "2.0.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@corti/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,9 @@
|
|
|
66
66
|
"test": "vitest",
|
|
67
67
|
"test:unit": "vitest --project unit",
|
|
68
68
|
"test:wire": "vitest --project wire",
|
|
69
|
-
"test:integration": "
|
|
69
|
+
"test:integration": "pnpm test:integration:main && pnpm test:integration:empty-state",
|
|
70
|
+
"test:integration:main": "vitest run --config vitest.integration.config.mts --project integration",
|
|
71
|
+
"test:integration:empty-state": "vitest run --config vitest.integration.config.mts --project integration-empty-state"
|
|
70
72
|
},
|
|
71
73
|
"dependencies": {
|
|
72
74
|
"ws": "^8.16.0"
|
|
@@ -1,7 +0,0 @@
|
|
|
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 StreamConfigXCortiRetentionPolicy: core.serialization.Schema<serializers.StreamConfigXCortiRetentionPolicy.Raw, Corti.StreamConfigXCortiRetentionPolicy>;
|
|
5
|
-
export declare namespace StreamConfigXCortiRetentionPolicy {
|
|
6
|
-
type Raw = "retain" | "none";
|
|
7
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
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 StreamConfigXCortiRetentionPolicy: core.serialization.Schema<serializers.StreamConfigXCortiRetentionPolicy.Raw, Corti.StreamConfigXCortiRetentionPolicy>;
|
|
5
|
-
export declare namespace StreamConfigXCortiRetentionPolicy {
|
|
6
|
-
type Raw = "retain" | "none";
|
|
7
|
-
}
|