@aws-sdk/client-transcribe 3.370.0 → 3.374.0
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/models/models_0.js +4 -1
- package/dist-cjs/protocols/Aws_json1_1.js +2 -0
- package/dist-es/models/models_0.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +2 -0
- package/dist-types/commands/GetTranscriptionJobCommand.d.ts +7 -0
- package/dist-types/commands/ListTranscriptionJobsCommand.d.ts +7 -0
- package/dist-types/commands/StartTranscriptionJobCommand.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +43 -0
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OutputLocationType = exports.SubtitleFormat = exports.Type = exports.TranscriptionJobStatus = exports.Specialty = exports.MedicalContentIdentificationType = exports.NotFoundException = exports.VocabularyState = exports.ModelStatus = exports.LimitExceededException = exports.InternalFailureException = exports.ConflictException = exports.CLMLanguageCode = exports.Rule = exports.TranscriptFilterType = exports.SentimentValue = exports.InputType = exports.VocabularyFilterMethod = exports.RedactionType = exports.RedactionOutput = exports.PiiEntityType = exports.MediaFormat = exports.LanguageCode = exports.ParticipantRole = exports.CallAnalyticsJobStatus = exports.BaseModelName = exports.BadRequestException = void 0;
|
|
3
|
+
exports.OutputLocationType = exports.ToxicityCategory = exports.SubtitleFormat = exports.Type = exports.TranscriptionJobStatus = exports.Specialty = exports.MedicalContentIdentificationType = exports.NotFoundException = exports.VocabularyState = exports.ModelStatus = exports.LimitExceededException = exports.InternalFailureException = exports.ConflictException = exports.CLMLanguageCode = exports.Rule = exports.TranscriptFilterType = exports.SentimentValue = exports.InputType = exports.VocabularyFilterMethod = exports.RedactionType = exports.RedactionOutput = exports.PiiEntityType = exports.MediaFormat = exports.LanguageCode = exports.ParticipantRole = exports.CallAnalyticsJobStatus = exports.BaseModelName = exports.BadRequestException = void 0;
|
|
4
4
|
const TranscribeServiceException_1 = require("./TranscribeServiceException");
|
|
5
5
|
class BadRequestException extends TranscribeServiceException_1.TranscribeServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -228,6 +228,9 @@ exports.SubtitleFormat = {
|
|
|
228
228
|
SRT: "srt",
|
|
229
229
|
VTT: "vtt",
|
|
230
230
|
};
|
|
231
|
+
exports.ToxicityCategory = {
|
|
232
|
+
ALL: "ALL",
|
|
233
|
+
};
|
|
231
234
|
exports.OutputLocationType = {
|
|
232
235
|
CUSTOMER_BUCKET: "CUSTOMER_BUCKET",
|
|
233
236
|
SERVICE_BUCKET: "SERVICE_BUCKET",
|
|
@@ -2229,6 +2229,7 @@ const de_TranscriptionJob = (output, context) => {
|
|
|
2229
2229
|
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2230
2230
|
Subtitles: smithy_client_1._json,
|
|
2231
2231
|
Tags: smithy_client_1._json,
|
|
2232
|
+
ToxicityDetection: smithy_client_1._json,
|
|
2232
2233
|
Transcript: smithy_client_1._json,
|
|
2233
2234
|
TranscriptionJobName: smithy_client_1.expectString,
|
|
2234
2235
|
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
@@ -2256,6 +2257,7 @@ const de_TranscriptionJobSummary = (output, context) => {
|
|
|
2256
2257
|
ModelSettings: smithy_client_1._json,
|
|
2257
2258
|
OutputLocationType: smithy_client_1.expectString,
|
|
2258
2259
|
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2260
|
+
ToxicityDetection: smithy_client_1._json,
|
|
2259
2261
|
TranscriptionJobName: smithy_client_1.expectString,
|
|
2260
2262
|
TranscriptionJobStatus: smithy_client_1.expectString,
|
|
2261
2263
|
});
|
|
@@ -2147,6 +2147,7 @@ const de_TranscriptionJob = (output, context) => {
|
|
|
2147
2147
|
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2148
2148
|
Subtitles: _json,
|
|
2149
2149
|
Tags: _json,
|
|
2150
|
+
ToxicityDetection: _json,
|
|
2150
2151
|
Transcript: _json,
|
|
2151
2152
|
TranscriptionJobName: __expectString,
|
|
2152
2153
|
TranscriptionJobStatus: __expectString,
|
|
@@ -2174,6 +2175,7 @@ const de_TranscriptionJobSummary = (output, context) => {
|
|
|
2174
2175
|
ModelSettings: _json,
|
|
2175
2176
|
OutputLocationType: __expectString,
|
|
2176
2177
|
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2178
|
+
ToxicityDetection: _json,
|
|
2177
2179
|
TranscriptionJobName: __expectString,
|
|
2178
2180
|
TranscriptionJobStatus: __expectString,
|
|
2179
2181
|
});
|
|
@@ -121,6 +121,13 @@ export interface GetTranscriptionJobCommandOutput extends GetTranscriptionJobRes
|
|
|
121
121
|
* // LanguageModelName: "STRING_VALUE",
|
|
122
122
|
* // },
|
|
123
123
|
* // },
|
|
124
|
+
* // ToxicityDetection: [ // ToxicityDetection
|
|
125
|
+
* // { // ToxicityDetectionSettings
|
|
126
|
+
* // ToxicityCategories: [ // ToxicityCategories // required
|
|
127
|
+
* // "ALL",
|
|
128
|
+
* // ],
|
|
129
|
+
* // },
|
|
130
|
+
* // ],
|
|
124
131
|
* // },
|
|
125
132
|
* // };
|
|
126
133
|
*
|
|
@@ -72,6 +72,13 @@ export interface ListTranscriptionJobsCommandOutput extends ListTranscriptionJob
|
|
|
72
72
|
* // DurationInSeconds: Number("float"),
|
|
73
73
|
* // },
|
|
74
74
|
* // ],
|
|
75
|
+
* // ToxicityDetection: [ // ToxicityDetection
|
|
76
|
+
* // { // ToxicityDetectionSettings
|
|
77
|
+
* // ToxicityCategories: [ // ToxicityCategories // required
|
|
78
|
+
* // "ALL",
|
|
79
|
+
* // ],
|
|
80
|
+
* // },
|
|
81
|
+
* // ],
|
|
75
82
|
* // },
|
|
76
83
|
* // ],
|
|
77
84
|
* // };
|
|
@@ -127,6 +127,13 @@ export interface StartTranscriptionJobCommandOutput extends StartTranscriptionJo
|
|
|
127
127
|
* LanguageModelName: "STRING_VALUE",
|
|
128
128
|
* },
|
|
129
129
|
* },
|
|
130
|
+
* ToxicityDetection: [ // ToxicityDetection
|
|
131
|
+
* { // ToxicityDetectionSettings
|
|
132
|
+
* ToxicityCategories: [ // ToxicityCategories // required
|
|
133
|
+
* "ALL",
|
|
134
|
+
* ],
|
|
135
|
+
* },
|
|
136
|
+
* ],
|
|
130
137
|
* };
|
|
131
138
|
* const command = new StartTranscriptionJobCommand(input);
|
|
132
139
|
* const response = await client.send(command);
|
|
@@ -207,6 +214,13 @@ export interface StartTranscriptionJobCommandOutput extends StartTranscriptionJo
|
|
|
207
214
|
* // LanguageModelName: "STRING_VALUE",
|
|
208
215
|
* // },
|
|
209
216
|
* // },
|
|
217
|
+
* // ToxicityDetection: [ // ToxicityDetection
|
|
218
|
+
* // { // ToxicityDetectionSettings
|
|
219
|
+
* // ToxicityCategories: [ // ToxicityCategories // required
|
|
220
|
+
* // "ALL",
|
|
221
|
+
* // ],
|
|
222
|
+
* // },
|
|
223
|
+
* // ],
|
|
210
224
|
* // },
|
|
211
225
|
* // };
|
|
212
226
|
*
|
|
@@ -2468,6 +2468,31 @@ export interface SubtitlesOutput {
|
|
|
2468
2468
|
*/
|
|
2469
2469
|
OutputStartIndex?: number;
|
|
2470
2470
|
}
|
|
2471
|
+
/**
|
|
2472
|
+
* @public
|
|
2473
|
+
* @enum
|
|
2474
|
+
*/
|
|
2475
|
+
export declare const ToxicityCategory: {
|
|
2476
|
+
readonly ALL: "ALL";
|
|
2477
|
+
};
|
|
2478
|
+
/**
|
|
2479
|
+
* @public
|
|
2480
|
+
*/
|
|
2481
|
+
export type ToxicityCategory = (typeof ToxicityCategory)[keyof typeof ToxicityCategory];
|
|
2482
|
+
/**
|
|
2483
|
+
* @public
|
|
2484
|
+
* <p>Contains <code>ToxicityCategories</code>, which is a required parameter if you
|
|
2485
|
+
* want to enable toxicity detection (<code>ToxicityDetection</code>) in your transcription
|
|
2486
|
+
* request.</p>
|
|
2487
|
+
*/
|
|
2488
|
+
export interface ToxicityDetectionSettings {
|
|
2489
|
+
/**
|
|
2490
|
+
* <p> If you include <code>ToxicityDetection</code> in your transcription request, you
|
|
2491
|
+
* must also include <code>ToxicityCategories</code>. The only accepted value for this
|
|
2492
|
+
* parameter is <code>ALL</code>.</p>
|
|
2493
|
+
*/
|
|
2494
|
+
ToxicityCategories: (ToxicityCategory | string)[] | undefined;
|
|
2495
|
+
}
|
|
2471
2496
|
/**
|
|
2472
2497
|
* @public
|
|
2473
2498
|
* <p>Provides detailed information about a transcription job.</p>
|
|
@@ -2653,6 +2678,10 @@ export interface TranscriptionJob {
|
|
|
2653
2678
|
* custom vocabulary filters that you included in your request.</p>
|
|
2654
2679
|
*/
|
|
2655
2680
|
LanguageIdSettings?: Record<string, LanguageIdSettings>;
|
|
2681
|
+
/**
|
|
2682
|
+
* <p>Provides information about the toxicity detection settings applied to your transcription.</p>
|
|
2683
|
+
*/
|
|
2684
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
2656
2685
|
}
|
|
2657
2686
|
/**
|
|
2658
2687
|
* @public
|
|
@@ -3271,6 +3300,11 @@ export interface TranscriptionJobSummary {
|
|
|
3271
3300
|
* of this parameter, <code>LanguageCode</code>, is present.</p>
|
|
3272
3301
|
*/
|
|
3273
3302
|
LanguageCodes?: LanguageCodeItem[];
|
|
3303
|
+
/**
|
|
3304
|
+
* <p>Indicates whether toxicity detection was enabled for the specified transcription
|
|
3305
|
+
* job.</p>
|
|
3306
|
+
*/
|
|
3307
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
3274
3308
|
}
|
|
3275
3309
|
/**
|
|
3276
3310
|
* @public
|
|
@@ -4040,6 +4074,15 @@ export interface StartTranscriptionJobRequest {
|
|
|
4040
4074
|
* sub-parameter.</p>
|
|
4041
4075
|
*/
|
|
4042
4076
|
LanguageIdSettings?: Record<string, LanguageIdSettings>;
|
|
4077
|
+
/**
|
|
4078
|
+
* <p>Enables toxic speech detection in your transcript. If you include
|
|
4079
|
+
* <code>ToxicityDetection</code> in your request, you must also include
|
|
4080
|
+
* <code>ToxicityCategories</code>.</p>
|
|
4081
|
+
* <p>For information on the types of toxic speech Amazon Transcribe can detect, see
|
|
4082
|
+
* <a href="https://docs.aws.amazon.com/transcribe/latest/dg/toxic-language.html">Detecting toxic
|
|
4083
|
+
* speech</a>.</p>
|
|
4084
|
+
*/
|
|
4085
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
4043
4086
|
}
|
|
4044
4087
|
/**
|
|
4045
4088
|
* @public
|
|
@@ -566,6 +566,14 @@ export interface SubtitlesOutput {
|
|
|
566
566
|
SubtitleFileUris?: string[];
|
|
567
567
|
OutputStartIndex?: number;
|
|
568
568
|
}
|
|
569
|
+
export declare const ToxicityCategory: {
|
|
570
|
+
readonly ALL: "ALL";
|
|
571
|
+
};
|
|
572
|
+
export type ToxicityCategory =
|
|
573
|
+
(typeof ToxicityCategory)[keyof typeof ToxicityCategory];
|
|
574
|
+
export interface ToxicityDetectionSettings {
|
|
575
|
+
ToxicityCategories: (ToxicityCategory | string)[] | undefined;
|
|
576
|
+
}
|
|
569
577
|
export interface TranscriptionJob {
|
|
570
578
|
TranscriptionJobName?: string;
|
|
571
579
|
TranscriptionJobStatus?: TranscriptionJobStatus | string;
|
|
@@ -590,6 +598,7 @@ export interface TranscriptionJob {
|
|
|
590
598
|
Tags?: Tag[];
|
|
591
599
|
Subtitles?: SubtitlesOutput;
|
|
592
600
|
LanguageIdSettings?: Record<string, LanguageIdSettings>;
|
|
601
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
593
602
|
}
|
|
594
603
|
export interface GetTranscriptionJobResponse {
|
|
595
604
|
TranscriptionJob?: TranscriptionJob;
|
|
@@ -718,6 +727,7 @@ export interface TranscriptionJobSummary {
|
|
|
718
727
|
IdentifyMultipleLanguages?: boolean;
|
|
719
728
|
IdentifiedLanguageScore?: number;
|
|
720
729
|
LanguageCodes?: LanguageCodeItem[];
|
|
730
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
721
731
|
}
|
|
722
732
|
export interface ListTranscriptionJobsResponse {
|
|
723
733
|
Status?: TranscriptionJobStatus | string;
|
|
@@ -804,6 +814,7 @@ export interface StartTranscriptionJobRequest {
|
|
|
804
814
|
Subtitles?: Subtitles;
|
|
805
815
|
Tags?: Tag[];
|
|
806
816
|
LanguageIdSettings?: Record<string, LanguageIdSettings>;
|
|
817
|
+
ToxicityDetection?: ToxicityDetectionSettings[];
|
|
807
818
|
}
|
|
808
819
|
export interface StartTranscriptionJobResponse {
|
|
809
820
|
TranscriptionJob?: TranscriptionJob;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-transcribe",
|
|
3
3
|
"description": "AWS SDK for JavaScript Transcribe Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.374.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|