@aws-sdk/client-healthlake 3.1154.0 → 3.1155.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/index.js CHANGED
@@ -6,13 +6,14 @@ exports.$Command = $Command;
6
6
  exports.__Client = Client;
7
7
  const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
8
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
+ const { eventStreamSerdeProvider, resolveEventStreamSerdeConfig } = require("@smithy/core/event-streams");
9
10
  const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
11
  const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
12
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
12
13
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
13
14
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
14
15
  const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
15
- const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
16
+ const { streamCollector, NodeHttp2Handler } = require("@smithy/node-http-handler");
16
17
  const { AwsJson1_0Protocol } = require("@aws-sdk/core/protocols");
17
18
  const { Sha256 } = require("@smithy/core/checksum");
18
19
 
@@ -69,7 +70,7 @@ const commonParams = {
69
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
71
  };
71
72
 
72
- var version = "3.1153.0";
73
+ var version = "3.1154.0";
73
74
  var packageInfo = {
74
75
  version: version};
75
76
 
@@ -244,81 +245,6 @@ class ServiceQuotaExceededException extends HealthLakeServiceException {
244
245
  this.Message = opts.Message;
245
246
  }
246
247
  }
247
- class AgentMessageOutOfContextException extends HealthLakeServiceException {
248
- static shapeId = "com.amazonaws.healthlake#AgentMessageOutOfContextException";
249
- name = "AgentMessageOutOfContextException";
250
- $fault = "client";
251
- Message;
252
- constructor(opts) {
253
- super({
254
- name: "AgentMessageOutOfContextException",
255
- $fault: "client",
256
- ...opts,
257
- });
258
- Object.setPrototypeOf(this, AgentMessageOutOfContextException.prototype);
259
- this.Message = opts.Message;
260
- }
261
- }
262
- class ConversationNotFoundException extends HealthLakeServiceException {
263
- static shapeId = "com.amazonaws.healthlake#ConversationNotFoundException";
264
- name = "ConversationNotFoundException";
265
- $fault = "client";
266
- Message;
267
- constructor(opts) {
268
- super({
269
- name: "ConversationNotFoundException",
270
- $fault: "client",
271
- ...opts,
272
- });
273
- Object.setPrototypeOf(this, ConversationNotFoundException.prototype);
274
- this.Message = opts.Message;
275
- }
276
- }
277
- class NotImplementedOperationException extends HealthLakeServiceException {
278
- static shapeId = "com.amazonaws.healthlake#NotImplementedOperationException";
279
- name = "NotImplementedOperationException";
280
- $fault = "server";
281
- Message;
282
- constructor(opts) {
283
- super({
284
- name: "NotImplementedOperationException",
285
- $fault: "server",
286
- ...opts,
287
- });
288
- Object.setPrototypeOf(this, NotImplementedOperationException.prototype);
289
- this.Message = opts.Message;
290
- }
291
- }
292
- class UnauthorizedException extends HealthLakeServiceException {
293
- static shapeId = "com.amazonaws.healthlake#UnauthorizedException";
294
- name = "UnauthorizedException";
295
- $fault = "client";
296
- Message;
297
- constructor(opts) {
298
- super({
299
- name: "UnauthorizedException",
300
- $fault: "client",
301
- ...opts,
302
- });
303
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
304
- this.Message = opts.Message;
305
- }
306
- }
307
- class UnsupportedMIMETypeException extends HealthLakeServiceException {
308
- static shapeId = "com.amazonaws.healthlake#UnsupportedMIMETypeException";
309
- name = "UnsupportedMIMETypeException";
310
- $fault = "client";
311
- Message;
312
- constructor(opts) {
313
- super({
314
- name: "UnsupportedMIMETypeException",
315
- $fault: "client",
316
- ...opts,
317
- });
318
- Object.setPrototypeOf(this, UnsupportedMIMETypeException.prototype);
319
- this.Message = opts.Message;
320
- }
321
- }
322
248
  class FailedDependencyException extends HealthLakeServiceException {
323
249
  static shapeId = "com.amazonaws.healthlake#FailedDependencyException";
324
250
  name = "FailedDependencyException";
@@ -338,9 +264,8 @@ class FailedDependencyException extends HealthLakeServiceException {
338
264
  const _AC = "AnalyticsConfiguration";
339
265
  const _ADE = "AccessDeniedException";
340
266
  const _AIM = "AgentInputMessage";
341
- const _AMOOCE = "AgentMessageOutOfContextException";
342
267
  const _AMS = "AgentMessageString";
343
- const _AOM = "AgentOutputMessage";
268
+ const _AOMS = "AgentOutputMessageStream";
344
269
  const _AR = "AgentResponse";
345
270
  const _AS = "AuthorizationStrategy";
346
271
  const _B = "Body";
@@ -364,7 +289,6 @@ const _CFHIRD = "CreateFHIRDatastore";
364
289
  const _CFHIRDR = "CreateFHIRDatastoreRequest";
365
290
  const _CFHIRDRr = "CreateFHIRDatastoreResponse";
366
291
  const _CI = "ConversationId";
367
- const _CNFE = "ConversationNotFoundException";
368
292
  const _CT = "ClientToken";
369
293
  const _CTm = "CmkType";
370
294
  const _DA = "DatastoreArn";
@@ -406,11 +330,14 @@ const _DTPVS = "DataTransformationProfileVersionSummary";
406
330
  const _DTPVSL = "DataTransformationProfileVersionSummaryList";
407
331
  const _DTSC = "DataTransformationS3Configuration";
408
332
  const _DTV = "DatastoreTypeVersion";
333
+ const _E = "Error";
409
334
  const _EC = "ErrorCause";
410
335
  const _ECr = "ErrorCategory";
336
+ const _EE = "ErrorEvent";
411
337
  const _EJP = "ExportJobProperties";
412
338
  const _EJPL = "ExportJobPropertiesList";
413
339
  const _EM = "ErrorMessage";
340
+ const _EOOE = "EndOfOutputEvent";
414
341
  const _ERP = "EarliestRestorePoint";
415
342
  const _ET = "EndTime";
416
343
  const _EVPI = "ExistingVersionedProfileId";
@@ -419,9 +346,11 @@ const _F = "Filter";
419
346
  const _FDE = "FailedDependencyException";
420
347
  const _FEV = "FromExistingVersion";
421
348
  const _FGAE = "FineGrainedAuthorizationEnabled";
349
+ const _FRM = "FinalResponseMessage";
422
350
  const _GDTP = "GetDataTransformationProfile";
423
351
  const _GDTPR = "GetDataTransformationProfileRequest";
424
352
  const _GDTPRe = "GetDataTransformationProfileResponse";
353
+ const _HE = "HeartbeatEvent";
425
354
  const _I = "Items";
426
355
  const _IDC = "InputDataConfig";
427
356
  const _IF = "InputFormat";
@@ -466,10 +395,9 @@ const _M = "Message";
466
395
  const _MR = "MaxResults";
467
396
  const _Me = "Metadata";
468
397
  const _NC = "NlpConfiguration";
469
- const _NIOE = "NotImplementedOperationException";
470
398
  const _NT = "NextToken";
399
+ const _O = "Options";
471
400
  const _ODC = "OutputDataConfig";
472
- const _OL = "OptionsList";
473
401
  const _PC = "ProfileConfiguration";
474
402
  const _PD = "ProfileDescription";
475
403
  const _PDC = "PreloadDataConfig";
@@ -477,7 +405,8 @@ const _PDT = "PreloadDataType";
477
405
  const _PDTP = "PublishDataTransformationProfile";
478
406
  const _PDTPR = "PublishDataTransformationProfileRequest";
479
407
  const _PDTPRu = "PublishDataTransformationProfileResponse";
480
- const _PE = "ProvenanceEnabled";
408
+ const _PE = "ProgressEvent";
409
+ const _PEr = "ProvenanceEnabled";
481
410
  const _PI = "ProfileId";
482
411
  const _PM = "ProfileMapping";
483
412
  const _PMS = "ProfileMappingSource";
@@ -530,6 +459,7 @@ const _TJS = "TransformationJobSummary";
530
459
  const _TJSL = "TransformationJobSummaryList";
531
460
  const _TK = "TagKeys";
532
461
  const _TL = "TagList";
462
+ const _TME = "TextMessageEvent";
533
463
  const _TNOFRWCE = "TotalNumberOfFilesReadWithCustomerError";
534
464
  const _TNOIF = "TotalNumberOfImportedFiles";
535
465
  const _TNOINFF = "TotalNumberOfImportedNonFhirFiles";
@@ -555,11 +485,9 @@ const _Th = "Throughput";
555
485
  const _UDTP = "UpdateDataTransformationProfile";
556
486
  const _UDTPR = "UpdateDataTransformationProfileRequest";
557
487
  const _UDTPRp = "UpdateDataTransformationProfileResponse";
558
- const _UE = "UnauthorizedException";
559
488
  const _UFHIRD = "UpdateFHIRDatastore";
560
489
  const _UFHIRDR = "UpdateFHIRDatastoreRequest";
561
490
  const _UFHIRDRp = "UpdateFHIRDatastoreResponse";
562
- const _UMIMETE = "UnsupportedMIMETypeException";
563
491
  const _UPWA = "UpdateProfileWithAgent";
564
492
  const _UPWAR = "UpdateProfileWithAgentRequest";
565
493
  const _UPWARp = "UpdateProfileWithAgentResponse";
@@ -585,6 +513,7 @@ const _sA = "submittedAfter";
585
513
  const _sB = "submittedBefore";
586
514
  const _sF = "sourceFormat";
587
515
  const _se = "server";
516
+ const _st = "streaming";
588
517
  const _v = "version";
589
518
  const n0 = "com.amazonaws.healthlake";
590
519
  const _s_registry = new TypeRegistry(_s);
@@ -597,24 +526,12 @@ var AccessDeniedException$ = [-3, n0, _ADE,
597
526
  [0]
598
527
  ];
599
528
  n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
600
- var AgentMessageOutOfContextException$ = [-3, n0, _AMOOCE,
601
- { [_e]: _c },
602
- [_M],
603
- [0], 1
604
- ];
605
- n0_registry.registerError(AgentMessageOutOfContextException$, AgentMessageOutOfContextException);
606
529
  var ConflictException$ = [-3, n0, _CE,
607
530
  { [_e]: _c, [_hE]: 409 },
608
531
  [_M],
609
532
  [0]
610
533
  ];
611
534
  n0_registry.registerError(ConflictException$, ConflictException);
612
- var ConversationNotFoundException$ = [-3, n0, _CNFE,
613
- { [_e]: _c, [_hE]: 404 },
614
- [_M],
615
- [0], 1
616
- ];
617
- n0_registry.registerError(ConversationNotFoundException$, ConversationNotFoundException);
618
535
  var FailedDependencyException$ = [-3, n0, _FDE,
619
536
  { [_e]: _c, [_hE]: 424 },
620
537
  [_M],
@@ -627,12 +544,6 @@ var InternalServerException$ = [-3, n0, _ISE,
627
544
  [0]
628
545
  ];
629
546
  n0_registry.registerError(InternalServerException$, InternalServerException);
630
- var NotImplementedOperationException$ = [-3, n0, _NIOE,
631
- { [_e]: _se, [_hE]: 501 },
632
- [_M],
633
- [0], 1
634
- ];
635
- n0_registry.registerError(NotImplementedOperationException$, NotImplementedOperationException);
636
547
  var ResourceNotFoundException$ = [-3, n0, _RNFE,
637
548
  { [_e]: _c, [_hE]: 404 },
638
549
  [_M],
@@ -651,18 +562,6 @@ var ThrottlingException$ = [-3, n0, _TE,
651
562
  [0]
652
563
  ];
653
564
  n0_registry.registerError(ThrottlingException$, ThrottlingException);
654
- var UnauthorizedException$ = [-3, n0, _UE,
655
- { [_e]: _c, [_hE]: 401 },
656
- [_M],
657
- [0], 1
658
- ];
659
- n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
660
- var UnsupportedMIMETypeException$ = [-3, n0, _UMIMETE,
661
- { [_e]: _c, [_hE]: 415 },
662
- [_M],
663
- [0], 1
664
- ];
665
- n0_registry.registerError(UnsupportedMIMETypeException$, UnsupportedMIMETypeException);
666
565
  var ValidationException$ = [-3, n0, _VE,
667
566
  { [_e]: _c, [_hE]: 400 },
668
567
  [_M],
@@ -680,11 +579,6 @@ var AgentInputMessage$ = [3, n0, _AIM,
680
579
  [_B, _T],
681
580
  [[() => AgentMessageString, 0], 0], 2
682
581
  ];
683
- var AgentOutputMessage$ = [3, n0, _AOM,
684
- 0,
685
- [_B, _T, _OL],
686
- [[() => AgentMessageString, 0], 0, [() => DataTransformationChatOptionsList, 0]], 2
687
- ];
688
582
  var AnalyticsConfiguration$ = [3, n0, _AC,
689
583
  0,
690
584
  [_S],
@@ -810,11 +704,21 @@ var DescribeFHIRImportJobResponse$ = [3, n0, _DFHIRIJRe,
810
704
  [_IJP],
811
705
  [() => ImportJobProperties$], 1
812
706
  ];
707
+ var EndOfOutputEvent$ = [3, n0, _EOOE,
708
+ 0,
709
+ [_FRM, _O, _CI],
710
+ [[() => AgentMessageString, 0], [() => DataTransformationChatOptionsList, 0], 0], 1
711
+ ];
813
712
  var ErrorCause$ = [3, n0, _EC,
814
713
  0,
815
714
  [_EM, _ECr],
816
715
  [0, 0]
817
716
  ];
717
+ var ErrorEvent$ = [3, n0, _EE,
718
+ 0,
719
+ [_E, _M],
720
+ [0, [() => AgentMessageString, 0]], 2
721
+ ];
818
722
  var ExistingVersionedProfileSource$ = [3, n0, _EVPS,
819
723
  0,
820
724
  [_PI, _V],
@@ -835,6 +739,11 @@ var GetDataTransformationProfileResponse$ = [3, n0, _GDTPRe,
835
739
  [_PI, _V, _SF, _TF, _PM, _LUA, _PN, _PD, _CD],
836
740
  [0, 1, 0, 0, [() => ProfileMapping, 0], 4, 0, 0, 0], 6
837
741
  ];
742
+ var HeartbeatEvent$ = [3, n0, _HE,
743
+ 0,
744
+ [],
745
+ []
746
+ ];
838
747
  var IdentityProviderConfiguration$ = [3, n0, _IPC,
839
748
  0,
840
749
  [_AS, _FGAE, _Me, _ILA],
@@ -945,6 +854,11 @@ var ProfileMappingSource$ = [3, n0, _PMS,
945
854
  [_PM],
946
855
  [128 | 0], 1
947
856
  ];
857
+ var ProgressEvent$ = [3, n0, _PE,
858
+ 0,
859
+ [_M],
860
+ [[() => AgentMessageString, 0]], 1
861
+ ];
948
862
  var PublishDataTransformationProfileRequest$ = [3, n0, _PDTPR,
949
863
  0,
950
864
  [_PI, _SF, _FEV, _CD],
@@ -982,7 +896,7 @@ var SseConfiguration$ = [3, n0, _SC,
982
896
  ];
983
897
  var StartDataTransformationJobRequest$ = [3, n0, _SDTJR,
984
898
  0,
985
- [_IDC, _ODC, _DARA, _CT, _PI, _JN, _DDE, _PE],
899
+ [_IDC, _ODC, _DARA, _CT, _PI, _JN, _DDE, _PEr],
986
900
  [() => TransformationInputDataConfig$, () => TransformationOutputDataConfig$, 0, 0, 0, 0, 2, 2], 5
987
901
  ];
988
902
  var StartDataTransformationJobResponse$ = [3, n0, _SDTJRt,
@@ -1007,7 +921,7 @@ var StartFHIRExportJobResponse$ = [3, n0, _SFHIREJRt,
1007
921
  ];
1008
922
  var StartFHIRImportJobRequest$ = [3, n0, _SFHIRIJR,
1009
923
  0,
1010
- [_IDC, _JODC, _DI, _DARA, _JN, _CT, _VL, _PI, _IF, _DDE, _PE],
924
+ [_IDC, _JODC, _DI, _DARA, _JN, _CT, _VL, _PI, _IF, _DDE, _PEr],
1011
925
  [() => InputDataConfig$, () => OutputDataConfig$, 0, 0, 0, [0, 4], 0, 0, 0, 2, 2], 4
1012
926
  ];
1013
927
  var StartFHIRImportJobResponse$ = [3, n0, _SFHIRIJRt,
@@ -1030,6 +944,11 @@ var TagResourceResponse$ = [3, n0, _TRRa,
1030
944
  [],
1031
945
  []
1032
946
  ];
947
+ var TextMessageEvent$ = [3, n0, _TME,
948
+ 0,
949
+ [_M],
950
+ [[() => AgentMessageString, 0]], 1
951
+ ];
1033
952
  var TransformationInputDataConfig$ = [3, n0, _TIDC,
1034
953
  0,
1035
954
  [_SU, _SF],
@@ -1042,7 +961,7 @@ var TransformationJobProgressReport$ = [3, n0, _TJPR,
1042
961
  ];
1043
962
  var TransformationJobProperties$ = [3, n0, _TJP,
1044
963
  0,
1045
- [_JI, _JS, _IDC, _ODC, _DARA, _ST, _JN, _PI, _PN, _PV, _ET, _DDE, _PE, _M, _JPR],
964
+ [_JI, _JS, _IDC, _ODC, _DARA, _ST, _JN, _PI, _PN, _PV, _ET, _DDE, _PEr, _M, _JPR],
1046
965
  [0, 0, () => TransformationInputDataConfig$, () => TransformationOutputDataConfig$, 0, 4, 0, 0, 0, 1, 4, 2, 2, 0, () => TransformationJobProgressReport$], 6
1047
966
  ];
1048
967
  var TransformationJobSummary$ = [3, n0, _TJS,
@@ -1087,13 +1006,13 @@ var UpdateFHIRDatastoreResponse$ = [3, n0, _UFHIRDRp,
1087
1006
  ];
1088
1007
  var UpdateProfileWithAgentRequest$ = [3, n0, _UPWAR,
1089
1008
  0,
1090
- [_PI, _SF, _IM, _CI],
1091
- [0, 0, [() => AgentInputMessage$, 0], 0], 3
1009
+ [_PI, _IM, _CI],
1010
+ [0, [() => AgentInputMessage$, 0], 0], 2
1092
1011
  ];
1093
1012
  var UpdateProfileWithAgentResponse$ = [3, n0, _UPWARp,
1094
1013
  0,
1095
- [_AR, _CI],
1096
- [[() => AgentOutputMessage$, 0], 0], 2
1014
+ [_AR],
1015
+ [[() => AgentOutputMessageStream$, 16]], 1
1097
1016
  ];
1098
1017
  var DatastorePropertiesList = [1, n0, _DPL,
1099
1018
  0, () => DatastoreProperties$
@@ -1123,6 +1042,11 @@ var TransformationJobSummaryList = [1, n0, _TJSL,
1123
1042
  var ProfileMapping = [2, n0, _PM,
1124
1043
  8, 0, 0
1125
1044
  ];
1045
+ var AgentOutputMessageStream$ = [4, n0, _AOMS,
1046
+ { [_st]: 1 },
1047
+ [_TME, _PE, _HE, _EE, _EOOE],
1048
+ [[() => TextMessageEvent$, 0], [() => ProgressEvent$, 0], () => HeartbeatEvent$, [() => ErrorEvent$, 0], [() => EndOfOutputEvent$, 0]]
1049
+ ];
1126
1050
  var CreateDataTransformationProfileSource$ = [4, n0, _CDTPS,
1127
1051
  0,
1128
1052
  [_SP, _EVPI, _PM, _SD],
@@ -1273,9 +1197,13 @@ const getRuntimeConfig = (config) => {
1273
1197
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
1274
1198
  credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
1275
1199
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
1200
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
1276
1201
  maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
1277
1202
  region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
1278
- requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
1203
+ requestHandler: NodeHttp2Handler.create(config?.requestHandler ?? (async () => ({
1204
+ ...await defaultConfigProvider(),
1205
+ disableConcurrentStreams: true
1206
+ }))),
1279
1207
  retryMode: config?.retryMode ??
1280
1208
  loadConfig({
1281
1209
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
@@ -1345,9 +1273,10 @@ class HealthLakeClient extends Client {
1345
1273
  const _config_4 = resolveRegionConfig(_config_3);
1346
1274
  const _config_5 = resolveHostHeaderConfig(_config_4);
1347
1275
  const _config_6 = resolveEndpointConfig(_config_5);
1348
- const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
1349
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
1350
- this.config = _config_8;
1276
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
1277
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
1278
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
1279
+ this.config = _config_9;
1351
1280
  this.middlewareStack.use(getSchemaSerdePlugin(this.config));
1352
1281
  this.middlewareStack.use(getUserAgentPlugin(this.config));
1353
1282
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -1771,14 +1700,12 @@ const AgentInputMessageType = {
1771
1700
  NORMAL: "normal",
1772
1701
  USER_CONFIRMATION_RESPONSE: "confirmation_response",
1773
1702
  };
1774
- const AgentOutputMessageType = {
1775
- CHOICES: "choices",
1776
- COMPLETE: "complete",
1777
- ERROR: "error",
1778
- INITIAL_GREETING: "INITIAL_GREETING",
1779
- NORMAL: "normal",
1780
- OPTIONS: "options",
1781
- USER_CONFIRMATION_REQUEST: "confirmation",
1703
+ const AgentErrorType = {
1704
+ AccessDeniedException: "AccessDeniedException",
1705
+ InternalServerException: "InternalServerException",
1706
+ ResourceNotFoundException: "ResourceNotFoundException",
1707
+ ThrottlingException: "ThrottlingException",
1708
+ ValidationException: "ValidationException",
1782
1709
  };
1783
1710
  const AnalyticsStatus = {
1784
1711
  DISABLED: "DISABLED",
@@ -1849,12 +1776,10 @@ const ValidationLevel = {
1849
1776
 
1850
1777
  exports.AccessDeniedException = AccessDeniedException;
1851
1778
  exports.AccessDeniedException$ = AccessDeniedException$;
1779
+ exports.AgentErrorType = AgentErrorType;
1852
1780
  exports.AgentInputMessage$ = AgentInputMessage$;
1853
1781
  exports.AgentInputMessageType = AgentInputMessageType;
1854
- exports.AgentMessageOutOfContextException = AgentMessageOutOfContextException;
1855
- exports.AgentMessageOutOfContextException$ = AgentMessageOutOfContextException$;
1856
- exports.AgentOutputMessage$ = AgentOutputMessage$;
1857
- exports.AgentOutputMessageType = AgentOutputMessageType;
1782
+ exports.AgentOutputMessageStream$ = AgentOutputMessageStream$;
1858
1783
  exports.AnalyticsConfiguration$ = AnalyticsConfiguration$;
1859
1784
  exports.AnalyticsStatus = AnalyticsStatus;
1860
1785
  exports.AuthorizationStrategy = AuthorizationStrategy;
@@ -1865,8 +1790,6 @@ exports.CmkType = CmkType;
1865
1790
  exports.ConflictException = ConflictException;
1866
1791
  exports.ConflictException$ = ConflictException$;
1867
1792
  exports.ContinuousBackupRestoreConfiguration$ = ContinuousBackupRestoreConfiguration$;
1868
- exports.ConversationNotFoundException = ConversationNotFoundException;
1869
- exports.ConversationNotFoundException$ = ConversationNotFoundException$;
1870
1793
  exports.CreateDataTransformationProfile$ = CreateDataTransformationProfile$;
1871
1794
  exports.CreateDataTransformationProfileCommand = CreateDataTransformationProfileCommand;
1872
1795
  exports.CreateDataTransformationProfileRequest$ = CreateDataTransformationProfileRequest$;
@@ -1907,8 +1830,10 @@ exports.DescribeFHIRImportJob$ = DescribeFHIRImportJob$;
1907
1830
  exports.DescribeFHIRImportJobCommand = DescribeFHIRImportJobCommand;
1908
1831
  exports.DescribeFHIRImportJobRequest$ = DescribeFHIRImportJobRequest$;
1909
1832
  exports.DescribeFHIRImportJobResponse$ = DescribeFHIRImportJobResponse$;
1833
+ exports.EndOfOutputEvent$ = EndOfOutputEvent$;
1910
1834
  exports.ErrorCategory = ErrorCategory;
1911
1835
  exports.ErrorCause$ = ErrorCause$;
1836
+ exports.ErrorEvent$ = ErrorEvent$;
1912
1837
  exports.ExistingVersionedProfileSource$ = ExistingVersionedProfileSource$;
1913
1838
  exports.ExportJobProperties$ = ExportJobProperties$;
1914
1839
  exports.FHIRVersion = FHIRVersion;
@@ -1922,6 +1847,7 @@ exports.HealthLake = HealthLake;
1922
1847
  exports.HealthLakeClient = HealthLakeClient;
1923
1848
  exports.HealthLakeServiceException = HealthLakeServiceException;
1924
1849
  exports.HealthLakeServiceException$ = HealthLakeServiceException$;
1850
+ exports.HeartbeatEvent$ = HeartbeatEvent$;
1925
1851
  exports.IdentityProviderConfiguration$ = IdentityProviderConfiguration$;
1926
1852
  exports.ImportJobProperties$ = ImportJobProperties$;
1927
1853
  exports.InputDataConfig$ = InputDataConfig$;
@@ -1960,13 +1886,12 @@ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1960
1886
  exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
1961
1887
  exports.NlpConfiguration$ = NlpConfiguration$;
1962
1888
  exports.NlpStatus = NlpStatus;
1963
- exports.NotImplementedOperationException = NotImplementedOperationException;
1964
- exports.NotImplementedOperationException$ = NotImplementedOperationException$;
1965
1889
  exports.OutputDataConfig$ = OutputDataConfig$;
1966
1890
  exports.PreloadDataConfig$ = PreloadDataConfig$;
1967
1891
  exports.PreloadDataType = PreloadDataType;
1968
1892
  exports.ProfileConfiguration$ = ProfileConfiguration$;
1969
1893
  exports.ProfileMappingSource$ = ProfileMappingSource$;
1894
+ exports.ProgressEvent$ = ProgressEvent$;
1970
1895
  exports.PublishDataTransformationProfile$ = PublishDataTransformationProfile$;
1971
1896
  exports.PublishDataTransformationProfileCommand = PublishDataTransformationProfileCommand;
1972
1897
  exports.PublishDataTransformationProfileRequest$ = PublishDataTransformationProfileRequest$;
@@ -2003,6 +1928,7 @@ exports.TagResourceCommand = TagResourceCommand;
2003
1928
  exports.TagResourceRequest$ = TagResourceRequest$;
2004
1929
  exports.TagResourceResponse$ = TagResourceResponse$;
2005
1930
  exports.TargetFormat = TargetFormat;
1931
+ exports.TextMessageEvent$ = TextMessageEvent$;
2006
1932
  exports.ThrottlingException = ThrottlingException;
2007
1933
  exports.ThrottlingException$ = ThrottlingException$;
2008
1934
  exports.TransformationInputDataConfig$ = TransformationInputDataConfig$;
@@ -2011,10 +1937,6 @@ exports.TransformationJobProperties$ = TransformationJobProperties$;
2011
1937
  exports.TransformationJobStatus = TransformationJobStatus;
2012
1938
  exports.TransformationJobSummary$ = TransformationJobSummary$;
2013
1939
  exports.TransformationOutputDataConfig$ = TransformationOutputDataConfig$;
2014
- exports.UnauthorizedException = UnauthorizedException;
2015
- exports.UnauthorizedException$ = UnauthorizedException$;
2016
- exports.UnsupportedMIMETypeException = UnsupportedMIMETypeException;
2017
- exports.UnsupportedMIMETypeException$ = UnsupportedMIMETypeException$;
2018
1940
  exports.UntagResource$ = UntagResource$;
2019
1941
  exports.UntagResourceCommand = UntagResourceCommand;
2020
1942
  exports.UntagResourceRequest$ = UntagResourceRequest$;
@@ -3,6 +3,7 @@ import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin,
3
3
  import { Client as __Client, } from "@smithy/core/client";
4
4
  import { resolveRegionConfig } from "@smithy/core/config";
5
5
  import { resolveEndpointConfig } from "@smithy/core/endpoints";
6
+ import { resolveEventStreamSerdeConfig, } from "@smithy/core/event-streams";
6
7
  import { getContentLengthPlugin } from "@smithy/core/protocols";
7
8
  import { getRetryPlugin, resolveRetryConfig, } from "@smithy/core/retry";
8
9
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
@@ -23,9 +24,10 @@ export class HealthLakeClient extends __Client {
23
24
  const _config_4 = resolveRegionConfig(_config_3);
24
25
  const _config_5 = resolveHostHeaderConfig(_config_4);
25
26
  const _config_6 = resolveEndpointConfig(_config_5);
26
- const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
27
- const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
28
- this.config = _config_8;
27
+ const _config_7 = resolveEventStreamSerdeConfig(_config_6);
28
+ const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
29
+ const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
30
+ this.config = _config_9;
29
31
  this.middlewareStack.use(getSchemaSerdePlugin(this.config));
30
32
  this.middlewareStack.use(getUserAgentPlugin(this.config));
31
33
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -17,14 +17,12 @@ export const AgentInputMessageType = {
17
17
  NORMAL: "normal",
18
18
  USER_CONFIRMATION_RESPONSE: "confirmation_response",
19
19
  };
20
- export const AgentOutputMessageType = {
21
- CHOICES: "choices",
22
- COMPLETE: "complete",
23
- ERROR: "error",
24
- INITIAL_GREETING: "INITIAL_GREETING",
25
- NORMAL: "normal",
26
- OPTIONS: "options",
27
- USER_CONFIRMATION_REQUEST: "confirmation",
20
+ export const AgentErrorType = {
21
+ AccessDeniedException: "AccessDeniedException",
22
+ InternalServerException: "InternalServerException",
23
+ ResourceNotFoundException: "ResourceNotFoundException",
24
+ ThrottlingException: "ThrottlingException",
25
+ ValidationException: "ValidationException",
28
26
  };
29
27
  export const AnalyticsStatus = {
30
28
  DISABLED: "DISABLED",
@@ -104,81 +104,6 @@ export class ServiceQuotaExceededException extends __BaseException {
104
104
  this.Message = opts.Message;
105
105
  }
106
106
  }
107
- export class AgentMessageOutOfContextException extends __BaseException {
108
- static shapeId = "com.amazonaws.healthlake#AgentMessageOutOfContextException";
109
- name = "AgentMessageOutOfContextException";
110
- $fault = "client";
111
- Message;
112
- constructor(opts) {
113
- super({
114
- name: "AgentMessageOutOfContextException",
115
- $fault: "client",
116
- ...opts,
117
- });
118
- Object.setPrototypeOf(this, AgentMessageOutOfContextException.prototype);
119
- this.Message = opts.Message;
120
- }
121
- }
122
- export class ConversationNotFoundException extends __BaseException {
123
- static shapeId = "com.amazonaws.healthlake#ConversationNotFoundException";
124
- name = "ConversationNotFoundException";
125
- $fault = "client";
126
- Message;
127
- constructor(opts) {
128
- super({
129
- name: "ConversationNotFoundException",
130
- $fault: "client",
131
- ...opts,
132
- });
133
- Object.setPrototypeOf(this, ConversationNotFoundException.prototype);
134
- this.Message = opts.Message;
135
- }
136
- }
137
- export class NotImplementedOperationException extends __BaseException {
138
- static shapeId = "com.amazonaws.healthlake#NotImplementedOperationException";
139
- name = "NotImplementedOperationException";
140
- $fault = "server";
141
- Message;
142
- constructor(opts) {
143
- super({
144
- name: "NotImplementedOperationException",
145
- $fault: "server",
146
- ...opts,
147
- });
148
- Object.setPrototypeOf(this, NotImplementedOperationException.prototype);
149
- this.Message = opts.Message;
150
- }
151
- }
152
- export class UnauthorizedException extends __BaseException {
153
- static shapeId = "com.amazonaws.healthlake#UnauthorizedException";
154
- name = "UnauthorizedException";
155
- $fault = "client";
156
- Message;
157
- constructor(opts) {
158
- super({
159
- name: "UnauthorizedException",
160
- $fault: "client",
161
- ...opts,
162
- });
163
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
164
- this.Message = opts.Message;
165
- }
166
- }
167
- export class UnsupportedMIMETypeException extends __BaseException {
168
- static shapeId = "com.amazonaws.healthlake#UnsupportedMIMETypeException";
169
- name = "UnsupportedMIMETypeException";
170
- $fault = "client";
171
- Message;
172
- constructor(opts) {
173
- super({
174
- name: "UnsupportedMIMETypeException",
175
- $fault: "client",
176
- ...opts,
177
- });
178
- Object.setPrototypeOf(this, UnsupportedMIMETypeException.prototype);
179
- this.Message = opts.Message;
180
- }
181
- }
182
107
  export class FailedDependencyException extends __BaseException {
183
108
  static shapeId = "com.amazonaws.healthlake#FailedDependencyException";
184
109
  name = "FailedDependencyException";
@@ -2,6 +2,7 @@ import packageInfo from "../package.json";
2
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
3
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
5
+ import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
5
6
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
6
7
  import { calculateBodyLength } from "@smithy/core/serde";
7
8
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
@@ -18,6 +19,7 @@ export const getRuntimeConfig = (config) => {
18
19
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
19
20
  credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
20
21
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
22
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
21
23
  maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
22
24
  region: config?.region ?? invalidProvider("Region is missing"),
23
25
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
@@ -4,9 +4,10 @@ import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchem
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
+ import { eventStreamSerdeProvider } from "@smithy/core/event-streams";
7
8
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
9
  import { calculateBodyLength } from "@smithy/core/serde";
9
- import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { NodeHttp2Handler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
12
  export const getRuntimeConfig = (config) => {
12
13
  emitWarningIfUnsupportedVersion(process.version);
@@ -27,9 +28,13 @@ export const getRuntimeConfig = (config) => {
27
28
  bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
28
29
  credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
29
30
  defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
+ eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
30
32
  maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
31
33
  region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
32
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
34
+ requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({
35
+ ...await defaultConfigProvider(),
36
+ disableConcurrentStreams: true
37
+ }))),
33
38
  retryMode: config?.retryMode ??
34
39
  loadNodeConfig({
35
40
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,