@corti/sdk 3.1.0-rc → 3.1.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 +6 -0
- package/dist/cjs/api/resources/documents/resources/sections/client/Client.js +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.d.ts +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/client/Client.js +7 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/documents/resources/templates/resources/versions/client/Client.js +6 -0
- package/dist/cjs/api/resources/transcripts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/transcripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +3 -1
- package/dist/cjs/api/types/GuidedArrayNode.d.ts +3 -2
- package/dist/cjs/api/types/GuidedBoolNode.d.ts +2 -2
- package/dist/cjs/api/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/api/types/GuidedEphemeralDocument.d.ts +5 -0
- package/dist/cjs/api/types/GuidedFieldDefinition.d.ts +4 -1
- package/dist/cjs/api/types/GuidedNumberNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedObjectNode.d.ts +3 -3
- package/dist/cjs/api/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/api/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/GuidedStringNode.d.ts +4 -4
- package/dist/cjs/api/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/api/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/api/types/StreamConfig.d.ts +5 -1
- package/dist/cjs/api/types/StreamConfigKeyterms.d.ts +8 -0
- package/dist/cjs/api/types/StreamConfigKeytermsTermsItem.d.ts +4 -0
- package/dist/cjs/api/types/StreamConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/StreamErrorDetail.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/api/types/TranscribeCommand.d.ts +3 -3
- package/dist/cjs/api/types/TranscribeCommandVariable.d.ts +6 -5
- package/dist/cjs/api/types/TranscribeCommandVariableType.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeCommandVariableType.js +9 -0
- package/dist/cjs/api/types/TranscribeConfig.d.ts +8 -4
- package/dist/cjs/api/types/TranscribeConfigKeyterms.d.ts +8 -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/TranscribeConfigReplacementsItem.d.ts +6 -0
- package/dist/cjs/api/types/TranscribeConfigReplacementsItem.js +3 -0
- package/dist/cjs/api/types/TranscribeErrorMessageError.d.ts +7 -5
- package/dist/cjs/api/types/TranscribeSupportedLanguage.d.ts +1 -1
- package/dist/cjs/api/types/index.d.ts +7 -5
- package/dist/cjs/api/types/index.js +7 -5
- package/dist/cjs/custom/utils/dictationTranscript.d.ts +26 -0
- package/dist/cjs/custom/utils/dictationTranscript.js +77 -0
- package/dist/cjs/custom/utils/index.d.ts +1 -0
- package/dist/cjs/custom/utils/index.js +3 -1
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js +1 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.d.ts +2 -0
- package/dist/cjs/serialization/types/GuidedDocumentsGenerateBase.js +2 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.d.ts +3 -0
- package/dist/cjs/serialization/types/GuidedEphemeralDocument.js +3 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.d.ts +1 -0
- package/dist/cjs/serialization/types/GuidedFieldDefinition.js +1 -0
- package/dist/cjs/serialization/types/GuidedSection.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSection.js +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedSectionsCreateBase.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplate.js +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.d.ts +0 -2
- package/dist/cjs/serialization/types/GuidedTemplatesCreateBase.js +0 -2
- package/dist/cjs/serialization/types/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/{GuidedTemplatesCreatePolicyRequest.js → StreamConfigKeyterms.js} +4 -5
- package/dist/cjs/serialization/types/StreamConfigKeytermsTermsItem.d.ts +9 -0
- package/dist/cjs/serialization/types/{GuidedSectionPolicy.js → StreamConfigKeytermsTermsItem.js} +3 -10
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/StreamConfigReplacementsItem.js +42 -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/TranscribeAudioEventsConfig.d.ts +1 -1
- package/dist/cjs/serialization/types/TranscribeAudioEventsConfig.js +1 -1
- package/dist/cjs/serialization/types/TranscribeCommandVariable.d.ts +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariable.js +3 -2
- package/dist/cjs/serialization/types/TranscribeCommandVariableType.d.ts +7 -0
- package/dist/cjs/serialization/types/{GuidedTemplatePolicyKind.js → TranscribeCommandVariableType.js} +2 -2
- package/dist/cjs/serialization/types/TranscribeConfig.d.ts +4 -0
- package/dist/cjs/serialization/types/TranscribeConfig.js +4 -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/{GuidedSectionsCreatePolicyRequest.js → TranscribeConfigKeytermsTermsItem.js} +3 -5
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.d.ts +10 -0
- package/dist/cjs/serialization/types/TranscribeConfigReplacementsItem.js +42 -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 +7 -5
- package/dist/cjs/serialization/types/index.js +7 -5
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/documents/resources/sections/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/sections/client/Client.mjs +6 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.d.mts +7 -0
- package/dist/esm/api/resources/documents/resources/templates/client/Client.mjs +7 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/documents/resources/templates/resources/versions/client/Client.mjs +6 -0
- package/dist/esm/api/resources/transcripts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/transcripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +3 -1
- package/dist/esm/api/types/GuidedArrayNode.d.mts +3 -2
- package/dist/esm/api/types/GuidedBoolNode.d.mts +2 -2
- package/dist/esm/api/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/api/types/GuidedEphemeralDocument.d.mts +5 -0
- package/dist/esm/api/types/GuidedFieldDefinition.d.mts +4 -1
- package/dist/esm/api/types/GuidedNumberNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedObjectNode.d.mts +3 -3
- package/dist/esm/api/types/GuidedSection.d.mts +0 -2
- package/dist/esm/api/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/api/types/GuidedStringNode.d.mts +4 -4
- package/dist/esm/api/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/api/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/api/types/StreamConfig.d.mts +5 -1
- package/dist/esm/api/types/StreamConfigKeyterms.d.mts +8 -0
- package/dist/esm/api/types/StreamConfigKeytermsTermsItem.d.mts +4 -0
- package/dist/esm/api/types/StreamConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/StreamErrorDetail.d.mts +7 -5
- package/dist/esm/api/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/api/types/TranscribeCommand.d.mts +3 -3
- package/dist/esm/api/types/TranscribeCommandVariable.d.mts +6 -5
- package/dist/esm/api/types/TranscribeCommandVariableType.d.mts +6 -0
- package/dist/esm/api/types/TranscribeCommandVariableType.mjs +6 -0
- package/dist/esm/api/types/TranscribeConfig.d.mts +8 -4
- package/dist/esm/api/types/TranscribeConfigKeyterms.d.mts +8 -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/TranscribeConfigReplacementsItem.d.mts +6 -0
- package/dist/esm/api/types/TranscribeConfigReplacementsItem.mjs +2 -0
- package/dist/esm/api/types/TranscribeErrorMessageError.d.mts +7 -5
- package/dist/esm/api/types/TranscribeSupportedLanguage.d.mts +1 -1
- package/dist/esm/api/types/index.d.mts +7 -5
- package/dist/esm/api/types/index.mjs +7 -5
- package/dist/esm/custom/utils/dictationTranscript.d.mts +26 -0
- package/dist/esm/custom/utils/dictationTranscript.mjs +74 -0
- package/dist/esm/custom/utils/index.d.mts +1 -0
- package/dist/esm/custom/utils/index.mjs +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs +1 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.d.mts +2 -0
- package/dist/esm/serialization/types/GuidedDocumentsGenerateBase.mjs +2 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.d.mts +3 -0
- package/dist/esm/serialization/types/GuidedEphemeralDocument.mjs +3 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.d.mts +1 -0
- package/dist/esm/serialization/types/GuidedFieldDefinition.mjs +1 -0
- package/dist/esm/serialization/types/GuidedSection.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSection.mjs +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedSectionsCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplate.mjs +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.d.mts +0 -2
- package/dist/esm/serialization/types/GuidedTemplatesCreateBase.mjs +0 -2
- package/dist/esm/serialization/types/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/StreamErrorDetail.d.mts +6 -5
- package/dist/esm/serialization/types/StreamErrorDetail.mjs +6 -5
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.d.mts +1 -1
- package/dist/esm/serialization/types/TranscribeAudioEventsConfig.mjs +1 -1
- package/dist/esm/serialization/types/TranscribeCommandVariable.d.mts +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariable.mjs +3 -2
- package/dist/esm/serialization/types/TranscribeCommandVariableType.d.mts +7 -0
- package/dist/esm/serialization/types/{GuidedTemplatePolicyKind.mjs → TranscribeCommandVariableType.mjs} +1 -1
- package/dist/esm/serialization/types/TranscribeConfig.d.mts +4 -0
- package/dist/esm/serialization/types/TranscribeConfig.mjs +4 -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/TranscribeConfigReplacementsItem.d.mts +10 -0
- package/dist/esm/serialization/types/TranscribeConfigReplacementsItem.mjs +6 -0
- package/dist/esm/serialization/types/TranscribeErrorMessageError.d.mts +6 -5
- package/dist/esm/serialization/types/TranscribeErrorMessageError.mjs +6 -5
- package/dist/esm/serialization/types/index.d.mts +7 -5
- package/dist/esm/serialization/types/index.mjs +7 -5
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.d.ts +0 -6
- package/dist/cjs/api/types/GuidedTemplatePolicyKind.js +0 -9
- package/dist/cjs/api/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -6
- package/dist/cjs/serialization/types/GuidedSectionPolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedSectionsCreatePolicyRequest.d.ts +0 -11
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.d.ts +0 -16
- package/dist/cjs/serialization/types/GuidedTemplatePolicy.js +0 -48
- package/dist/cjs/serialization/types/GuidedTemplatePolicyKind.d.ts +0 -7
- package/dist/cjs/serialization/types/GuidedTemplatesCreatePolicyRequest.d.ts +0 -11
- package/dist/esm/api/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/api/types/GuidedTemplatePolicyKind.d.mts +0 -6
- package/dist/esm/api/types/GuidedTemplatePolicyKind.mjs +0 -6
- package/dist/esm/api/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -6
- package/dist/esm/serialization/types/GuidedSectionPolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedSectionPolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedSectionsCreatePolicyRequest.mjs +0 -7
- package/dist/esm/serialization/types/GuidedTemplatePolicy.d.mts +0 -16
- package/dist/esm/serialization/types/GuidedTemplatePolicy.mjs +0 -12
- package/dist/esm/serialization/types/GuidedTemplatePolicyKind.d.mts +0 -7
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.d.mts +0 -11
- package/dist/esm/serialization/types/GuidedTemplatesCreatePolicyRequest.mjs +0 -7
- /package/dist/cjs/api/types/{GuidedSectionPolicy.js → StreamConfigKeyterms.js} +0 -0
- /package/dist/cjs/api/types/{GuidedSectionsCreatePolicyRequest.js → StreamConfigKeytermsTermsItem.js} +0 -0
- /package/dist/cjs/api/types/{GuidedTemplatePolicy.js → StreamConfigReplacementsItem.js} +0 -0
- /package/dist/cjs/api/types/{GuidedTemplatesCreatePolicyRequest.js → TranscribeConfigKeyterms.js} +0 -0
- /package/dist/esm/api/types/{GuidedSectionPolicy.mjs → StreamConfigKeyterms.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedSectionsCreatePolicyRequest.mjs → StreamConfigKeytermsTermsItem.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedTemplatePolicy.mjs → StreamConfigReplacementsItem.mjs} +0 -0
- /package/dist/esm/api/types/{GuidedTemplatesCreatePolicyRequest.mjs → TranscribeConfigKeyterms.mjs} +0 -0
|
@@ -159,12 +159,10 @@ __exportStar(require("./GuidedSectionInstructionsOverride.js"), exports);
|
|
|
159
159
|
__exportStar(require("./GuidedSectionInstructionsPartial.js"), exports);
|
|
160
160
|
__exportStar(require("./GuidedSectionOverride.js"), exports);
|
|
161
161
|
__exportStar(require("./GuidedSectionOverrides.js"), exports);
|
|
162
|
-
__exportStar(require("./GuidedSectionPolicy.js"), exports);
|
|
163
162
|
__exportStar(require("./GuidedSectionSource.js"), exports);
|
|
164
163
|
__exportStar(require("./GuidedSectionsCreateBase.js"), exports);
|
|
165
164
|
__exportStar(require("./GuidedSectionsCreateFromInheritanceRequest.js"), exports);
|
|
166
165
|
__exportStar(require("./GuidedSectionsCreateFromScratchRequest.js"), exports);
|
|
167
|
-
__exportStar(require("./GuidedSectionsCreatePolicyRequest.js"), exports);
|
|
168
166
|
__exportStar(require("./GuidedSectionsCreateRequest.js"), exports);
|
|
169
167
|
__exportStar(require("./GuidedSectionVersion.js"), exports);
|
|
170
168
|
__exportStar(require("./GuidedShallowTemplateGeneration.js"), exports);
|
|
@@ -176,8 +174,6 @@ __exportStar(require("./GuidedTemplateGeneration.js"), exports);
|
|
|
176
174
|
__exportStar(require("./GuidedTemplateInstructions.js"), exports);
|
|
177
175
|
__exportStar(require("./GuidedTemplateInstructionsPartial.js"), exports);
|
|
178
176
|
__exportStar(require("./GuidedTemplateOverrides.js"), exports);
|
|
179
|
-
__exportStar(require("./GuidedTemplatePolicy.js"), exports);
|
|
180
|
-
__exportStar(require("./GuidedTemplatePolicyKind.js"), exports);
|
|
181
177
|
__exportStar(require("./GuidedTemplateRef.js"), exports);
|
|
182
178
|
__exportStar(require("./GuidedTemplateSource.js"), exports);
|
|
183
179
|
__exportStar(require("./GuidedTemplatesCreateBase.js"), exports);
|
|
@@ -185,7 +181,6 @@ __exportStar(require("./GuidedTemplatesCreateFromInheritanceRequest.js"), export
|
|
|
185
181
|
__exportStar(require("./GuidedTemplatesCreateFromInheritanceRequestGeneration.js"), exports);
|
|
186
182
|
__exportStar(require("./GuidedTemplatesCreateFromScratchRequest.js"), exports);
|
|
187
183
|
__exportStar(require("./GuidedTemplatesCreateFromScratchRequestGeneration.js"), exports);
|
|
188
|
-
__exportStar(require("./GuidedTemplatesCreatePolicyRequest.js"), exports);
|
|
189
184
|
__exportStar(require("./GuidedTemplatesCreateRequest.js"), exports);
|
|
190
185
|
__exportStar(require("./GuidedTemplatesVersionGeneration.js"), exports);
|
|
191
186
|
__exportStar(require("./GuidedTemplatesVersionSectionRequest.js"), exports);
|
|
@@ -211,12 +206,15 @@ __exportStar(require("./StreamAudioEventDataEvent.js"), exports);
|
|
|
211
206
|
__exportStar(require("./StreamAudioEventMessage.js"), exports);
|
|
212
207
|
__exportStar(require("./StreamAudioEventsConfig.js"), exports);
|
|
213
208
|
__exportStar(require("./StreamConfig.js"), exports);
|
|
209
|
+
__exportStar(require("./StreamConfigKeyterms.js"), exports);
|
|
210
|
+
__exportStar(require("./StreamConfigKeytermsTermsItem.js"), exports);
|
|
214
211
|
__exportStar(require("./StreamConfigMessage.js"), exports);
|
|
215
212
|
__exportStar(require("./StreamConfigMode.js"), exports);
|
|
216
213
|
__exportStar(require("./StreamConfigModeFactGenerationInterval.js"), exports);
|
|
217
214
|
__exportStar(require("./StreamConfigModeType.js"), exports);
|
|
218
215
|
__exportStar(require("./StreamConfigParticipant.js"), exports);
|
|
219
216
|
__exportStar(require("./StreamConfigParticipantRole.js"), exports);
|
|
217
|
+
__exportStar(require("./StreamConfigReplacementsItem.js"), exports);
|
|
220
218
|
__exportStar(require("./StreamConfigRetentionPolicy.js"), exports);
|
|
221
219
|
__exportStar(require("./StreamConfigStatusMessage.js"), exports);
|
|
222
220
|
__exportStar(require("./StreamConfigStatusMessageType.js"), exports);
|
|
@@ -254,8 +252,12 @@ __exportStar(require("./TranscribeCommand.js"), exports);
|
|
|
254
252
|
__exportStar(require("./TranscribeCommandData.js"), exports);
|
|
255
253
|
__exportStar(require("./TranscribeCommandMessage.js"), exports);
|
|
256
254
|
__exportStar(require("./TranscribeCommandVariable.js"), exports);
|
|
255
|
+
__exportStar(require("./TranscribeCommandVariableType.js"), exports);
|
|
257
256
|
__exportStar(require("./TranscribeConfig.js"), exports);
|
|
257
|
+
__exportStar(require("./TranscribeConfigKeyterms.js"), exports);
|
|
258
|
+
__exportStar(require("./TranscribeConfigKeytermsTermsItem.js"), exports);
|
|
258
259
|
__exportStar(require("./TranscribeConfigMessage.js"), exports);
|
|
260
|
+
__exportStar(require("./TranscribeConfigReplacementsItem.js"), exports);
|
|
259
261
|
__exportStar(require("./TranscribeConfigStatusMessage.js"), exports);
|
|
260
262
|
__exportStar(require("./TranscribeConfigStatusMessageType.js"), exports);
|
|
261
263
|
__exportStar(require("./TranscribeDeltaUsageMessage.js"), exports);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TranscribeTranscriptData } from "../../api/types/TranscribeTranscriptData.js";
|
|
2
|
+
export interface DictationTranscriptSnapshot {
|
|
3
|
+
/** Finalized text. Use this for copy, clear, and JSON export. */
|
|
4
|
+
committedText: string;
|
|
5
|
+
/**
|
|
6
|
+
* Active interim preview. Empty string when none.
|
|
7
|
+
* Includes its leading boundary space so the UI can render it verbatim
|
|
8
|
+
* immediately after committedText.
|
|
9
|
+
*/
|
|
10
|
+
interimText: string;
|
|
11
|
+
/** @internal */
|
|
12
|
+
_finalizedStarts: ReadonlySet<number>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
_latestFinalEnd: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Pure function that applies a single transcript message to the previous
|
|
18
|
+
* snapshot and returns a new snapshot with updated committed/interim text.
|
|
19
|
+
*
|
|
20
|
+
* - Handles the two-layer committed + interim model (DXG-844).
|
|
21
|
+
* - Ignores late interims that overlap an already-finalized timeline (DXG-1093).
|
|
22
|
+
*
|
|
23
|
+
* @param previous - The last snapshot, or `undefined` on first call.
|
|
24
|
+
* @param message - The incoming transcript packet (subset of TranscribeTranscriptData).
|
|
25
|
+
*/
|
|
26
|
+
export declare function applyDictationTranscript(previous: DictationTranscriptSnapshot | undefined, message: Pick<TranscribeTranscriptData, "text" | "start" | "end" | "isFinal">): DictationTranscriptSnapshot;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.applyDictationTranscript = applyDictationTranscript;
|
|
4
|
+
const NO_SPACE_AFTER = new Set(["(", "[", "{", '"', "'", "\u2018", "\u201c"]);
|
|
5
|
+
const LEFT_ATTACH = new Set([",", ".", ":", ";", "!", "?", ")", "]", "}", "%"]);
|
|
6
|
+
/**
|
|
7
|
+
* Returns the segment text prefixed with at most one space, applying
|
|
8
|
+
* punctuation-aware boundary rules so callers never produce double-spaces
|
|
9
|
+
* or spaces before attachment characters.
|
|
10
|
+
*/
|
|
11
|
+
function buildInsertion(committed, segment) {
|
|
12
|
+
var _a;
|
|
13
|
+
if (!segment)
|
|
14
|
+
return segment;
|
|
15
|
+
const prevChar = committed.length > 0 ? committed[committed.length - 1] : "";
|
|
16
|
+
const nextChar = (_a = segment[0]) !== null && _a !== void 0 ? _a : "";
|
|
17
|
+
const needsSpace = committed.length > 0 && !/\s/.test(prevChar) && !NO_SPACE_AFTER.has(prevChar) && !LEFT_ATTACH.has(nextChar);
|
|
18
|
+
return needsSpace ? ` ${segment}` : segment;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Pure function that applies a single transcript message to the previous
|
|
22
|
+
* snapshot and returns a new snapshot with updated committed/interim text.
|
|
23
|
+
*
|
|
24
|
+
* - Handles the two-layer committed + interim model (DXG-844).
|
|
25
|
+
* - Ignores late interims that overlap an already-finalized timeline (DXG-1093).
|
|
26
|
+
*
|
|
27
|
+
* @param previous - The last snapshot, or `undefined` on first call.
|
|
28
|
+
* @param message - The incoming transcript packet (subset of TranscribeTranscriptData).
|
|
29
|
+
*/
|
|
30
|
+
function applyDictationTranscript(previous, message) {
|
|
31
|
+
var _a, _b, _c;
|
|
32
|
+
const committedText = (_a = previous === null || previous === void 0 ? void 0 : previous.committedText) !== null && _a !== void 0 ? _a : "";
|
|
33
|
+
const finalizedStarts = (_b = previous === null || previous === void 0 ? void 0 : previous._finalizedStarts) !== null && _b !== void 0 ? _b : new Set();
|
|
34
|
+
const latestFinalEnd = (_c = previous === null || previous === void 0 ? void 0 : previous._latestFinalEnd) !== null && _c !== void 0 ? _c : -Infinity;
|
|
35
|
+
if (message.isFinal) {
|
|
36
|
+
if (finalizedStarts.has(message.start)) {
|
|
37
|
+
return {
|
|
38
|
+
committedText,
|
|
39
|
+
interimText: "",
|
|
40
|
+
_finalizedStarts: finalizedStarts,
|
|
41
|
+
_latestFinalEnd: latestFinalEnd,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
const nextFinalizedStarts = new Set(finalizedStarts);
|
|
45
|
+
nextFinalizedStarts.add(message.start);
|
|
46
|
+
const newCommitted = committedText + buildInsertion(committedText, message.text);
|
|
47
|
+
return {
|
|
48
|
+
committedText: newCommitted,
|
|
49
|
+
interimText: "",
|
|
50
|
+
_finalizedStarts: nextFinalizedStarts,
|
|
51
|
+
_latestFinalEnd: Math.max(latestFinalEnd, message.end),
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
// Interim path.
|
|
55
|
+
if (finalizedStarts.has(message.start)) {
|
|
56
|
+
return (previous !== null && previous !== void 0 ? previous : {
|
|
57
|
+
committedText: "",
|
|
58
|
+
interimText: "",
|
|
59
|
+
_finalizedStarts: finalizedStarts,
|
|
60
|
+
_latestFinalEnd: latestFinalEnd,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (message.start < latestFinalEnd) {
|
|
64
|
+
return (previous !== null && previous !== void 0 ? previous : {
|
|
65
|
+
committedText: "",
|
|
66
|
+
interimText: "",
|
|
67
|
+
_finalizedStarts: finalizedStarts,
|
|
68
|
+
_latestFinalEnd: latestFinalEnd,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
committedText,
|
|
73
|
+
interimText: buildInsertion(committedText, message.text),
|
|
74
|
+
_finalizedStarts: finalizedStarts,
|
|
75
|
+
_latestFinalEnd: latestFinalEnd,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { type DecodedToken, decodeToken } from "./decodeToken.js";
|
|
2
|
+
export { applyDictationTranscript, type DictationTranscriptSnapshot, } from "./dictationTranscript.js";
|
|
2
3
|
export { getEnvironment } from "./environment.js";
|
|
3
4
|
export { generateCodeChallenge, generateCodeVerifier } from "./pkceHelpers.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.generateCodeVerifier = exports.generateCodeChallenge = exports.getEnvironment = exports.decodeToken = void 0;
|
|
3
|
+
exports.generateCodeVerifier = exports.generateCodeChallenge = exports.getEnvironment = exports.applyDictationTranscript = exports.decodeToken = void 0;
|
|
4
4
|
var decodeToken_js_1 = require("./decodeToken.js");
|
|
5
5
|
Object.defineProperty(exports, "decodeToken", { enumerable: true, get: function () { return decodeToken_js_1.decodeToken; } });
|
|
6
|
+
var dictationTranscript_js_1 = require("./dictationTranscript.js");
|
|
7
|
+
Object.defineProperty(exports, "applyDictationTranscript", { enumerable: true, get: function () { return dictationTranscript_js_1.applyDictationTranscript; } });
|
|
6
8
|
var environment_js_1 = require("./environment.js");
|
|
7
9
|
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return environment_js_1.getEnvironment; } });
|
|
8
10
|
var pkceHelpers_js_1 = require("./pkceHelpers.js");
|
package/dist/cjs/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.js
CHANGED
|
@@ -45,4 +45,5 @@ exports.TranscriptsCreateRequest = core.serialization.object({
|
|
|
45
45
|
isMultichannel: core.serialization.boolean().optional(),
|
|
46
46
|
diarize: core.serialization.boolean().optional(),
|
|
47
47
|
participants: core.serialization.list(TranscriptsParticipant_js_1.TranscriptsParticipant).optional(),
|
|
48
|
+
async: core.serialization.boolean().optional(),
|
|
48
49
|
});
|
|
@@ -2,11 +2,13 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedDocumentContext } from "./GuidedDocumentContext.js";
|
|
5
|
+
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
6
|
export declare const GuidedDocumentsGenerateBase: core.serialization.ObjectSchema<serializers.GuidedDocumentsGenerateBase.Raw, Corti.GuidedDocumentsGenerateBase>;
|
|
6
7
|
export declare namespace GuidedDocumentsGenerateBase {
|
|
7
8
|
interface Raw {
|
|
8
9
|
outputLanguage: string;
|
|
9
10
|
context?: GuidedDocumentContext.Raw[] | null;
|
|
10
11
|
interactionId?: string | null;
|
|
12
|
+
labels?: GuidedLabel.Raw[] | null;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -37,8 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedDocumentsGenerateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedDocumentContext_js_1 = require("./GuidedDocumentContext.js");
|
|
40
|
+
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
41
|
exports.GuidedDocumentsGenerateBase = core.serialization.object({
|
|
41
42
|
outputLanguage: core.serialization.string(),
|
|
42
43
|
context: core.serialization.list(GuidedDocumentContext_js_1.GuidedDocumentContext).optional(),
|
|
43
44
|
interactionId: core.serialization.string().optional(),
|
|
45
|
+
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
44
46
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
+
import { GuidedLabel } from "./GuidedLabel.js";
|
|
4
5
|
export declare const GuidedEphemeralDocument: core.serialization.ObjectSchema<serializers.GuidedEphemeralDocument.Raw, Corti.GuidedEphemeralDocument>;
|
|
5
6
|
export declare namespace GuidedEphemeralDocument {
|
|
6
7
|
interface Raw {
|
|
@@ -8,7 +9,9 @@ export declare namespace GuidedEphemeralDocument {
|
|
|
8
9
|
templateId: string;
|
|
9
10
|
templateVersionId: string;
|
|
10
11
|
language: string;
|
|
12
|
+
interactionId?: (string | null | undefined) | null;
|
|
11
13
|
stringDocument: Record<string, string>;
|
|
12
14
|
structuredDocument?: (Record<string, unknown> | null | undefined) | null;
|
|
15
|
+
labels: GuidedLabel.Raw[];
|
|
13
16
|
}
|
|
14
17
|
}
|
|
@@ -36,13 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.GuidedEphemeralDocument = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
39
40
|
exports.GuidedEphemeralDocument = core.serialization.object({
|
|
40
41
|
name: core.serialization.string(),
|
|
41
42
|
templateId: core.serialization.string(),
|
|
42
43
|
templateVersionId: core.serialization.string(),
|
|
43
44
|
language: core.serialization.string(),
|
|
45
|
+
interactionId: core.serialization.string().optionalNullable(),
|
|
44
46
|
stringDocument: core.serialization.record(core.serialization.string(), core.serialization.string()),
|
|
45
47
|
structuredDocument: core.serialization
|
|
46
48
|
.record(core.serialization.string(), core.serialization.unknown())
|
|
47
49
|
.optionalNullable(),
|
|
50
|
+
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
48
51
|
});
|
|
@@ -41,4 +41,5 @@ exports.GuidedFieldDefinition = core.serialization.object({
|
|
|
41
41
|
key: core.serialization.string(),
|
|
42
42
|
description: core.serialization.string(),
|
|
43
43
|
value: core.serialization.lazy(() => serializers.GuidedOutputSchema),
|
|
44
|
+
default: core.serialization.string().optionalNullable(),
|
|
44
45
|
});
|
|
@@ -2,7 +2,6 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedSectionPolicy } from "./GuidedSectionPolicy.js";
|
|
6
5
|
import { GuidedSectionSource } from "./GuidedSectionSource.js";
|
|
7
6
|
import { GuidedSectionVersion } from "./GuidedSectionVersion.js";
|
|
8
7
|
export declare const GuidedSection: core.serialization.ObjectSchema<serializers.GuidedSection.Raw, Corti.GuidedSection>;
|
|
@@ -22,6 +21,5 @@ export declare namespace GuidedSection {
|
|
|
22
21
|
createdAt: string;
|
|
23
22
|
updatedAt: string;
|
|
24
23
|
deletedAt?: (string | null | undefined) | null;
|
|
25
|
-
policies?: GuidedSectionPolicy.Raw[] | null;
|
|
26
24
|
}
|
|
27
25
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedSection = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedSectionPolicy_js_1 = require("./GuidedSectionPolicy.js");
|
|
41
40
|
const GuidedSectionSource_js_1 = require("./GuidedSectionSource.js");
|
|
42
41
|
const GuidedSectionVersion_js_1 = require("./GuidedSectionVersion.js");
|
|
43
42
|
exports.GuidedSection = core.serialization.object({
|
|
@@ -55,5 +54,4 @@ exports.GuidedSection = core.serialization.object({
|
|
|
55
54
|
createdAt: core.serialization.date(),
|
|
56
55
|
updatedAt: core.serialization.date(),
|
|
57
56
|
deletedAt: core.serialization.date().optionalNullable(),
|
|
58
|
-
policies: core.serialization.list(GuidedSectionPolicy_js_1.GuidedSectionPolicy).optional(),
|
|
59
57
|
});
|
|
@@ -2,7 +2,6 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedSectionsCreatePolicyRequest } from "./GuidedSectionsCreatePolicyRequest.js";
|
|
6
5
|
export declare const GuidedSectionsCreateBase: core.serialization.ObjectSchema<serializers.GuidedSectionsCreateBase.Raw, Corti.GuidedSectionsCreateBase>;
|
|
7
6
|
export declare namespace GuidedSectionsCreateBase {
|
|
8
7
|
interface Raw {
|
|
@@ -13,6 +12,5 @@ export declare namespace GuidedSectionsCreateBase {
|
|
|
13
12
|
specialties?: string[] | null;
|
|
14
13
|
labels?: GuidedLabel.Raw[] | null;
|
|
15
14
|
publish?: boolean | null;
|
|
16
|
-
policies?: GuidedSectionsCreatePolicyRequest.Raw[] | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedSectionsCreateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedSectionsCreatePolicyRequest_js_1 = require("./GuidedSectionsCreatePolicyRequest.js");
|
|
41
40
|
exports.GuidedSectionsCreateBase = core.serialization.object({
|
|
42
41
|
name: core.serialization.string(),
|
|
43
42
|
description: core.serialization.string().optional(),
|
|
@@ -46,5 +45,4 @@ exports.GuidedSectionsCreateBase = core.serialization.object({
|
|
|
46
45
|
specialties: core.serialization.list(core.serialization.string()).optional(),
|
|
47
46
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
48
47
|
publish: core.serialization.boolean().optional(),
|
|
49
|
-
policies: core.serialization.list(GuidedSectionsCreatePolicyRequest_js_1.GuidedSectionsCreatePolicyRequest).optional(),
|
|
50
48
|
});
|
|
@@ -2,7 +2,6 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedTemplatePolicy } from "./GuidedTemplatePolicy.js";
|
|
6
5
|
import { GuidedTemplateSource } from "./GuidedTemplateSource.js";
|
|
7
6
|
import { GuidedTemplateVersion } from "./GuidedTemplateVersion.js";
|
|
8
7
|
export declare const GuidedTemplate: core.serialization.ObjectSchema<serializers.GuidedTemplate.Raw, Corti.GuidedTemplate>;
|
|
@@ -18,7 +17,6 @@ export declare namespace GuidedTemplate {
|
|
|
18
17
|
regions: string[];
|
|
19
18
|
specialties: string[];
|
|
20
19
|
labels: GuidedLabel.Raw[];
|
|
21
|
-
policies?: GuidedTemplatePolicy.Raw[] | null;
|
|
22
20
|
publishedVersion?: GuidedTemplateVersion.Raw | null;
|
|
23
21
|
createdAt: string;
|
|
24
22
|
updatedAt: string;
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedTemplate = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedTemplatePolicy_js_1 = require("./GuidedTemplatePolicy.js");
|
|
41
40
|
const GuidedTemplateSource_js_1 = require("./GuidedTemplateSource.js");
|
|
42
41
|
const GuidedTemplateVersion_js_1 = require("./GuidedTemplateVersion.js");
|
|
43
42
|
exports.GuidedTemplate = core.serialization.object({
|
|
@@ -51,7 +50,6 @@ exports.GuidedTemplate = core.serialization.object({
|
|
|
51
50
|
regions: core.serialization.list(core.serialization.string()),
|
|
52
51
|
specialties: core.serialization.list(core.serialization.string()),
|
|
53
52
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel),
|
|
54
|
-
policies: core.serialization.list(GuidedTemplatePolicy_js_1.GuidedTemplatePolicy).optional(),
|
|
55
53
|
publishedVersion: GuidedTemplateVersion_js_1.GuidedTemplateVersion.optional(),
|
|
56
54
|
createdAt: core.serialization.date(),
|
|
57
55
|
updatedAt: core.serialization.date(),
|
|
@@ -2,7 +2,6 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { GuidedLabel } from "./GuidedLabel.js";
|
|
5
|
-
import { GuidedTemplatesCreatePolicyRequest } from "./GuidedTemplatesCreatePolicyRequest.js";
|
|
6
5
|
export declare const GuidedTemplatesCreateBase: core.serialization.ObjectSchema<serializers.GuidedTemplatesCreateBase.Raw, Corti.GuidedTemplatesCreateBase>;
|
|
7
6
|
export declare namespace GuidedTemplatesCreateBase {
|
|
8
7
|
interface Raw {
|
|
@@ -13,6 +12,5 @@ export declare namespace GuidedTemplatesCreateBase {
|
|
|
13
12
|
specialties?: string[] | null;
|
|
14
13
|
labels?: GuidedLabel.Raw[] | null;
|
|
15
14
|
publish?: boolean | null;
|
|
16
|
-
policies?: GuidedTemplatesCreatePolicyRequest.Raw[] | null;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
@@ -37,7 +37,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.GuidedTemplatesCreateBase = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const GuidedLabel_js_1 = require("./GuidedLabel.js");
|
|
40
|
-
const GuidedTemplatesCreatePolicyRequest_js_1 = require("./GuidedTemplatesCreatePolicyRequest.js");
|
|
41
40
|
exports.GuidedTemplatesCreateBase = core.serialization.object({
|
|
42
41
|
name: core.serialization.string(),
|
|
43
42
|
description: core.serialization.string().optional(),
|
|
@@ -46,5 +45,4 @@ exports.GuidedTemplatesCreateBase = core.serialization.object({
|
|
|
46
45
|
specialties: core.serialization.list(core.serialization.string()).optional(),
|
|
47
46
|
labels: core.serialization.list(GuidedLabel_js_1.GuidedLabel).optional(),
|
|
48
47
|
publish: core.serialization.boolean().optional(),
|
|
49
|
-
policies: core.serialization.list(GuidedTemplatesCreatePolicyRequest_js_1.GuidedTemplatesCreatePolicyRequest).optional(),
|
|
50
48
|
});
|
|
@@ -2,7 +2,9 @@ import type * as Corti from "../../api/index.js";
|
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { StreamAudioEventsConfig } from "./StreamAudioEventsConfig.js";
|
|
5
|
+
import { StreamConfigKeyterms } from "./StreamConfigKeyterms.js";
|
|
5
6
|
import { StreamConfigMode } from "./StreamConfigMode.js";
|
|
7
|
+
import { StreamConfigReplacementsItem } from "./StreamConfigReplacementsItem.js";
|
|
6
8
|
import { StreamConfigRetentionPolicy } from "./StreamConfigRetentionPolicy.js";
|
|
7
9
|
import { StreamConfigTranscription } from "./StreamConfigTranscription.js";
|
|
8
10
|
export declare const StreamConfig: core.serialization.ObjectSchema<serializers.StreamConfig.Raw, Corti.StreamConfig>;
|
|
@@ -13,5 +15,7 @@ export declare namespace StreamConfig {
|
|
|
13
15
|
retentionPolicy?: StreamConfigRetentionPolicy.Raw | null;
|
|
14
16
|
audioEvents?: StreamAudioEventsConfig.Raw | null;
|
|
15
17
|
audioFormat?: string | null;
|
|
18
|
+
replacements?: StreamConfigReplacementsItem.Raw[] | null;
|
|
19
|
+
keyterms?: StreamConfigKeyterms.Raw | null;
|
|
16
20
|
}
|
|
17
21
|
}
|
|
@@ -37,7 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.StreamConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const StreamAudioEventsConfig_js_1 = require("./StreamAudioEventsConfig.js");
|
|
40
|
+
const StreamConfigKeyterms_js_1 = require("./StreamConfigKeyterms.js");
|
|
40
41
|
const StreamConfigMode_js_1 = require("./StreamConfigMode.js");
|
|
42
|
+
const StreamConfigReplacementsItem_js_1 = require("./StreamConfigReplacementsItem.js");
|
|
41
43
|
const StreamConfigRetentionPolicy_js_1 = require("./StreamConfigRetentionPolicy.js");
|
|
42
44
|
const StreamConfigTranscription_js_1 = require("./StreamConfigTranscription.js");
|
|
43
45
|
exports.StreamConfig = core.serialization.object({
|
|
@@ -46,4 +48,6 @@ exports.StreamConfig = core.serialization.object({
|
|
|
46
48
|
retentionPolicy: StreamConfigRetentionPolicy_js_1.StreamConfigRetentionPolicy.optional(),
|
|
47
49
|
audioEvents: StreamAudioEventsConfig_js_1.StreamAudioEventsConfig.optional(),
|
|
48
50
|
audioFormat: core.serialization.string().optional(),
|
|
51
|
+
replacements: core.serialization.list(StreamConfigReplacementsItem_js_1.StreamConfigReplacementsItem).optional(),
|
|
52
|
+
keyterms: StreamConfigKeyterms_js_1.StreamConfigKeyterms.optional(),
|
|
49
53
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { StreamConfigKeytermsTermsItem } from "./StreamConfigKeytermsTermsItem.js";
|
|
5
|
+
export declare const StreamConfigKeyterms: core.serialization.ObjectSchema<serializers.StreamConfigKeyterms.Raw, Corti.StreamConfigKeyterms>;
|
|
6
|
+
export declare namespace StreamConfigKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: StreamConfigKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -34,10 +34,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.StreamConfigKeyterms = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
const
|
|
40
|
-
exports.
|
|
41
|
-
|
|
42
|
-
customerIds: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
39
|
+
const StreamConfigKeytermsTermsItem_js_1 = require("./StreamConfigKeytermsTermsItem.js");
|
|
40
|
+
exports.StreamConfigKeyterms = core.serialization.object({
|
|
41
|
+
terms: core.serialization.list(StreamConfigKeytermsTermsItem_js_1.StreamConfigKeytermsTermsItem).optional(),
|
|
43
42
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const StreamConfigKeytermsTermsItem: core.serialization.ObjectSchema<serializers.StreamConfigKeytermsTermsItem.Raw, Corti.StreamConfigKeytermsTermsItem>;
|
|
5
|
+
export declare namespace StreamConfigKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/cjs/serialization/types/{GuidedSectionPolicy.js → StreamConfigKeytermsTermsItem.js}
RENAMED
|
@@ -34,15 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.StreamConfigKeytermsTermsItem = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
id: core.serialization.string(),
|
|
42
|
-
kind: GuidedTemplatePolicyKind_js_1.GuidedTemplatePolicyKind,
|
|
43
|
-
customerIds: core.serialization.list(core.serialization.string()).optionalNullable(),
|
|
44
|
-
sectionId: core.serialization.string(),
|
|
45
|
-
createdBy: core.serialization.string(),
|
|
46
|
-
createdAt: core.serialization.date(),
|
|
47
|
-
updatedAt: core.serialization.date(),
|
|
39
|
+
exports.StreamConfigKeytermsTermsItem = core.serialization.object({
|
|
40
|
+
term: core.serialization.string(),
|
|
48
41
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const StreamConfigReplacementsItem: core.serialization.ObjectSchema<serializers.StreamConfigReplacementsItem.Raw, Corti.StreamConfigReplacementsItem>;
|
|
5
|
+
export declare namespace StreamConfigReplacementsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
find: string;
|
|
8
|
+
replace: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.StreamConfigReplacementsItem = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.StreamConfigReplacementsItem = core.serialization.object({
|
|
40
|
+
find: core.serialization.string(),
|
|
41
|
+
replace: core.serialization.string(),
|
|
42
|
+
});
|
|
@@ -4,10 +4,11 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const StreamErrorDetail: core.serialization.ObjectSchema<serializers.StreamErrorDetail.Raw, Corti.StreamErrorDetail>;
|
|
5
5
|
export declare namespace StreamErrorDetail {
|
|
6
6
|
interface Raw {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
requestid?: string | null;
|
|
8
|
+
id?: string | null;
|
|
9
|
+
title?: string | null;
|
|
10
|
+
status?: number | null;
|
|
11
|
+
details?: string | null;
|
|
12
|
+
doc?: string | null;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
@@ -37,9 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.StreamErrorDetail = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.StreamErrorDetail = core.serialization.object({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
requestid: core.serialization.string().optional(),
|
|
41
|
+
id: core.serialization.string().optional(),
|
|
42
|
+
title: core.serialization.string().optional(),
|
|
43
|
+
status: core.serialization.number().optional(),
|
|
44
|
+
details: core.serialization.string().optional(),
|
|
45
|
+
doc: core.serialization.string().optional(),
|
|
45
46
|
});
|
|
@@ -4,6 +4,6 @@ import type * as serializers from "../index.js";
|
|
|
4
4
|
export declare const TranscribeAudioEventsConfig: core.serialization.ObjectSchema<serializers.TranscribeAudioEventsConfig.Raw, Corti.TranscribeAudioEventsConfig>;
|
|
5
5
|
export declare namespace TranscribeAudioEventsConfig {
|
|
6
6
|
interface Raw {
|
|
7
|
-
enabled
|
|
7
|
+
enabled: boolean;
|
|
8
8
|
}
|
|
9
9
|
}
|
|
@@ -37,5 +37,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.TranscribeAudioEventsConfig = void 0;
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
exports.TranscribeAudioEventsConfig = core.serialization.object({
|
|
40
|
-
enabled: core.serialization.boolean()
|
|
40
|
+
enabled: core.serialization.boolean(),
|
|
41
41
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.js";
|
|
2
2
|
import * as core from "../../core/index.js";
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
|
+
import { TranscribeCommandVariableType } from "./TranscribeCommandVariableType.js";
|
|
4
5
|
export declare const TranscribeCommandVariable: core.serialization.ObjectSchema<serializers.TranscribeCommandVariable.Raw, Corti.TranscribeCommandVariable>;
|
|
5
6
|
export declare namespace TranscribeCommandVariable {
|
|
6
7
|
interface Raw {
|
|
7
8
|
key: string;
|
|
8
|
-
type:
|
|
9
|
-
enum
|
|
9
|
+
type: TranscribeCommandVariableType.Raw;
|
|
10
|
+
enum?: string[] | null;
|
|
10
11
|
}
|
|
11
12
|
}
|