@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
|
@@ -2,7 +2,9 @@ import type * as Corti from "../index.mjs";
|
|
|
2
2
|
export interface StreamConfigTranscription {
|
|
3
3
|
/** Primary spoken language for transcription */
|
|
4
4
|
primaryLanguage: Corti.StreamSupportedLanguage;
|
|
5
|
-
/** Enable speaker diarization */
|
|
5
|
+
/** Enable speaker diarization. */
|
|
6
|
+
diarize?: boolean;
|
|
7
|
+
/** **Deprecated** — renamed to `diarize`. Still accepted for backward compatibility; `diarize` takes precedence when both are provided. `CONFIG_ACCEPTED` echoes both fields during the deprecation period. No removal date is currently planned. */
|
|
6
8
|
isDiarization?: boolean;
|
|
7
9
|
/** Enable multi-channel audio processing */
|
|
8
10
|
isMultichannel?: boolean;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export interface StreamErrorDetail {
|
|
2
|
+
/** Unique identifier for the request, for support and debugging. */
|
|
3
|
+
requestid?: string;
|
|
2
4
|
/** Error identifier */
|
|
3
|
-
id
|
|
5
|
+
id?: string;
|
|
4
6
|
/** Error title */
|
|
5
|
-
title
|
|
7
|
+
title?: string;
|
|
6
8
|
/** HTTP status code or similar error code */
|
|
7
|
-
status
|
|
9
|
+
status?: number;
|
|
8
10
|
/** Detailed error message */
|
|
9
|
-
details
|
|
11
|
+
details?: string;
|
|
10
12
|
/** Link to documentation or further information */
|
|
11
|
-
doc
|
|
13
|
+
doc?: string;
|
|
12
14
|
}
|
|
@@ -14,6 +14,8 @@ export interface TranscribeConfig {
|
|
|
14
14
|
audioEvents?: Corti.TranscribeAudioEventsConfig;
|
|
15
15
|
/** 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). */
|
|
16
16
|
audioFormat?: string;
|
|
17
|
-
/** 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 limited to 1,000 replacements per stream. */
|
|
17
|
+
/** 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. */
|
|
18
18
|
replacements?: Corti.TranscribeConfigReplacementsItem[];
|
|
19
|
+
/** Define words, terms, and phrases to be recognized by Corti speech-to-text. Especially useful for proper nouns (e.g., surnames), but also supportive of words not being recognized consistently. */
|
|
20
|
+
keyterms?: Corti.TranscribeConfigKeyterms;
|
|
19
21
|
}
|
|
@@ -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 TranscribeConfigKeyterms {
|
|
6
|
+
/** Ordered list of words to be recognized. Configuration is case sensitive and limited to 1,000 key terms per stream. */
|
|
7
|
+
terms?: Corti.TranscribeConfigKeytermsTermsItem[];
|
|
8
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export interface TranscribeErrorMessageError {
|
|
2
|
+
/** Unique identifier for the request, for support and debugging. */
|
|
3
|
+
requestid?: string;
|
|
2
4
|
/** Unique error identifier */
|
|
3
|
-
id
|
|
5
|
+
id?: string;
|
|
4
6
|
/** Error title */
|
|
5
|
-
title
|
|
7
|
+
title?: string;
|
|
6
8
|
/** HTTP status code */
|
|
7
|
-
status
|
|
9
|
+
status?: number;
|
|
8
10
|
/** Detailed error description */
|
|
9
|
-
details
|
|
11
|
+
details?: string;
|
|
10
12
|
/** Link to documentation */
|
|
11
|
-
doc
|
|
13
|
+
doc?: string;
|
|
12
14
|
}
|
|
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
|
|
|
141
141
|
export * from "./GuidedSectionInstructions.mjs";
|
|
142
142
|
export * from "./GuidedSectionInstructionsOverride.mjs";
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.mjs";
|
|
144
|
+
export * from "./GuidedSectionListItem.mjs";
|
|
145
|
+
export * from "./GuidedSectionListItemSource.mjs";
|
|
144
146
|
export * from "./GuidedSectionOverride.mjs";
|
|
145
147
|
export * from "./GuidedSectionOverrides.mjs";
|
|
146
|
-
export * from "./GuidedSectionSource.mjs";
|
|
147
148
|
export * from "./GuidedSectionsCreateBase.mjs";
|
|
148
149
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
|
|
149
150
|
export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
|
|
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
|
|
|
157
158
|
export * from "./GuidedTemplateGeneration.mjs";
|
|
158
159
|
export * from "./GuidedTemplateInstructions.mjs";
|
|
159
160
|
export * from "./GuidedTemplateInstructionsPartial.mjs";
|
|
161
|
+
export * from "./GuidedTemplateListItem.mjs";
|
|
162
|
+
export * from "./GuidedTemplateListItemSource.mjs";
|
|
160
163
|
export * from "./GuidedTemplateOverrides.mjs";
|
|
161
164
|
export * from "./GuidedTemplateRef.mjs";
|
|
162
|
-
export * from "./GuidedTemplateSource.mjs";
|
|
163
165
|
export * from "./GuidedTemplatesCreateBase.mjs";
|
|
164
166
|
export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
|
|
165
167
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
|
|
@@ -190,12 +192,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
192
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
193
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
194
|
export * from "./StreamConfig.mjs";
|
|
195
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
196
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
197
|
export * from "./StreamConfigMessage.mjs";
|
|
194
198
|
export * from "./StreamConfigMode.mjs";
|
|
195
199
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
200
|
export * from "./StreamConfigModeType.mjs";
|
|
197
201
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
202
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
203
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
204
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
205
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
206
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +240,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
240
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
241
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
242
|
export * from "./TranscribeConfig.mjs";
|
|
243
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
244
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
245
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
246
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
247
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
|
@@ -141,9 +141,10 @@ export * from "./GuidedSectionGenerationPartial.mjs";
|
|
|
141
141
|
export * from "./GuidedSectionInstructions.mjs";
|
|
142
142
|
export * from "./GuidedSectionInstructionsOverride.mjs";
|
|
143
143
|
export * from "./GuidedSectionInstructionsPartial.mjs";
|
|
144
|
+
export * from "./GuidedSectionListItem.mjs";
|
|
145
|
+
export * from "./GuidedSectionListItemSource.mjs";
|
|
144
146
|
export * from "./GuidedSectionOverride.mjs";
|
|
145
147
|
export * from "./GuidedSectionOverrides.mjs";
|
|
146
|
-
export * from "./GuidedSectionSource.mjs";
|
|
147
148
|
export * from "./GuidedSectionsCreateBase.mjs";
|
|
148
149
|
export * from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
|
|
149
150
|
export * from "./GuidedSectionsCreateFromScratchRequest.mjs";
|
|
@@ -157,9 +158,10 @@ export * from "./GuidedTemplate.mjs";
|
|
|
157
158
|
export * from "./GuidedTemplateGeneration.mjs";
|
|
158
159
|
export * from "./GuidedTemplateInstructions.mjs";
|
|
159
160
|
export * from "./GuidedTemplateInstructionsPartial.mjs";
|
|
161
|
+
export * from "./GuidedTemplateListItem.mjs";
|
|
162
|
+
export * from "./GuidedTemplateListItemSource.mjs";
|
|
160
163
|
export * from "./GuidedTemplateOverrides.mjs";
|
|
161
164
|
export * from "./GuidedTemplateRef.mjs";
|
|
162
|
-
export * from "./GuidedTemplateSource.mjs";
|
|
163
165
|
export * from "./GuidedTemplatesCreateBase.mjs";
|
|
164
166
|
export * from "./GuidedTemplatesCreateFromInheritanceRequest.mjs";
|
|
165
167
|
export * from "./GuidedTemplatesCreateFromInheritanceRequestGeneration.mjs";
|
|
@@ -190,12 +192,15 @@ export * from "./StreamAudioEventDataEvent.mjs";
|
|
|
190
192
|
export * from "./StreamAudioEventMessage.mjs";
|
|
191
193
|
export * from "./StreamAudioEventsConfig.mjs";
|
|
192
194
|
export * from "./StreamConfig.mjs";
|
|
195
|
+
export * from "./StreamConfigKeyterms.mjs";
|
|
196
|
+
export * from "./StreamConfigKeytermsTermsItem.mjs";
|
|
193
197
|
export * from "./StreamConfigMessage.mjs";
|
|
194
198
|
export * from "./StreamConfigMode.mjs";
|
|
195
199
|
export * from "./StreamConfigModeFactGenerationInterval.mjs";
|
|
196
200
|
export * from "./StreamConfigModeType.mjs";
|
|
197
201
|
export * from "./StreamConfigParticipant.mjs";
|
|
198
202
|
export * from "./StreamConfigParticipantRole.mjs";
|
|
203
|
+
export * from "./StreamConfigReplacementsItem.mjs";
|
|
199
204
|
export * from "./StreamConfigRetentionPolicy.mjs";
|
|
200
205
|
export * from "./StreamConfigStatusMessage.mjs";
|
|
201
206
|
export * from "./StreamConfigStatusMessageType.mjs";
|
|
@@ -235,6 +240,8 @@ export * from "./TranscribeCommandMessage.mjs";
|
|
|
235
240
|
export * from "./TranscribeCommandVariable.mjs";
|
|
236
241
|
export * from "./TranscribeCommandVariableType.mjs";
|
|
237
242
|
export * from "./TranscribeConfig.mjs";
|
|
243
|
+
export * from "./TranscribeConfigKeyterms.mjs";
|
|
244
|
+
export * from "./TranscribeConfigKeytermsTermsItem.mjs";
|
|
238
245
|
export * from "./TranscribeConfigMessage.mjs";
|
|
239
246
|
export * from "./TranscribeConfigReplacementsItem.mjs";
|
|
240
247
|
export * from "./TranscribeConfigStatusMessage.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../../index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.documents.sections.list.Response.Raw, Corti.
|
|
4
|
+
import { GuidedSectionListItem } from "../../../../../types/GuidedSectionListItem.mjs";
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.documents.sections.list.Response.Raw, Corti.GuidedSectionListItem[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
|
-
type Raw =
|
|
7
|
+
type Raw = GuidedSectionListItem.Raw[];
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../../core/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
export const Response = core.serialization.list(
|
|
3
|
+
import { GuidedSectionListItem } from "../../../../../types/GuidedSectionListItem.mjs";
|
|
4
|
+
export const Response = core.serialization.list(GuidedSectionListItem);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type * as Corti from "../../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../../index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
export declare const Response: core.serialization.Schema<serializers.documents.templates.list.Response.Raw, Corti.
|
|
4
|
+
import { GuidedTemplateListItem } from "../../../../../types/GuidedTemplateListItem.mjs";
|
|
5
|
+
export declare const Response: core.serialization.Schema<serializers.documents.templates.list.Response.Raw, Corti.GuidedTemplateListItem[]>;
|
|
6
6
|
export declare namespace Response {
|
|
7
|
-
type Raw =
|
|
7
|
+
type Raw = GuidedTemplateListItem.Raw[];
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../../core/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
export const Response = core.serialization.list(
|
|
3
|
+
import { GuidedTemplateListItem } from "../../../../../types/GuidedTemplateListItem.mjs";
|
|
4
|
+
export const Response = core.serialization.list(GuidedTemplateListItem);
|
|
@@ -20,3 +20,4 @@ export * from "./transcribe/client/socket/index.mjs";
|
|
|
20
20
|
export * as transcribe from "./transcribe/index.mjs";
|
|
21
21
|
export * from "./transcripts/client/requests/index.mjs";
|
|
22
22
|
export * as transcripts from "./transcripts/index.mjs";
|
|
23
|
+
export * from "./transcripts/types/index.mjs";
|
|
@@ -20,3 +20,4 @@ export * from "./transcribe/client/socket/index.mjs";
|
|
|
20
20
|
export * as transcribe from "./transcribe/index.mjs";
|
|
21
21
|
export * from "./transcripts/client/requests/index.mjs";
|
|
22
22
|
export * as transcripts from "./transcripts/index.mjs";
|
|
23
|
+
export * from "./transcripts/types/index.mjs";
|
package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.d.mts
CHANGED
|
@@ -3,15 +3,21 @@ import * as core from "../../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
4
|
import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.mjs";
|
|
5
5
|
import { Uuid } from "../../../../types/Uuid.mjs";
|
|
6
|
+
import { TranscriptsCreateRequestKeyterms } from "../../types/TranscriptsCreateRequestKeyterms.mjs";
|
|
7
|
+
import { TranscriptsCreateRequestReplacementsItem } from "../../types/TranscriptsCreateRequestReplacementsItem.mjs";
|
|
6
8
|
export declare const TranscriptsCreateRequest: core.serialization.Schema<serializers.TranscriptsCreateRequest.Raw, Corti.TranscriptsCreateRequest>;
|
|
7
9
|
export declare namespace TranscriptsCreateRequest {
|
|
8
10
|
interface Raw {
|
|
9
11
|
recordingId: Uuid.Raw;
|
|
10
12
|
primaryLanguage: string;
|
|
13
|
+
spokenPunctuation?: boolean | null;
|
|
14
|
+
automaticPunctuation?: boolean | null;
|
|
11
15
|
isDictation?: boolean | null;
|
|
12
16
|
isMultichannel?: boolean | null;
|
|
13
17
|
diarize?: boolean | null;
|
|
14
18
|
participants?: TranscriptsParticipant.Raw[] | null;
|
|
15
19
|
async?: boolean | null;
|
|
20
|
+
replacements?: TranscriptsCreateRequestReplacementsItem.Raw[] | null;
|
|
21
|
+
keyterms?: TranscriptsCreateRequestKeyterms.Raw | null;
|
|
16
22
|
}
|
|
17
23
|
}
|
package/dist/esm/serialization/resources/transcripts/client/requests/TranscriptsCreateRequest.mjs
CHANGED
|
@@ -2,12 +2,18 @@
|
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import { TranscriptsParticipant } from "../../../../types/TranscriptsParticipant.mjs";
|
|
4
4
|
import { Uuid } from "../../../../types/Uuid.mjs";
|
|
5
|
+
import { TranscriptsCreateRequestKeyterms } from "../../types/TranscriptsCreateRequestKeyterms.mjs";
|
|
6
|
+
import { TranscriptsCreateRequestReplacementsItem } from "../../types/TranscriptsCreateRequestReplacementsItem.mjs";
|
|
5
7
|
export const TranscriptsCreateRequest = core.serialization.object({
|
|
6
8
|
recordingId: Uuid,
|
|
7
9
|
primaryLanguage: core.serialization.string(),
|
|
10
|
+
spokenPunctuation: core.serialization.boolean().optional(),
|
|
11
|
+
automaticPunctuation: core.serialization.boolean().optional(),
|
|
8
12
|
isDictation: core.serialization.boolean().optional(),
|
|
9
13
|
isMultichannel: core.serialization.boolean().optional(),
|
|
10
14
|
diarize: core.serialization.boolean().optional(),
|
|
11
15
|
participants: core.serialization.list(TranscriptsParticipant).optional(),
|
|
12
16
|
async: core.serialization.boolean().optional(),
|
|
17
|
+
replacements: core.serialization.list(TranscriptsCreateRequestReplacementsItem).optional(),
|
|
18
|
+
keyterms: TranscriptsCreateRequestKeyterms.optional(),
|
|
13
19
|
});
|
package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.d.mts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { TranscriptsCreateRequestKeytermsTermsItem } from "./TranscriptsCreateRequestKeytermsTermsItem.mjs";
|
|
5
|
+
export declare const TranscriptsCreateRequestKeyterms: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestKeyterms.Raw, Corti.TranscriptsCreateRequestKeyterms>;
|
|
6
|
+
export declare namespace TranscriptsCreateRequestKeyterms {
|
|
7
|
+
interface Raw {
|
|
8
|
+
terms?: TranscriptsCreateRequestKeytermsTermsItem.Raw[] | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/dist/esm/serialization/resources/transcripts/types/TranscriptsCreateRequestKeyterms.mjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { TranscriptsCreateRequestKeytermsTermsItem } from "./TranscriptsCreateRequestKeytermsTermsItem.mjs";
|
|
4
|
+
export const TranscriptsCreateRequestKeyterms = core.serialization.object({
|
|
5
|
+
terms: core.serialization.list(TranscriptsCreateRequestKeytermsTermsItem).optional(),
|
|
6
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Corti from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const TranscriptsCreateRequestKeytermsTermsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestKeytermsTermsItem.Raw, Corti.TranscriptsCreateRequestKeytermsTermsItem>;
|
|
5
|
+
export declare namespace TranscriptsCreateRequestKeytermsTermsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
term: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Corti from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const TranscriptsCreateRequestReplacementsItem: core.serialization.ObjectSchema<serializers.TranscriptsCreateRequestReplacementsItem.Raw, Corti.TranscriptsCreateRequestReplacementsItem>;
|
|
5
|
+
export declare namespace TranscriptsCreateRequestReplacementsItem {
|
|
6
|
+
interface Raw {
|
|
7
|
+
find: string;
|
|
8
|
+
replace: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
export const TranscriptsCreateRequestReplacementsItem = core.serialization.object({
|
|
4
|
+
find: core.serialization.string(),
|
|
5
|
+
replace: core.serialization.string(),
|
|
6
|
+
});
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { GuidedSectionSource } from "./GuidedSectionSource.mjs";
|
|
4
|
+
import { GuidedSectionListItem } from "./GuidedSectionListItem.mjs";
|
|
6
5
|
import { GuidedSectionVersion } from "./GuidedSectionVersion.mjs";
|
|
7
6
|
export declare const GuidedSection: core.serialization.ObjectSchema<serializers.GuidedSection.Raw, Corti.GuidedSection>;
|
|
8
7
|
export declare namespace GuidedSection {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id: string;
|
|
11
|
-
inheritedFromId?: (string | null | undefined) | null;
|
|
12
|
-
autoGenerated?: boolean | null;
|
|
13
|
-
source?: GuidedSectionSource.Raw | null;
|
|
14
|
-
name: string;
|
|
15
|
-
languages: string[];
|
|
16
|
-
regions: string[];
|
|
17
|
-
specialties: string[];
|
|
18
|
-
description?: string | null;
|
|
19
|
-
labels: GuidedLabel.Raw[];
|
|
8
|
+
interface Raw extends GuidedSectionListItem.Raw {
|
|
20
9
|
publishedVersion?: GuidedSectionVersion.Raw | null;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
deletedAt?: (string | null | undefined) | null;
|
|
24
10
|
}
|
|
25
11
|
}
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { GuidedSectionSource } from "./GuidedSectionSource.mjs";
|
|
3
|
+
import { GuidedSectionListItem } from "./GuidedSectionListItem.mjs";
|
|
5
4
|
import { GuidedSectionVersion } from "./GuidedSectionVersion.mjs";
|
|
6
|
-
export const GuidedSection = core.serialization
|
|
7
|
-
|
|
8
|
-
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
9
|
-
autoGenerated: core.serialization.boolean().optional(),
|
|
10
|
-
source: GuidedSectionSource.optional(),
|
|
11
|
-
name: core.serialization.string(),
|
|
12
|
-
languages: core.serialization.list(core.serialization.string()),
|
|
13
|
-
regions: core.serialization.list(core.serialization.string()),
|
|
14
|
-
specialties: core.serialization.list(core.serialization.string()),
|
|
15
|
-
description: core.serialization.string().optional(),
|
|
16
|
-
labels: core.serialization.list(GuidedLabel),
|
|
5
|
+
export const GuidedSection = core.serialization
|
|
6
|
+
.object({
|
|
17
7
|
publishedVersion: GuidedSectionVersion.optional(),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
deletedAt: core.serialization.date().optionalNullable(),
|
|
21
|
-
});
|
|
8
|
+
})
|
|
9
|
+
.extend(GuidedSectionListItem);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { GuidedLabel } from "./GuidedLabel.mjs";
|
|
5
|
+
import { GuidedSectionListItemSource } from "./GuidedSectionListItemSource.mjs";
|
|
6
|
+
export declare const GuidedSectionListItem: core.serialization.ObjectSchema<serializers.GuidedSectionListItem.Raw, Corti.GuidedSectionListItem>;
|
|
7
|
+
export declare namespace GuidedSectionListItem {
|
|
8
|
+
interface Raw {
|
|
9
|
+
id: string;
|
|
10
|
+
inheritedFromId?: (string | null | undefined) | null;
|
|
11
|
+
autoGenerated?: boolean | null;
|
|
12
|
+
source?: GuidedSectionListItemSource.Raw | null;
|
|
13
|
+
name: string;
|
|
14
|
+
languages: string[];
|
|
15
|
+
regions: string[];
|
|
16
|
+
specialties: string[];
|
|
17
|
+
description?: string | null;
|
|
18
|
+
labels: GuidedLabel.Raw[];
|
|
19
|
+
createdBy?: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
deletedAt?: (string | null | undefined) | null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { GuidedLabel } from "./GuidedLabel.mjs";
|
|
4
|
+
import { GuidedSectionListItemSource } from "./GuidedSectionListItemSource.mjs";
|
|
5
|
+
export const GuidedSectionListItem = core.serialization.object({
|
|
6
|
+
id: core.serialization.string(),
|
|
7
|
+
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
8
|
+
autoGenerated: core.serialization.boolean().optional(),
|
|
9
|
+
source: GuidedSectionListItemSource.optional(),
|
|
10
|
+
name: core.serialization.string(),
|
|
11
|
+
languages: core.serialization.list(core.serialization.string()),
|
|
12
|
+
regions: core.serialization.list(core.serialization.string()),
|
|
13
|
+
specialties: core.serialization.list(core.serialization.string()),
|
|
14
|
+
description: core.serialization.string().optional(),
|
|
15
|
+
labels: core.serialization.list(GuidedLabel),
|
|
16
|
+
createdBy: core.serialization.string().optional(),
|
|
17
|
+
createdAt: core.serialization.date(),
|
|
18
|
+
updatedAt: core.serialization.date(),
|
|
19
|
+
deletedAt: core.serialization.date().optionalNullable(),
|
|
20
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const GuidedSectionListItemSource: core.serialization.Schema<serializers.GuidedSectionListItemSource.Raw, Corti.GuidedSectionListItemSource>;
|
|
5
|
+
export declare namespace GuidedSectionListItemSource {
|
|
6
|
+
type Raw = "user" | "corti" | "project";
|
|
7
|
+
}
|
package/dist/esm/serialization/types/{GuidedSectionSource.mjs → GuidedSectionListItemSource.mjs}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
export const
|
|
3
|
+
export const GuidedSectionListItemSource = core.serialization.enum_(["user", "corti", "project"]);
|
|
@@ -5,5 +5,5 @@ import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCrea
|
|
|
5
5
|
import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.mjs";
|
|
6
6
|
export declare const GuidedSectionsCreateRequest: core.serialization.Schema<serializers.GuidedSectionsCreateRequest.Raw, Corti.GuidedSectionsCreateRequest>;
|
|
7
7
|
export declare namespace GuidedSectionsCreateRequest {
|
|
8
|
-
type Raw =
|
|
8
|
+
type Raw = GuidedSectionsCreateFromInheritanceRequest.Raw | GuidedSectionsCreateFromScratchRequest.Raw;
|
|
9
9
|
}
|
|
@@ -3,6 +3,6 @@ import * as core from "../../core/index.mjs";
|
|
|
3
3
|
import { GuidedSectionsCreateFromInheritanceRequest } from "./GuidedSectionsCreateFromInheritanceRequest.mjs";
|
|
4
4
|
import { GuidedSectionsCreateFromScratchRequest } from "./GuidedSectionsCreateFromScratchRequest.mjs";
|
|
5
5
|
export const GuidedSectionsCreateRequest = core.serialization.undiscriminatedUnion([
|
|
6
|
-
GuidedSectionsCreateFromScratchRequest,
|
|
7
6
|
GuidedSectionsCreateFromInheritanceRequest,
|
|
7
|
+
GuidedSectionsCreateFromScratchRequest,
|
|
8
8
|
]);
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import type * as Corti from "../../api/index.mjs";
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { GuidedTemplateSource } from "./GuidedTemplateSource.mjs";
|
|
4
|
+
import { GuidedTemplateListItem } from "./GuidedTemplateListItem.mjs";
|
|
6
5
|
import { GuidedTemplateVersion } from "./GuidedTemplateVersion.mjs";
|
|
7
6
|
export declare const GuidedTemplate: core.serialization.ObjectSchema<serializers.GuidedTemplate.Raw, Corti.GuidedTemplate>;
|
|
8
7
|
export declare namespace GuidedTemplate {
|
|
9
|
-
interface Raw {
|
|
10
|
-
id: string;
|
|
11
|
-
inheritedFromId?: (string | null | undefined) | null;
|
|
12
|
-
autoGenerated?: boolean | null;
|
|
13
|
-
source?: GuidedTemplateSource.Raw | null;
|
|
14
|
-
name: string;
|
|
15
|
-
description?: string | null;
|
|
16
|
-
languages: string[];
|
|
17
|
-
regions: string[];
|
|
18
|
-
specialties: string[];
|
|
19
|
-
labels: GuidedLabel.Raw[];
|
|
8
|
+
interface Raw extends GuidedTemplateListItem.Raw {
|
|
20
9
|
publishedVersion?: GuidedTemplateVersion.Raw | null;
|
|
21
|
-
createdAt: string;
|
|
22
|
-
updatedAt: string;
|
|
23
|
-
deletedAt?: (string | null | undefined) | null;
|
|
24
10
|
}
|
|
25
11
|
}
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { GuidedTemplateSource } from "./GuidedTemplateSource.mjs";
|
|
3
|
+
import { GuidedTemplateListItem } from "./GuidedTemplateListItem.mjs";
|
|
5
4
|
import { GuidedTemplateVersion } from "./GuidedTemplateVersion.mjs";
|
|
6
|
-
export const GuidedTemplate = core.serialization
|
|
7
|
-
|
|
8
|
-
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
9
|
-
autoGenerated: core.serialization.boolean().optional(),
|
|
10
|
-
source: GuidedTemplateSource.optional(),
|
|
11
|
-
name: core.serialization.string(),
|
|
12
|
-
description: core.serialization.string().optional(),
|
|
13
|
-
languages: core.serialization.list(core.serialization.string()),
|
|
14
|
-
regions: core.serialization.list(core.serialization.string()),
|
|
15
|
-
specialties: core.serialization.list(core.serialization.string()),
|
|
16
|
-
labels: core.serialization.list(GuidedLabel),
|
|
5
|
+
export const GuidedTemplate = core.serialization
|
|
6
|
+
.object({
|
|
17
7
|
publishedVersion: GuidedTemplateVersion.optional(),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
deletedAt: core.serialization.date().optionalNullable(),
|
|
21
|
-
});
|
|
8
|
+
})
|
|
9
|
+
.extend(GuidedTemplateListItem);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { GuidedLabel } from "./GuidedLabel.mjs";
|
|
5
|
+
import { GuidedTemplateListItemSource } from "./GuidedTemplateListItemSource.mjs";
|
|
6
|
+
export declare const GuidedTemplateListItem: core.serialization.ObjectSchema<serializers.GuidedTemplateListItem.Raw, Corti.GuidedTemplateListItem>;
|
|
7
|
+
export declare namespace GuidedTemplateListItem {
|
|
8
|
+
interface Raw {
|
|
9
|
+
id: string;
|
|
10
|
+
inheritedFromId?: (string | null | undefined) | null;
|
|
11
|
+
autoGenerated?: boolean | null;
|
|
12
|
+
source?: GuidedTemplateListItemSource.Raw | null;
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
languages: string[];
|
|
16
|
+
regions: string[];
|
|
17
|
+
specialties: string[];
|
|
18
|
+
labels: GuidedLabel.Raw[];
|
|
19
|
+
createdBy?: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
deletedAt?: (string | null | undefined) | null;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { GuidedLabel } from "./GuidedLabel.mjs";
|
|
4
|
+
import { GuidedTemplateListItemSource } from "./GuidedTemplateListItemSource.mjs";
|
|
5
|
+
export const GuidedTemplateListItem = core.serialization.object({
|
|
6
|
+
id: core.serialization.string(),
|
|
7
|
+
inheritedFromId: core.serialization.string().optionalNullable(),
|
|
8
|
+
autoGenerated: core.serialization.boolean().optional(),
|
|
9
|
+
source: GuidedTemplateListItemSource.optional(),
|
|
10
|
+
name: core.serialization.string(),
|
|
11
|
+
description: core.serialization.string().optional(),
|
|
12
|
+
languages: core.serialization.list(core.serialization.string()),
|
|
13
|
+
regions: core.serialization.list(core.serialization.string()),
|
|
14
|
+
specialties: core.serialization.list(core.serialization.string()),
|
|
15
|
+
labels: core.serialization.list(GuidedLabel),
|
|
16
|
+
createdBy: core.serialization.string().optional(),
|
|
17
|
+
createdAt: core.serialization.date(),
|
|
18
|
+
updatedAt: core.serialization.date(),
|
|
19
|
+
deletedAt: core.serialization.date().optionalNullable(),
|
|
20
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Corti from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const GuidedTemplateListItemSource: core.serialization.Schema<serializers.GuidedTemplateListItemSource.Raw, Corti.GuidedTemplateListItemSource>;
|
|
5
|
+
export declare namespace GuidedTemplateListItemSource {
|
|
6
|
+
type Raw = "user" | "corti" | "project";
|
|
7
|
+
}
|
package/dist/esm/serialization/types/{GuidedTemplateSource.mjs → GuidedTemplateListItemSource.mjs}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../core/index.mjs";
|
|
3
|
-
export const
|
|
3
|
+
export const GuidedTemplateListItemSource = core.serialization.enum_(["user", "corti", "project"]);
|