@corti/sdk 6.0.0 → 7.0.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/codes/client/Client.d.ts +11 -8
- package/dist/cjs/api/resources/codes/client/Client.js +11 -8
- package/dist/cjs/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +13 -8
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +1 -0
- package/dist/cjs/api/resources/recordings/client/Client.d.ts +3 -2
- package/dist/cjs/api/resources/recordings/client/Client.js +16 -6
- package/dist/cjs/api/resources/recordings/client/index.d.ts +1 -1
- package/dist/cjs/api/resources/recordings/client/index.js +15 -0
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.d.ts +9 -0
- package/dist/cjs/api/resources/recordings/client/requests/RecordingsListRequest.js +3 -0
- package/dist/cjs/api/resources/recordings/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/recordings/client/requests/index.js +2 -0
- package/dist/cjs/api/types/CodesConditionGroup.d.ts +10 -0
- package/dist/cjs/api/types/CodesConditionGroup.js +3 -0
- package/dist/cjs/api/types/CodesConditionGroupConditionsItem.d.ts +2 -0
- package/dist/cjs/api/types/CodesConditionGroupConditionsItem.js +3 -0
- package/dist/cjs/api/types/CodesConditionGroupMatch.d.ts +6 -0
- package/dist/cjs/api/types/CodesConditionGroupMatch.js +9 -0
- package/dist/cjs/api/types/CodesFilter.d.ts +1 -1
- package/dist/cjs/api/types/CodesSystemFilter.d.ts +12 -0
- package/dist/cjs/api/types/CodesSystemFilter.js +3 -0
- package/dist/cjs/api/types/CommonA2AConnector.d.ts +2 -0
- package/dist/cjs/api/types/CommonAgentConnector.d.ts +2 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.d.ts +6 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.js +6 -0
- package/dist/cjs/api/types/CommonMcpConnector.d.ts +2 -1
- package/dist/cjs/api/types/CommonRegistryConnectorProvisioned.d.ts +2 -0
- package/dist/cjs/api/types/CommonSchemaConnector.d.ts +3 -1
- package/dist/cjs/api/types/CommonSchemaConnectorCreate.d.ts +1 -1
- package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.d.ts +2 -1
- package/dist/cjs/api/types/CommonSchemaConnectorCreateTransition.js +2 -1
- package/dist/cjs/api/types/CommonSchemaConnectorTransition.d.ts +2 -1
- package/dist/cjs/api/types/CommonSchemaConnectorTransition.js +2 -1
- package/dist/cjs/api/types/StreamConfigTranscription.d.ts +2 -0
- package/dist/cjs/api/types/StreamConfigTranscriptionWordLevel.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigTranscriptionWordLevel.js +3 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/api/types/TranscribeConfigWordLevel.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeConfigWordLevel.js +3 -0
- package/dist/cjs/api/types/TranscribeTranscriptMessage.d.ts +2 -1
- package/dist/cjs/api/types/TranscribeTranscriptMessageData.d.ts +5 -0
- package/dist/cjs/api/types/TranscribeTranscriptMessageData.js +3 -0
- package/dist/cjs/api/types/TranscriptsListItem.d.ts +4 -0
- package/dist/cjs/api/types/index.d.ts +7 -0
- package/dist/cjs/api/types/index.js +7 -0
- package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.js +2 -0
- package/dist/cjs/serialization/types/CodesConditionGroup.d.ts +11 -0
- package/dist/cjs/serialization/types/CodesConditionGroup.js +46 -0
- package/dist/cjs/serialization/types/CodesConditionGroupConditionsItem.d.ts +8 -0
- package/dist/cjs/serialization/types/CodesConditionGroupConditionsItem.js +44 -0
- package/dist/cjs/serialization/types/CodesConditionGroupMatch.d.ts +7 -0
- package/dist/cjs/serialization/types/CodesConditionGroupMatch.js +39 -0
- package/dist/cjs/serialization/types/CodesSystemFilter.d.ts +11 -0
- package/dist/cjs/serialization/types/CodesSystemFilter.js +44 -0
- package/dist/cjs/serialization/types/CommonA2AConnector.d.ts +2 -0
- package/dist/cjs/serialization/types/CommonA2AConnector.js +2 -0
- package/dist/cjs/serialization/types/CommonAgentConnector.d.ts +2 -0
- package/dist/cjs/serialization/types/CommonAgentConnector.js +2 -0
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +6 -0
- package/dist/cjs/serialization/types/CommonMcpConnector.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonMcpConnector.js +1 -1
- package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.d.ts +2 -0
- package/dist/cjs/serialization/types/CommonRegistryConnectorProvisioned.js +2 -0
- package/dist/cjs/serialization/types/CommonSchemaConnector.d.ts +2 -0
- package/dist/cjs/serialization/types/CommonSchemaConnector.js +2 -0
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonSchemaConnectorCreateTransition.js +1 -1
- package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonSchemaConnectorTransition.js +1 -1
- package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +2 -0
- package/dist/cjs/serialization/types/StreamConfigTranscription.js +2 -0
- package/dist/cjs/serialization/types/StreamConfigTranscriptionWordLevel.d.ts +9 -0
- package/dist/cjs/serialization/types/StreamConfigTranscriptionWordLevel.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/TranscribeConfigWordLevel.d.ts +9 -0
- package/dist/cjs/serialization/types/TranscribeConfigWordLevel.js +41 -0
- package/dist/cjs/serialization/types/TranscribeTranscriptMessage.d.ts +2 -2
- package/dist/cjs/serialization/types/TranscribeTranscriptMessage.js +2 -2
- package/dist/cjs/serialization/types/TranscribeTranscriptMessageData.d.ts +8 -0
- package/dist/cjs/serialization/types/TranscribeTranscriptMessageData.js +43 -0
- package/dist/cjs/serialization/types/TranscriptsListItem.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscriptsListItem.js +2 -0
- package/dist/cjs/serialization/types/index.d.ts +7 -0
- package/dist/cjs/serialization/types/index.js +7 -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/codes/client/Client.d.mts +11 -8
- package/dist/esm/api/resources/codes/client/Client.mjs +11 -8
- package/dist/esm/api/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +13 -8
- package/dist/esm/api/resources/index.d.mts +1 -0
- package/dist/esm/api/resources/index.mjs +1 -0
- package/dist/esm/api/resources/recordings/client/Client.d.mts +3 -2
- package/dist/esm/api/resources/recordings/client/Client.mjs +16 -6
- package/dist/esm/api/resources/recordings/client/index.d.mts +1 -1
- package/dist/esm/api/resources/recordings/client/index.mjs +1 -1
- package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.d.mts +9 -0
- package/dist/esm/api/resources/recordings/client/requests/RecordingsListRequest.mjs +2 -0
- package/dist/esm/api/resources/recordings/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/recordings/client/requests/index.mjs +1 -0
- package/dist/esm/api/types/CodesConditionGroup.d.mts +10 -0
- package/dist/esm/api/types/CodesConditionGroup.mjs +2 -0
- package/dist/esm/api/types/CodesConditionGroupConditionsItem.d.mts +2 -0
- package/dist/esm/api/types/CodesConditionGroupConditionsItem.mjs +2 -0
- package/dist/esm/api/types/CodesConditionGroupMatch.d.mts +6 -0
- package/dist/esm/api/types/CodesConditionGroupMatch.mjs +6 -0
- package/dist/esm/api/types/CodesFilter.d.mts +1 -1
- package/dist/esm/api/types/CodesSystemFilter.d.mts +12 -0
- package/dist/esm/api/types/CodesSystemFilter.mjs +2 -0
- package/dist/esm/api/types/CommonA2AConnector.d.mts +2 -0
- package/dist/esm/api/types/CommonAgentConnector.d.mts +2 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.d.mts +6 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.mjs +6 -0
- package/dist/esm/api/types/CommonMcpConnector.d.mts +2 -1
- package/dist/esm/api/types/CommonRegistryConnectorProvisioned.d.mts +2 -0
- package/dist/esm/api/types/CommonSchemaConnector.d.mts +3 -1
- package/dist/esm/api/types/CommonSchemaConnectorCreate.d.mts +1 -1
- package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.d.mts +2 -1
- package/dist/esm/api/types/CommonSchemaConnectorCreateTransition.mjs +2 -1
- package/dist/esm/api/types/CommonSchemaConnectorTransition.d.mts +2 -1
- package/dist/esm/api/types/CommonSchemaConnectorTransition.mjs +2 -1
- package/dist/esm/api/types/StreamConfigTranscription.d.mts +2 -0
- package/dist/esm/api/types/StreamConfigTranscriptionWordLevel.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigTranscriptionWordLevel.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/api/types/TranscribeConfigWordLevel.d.mts +6 -0
- package/dist/esm/api/types/TranscribeConfigWordLevel.mjs +2 -0
- package/dist/esm/api/types/TranscribeTranscriptMessage.d.mts +2 -1
- package/dist/esm/api/types/TranscribeTranscriptMessageData.d.mts +5 -0
- package/dist/esm/api/types/TranscribeTranscriptMessageData.mjs +2 -0
- package/dist/esm/api/types/TranscriptsListItem.d.mts +4 -0
- package/dist/esm/api/types/index.d.mts +7 -0
- package/dist/esm/api/types/index.mjs +7 -0
- package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/codes/client/requests/CodesGeneralPredictRequest.mjs +2 -0
- package/dist/esm/serialization/types/CodesConditionGroup.d.mts +11 -0
- package/dist/esm/serialization/types/CodesConditionGroup.mjs +10 -0
- package/dist/esm/serialization/types/CodesConditionGroupConditionsItem.d.mts +8 -0
- package/dist/esm/serialization/types/CodesConditionGroupConditionsItem.mjs +8 -0
- package/dist/esm/serialization/types/CodesConditionGroupMatch.d.mts +7 -0
- package/dist/esm/serialization/types/CodesConditionGroupMatch.mjs +3 -0
- package/dist/esm/serialization/types/CodesSystemFilter.d.mts +11 -0
- package/dist/esm/serialization/types/CodesSystemFilter.mjs +8 -0
- package/dist/esm/serialization/types/CommonA2AConnector.d.mts +2 -0
- package/dist/esm/serialization/types/CommonA2AConnector.mjs +2 -0
- package/dist/esm/serialization/types/CommonAgentConnector.d.mts +2 -0
- package/dist/esm/serialization/types/CommonAgentConnector.mjs +2 -0
- package/dist/esm/serialization/types/CommonCodingSystemEnum.d.mts +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +6 -0
- package/dist/esm/serialization/types/CommonMcpConnector.d.mts +1 -1
- package/dist/esm/serialization/types/CommonMcpConnector.mjs +1 -1
- package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.d.mts +2 -0
- package/dist/esm/serialization/types/CommonRegistryConnectorProvisioned.mjs +2 -0
- package/dist/esm/serialization/types/CommonSchemaConnector.d.mts +2 -0
- package/dist/esm/serialization/types/CommonSchemaConnector.mjs +2 -0
- package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.d.mts +1 -1
- package/dist/esm/serialization/types/CommonSchemaConnectorCreateTransition.mjs +1 -1
- package/dist/esm/serialization/types/CommonSchemaConnectorTransition.d.mts +1 -1
- package/dist/esm/serialization/types/CommonSchemaConnectorTransition.mjs +1 -1
- package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +2 -0
- package/dist/esm/serialization/types/StreamConfigTranscription.mjs +2 -0
- package/dist/esm/serialization/types/StreamConfigTranscriptionWordLevel.d.mts +9 -0
- package/dist/esm/serialization/types/StreamConfigTranscriptionWordLevel.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/TranscribeConfigWordLevel.d.mts +9 -0
- package/dist/esm/serialization/types/TranscribeConfigWordLevel.mjs +5 -0
- package/dist/esm/serialization/types/TranscribeTranscriptMessage.d.mts +2 -2
- package/dist/esm/serialization/types/TranscribeTranscriptMessage.mjs +2 -2
- package/dist/esm/serialization/types/TranscribeTranscriptMessageData.d.mts +8 -0
- package/dist/esm/serialization/types/TranscribeTranscriptMessageData.mjs +7 -0
- package/dist/esm/serialization/types/TranscriptsListItem.d.mts +2 -0
- package/dist/esm/serialization/types/TranscriptsListItem.mjs +2 -0
- package/dist/esm/serialization/types/index.d.mts +7 -0
- package/dist/esm/serialization/types/index.mjs +7 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/LICENSE +0 -21
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": "7.0.0-rc",
|
|
47
|
+
"User-Agent": "@corti/sdk/7.0.0-rc",
|
|
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,
|
|
@@ -11,7 +11,7 @@ export declare class CodesClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<CodesClient.Options>;
|
|
12
12
|
constructor(options: CodesClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS and
|
|
14
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS, KVÅ and ICD-O-3 codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
15
15
|
*
|
|
16
16
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
17
17
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -38,13 +38,16 @@ export declare class CodesClient {
|
|
|
38
38
|
* type: "text",
|
|
39
39
|
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
40
40
|
* }],
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
41
|
+
* filters: [{
|
|
42
|
+
* systemId: "icd10cm-outpatient",
|
|
43
|
+
* include: {
|
|
44
|
+
* conditions: [{
|
|
45
|
+
* property: "code",
|
|
46
|
+
* op: "is-a",
|
|
47
|
+
* value: ["E11"]
|
|
48
|
+
* }]
|
|
49
|
+
* }
|
|
50
|
+
* }]
|
|
48
51
|
* })
|
|
49
52
|
*/
|
|
50
53
|
predict(request: Corti.CodesGeneralPredictRequest, requestOptions?: CodesClient.RequestOptions): core.HttpResponsePromise<Corti.CodesGeneralResponse>;
|
|
@@ -56,7 +56,7 @@ class CodesClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS and
|
|
59
|
+
* Predict medical codes from provided context.<br/><Note>This is a stateless endpoint, designed to predict ICD-10-CM, ICD-10-PCS, ICD-10 (international), ICD-10-UK, CIM-10-FR, ICD-10-GM, OPCS-4, OPS, CCAM, CPT, SNOMED CT, MedDRA, SKS, KVÅ and ICD-O-3 codes based on input text string or documentId.<br/><br/>More than one code system may be defined in a single request.<br/><br/>Code prediction requests have two possible values for context:<br/>- `text`: One set of code prediction results will be returned based on all input text defined.<br/>- `documentId`: Code prediction will be based on that defined document only.<br/><br/>The response includes two sets of results:<br/>- `Codes`: Codes predicted by the model.<br/>- `Candidates`: Lower-confidence codes the model considered potentially relevant but excluded from the predicted set.<br/><br/>All predicted code results are based on input context defined in the request only (not other external data or assets associated with an interaction).</Note>
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
62
62
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -83,13 +83,16 @@ class CodesClient {
|
|
|
83
83
|
* type: "text",
|
|
84
84
|
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
85
85
|
* }],
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
86
|
+
* filters: [{
|
|
87
|
+
* systemId: "icd10cm-outpatient",
|
|
88
|
+
* include: {
|
|
89
|
+
* conditions: [{
|
|
90
|
+
* property: "code",
|
|
91
|
+
* op: "is-a",
|
|
92
|
+
* value: ["E11"]
|
|
93
|
+
* }]
|
|
94
|
+
* }
|
|
95
|
+
* }]
|
|
93
96
|
* })
|
|
94
97
|
*/
|
|
95
98
|
predict(request, requestOptions) {
|
|
@@ -16,13 +16,16 @@ import type * as Corti from "../../../../index.js";
|
|
|
16
16
|
* type: "text",
|
|
17
17
|
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
18
18
|
* }],
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
19
|
+
* filters: [{
|
|
20
|
+
* systemId: "icd10cm-outpatient",
|
|
21
|
+
* include: {
|
|
22
|
+
* conditions: [{
|
|
23
|
+
* property: "code",
|
|
24
|
+
* op: "is-a",
|
|
25
|
+
* value: ["E11"]
|
|
26
|
+
* }]
|
|
27
|
+
* }
|
|
28
|
+
* }]
|
|
26
29
|
* }
|
|
27
30
|
*/
|
|
28
31
|
export interface CodesGeneralPredictRequest {
|
|
@@ -30,6 +33,8 @@ export interface CodesGeneralPredictRequest {
|
|
|
30
33
|
system: Corti.CommonCodingSystemEnum[];
|
|
31
34
|
/** Select either `text` or `documentId` as input context to the model for code prediction. Evidence indices in the response map to this array. */
|
|
32
35
|
context: Corti.CommonAiContext[];
|
|
33
|
-
/**
|
|
36
|
+
/** Deprecated: use `filters` instead. */
|
|
34
37
|
filter?: Corti.CodesFilter;
|
|
38
|
+
/** Optional list of system-scoped filters to restrict predicted codes, one per coding system. */
|
|
39
|
+
filters?: Corti.CodesSystemFilter[];
|
|
35
40
|
}
|
|
@@ -15,6 +15,7 @@ export * from "./interactions/types/index.js";
|
|
|
15
15
|
export * from "./languages/client/requests/index.js";
|
|
16
16
|
export * as languages from "./languages/index.js";
|
|
17
17
|
export * from "./languages/types/index.js";
|
|
18
|
+
export * from "./recordings/client/requests/index.js";
|
|
18
19
|
export * as recordings from "./recordings/index.js";
|
|
19
20
|
export * as stream from "./stream/index.js";
|
|
20
21
|
export * from "./templates/client/requests/index.js";
|
|
@@ -54,6 +54,7 @@ __exportStar(require("./interactions/types/index.js"), exports);
|
|
|
54
54
|
__exportStar(require("./languages/client/requests/index.js"), exports);
|
|
55
55
|
exports.languages = __importStar(require("./languages/index.js"));
|
|
56
56
|
__exportStar(require("./languages/types/index.js"), exports);
|
|
57
|
+
__exportStar(require("./recordings/client/requests/index.js"), exports);
|
|
57
58
|
exports.recordings = __importStar(require("./recordings/index.js"));
|
|
58
59
|
exports.stream = __importStar(require("./stream/index.js"));
|
|
59
60
|
__exportStar(require("./templates/client/requests/index.js"), exports);
|
|
@@ -11,9 +11,10 @@ export declare class RecordingsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<RecordingsClient.Options>;
|
|
12
12
|
constructor(options: RecordingsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Retrieve a list of recordings for a given interaction.
|
|
14
|
+
* Retrieve a list of recordings for a given interaction. Recordings are ordered based on their creation time. Default ordering (desc) will return the most recent recording first in the list. Use query parameter `direction` to define the order of the list (`asc` for ascending and `desc` for descending).
|
|
15
15
|
*
|
|
16
16
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
17
|
+
* @param {Corti.RecordingsListRequest} request
|
|
17
18
|
* @param {RecordingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
19
|
*
|
|
19
20
|
* @throws {@link Corti.BadRequestError}
|
|
@@ -24,7 +25,7 @@ export declare class RecordingsClient {
|
|
|
24
25
|
* @example
|
|
25
26
|
* await client.recordings.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
|
|
26
27
|
*/
|
|
27
|
-
list(id: Corti.Uuid, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
|
|
28
|
+
list(id: Corti.Uuid, request?: Corti.RecordingsListRequest, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
|
|
28
29
|
private __list;
|
|
29
30
|
/**
|
|
30
31
|
* Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
|
|
@@ -56,9 +56,10 @@ class RecordingsClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Retrieve a list of recordings for a given interaction.
|
|
59
|
+
* Retrieve a list of recordings for a given interaction. Recordings are ordered based on their creation time. Default ordering (desc) will return the most recent recording first in the list. Use query parameter `direction` to define the order of the list (`asc` for ascending and `desc` for descending).
|
|
60
60
|
*
|
|
61
61
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
62
|
+
* @param {Corti.RecordingsListRequest} request
|
|
62
63
|
* @param {RecordingsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link Corti.BadRequestError}
|
|
@@ -69,19 +70,28 @@ class RecordingsClient {
|
|
|
69
70
|
* @example
|
|
70
71
|
* await client.recordings.list("f47ac10b-58cc-4372-a567-0e02b2c3d479")
|
|
71
72
|
*/
|
|
72
|
-
list(id, requestOptions) {
|
|
73
|
-
return core.HttpResponsePromise.fromPromise(this.__list(id, requestOptions));
|
|
73
|
+
list(id, request = {}, requestOptions) {
|
|
74
|
+
return core.HttpResponsePromise.fromPromise(this.__list(id, request, requestOptions));
|
|
74
75
|
}
|
|
75
|
-
__list(
|
|
76
|
-
return __awaiter(this,
|
|
76
|
+
__list(id_1) {
|
|
77
|
+
return __awaiter(this, arguments, void 0, function* (id, request = {}, requestOptions) {
|
|
77
78
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
79
|
+
const { direction } = request;
|
|
80
|
+
const _queryParams = {
|
|
81
|
+
direction: direction != null
|
|
82
|
+
? serializers.CommonSortingDirectionEnum.jsonOrThrow(direction, {
|
|
83
|
+
unrecognizedObjectKeys: "strip",
|
|
84
|
+
omitUndefined: true,
|
|
85
|
+
})
|
|
86
|
+
: undefined,
|
|
87
|
+
};
|
|
78
88
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
79
89
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "Tenant-Name": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.tenantName) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.tenantName }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
80
90
|
const _response = yield core.fetcher({
|
|
81
91
|
url: core.url.join((_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment)).base, `interactions/${core.url.encodePathParam(serializers.Uuid.jsonOrThrow(id, { omitUndefined: true }))}/recordings/`),
|
|
82
92
|
method: "GET",
|
|
83
93
|
headers: _headers,
|
|
84
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
94
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
85
95
|
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
86
96
|
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
87
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./requests/index.js";
|
|
@@ -1,2 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { RecordingsListRequest } from "./RecordingsListRequest.js";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* A group of conditions combined with AND or OR logic, used in `include` and `exclude` filters. Maximum nesting depth: 3.
|
|
4
|
+
*/
|
|
5
|
+
export interface CodesConditionGroup {
|
|
6
|
+
/** `all` ANDs conditions (every condition must match). `any` ORs them (at least one must match). Omit when `conditions` has a single element. */
|
|
7
|
+
match?: Corti.CodesConditionGroupMatch;
|
|
8
|
+
/** Conditions or nested groups combined per `match`. Maximum nesting depth: 3. */
|
|
9
|
+
conditions?: Corti.CodesConditionGroupConditionsItem[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** `all` ANDs conditions (every condition must match). `any` ORs them (at least one must match). Omit when `conditions` has a single element. */
|
|
2
|
+
export declare const CodesConditionGroupMatch: {
|
|
3
|
+
readonly All: "all";
|
|
4
|
+
readonly Any: "any";
|
|
5
|
+
};
|
|
6
|
+
export type CodesConditionGroupMatch = (typeof CodesConditionGroupMatch)[keyof typeof CodesConditionGroupMatch];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.CodesConditionGroupMatch = void 0;
|
|
5
|
+
/** `all` ANDs conditions (every condition must match). `any` ORs them (at least one must match). Omit when `conditions` has a single element. */
|
|
6
|
+
exports.CodesConditionGroupMatch = {
|
|
7
|
+
All: "all",
|
|
8
|
+
Any: "any",
|
|
9
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Deprecated: use `filters` with `CodesSystemFilter` instead.
|
|
4
4
|
*/
|
|
5
5
|
export interface CodesFilter {
|
|
6
6
|
/** Condition objects to include. When empty, the full set of codes for the requested systems is used. */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* System-scoped filter to restrict the set of codes the model can predict for a single coding system.
|
|
4
|
+
*/
|
|
5
|
+
export interface CodesSystemFilter {
|
|
6
|
+
/** The coding system this filter applies to. Must match one of the systems in the `system` field. */
|
|
7
|
+
systemId: string;
|
|
8
|
+
/** Codes matching this group of conditions are eligible. Omitted means every code in the system is eligible. */
|
|
9
|
+
include?: Corti.CodesConditionGroup;
|
|
10
|
+
/** Codes matching this group of conditions are removed from the eligible set. Omitted means nothing is removed. */
|
|
11
|
+
exclude?: Corti.CodesConditionGroup;
|
|
12
|
+
}
|
|
@@ -16,4 +16,6 @@ export interface CommonA2AConnector {
|
|
|
16
16
|
id?: Corti.CommonConnectorIdValue;
|
|
17
17
|
/** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
|
|
18
18
|
enabled?: boolean;
|
|
19
|
+
/** Authentication configuration. */
|
|
20
|
+
auth?: Corti.CommonConnectorAuth;
|
|
19
21
|
}
|
|
@@ -13,4 +13,6 @@ export interface CommonAgentConnector {
|
|
|
13
13
|
id?: Corti.CommonConnectorIdValue;
|
|
14
14
|
/** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
|
|
15
15
|
enabled?: boolean;
|
|
16
|
+
/** Authentication configuration. */
|
|
17
|
+
auth?: Corti.CommonConnectorAuth;
|
|
16
18
|
}
|
|
@@ -22,6 +22,9 @@ export declare const CommonCodingSystemEnum: {
|
|
|
22
22
|
readonly Snomedctdk: "snomedctdk";
|
|
23
23
|
readonly Snomedctse: "snomedctse";
|
|
24
24
|
readonly Snomedctus: "snomedctus";
|
|
25
|
+
readonly Snomedctno: "snomedctno";
|
|
26
|
+
readonly Snomedctat: "snomedctat";
|
|
27
|
+
readonly Snomedctnl: "snomedctnl";
|
|
25
28
|
readonly MeddraIt: "meddra-it";
|
|
26
29
|
readonly MeddraEn: "meddra-en";
|
|
27
30
|
readonly MeddraFr: "meddra-fr";
|
|
@@ -31,5 +34,8 @@ export declare const CommonCodingSystemEnum: {
|
|
|
31
34
|
readonly MeddraSe: "meddra-se";
|
|
32
35
|
readonly Sks: "sks";
|
|
33
36
|
readonly Kvaa: "kvaa";
|
|
37
|
+
readonly Icdo3Int: "icdo3int";
|
|
38
|
+
readonly Icdo3Fr: "icdo3fr";
|
|
39
|
+
readonly Icdo3De: "icdo3de";
|
|
34
40
|
};
|
|
35
41
|
export type CommonCodingSystemEnum = (typeof CommonCodingSystemEnum)[keyof typeof CommonCodingSystemEnum];
|
|
@@ -26,6 +26,9 @@ exports.CommonCodingSystemEnum = {
|
|
|
26
26
|
Snomedctdk: "snomedctdk",
|
|
27
27
|
Snomedctse: "snomedctse",
|
|
28
28
|
Snomedctus: "snomedctus",
|
|
29
|
+
Snomedctno: "snomedctno",
|
|
30
|
+
Snomedctat: "snomedctat",
|
|
31
|
+
Snomedctnl: "snomedctnl",
|
|
29
32
|
MeddraIt: "meddra-it",
|
|
30
33
|
MeddraEn: "meddra-en",
|
|
31
34
|
MeddraFr: "meddra-fr",
|
|
@@ -35,4 +38,7 @@ exports.CommonCodingSystemEnum = {
|
|
|
35
38
|
MeddraSe: "meddra-se",
|
|
36
39
|
Sks: "sks",
|
|
37
40
|
Kvaa: "kvaa",
|
|
41
|
+
Icdo3Int: "icdo3int",
|
|
42
|
+
Icdo3Fr: "icdo3fr",
|
|
43
|
+
Icdo3De: "icdo3de",
|
|
38
44
|
};
|
|
@@ -8,7 +8,6 @@ export interface CommonMcpConnector {
|
|
|
8
8
|
name: string;
|
|
9
9
|
/** MCP server endpoint URL. */
|
|
10
10
|
url: string;
|
|
11
|
-
auth?: Corti.CommonConnectorAuth;
|
|
12
11
|
/**
|
|
13
12
|
* Server-generated connector identifier (prefixed UUIDv7). Stable across PATCH
|
|
14
13
|
* replacements where the underlying spec is unchanged. Used by
|
|
@@ -17,4 +16,6 @@ export interface CommonMcpConnector {
|
|
|
17
16
|
id?: Corti.CommonConnectorIdValue;
|
|
18
17
|
/** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
|
|
19
18
|
enabled?: boolean;
|
|
19
|
+
/** Authentication configuration. */
|
|
20
|
+
auth?: Corti.CommonConnectorAuth;
|
|
20
21
|
}
|
|
@@ -16,4 +16,6 @@ export interface CommonRegistryConnectorProvisioned {
|
|
|
16
16
|
id?: Corti.CommonConnectorIdValue;
|
|
17
17
|
/** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
|
|
18
18
|
enabled?: boolean;
|
|
19
|
+
/** Authentication configuration. */
|
|
20
|
+
auth?: Corti.CommonConnectorAuth;
|
|
19
21
|
}
|
|
@@ -10,7 +10,7 @@ export interface CommonSchemaConnector {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
/** JSON Schema defining the tool's output shape. */
|
|
12
12
|
schema: Record<string, unknown>;
|
|
13
|
-
/** If set,
|
|
13
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
14
14
|
transition?: Corti.CommonSchemaConnectorTransition;
|
|
15
15
|
/**
|
|
16
16
|
* Server-generated connector identifier (prefixed UUIDv7). Stable across PATCH
|
|
@@ -20,4 +20,6 @@ export interface CommonSchemaConnector {
|
|
|
20
20
|
id?: Corti.CommonConnectorIdValue;
|
|
21
21
|
/** Whether the connector is active for invocations. Only `schema` connectors return this field today; `mcp`, `registry`, `agent`, and `a2a` connectors omit it (treat as enabled). */
|
|
22
22
|
enabled?: boolean;
|
|
23
|
+
/** Authentication configuration. */
|
|
24
|
+
auth?: Corti.CommonConnectorAuth;
|
|
23
25
|
}
|
|
@@ -10,7 +10,7 @@ export interface CommonSchemaConnectorCreate {
|
|
|
10
10
|
description?: string;
|
|
11
11
|
/** JSON Schema defining the tool's output shape. */
|
|
12
12
|
schema: Record<string, unknown>;
|
|
13
|
-
/** If set,
|
|
13
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
14
14
|
transition?: Corti.CommonSchemaConnectorCreateTransition;
|
|
15
15
|
/** Whether the connector is active for invocations. */
|
|
16
16
|
enabled?: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** If set,
|
|
1
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
2
2
|
export declare const CommonSchemaConnectorCreateTransition: {
|
|
3
3
|
readonly Complete: "complete";
|
|
4
4
|
readonly InputRequired: "input_required";
|
|
5
|
+
readonly Send: "send";
|
|
5
6
|
};
|
|
6
7
|
export type CommonSchemaConnectorCreateTransition = (typeof CommonSchemaConnectorCreateTransition)[keyof typeof CommonSchemaConnectorCreateTransition];
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CommonSchemaConnectorCreateTransition = void 0;
|
|
5
|
-
/** If set,
|
|
5
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
6
6
|
exports.CommonSchemaConnectorCreateTransition = {
|
|
7
7
|
Complete: "complete",
|
|
8
8
|
InputRequired: "input_required",
|
|
9
|
+
Send: "send",
|
|
9
10
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
/** If set,
|
|
1
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
2
2
|
export declare const CommonSchemaConnectorTransition: {
|
|
3
3
|
readonly Complete: "complete";
|
|
4
4
|
readonly InputRequired: "input_required";
|
|
5
|
+
readonly Send: "send";
|
|
5
6
|
};
|
|
6
7
|
export type CommonSchemaConnectorTransition = (typeof CommonSchemaConnectorTransition)[keyof typeof CommonSchemaConnectorTransition];
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.CommonSchemaConnectorTransition = void 0;
|
|
5
|
-
/** If set,
|
|
5
|
+
/** If set, `complete`/`input_required` terminate the loop in that state after validating and storing the data part (no further LLM call). `send` is non-terminal: it validates and stores the data part, delivers it to the user as a data part, and continues the loop. */
|
|
6
6
|
exports.CommonSchemaConnectorTransition = {
|
|
7
7
|
Complete: "complete",
|
|
8
8
|
InputRequired: "input_required",
|
|
9
|
+
Send: "send",
|
|
9
10
|
};
|
|
@@ -4,6 +4,8 @@ export interface StreamConfigTranscription {
|
|
|
4
4
|
primaryLanguage: Corti.StreamSupportedLanguage;
|
|
5
5
|
/** Enable speaker diarization. */
|
|
6
6
|
diarize?: boolean;
|
|
7
|
+
/** When enabled, transcripts are returned at word level instead of phrase/utterance level: each transcript list item is a single word with its own timing. Defaults to false. */
|
|
8
|
+
wordLevel?: Corti.StreamConfigTranscriptionWordLevel;
|
|
7
9
|
/** **Deprecated** — renamed to `diarize`. Still accepted for backward compatibility; `diarize` takes precedence when both are provided. `CONFIG_ACCEPTED` echoes both fields during the deprecation period. No removal date is currently planned. */
|
|
8
10
|
isDiarization?: boolean;
|
|
9
11
|
/** Enable multi-channel audio processing. When false, all participants are collapsed to channel 0 and the audio is converted to mono. */
|
|
@@ -18,4 +18,6 @@ export interface TranscribeConfig {
|
|
|
18
18
|
replacements?: Corti.TranscribeConfigReplacementsItem[];
|
|
19
19
|
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
|
|
20
20
|
keyterms?: Corti.TranscribeConfigKeyterms;
|
|
21
|
+
/** When enabled, final transcripts are returned at word level instead of phrase/utterance level: all word items finalized together are delivered in a single message with `data` as a list. Interim previews remain segment level and arrive as a one-element list when `interimResults` is also enabled. Defaults to false. */
|
|
22
|
+
wordLevel?: Corti.TranscribeConfigWordLevel;
|
|
21
23
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When enabled, final transcripts are returned at word level instead of phrase/utterance level: all word items finalized together are delivered in a single message with `data` as a list. Interim previews remain segment level and arrive as a one-element list when `interimResults` is also enabled. Defaults to false.
|
|
3
|
+
*/
|
|
4
|
+
export interface TranscribeConfigWordLevel {
|
|
5
|
+
enabled?: boolean;
|
|
6
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../index.js";
|
|
2
2
|
export interface TranscribeTranscriptMessage {
|
|
3
3
|
type: "transcript";
|
|
4
|
-
|
|
4
|
+
/** The singular segment object, or a list of items when `wordLevel` is enabled: all word items finalized together in one message, or a one-element list carrying the in-progress segment for interim previews when `interimResults` is also enabled. */
|
|
5
|
+
data: Corti.TranscribeTranscriptMessageData;
|
|
5
6
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type * as Corti from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The singular segment object, or a list of items when `wordLevel` is enabled: all word items finalized together in one message, or a one-element list carrying the in-progress segment for interim previews when `interimResults` is also enabled.
|
|
4
|
+
*/
|
|
5
|
+
export type TranscribeTranscriptMessageData = Corti.TranscribeTranscriptData | Corti.TranscribeTranscriptData[];
|
|
@@ -2,6 +2,10 @@ import type * as Corti from "../index.js";
|
|
|
2
2
|
export interface TranscriptsListItem {
|
|
3
3
|
/** The unique identifier of the transcript. */
|
|
4
4
|
id: Corti.Uuid;
|
|
5
|
+
/** The unique identifier for the associated recording. */
|
|
6
|
+
recordingId: Corti.Uuid;
|
|
5
7
|
transcriptSample: string;
|
|
8
|
+
/** The timestamp when the transcript was created. */
|
|
9
|
+
createdAt: Date;
|
|
6
10
|
transcript?: Corti.TranscriptsData | null;
|
|
7
11
|
}
|
|
@@ -105,6 +105,9 @@ export * from "./AuthTokenRequestClientCredentials.js";
|
|
|
105
105
|
export * from "./AuthTokenRequestRefresh.js";
|
|
106
106
|
export * from "./AuthTokenRequestRopc.js";
|
|
107
107
|
export * from "./AuthTokenResponse.js";
|
|
108
|
+
export * from "./CodesConditionGroup.js";
|
|
109
|
+
export * from "./CodesConditionGroupConditionsItem.js";
|
|
110
|
+
export * from "./CodesConditionGroupMatch.js";
|
|
108
111
|
export * from "./CodesFilter.js";
|
|
109
112
|
export * from "./CodesFilterCondition.js";
|
|
110
113
|
export * from "./CodesFilterConditionOp.js";
|
|
@@ -113,6 +116,7 @@ export * from "./CodesGeneralReadResponse.js";
|
|
|
113
116
|
export * from "./CodesGeneralReadResponseAlternativesItem.js";
|
|
114
117
|
export * from "./CodesGeneralReadResponseEvidencesItem.js";
|
|
115
118
|
export * from "./CodesGeneralResponse.js";
|
|
119
|
+
export * from "./CodesSystemFilter.js";
|
|
116
120
|
export * from "./CommonA2AConnector.js";
|
|
117
121
|
export * from "./CommonA2AConnectorCreate.js";
|
|
118
122
|
export * from "./CommonAgentConnector.js";
|
|
@@ -299,6 +303,7 @@ export * from "./StreamConfigRetentionPolicy.js";
|
|
|
299
303
|
export * from "./StreamConfigStatusMessage.js";
|
|
300
304
|
export * from "./StreamConfigStatusMessageType.js";
|
|
301
305
|
export * from "./StreamConfigTranscription.js";
|
|
306
|
+
export * from "./StreamConfigTranscriptionWordLevel.js";
|
|
302
307
|
export * from "./StreamDeltaUsageMessage.js";
|
|
303
308
|
export * from "./StreamEndedMessage.js";
|
|
304
309
|
export * from "./StreamEndMessage.js";
|
|
@@ -351,6 +356,7 @@ export * from "./TranscribeConfigMessage.js";
|
|
|
351
356
|
export * from "./TranscribeConfigReplacementsItem.js";
|
|
352
357
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
353
358
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
359
|
+
export * from "./TranscribeConfigWordLevel.js";
|
|
354
360
|
export * from "./TranscribeDeltaUsageMessage.js";
|
|
355
361
|
export * from "./TranscribeEndedMessage.js";
|
|
356
362
|
export * from "./TranscribeEndMessage.js";
|
|
@@ -368,6 +374,7 @@ export * from "./TranscribeFormattingTimes.js";
|
|
|
368
374
|
export * from "./TranscribeSupportedLanguage.js";
|
|
369
375
|
export * from "./TranscribeTranscriptData.js";
|
|
370
376
|
export * from "./TranscribeTranscriptMessage.js";
|
|
377
|
+
export * from "./TranscribeTranscriptMessageData.js";
|
|
371
378
|
export * from "./TranscribeUsageMessage.js";
|
|
372
379
|
export * from "./TranscriptsData.js";
|
|
373
380
|
export * from "./TranscriptsFormatting.js";
|