@corti/sdk 3.0.0 → 3.1.0-rc.1
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/documents/resources/sections/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js +6 -0
- 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 +3 -1
- package/dist/cjs/api/types/GuidedArrayNode.d.ts +3 -2
- package/dist/cjs/api/types/GuidedBoolNode.d.ts +2 -2
- package/dist/cjs/api/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/api/types/GuidedEphemeralDocument.d.ts +5 -0
- package/dist/cjs/api/types/GuidedFieldDefinition.d.ts +4 -1
- package/dist/cjs/api/types/GuidedNumberNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedObjectNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/api/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/GuidedStringNode.d.ts +4 -4
- package/dist/cjs/api/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/api/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/StreamConfig.d.ts +1 -1
- package/dist/cjs/api/types/StreamErrorDetail.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeCommand.d.ts +3 -3
- package/dist/cjs/api/types/TranscribeCommandVariable.d.ts +6 -5
- package/dist/cjs/api/types/TranscribeCommandVariableType.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeCommandVariableType.js +9 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +6 -4
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +2 -5
- package/dist/cjs/api/types/index.js +2 -5
- package/dist/cjs/custom/CortiClient.d.ts +14 -0
- package/dist/cjs/custom/CortiClient.js +21 -0
- package/dist/cjs/custom/utils/dictationTranscript.d.ts +26 -0
- package/dist/cjs/custom/utils/dictationTranscript.js +77 -0
- package/dist/cjs/custom/utils/index.d.ts +1 -0
- package/dist/cjs/custom/utils/index.js +3 -1
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +1 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.js +2 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.d.ts +3 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.js +3 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.d.ts +1 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.js +1 -0
- package/dist/cjs/serialization/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSection.js +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.js +0 -2
- package/dist/cjs/serialization/types/StreamErrorDetail.d.ts +6 -5
- package/dist/cjs/serialization/types/StreamErrorDetail.js +6 -5
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +1 -1
- package/dist/cjs/serialization/types/TranscribeCommandVariable.d.ts +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariable.js +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariableType.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedTemplatePolicyKind.js → TranscribeCommandVariableType.js} +2 -2
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/{GuidedSectionsCreatePolicyRequest.js → TranscribeConfigReplacementsItem.js} +4 -5
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.d.ts +6 -5
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.js +6 -5
- package/dist/cjs/serialization/types/index.d.ts +2 -5
- package/dist/cjs/serialization/types/index.js +2 -5
- 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/documents/resources/sections/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +6 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +7 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +7 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs +6 -0
- 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 +3 -1
- package/dist/esm/api/types/GuidedArrayNode.d.mts +3 -2
- package/dist/esm/api/types/GuidedBoolNode.d.mts +2 -2
- package/dist/esm/api/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/api/types/GuidedEphemeralDocument.d.mts +5 -0
- package/dist/esm/api/types/GuidedFieldDefinition.d.mts +4 -1
- package/dist/esm/api/types/GuidedNumberNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedObjectNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedSection.d.mts +0 -2
- package/dist/esm/api/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/api/types/GuidedStringNode.d.mts +4 -4
- package/dist/esm/api/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/api/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/api/types/StreamConfig.d.mts +1 -1
- package/dist/esm/api/types/StreamErrorDetail.d.mts +7 -5
- package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/api/types/TranscribeCommand.d.mts +3 -3
- package/dist/esm/api/types/TranscribeCommandVariable.d.mts +6 -5
- package/dist/esm/api/types/TranscribeCommandVariableType.d.mts +6 -0
- package/dist/esm/api/types/TranscribeCommandVariableType.mjs +6 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +6 -4
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +7 -5
- package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +2 -5
- package/dist/esm/api/types/index.mjs +2 -5
- package/dist/esm/custom/CortiClient.d.mts +14 -0
- package/dist/esm/custom/CortiClient.mjs +21 -0
- package/dist/esm/custom/utils/dictationTranscript.d.mts +26 -0
- package/dist/esm/custom/utils/dictationTranscript.mjs +74 -0
- package/dist/esm/custom/utils/index.d.mts +1 -0
- package/dist/esm/custom/utils/index.mjs +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +1 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.mjs +2 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.d.mts +3 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.mjs +3 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.d.mts +1 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.mjs +1 -0
- package/dist/esm/serialization/types/GuidedSection.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSection.mjs +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/StreamErrorDetail.d.mts +6 -5
- package/dist/esm/serialization/types/StreamErrorDetail.mjs +6 -5
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeCommandVariable.d.mts +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariable.mjs +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariableType.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedTemplatePolicyKind.mjs → TranscribeCommandVariableType.mjs} +1 -1
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.mjs +6 -0
- package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +6 -5
- package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +6 -5
- package/dist/esm/serialization/types/index.d.mts +2 -5
- package/dist/esm/serialization/types/index.mjs +2 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/api/types/GuidedSectionsCreatePolicyRequest.js +0 -3
- package/dist/cjs/api/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedTemplatePolicy.js +0 -3
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.js +0 -9
- package/dist/cjs/api/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatesCreatePolicyRequest.js +0 -3
- package/dist/cjs/serialization/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedSectionPolicy.js +0 -48
- package/dist/cjs/serialization/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -11
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.js +0 -48
- package/dist/cjs/serialization/types/GuidedTemplatePolicyKind.d.ts +0 -7
- package/dist/cjs/serialization/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -11
- package/dist/cjs/serialization/types/GuidedTemplatesCreatePolicyRequest.js +0 -43
- package/dist/esm/api/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/api/types/GuidedSectionsCreatePolicyRequest.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedTemplatePolicy.mjs +0 -2
- package/dist/esm/api/types/GuidedTemplatePolicyKind.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatePolicyKind.mjs +0 -6
- package/dist/esm/api/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatesCreatePolicyRequest.mjs +0 -2
- package/dist/esm/serialization/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedSectionPolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.mjs +0 -7
- package/dist/esm/serialization/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedTemplatePolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedTemplatePolicyKind.d.mts +0 -7
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.mjs +0 -7
- /package/dist/cjs/api/types/{GuidedSectionPolicy.js → TranscribeConfigReplacementsItem.js} +0 -0
- /package/dist/esm/api/types/{GuidedSectionPolicy.mjs → TranscribeConfigReplacementsItem.mjs} +0 -0
|
@@ -59,6 +59,27 @@ class CortiClient extends Client_js_1.CortiClient {
|
|
|
59
59
|
const ctx = (0, resolveClientOptions_js_1.resolveClientOptions)(options);
|
|
60
60
|
const restOptions = Object.assign(Object.assign(Object.assign({}, opts), { tenantName: ctx.tenantName, environment: (0, environment_js_1.getEnvironment)(ctx.environment) }), (ctx.initialTokenResponse != null ? { initialTokenResponse: ctx.initialTokenResponse } : {}));
|
|
61
61
|
super((0, authToBaseOptions_js_1.authToBaseOptions)(opts.auth, restOptions));
|
|
62
|
+
/**
|
|
63
|
+
* Returns the full set of URLs the client is configured to use.
|
|
64
|
+
*
|
|
65
|
+
* If a custom `baseUrl` was provided it overrides the `base` field; all
|
|
66
|
+
* other URLs are derived from the configured environment.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```typescript
|
|
70
|
+
* const client = new CortiClient({ environment: "eu", ... });
|
|
71
|
+
* const urls = await client.getEnvironmentUrls();
|
|
72
|
+
* // { base: "https://api.eu.corti.app/v2", wss: "wss://...", login: "https://...", agents: "https://..." }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
this.getEnvironmentUrls = () => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const baseUrl = yield core.Supplier.get(this._options.baseUrl);
|
|
77
|
+
// baseUrl is a universal override: all generated clients use `baseUrl ?? env.<field>`.
|
|
78
|
+
// Resolve environment only in the fallback path to avoid triggering auth discovery needlessly.
|
|
79
|
+
if (baseUrl != null)
|
|
80
|
+
return { base: baseUrl, wss: baseUrl, login: baseUrl, agents: baseUrl };
|
|
81
|
+
return yield core.Supplier.get(this._options.environment);
|
|
82
|
+
});
|
|
62
83
|
/**
|
|
63
84
|
* Retrieves authentication headers for API requests.
|
|
64
85
|
*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TranscribeTranscriptData } from "../../api/types/TranscribeTranscriptData.js";
|
|
2
|
+
export interface DictationTranscriptSnapshot {
|
|
3
|
+
/** Finalized text. Use this for copy, clear, and JSON export. */
|
|
4
|
+
committedText: string;
|
|
5
|
+
/**
|
|
6
|
+
* Active interim preview. Empty string when none.
|
|
7
|
+
* Includes its leading boundary space so the UI can render it verbatim
|
|
8
|
+
* immediately after committedText.
|
|
9
|
+
*/
|
|
10
|
+
interimText: string;
|
|
11
|
+
/** @internal */
|
|
12
|
+
_finalizedStarts: ReadonlySet<number>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
_latestFinalEnd: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Pure function that applies a single transcript message to the previous
|
|
18
|
+
* snapshot and returns a new snapshot with updated committed/interim text.
|
|
19
|
+
*
|
|
20
|
+
* - Handles the two-layer committed + interim model (DXG-844).
|
|
21
|
+
* - Ignores late interims that overlap an already-finalized timeline (DXG-1093).
|
|
22
|
+
*
|
|
23
|
+
* @param previous - The last snapshot, or `undefined` on first call.
|
|
24
|
+
* @param message - The incoming transcript packet (subset of TranscribeTranscriptData).
|
|
25
|
+
*/
|
|
26
|
+
export declare function applyDictationTranscript(previous: DictationTranscriptSnapshot | undefined, message: Pick<TranscribeTranscriptData, "text" | "start" | "end" | "isFinal">): DictationTranscriptSnapshot;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applyDictationTranscript = applyDictationTranscript;
|
|
4
|
+
const NO_SPACE_AFTER = new Set(["(", "[", "{", '"', "'", "\u2018", "\u201c"]);
|
|
5
|
+
const LEFT_ATTACH = new Set([",", ".", ":", ";", "!", "?", ")", "]", "}", "%"]);
|
|
6
|
+
/**
|
|
7
|
+
* Returns the segment text prefixed with at most one space, applying
|
|
8
|
+
* punctuation-aware boundary rules so callers never produce double-spaces
|
|
9
|
+
* or spaces before attachment characters.
|
|
10
|
+
*/
|
|
11
|
+
function buildInsertion(committed, segment) {
|
|
12
|
+
var _a;
|
|
13
|
+
if (!segment)
|
|
14
|
+
return segment;
|
|
15
|
+
const prevChar = committed.length > 0 ? committed[committed.length - 1] : "";
|
|
16
|
+
const nextChar = (_a = segment[0]) !== null && _a !== void 0 ? _a : "";
|
|
17
|
+
const needsSpace = committed.length > 0 && !/\s/.test(prevChar) && !NO_SPACE_AFTER.has(prevChar) && !LEFT_ATTACH.has(nextChar);
|
|
18
|
+
return needsSpace ? ` ${segment}` : segment;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Pure function that applies a single transcript message to the previous
|
|
22
|
+
* snapshot and returns a new snapshot with updated committed/interim text.
|
|
23
|
+
*
|
|
24
|
+
* - Handles the two-layer committed + interim model (DXG-844).
|
|
25
|
+
* - Ignores late interims that overlap an already-finalized timeline (DXG-1093).
|
|
26
|
+
*
|
|
27
|
+
* @param previous - The last snapshot, or `undefined` on first call.
|
|
28
|
+
* @param message - The incoming transcript packet (subset of TranscribeTranscriptData).
|
|
29
|
+
*/
|
|
30
|
+
function applyDictationTranscript(previous, message) {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
const committedText = (_a = previous === null || previous === void 0 ? void 0 : previous.committedText) !== null && _a !== void 0 ? _a : "";
|
|
33
|
+
const finalizedStarts = (_b = previous === null || previous === void 0 ? void 0 : previous._finalizedStarts) !== null && _b !== void 0 ? _b : new Set();
|
|
34
|
+
const latestFinalEnd = (_c = previous === null || previous === void 0 ? void 0 : previous._latestFinalEnd) !== null && _c !== void 0 ? _c : -Infinity;
|
|
35
|
+
if (message.isFinal) {
|
|
36
|
+
if (finalizedStarts.has(message.start)) {
|
|
37
|
+
return {
|
|
38
|
+
committedText,
|
|
39
|
+
interimText: "",
|
|
40
|
+
_finalizedStarts: finalizedStarts,
|
|
41
|
+
_latestFinalEnd: latestFinalEnd,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const nextFinalizedStarts = new Set(finalizedStarts);
|
|
45
|
+
nextFinalizedStarts.add(message.start);
|
|
46
|
+
const newCommitted = committedText + buildInsertion(committedText, message.text);
|
|
47
|
+
return {
|
|
48
|
+
committedText: newCommitted,
|
|
49
|
+
interimText: "",
|
|
50
|
+
_finalizedStarts: nextFinalizedStarts,
|
|
51
|
+
_latestFinalEnd: Math.max(latestFinalEnd, message.end),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
// Interim path.
|
|
55
|
+
if (finalizedStarts.has(message.start)) {
|
|
56
|
+
return (previous !== null && previous !== void 0 ? previous : {
|
|
57
|
+
committedText: "",
|
|
58
|
+
interimText: "",
|
|
59
|
+
_finalizedStarts: finalizedStarts,
|
|
60
|
+
_latestFinalEnd: latestFinalEnd,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (message.start < latestFinalEnd) {
|
|
64
|
+
return (previous !== null && previous !== void 0 ? previous : {
|
|
65
|
+
committedText: "",
|
|
66
|
+
interimText: "",
|
|
67
|
+
_finalizedStarts: finalizedStarts,
|
|
68
|
+
_latestFinalEnd: latestFinalEnd,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
committedText,
|
|
73
|
+
interimText: buildInsertion(committedText, message.text),
|
|
74
|
+
_finalizedStarts: finalizedStarts,
|
|
75
|
+
_latestFinalEnd: latestFinalEnd,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type DecodedToken, decodeToken } from "./decodeToken.js";
|
|
2
|
+
export { applyDictationTranscript, type DictationTranscriptSnapshot, } from "./dictationTranscript.js";
|
|
2
3
|
export { getEnvironment } from "./environment.js";
|
|
3
4
|
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateCodeVerifier = exports.generateCodeChallenge = exports.getEnvironment = exports.decodeToken = void 0;
|
|
3
|
+
exports.generateCodeVerifier = exports.generateCodeChallenge = exports.getEnvironment = exports.applyDictationTranscript = exports.decodeToken = void 0;
|
|
4
4
|
var decodeToken_js_1 = require("./decodeToken.js");
|
|
5
5
|
Object.defineProperty(exports, "decodeToken", { enumerable: true, get: function () { return decodeToken_js_1.decodeToken; } });
|
|
6
|
+
var dictationTranscript_js_1 = require("./dictationTranscript.js");
|
|
7
|
+
Object.defineProperty(exports, "applyDictationTranscript", { enumerable: true, get: function () { return dictationTranscript_js_1.applyDictationTranscript; } });
|
|
6
8
|
var environment_js_1 = require("./environment.js");
|
|
7
9
|
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return environment_js_1.getEnvironment; } });
|
|
8
10
|
var pkceHelpers_js_1 = require("./pkceHelpers.js");
|
package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js
CHANGED
|
@@ -45,4 +45,5 @@ exports.TranscriptsCreateRequest = core.serialization.object({
|
|
|
45
45
|
isMultichannel: core.serialization.boolean().optional(),
|
|
46
46
|
diarize: core.serialization.boolean().optional(),
|
|
47
47
|
participants: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optional(),
|
|
48
|
+
async: core.serialization.boolean().optional(),
|
|
48
49
|
});
|
|
@@ -2,11 +2,13 @@ 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 { GuidedDocumentContext } from "./GuidedDocumentContext.js";
|
|
5
|
+
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
6
|
export declare const GuidedDocumentsGenerateBase: core.serialization.ObjectSchema<serializers.GuidedDocumentsGenerateBase.Raw, Corti.GuidedDocumentsGenerateBase>;
|
|
6
7
|
export declare namespace GuidedDocumentsGenerateBase {
|
|
7
8
|
interface Raw {
|
|
8
9
|
outputLanguage: string;
|
|
9
10
|
context?: GuidedDocumentContext.Raw[] | null;
|
|
10
11
|
interactionId?: string | null;
|
|
12
|
+
labels?: GuidedLabel.Raw[] | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedDocumentsGenerateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
|
|
40
|
+
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
41
|
exports.GuidedDocumentsGenerateBase = core.serialization.object({
|
|
41
42
|
outputLanguage: core.serialization.string(),
|
|
42
43
|
context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
|
|
43
44
|
interactionId: core.serialization.string().optional(),
|
|
45
|
+
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
44
46
|
});
|
|
@@ -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 { GuidedLabel } from "./GuidedLabel.js";
|
|
4
5
|
export declare const GuidedEphemeralDocument: core.serialization.ObjectSchema<serializers.GuidedEphemeralDocument.Raw, Corti.GuidedEphemeralDocument>;
|
|
5
6
|
export declare namespace GuidedEphemeralDocument {
|
|
6
7
|
interface Raw {
|
|
@@ -8,7 +9,9 @@ export declare namespace GuidedEphemeralDocument {
|
|
|
8
9
|
templateId: string;
|
|
9
10
|
templateVersionId: string;
|
|
10
11
|
language: string;
|
|
12
|
+
interactionId?: (string | null | undefined) | null;
|
|
11
13
|
stringDocument: Record<string, string>;
|
|
12
14
|
structuredDocument?: (Record<string, unknown> | null | undefined) | null;
|
|
15
|
+
labels: GuidedLabel.Raw[];
|
|
13
16
|
}
|
|
14
17
|
}
|
|
@@ -36,13 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.GuidedEphemeralDocument = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
39
40
|
exports.GuidedEphemeralDocument = core.serialization.object({
|
|
40
41
|
name: core.serialization.string(),
|
|
41
42
|
templateId: core.serialization.string(),
|
|
42
43
|
templateVersionId: core.serialization.string(),
|
|
43
44
|
language: core.serialization.string(),
|
|
45
|
+
interactionId: core.serialization.string().optionalNullable(),
|
|
44
46
|
stringDocument: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
45
47
|
structuredDocument: core.serialization
|
|
46
48
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
47
49
|
.optionalNullable(),
|
|
50
|
+
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
48
51
|
});
|
|
@@ -41,4 +41,5 @@ exports.GuidedFieldDefinition = core.serialization.object({
|
|
|
41
41
|
key: core.serialization.string(),
|
|
42
42
|
description: core.serialization.string(),
|
|
43
43
|
value: core.serialization.lazy(() => serializers.GuidedOutputSchema),
|
|
44
|
+
default: core.serialization.string().optionalNullable(),
|
|
44
45
|
});
|
|
@@ -2,7 +2,6 @@ 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 { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedSectionPolicy } from "./GuidedSectionPolicy.js";
|
|
6
5
|
import { GuidedSectionSource } from "./GuidedSectionSource.js";
|
|
7
6
|
import { GuidedSectionVersion } from "./GuidedSectionVersion.js";
|
|
8
7
|
export declare const GuidedSection: core.serialization.ObjectSchema<serializers.GuidedSection.Raw, Corti.GuidedSection>;
|
|
@@ -22,6 +21,5 @@ export declare namespace GuidedSection {
|
|
|
22
21
|
createdAt: string;
|
|
23
22
|
updatedAt: string;
|
|
24
23
|
deletedAt?: (string | null | undefined) | null;
|
|
25
|
-
policies?: GuidedSectionPolicy.Raw[] | null;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedSection = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedSectionPolicy_js_1 = require("./GuidedSectionPolicy.js");
|
|
41
40
|
const GuidedSectionSource_js_1 = require("./GuidedSectionSource.js");
|
|
42
41
|
const GuidedSectionVersion_js_1 = require("./GuidedSectionVersion.js");
|
|
43
42
|
exports.GuidedSection = core.serialization.object({
|
|
@@ -55,5 +54,4 @@ exports.GuidedSection = core.serialization.object({
|
|
|
55
54
|
createdAt: core.serialization.date(),
|
|
56
55
|
updatedAt: core.serialization.date(),
|
|
57
56
|
deletedAt: core.serialization.date().optionalNullable(),
|
|
58
|
-
policies: core.serialization.list(GuidedSectionPolicy_js_1.GuidedSectionPolicy).optional(),
|
|
59
57
|
});
|
|
@@ -2,7 +2,6 @@ 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 { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedSectionsCreatePolicyRequest } from "./GuidedSectionsCreatePolicyRequest.js";
|
|
6
5
|
export declare const GuidedSectionsCreateBase: core.serialization.ObjectSchema<serializers.GuidedSectionsCreateBase.Raw, Corti.GuidedSectionsCreateBase>;
|
|
7
6
|
export declare namespace GuidedSectionsCreateBase {
|
|
8
7
|
interface Raw {
|
|
@@ -13,6 +12,5 @@ export declare namespace GuidedSectionsCreateBase {
|
|
|
13
12
|
specialties?: string[] | null;
|
|
14
13
|
labels?: GuidedLabel.Raw[] | null;
|
|
15
14
|
publish?: boolean | null;
|
|
16
|
-
policies?: GuidedSectionsCreatePolicyRequest.Raw[] | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedSectionsCreateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedSectionsCreatePolicyRequest_js_1 = require("./GuidedSectionsCreatePolicyRequest.js");
|
|
41
40
|
exports.GuidedSectionsCreateBase = core.serialization.object({
|
|
42
41
|
name: core.serialization.string(),
|
|
43
42
|
description: core.serialization.string().optional(),
|
|
@@ -46,5 +45,4 @@ exports.GuidedSectionsCreateBase = core.serialization.object({
|
|
|
46
45
|
specialties: core.serialization.list(core.serialization.string()).optional(),
|
|
47
46
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
48
47
|
publish: core.serialization.boolean().optional(),
|
|
49
|
-
policies: core.serialization.list(GuidedSectionsCreatePolicyRequest_js_1.GuidedSectionsCreatePolicyRequest).optional(),
|
|
50
48
|
});
|
|
@@ -2,7 +2,6 @@ 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 { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedTemplatePolicy } from "./GuidedTemplatePolicy.js";
|
|
6
5
|
import { GuidedTemplateSource } from "./GuidedTemplateSource.js";
|
|
7
6
|
import { GuidedTemplateVersion } from "./GuidedTemplateVersion.js";
|
|
8
7
|
export declare const GuidedTemplate: core.serialization.ObjectSchema<serializers.GuidedTemplate.Raw, Corti.GuidedTemplate>;
|
|
@@ -18,7 +17,6 @@ export declare namespace GuidedTemplate {
|
|
|
18
17
|
regions: string[];
|
|
19
18
|
specialties: string[];
|
|
20
19
|
labels: GuidedLabel.Raw[];
|
|
21
|
-
policies?: GuidedTemplatePolicy.Raw[] | null;
|
|
22
20
|
publishedVersion?: GuidedTemplateVersion.Raw | null;
|
|
23
21
|
createdAt: string;
|
|
24
22
|
updatedAt: string;
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedTemplate = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedTemplatePolicy_js_1 = require("./GuidedTemplatePolicy.js");
|
|
41
40
|
const GuidedTemplateSource_js_1 = require("./GuidedTemplateSource.js");
|
|
42
41
|
const GuidedTemplateVersion_js_1 = require("./GuidedTemplateVersion.js");
|
|
43
42
|
exports.GuidedTemplate = core.serialization.object({
|
|
@@ -51,7 +50,6 @@ exports.GuidedTemplate = core.serialization.object({
|
|
|
51
50
|
regions: core.serialization.list(core.serialization.string()),
|
|
52
51
|
specialties: core.serialization.list(core.serialization.string()),
|
|
53
52
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
54
|
-
policies: core.serialization.list(GuidedTemplatePolicy_js_1.GuidedTemplatePolicy).optional(),
|
|
55
53
|
publishedVersion: GuidedTemplateVersion_js_1.GuidedTemplateVersion.optional(),
|
|
56
54
|
createdAt: core.serialization.date(),
|
|
57
55
|
updatedAt: core.serialization.date(),
|
|
@@ -2,7 +2,6 @@ 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 { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedTemplatesCreatePolicyRequest } from "./GuidedTemplatesCreatePolicyRequest.js";
|
|
6
5
|
export declare const GuidedTemplatesCreateBase: core.serialization.ObjectSchema<serializers.GuidedTemplatesCreateBase.Raw, Corti.GuidedTemplatesCreateBase>;
|
|
7
6
|
export declare namespace GuidedTemplatesCreateBase {
|
|
8
7
|
interface Raw {
|
|
@@ -13,6 +12,5 @@ export declare namespace GuidedTemplatesCreateBase {
|
|
|
13
12
|
specialties?: string[] | null;
|
|
14
13
|
labels?: GuidedLabel.Raw[] | null;
|
|
15
14
|
publish?: boolean | null;
|
|
16
|
-
policies?: GuidedTemplatesCreatePolicyRequest.Raw[] | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedTemplatesCreateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedTemplatesCreatePolicyRequest_js_1 = require("./GuidedTemplatesCreatePolicyRequest.js");
|
|
41
40
|
exports.GuidedTemplatesCreateBase = core.serialization.object({
|
|
42
41
|
name: core.serialization.string(),
|
|
43
42
|
description: core.serialization.string().optional(),
|
|
@@ -46,5 +45,4 @@ exports.GuidedTemplatesCreateBase = core.serialization.object({
|
|
|
46
45
|
specialties: core.serialization.list(core.serialization.string()).optional(),
|
|
47
46
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
48
47
|
publish: core.serialization.boolean().optional(),
|
|
49
|
-
policies: core.serialization.list(GuidedTemplatesCreatePolicyRequest_js_1.GuidedTemplatesCreatePolicyRequest).optional(),
|
|
50
48
|
});
|
|
@@ -4,10 +4,11 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const StreamErrorDetail: core.serialization.ObjectSchema<serializers.StreamErrorDetail.Raw, Corti.StreamErrorDetail>;
|
|
5
5
|
export declare namespace StreamErrorDetail {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
requestid?: string | null;
|
|
8
|
+
id?: string | null;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
status?: number | null;
|
|
11
|
+
details?: string | null;
|
|
12
|
+
doc?: string | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -37,9 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.StreamErrorDetail = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.StreamErrorDetail = core.serialization.object({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
requestid: core.serialization.string().optional(),
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
|
+
title: core.serialization.string().optional(),
|
|
43
|
+
status: core.serialization.number().optional(),
|
|
44
|
+
details: core.serialization.string().optional(),
|
|
45
|
+
doc: core.serialization.string().optional(),
|
|
45
46
|
});
|
|
@@ -4,6 +4,6 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TranscribeAudioEventsConfig: core.serialization.ObjectSchema<serializers.TranscribeAudioEventsConfig.Raw, Corti.TranscribeAudioEventsConfig>;
|
|
5
5
|
export declare namespace TranscribeAudioEventsConfig {
|
|
6
6
|
interface Raw {
|
|
7
|
-
enabled
|
|
7
|
+
enabled: boolean;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -37,5 +37,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TranscribeAudioEventsConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TranscribeAudioEventsConfig = core.serialization.object({
|
|
40
|
-
enabled: core.serialization.boolean()
|
|
40
|
+
enabled: core.serialization.boolean(),
|
|
41
41
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
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 { TranscribeCommandVariableType } from "./TranscribeCommandVariableType.js";
|
|
4
5
|
export declare const TranscribeCommandVariable: core.serialization.ObjectSchema<serializers.TranscribeCommandVariable.Raw, Corti.TranscribeCommandVariable>;
|
|
5
6
|
export declare namespace TranscribeCommandVariable {
|
|
6
7
|
interface Raw {
|
|
7
8
|
key: string;
|
|
8
|
-
type:
|
|
9
|
-
enum
|
|
9
|
+
type: TranscribeCommandVariableType.Raw;
|
|
10
|
+
enum?: string[] | null;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TranscribeCommandVariable = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeCommandVariableType_js_1 = require("./TranscribeCommandVariableType.js");
|
|
39
40
|
exports.TranscribeCommandVariable = core.serialization.object({
|
|
40
41
|
key: core.serialization.string(),
|
|
41
|
-
type:
|
|
42
|
-
enum: core.serialization.list(core.serialization.string()),
|
|
42
|
+
type: TranscribeCommandVariableType_js_1.TranscribeCommandVariableType,
|
|
43
|
+
enum: core.serialization.list(core.serialization.string()).optional(),
|
|
43
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 TranscribeCommandVariableType: core.serialization.Schema<serializers.TranscribeCommandVariableType.Raw, Corti.TranscribeCommandVariableType>;
|
|
5
|
+
export declare namespace TranscribeCommandVariableType {
|
|
6
|
+
type Raw = "enum" | "wildcard";
|
|
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.TranscribeCommandVariableType = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
exports.
|
|
39
|
+
exports.TranscribeCommandVariableType = core.serialization.enum_(["enum", "wildcard"]);
|
|
@@ -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 { TranscribeConfigReplacementsItem } from "./TranscribeConfigReplacementsItem.js";
|
|
6
7
|
import { TranscribeFormatting } from "./TranscribeFormatting.js";
|
|
7
8
|
import { TranscribeSupportedLanguage } from "./TranscribeSupportedLanguage.js";
|
|
8
9
|
export declare const TranscribeConfig: core.serialization.ObjectSchema<serializers.TranscribeConfig.Raw, Corti.TranscribeConfig>;
|
|
@@ -16,5 +17,6 @@ export declare namespace TranscribeConfig {
|
|
|
16
17
|
formatting?: TranscribeFormatting.Raw | null;
|
|
17
18
|
audioEvents?: TranscribeAudioEventsConfig.Raw | null;
|
|
18
19
|
audioFormat?: string | null;
|
|
20
|
+
replacements?: TranscribeConfigReplacementsItem.Raw[] | null;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -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 TranscribeConfigReplacementsItem_js_1 = require("./TranscribeConfigReplacementsItem.js");
|
|
41
42
|
const TranscribeFormatting_js_1 = require("./TranscribeFormatting.js");
|
|
42
43
|
const TranscribeSupportedLanguage_js_1 = require("./TranscribeSupportedLanguage.js");
|
|
43
44
|
exports.TranscribeConfig = core.serialization.object({
|
|
@@ -49,4 +50,5 @@ exports.TranscribeConfig = core.serialization.object({
|
|
|
49
50
|
formatting: TranscribeFormatting_js_1.TranscribeFormatting.optional(),
|
|
50
51
|
audioEvents: TranscribeAudioEventsConfig_js_1.TranscribeAudioEventsConfig.optional(),
|
|
51
52
|
audioFormat: core.serialization.string().optional(),
|
|
53
|
+
replacements: core.serialization.list(TranscribeConfigReplacementsItem_js_1.TranscribeConfigReplacementsItem).optional(),
|
|
52
54
|
});
|
|
@@ -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 TranscribeConfigReplacementsItem: core.serialization.ObjectSchema<serializers.TranscribeConfigReplacementsItem.Raw, Corti.TranscribeConfigReplacementsItem>;
|
|
5
|
+
export declare namespace TranscribeConfigReplacementsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
find: string;
|
|
8
|
+
replace: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.TranscribeConfigReplacementsItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
customerIds: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
39
|
+
exports.TranscribeConfigReplacementsItem = core.serialization.object({
|
|
40
|
+
find: core.serialization.string(),
|
|
41
|
+
replace: core.serialization.string(),
|
|
43
42
|
});
|
|
@@ -4,10 +4,11 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TranscribeErrorMessageError: core.serialization.ObjectSchema<serializers.TranscribeErrorMessageError.Raw, Corti.TranscribeErrorMessageError>;
|
|
5
5
|
export declare namespace TranscribeErrorMessageError {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
requestid?: string | null;
|
|
8
|
+
id?: string | null;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
status?: number | null;
|
|
11
|
+
details?: string | null;
|
|
12
|
+
doc?: string | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -37,9 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TranscribeErrorMessageError = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TranscribeErrorMessageError = core.serialization.object({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
requestid: core.serialization.string().optional(),
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
|
+
title: core.serialization.string().optional(),
|
|
43
|
+
status: core.serialization.number().optional(),
|
|
44
|
+
details: core.serialization.string().optional(),
|
|
45
|
+
doc: core.serialization.string().optional(),
|
|
45
46
|
});
|
|
@@ -143,12 +143,10 @@ export * from "./GuidedSectionInstructionsOverride.js";
|
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.js";
|
|
144
144
|
export * from "./GuidedSectionOverride.js";
|
|
145
145
|
export * from "./GuidedSectionOverrides.js";
|
|
146
|
-
export * from "./GuidedSectionPolicy.js";
|
|
147
146
|
export * from "./GuidedSectionSource.js";
|
|
148
147
|
export * from "./GuidedSectionsCreateBase.js";
|
|
149
148
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
|
|
150
149
|
export * from "./GuidedSectionsCreateFromScratchRequest.js";
|
|
151
|
-
export * from "./GuidedSectionsCreatePolicyRequest.js";
|
|
152
150
|
export * from "./GuidedSectionsCreateRequest.js";
|
|
153
151
|
export * from "./GuidedSectionVersion.js";
|
|
154
152
|
export * from "./GuidedShallowTemplateGeneration.js";
|
|
@@ -160,8 +158,6 @@ export * from "./GuidedTemplateGeneration.js";
|
|
|
160
158
|
export * from "./GuidedTemplateInstructions.js";
|
|
161
159
|
export * from "./GuidedTemplateInstructionsPartial.js";
|
|
162
160
|
export * from "./GuidedTemplateOverrides.js";
|
|
163
|
-
export * from "./GuidedTemplatePolicy.js";
|
|
164
|
-
export * from "./GuidedTemplatePolicyKind.js";
|
|
165
161
|
export * from "./GuidedTemplateRef.js";
|
|
166
162
|
export * from "./GuidedTemplateSource.js";
|
|
167
163
|
export * from "./GuidedTemplatesCreateBase.js";
|
|
@@ -169,7 +165,6 @@ export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
|
|
|
169
165
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.js";
|
|
170
166
|
export * from "./GuidedTemplatesCreateFromScratchRequest.js";
|
|
171
167
|
export * from "./GuidedTemplatesCreateFromScratchRequestGeneration.js";
|
|
172
|
-
export * from "./GuidedTemplatesCreatePolicyRequest.js";
|
|
173
168
|
export * from "./GuidedTemplatesCreateRequest.js";
|
|
174
169
|
export * from "./GuidedTemplatesVersionGeneration.js";
|
|
175
170
|
export * from "./GuidedTemplatesVersionSectionRequest.js";
|
|
@@ -238,8 +233,10 @@ export * from "./TranscribeCommand.js";
|
|
|
238
233
|
export * from "./TranscribeCommandData.js";
|
|
239
234
|
export * from "./TranscribeCommandMessage.js";
|
|
240
235
|
export * from "./TranscribeCommandVariable.js";
|
|
236
|
+
export * from "./TranscribeCommandVariableType.js";
|
|
241
237
|
export * from "./TranscribeConfig.js";
|
|
242
238
|
export * from "./TranscribeConfigMessage.js";
|
|
239
|
+
export * from "./TranscribeConfigReplacementsItem.js";
|
|
243
240
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
244
241
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
245
242
|
export * from "./TranscribeDeltaUsageMessage.js";
|