@corti/sdk 4.0.0-rc → 4.0.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.d.ts +2 -10
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +1 -9
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +2 -6
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +1 -5
- 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 +1 -1
- package/dist/cjs/api/resources/recordings/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +9 -1
- package/dist/cjs/api/resources/transcripts/index.d.ts +1 -0
- package/dist/cjs/api/resources/transcripts/index.js +1 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +8 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +3 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +3 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +3 -0
- package/dist/cjs/api/resources/transcripts/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/transcripts/types/index.js +19 -0
- package/dist/cjs/api/types/GuidedSection.d.ts +6 -27
- package/dist/cjs/api/types/GuidedSectionListItem.d.ts +36 -0
- package/dist/cjs/api/types/GuidedSectionListItem.js +3 -0
- package/dist/cjs/api/types/GuidedSectionListItemSource.d.ts +7 -0
- package/dist/cjs/api/types/GuidedSectionListItemSource.js +10 -0
- package/dist/cjs/api/types/GuidedSectionsCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/GuidedTemplate.d.ts +6 -27
- package/dist/cjs/api/types/GuidedTemplateListItem.d.ts +36 -0
- package/dist/cjs/api/types/GuidedTemplateListItem.js +3 -0
- package/dist/cjs/api/types/GuidedTemplateListItemSource.d.ts +7 -0
- package/dist/cjs/api/types/GuidedTemplateListItemSource.js +10 -0
- package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequest.d.ts +1 -1
- package/dist/cjs/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
- package/dist/cjs/api/types/GuidedTemplatesCreateRequest.d.ts +1 -1
- package/dist/cjs/api/types/StreamConfig.d.ts +4 -0
- package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +8 -0
- package/dist/cjs/api/types/StreamConfigKeyterms.js +3 -0
- package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.js +3 -0
- package/dist/cjs/api/types/StreamConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/StreamConfigReplacementsItem.js +3 -0
- package/dist/cjs/api/types/StreamConfigTranscription.d.ts +3 -1
- package/dist/cjs/api/types/StreamErrorDetail.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeConfig.d.ts +3 -1
- package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +8 -0
- package/dist/cjs/api/types/TranscribeConfigKeyterms.js +3 -0
- package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/types/TranscribeConfigKeytermsTermsItem.js +3 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +7 -5
- package/dist/cjs/api/types/index.d.ts +9 -2
- package/dist/cjs/api/types/index.js +9 -2
- package/dist/cjs/serialization/resources/documents/resources/sections/client/list.d.ts +3 -3
- package/dist/cjs/serialization/resources/documents/resources/sections/client/list.js +2 -2
- package/dist/cjs/serialization/resources/documents/resources/templates/client/list.d.ts +3 -3
- package/dist/cjs/serialization/resources/documents/resources/templates/client/list.js +2 -2
- package/dist/cjs/serialization/resources/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/index.js +1 -0
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +6 -0
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +6 -0
- package/dist/cjs/serialization/resources/transcripts/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/transcripts/index.js +1 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.ts +10 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.js +42 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.js +41 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.js +42 -0
- package/dist/cjs/serialization/resources/transcripts/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/transcripts/types/index.js +19 -0
- package/dist/cjs/serialization/types/GuidedSection.d.ts +2 -16
- package/dist/cjs/serialization/types/GuidedSection.js +5 -17
- package/dist/cjs/serialization/types/GuidedSectionListItem.d.ts +24 -0
- package/dist/cjs/serialization/types/GuidedSectionListItem.js +56 -0
- package/dist/cjs/serialization/types/GuidedSectionListItemSource.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedSectionSource.js → GuidedSectionListItemSource.js} +2 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/GuidedSectionsCreateRequest.js +1 -1
- package/dist/cjs/serialization/types/GuidedTemplate.d.ts +2 -16
- package/dist/cjs/serialization/types/GuidedTemplate.js +5 -17
- package/dist/cjs/serialization/types/GuidedTemplateListItem.d.ts +24 -0
- package/dist/cjs/serialization/types/GuidedTemplateListItem.js +56 -0
- package/dist/cjs/serialization/types/GuidedTemplateListItemSource.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedTemplateSource.js → GuidedTemplateListItemSource.js} +2 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.ts +1 -1
- package/dist/cjs/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.js +1 -1
- package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.d.ts +1 -1
- package/dist/cjs/serialization/types/GuidedTemplatesCreateRequest.js +1 -1
- package/dist/cjs/serialization/types/StreamConfig.d.ts +4 -0
- package/dist/cjs/serialization/types/StreamConfig.js +4 -0
- package/dist/cjs/serialization/types/StreamConfigKeyterms.d.ts +10 -0
- package/dist/cjs/serialization/types/StreamConfigKeyterms.js +42 -0
- package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.js +41 -0
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.js +42 -0
- package/dist/cjs/serialization/types/StreamConfigTranscription.d.ts +1 -0
- package/dist/cjs/serialization/types/StreamConfigTranscription.js +1 -0
- package/dist/cjs/serialization/types/StreamErrorDetail.d.ts +6 -5
- package/dist/cjs/serialization/types/StreamErrorDetail.js +6 -5
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +2 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +2 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeyterms.d.ts +10 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeyterms.js +42 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/types/TranscribeConfigKeytermsTermsItem.js +41 -0
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.d.ts +6 -5
- package/dist/cjs/serialization/types/TranscribeErrorMessageError.js +6 -5
- package/dist/cjs/serialization/types/index.d.ts +9 -2
- package/dist/cjs/serialization/types/index.js +9 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +2 -10
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +1 -9
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +2 -6
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +1 -5
- 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 +1 -1
- package/dist/esm/api/resources/recordings/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +9 -1
- package/dist/esm/api/resources/transcripts/index.d.mts +1 -0
- package/dist/esm/api/resources/transcripts/index.mjs +1 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +8 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +2 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +2 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +6 -0
- package/dist/esm/api/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +2 -0
- package/dist/esm/api/resources/transcripts/types/index.d.mts +3 -0
- package/dist/esm/api/resources/transcripts/types/index.mjs +3 -0
- package/dist/esm/api/types/GuidedSection.d.mts +6 -27
- package/dist/esm/api/types/GuidedSectionListItem.d.mts +36 -0
- package/dist/esm/api/types/GuidedSectionListItem.mjs +2 -0
- package/dist/esm/api/types/GuidedSectionListItemSource.d.mts +7 -0
- package/dist/esm/api/types/GuidedSectionListItemSource.mjs +7 -0
- package/dist/esm/api/types/GuidedSectionsCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/GuidedTemplate.d.mts +6 -27
- package/dist/esm/api/types/GuidedTemplateListItem.d.mts +36 -0
- package/dist/esm/api/types/GuidedTemplateListItem.mjs +2 -0
- package/dist/esm/api/types/GuidedTemplateListItemSource.d.mts +7 -0
- package/dist/esm/api/types/GuidedTemplateListItemSource.mjs +7 -0
- package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequest.d.mts +1 -1
- package/dist/esm/api/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
- package/dist/esm/api/types/GuidedTemplatesCreateRequest.d.mts +1 -1
- package/dist/esm/api/types/StreamConfig.d.mts +4 -0
- package/dist/esm/api/types/StreamConfigKeyterms.d.mts +8 -0
- package/dist/esm/api/types/StreamConfigKeyterms.mjs +2 -0
- package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/types/StreamConfigKeytermsTermsItem.mjs +2 -0
- package/dist/esm/api/types/StreamConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/StreamConfigReplacementsItem.mjs +2 -0
- package/dist/esm/api/types/StreamConfigTranscription.d.mts +3 -1
- package/dist/esm/api/types/StreamErrorDetail.d.mts +7 -5
- package/dist/esm/api/types/TranscribeConfig.d.mts +3 -1
- package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +8 -0
- package/dist/esm/api/types/TranscribeConfigKeyterms.mjs +2 -0
- package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/types/TranscribeConfigKeytermsTermsItem.mjs +2 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +7 -5
- package/dist/esm/api/types/index.d.mts +9 -2
- package/dist/esm/api/types/index.mjs +9 -2
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.d.mts +3 -3
- package/dist/esm/serialization/resources/documents/resources/sections/client/list.mjs +2 -2
- package/dist/esm/serialization/resources/documents/resources/templates/client/list.d.mts +3 -3
- package/dist/esm/serialization/resources/documents/resources/templates/client/list.mjs +2 -2
- package/dist/esm/serialization/resources/index.d.mts +1 -0
- package/dist/esm/serialization/resources/index.mjs +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +6 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +6 -0
- package/dist/esm/serialization/resources/transcripts/index.d.mts +1 -0
- package/dist/esm/serialization/resources/transcripts/index.mjs +1 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts +10 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs +6 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.d.mts +9 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeytermsTermsItem.mjs +5 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestReplacementsItem.mjs +6 -0
- package/dist/esm/serialization/resources/transcripts/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/transcripts/types/index.mjs +3 -0
- package/dist/esm/serialization/types/GuidedSection.d.mts +2 -16
- package/dist/esm/serialization/types/GuidedSection.mjs +5 -17
- package/dist/esm/serialization/types/GuidedSectionListItem.d.mts +24 -0
- package/dist/esm/serialization/types/GuidedSectionListItem.mjs +20 -0
- package/dist/esm/serialization/types/GuidedSectionListItemSource.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs} +1 -1
- package/dist/esm/serialization/types/GuidedSectionsCreateRequest.d.mts +1 -1
- package/dist/esm/serialization/types/GuidedSectionsCreateRequest.mjs +1 -1
- package/dist/esm/serialization/types/GuidedTemplate.d.mts +2 -16
- package/dist/esm/serialization/types/GuidedTemplate.mjs +5 -17
- package/dist/esm/serialization/types/GuidedTemplateListItem.d.mts +24 -0
- package/dist/esm/serialization/types/GuidedTemplateListItem.mjs +20 -0
- package/dist/esm/serialization/types/GuidedTemplateListItemSource.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs} +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.d.mts +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateFromScratchRequestGeneration.mjs +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.d.mts +1 -1
- package/dist/esm/serialization/types/GuidedTemplatesCreateRequest.mjs +1 -1
- package/dist/esm/serialization/types/StreamConfig.d.mts +4 -0
- package/dist/esm/serialization/types/StreamConfig.mjs +4 -0
- package/dist/esm/serialization/types/StreamConfigKeyterms.d.mts +10 -0
- package/dist/esm/serialization/types/StreamConfigKeyterms.mjs +6 -0
- package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.d.mts +9 -0
- package/dist/esm/serialization/types/StreamConfigKeytermsTermsItem.mjs +5 -0
- package/dist/esm/serialization/types/StreamConfigReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/types/StreamConfigReplacementsItem.mjs +6 -0
- package/dist/esm/serialization/types/StreamConfigTranscription.d.mts +1 -0
- package/dist/esm/serialization/types/StreamConfigTranscription.mjs +1 -0
- package/dist/esm/serialization/types/StreamErrorDetail.d.mts +6 -5
- package/dist/esm/serialization/types/StreamErrorDetail.mjs +6 -5
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +2 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +2 -0
- package/dist/esm/serialization/types/TranscribeConfigKeyterms.d.mts +10 -0
- package/dist/esm/serialization/types/TranscribeConfigKeyterms.mjs +6 -0
- package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.d.mts +9 -0
- package/dist/esm/serialization/types/TranscribeConfigKeytermsTermsItem.mjs +5 -0
- package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +6 -5
- package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +6 -5
- package/dist/esm/serialization/types/index.d.mts +9 -2
- package/dist/esm/serialization/types/index.mjs +9 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/types/GuidedSectionSource.d.ts +0 -6
- package/dist/cjs/api/types/GuidedSectionSource.js +0 -9
- package/dist/cjs/api/types/GuidedTemplateSource.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplateSource.js +0 -9
- package/dist/cjs/serialization/types/GuidedSectionSource.d.ts +0 -7
- package/dist/cjs/serialization/types/GuidedTemplateSource.d.ts +0 -7
- package/dist/esm/api/types/GuidedSectionSource.d.mts +0 -6
- package/dist/esm/api/types/GuidedSectionSource.mjs +0 -6
- package/dist/esm/api/types/GuidedTemplateSource.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplateSource.mjs +0 -6
- package/dist/esm/serialization/types/GuidedSectionSource.d.mts +0 -7
- package/dist/esm/serialization/types/GuidedTemplateSource.d.mts +0 -7
|
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.js";
|
|
|
141
141
|
export * from "./GuidedSectionInstructions.js";
|
|
142
142
|
export * from "./GuidedSectionInstructionsOverride.js";
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.js";
|
|
144
|
+
export * from "./GuidedSectionListItem.js";
|
|
145
|
+
export * from "./GuidedSectionListItemSource.js";
|
|
144
146
|
export * from "./GuidedSectionOverride.js";
|
|
145
147
|
export * from "./GuidedSectionOverrides.js";
|
|
146
|
-
export * from "./GuidedSectionSource.js";
|
|
147
148
|
export * from "./GuidedSectionsCreateBase.js";
|
|
148
149
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.js";
|
|
149
150
|
export * from "./GuidedSectionsCreateFromScratchRequest.js";
|
|
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.js";
|
|
|
157
158
|
export * from "./GuidedTemplateGeneration.js";
|
|
158
159
|
export * from "./GuidedTemplateInstructions.js";
|
|
159
160
|
export * from "./GuidedTemplateInstructionsPartial.js";
|
|
161
|
+
export * from "./GuidedTemplateListItem.js";
|
|
162
|
+
export * from "./GuidedTemplateListItemSource.js";
|
|
160
163
|
export * from "./GuidedTemplateOverrides.js";
|
|
161
164
|
export * from "./GuidedTemplateRef.js";
|
|
162
|
-
export * from "./GuidedTemplateSource.js";
|
|
163
165
|
export * from "./GuidedTemplatesCreateBase.js";
|
|
164
166
|
export * from "./GuidedTemplatesCreateFromInheritanceRequest.js";
|
|
165
167
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.js";
|
|
@@ -190,12 +192,15 @@ export * from "./StreamAudioEventDataEvent.js";
|
|
|
190
192
|
export * from "./StreamAudioEventMessage.js";
|
|
191
193
|
export * from "./StreamAudioEventsConfig.js";
|
|
192
194
|
export * from "./StreamConfig.js";
|
|
195
|
+
export * from "./StreamConfigKeyterms.js";
|
|
196
|
+
export * from "./StreamConfigKeytermsTermsItem.js";
|
|
193
197
|
export * from "./StreamConfigMessage.js";
|
|
194
198
|
export * from "./StreamConfigMode.js";
|
|
195
199
|
export * from "./StreamConfigModeFactGenerationInterval.js";
|
|
196
200
|
export * from "./StreamConfigModeType.js";
|
|
197
201
|
export * from "./StreamConfigParticipant.js";
|
|
198
202
|
export * from "./StreamConfigParticipantRole.js";
|
|
203
|
+
export * from "./StreamConfigReplacementsItem.js";
|
|
199
204
|
export * from "./StreamConfigRetentionPolicy.js";
|
|
200
205
|
export * from "./StreamConfigStatusMessage.js";
|
|
201
206
|
export * from "./StreamConfigStatusMessageType.js";
|
|
@@ -235,6 +240,8 @@ export * from "./TranscribeCommandMessage.js";
|
|
|
235
240
|
export * from "./TranscribeCommandVariable.js";
|
|
236
241
|
export * from "./TranscribeCommandVariableType.js";
|
|
237
242
|
export * from "./TranscribeConfig.js";
|
|
243
|
+
export * from "./TranscribeConfigKeyterms.js";
|
|
244
|
+
export * from "./TranscribeConfigKeytermsTermsItem.js";
|
|
238
245
|
export * from "./TranscribeConfigMessage.js";
|
|
239
246
|
export * from "./TranscribeConfigReplacementsItem.js";
|
|
240
247
|
export * from "./TranscribeConfigStatusMessage.js";
|
|
@@ -157,9 +157,10 @@ __exportStar(require("./GuidedSectionGenerationPartial.js"), exports);
|
|
|
157
157
|
__exportStar(require("./GuidedSectionInstructions.js"), exports);
|
|
158
158
|
__exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
|
|
159
159
|
__exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
|
|
160
|
+
__exportStar(require("./GuidedSectionListItem.js"), exports);
|
|
161
|
+
__exportStar(require("./GuidedSectionListItemSource.js"), exports);
|
|
160
162
|
__exportStar(require("./GuidedSectionOverride.js"), exports);
|
|
161
163
|
__exportStar(require("./GuidedSectionOverrides.js"), exports);
|
|
162
|
-
__exportStar(require("./GuidedSectionSource.js"), exports);
|
|
163
164
|
__exportStar(require("./GuidedSectionsCreateBase.js"), exports);
|
|
164
165
|
__exportStar(require("./GuidedSectionsCreateFromInheritanceRequest.js"), exports);
|
|
165
166
|
__exportStar(require("./GuidedSectionsCreateFromScratchRequest.js"), exports);
|
|
@@ -173,9 +174,10 @@ __exportStar(require("./GuidedTemplate.js"), exports);
|
|
|
173
174
|
__exportStar(require("./GuidedTemplateGeneration.js"), exports);
|
|
174
175
|
__exportStar(require("./GuidedTemplateInstructions.js"), exports);
|
|
175
176
|
__exportStar(require("./GuidedTemplateInstructionsPartial.js"), exports);
|
|
177
|
+
__exportStar(require("./GuidedTemplateListItem.js"), exports);
|
|
178
|
+
__exportStar(require("./GuidedTemplateListItemSource.js"), exports);
|
|
176
179
|
__exportStar(require("./GuidedTemplateOverrides.js"), exports);
|
|
177
180
|
__exportStar(require("./GuidedTemplateRef.js"), exports);
|
|
178
|
-
__exportStar(require("./GuidedTemplateSource.js"), exports);
|
|
179
181
|
__exportStar(require("./GuidedTemplatesCreateBase.js"), exports);
|
|
180
182
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequest.js"), exports);
|
|
181
183
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequestGeneration.js"), exports);
|
|
@@ -206,12 +208,15 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
|
|
|
206
208
|
__exportStar(require("./StreamAudioEventMessage.js"), exports);
|
|
207
209
|
__exportStar(require("./StreamAudioEventsConfig.js"), exports);
|
|
208
210
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
211
|
+
__exportStar(require("./StreamConfigKeyterms.js"), exports);
|
|
212
|
+
__exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
|
|
209
213
|
__exportStar(require("./StreamConfigMessage.js"), exports);
|
|
210
214
|
__exportStar(require("./StreamConfigMode.js"), exports);
|
|
211
215
|
__exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
|
|
212
216
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
213
217
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
214
218
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
219
|
+
__exportStar(require("./StreamConfigReplacementsItem.js"), exports);
|
|
215
220
|
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
216
221
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
217
222
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
@@ -251,6 +256,8 @@ __exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
|
251
256
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
252
257
|
__exportStar(require("./TranscribeCommandVariableType.js"), exports);
|
|
253
258
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
259
|
+
__exportStar(require("./TranscribeConfigKeyterms.js"), exports);
|
|
260
|
+
__exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
|
|
254
261
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
255
262
|
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
256
263
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "4.0.0-rc";
|
|
1
|
+
export declare const SDK_VERSION = "4.0.0-rc.2";
|
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": "4.0.0-rc",
|
|
10
|
-
"User-Agent": "@corti/sdk/4.0.0-rc",
|
|
9
|
+
"X-Fern-SDK-Version": "4.0.0-rc.2",
|
|
10
|
+
"User-Agent": "@corti/sdk/4.0.0-rc.2",
|
|
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,
|
|
@@ -23,7 +23,7 @@ export declare class SectionsClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.documents.sections.list()
|
|
25
25
|
*/
|
|
26
|
-
list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.
|
|
26
|
+
list(request?: Corti.documents.GuidedSectionsListRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSectionListItem[]>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new section with an initial version. When `publish` is true (default),
|
|
@@ -38,15 +38,7 @@ export declare class SectionsClient {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.documents.sections.create({
|
|
40
40
|
* name: "name",
|
|
41
|
-
*
|
|
42
|
-
* heading: "heading",
|
|
43
|
-
* instructions: {
|
|
44
|
-
* contentPrompt: "contentPrompt"
|
|
45
|
-
* },
|
|
46
|
-
* outputSchema: {
|
|
47
|
-
* type: "string"
|
|
48
|
-
* }
|
|
49
|
-
* }
|
|
41
|
+
* inheritFromId: "inheritFromId"
|
|
50
42
|
* })
|
|
51
43
|
*/
|
|
52
44
|
create(request: Corti.GuidedSectionsCreateRequest, requestOptions?: SectionsClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedSection>;
|
|
@@ -102,15 +102,7 @@ export class SectionsClient {
|
|
|
102
102
|
* @example
|
|
103
103
|
* await client.documents.sections.create({
|
|
104
104
|
* name: "name",
|
|
105
|
-
*
|
|
106
|
-
* heading: "heading",
|
|
107
|
-
* instructions: {
|
|
108
|
-
* contentPrompt: "contentPrompt"
|
|
109
|
-
* },
|
|
110
|
-
* outputSchema: {
|
|
111
|
-
* type: "string"
|
|
112
|
-
* }
|
|
113
|
-
* }
|
|
105
|
+
* inheritFromId: "inheritFromId"
|
|
114
106
|
* })
|
|
115
107
|
*/
|
|
116
108
|
create(request, requestOptions) {
|
|
@@ -23,7 +23,7 @@ export declare class TemplatesClient {
|
|
|
23
23
|
* @example
|
|
24
24
|
* await client.documents.templates.list()
|
|
25
25
|
*/
|
|
26
|
-
list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.
|
|
26
|
+
list(request?: Corti.documents.GuidedTemplatesListRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplateListItem[]>;
|
|
27
27
|
private __list;
|
|
28
28
|
/**
|
|
29
29
|
* Creates a new template with an initial version. When `publish` is true (default),
|
|
@@ -38,11 +38,7 @@ export declare class TemplatesClient {
|
|
|
38
38
|
* @example
|
|
39
39
|
* await client.documents.templates.create({
|
|
40
40
|
* name: "name",
|
|
41
|
-
*
|
|
42
|
-
* instructions: {
|
|
43
|
-
* prompt: "prompt"
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
41
|
+
* inheritFromId: "inheritFromId"
|
|
46
42
|
* })
|
|
47
43
|
*/
|
|
48
44
|
create(request: Corti.GuidedTemplatesCreateRequest, requestOptions?: TemplatesClient.RequestOptions): core.HttpResponsePromise<Corti.GuidedTemplate>;
|
|
@@ -102,11 +102,7 @@ export class TemplatesClient {
|
|
|
102
102
|
* @example
|
|
103
103
|
* await client.documents.templates.create({
|
|
104
104
|
* name: "name",
|
|
105
|
-
*
|
|
106
|
-
* instructions: {
|
|
107
|
-
* prompt: "prompt"
|
|
108
|
-
* }
|
|
109
|
-
* }
|
|
105
|
+
* inheritFromId: "inheritFromId"
|
|
110
106
|
* })
|
|
111
107
|
*/
|
|
112
108
|
create(request, requestOptions) {
|
|
@@ -22,3 +22,4 @@ export * as templates from "./templates/index.mjs";
|
|
|
22
22
|
export * as transcribe from "./transcribe/index.mjs";
|
|
23
23
|
export * from "./transcripts/client/requests/index.mjs";
|
|
24
24
|
export * as transcripts from "./transcripts/index.mjs";
|
|
25
|
+
export * from "./transcripts/types/index.mjs";
|
|
@@ -22,3 +22,4 @@ export * as templates from "./templates/index.mjs";
|
|
|
22
22
|
export * as transcribe from "./transcribe/index.mjs";
|
|
23
23
|
export * from "./transcripts/client/requests/index.mjs";
|
|
24
24
|
export * as transcripts from "./transcripts/index.mjs";
|
|
25
|
+
export * from "./transcripts/types/index.mjs";
|
|
@@ -27,7 +27,7 @@ export declare class RecordingsClient {
|
|
|
27
27
|
list(id: Corti.Uuid, requestOptions?: RecordingsClient.RequestOptions): core.HttpResponsePromise<Corti.RecordingsListResponse>;
|
|
28
28
|
private __list;
|
|
29
29
|
/**
|
|
30
|
-
* Upload a recording for a given interaction. There is a maximum limit of
|
|
30
|
+
* Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
|
|
31
31
|
*
|
|
32
32
|
* @param {core.file.Uploadable} uploadable
|
|
33
33
|
* @param {Corti.Uuid} id
|
|
@@ -98,7 +98,7 @@ export class RecordingsClient {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* Upload a recording for a given interaction. There is a maximum limit of
|
|
101
|
+
* Upload a recording for a given interaction. There is a maximum limit of 120 minutes in audio duration and 150 MB in file size.
|
|
102
102
|
*
|
|
103
103
|
* @param {core.file.Uploadable} uploadable
|
|
104
104
|
* @param {Corti.Uuid} id
|
|
@@ -29,7 +29,7 @@ export declare class TranscriptsClient {
|
|
|
29
29
|
list(id: Corti.Uuid, request?: Corti.TranscriptsListRequest, requestOptions?: TranscriptsClient.RequestOptions): core.HttpResponsePromise<Corti.TranscriptsListResponse>;
|
|
30
30
|
private __list;
|
|
31
31
|
/**
|
|
32
|
-
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to
|
|
32
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 120 minutes in total audio duration and 150 MB in size may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
|
|
33
33
|
*
|
|
34
34
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
35
35
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -106,7 +106,7 @@ export class TranscriptsClient {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to
|
|
109
|
+
* Create a transcript from an audio file uploaded to the interaction via `/recordings` endpoint.<br/><Note>Each interaction may have more than one audio file and transcript associated with it. Audio files up to 120 minutes in total audio duration and 150 MB in size may be used.<br/><br/>By default, requests will process synchronously for 25 seconds before timeout, upon which processing will continue asynchronously. Set the `async` parameter to true to receive the location header immediately and process the request asynchronously. Read more [here](https://docs.corti.ai/stt/transcripts).</Note>
|
|
110
110
|
*
|
|
111
111
|
* @param {Corti.Uuid} id - The unique identifier of the interaction. Must be a valid UUID.
|
|
112
112
|
* @param {Corti.TranscriptsCreateRequest} request
|
|
@@ -11,7 +11,11 @@ export interface TranscriptsCreateRequest {
|
|
|
11
11
|
recordingId: Corti.Uuid;
|
|
12
12
|
/** The primary spoken language of the recording. Check https://docs.corti.ai/stt/languages for more. */
|
|
13
13
|
primaryLanguage: string;
|
|
14
|
-
/**
|
|
14
|
+
/** When true, converts spoken punctuation such as 'period' or 'slash' into symbols (e.g., '.', '/'). When enabled, automatic punctuation is turned off. Takes precedence over `automaticPunctuation` when both are enabled. */
|
|
15
|
+
spokenPunctuation?: boolean;
|
|
16
|
+
/** When true, automatically punctuates and capitalizes the transcript. Defaults to true. Overridden by `spokenPunctuation` when both are enabled. */
|
|
17
|
+
automaticPunctuation?: boolean;
|
|
18
|
+
/** **Deprecated** — replaced by `spokenPunctuation` and `automaticPunctuation`. Ignored when either of those fields is provided. When `true` and neither new field is provided, it is treated as `spokenPunctuation: true` (automatic punctuation off). No removal date is currently planned. */
|
|
15
19
|
isDictation?: boolean;
|
|
16
20
|
/** If true, each audio channel is transcribed separately. */
|
|
17
21
|
isMultichannel?: boolean;
|
|
@@ -21,4 +25,8 @@ export interface TranscriptsCreateRequest {
|
|
|
21
25
|
participants?: Corti.TranscriptsParticipant[];
|
|
22
26
|
/** If true, the request will return immediately with a 202 status and the transcript will be processed asynchronously. Poll [Get Transcript Status](/api-reference/transcripts/get-transcript-status) to check transcript processing status - `processing`, `completed`, `failed`. */
|
|
23
27
|
async?: boolean;
|
|
28
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
29
|
+
replacements?: Corti.TranscriptsCreateRequestReplacementsItem[];
|
|
30
|
+
/** 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. */
|
|
31
|
+
keyterms?: Corti.TranscriptsCreateRequestKeyterms;
|
|
24
32
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
export interface TranscriptsCreateRequestKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
7
|
+
terms?: Corti.TranscriptsCreateRequestKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
autoGenerated?: boolean;
|
|
9
|
-
/** Whether this section was created by the user or from the Corti standard resources. */
|
|
10
|
-
source?: Corti.GuidedSectionSource;
|
|
11
|
-
/** The name of the section. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
|
|
14
|
-
languages: string[];
|
|
15
|
-
/** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
|
|
16
|
-
regions: string[];
|
|
17
|
-
/** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
18
|
-
specialties: string[];
|
|
19
|
-
/** The description for the section. */
|
|
20
|
-
description?: string;
|
|
21
|
-
/** The labels available to use as query param filter in the LIST /sections endpoint. */
|
|
22
|
-
labels: Corti.GuidedLabel[];
|
|
2
|
+
/**
|
|
3
|
+
* Section as returned by single-resource endpoints (GET, POST, PATCH on
|
|
4
|
+
* `/documents/sections/{sectionID}`) and when embedded inside a resolved template
|
|
5
|
+
* version. Extends `GuidedSectionListItem` with the resolved `publishedVersion`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedSection extends Corti.GuidedSectionListItem {
|
|
23
8
|
/** The currently published version with section inheritance fully resolved. Present when a version has been published. */
|
|
24
9
|
publishedVersion?: Corti.GuidedSectionVersion;
|
|
25
|
-
/** The original timestamp when the section was created. */
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
/** The original timestamp when the section was last updated. */
|
|
28
|
-
updatedAt: Date;
|
|
29
|
-
/** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
30
|
-
deletedAt?: Date | null;
|
|
31
10
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Section metadata as returned by the LIST /documents/sections endpoint. Does not
|
|
4
|
+
* include the resolved `publishedVersion` — use GET /documents/sections/{sectionID}
|
|
5
|
+
* to fetch a single section with its published version resolved.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedSectionListItem {
|
|
8
|
+
/** The UUID of the section. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Reference to the section to inherit generation configuration from. Inherits from published version by default. */
|
|
11
|
+
inheritedFromId?: string | null;
|
|
12
|
+
/** True if the section was auto-generated as part of an inline section-composed POST /documents request. */
|
|
13
|
+
autoGenerated?: boolean;
|
|
14
|
+
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
15
|
+
source?: Corti.GuidedSectionListItemSource;
|
|
16
|
+
/** The name of the section. */
|
|
17
|
+
name: string;
|
|
18
|
+
/** BCP 47 languages this section has been tweaked for. Empty means no language-specific tweaks. */
|
|
19
|
+
languages: string[];
|
|
20
|
+
/** ISO 3166-1 alpha-3 country codes this section has been tweaked for. Empty means no region-specific tweaks. */
|
|
21
|
+
regions: string[];
|
|
22
|
+
/** Clinical specialties this section has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
23
|
+
specialties: string[];
|
|
24
|
+
/** The description for the section. */
|
|
25
|
+
description?: string;
|
|
26
|
+
/** The labels available to use as query param filter in the LIST /sections endpoint. */
|
|
27
|
+
labels: Corti.GuidedLabel[];
|
|
28
|
+
/** The UUID of the creator of this section. */
|
|
29
|
+
createdBy?: string;
|
|
30
|
+
/** The original timestamp when the section was created. */
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
/** The original timestamp when the section was last updated. */
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
/** Present when the section has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
35
|
+
deletedAt?: Date | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
2
|
+
export declare const GuidedSectionListItemSource: {
|
|
3
|
+
readonly User: "user";
|
|
4
|
+
readonly Corti: "corti";
|
|
5
|
+
readonly Project: "project";
|
|
6
|
+
};
|
|
7
|
+
export type GuidedSectionListItemSource = (typeof GuidedSectionListItemSource)[keyof typeof GuidedSectionListItemSource];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Whether this section was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
3
|
+
export const GuidedSectionListItemSource = {
|
|
4
|
+
User: "user",
|
|
5
|
+
Corti: "corti",
|
|
6
|
+
Project: "project",
|
|
7
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
|
-
export type GuidedSectionsCreateRequest = Corti.
|
|
2
|
+
export type GuidedSectionsCreateRequest = Corti.GuidedSectionsCreateFromInheritanceRequest | Corti.GuidedSectionsCreateFromScratchRequest;
|
|
@@ -1,31 +1,10 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
autoGenerated?: boolean;
|
|
9
|
-
/** Whether this template was created by the user or is a Corti standard resource. */
|
|
10
|
-
source?: Corti.GuidedTemplateSource;
|
|
11
|
-
/** The name of this template. Not passed to the LLM. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** A description for this template. Not passed to the LLM. */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
|
|
16
|
-
languages: string[];
|
|
17
|
-
/** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
|
|
18
|
-
regions: string[];
|
|
19
|
-
/** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
20
|
-
specialties: string[];
|
|
21
|
-
/** The available labels to use as query param filter in the LIST /templates endpoint. */
|
|
22
|
-
labels: Corti.GuidedLabel[];
|
|
2
|
+
/**
|
|
3
|
+
* Template as returned by single-resource endpoints (GET, POST, PATCH on
|
|
4
|
+
* `/documents/templates/{templateID}`). Extends `GuidedTemplateListItem` with the resolved
|
|
5
|
+
* `publishedVersion`.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedTemplate extends Corti.GuidedTemplateListItem {
|
|
23
8
|
/** The currently published version with inheritance fully resolved. Present when a version has been published. */
|
|
24
9
|
publishedVersion?: Corti.GuidedTemplateVersion;
|
|
25
|
-
/** The original timestamp when the template was created. */
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
/** The original timestamp when the template was last updated. */
|
|
28
|
-
updatedAt: Date;
|
|
29
|
-
/** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
30
|
-
deletedAt?: Date | null;
|
|
31
10
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Template metadata as returned by the LIST /documents/templates endpoint. Does not
|
|
4
|
+
* include the resolved `publishedVersion` — use GET /documents/templates/{templateID}
|
|
5
|
+
* to fetch a single template with its published version resolved.
|
|
6
|
+
*/
|
|
7
|
+
export interface GuidedTemplateListItem {
|
|
8
|
+
/** The UUID of the template. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Reference to the template to inherit template instructions and sections from. Inherits from published version by default. */
|
|
11
|
+
inheritedFromId?: string | null;
|
|
12
|
+
/** True if the template was auto-generated based on the section-composed POST /documents request. */
|
|
13
|
+
autoGenerated?: boolean;
|
|
14
|
+
/** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
15
|
+
source?: Corti.GuidedTemplateListItemSource;
|
|
16
|
+
/** The name of this template. Not passed to the LLM. */
|
|
17
|
+
name: string;
|
|
18
|
+
/** A description for this template. Not passed to the LLM. */
|
|
19
|
+
description?: string;
|
|
20
|
+
/** BCP 47 language tags this template has been tweaked for (e.g. `["fr", "de", "en-GB"]`). Empty means no language-specific tweaks. */
|
|
21
|
+
languages: string[];
|
|
22
|
+
/** ISO 3166-1 alpha-3 country codes this template has been tweaked for (e.g. `["BEL"]`). Empty means no region-specific tweaks. */
|
|
23
|
+
regions: string[];
|
|
24
|
+
/** Clinical specialties this template has been tweaked for. Empty means no specialty-specific tweaks. */
|
|
25
|
+
specialties: string[];
|
|
26
|
+
/** The available labels to use as query param filter in the LIST /templates endpoint. */
|
|
27
|
+
labels: Corti.GuidedLabel[];
|
|
28
|
+
/** The UUID of the creator of this template. */
|
|
29
|
+
createdBy?: string;
|
|
30
|
+
/** The original timestamp when the template was created. */
|
|
31
|
+
createdAt: Date;
|
|
32
|
+
/** The original timestamp when the template was last updated. */
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
/** Present when the template has been deleted. GET by ID still returns the full resource with this field populated. */
|
|
35
|
+
deletedAt?: Date | null;
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
2
|
+
export declare const GuidedTemplateListItemSource: {
|
|
3
|
+
readonly User: "user";
|
|
4
|
+
readonly Corti: "corti";
|
|
5
|
+
readonly Project: "project";
|
|
6
|
+
};
|
|
7
|
+
export type GuidedTemplateListItemSource = (typeof GuidedTemplateListItemSource)[keyof typeof GuidedTemplateListItemSource];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Whether this template was created by the user, a project-related API Client or is a Corti standard resource. */
|
|
3
|
+
export const GuidedTemplateListItemSource = {
|
|
4
|
+
User: "user",
|
|
5
|
+
Corti: "corti",
|
|
6
|
+
Project: "project",
|
|
7
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* Creates a template from scratch.
|
|
3
|
+
* Creates a template from scratch. The template fully specifies its own sections and optional template-level instructions.
|
|
4
4
|
*/
|
|
5
5
|
export interface GuidedTemplatesCreateFromScratchRequest extends Corti.GuidedTemplatesCreateBase {
|
|
6
6
|
generation: Corti.GuidedTemplatesCreateFromScratchRequestGeneration;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
2
|
export interface GuidedTemplatesCreateFromScratchRequestGeneration {
|
|
3
|
-
instructions
|
|
3
|
+
instructions?: Corti.GuidedTemplateInstructions;
|
|
4
4
|
sections?: Corti.GuidedTemplatesVersionSectionRequest[];
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type * as Corti from "../index.mjs";
|
|
2
|
-
export type GuidedTemplatesCreateRequest = Corti.
|
|
2
|
+
export type GuidedTemplatesCreateRequest = Corti.GuidedTemplatesCreateFromInheritanceRequest | Corti.GuidedTemplatesCreateFromScratchRequest;
|
|
@@ -7,4 +7,8 @@ export interface StreamConfig {
|
|
|
7
7
|
audioEvents?: Corti.StreamAudioEventsConfig;
|
|
8
8
|
/** Define the audio format of the incoming audio stream - optional but recommended. When omitted, the server auto-detects the format from the first audio chunk using ffprobe. Supported audio will be processed. Unsupported return an error but might in some cases error silently. If provided (recommended), the provided MIME type must be supported and the audio must match the MIME type. An unsupported MIME type results in `CONFIG_REJECTED`. Audio that differs from the MIME type will return audio validation errors on the socket. See full list of supported MIME types [here](/stt/audio). */
|
|
9
9
|
audioFormat?: string;
|
|
10
|
+
/** Define replacements to have terms (single words or multi-word phrases) replaced in final text output with your preferred style. For example, replace "BID" with "twice daily". Configuration is case insensitive and limited to 1,000 replacements per stream. */
|
|
11
|
+
replacements?: Corti.StreamConfigReplacementsItem[];
|
|
12
|
+
/** 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. */
|
|
13
|
+
keyterms?: Corti.StreamConfigKeyterms;
|
|
10
14
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Corti from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* 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.
|
|
4
|
+
*/
|
|
5
|
+
export interface StreamConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
7
|
+
terms?: Corti.StreamConfigKeytermsTermsItem[];
|
|
8
|
+
}
|