assemblyai 4.3.2 → 4.3.4

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.
@@ -45,7 +45,7 @@ export type AutoHighlightResult = {
45
45
  };
46
46
  /**
47
47
  * An array of results for the Key Phrases model, if it is enabled.
48
- * See [Key phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information.
48
+ * See {@link https://www.assemblyai.com/docs/models/key-phrases | Key phrases } for more information.
49
49
  *
50
50
  * @example
51
51
  * ```js
@@ -363,7 +363,7 @@ export type ContentSafetyLabelResult = {
363
363
  };
364
364
  /**
365
365
  * An array of results for the Content Moderation model, if it is enabled.
366
- * See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information.
366
+ * See {@link https://www.assemblyai.com/docs/models/content-moderation | Content moderation } for more information.
367
367
  *
368
368
  * @example
369
369
  * ```js
@@ -532,7 +532,8 @@ export type LemurActionItemsResponse = LemurBaseResponse & {
532
532
  * ```js
533
533
  * {
534
534
  * "transcript_ids": [
535
- * "64nygnr62k-405c-4ae8-8a6b-d90b40ff3cce"
535
+ * "85f9b381-e90c-46ed-beca-7d76245d375e",
536
+ * "7c3acd18-df4d-4432-88f5-1e89f8827eea"
536
537
  * ],
537
538
  * "context": "This is an interview about wildfires.",
538
539
  * "final_model": "default",
@@ -761,12 +762,12 @@ export type LemurSummaryResponse = LemurBaseResponse & {
761
762
  * }
762
763
  * ```
763
764
  */
764
- export type LemurTaskParams = LemurBaseParams & {
765
+ export type LemurTaskParams = {
765
766
  /**
766
767
  * Your text to prompt the model to produce a desired output, including any context you want to pass into the model.
767
768
  */
768
769
  prompt: string;
769
- };
770
+ } & LemurBaseParams;
770
771
  /**
771
772
  * @example
772
773
  * ```js
@@ -776,12 +777,12 @@ export type LemurTaskParams = LemurBaseParams & {
776
777
  * }
777
778
  * ```
778
779
  */
779
- export type LemurTaskResponse = LemurBaseResponse & {
780
+ export type LemurTaskResponse = {
780
781
  /**
781
782
  * The response generated by LeMUR.
782
783
  */
783
784
  response: string;
784
- };
785
+ } & LemurBaseResponse;
785
786
  /**
786
787
  * @example
787
788
  * ```js
@@ -823,6 +824,8 @@ export type ListTranscriptParams = {
823
824
  throttled_only?: boolean;
824
825
  };
825
826
  /**
827
+ * Details of the transcript page.
828
+ * Details of the transcript page. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
826
829
  * @example
827
830
  * ```js
828
831
  * {
@@ -835,10 +838,27 @@ export type ListTranscriptParams = {
835
838
  * ```
836
839
  */
837
840
  export type PageDetails = {
841
+ /**
842
+ * The URL used to retrieve the current page of transcripts
843
+ */
838
844
  current_url: string;
845
+ /**
846
+ * The number of results this page is limited to
847
+ */
839
848
  limit: number;
840
- next_url?: string | null;
841
- prev_url: string;
849
+ /**
850
+ * The URL to the next page of transcripts
851
+ * The URL to the next page of transcripts. The next URL always points to a page with newer transcripts.
852
+ */
853
+ next_url: string | null;
854
+ /**
855
+ * The URL to the previous page of transcripts
856
+ * The URL to the next page of transcripts. The previous URL always points to a page with older transcripts.
857
+ */
858
+ prev_url: string | null;
859
+ /**
860
+ * The actual number of results in the page
861
+ */
842
862
  result_count: number;
843
863
  };
844
864
  /**
@@ -959,7 +979,7 @@ export type PurgeLemurRequestDataResponse = {
959
979
  */
960
980
  export type RealtimeTemporaryTokenResponse = {
961
981
  /**
962
- * The temporary authentication token for real-time transcription
982
+ * The temporary authentication token for Streaming Speech-to-Text
963
983
  */
964
984
  token: string;
965
985
  };
@@ -987,7 +1007,7 @@ export type RedactedAudioResponse = {
987
1007
  */
988
1008
  export type RedactedAudioStatus = "redacted_audio_ready";
989
1009
  /**
990
- * Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
1010
+ * Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
991
1011
  * @defaultValue "mp3"
992
1012
  * @example "mp3"
993
1013
  */
@@ -1127,7 +1147,7 @@ export type SentimentAnalysisResult = {
1127
1147
  */
1128
1148
  sentiment: Sentiment;
1129
1149
  /**
1130
- * The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
1150
+ * The speaker of the sentence if {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker Diarization } is enabled, else null
1131
1151
  */
1132
1152
  speaker?: string | null;
1133
1153
  /**
@@ -1157,11 +1177,11 @@ export type SeverityScoreSummary = {
1157
1177
  /**
1158
1178
  * The speech model to use for the transcription.
1159
1179
  */
1160
- export type SpeechModel = "nano";
1180
+ export type SpeechModel = "best" | "nano" | "conformer-2";
1161
1181
  /**
1162
- * The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
1182
+ * The replacement logic for detected PII, can be "entity_name" or "hash". See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
1163
1183
  */
1164
- export type SubstitutionPolicy = "entity_type" | "hash";
1184
+ export type SubstitutionPolicy = "entity_name" | "hash";
1165
1185
  /**
1166
1186
  * Format of the subtitles
1167
1187
  */
@@ -1198,7 +1218,7 @@ export type Timestamp = {
1198
1218
  };
1199
1219
  /**
1200
1220
  * The result of the Topic Detection model, if it is enabled.
1201
- * See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information.
1221
+ * See {@link https://www.assemblyai.com/docs/models/topic-detection | Topic Detection } for more information.
1202
1222
  *
1203
1223
  * @example
1204
1224
  * ```js
@@ -1609,7 +1629,7 @@ export type TopicDetectionResult = {
1609
1629
  * "punctuate": true,
1610
1630
  * "format_text": true,
1611
1631
  * "dual_channel": false,
1612
- * "webhook_url": "https://your-webhook-url/path",
1632
+ * "webhook_url": "https://your-webhook-url.tld/path",
1613
1633
  * "webhook_status_code": 200,
1614
1634
  * "webhook_auth": true,
1615
1635
  * "webhook_auth_header_name": "webhook-secret",
@@ -2081,7 +2101,7 @@ export type Transcript = {
2081
2101
  */
2082
2102
  audio_url: string;
2083
2103
  /**
2084
- * Whether [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters) is enabled, can be true or false
2104
+ * Whether {@link https://www.assemblyai.com/docs/models/auto-chapters | Auto Chapters } is enabled, can be true or false
2085
2105
  */
2086
2106
  auto_chapters?: boolean | null;
2087
2107
  /**
@@ -2090,7 +2110,7 @@ export type Transcript = {
2090
2110
  auto_highlights: boolean;
2091
2111
  /**
2092
2112
  * An array of results for the Key Phrases model, if it is enabled.
2093
- * See [Key phrases](https://www.assemblyai.com/docs/models/key-phrases) for more information.
2113
+ * See {@link https://www.assemblyai.com/docs/models/key-phrases | Key phrases } for more information.
2094
2114
  */
2095
2115
  auto_highlights_result?: AutoHighlightsResult | null;
2096
2116
  /**
@@ -2106,12 +2126,12 @@ export type Transcript = {
2106
2126
  */
2107
2127
  confidence?: number | null;
2108
2128
  /**
2109
- * Whether [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation) is enabled, can be true or false
2129
+ * Whether {@link https://www.assemblyai.com/docs/models/content-moderation | Content Moderation } is enabled, can be true or false
2110
2130
  */
2111
2131
  content_safety?: boolean | null;
2112
2132
  /**
2113
2133
  * An array of results for the Content Moderation model, if it is enabled.
2114
- * See [Content moderation](https://www.assemblyai.com/docs/models/content-moderation) for more information.
2134
+ * See {@link https://www.assemblyai.com/docs/models/content-moderation | Content moderation } for more information.
2115
2135
  */
2116
2136
  content_safety_labels?: ContentSafetyLabelsResult | null;
2117
2137
  /**
@@ -2127,16 +2147,16 @@ export type Transcript = {
2127
2147
  */
2128
2148
  disfluencies?: boolean | null;
2129
2149
  /**
2130
- * Whether [Dual channel transcription](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) was enabled in the transcription request, either true or false
2150
+ * Whether {@link https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription | Dual channel transcription } was enabled in the transcription request, either true or false
2131
2151
  */
2132
2152
  dual_channel?: boolean | null;
2133
2153
  /**
2134
2154
  * An array of results for the Entity Detection model, if it is enabled.
2135
- * See [Entity detection](https://www.assemblyai.com/docs/models/entity-detection) for more information.
2155
+ * See {@link https://www.assemblyai.com/docs/models/entity-detection | Entity detection } for more information.
2136
2156
  */
2137
2157
  entities?: Entity[] | null;
2138
2158
  /**
2139
- * Whether [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection) is enabled, can be true or false
2159
+ * Whether {@link https://www.assemblyai.com/docs/models/entity-detection | Entity Detection } is enabled, can be true or false
2140
2160
  */
2141
2161
  entity_detection?: boolean | null;
2142
2162
  /**
@@ -2144,7 +2164,7 @@ export type Transcript = {
2144
2164
  */
2145
2165
  error?: string;
2146
2166
  /**
2147
- * Whether [Profanity Filtering](https://www.assemblyai.com/docs/models/speech-recognition#profanity-filtering) is enabled, either true or false
2167
+ * Whether {@link https://www.assemblyai.com/docs/models/speech-recognition#profanity-filtering | Profanity Filtering } is enabled, either true or false
2148
2168
  */
2149
2169
  filter_profanity?: boolean | null;
2150
2170
  /**
@@ -2152,12 +2172,12 @@ export type Transcript = {
2152
2172
  */
2153
2173
  format_text?: boolean | null;
2154
2174
  /**
2155
- * Whether [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) is enabled, can be true or false
2175
+ * Whether {@link https://www.assemblyai.com/docs/models/topic-detection | Topic Detection } is enabled, can be true or false
2156
2176
  */
2157
2177
  iab_categories?: boolean | null;
2158
2178
  /**
2159
2179
  * The result of the Topic Detection model, if it is enabled.
2160
- * See [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection) for more information.
2180
+ * See {@link https://www.assemblyai.com/docs/models/topic-detection | Topic Detection } for more information.
2161
2181
  */
2162
2182
  iab_categories_result?: TopicDetectionModelResult | null;
2163
2183
  /**
@@ -2166,12 +2186,12 @@ export type Transcript = {
2166
2186
  id: string;
2167
2187
  /**
2168
2188
  * The language of your audio file.
2169
- * Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
2189
+ * Possible values are found in {@link https://www.assemblyai.com/docs/concepts/supported-languages | Supported Languages }.
2170
2190
  * The default value is 'en_us'.
2171
2191
  */
2172
- language_code?: TranscriptLanguageCode;
2192
+ language_code?: LiteralUnion<TranscriptLanguageCode, string>;
2173
2193
  /**
2174
- * Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) is enabled, either true or false
2194
+ * Whether {@link https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection | Automatic language detection } is enabled, either true or false
2175
2195
  */
2176
2196
  language_detection?: boolean | null;
2177
2197
  /**
@@ -2184,43 +2204,43 @@ export type Transcript = {
2184
2204
  */
2185
2205
  punctuate?: boolean | null;
2186
2206
  /**
2187
- * Whether [PII Redaction](https://www.assemblyai.com/docs/models/pii-redaction) is enabled, either true or false
2207
+ * Whether {@link https://www.assemblyai.com/docs/models/pii-redaction | PII Redaction } is enabled, either true or false
2188
2208
  */
2189
2209
  redact_pii: boolean;
2190
2210
  /**
2191
2211
  * Whether a redacted version of the audio file was generated,
2192
- * either true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information.
2212
+ * either true or false. See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more information.
2193
2213
  */
2194
2214
  redact_pii_audio?: boolean | null;
2195
2215
  /**
2196
2216
  * The audio quality of the PII-redacted audio file, if redact_pii_audio is enabled.
2197
- * See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information.
2217
+ * See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more information.
2198
2218
  */
2199
2219
  redact_pii_audio_quality?: RedactPiiAudioQuality | null;
2200
2220
  /**
2201
2221
  * The list of PII Redaction policies that were enabled, if PII Redaction is enabled.
2202
- * See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more information.
2222
+ * See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more information.
2203
2223
  */
2204
2224
  redact_pii_policies?: PiiPolicy[] | null;
2205
2225
  /**
2206
- * The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
2226
+ * The replacement logic for detected PII, can be "entity_type" or "hash". See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
2207
2227
  */
2208
2228
  redact_pii_sub?: SubstitutionPolicy;
2209
2229
  /**
2210
- * Whether [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) is enabled, can be true or false
2230
+ * Whether {@link https://www.assemblyai.com/docs/models/sentiment-analysis | Sentiment Analysis } is enabled, can be true or false
2211
2231
  */
2212
2232
  sentiment_analysis?: boolean | null;
2213
2233
  /**
2214
2234
  * An array of results for the Sentiment Analysis model, if it is enabled.
2215
- * See [Sentiment analysis](https://www.assemblyai.com/docs/models/sentiment-analysis) for more information.
2235
+ * See {@link https://www.assemblyai.com/docs/models/sentiment-analysis | Sentiment analysis } for more information.
2216
2236
  */
2217
2237
  sentiment_analysis_results?: SentimentAnalysisResult[] | null;
2218
2238
  /**
2219
- * Whether [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, can be true or false
2239
+ * Whether {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker diarization } is enabled, can be true or false
2220
2240
  */
2221
2241
  speaker_labels?: boolean | null;
2222
2242
  /**
2223
- * Tell the speaker label model how many speakers it should attempt to identify, up to 10. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details.
2243
+ * Tell the speaker label model how many speakers it should attempt to identify, up to 10. See {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker diarization } for more details.
2224
2244
  */
2225
2245
  speakers_expected?: number | null;
2226
2246
  /**
@@ -2243,20 +2263,20 @@ export type Transcript = {
2243
2263
  */
2244
2264
  status: TranscriptStatus;
2245
2265
  /**
2246
- * Whether [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled, either true or false
2266
+ * Whether {@link https://www.assemblyai.com/docs/models/summarization | Summarization } is enabled, either true or false
2247
2267
  */
2248
2268
  summarization: boolean;
2249
2269
  /**
2250
- * The generated summary of the media file, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled
2270
+ * The generated summary of the media file, if {@link https://www.assemblyai.com/docs/models/summarization | Summarization } is enabled
2251
2271
  */
2252
2272
  summary?: string | null;
2253
2273
  /**
2254
2274
  * The Summarization model used to generate the summary,
2255
- * if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled
2275
+ * if {@link https://www.assemblyai.com/docs/models/summarization | Summarization } is enabled
2256
2276
  */
2257
2277
  summary_model?: string | null;
2258
2278
  /**
2259
- * The type of summary generated, if [Summarization](https://www.assemblyai.com/docs/models/summarization) is enabled
2279
+ * The type of summary generated, if {@link https://www.assemblyai.com/docs/models/summarization | Summarization } is enabled
2260
2280
  */
2261
2281
  summary_type?: string | null;
2262
2282
  /**
@@ -2273,7 +2293,7 @@ export type Transcript = {
2273
2293
  topics?: string[];
2274
2294
  /**
2275
2295
  * When dual_channel or speaker_labels is enabled, a list of turn-by-turn utterance objects.
2276
- * See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more information.
2296
+ * See {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker diarization } for more information.
2277
2297
  */
2278
2298
  utterances?: TranscriptUtterance[] | null;
2279
2299
  /**
@@ -2298,7 +2318,7 @@ export type Transcript = {
2298
2318
  word_boost?: string[];
2299
2319
  /**
2300
2320
  * An array of temporally-sequential word objects, one for each word in the transcript.
2301
- * See [Speech recognition](https://www.assemblyai.com/docs/models/speech-recognition) for more information.
2321
+ * See {@link https://www.assemblyai.com/docs/models/speech-recognition | Speech recognition } for more information.
2302
2322
  */
2303
2323
  words?: TranscriptWord[] | null;
2304
2324
  };
@@ -2329,39 +2349,52 @@ export type TranscriptCustomSpelling = {
2329
2349
  to: string;
2330
2350
  };
2331
2351
  /**
2332
- * The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
2352
+ * The language of your audio file. Possible values are found in {@link https://www.assemblyai.com/docs/concepts/supported-languages | Supported Languages }.
2333
2353
  * The default value is 'en_us'.
2334
2354
  *
2335
2355
  * @defaultValue "en_us
2336
2356
  */
2337
2357
  export type TranscriptLanguageCode = "en" | "en_au" | "en_uk" | "en_us" | "es" | "fr" | "de" | "it" | "pt" | "nl" | "hi" | "ja" | "zh" | "fi" | "ko" | "pl" | "ru" | "tr" | "uk" | "vi";
2338
2358
  /**
2359
+ * A list of transcripts
2360
+ * A list of transcripts. Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.
2339
2361
  * @example
2340
2362
  * ```js
2341
2363
  * {
2342
2364
  * "page_details": {
2343
- * "limit": 2",
2344
- * "result_count": 2,
2345
- * "current_url": "https://api.assemblyai.com/v2/transcript?limit=2",
2346
- * "prev_url": "https://api.assemblyai.com/v2/transcript?limit=2&before_id=62npeahu2b-a8ea-4112-854c-69542c20d90c",
2347
- * "next_url": "https://api.assemblyai.com/v2/transcript?limit=2&after_id=62nfw3mlar-01ad-4631-92f6-629929496eed"
2365
+ * "limit": 3",
2366
+ * "result_count": 3,
2367
+ * "current_url": "https://api.assemblyai.com/v2/transcript?limit=3",
2368
+ * "prev_url": "https://api.assemblyai.com/v2/transcript?limit=3&before_id=28a73d01-98db-41dd-9e98-2533ba0af117",
2369
+ * "next_url": "https://api.assemblyai.com/v2/transcript?limit=3&after_id=b33f4691-85b7-4f31-be12-a87cef1c1229"
2348
2370
  * },
2349
2371
  * "transcripts": [
2350
2372
  * {
2351
- * "id": "9ea68fd3-f953-42c1-9742-976c447fb463",
2352
- * "resource_url": "https://api.assemblyai.com/v2/transcript/9ea68fd3-f953-42c1-9742-976c447fb463",
2373
+ * "id": "b33f4691-85b7-4f31-be12-a87cef1c1229",
2374
+ * "resource_url": "https://api.assemblyai.com/v2/transcript/b33f4691-85b7-4f31-be12-a87cef1c1229",
2353
2375
  * "status": "completed",
2354
- * "created": "2023-11-02T21:49:25.586965",
2355
- * "completed": "2023-11-02T21:49:25.586965",
2356
- * "audio_url": "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3"
2376
+ * "created": "2024-03-11T21:29:59.936851",
2377
+ * "completed": "2024-03-11T21:30:07.314223",
2378
+ * "audio_url": "http://deleted_by_user",
2379
+ * "error": null
2357
2380
  * },
2358
2381
  * {
2359
- * "id": "d5a3d302-066e-43fb-b63b-8f57baf185db",
2360
- * "resource_url": "https://api.assemblyai.com/v2/transcript/d5a3d302-066e-43fb-b63b-8f57baf185db",
2382
+ * "id": "ce522f10-d204-42e8-a838-6b95098145cc",
2383
+ * "resource_url": "https://api.assemblyai.com/v2/transcript/ce522f10-d204-42e8-a838-6b95098145cc",
2384
+ * "status": "error",
2385
+ * "created": "2024-03-11T21:23:59.979420",
2386
+ * "completed": null,
2387
+ * "audio_url": "https://storage.googleapis.com/client-docs-samples/nbc.mp3",
2388
+ * "error": "Download error, unable to download https://storage.googleapis.com/client-docs-samples/nbc.mp3. Please make sure the file exists and is accessible from the internet."
2389
+ * },
2390
+ * {
2391
+ * "id": "28a73d01-98db-41dd-9e98-2533ba0af117",
2392
+ * "resource_url": "https://api.assemblyai.com/v2/transcript/28a73d01-98db-41dd-9e98-2533ba0af117",
2361
2393
  * "status": "completed",
2362
- * "created": "2023-11-02T21:49:25.586965",
2363
- * "completed": "2023-11-02T21:49:25.586965",
2364
- * "audio_url": "http://deleted_by_user"
2394
+ * "created": "2024-03-11T21:12:57.372215",
2395
+ * "completed": "2024-03-11T21:13:03.267020",
2396
+ * "audio_url": "https://storage.googleapis.com/aai-docs-samples/nbc.mp3",
2397
+ * "error": null
2365
2398
  * }
2366
2399
  * ]
2367
2400
  * }
@@ -2380,7 +2413,8 @@ export type TranscriptList = {
2380
2413
  * "status": "completed",
2381
2414
  * "created": "2023-11-02T21:49:25.586965",
2382
2415
  * "completed": "2023-11-02T21:49:25.586965",
2383
- * "audio_url": "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3"
2416
+ * "audio_url": "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3",
2417
+ * "error": null
2384
2418
  * }
2385
2419
  * ```
2386
2420
  */
@@ -2388,6 +2422,10 @@ export type TranscriptListItem = {
2388
2422
  audio_url: string;
2389
2423
  completed: Date | null;
2390
2424
  created: Date;
2425
+ /**
2426
+ * Error message of why the transcript failed
2427
+ */
2428
+ error: string | null;
2391
2429
  id: string;
2392
2430
  resource_url: string;
2393
2431
  status: TranscriptStatus;
@@ -2402,7 +2440,7 @@ export type TranscriptListItem = {
2402
2440
  * "punctuate": true,
2403
2441
  * "format_text": true,
2404
2442
  * "dual_channel": true,
2405
- * "webhook_url": "https://your-webhook-url/path",
2443
+ * "webhook_url": "https://your-webhook-url.tld/path",
2406
2444
  * "webhook_auth_header_name": "webhook-secret",
2407
2445
  * "webhook_auth_header_value": "webhook-secret-value",
2408
2446
  * "auto_highlights": true,
@@ -2452,7 +2490,7 @@ export type TranscriptOptionalParams = {
2452
2490
  */
2453
2491
  audio_start_from?: number;
2454
2492
  /**
2455
- * Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false
2493
+ * Enable {@link https://www.assemblyai.com/docs/models/auto-chapters | Auto Chapters }, can be true or false
2456
2494
  */
2457
2495
  auto_chapters?: boolean;
2458
2496
  /**
@@ -2464,7 +2502,7 @@ export type TranscriptOptionalParams = {
2464
2502
  */
2465
2503
  boost_param?: TranscriptBoostParam;
2466
2504
  /**
2467
- * Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false
2505
+ * Enable {@link https://www.assemblyai.com/docs/models/content-moderation | Content Moderation }, can be true or false
2468
2506
  */
2469
2507
  content_safety?: boolean;
2470
2508
  /**
@@ -2484,11 +2522,11 @@ export type TranscriptOptionalParams = {
2484
2522
  */
2485
2523
  disfluencies?: boolean;
2486
2524
  /**
2487
- * Enable [Dual Channel](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) transcription, can be true or false.
2525
+ * Enable {@link https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription | Dual Channel } transcription, can be true or false.
2488
2526
  */
2489
2527
  dual_channel?: boolean;
2490
2528
  /**
2491
- * Enable [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection), can be true or false
2529
+ * Enable {@link https://www.assemblyai.com/docs/models/entity-detection | Entity Detection }, can be true or false
2492
2530
  */
2493
2531
  entity_detection?: boolean;
2494
2532
  /**
@@ -2500,16 +2538,16 @@ export type TranscriptOptionalParams = {
2500
2538
  */
2501
2539
  format_text?: boolean;
2502
2540
  /**
2503
- * Enable [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true or false
2541
+ * Enable {@link https://www.assemblyai.com/docs/models/topic-detection | Topic Detection }, can be true or false
2504
2542
  */
2505
2543
  iab_categories?: boolean;
2506
2544
  /**
2507
- * The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).
2545
+ * The language of your audio file. Possible values are found in {@link https://www.assemblyai.com/docs/concepts/supported-languages | Supported Languages }.
2508
2546
  * The default value is 'en_us'.
2509
2547
  */
2510
- language_code?: TranscriptLanguageCode | null;
2548
+ language_code?: LiteralUnion<TranscriptLanguageCode, string> | null;
2511
2549
  /**
2512
- * Whether [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection) was enabled in the transcription request, either true or false.
2550
+ * Whether {@link https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection | Automatic language detection } was enabled in the transcription request, either true or false.
2513
2551
  */
2514
2552
  language_detection?: boolean;
2515
2553
  /**
@@ -2521,32 +2559,32 @@ export type TranscriptOptionalParams = {
2521
2559
  */
2522
2560
  redact_pii?: boolean;
2523
2561
  /**
2524
- * Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
2562
+ * Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
2525
2563
  */
2526
2564
  redact_pii_audio?: boolean;
2527
2565
  /**
2528
- * Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
2566
+ * Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
2529
2567
  * @defaultValue "mp3"
2530
2568
  */
2531
2569
  redact_pii_audio_quality?: RedactPiiAudioQuality;
2532
2570
  /**
2533
- * The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
2571
+ * The list of PII Redaction policies to enable. See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
2534
2572
  */
2535
2573
  redact_pii_policies?: PiiPolicy[];
2536
2574
  /**
2537
- * The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.
2575
+ * The replacement logic for detected PII, can be "entity_type" or "hash". See {@link https://www.assemblyai.com/docs/models/pii-redaction | PII redaction } for more details.
2538
2576
  */
2539
2577
  redact_pii_sub?: SubstitutionPolicy | null;
2540
2578
  /**
2541
- * Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false
2579
+ * Enable {@link https://www.assemblyai.com/docs/models/sentiment-analysis | Sentiment Analysis }, can be true or false
2542
2580
  */
2543
2581
  sentiment_analysis?: boolean;
2544
2582
  /**
2545
- * Enable [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization), can be true or false
2583
+ * Enable {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker diarization }, can be true or false
2546
2584
  */
2547
2585
  speaker_labels?: boolean;
2548
2586
  /**
2549
- * Tells the speaker label model how many speakers it should attempt to identify, up to 10. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details.
2587
+ * Tells the speaker label model how many speakers it should attempt to identify, up to 10. See {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker diarization } for more details.
2550
2588
  * @defaultValue "null
2551
2589
  */
2552
2590
  speakers_expected?: number | null;
@@ -2563,7 +2601,7 @@ export type TranscriptOptionalParams = {
2563
2601
  */
2564
2602
  speech_threshold?: number | null;
2565
2603
  /**
2566
- * Enable [Summarization](https://www.assemblyai.com/docs/models/summarization), can be true or false
2604
+ * Enable {@link https://www.assemblyai.com/docs/models/summarization | Summarization }, can be true or false
2567
2605
  */
2568
2606
  summarization?: boolean;
2569
2607
  /**
@@ -2644,7 +2682,7 @@ export type TranscriptParagraph = {
2644
2682
  confidence: number;
2645
2683
  end: number;
2646
2684
  /**
2647
- * The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
2685
+ * The speaker of the sentence if {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker Diarization } is enabled, else null
2648
2686
  */
2649
2687
  speaker?: string | null;
2650
2688
  start: number;
@@ -2653,13 +2691,61 @@ export type TranscriptParagraph = {
2653
2691
  };
2654
2692
  /**
2655
2693
  * The parameters for creating a transcript
2694
+ * @example
2695
+ * ```js
2696
+ * {
2697
+ * "speech_model": null,
2698
+ * "language_code": "en_us",
2699
+ * "audio_url": "https://github.com/AssemblyAI-Examples/audio-examples/raw/main/20230607_me_canadian_wildfires.mp3",
2700
+ * "punctuate": true,
2701
+ * "format_text": true,
2702
+ * "dual_channel": true,
2703
+ * "webhook_url": "https://your-webhook-url/path",
2704
+ * "webhook_auth_header_name": "webhook-secret",
2705
+ * "webhook_auth_header_value": "webhook-secret-value",
2706
+ * "auto_highlights": true,
2707
+ * "audio_start_from": 10,
2708
+ * "audio_end_at": 280,
2709
+ * "word_boost": [
2710
+ * "aws",
2711
+ * "azure",
2712
+ * "google cloud"
2713
+ * ],
2714
+ * "boost_param": "high",
2715
+ * "filter_profanity": true,
2716
+ * "redact_pii": true,
2717
+ * "redact_pii_audio": true,
2718
+ * "redact_pii_audio_quality": "mp3",
2719
+ * "redact_pii_policies": [
2720
+ * "us_social_security_number",
2721
+ * "credit_card_number"
2722
+ * ],
2723
+ * "redact_pii_sub": "hash",
2724
+ * "speaker_labels": true,
2725
+ * "speakers_expected": 2,
2726
+ * "content_safety": true,
2727
+ * "iab_categories": true,
2728
+ * "language_detection": false,
2729
+ * "custom_spelling": [],
2730
+ * "disfluencies": false,
2731
+ * "sentiment_analysis": true,
2732
+ * "auto_chapters": true,
2733
+ * "entity_detection": true,
2734
+ * "speech_threshold": 0.5,
2735
+ * "summarization": true,
2736
+ * "summary_model": "informative",
2737
+ * "summary_type": "bullets",
2738
+ * "custom_topics": true,
2739
+ * "topics": []
2740
+ * }
2741
+ * ```
2656
2742
  */
2657
- export type TranscriptParams = TranscriptOptionalParams & {
2743
+ export type TranscriptParams = {
2658
2744
  /**
2659
2745
  * The URL of the audio or video file to transcribe.
2660
2746
  */
2661
2747
  audio_url: string;
2662
- };
2748
+ } & TranscriptOptionalParams;
2663
2749
  /**
2664
2750
  * The notification when the transcript status is completed or error.
2665
2751
  * @example
@@ -2730,7 +2816,7 @@ export type TranscriptSentence = {
2730
2816
  confidence: number;
2731
2817
  end: number;
2732
2818
  /**
2733
- * The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
2819
+ * The speaker of the sentence if {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker Diarization } is enabled, else null
2734
2820
  */
2735
2821
  speaker?: string | null;
2736
2822
  start: number;
@@ -2902,7 +2988,7 @@ export type TranscriptWord = {
2902
2988
  confidence: number;
2903
2989
  end: number;
2904
2990
  /**
2905
- * The speaker of the sentence if [Speaker Diarization](https://www.assemblyai.com/docs/models/speaker-diarization) is enabled, else null
2991
+ * The speaker of the sentence if {@link https://www.assemblyai.com/docs/models/speaker-diarization | Speaker Diarization } is enabled, else null
2906
2992
  */
2907
2993
  speaker?: string | null;
2908
2994
  start: number;