@corti/sdk 6.0.0 → 6.1.0-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/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/documents/resources/sections/client/Client.d.ts +32 -2
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +76 -2
- package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/documents/resources/sections/resources/versions/client/Client.js +2 -2
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +2 -2
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js +2 -2
- 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/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -1
- 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/CommonCodingSystemEnum.d.ts +6 -0
- package/dist/cjs/api/types/CommonCodingSystemEnum.js +6 -0
- package/dist/cjs/api/types/GuidedSectionImpactResponse.d.ts +8 -0
- package/dist/cjs/api/types/GuidedSectionImpactResponse.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactSectionItem.d.ts +11 -0
- package/dist/cjs/api/types/GuidedSectionImpactSectionItem.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactSections.d.ts +10 -0
- package/dist/cjs/api/types/GuidedSectionImpactSections.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateDirect.d.ts +10 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateDirect.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedSection.d.ts +12 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedSection.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedTemplate.d.ts +12 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateInheritedTemplate.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateItem.d.ts +2 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplateItem.js +3 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplates.d.ts +10 -0
- package/dist/cjs/api/types/GuidedSectionImpactTemplates.js +3 -0
- 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 +15 -0
- package/dist/cjs/api/types/index.js +15 -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 +44 -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/CommonCodingSystemEnum.d.ts +1 -1
- package/dist/cjs/serialization/types/CommonCodingSystemEnum.js +6 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactResponse.js +44 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactSectionItem.d.ts +11 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactSectionItem.js +43 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactSections.d.ts +11 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactSections.js +43 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateDirect.d.ts +11 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateDirect.js +43 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedSection.d.ts +12 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedSection.js +44 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.d.ts +12 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.js +44 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateItem.d.ts +10 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplateItem.js +46 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplates.d.ts +11 -0
- package/dist/cjs/serialization/types/GuidedSectionImpactTemplates.js +43 -0
- 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 +15 -0
- package/dist/cjs/serialization/types/index.js +15 -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/documents/resources/sections/client/Client.d.mts +32 -2
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +76 -2
- package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs +2 -2
- 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/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -1
- 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/CommonCodingSystemEnum.d.mts +6 -0
- package/dist/esm/api/types/CommonCodingSystemEnum.mjs +6 -0
- package/dist/esm/api/types/GuidedSectionImpactResponse.d.mts +8 -0
- package/dist/esm/api/types/GuidedSectionImpactResponse.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactSectionItem.d.mts +11 -0
- package/dist/esm/api/types/GuidedSectionImpactSectionItem.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactSections.d.mts +10 -0
- package/dist/esm/api/types/GuidedSectionImpactSections.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateDirect.d.mts +10 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateDirect.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedSection.d.mts +12 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedSection.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedTemplate.d.mts +12 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateInheritedTemplate.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateItem.d.mts +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplateItem.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplates.d.mts +10 -0
- package/dist/esm/api/types/GuidedSectionImpactTemplates.mjs +2 -0
- 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 +15 -0
- package/dist/esm/api/types/index.mjs +15 -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 +8 -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/CommonCodingSystemEnum.d.mts +1 -1
- package/dist/esm/serialization/types/CommonCodingSystemEnum.mjs +6 -0
- package/dist/esm/serialization/types/GuidedSectionImpactResponse.d.mts +12 -0
- package/dist/esm/serialization/types/GuidedSectionImpactResponse.mjs +8 -0
- package/dist/esm/serialization/types/GuidedSectionImpactSectionItem.d.mts +11 -0
- package/dist/esm/serialization/types/GuidedSectionImpactSectionItem.mjs +7 -0
- package/dist/esm/serialization/types/GuidedSectionImpactSections.d.mts +11 -0
- package/dist/esm/serialization/types/GuidedSectionImpactSections.mjs +7 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateDirect.d.mts +11 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateDirect.mjs +7 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedSection.d.mts +12 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedSection.mjs +8 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.d.mts +12 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateInheritedTemplate.mjs +8 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateItem.d.mts +10 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplateItem.mjs +10 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplates.d.mts +11 -0
- package/dist/esm/serialization/types/GuidedSectionImpactTemplates.mjs +7 -0
- 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 +15 -0
- package/dist/esm/serialization/types/index.mjs +15 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -36,8 +36,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TranscribeTranscriptMessage = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
39
|
+
const TranscribeTranscriptMessageData_js_1 = require("./TranscribeTranscriptMessageData.js");
|
|
40
40
|
exports.TranscribeTranscriptMessage = core.serialization.object({
|
|
41
41
|
type: core.serialization.stringLiteral("transcript"),
|
|
42
|
-
data:
|
|
42
|
+
data: TranscribeTranscriptMessageData_js_1.TranscribeTranscriptMessageData,
|
|
43
43
|
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { TranscribeTranscriptData } from "./TranscribeTranscriptData.js";
|
|
5
|
+
export declare const TranscribeTranscriptMessageData: core.serialization.Schema<serializers.TranscribeTranscriptMessageData.Raw, Corti.TranscribeTranscriptMessageData>;
|
|
6
|
+
export declare namespace TranscribeTranscriptMessageData {
|
|
7
|
+
type Raw = TranscribeTranscriptData.Raw | TranscribeTranscriptData.Raw[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.TranscribeTranscriptMessageData = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const TranscribeTranscriptData_js_1 = require("./TranscribeTranscriptData.js");
|
|
40
|
+
exports.TranscribeTranscriptMessageData = core.serialization.undiscriminatedUnion([
|
|
41
|
+
TranscribeTranscriptData_js_1.TranscribeTranscriptData,
|
|
42
|
+
core.serialization.list(TranscribeTranscriptData_js_1.TranscribeTranscriptData),
|
|
43
|
+
]);
|
|
@@ -7,7 +7,9 @@ export declare const TranscriptsListItem: core.serialization.ObjectSchema<serial
|
|
|
7
7
|
export declare namespace TranscriptsListItem {
|
|
8
8
|
interface Raw {
|
|
9
9
|
id: Uuid.Raw;
|
|
10
|
+
recordingId: Uuid.Raw;
|
|
10
11
|
transcriptSample: string;
|
|
12
|
+
createdAt: string;
|
|
11
13
|
transcript?: (TranscriptsData.Raw | null | undefined) | null;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
@@ -40,6 +40,8 @@ const TranscriptsData_js_1 = require("./TranscriptsData.js");
|
|
|
40
40
|
const Uuid_js_1 = require("./Uuid.js");
|
|
41
41
|
exports.TranscriptsListItem = core.serialization.object({
|
|
42
42
|
id: Uuid_js_1.Uuid,
|
|
43
|
+
recordingId: Uuid_js_1.Uuid,
|
|
43
44
|
transcriptSample: core.serialization.string(),
|
|
45
|
+
createdAt: core.serialization.date(),
|
|
44
46
|
transcript: TranscriptsData_js_1.TranscriptsData.optionalNullable(),
|
|
45
47
|
});
|
|
@@ -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";
|
|
@@ -230,6 +234,14 @@ export * from "./GuidedOutputSchema.js";
|
|
|
230
234
|
export * from "./GuidedSection.js";
|
|
231
235
|
export * from "./GuidedSectionGeneration.js";
|
|
232
236
|
export * from "./GuidedSectionGenerationPartial.js";
|
|
237
|
+
export * from "./GuidedSectionImpactResponse.js";
|
|
238
|
+
export * from "./GuidedSectionImpactSectionItem.js";
|
|
239
|
+
export * from "./GuidedSectionImpactSections.js";
|
|
240
|
+
export * from "./GuidedSectionImpactTemplateDirect.js";
|
|
241
|
+
export * from "./GuidedSectionImpactTemplateInheritedSection.js";
|
|
242
|
+
export * from "./GuidedSectionImpactTemplateInheritedTemplate.js";
|
|
243
|
+
export * from "./GuidedSectionImpactTemplateItem.js";
|
|
244
|
+
export * from "./GuidedSectionImpactTemplates.js";
|
|
233
245
|
export * from "./GuidedSectionInstructions.js";
|
|
234
246
|
export * from "./GuidedSectionInstructionsOverride.js";
|
|
235
247
|
export * from "./GuidedSectionInstructionsPartial.js";
|
|
@@ -299,6 +311,7 @@ export * from "./StreamConfigRetentionPolicy.js";
|
|
|
299
311
|
export * from "./StreamConfigStatusMessage.js";
|
|
300
312
|
export * from "./StreamConfigStatusMessageType.js";
|
|
301
313
|
export * from "./StreamConfigTranscription.js";
|
|
314
|
+
export * from "./StreamConfigTranscriptionWordLevel.js";
|
|
302
315
|
export * from "./StreamDeltaUsageMessage.js";
|
|
303
316
|
export * from "./StreamEndedMessage.js";
|
|
304
317
|
export * from "./StreamEndMessage.js";
|
|
@@ -351,6 +364,7 @@ export * from "./TranscribeConfigMessage.js";
|
|
|
351
364
|
export * from "./TranscribeConfigReplacementsItem.js";
|
|
352
365
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
353
366
|
export * from "./TranscribeConfigStatusMessageType.js";
|
|
367
|
+
export * from "./TranscribeConfigWordLevel.js";
|
|
354
368
|
export * from "./TranscribeDeltaUsageMessage.js";
|
|
355
369
|
export * from "./TranscribeEndedMessage.js";
|
|
356
370
|
export * from "./TranscribeEndMessage.js";
|
|
@@ -368,6 +382,7 @@ export * from "./TranscribeFormattingTimes.js";
|
|
|
368
382
|
export * from "./TranscribeSupportedLanguage.js";
|
|
369
383
|
export * from "./TranscribeTranscriptData.js";
|
|
370
384
|
export * from "./TranscribeTranscriptMessage.js";
|
|
385
|
+
export * from "./TranscribeTranscriptMessageData.js";
|
|
371
386
|
export * from "./TranscribeUsageMessage.js";
|
|
372
387
|
export * from "./TranscriptsData.js";
|
|
373
388
|
export * from "./TranscriptsFormatting.js";
|
|
@@ -121,6 +121,9 @@ __exportStar(require("./AuthTokenRequestClientCredentials.js"), exports);
|
|
|
121
121
|
__exportStar(require("./AuthTokenRequestRefresh.js"), exports);
|
|
122
122
|
__exportStar(require("./AuthTokenRequestRopc.js"), exports);
|
|
123
123
|
__exportStar(require("./AuthTokenResponse.js"), exports);
|
|
124
|
+
__exportStar(require("./CodesConditionGroup.js"), exports);
|
|
125
|
+
__exportStar(require("./CodesConditionGroupConditionsItem.js"), exports);
|
|
126
|
+
__exportStar(require("./CodesConditionGroupMatch.js"), exports);
|
|
124
127
|
__exportStar(require("./CodesFilter.js"), exports);
|
|
125
128
|
__exportStar(require("./CodesFilterCondition.js"), exports);
|
|
126
129
|
__exportStar(require("./CodesFilterConditionOp.js"), exports);
|
|
@@ -129,6 +132,7 @@ __exportStar(require("./CodesGeneralReadResponse.js"), exports);
|
|
|
129
132
|
__exportStar(require("./CodesGeneralReadResponseAlternativesItem.js"), exports);
|
|
130
133
|
__exportStar(require("./CodesGeneralReadResponseEvidencesItem.js"), exports);
|
|
131
134
|
__exportStar(require("./CodesGeneralResponse.js"), exports);
|
|
135
|
+
__exportStar(require("./CodesSystemFilter.js"), exports);
|
|
132
136
|
__exportStar(require("./CommonA2AConnector.js"), exports);
|
|
133
137
|
__exportStar(require("./CommonA2AConnectorCreate.js"), exports);
|
|
134
138
|
__exportStar(require("./CommonAgentConnector.js"), exports);
|
|
@@ -246,6 +250,14 @@ __exportStar(require("./GuidedOutputSchema.js"), exports);
|
|
|
246
250
|
__exportStar(require("./GuidedSection.js"), exports);
|
|
247
251
|
__exportStar(require("./GuidedSectionGeneration.js"), exports);
|
|
248
252
|
__exportStar(require("./GuidedSectionGenerationPartial.js"), exports);
|
|
253
|
+
__exportStar(require("./GuidedSectionImpactResponse.js"), exports);
|
|
254
|
+
__exportStar(require("./GuidedSectionImpactSectionItem.js"), exports);
|
|
255
|
+
__exportStar(require("./GuidedSectionImpactSections.js"), exports);
|
|
256
|
+
__exportStar(require("./GuidedSectionImpactTemplateDirect.js"), exports);
|
|
257
|
+
__exportStar(require("./GuidedSectionImpactTemplateInheritedSection.js"), exports);
|
|
258
|
+
__exportStar(require("./GuidedSectionImpactTemplateInheritedTemplate.js"), exports);
|
|
259
|
+
__exportStar(require("./GuidedSectionImpactTemplateItem.js"), exports);
|
|
260
|
+
__exportStar(require("./GuidedSectionImpactTemplates.js"), exports);
|
|
249
261
|
__exportStar(require("./GuidedSectionInstructions.js"), exports);
|
|
250
262
|
__exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
|
|
251
263
|
__exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
|
|
@@ -315,6 +327,7 @@ __exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
|
315
327
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
316
328
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
317
329
|
__exportStar(require("./StreamConfigTranscription.js"), exports);
|
|
330
|
+
__exportStar(require("./StreamConfigTranscriptionWordLevel.js"), exports);
|
|
318
331
|
__exportStar(require("./StreamDeltaUsageMessage.js"), exports);
|
|
319
332
|
__exportStar(require("./StreamEndedMessage.js"), exports);
|
|
320
333
|
__exportStar(require("./StreamEndMessage.js"), exports);
|
|
@@ -367,6 +380,7 @@ __exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
|
367
380
|
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
368
381
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
369
382
|
__exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
|
|
383
|
+
__exportStar(require("./TranscribeConfigWordLevel.js"), exports);
|
|
370
384
|
__exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
|
|
371
385
|
__exportStar(require("./TranscribeEndedMessage.js"), exports);
|
|
372
386
|
__exportStar(require("./TranscribeEndMessage.js"), exports);
|
|
@@ -384,6 +398,7 @@ __exportStar(require("./TranscribeFormattingTimes.js"), exports);
|
|
|
384
398
|
__exportStar(require("./TranscribeSupportedLanguage.js"), exports);
|
|
385
399
|
__exportStar(require("./TranscribeTranscriptData.js"), exports);
|
|
386
400
|
__exportStar(require("./TranscribeTranscriptMessage.js"), exports);
|
|
401
|
+
__exportStar(require("./TranscribeTranscriptMessageData.js"), exports);
|
|
387
402
|
__exportStar(require("./TranscribeUsageMessage.js"), exports);
|
|
388
403
|
__exportStar(require("./TranscriptsData.js"), exports);
|
|
389
404
|
__exportStar(require("./TranscriptsFormatting.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "6.
|
|
1
|
+
export declare const SDK_VERSION = "6.1.0-rc";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@corti/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "6.
|
|
10
|
-
"User-Agent": "@corti/sdk/6.
|
|
9
|
+
"X-Fern-SDK-Version": "6.1.0-rc",
|
|
10
|
+
"User-Agent": "@corti/sdk/6.1.0-rc",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
|
|
@@ -11,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>;
|
|
@@ -20,7 +20,7 @@ export class CodesClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* 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
|
|
23
|
+
* 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>
|
|
24
24
|
*
|
|
25
25
|
* @param {Corti.CodesGeneralPredictRequest} request
|
|
26
26
|
* @param {CodesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -47,13 +47,16 @@ export class CodesClient {
|
|
|
47
47
|
* type: "text",
|
|
48
48
|
* text: "Patient presents with uncontrolled type 2 diabetes."
|
|
49
49
|
* }],
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
50
|
+
* filters: [{
|
|
51
|
+
* systemId: "icd10cm-outpatient",
|
|
52
|
+
* include: {
|
|
53
|
+
* conditions: [{
|
|
54
|
+
* property: "code",
|
|
55
|
+
* op: "is-a",
|
|
56
|
+
* value: ["E11"]
|
|
57
|
+
* }]
|
|
58
|
+
* }
|
|
59
|
+
* }]
|
|
57
60
|
* })
|
|
58
61
|
*/
|
|
59
62
|
predict(request, requestOptions) {
|
|
@@ -16,13 +16,16 @@ import type * as Corti from "../../../../index.mjs";
|
|
|
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
|
}
|
|
@@ -46,7 +46,7 @@ export declare class SectionsClient {
|
|
|
46
46
|
/**
|
|
47
47
|
* Returns the section with its published version fully resolved (inheritance chain walked
|
|
48
48
|
* to fill missing fields). To see raw authored values without inheritance, use
|
|
49
|
-
* GET /documents/sections/
|
|
49
|
+
* GET /documents/sections/:id/versions/:id .
|
|
50
50
|
*
|
|
51
51
|
* @param {string} sectionID
|
|
52
52
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,7 +59,7 @@ export declare class SectionsClient {
|
|
|
59
59
|
get(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
|
|
60
60
|
private __get;
|
|
61
61
|
/**
|
|
62
|
-
* Deletes a section and its versions. Returns 409 if other sections inherit from this section.
|
|
62
|
+
* Deletes a section and its versions. Returns `409` if other sections inherit from this section.
|
|
63
63
|
*
|
|
64
64
|
* @param {string} sectionID
|
|
65
65
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -88,4 +88,34 @@ export declare class SectionsClient {
|
|
|
88
88
|
*/
|
|
89
89
|
update(sectionID: string, request?: Corti.documents.GuidedSectionsUpdateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
|
|
90
90
|
private __update;
|
|
91
|
+
/**
|
|
92
|
+
* Returns the templates and sections that a change to this section can affect.
|
|
93
|
+
*
|
|
94
|
+
* The `templates` group lists templates whose published version links this section or a
|
|
95
|
+
* descendant section. It also lists templates that inherit their section list from a parent
|
|
96
|
+
* template that links the section. The `sections` group lists the descendant sections that
|
|
97
|
+
* inherit from this section.
|
|
98
|
+
*
|
|
99
|
+
* Counts respect the caller's visibility, so the same section can return different
|
|
100
|
+
* counts for different callers.
|
|
101
|
+
*
|
|
102
|
+
* A template appears once. When a template reaches the section through more than one
|
|
103
|
+
* path, the response keeps the strongest path. The order is `direct`, then
|
|
104
|
+
* `inheritedSection`, then `inheritedTemplate`.
|
|
105
|
+
*
|
|
106
|
+
* Each `items` array holds at most 50 entries. When the 50-entry display cap or the
|
|
107
|
+
* inheritance depth cap removes entries, `truncated` is true.
|
|
108
|
+
*
|
|
109
|
+
* Returns `404` when the caller cannot see the section.
|
|
110
|
+
*
|
|
111
|
+
* @param {string} sectionID
|
|
112
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @throws {@link Corti.NotFoundError}
|
|
115
|
+
*
|
|
116
|
+
* @example
|
|
117
|
+
* await client.documents.sections.impact("sectionID")
|
|
118
|
+
*/
|
|
119
|
+
impact(sectionID: string, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionImpactResponse>;
|
|
120
|
+
private __impact;
|
|
91
121
|
}
|
|
@@ -160,7 +160,7 @@ export class SectionsClient {
|
|
|
160
160
|
/**
|
|
161
161
|
* Returns the section with its published version fully resolved (inheritance chain walked
|
|
162
162
|
* to fill missing fields). To see raw authored values without inheritance, use
|
|
163
|
-
* GET /documents/sections/
|
|
163
|
+
* GET /documents/sections/:id/versions/:id .
|
|
164
164
|
*
|
|
165
165
|
* @param {string} sectionID
|
|
166
166
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -217,7 +217,7 @@ export class SectionsClient {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Deletes a section and its versions. Returns 409 if other sections inherit from this section.
|
|
220
|
+
* Deletes a section and its versions. Returns `409` if other sections inherit from this section.
|
|
221
221
|
*
|
|
222
222
|
* @param {string} sectionID
|
|
223
223
|
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -335,4 +335,78 @@ export class SectionsClient {
|
|
|
335
335
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/documents/sections/{sectionID}");
|
|
336
336
|
});
|
|
337
337
|
}
|
|
338
|
+
/**
|
|
339
|
+
* Returns the templates and sections that a change to this section can affect.
|
|
340
|
+
*
|
|
341
|
+
* The `templates` group lists templates whose published version links this section or a
|
|
342
|
+
* descendant section. It also lists templates that inherit their section list from a parent
|
|
343
|
+
* template that links the section. The `sections` group lists the descendant sections that
|
|
344
|
+
* inherit from this section.
|
|
345
|
+
*
|
|
346
|
+
* Counts respect the caller's visibility, so the same section can return different
|
|
347
|
+
* counts for different callers.
|
|
348
|
+
*
|
|
349
|
+
* A template appears once. When a template reaches the section through more than one
|
|
350
|
+
* path, the response keeps the strongest path. The order is `direct`, then
|
|
351
|
+
* `inheritedSection`, then `inheritedTemplate`.
|
|
352
|
+
*
|
|
353
|
+
* Each `items` array holds at most 50 entries. When the 50-entry display cap or the
|
|
354
|
+
* inheritance depth cap removes entries, `truncated` is true.
|
|
355
|
+
*
|
|
356
|
+
* Returns `404` when the caller cannot see the section.
|
|
357
|
+
*
|
|
358
|
+
* @param {string} sectionID
|
|
359
|
+
* @param {SectionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
360
|
+
*
|
|
361
|
+
* @throws {@link Corti.NotFoundError}
|
|
362
|
+
*
|
|
363
|
+
* @example
|
|
364
|
+
* await client.documents.sections.impact("sectionID")
|
|
365
|
+
*/
|
|
366
|
+
impact(sectionID, requestOptions) {
|
|
367
|
+
return core.HttpResponsePromise.fromPromise(this.__impact(sectionID, requestOptions));
|
|
368
|
+
}
|
|
369
|
+
__impact(sectionID, requestOptions) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
372
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
373
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, 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);
|
|
374
|
+
const _response = yield core.fetcher({
|
|
375
|
+
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, `documents/sections/${core.url.encodePathParam(sectionID)}/impact`),
|
|
376
|
+
method: "GET",
|
|
377
|
+
headers: _headers,
|
|
378
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
379
|
+
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,
|
|
380
|
+
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,
|
|
381
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
382
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
383
|
+
logging: this._options.logging,
|
|
384
|
+
});
|
|
385
|
+
if (_response.ok) {
|
|
386
|
+
return {
|
|
387
|
+
data: serializers.GuidedSectionImpactResponse.parseOrThrow(_response.body, {
|
|
388
|
+
unrecognizedObjectKeys: "passthrough",
|
|
389
|
+
allowUnrecognizedUnionMembers: true,
|
|
390
|
+
allowUnrecognizedEnumValues: true,
|
|
391
|
+
skipValidation: true,
|
|
392
|
+
breadcrumbsPrefix: ["response"],
|
|
393
|
+
}),
|
|
394
|
+
rawResponse: _response.rawResponse,
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
if (_response.error.reason === "status-code") {
|
|
398
|
+
switch (_response.error.statusCode) {
|
|
399
|
+
case 404:
|
|
400
|
+
throw new Corti.NotFoundError(_response.error.body, _response.rawResponse);
|
|
401
|
+
default:
|
|
402
|
+
throw new errors.CortiError({
|
|
403
|
+
statusCode: _response.error.statusCode,
|
|
404
|
+
body: _response.error.body,
|
|
405
|
+
rawResponse: _response.rawResponse,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/documents/sections/{sectionID}/impact");
|
|
410
|
+
});
|
|
411
|
+
}
|
|
338
412
|
}
|
package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class VersionsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
|
|
12
12
|
constructor(options: VersionsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
* Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections
|
|
14
|
+
* Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/:id instead.
|
|
15
15
|
*
|
|
16
16
|
* @param {string} sectionID
|
|
17
17
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -41,7 +41,7 @@ export declare class VersionsClient {
|
|
|
41
41
|
create(sectionID: string, request: Corti.documents.sections.GuidedSectionsCreateVersionRequest, requestOptions?: VersionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionVersion>;
|
|
42
42
|
private __create;
|
|
43
43
|
/**
|
|
44
|
-
* Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections
|
|
44
|
+
* Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/:id instead.
|
|
45
45
|
*
|
|
46
46
|
* @param {string} sectionID
|
|
47
47
|
* @param {string} versionID
|
package/dist/esm/api/resources/documents/resources/sections/resources/versions/client/Client.mjs
CHANGED
|
@@ -20,7 +20,7 @@ export class VersionsClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections
|
|
23
|
+
* Returns raw authored section versions without inheritance resolution. To see resolved content, use GET /sections/:id instead.
|
|
24
24
|
*
|
|
25
25
|
* @param {string} sectionID
|
|
26
26
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -146,7 +146,7 @@ export class VersionsClient {
|
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
/**
|
|
149
|
-
* Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections
|
|
149
|
+
* Returns raw authored section version without inheritance resolution. To see resolved content, use GET /sections/:id instead.
|
|
150
150
|
*
|
|
151
151
|
* @param {string} sectionID
|
|
152
152
|
* @param {string} versionID
|
|
@@ -46,7 +46,7 @@ export declare class TemplatesClient {
|
|
|
46
46
|
/**
|
|
47
47
|
* Returns the template with its published version fully resolved (inheritance walked,
|
|
48
48
|
* sections expanded with their own inheritance applied). To see raw authored
|
|
49
|
-
* values without inheritance, use GET /documents/templates/
|
|
49
|
+
* values without inheritance, use GET /documents/templates/:id/versions/:id .
|
|
50
50
|
*
|
|
51
51
|
* @param {string} templateID
|
|
52
52
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -59,7 +59,7 @@ export declare class TemplatesClient {
|
|
|
59
59
|
get(templateID: string, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
|
|
60
60
|
private __get;
|
|
61
61
|
/**
|
|
62
|
-
* Deletes a template and its versions. Returns 409 if other templates or sections inherit from this template.
|
|
62
|
+
* Deletes a template and its versions. Returns `409` if other templates or sections inherit from this template.
|
|
63
63
|
*
|
|
64
64
|
* @param {string} templateID
|
|
65
65
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -160,7 +160,7 @@ export class TemplatesClient {
|
|
|
160
160
|
/**
|
|
161
161
|
* Returns the template with its published version fully resolved (inheritance walked,
|
|
162
162
|
* sections expanded with their own inheritance applied). To see raw authored
|
|
163
|
-
* values without inheritance, use GET /documents/templates/
|
|
163
|
+
* values without inheritance, use GET /documents/templates/:id/versions/:id .
|
|
164
164
|
*
|
|
165
165
|
* @param {string} templateID
|
|
166
166
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -217,7 +217,7 @@ export class TemplatesClient {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
/**
|
|
220
|
-
* Deletes a template and its versions. Returns 409 if other templates or sections inherit from this template.
|
|
220
|
+
* Deletes a template and its versions. Returns `409` if other templates or sections inherit from this template.
|
|
221
221
|
*
|
|
222
222
|
* @param {string} templateID
|
|
223
223
|
* @param {TemplatesClient.RequestOptions} requestOptions - Request-specific configuration.
|
package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class VersionsClient {
|
|
|
12
12
|
constructor(options: VersionsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* Returns raw authored template versions without inheritance resolution or section expansion.
|
|
15
|
-
* To see resolved content, use GET /documents/templates
|
|
15
|
+
* To see resolved content, use GET /documents/templates/:id instead.
|
|
16
16
|
*
|
|
17
17
|
* @param {string} templateID
|
|
18
18
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -43,7 +43,7 @@ export declare class VersionsClient {
|
|
|
43
43
|
private __create;
|
|
44
44
|
/**
|
|
45
45
|
* Returns the raw authored template version without inheritance resolution or section expansion.
|
|
46
|
-
* To see resolved content, use GET /documents/templates
|
|
46
|
+
* To see resolved content, use GET /documents/templates/:id instead.
|
|
47
47
|
*
|
|
48
48
|
* @param {string} templateID
|
|
49
49
|
* @param {string} versionID
|
package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs
CHANGED
|
@@ -21,7 +21,7 @@ export class VersionsClient {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Returns raw authored template versions without inheritance resolution or section expansion.
|
|
24
|
-
* To see resolved content, use GET /documents/templates
|
|
24
|
+
* To see resolved content, use GET /documents/templates/:id instead.
|
|
25
25
|
*
|
|
26
26
|
* @param {string} templateID
|
|
27
27
|
* @param {VersionsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -148,7 +148,7 @@ export class VersionsClient {
|
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* Returns the raw authored template version without inheritance resolution or section expansion.
|
|
151
|
-
* To see resolved content, use GET /documents/templates
|
|
151
|
+
* To see resolved content, use GET /documents/templates/:id instead.
|
|
152
152
|
*
|
|
153
153
|
* @param {string} templateID
|
|
154
154
|
* @param {string} versionID
|
|
@@ -15,6 +15,7 @@ export * from "./interactions/types/index.mjs";
|
|
|
15
15
|
export * from "./languages/client/requests/index.mjs";
|
|
16
16
|
export * as languages from "./languages/index.mjs";
|
|
17
17
|
export * from "./languages/types/index.mjs";
|
|
18
|
+
export * from "./recordings/client/requests/index.mjs";
|
|
18
19
|
export * as recordings from "./recordings/index.mjs";
|
|
19
20
|
export * as stream from "./stream/index.mjs";
|
|
20
21
|
export * from "./templates/client/requests/index.mjs";
|
|
@@ -15,6 +15,7 @@ export * from "./interactions/types/index.mjs";
|
|
|
15
15
|
export * from "./languages/client/requests/index.mjs";
|
|
16
16
|
export * as languages from "./languages/index.mjs";
|
|
17
17
|
export * from "./languages/types/index.mjs";
|
|
18
|
+
export * from "./recordings/client/requests/index.mjs";
|
|
18
19
|
export * as recordings from "./recordings/index.mjs";
|
|
19
20
|
export * as stream from "./stream/index.mjs";
|
|
20
21
|
export * from "./templates/client/requests/index.mjs";
|