@aws-sdk/client-elementalinference 3.1076.0 → 3.1078.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 (68) hide show
  1. package/dist-cjs/index.js +27 -165
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/AssociateFeedCommand.js +2 -14
  4. package/dist-es/commands/CreateDictionaryCommand.js +2 -14
  5. package/dist-es/commands/CreateFeedCommand.js +2 -14
  6. package/dist-es/commands/DeleteDictionaryCommand.js +2 -14
  7. package/dist-es/commands/DeleteFeedCommand.js +2 -14
  8. package/dist-es/commands/DisassociateFeedCommand.js +2 -14
  9. package/dist-es/commands/ExportDictionaryEntriesCommand.js +2 -14
  10. package/dist-es/commands/GetDictionaryCommand.js +2 -14
  11. package/dist-es/commands/GetFeedCommand.js +2 -14
  12. package/dist-es/commands/ListDictionariesCommand.js +2 -14
  13. package/dist-es/commands/ListFeedsCommand.js +2 -14
  14. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  15. package/dist-es/commands/TagResourceCommand.js +2 -14
  16. package/dist-es/commands/UntagResourceCommand.js +2 -14
  17. package/dist-es/commands/UpdateDictionaryCommand.js +2 -14
  18. package/dist-es/commands/UpdateFeedCommand.js +2 -14
  19. package/dist-es/index.js +1 -0
  20. package/dist-es/runtimeConfig.browser.js +0 -2
  21. package/dist-es/runtimeConfig.js +1 -2
  22. package/dist-es/runtimeConfig.native.js +0 -2
  23. package/dist-es/runtimeConfig.shared.js +2 -0
  24. package/dist-types/commandBuilder.d.ts +18 -0
  25. package/dist-types/commands/AssociateFeedCommand.d.ts +3 -8
  26. package/dist-types/commands/CreateDictionaryCommand.d.ts +3 -8
  27. package/dist-types/commands/CreateFeedCommand.d.ts +3 -8
  28. package/dist-types/commands/DeleteDictionaryCommand.d.ts +3 -8
  29. package/dist-types/commands/DeleteFeedCommand.d.ts +3 -8
  30. package/dist-types/commands/DisassociateFeedCommand.d.ts +3 -8
  31. package/dist-types/commands/ExportDictionaryEntriesCommand.d.ts +3 -8
  32. package/dist-types/commands/GetDictionaryCommand.d.ts +3 -8
  33. package/dist-types/commands/GetFeedCommand.d.ts +3 -8
  34. package/dist-types/commands/ListDictionariesCommand.d.ts +3 -8
  35. package/dist-types/commands/ListFeedsCommand.d.ts +3 -8
  36. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  37. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  38. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  39. package/dist-types/commands/UpdateDictionaryCommand.d.ts +3 -8
  40. package/dist-types/commands/UpdateFeedCommand.d.ts +3 -8
  41. package/dist-types/index.d.ts +1 -0
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  43. package/dist-types/runtimeConfig.d.ts +1 -1
  44. package/dist-types/runtimeConfig.native.d.ts +1 -1
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  47. package/dist-types/ts3.4/commands/AssociateFeedCommand.d.ts +7 -16
  48. package/dist-types/ts3.4/commands/CreateDictionaryCommand.d.ts +7 -16
  49. package/dist-types/ts3.4/commands/CreateFeedCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DeleteDictionaryCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/DeleteFeedCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DisassociateFeedCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/ExportDictionaryEntriesCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/GetDictionaryCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/GetFeedCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/ListDictionariesCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListFeedsCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/UpdateDictionaryCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/UpdateFeedCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/index.d.ts +1 -0
  64. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  65. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  66. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  67. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  68. package/package.json +8 -10
package/dist-cjs/index.js CHANGED
@@ -1,7 +1,8 @@
1
1
  const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
2
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, createWaiter, checkExceptions, WaiterState, createAggregatedClient } = require("@smithy/core/client");
4
+ const { Command: $Command } = require("@smithy/core/client");
5
+ exports.$Command = $Command;
5
6
  exports.__Client = Client;
6
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");
7
8
  const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
@@ -10,9 +11,10 @@ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CON
10
11
  const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
12
  const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
13
  const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
- const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
14
15
  const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
16
  const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
17
+ const { Sha256 } = require("@smithy/core/checksum");
16
18
 
17
19
  const defaultElementalInferenceHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
20
  return {
@@ -67,7 +69,7 @@ const commonParams = {
67
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
68
70
  };
69
71
 
70
- var version = "3.1075.0";
72
+ var version = "3.1077.0";
71
73
  var packageInfo = {
72
74
  version: version};
73
75
 
@@ -678,6 +680,7 @@ const getRuntimeConfig$1 = (config) => {
678
680
  serviceTarget: "ElementalInference",
679
681
  },
680
682
  serviceId: config?.serviceId ?? "ElementalInference",
683
+ sha256: config?.sha256 ?? Sha256,
681
684
  urlParser: config?.urlParser ?? parseUrl,
682
685
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
683
686
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -711,7 +714,6 @@ const getRuntimeConfig = (config) => {
711
714
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
712
715
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
713
716
  }, config),
714
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
715
717
  streamCollector: config?.streamCollector ?? streamCollector,
716
718
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
717
719
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -799,196 +801,56 @@ class ElementalInferenceClient extends Client {
799
801
  }
800
802
  }
801
803
 
802
- class AssociateFeedCommand extends Command
803
- .classBuilder()
804
- .ep(commonParams)
805
- .m(function (Command, cs, config, o) {
806
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
807
- })
808
- .s("ElementalInference", "AssociateFeed", {})
809
- .n("ElementalInferenceClient", "AssociateFeedCommand")
810
- .sc(AssociateFeed$)
811
- .build() {
804
+ const command = makeBuilder(commonParams, "ElementalInference", "ElementalInferenceClient", getEndpointPlugin);
805
+ const _ep0 = {};
806
+ const _mw0 = (Command, cs, config, o) => [];
807
+
808
+ class AssociateFeedCommand extends command(_ep0, _mw0, "AssociateFeed", AssociateFeed$) {
812
809
  }
813
810
 
814
- class CreateDictionaryCommand extends Command
815
- .classBuilder()
816
- .ep(commonParams)
817
- .m(function (Command, cs, config, o) {
818
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
819
- })
820
- .s("ElementalInference", "CreateDictionary", {})
821
- .n("ElementalInferenceClient", "CreateDictionaryCommand")
822
- .sc(CreateDictionary$)
823
- .build() {
811
+ class CreateDictionaryCommand extends command(_ep0, _mw0, "CreateDictionary", CreateDictionary$) {
824
812
  }
825
813
 
826
- class CreateFeedCommand extends Command
827
- .classBuilder()
828
- .ep(commonParams)
829
- .m(function (Command, cs, config, o) {
830
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
831
- })
832
- .s("ElementalInference", "CreateFeed", {})
833
- .n("ElementalInferenceClient", "CreateFeedCommand")
834
- .sc(CreateFeed$)
835
- .build() {
814
+ class CreateFeedCommand extends command(_ep0, _mw0, "CreateFeed", CreateFeed$) {
836
815
  }
837
816
 
838
- class DeleteDictionaryCommand extends Command
839
- .classBuilder()
840
- .ep(commonParams)
841
- .m(function (Command, cs, config, o) {
842
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
843
- })
844
- .s("ElementalInference", "DeleteDictionary", {})
845
- .n("ElementalInferenceClient", "DeleteDictionaryCommand")
846
- .sc(DeleteDictionary$)
847
- .build() {
817
+ class DeleteDictionaryCommand extends command(_ep0, _mw0, "DeleteDictionary", DeleteDictionary$) {
848
818
  }
849
819
 
850
- class DeleteFeedCommand extends Command
851
- .classBuilder()
852
- .ep(commonParams)
853
- .m(function (Command, cs, config, o) {
854
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
855
- })
856
- .s("ElementalInference", "DeleteFeed", {})
857
- .n("ElementalInferenceClient", "DeleteFeedCommand")
858
- .sc(DeleteFeed$)
859
- .build() {
820
+ class DeleteFeedCommand extends command(_ep0, _mw0, "DeleteFeed", DeleteFeed$) {
860
821
  }
861
822
 
862
- class DisassociateFeedCommand extends Command
863
- .classBuilder()
864
- .ep(commonParams)
865
- .m(function (Command, cs, config, o) {
866
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
867
- })
868
- .s("ElementalInference", "DisassociateFeed", {})
869
- .n("ElementalInferenceClient", "DisassociateFeedCommand")
870
- .sc(DisassociateFeed$)
871
- .build() {
823
+ class DisassociateFeedCommand extends command(_ep0, _mw0, "DisassociateFeed", DisassociateFeed$) {
872
824
  }
873
825
 
874
- class ExportDictionaryEntriesCommand extends Command
875
- .classBuilder()
876
- .ep(commonParams)
877
- .m(function (Command, cs, config, o) {
878
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
879
- })
880
- .s("ElementalInference", "ExportDictionaryEntries", {})
881
- .n("ElementalInferenceClient", "ExportDictionaryEntriesCommand")
882
- .sc(ExportDictionaryEntries$)
883
- .build() {
826
+ class ExportDictionaryEntriesCommand extends command(_ep0, _mw0, "ExportDictionaryEntries", ExportDictionaryEntries$) {
884
827
  }
885
828
 
886
- class GetDictionaryCommand extends Command
887
- .classBuilder()
888
- .ep(commonParams)
889
- .m(function (Command, cs, config, o) {
890
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
891
- })
892
- .s("ElementalInference", "GetDictionary", {})
893
- .n("ElementalInferenceClient", "GetDictionaryCommand")
894
- .sc(GetDictionary$)
895
- .build() {
829
+ class GetDictionaryCommand extends command(_ep0, _mw0, "GetDictionary", GetDictionary$) {
896
830
  }
897
831
 
898
- class GetFeedCommand extends Command
899
- .classBuilder()
900
- .ep(commonParams)
901
- .m(function (Command, cs, config, o) {
902
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
903
- })
904
- .s("ElementalInference", "GetFeed", {})
905
- .n("ElementalInferenceClient", "GetFeedCommand")
906
- .sc(GetFeed$)
907
- .build() {
832
+ class GetFeedCommand extends command(_ep0, _mw0, "GetFeed", GetFeed$) {
908
833
  }
909
834
 
910
- class ListDictionariesCommand extends Command
911
- .classBuilder()
912
- .ep(commonParams)
913
- .m(function (Command, cs, config, o) {
914
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
915
- })
916
- .s("ElementalInference", "ListDictionaries", {})
917
- .n("ElementalInferenceClient", "ListDictionariesCommand")
918
- .sc(ListDictionaries$)
919
- .build() {
835
+ class ListDictionariesCommand extends command(_ep0, _mw0, "ListDictionaries", ListDictionaries$) {
920
836
  }
921
837
 
922
- class ListFeedsCommand extends Command
923
- .classBuilder()
924
- .ep(commonParams)
925
- .m(function (Command, cs, config, o) {
926
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
927
- })
928
- .s("ElementalInference", "ListFeeds", {})
929
- .n("ElementalInferenceClient", "ListFeedsCommand")
930
- .sc(ListFeeds$)
931
- .build() {
838
+ class ListFeedsCommand extends command(_ep0, _mw0, "ListFeeds", ListFeeds$) {
932
839
  }
933
840
 
934
- class ListTagsForResourceCommand extends Command
935
- .classBuilder()
936
- .ep(commonParams)
937
- .m(function (Command, cs, config, o) {
938
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
939
- })
940
- .s("ElementalInference", "ListTagsForResource", {})
941
- .n("ElementalInferenceClient", "ListTagsForResourceCommand")
942
- .sc(ListTagsForResource$)
943
- .build() {
841
+ class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
944
842
  }
945
843
 
946
- class TagResourceCommand extends Command
947
- .classBuilder()
948
- .ep(commonParams)
949
- .m(function (Command, cs, config, o) {
950
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
951
- })
952
- .s("ElementalInference", "TagResource", {})
953
- .n("ElementalInferenceClient", "TagResourceCommand")
954
- .sc(TagResource$)
955
- .build() {
844
+ class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
956
845
  }
957
846
 
958
- class UntagResourceCommand extends Command
959
- .classBuilder()
960
- .ep(commonParams)
961
- .m(function (Command, cs, config, o) {
962
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
963
- })
964
- .s("ElementalInference", "UntagResource", {})
965
- .n("ElementalInferenceClient", "UntagResourceCommand")
966
- .sc(UntagResource$)
967
- .build() {
847
+ class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
968
848
  }
969
849
 
970
- class UpdateDictionaryCommand extends Command
971
- .classBuilder()
972
- .ep(commonParams)
973
- .m(function (Command, cs, config, o) {
974
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
975
- })
976
- .s("ElementalInference", "UpdateDictionary", {})
977
- .n("ElementalInferenceClient", "UpdateDictionaryCommand")
978
- .sc(UpdateDictionary$)
979
- .build() {
850
+ class UpdateDictionaryCommand extends command(_ep0, _mw0, "UpdateDictionary", UpdateDictionary$) {
980
851
  }
981
852
 
982
- class UpdateFeedCommand extends Command
983
- .classBuilder()
984
- .ep(commonParams)
985
- .m(function (Command, cs, config, o) {
986
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
987
- })
988
- .s("ElementalInference", "UpdateFeed", {})
989
- .n("ElementalInferenceClient", "UpdateFeedCommand")
990
- .sc(UpdateFeed$)
991
- .build() {
853
+ class UpdateFeedCommand extends command(_ep0, _mw0, "UpdateFeed", UpdateFeed$) {
992
854
  }
993
855
 
994
856
  const paginateListDictionaries = createPaginator(ElementalInferenceClient, ListDictionariesCommand, "nextToken", "nextToken", "maxResults");
@@ -0,0 +1,6 @@
1
+ import { makeBuilder } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "./endpoint/EndpointParameters";
4
+ export const command = makeBuilder(commonParams, "ElementalInference", "ElementalInferenceClient", getEndpointPlugin);
5
+ export const _ep0 = {};
6
+ export const _mw0 = (Command, cs, config, o) => [];
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { AssociateFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class AssociateFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "AssociateFeed", {})
13
- .n("ElementalInferenceClient", "AssociateFeedCommand")
14
- .sc(AssociateFeed$)
15
- .build() {
3
+ export class AssociateFeedCommand extends command(_ep0, _mw0, "AssociateFeed", AssociateFeed$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateDictionary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateDictionaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "CreateDictionary", {})
13
- .n("ElementalInferenceClient", "CreateDictionaryCommand")
14
- .sc(CreateDictionary$)
15
- .build() {
3
+ export class CreateDictionaryCommand extends command(_ep0, _mw0, "CreateDictionary", CreateDictionary$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { CreateFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class CreateFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "CreateFeed", {})
13
- .n("ElementalInferenceClient", "CreateFeedCommand")
14
- .sc(CreateFeed$)
15
- .build() {
3
+ export class CreateFeedCommand extends command(_ep0, _mw0, "CreateFeed", CreateFeed$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteDictionary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDictionaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "DeleteDictionary", {})
13
- .n("ElementalInferenceClient", "DeleteDictionaryCommand")
14
- .sc(DeleteDictionary$)
15
- .build() {
3
+ export class DeleteDictionaryCommand extends command(_ep0, _mw0, "DeleteDictionary", DeleteDictionary$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DeleteFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "DeleteFeed", {})
13
- .n("ElementalInferenceClient", "DeleteFeedCommand")
14
- .sc(DeleteFeed$)
15
- .build() {
3
+ export class DeleteFeedCommand extends command(_ep0, _mw0, "DeleteFeed", DeleteFeed$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { DisassociateFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DisassociateFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "DisassociateFeed", {})
13
- .n("ElementalInferenceClient", "DisassociateFeedCommand")
14
- .sc(DisassociateFeed$)
15
- .build() {
3
+ export class DisassociateFeedCommand extends command(_ep0, _mw0, "DisassociateFeed", DisassociateFeed$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ExportDictionaryEntries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ExportDictionaryEntriesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "ExportDictionaryEntries", {})
13
- .n("ElementalInferenceClient", "ExportDictionaryEntriesCommand")
14
- .sc(ExportDictionaryEntries$)
15
- .build() {
3
+ export class ExportDictionaryEntriesCommand extends command(_ep0, _mw0, "ExportDictionaryEntries", ExportDictionaryEntries$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetDictionary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetDictionaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "GetDictionary", {})
13
- .n("ElementalInferenceClient", "GetDictionaryCommand")
14
- .sc(GetDictionary$)
15
- .build() {
3
+ export class GetDictionaryCommand extends command(_ep0, _mw0, "GetDictionary", GetDictionary$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "GetFeed", {})
13
- .n("ElementalInferenceClient", "GetFeedCommand")
14
- .sc(GetFeed$)
15
- .build() {
3
+ export class GetFeedCommand extends command(_ep0, _mw0, "GetFeed", GetFeed$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListDictionaries$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDictionariesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "ListDictionaries", {})
13
- .n("ElementalInferenceClient", "ListDictionariesCommand")
14
- .sc(ListDictionaries$)
15
- .build() {
3
+ export class ListDictionariesCommand extends command(_ep0, _mw0, "ListDictionaries", ListDictionaries$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListFeeds$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListFeedsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "ListFeeds", {})
13
- .n("ElementalInferenceClient", "ListFeedsCommand")
14
- .sc(ListFeeds$)
15
- .build() {
3
+ export class ListFeedsCommand extends command(_ep0, _mw0, "ListFeeds", ListFeeds$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "ListTagsForResource", {})
13
- .n("ElementalInferenceClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "TagResource", {})
13
- .n("ElementalInferenceClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "UntagResource", {})
13
- .n("ElementalInferenceClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateDictionary$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateDictionaryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "UpdateDictionary", {})
13
- .n("ElementalInferenceClient", "UpdateDictionaryCommand")
14
- .sc(UpdateDictionary$)
15
- .build() {
3
+ export class UpdateDictionaryCommand extends command(_ep0, _mw0, "UpdateDictionary", UpdateDictionary$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateFeed$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateFeedCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("ElementalInference", "UpdateFeed", {})
13
- .n("ElementalInferenceClient", "UpdateFeedCommand")
14
- .sc(UpdateFeed$)
15
- .build() {
3
+ export class UpdateFeedCommand extends command(_ep0, _mw0, "UpdateFeed", UpdateFeed$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ElementalInferenceClient";
2
2
  export * from "./ElementalInference";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./waiters";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
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
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };