@aws-sdk/client-transcribe-streaming 3.998.0 → 3.1000.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.
@@ -141,6 +141,7 @@ const _SMSSRt = "StartMedicalScribeStreamResponse";
141
141
  const _SMST = "StartMedicalStreamTranscription";
142
142
  const _SMSTR = "StartMedicalStreamTranscriptionRequest";
143
143
  const _SMSTRt = "StartMedicalStreamTranscriptionResponse";
144
+ const _SRW = "SessionResumeWindow";
144
145
  const _SS = "StreamStatus";
145
146
  const _SSL = "ShowSpeakerLabel";
146
147
  const _SST = "StartStreamTranscription";
@@ -196,6 +197,7 @@ const _xatprs = "x-amzn-transcribe-partial-results-stability";
196
197
  const _xats = "x-amzn-transcribe-specialty";
197
198
  const _xatsi = "x-amzn-transcribe-session-id";
198
199
  const _xatsr = "x-amzn-transcribe-sample-rate";
200
+ const _xatsrw = "x-amzn-transcribe-session-resume-window";
199
201
  const _xatssl = "x-amzn-transcribe-show-speaker-label";
200
202
  const _xatt = "x-amzn-transcribe-type";
201
203
  const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
@@ -479,13 +481,13 @@ exports.StartMedicalStreamTranscriptionResponse$ = [3, n0, _SMSTRt,
479
481
  ];
480
482
  exports.StartStreamTranscriptionRequest$ = [3, n0, _SSTR,
481
483
  0,
482
- [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo],
483
- [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => exports.AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }]], 3
484
+ [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
485
+ [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => exports.AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]], 3
484
486
  ];
485
487
  exports.StartStreamTranscriptionResponse$ = [3, n0, _SSTRt,
486
488
  0,
487
- [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _TRS, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo],
488
- [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => exports.TranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }]]
489
+ [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _TRS, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
490
+ [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => exports.TranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]]
489
491
  ];
490
492
  exports.TimestampRange$ = [3, n0, _TRi,
491
493
  0,
@@ -137,6 +137,7 @@ const _SMSSRt = "StartMedicalScribeStreamResponse";
137
137
  const _SMST = "StartMedicalStreamTranscription";
138
138
  const _SMSTR = "StartMedicalStreamTranscriptionRequest";
139
139
  const _SMSTRt = "StartMedicalStreamTranscriptionResponse";
140
+ const _SRW = "SessionResumeWindow";
140
141
  const _SS = "StreamStatus";
141
142
  const _SSL = "ShowSpeakerLabel";
142
143
  const _SST = "StartStreamTranscription";
@@ -192,6 +193,7 @@ const _xatprs = "x-amzn-transcribe-partial-results-stability";
192
193
  const _xats = "x-amzn-transcribe-specialty";
193
194
  const _xatsi = "x-amzn-transcribe-session-id";
194
195
  const _xatsr = "x-amzn-transcribe-sample-rate";
196
+ const _xatsrw = "x-amzn-transcribe-session-resume-window";
195
197
  const _xatssl = "x-amzn-transcribe-show-speaker-label";
196
198
  const _xatt = "x-amzn-transcribe-type";
197
199
  const _xatvfm = "x-amzn-transcribe-vocabulary-filter-method";
@@ -475,13 +477,13 @@ export var StartMedicalStreamTranscriptionResponse$ = [3, n0, _SMSTRt,
475
477
  ];
476
478
  export var StartStreamTranscriptionRequest$ = [3, n0, _SSTR,
477
479
  0,
478
- [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo],
479
- [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }]], 3
480
+ [_MSRH, _MEe, _AS, _LC, _VN, _SI, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
481
+ [[1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [() => AudioStream$, 16], [0, { [_hH]: _xatlc }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]], 3
480
482
  ];
481
483
  export var StartStreamTranscriptionResponse$ = [3, n0, _SSTRt,
482
484
  0,
483
- [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _TRS, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo],
484
- [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => TranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }]]
485
+ [_RIe, _LC, _MSRH, _MEe, _VN, _SI, _TRS, _VFN, _VFMo, _SSL, _ECI, _NOC, _EPRS, _PRS, _CIT, _CRT, _PET, _LMN, _IL, _LO, _PL, _IML, _VNo, _VFNo, _SRW],
486
+ [[0, { [_hH]: _xari }], [0, { [_hH]: _xatlc }], [1, { [_hH]: _xatsr }], [0, { [_hH]: _xatme }], [0, { [_hH]: _xatvn }], [0, { [_hH]: _xatsi }], [() => TranscriptResultStream$, 16], [0, { [_hH]: _xatvfn }], [0, { [_hH]: _xatvfm }], [2, { [_hH]: _xatssl }], [2, { [_hH]: _xateci }], [1, { [_hH]: _xatnoc }], [2, { [_hH]: _xateprs }], [0, { [_hH]: _xatprs }], [0, { [_hH]: _xatcit }], [0, { [_hH]: _xatcrt }], [0, { [_hH]: _xatpet }], [0, { [_hH]: _xatlmn }], [2, { [_hH]: _xatil }], [0, { [_hH]: _xatlo }], [0, { [_hH]: _xatpl }], [2, { [_hH]: _xatiml }], [0, { [_hH]: _xatvn_ }], [0, { [_hH]: _xatvfn_ }], [1, { [_hH]: _xatsrw }]]
485
487
  ];
486
488
  export var TimestampRange$ = [3, n0, _TRi,
487
489
  0,
@@ -98,6 +98,7 @@ declare const StartStreamTranscriptionCommand_base: {
98
98
  * IdentifyMultipleLanguages: true || false,
99
99
  * VocabularyNames: "STRING_VALUE",
100
100
  * VocabularyFilterNames: "STRING_VALUE",
101
+ * SessionResumeWindow: Number("int"),
101
102
  * };
102
103
  * const command = new StartStreamTranscriptionCommand(input);
103
104
  * const response = await client.send(command);
@@ -189,6 +190,7 @@ declare const StartStreamTranscriptionCommand_base: {
189
190
  * // IdentifyMultipleLanguages: true || false,
190
191
  * // VocabularyNames: "STRING_VALUE",
191
192
  * // VocabularyFilterNames: "STRING_VALUE",
193
+ * // SessionResumeWindow: Number("int"),
192
194
  * // };
193
195
  *
194
196
  * ```
@@ -2698,7 +2698,9 @@ export interface StartStreamTranscriptionRequest {
2698
2698
  * <code>CREDIT_DEBIT_CVV</code>, <code>CREDIT_DEBIT_EXPIRY</code>,
2699
2699
  * <code>CREDIT_DEBIT_NUMBER</code>, <code>EMAIL</code>,
2700
2700
  * <code>NAME</code>, <code>PHONE</code>, <code>PIN</code>,
2701
- * <code>SSN</code>, or <code>ALL</code>.</p>
2701
+ * <code>SSN</code>, <code>AGE</code>, <code>DATE_TIME</code>,
2702
+ * <code>LICENSE_PLATE</code>, <code>PASSPORT_NUMBER</code>,
2703
+ * <code>PASSWORD</code>, <code>USERNAME</code>, <code>VEHICLE_IDENTIFICATION_NUMBER</code>, or <code>ALL</code>.</p>
2702
2704
  * <p>Note that if you include <code>PiiEntityTypes</code> in your request, you must also include
2703
2705
  * <code>ContentIdentificationType</code> or <code>ContentRedactionType</code>.</p>
2704
2706
  * <p>If you include <code>ContentRedactionType</code> or
@@ -2799,6 +2801,14 @@ export interface StartStreamTranscriptionRequest {
2799
2801
  * @public
2800
2802
  */
2801
2803
  VocabularyFilterNames?: string | undefined;
2804
+ /**
2805
+ * <p>Specify the time window, in minutes, during which your transcription session can be resumed,
2806
+ * measured from the stream start time. This optional parameter accepts integer values from 1 to 300 (5 hours).</p>
2807
+ * <p> For example, if your stream starts at 1 PM and you specify a <code>SessionResumeWindow</code> of 30 minutes,
2808
+ * you can reconnect to the session as many times as you want until 1:30 PM. </p>
2809
+ * @public
2810
+ */
2811
+ SessionResumeWindow?: number | undefined;
2802
2812
  }
2803
2813
  /**
2804
2814
  * <p>The <code>Transcript</code> associated with a
@@ -3083,4 +3093,9 @@ export interface StartStreamTranscriptionResponse {
3083
3093
  * @public
3084
3094
  */
3085
3095
  VocabularyFilterNames?: string | undefined;
3096
+ /**
3097
+ * <p>Provides the session resume window, in minutes, that you specified in your request.</p>
3098
+ * @public
3099
+ */
3100
+ SessionResumeWindow?: number | undefined;
3086
3101
  }
@@ -711,6 +711,7 @@ export interface StartStreamTranscriptionRequest {
711
711
  IdentifyMultipleLanguages?: boolean | undefined;
712
712
  VocabularyNames?: string | undefined;
713
713
  VocabularyFilterNames?: string | undefined;
714
+ SessionResumeWindow?: number | undefined;
714
715
  }
715
716
  export interface Transcript {
716
717
  Results?: Result[] | undefined;
@@ -825,4 +826,5 @@ export interface StartStreamTranscriptionResponse {
825
826
  IdentifyMultipleLanguages?: boolean | undefined;
826
827
  VocabularyNames?: string | undefined;
827
828
  VocabularyFilterNames?: string | undefined;
829
+ SessionResumeWindow?: number | undefined;
828
830
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-transcribe-streaming",
3
3
  "description": "AWS SDK for JavaScript Transcribe Streaming Client for Node.js, Browser and React Native",
4
- "version": "3.998.0",
4
+ "version": "3.1000.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-transcribe-streaming",
@@ -12,9 +12,13 @@
12
12
  "clean": "premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
14
  "generate:client": "node ../../scripts/generate-clients/single-service --solo transcribe-streaming",
15
+ "test": "yarn g:vitest run --passWithNoTests",
15
16
  "test:e2e": "yarn g:vitest run -c vitest.config.e2e.mts --mode development",
16
17
  "test:e2e:watch": "yarn g:vitest watch -c vitest.config.e2e.mts",
17
- "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
18
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs",
19
+ "test:integration": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
20
+ "test:integration:watch": "yarn g:vitest run --passWithNoTests -c vitest.config.integ.mts",
21
+ "test:watch": "yarn g:vitest watch --passWithNoTests"
18
22
  },
19
23
  "main": "./dist-cjs/index.js",
20
24
  "types": "./dist-types/index.d.ts",
@@ -23,21 +27,21 @@
23
27
  "dependencies": {
24
28
  "@aws-crypto/sha256-browser": "5.2.0",
25
29
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.14",
27
- "@aws-sdk/credential-provider-node": "^3.972.13",
28
- "@aws-sdk/eventstream-handler-node": "^3.972.8",
29
- "@aws-sdk/middleware-eventstream": "^3.972.5",
30
- "@aws-sdk/middleware-host-header": "^3.972.5",
31
- "@aws-sdk/middleware-logger": "^3.972.5",
32
- "@aws-sdk/middleware-recursion-detection": "^3.972.5",
33
- "@aws-sdk/middleware-sdk-transcribe-streaming": "^3.972.5",
34
- "@aws-sdk/middleware-user-agent": "^3.972.14",
35
- "@aws-sdk/middleware-websocket": "^3.972.9",
36
- "@aws-sdk/region-config-resolver": "^3.972.5",
37
- "@aws-sdk/types": "^3.973.3",
38
- "@aws-sdk/util-endpoints": "^3.996.2",
39
- "@aws-sdk/util-user-agent-browser": "^3.972.5",
40
- "@aws-sdk/util-user-agent-node": "^3.972.13",
30
+ "@aws-sdk/core": "^3.973.15",
31
+ "@aws-sdk/credential-provider-node": "^3.972.14",
32
+ "@aws-sdk/eventstream-handler-node": "^3.972.9",
33
+ "@aws-sdk/middleware-eventstream": "^3.972.6",
34
+ "@aws-sdk/middleware-host-header": "^3.972.6",
35
+ "@aws-sdk/middleware-logger": "^3.972.6",
36
+ "@aws-sdk/middleware-recursion-detection": "^3.972.6",
37
+ "@aws-sdk/middleware-sdk-transcribe-streaming": "^3.972.6",
38
+ "@aws-sdk/middleware-user-agent": "^3.972.15",
39
+ "@aws-sdk/middleware-websocket": "^3.972.10",
40
+ "@aws-sdk/region-config-resolver": "^3.972.6",
41
+ "@aws-sdk/types": "^3.973.4",
42
+ "@aws-sdk/util-endpoints": "^3.996.3",
43
+ "@aws-sdk/util-user-agent-browser": "^3.972.6",
44
+ "@aws-sdk/util-user-agent-node": "^3.973.0",
41
45
  "@smithy/config-resolver": "^4.4.9",
42
46
  "@smithy/core": "^3.23.6",
43
47
  "@smithy/eventstream-serde-browser": "^4.2.10",
@@ -69,12 +73,14 @@
69
73
  "tslib": "^2.6.2"
70
74
  },
71
75
  "devDependencies": {
76
+ "@smithy/snapshot-testing": "^1.0.7",
72
77
  "@tsconfig/node20": "20.1.8",
73
78
  "@types/node": "^20.14.8",
74
79
  "concurrently": "7.0.0",
75
80
  "downlevel-dts": "0.10.1",
76
81
  "premove": "4.0.0",
77
- "typescript": "~5.8.3"
82
+ "typescript": "~5.8.3",
83
+ "vitest": "^4.0.17"
78
84
  },
79
85
  "engines": {
80
86
  "node": ">=20.0.0"