@aws-sdk/client-iot-data-plane 3.943.0 → 3.947.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.
Files changed (36) hide show
  1. package/dist-cjs/index.js +37 -249
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/IoTDataPlaneClient.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +37 -249
  8. package/dist-types/IoTDataPlane.d.ts +1 -1
  9. package/dist-types/IoTDataPlaneClient.d.ts +10 -10
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  12. package/dist-types/commands/DeleteConnectionCommand.d.ts +3 -3
  13. package/dist-types/commands/DeleteThingShadowCommand.d.ts +3 -3
  14. package/dist-types/commands/GetRetainedMessageCommand.d.ts +3 -3
  15. package/dist-types/commands/GetThingShadowCommand.d.ts +3 -3
  16. package/dist-types/commands/ListNamedShadowsForThingCommand.d.ts +3 -3
  17. package/dist-types/commands/ListRetainedMessagesCommand.d.ts +3 -3
  18. package/dist-types/commands/PublishCommand.d.ts +2 -2
  19. package/dist-types/commands/UpdateThingShadowCommand.d.ts +2 -2
  20. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  21. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  22. package/dist-types/extensionConfiguration.d.ts +4 -4
  23. package/dist-types/models/IoTDataPlaneServiceException.d.ts +1 -1
  24. package/dist-types/models/errors.d.ts +1 -1
  25. package/dist-types/pagination/Interfaces.d.ts +1 -1
  26. package/dist-types/pagination/ListRetainedMessagesPaginator.d.ts +1 -1
  27. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  28. package/dist-types/runtimeConfig.d.ts +1 -1
  29. package/dist-types/runtimeConfig.native.d.ts +1 -1
  30. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  31. package/dist-types/runtimeExtensions.d.ts +1 -1
  32. package/dist-types/schemas/schemas_0.d.ts +1 -1
  33. package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +3 -3
  34. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  35. package/dist-types/ts3.4/models/IoTDataPlaneServiceException.d.ts +1 -1
  36. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -325,26 +325,8 @@ const _xamcd = "x-amz-mqtt5-correlation-data";
325
325
  const _xampfi = "x-amz-mqtt5-payload-format-indicator";
326
326
  const _xamup = "x-amz-mqtt5-user-properties";
327
327
  const n0 = "com.amazonaws.iotdataplane";
328
- var SynthesizedJsonUserProperties = [
329
- 0,
330
- n0,
331
- _SJUP,
332
- {
333
- [_mT]: _a,
334
- },
335
- 0,
336
- ];
337
- var ConflictException = [
338
- -3,
339
- n0,
340
- _CE,
341
- {
342
- [_e]: _c,
343
- [_hE]: 409,
344
- },
345
- [_m],
346
- [0],
347
- ];
328
+ var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
329
+ var ConflictException = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_m], [0]];
348
330
  schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
349
331
  var DeleteConnectionRequest = [
350
332
  3,
@@ -354,18 +336,8 @@ var DeleteConnectionRequest = [
354
336
  [_cI, _cS, _pWM],
355
337
  [
356
338
  [0, 1],
357
- [
358
- 2,
359
- {
360
- [_hQ]: _cS,
361
- },
362
- ],
363
- [
364
- 2,
365
- {
366
- [_hQ]: _pWM,
367
- },
368
- ],
339
+ [2, { [_hQ]: _cS }],
340
+ [2, { [_hQ]: _pWM }],
369
341
  ],
370
342
  ];
371
343
  var DeleteThingShadowRequest = [
@@ -376,26 +348,11 @@ var DeleteThingShadowRequest = [
376
348
  [_tN, _sN],
377
349
  [
378
350
  [0, 1],
379
- [
380
- 0,
381
- {
382
- [_hQ]: _n,
383
- },
384
- ],
351
+ [0, { [_hQ]: _n }],
385
352
  ],
386
353
  ];
387
354
  var DeleteThingShadowResponse = [3, n0, _DTSRe, 0, [_p], [[21, 16]]];
388
- var ForbiddenException = [
389
- -3,
390
- n0,
391
- _FE,
392
- {
393
- [_e]: _c,
394
- [_hE]: 403,
395
- },
396
- [_m],
397
- [0],
398
- ];
355
+ var ForbiddenException = [-3, n0, _FE, { [_e]: _c, [_hE]: 403 }, [_m], [0]];
399
356
  schema.TypeRegistry.for(n0).registerError(ForbiddenException, ForbiddenException$1);
400
357
  var GetRetainedMessageRequest = [3, n0, _GRMR, 0, [_t], [[0, 1]]];
401
358
  var GetRetainedMessageResponse = [
@@ -414,38 +371,13 @@ var GetThingShadowRequest = [
414
371
  [_tN, _sN],
415
372
  [
416
373
  [0, 1],
417
- [
418
- 0,
419
- {
420
- [_hQ]: _n,
421
- },
422
- ],
374
+ [0, { [_hQ]: _n }],
423
375
  ],
424
376
  ];
425
377
  var GetThingShadowResponse = [3, n0, _GTSRe, 0, [_p], [[21, 16]]];
426
- var InternalFailureException = [
427
- -3,
428
- n0,
429
- _IFE,
430
- {
431
- [_e]: _s,
432
- [_hE]: 500,
433
- },
434
- [_m],
435
- [0],
436
- ];
378
+ var InternalFailureException = [-3, n0, _IFE, { [_e]: _s, [_hE]: 500 }, [_m], [0]];
437
379
  schema.TypeRegistry.for(n0).registerError(InternalFailureException, InternalFailureException$1);
438
- var InvalidRequestException = [
439
- -3,
440
- n0,
441
- _IRE,
442
- {
443
- [_e]: _c,
444
- [_hE]: 400,
445
- },
446
- [_m],
447
- [0],
448
- ];
380
+ var InvalidRequestException = [-3, n0, _IRE, { [_e]: _c, [_hE]: 400 }, [_m], [0]];
449
381
  schema.TypeRegistry.for(n0).registerError(InvalidRequestException, InvalidRequestException$1);
450
382
  var ListNamedShadowsForThingRequest = [
451
383
  3,
@@ -455,18 +387,8 @@ var ListNamedShadowsForThingRequest = [
455
387
  [_tN, _nT, _pS],
456
388
  [
457
389
  [0, 1],
458
- [
459
- 0,
460
- {
461
- [_hQ]: _nT,
462
- },
463
- ],
464
- [
465
- 1,
466
- {
467
- [_hQ]: _pS,
468
- },
469
- ],
390
+ [0, { [_hQ]: _nT }],
391
+ [1, { [_hQ]: _pS }],
470
392
  ],
471
393
  ];
472
394
  var ListNamedShadowsForThingResponse = [
@@ -484,18 +406,8 @@ var ListRetainedMessagesRequest = [
484
406
  0,
485
407
  [_nT, _mR],
486
408
  [
487
- [
488
- 0,
489
- {
490
- [_hQ]: _nT,
491
- },
492
- ],
493
- [
494
- 1,
495
- {
496
- [_hQ]: _mR,
497
- },
498
- ],
409
+ [0, { [_hQ]: _nT }],
410
+ [1, { [_hQ]: _mR }],
499
411
  ],
500
412
  ];
501
413
  var ListRetainedMessagesResponse = [
@@ -506,17 +418,7 @@ var ListRetainedMessagesResponse = [
506
418
  [_rT, _nT],
507
419
  [() => RetainedMessageList, 0],
508
420
  ];
509
- var MethodNotAllowedException = [
510
- -3,
511
- n0,
512
- _MNAE,
513
- {
514
- [_e]: _c,
515
- [_hE]: 405,
516
- },
517
- [_m],
518
- [0],
519
- ];
421
+ var MethodNotAllowedException = [-3, n0, _MNAE, { [_e]: _c, [_hE]: 405 }, [_m], [0]];
520
422
  schema.TypeRegistry.for(n0).registerError(MethodNotAllowedException, MethodNotAllowedException$1);
521
423
  var PublishRequest = [
522
424
  3,
@@ -526,126 +428,33 @@ var PublishRequest = [
526
428
  [_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
527
429
  [
528
430
  [0, 1],
529
- [
530
- 1,
531
- {
532
- [_hQ]: _q,
533
- },
534
- ],
535
- [
536
- 2,
537
- {
538
- [_hQ]: _re,
539
- },
540
- ],
431
+ [1, { [_hQ]: _q }],
432
+ [2, { [_hQ]: _re }],
541
433
  [21, 16],
542
- [
543
- () => SynthesizedJsonUserProperties,
544
- {
545
- [_hH]: _xamup,
546
- },
547
- ],
548
- [
549
- 0,
550
- {
551
- [_hH]: _xampfi,
552
- },
553
- ],
554
- [
555
- 0,
556
- {
557
- [_hQ]: _cT,
558
- },
559
- ],
560
- [
561
- 0,
562
- {
563
- [_hQ]: _rTe,
564
- },
565
- ],
566
- [
567
- 0,
568
- {
569
- [_hH]: _xamcd,
570
- },
571
- ],
572
- [
573
- 1,
574
- {
575
- [_hQ]: _mE,
576
- },
577
- ],
434
+ [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }],
435
+ [0, { [_hH]: _xampfi }],
436
+ [0, { [_hQ]: _cT }],
437
+ [0, { [_hQ]: _rTe }],
438
+ [0, { [_hH]: _xamcd }],
439
+ [1, { [_hQ]: _mE }],
578
440
  ],
579
441
  ];
580
- var RequestEntityTooLargeException = [
581
- -3,
582
- n0,
583
- _RETLE,
584
- {
585
- [_e]: _c,
586
- [_hE]: 413,
587
- },
588
- [_m],
589
- [0],
590
- ];
442
+ var RequestEntityTooLargeException = [-3, n0, _RETLE, { [_e]: _c, [_hE]: 413 }, [_m], [0]];
591
443
  schema.TypeRegistry.for(n0).registerError(RequestEntityTooLargeException, RequestEntityTooLargeException$1);
592
- var ResourceNotFoundException = [
593
- -3,
594
- n0,
595
- _RNFE,
596
- {
597
- [_e]: _c,
598
- [_hE]: 404,
599
- },
600
- [_m],
601
- [0],
602
- ];
444
+ var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_m], [0]];
603
445
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
604
446
  var RetainedMessageSummary = [3, n0, _RMS, 0, [_t, _pSa, _q, _lMT], [0, 1, 1, 1]];
605
- var ServiceUnavailableException = [
606
- -3,
607
- n0,
608
- _SUE,
609
- {
610
- [_e]: _s,
611
- [_hE]: 503,
612
- },
613
- [_m],
614
- [0],
615
- ];
447
+ var ServiceUnavailableException = [-3, n0, _SUE, { [_e]: _s, [_hE]: 503 }, [_m], [0]];
616
448
  schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
617
- var ThrottlingException = [
618
- -3,
619
- n0,
620
- _TE,
621
- {
622
- [_e]: _c,
623
- [_hE]: 429,
624
- },
625
- [_m],
626
- [0],
627
- ];
449
+ var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_m], [0]];
628
450
  schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
629
- var UnauthorizedException = [
630
- -3,
631
- n0,
632
- _UE,
633
- {
634
- [_e]: _c,
635
- [_hE]: 401,
636
- },
637
- [_m],
638
- [0],
639
- ];
451
+ var UnauthorizedException = [-3, n0, _UE, { [_e]: _c, [_hE]: 401 }, [_m], [0]];
640
452
  schema.TypeRegistry.for(n0).registerError(UnauthorizedException, UnauthorizedException$1);
641
453
  var UnsupportedDocumentEncodingException = [
642
454
  -3,
643
455
  n0,
644
456
  _UDEE,
645
- {
646
- [_e]: _c,
647
- [_hE]: 415,
648
- },
457
+ { [_e]: _c, [_hE]: 415 },
649
458
  [_m],
650
459
  [0],
651
460
  ];
@@ -658,12 +467,7 @@ var UpdateThingShadowRequest = [
658
467
  [_tN, _sN, _p],
659
468
  [
660
469
  [0, 1],
661
- [
662
- 0,
663
- {
664
- [_hQ]: _n,
665
- },
666
- ],
470
+ [0, { [_hQ]: _n }],
667
471
  [21, 16],
668
472
  ],
669
473
  ];
@@ -676,9 +480,7 @@ var DeleteConnection = [
676
480
  9,
677
481
  n0,
678
482
  _DC,
679
- {
680
- [_h]: ["DELETE", "/connections/{clientId}", 200],
681
- },
483
+ { [_h]: ["DELETE", "/connections/{clientId}", 200] },
682
484
  () => DeleteConnectionRequest,
683
485
  () => __Unit,
684
486
  ];
@@ -686,9 +488,7 @@ var DeleteThingShadow = [
686
488
  9,
687
489
  n0,
688
490
  _DTS,
689
- {
690
- [_h]: ["DELETE", "/things/{thingName}/shadow", 200],
691
- },
491
+ { [_h]: ["DELETE", "/things/{thingName}/shadow", 200] },
692
492
  () => DeleteThingShadowRequest,
693
493
  () => DeleteThingShadowResponse,
694
494
  ];
@@ -696,9 +496,7 @@ var GetRetainedMessage = [
696
496
  9,
697
497
  n0,
698
498
  _GRM,
699
- {
700
- [_h]: ["GET", "/retainedMessage/{topic}", 200],
701
- },
499
+ { [_h]: ["GET", "/retainedMessage/{topic}", 200] },
702
500
  () => GetRetainedMessageRequest,
703
501
  () => GetRetainedMessageResponse,
704
502
  ];
@@ -706,9 +504,7 @@ var GetThingShadow = [
706
504
  9,
707
505
  n0,
708
506
  _GTS,
709
- {
710
- [_h]: ["GET", "/things/{thingName}/shadow", 200],
711
- },
507
+ { [_h]: ["GET", "/things/{thingName}/shadow", 200] },
712
508
  () => GetThingShadowRequest,
713
509
  () => GetThingShadowResponse,
714
510
  ];
@@ -716,9 +512,7 @@ var ListNamedShadowsForThing = [
716
512
  9,
717
513
  n0,
718
514
  _LNSFT,
719
- {
720
- [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200],
721
- },
515
+ { [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] },
722
516
  () => ListNamedShadowsForThingRequest,
723
517
  () => ListNamedShadowsForThingResponse,
724
518
  ];
@@ -726,9 +520,7 @@ var ListRetainedMessages = [
726
520
  9,
727
521
  n0,
728
522
  _LRM,
729
- {
730
- [_h]: ["GET", "/retainedMessage", 200],
731
- },
523
+ { [_h]: ["GET", "/retainedMessage", 200] },
732
524
  () => ListRetainedMessagesRequest,
733
525
  () => ListRetainedMessagesResponse,
734
526
  ];
@@ -736,9 +528,7 @@ var Publish = [
736
528
  9,
737
529
  n0,
738
530
  _P,
739
- {
740
- [_h]: ["POST", "/topics/{topic}", 200],
741
- },
531
+ { [_h]: ["POST", "/topics/{topic}", 200] },
742
532
  () => PublishRequest,
743
533
  () => __Unit,
744
534
  ];
@@ -746,9 +536,7 @@ var UpdateThingShadow = [
746
536
  9,
747
537
  n0,
748
538
  _UTS,
749
- {
750
- [_h]: ["POST", "/things/{thingName}/shadow", 200],
751
- },
539
+ { [_h]: ["POST", "/things/{thingName}/shadow", 200] },
752
540
  () => UpdateThingShadowRequest,
753
541
  () => UpdateThingShadowResponse,
754
542
  ];
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
9
9
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
10
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const smithy_client_1 = require("@smithy/smithy-client");
11
12
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
12
14
  const util_retry_1 = require("@smithy/util-retry");
13
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
- const smithy_client_1 = require("@smithy/smithy-client");
15
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
16
  const getRuntimeConfig = (config) => {
17
17
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
18
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
11
11
  const middleware_retry_1 = require("@smithy/middleware-retry");
12
12
  const node_config_provider_1 = require("@smithy/node-config-provider");
13
13
  const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
14
15
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
16
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
15
17
  const util_retry_1 = require("@smithy/util-retry");
16
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
- const smithy_client_1 = require("@smithy/smithy-client");
18
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
- const smithy_client_2 = require("@smithy/smithy-client");
20
19
  const getRuntimeConfig = (config) => {
21
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
20
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
22
21
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
23
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
9
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
11
11
  import { Client as __Client, } from "@smithy/smithy-client";
12
12
  import { defaultIoTDataPlaneHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
13
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
5
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
6
  import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
10
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
12
  export const getRuntimeConfig = (config) => {
13
13
  const defaultsMode = resolveDefaultsModeConfig(config);
14
14
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
10
11
  import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
11
13
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
15
  export const getRuntimeConfig = (config) => {
17
16
  emitWarningIfUnsupportedVersion(process.version);
18
17
  const defaultsMode = resolveDefaultsModeConfig(config);