@aws-sdk/client-cognito-sync 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 (71) hide show
  1. package/dist-cjs/index.js +28 -175
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/BulkPublishCommand.js +2 -14
  4. package/dist-es/commands/DeleteDatasetCommand.js +2 -14
  5. package/dist-es/commands/DescribeDatasetCommand.js +2 -14
  6. package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +2 -14
  7. package/dist-es/commands/DescribeIdentityUsageCommand.js +2 -14
  8. package/dist-es/commands/GetBulkPublishDetailsCommand.js +2 -14
  9. package/dist-es/commands/GetCognitoEventsCommand.js +2 -14
  10. package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +2 -14
  11. package/dist-es/commands/ListDatasetsCommand.js +2 -14
  12. package/dist-es/commands/ListIdentityPoolUsageCommand.js +2 -14
  13. package/dist-es/commands/ListRecordsCommand.js +2 -14
  14. package/dist-es/commands/RegisterDeviceCommand.js +2 -14
  15. package/dist-es/commands/SetCognitoEventsCommand.js +2 -14
  16. package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +2 -14
  17. package/dist-es/commands/SubscribeToDatasetCommand.js +2 -14
  18. package/dist-es/commands/UnsubscribeFromDatasetCommand.js +2 -14
  19. package/dist-es/commands/UpdateRecordsCommand.js +2 -14
  20. package/dist-es/index.js +1 -0
  21. package/dist-es/runtimeConfig.browser.js +0 -2
  22. package/dist-es/runtimeConfig.js +1 -2
  23. package/dist-es/runtimeConfig.native.js +0 -2
  24. package/dist-es/runtimeConfig.shared.js +2 -0
  25. package/dist-types/commandBuilder.d.ts +18 -0
  26. package/dist-types/commands/BulkPublishCommand.d.ts +3 -8
  27. package/dist-types/commands/DeleteDatasetCommand.d.ts +3 -8
  28. package/dist-types/commands/DescribeDatasetCommand.d.ts +3 -8
  29. package/dist-types/commands/DescribeIdentityPoolUsageCommand.d.ts +3 -8
  30. package/dist-types/commands/DescribeIdentityUsageCommand.d.ts +3 -8
  31. package/dist-types/commands/GetBulkPublishDetailsCommand.d.ts +3 -8
  32. package/dist-types/commands/GetCognitoEventsCommand.d.ts +3 -8
  33. package/dist-types/commands/GetIdentityPoolConfigurationCommand.d.ts +3 -8
  34. package/dist-types/commands/ListDatasetsCommand.d.ts +3 -8
  35. package/dist-types/commands/ListIdentityPoolUsageCommand.d.ts +3 -8
  36. package/dist-types/commands/ListRecordsCommand.d.ts +3 -8
  37. package/dist-types/commands/RegisterDeviceCommand.d.ts +3 -8
  38. package/dist-types/commands/SetCognitoEventsCommand.d.ts +3 -8
  39. package/dist-types/commands/SetIdentityPoolConfigurationCommand.d.ts +3 -8
  40. package/dist-types/commands/SubscribeToDatasetCommand.d.ts +3 -8
  41. package/dist-types/commands/UnsubscribeFromDatasetCommand.d.ts +3 -8
  42. package/dist-types/commands/UpdateRecordsCommand.d.ts +3 -8
  43. package/dist-types/index.d.ts +1 -0
  44. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  45. package/dist-types/runtimeConfig.d.ts +1 -1
  46. package/dist-types/runtimeConfig.native.d.ts +1 -1
  47. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  48. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  49. package/dist-types/ts3.4/commands/BulkPublishCommand.d.ts +7 -16
  50. package/dist-types/ts3.4/commands/DeleteDatasetCommand.d.ts +7 -16
  51. package/dist-types/ts3.4/commands/DescribeDatasetCommand.d.ts +7 -16
  52. package/dist-types/ts3.4/commands/DescribeIdentityPoolUsageCommand.d.ts +7 -16
  53. package/dist-types/ts3.4/commands/DescribeIdentityUsageCommand.d.ts +7 -16
  54. package/dist-types/ts3.4/commands/GetBulkPublishDetailsCommand.d.ts +7 -16
  55. package/dist-types/ts3.4/commands/GetCognitoEventsCommand.d.ts +7 -16
  56. package/dist-types/ts3.4/commands/GetIdentityPoolConfigurationCommand.d.ts +7 -16
  57. package/dist-types/ts3.4/commands/ListDatasetsCommand.d.ts +7 -16
  58. package/dist-types/ts3.4/commands/ListIdentityPoolUsageCommand.d.ts +7 -16
  59. package/dist-types/ts3.4/commands/ListRecordsCommand.d.ts +7 -16
  60. package/dist-types/ts3.4/commands/RegisterDeviceCommand.d.ts +7 -16
  61. package/dist-types/ts3.4/commands/SetCognitoEventsCommand.d.ts +7 -16
  62. package/dist-types/ts3.4/commands/SetIdentityPoolConfigurationCommand.d.ts +7 -16
  63. package/dist-types/ts3.4/commands/SubscribeToDatasetCommand.d.ts +7 -16
  64. package/dist-types/ts3.4/commands/UnsubscribeFromDatasetCommand.d.ts +7 -16
  65. package/dist-types/ts3.4/commands/UpdateRecordsCommand.d.ts +7 -16
  66. package/dist-types/ts3.4/index.d.ts +1 -0
  67. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  68. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  69. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  70. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  71. 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 } = require("@smithy/core");
3
- const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
4
- exports.$Command = Command;
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, makeBuilder, 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 defaultCognitoSyncHttpAuthSchemeParametersProvider = 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
 
@@ -801,6 +803,7 @@ const getRuntimeConfig$1 = (config) => {
801
803
  serviceTarget: "AWSCognitoSyncService",
802
804
  },
803
805
  serviceId: config?.serviceId ?? "Cognito Sync",
806
+ sha256: config?.sha256 ?? Sha256,
804
807
  urlParser: config?.urlParser ?? parseUrl,
805
808
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
806
809
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -834,7 +837,6 @@ const getRuntimeConfig = (config) => {
834
837
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
835
838
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
836
839
  }, config),
837
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
838
840
  streamCollector: config?.streamCollector ?? streamCollector,
839
841
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
840
842
  useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -922,208 +924,59 @@ class CognitoSyncClient extends Client {
922
924
  }
923
925
  }
924
926
 
925
- class BulkPublishCommand extends Command
926
- .classBuilder()
927
- .ep(commonParams)
928
- .m(function (Command, cs, config, o) {
929
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
930
- })
931
- .s("AWSCognitoSyncService", "BulkPublish", {})
932
- .n("CognitoSyncClient", "BulkPublishCommand")
933
- .sc(BulkPublish$)
934
- .build() {
927
+ const command = makeBuilder(commonParams, "AWSCognitoSyncService", "CognitoSyncClient", getEndpointPlugin);
928
+ const _ep0 = {};
929
+ const _mw0 = (Command, cs, config, o) => [];
930
+
931
+ class BulkPublishCommand extends command(_ep0, _mw0, "BulkPublish", BulkPublish$) {
935
932
  }
936
933
 
937
- class DeleteDatasetCommand extends Command
938
- .classBuilder()
939
- .ep(commonParams)
940
- .m(function (Command, cs, config, o) {
941
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
942
- })
943
- .s("AWSCognitoSyncService", "DeleteDataset", {})
944
- .n("CognitoSyncClient", "DeleteDatasetCommand")
945
- .sc(DeleteDataset$)
946
- .build() {
934
+ class DeleteDatasetCommand extends command(_ep0, _mw0, "DeleteDataset", DeleteDataset$) {
947
935
  }
948
936
 
949
- class DescribeDatasetCommand extends Command
950
- .classBuilder()
951
- .ep(commonParams)
952
- .m(function (Command, cs, config, o) {
953
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
954
- })
955
- .s("AWSCognitoSyncService", "DescribeDataset", {})
956
- .n("CognitoSyncClient", "DescribeDatasetCommand")
957
- .sc(DescribeDataset$)
958
- .build() {
937
+ class DescribeDatasetCommand extends command(_ep0, _mw0, "DescribeDataset", DescribeDataset$) {
959
938
  }
960
939
 
961
- class DescribeIdentityPoolUsageCommand extends Command
962
- .classBuilder()
963
- .ep(commonParams)
964
- .m(function (Command, cs, config, o) {
965
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
966
- })
967
- .s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {})
968
- .n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand")
969
- .sc(DescribeIdentityPoolUsage$)
970
- .build() {
940
+ class DescribeIdentityPoolUsageCommand extends command(_ep0, _mw0, "DescribeIdentityPoolUsage", DescribeIdentityPoolUsage$) {
971
941
  }
972
942
 
973
- class DescribeIdentityUsageCommand extends Command
974
- .classBuilder()
975
- .ep(commonParams)
976
- .m(function (Command, cs, config, o) {
977
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
978
- })
979
- .s("AWSCognitoSyncService", "DescribeIdentityUsage", {})
980
- .n("CognitoSyncClient", "DescribeIdentityUsageCommand")
981
- .sc(DescribeIdentityUsage$)
982
- .build() {
943
+ class DescribeIdentityUsageCommand extends command(_ep0, _mw0, "DescribeIdentityUsage", DescribeIdentityUsage$) {
983
944
  }
984
945
 
985
- class GetBulkPublishDetailsCommand extends Command
986
- .classBuilder()
987
- .ep(commonParams)
988
- .m(function (Command, cs, config, o) {
989
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
990
- })
991
- .s("AWSCognitoSyncService", "GetBulkPublishDetails", {})
992
- .n("CognitoSyncClient", "GetBulkPublishDetailsCommand")
993
- .sc(GetBulkPublishDetails$)
994
- .build() {
946
+ class GetBulkPublishDetailsCommand extends command(_ep0, _mw0, "GetBulkPublishDetails", GetBulkPublishDetails$) {
995
947
  }
996
948
 
997
- class GetCognitoEventsCommand extends Command
998
- .classBuilder()
999
- .ep(commonParams)
1000
- .m(function (Command, cs, config, o) {
1001
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1002
- })
1003
- .s("AWSCognitoSyncService", "GetCognitoEvents", {})
1004
- .n("CognitoSyncClient", "GetCognitoEventsCommand")
1005
- .sc(GetCognitoEvents$)
1006
- .build() {
949
+ class GetCognitoEventsCommand extends command(_ep0, _mw0, "GetCognitoEvents", GetCognitoEvents$) {
1007
950
  }
1008
951
 
1009
- class GetIdentityPoolConfigurationCommand extends Command
1010
- .classBuilder()
1011
- .ep(commonParams)
1012
- .m(function (Command, cs, config, o) {
1013
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1014
- })
1015
- .s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {})
1016
- .n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand")
1017
- .sc(GetIdentityPoolConfiguration$)
1018
- .build() {
952
+ class GetIdentityPoolConfigurationCommand extends command(_ep0, _mw0, "GetIdentityPoolConfiguration", GetIdentityPoolConfiguration$) {
1019
953
  }
1020
954
 
1021
- class ListDatasetsCommand extends Command
1022
- .classBuilder()
1023
- .ep(commonParams)
1024
- .m(function (Command, cs, config, o) {
1025
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1026
- })
1027
- .s("AWSCognitoSyncService", "ListDatasets", {})
1028
- .n("CognitoSyncClient", "ListDatasetsCommand")
1029
- .sc(ListDatasets$)
1030
- .build() {
955
+ class ListDatasetsCommand extends command(_ep0, _mw0, "ListDatasets", ListDatasets$) {
1031
956
  }
1032
957
 
1033
- class ListIdentityPoolUsageCommand extends Command
1034
- .classBuilder()
1035
- .ep(commonParams)
1036
- .m(function (Command, cs, config, o) {
1037
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1038
- })
1039
- .s("AWSCognitoSyncService", "ListIdentityPoolUsage", {})
1040
- .n("CognitoSyncClient", "ListIdentityPoolUsageCommand")
1041
- .sc(ListIdentityPoolUsage$)
1042
- .build() {
958
+ class ListIdentityPoolUsageCommand extends command(_ep0, _mw0, "ListIdentityPoolUsage", ListIdentityPoolUsage$) {
1043
959
  }
1044
960
 
1045
- class ListRecordsCommand extends Command
1046
- .classBuilder()
1047
- .ep(commonParams)
1048
- .m(function (Command, cs, config, o) {
1049
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1050
- })
1051
- .s("AWSCognitoSyncService", "ListRecords", {})
1052
- .n("CognitoSyncClient", "ListRecordsCommand")
1053
- .sc(ListRecords$)
1054
- .build() {
961
+ class ListRecordsCommand extends command(_ep0, _mw0, "ListRecords", ListRecords$) {
1055
962
  }
1056
963
 
1057
- class RegisterDeviceCommand extends Command
1058
- .classBuilder()
1059
- .ep(commonParams)
1060
- .m(function (Command, cs, config, o) {
1061
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1062
- })
1063
- .s("AWSCognitoSyncService", "RegisterDevice", {})
1064
- .n("CognitoSyncClient", "RegisterDeviceCommand")
1065
- .sc(RegisterDevice$)
1066
- .build() {
964
+ class RegisterDeviceCommand extends command(_ep0, _mw0, "RegisterDevice", RegisterDevice$) {
1067
965
  }
1068
966
 
1069
- class SetCognitoEventsCommand extends Command
1070
- .classBuilder()
1071
- .ep(commonParams)
1072
- .m(function (Command, cs, config, o) {
1073
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1074
- })
1075
- .s("AWSCognitoSyncService", "SetCognitoEvents", {})
1076
- .n("CognitoSyncClient", "SetCognitoEventsCommand")
1077
- .sc(SetCognitoEvents$)
1078
- .build() {
967
+ class SetCognitoEventsCommand extends command(_ep0, _mw0, "SetCognitoEvents", SetCognitoEvents$) {
1079
968
  }
1080
969
 
1081
- class SetIdentityPoolConfigurationCommand extends Command
1082
- .classBuilder()
1083
- .ep(commonParams)
1084
- .m(function (Command, cs, config, o) {
1085
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1086
- })
1087
- .s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {})
1088
- .n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand")
1089
- .sc(SetIdentityPoolConfiguration$)
1090
- .build() {
970
+ class SetIdentityPoolConfigurationCommand extends command(_ep0, _mw0, "SetIdentityPoolConfiguration", SetIdentityPoolConfiguration$) {
1091
971
  }
1092
972
 
1093
- class SubscribeToDatasetCommand extends Command
1094
- .classBuilder()
1095
- .ep(commonParams)
1096
- .m(function (Command, cs, config, o) {
1097
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1098
- })
1099
- .s("AWSCognitoSyncService", "SubscribeToDataset", {})
1100
- .n("CognitoSyncClient", "SubscribeToDatasetCommand")
1101
- .sc(SubscribeToDataset$)
1102
- .build() {
973
+ class SubscribeToDatasetCommand extends command(_ep0, _mw0, "SubscribeToDataset", SubscribeToDataset$) {
1103
974
  }
1104
975
 
1105
- class UnsubscribeFromDatasetCommand extends Command
1106
- .classBuilder()
1107
- .ep(commonParams)
1108
- .m(function (Command, cs, config, o) {
1109
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1110
- })
1111
- .s("AWSCognitoSyncService", "UnsubscribeFromDataset", {})
1112
- .n("CognitoSyncClient", "UnsubscribeFromDatasetCommand")
1113
- .sc(UnsubscribeFromDataset$)
1114
- .build() {
976
+ class UnsubscribeFromDatasetCommand extends command(_ep0, _mw0, "UnsubscribeFromDataset", UnsubscribeFromDataset$) {
1115
977
  }
1116
978
 
1117
- class UpdateRecordsCommand extends Command
1118
- .classBuilder()
1119
- .ep(commonParams)
1120
- .m(function (Command, cs, config, o) {
1121
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
1122
- })
1123
- .s("AWSCognitoSyncService", "UpdateRecords", {})
1124
- .n("CognitoSyncClient", "UpdateRecordsCommand")
1125
- .sc(UpdateRecords$)
1126
- .build() {
979
+ class UpdateRecordsCommand extends command(_ep0, _mw0, "UpdateRecords", UpdateRecords$) {
1127
980
  }
1128
981
 
1129
982
  const commands = {
@@ -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, "AWSCognitoSyncService", "CognitoSyncClient", 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 { BulkPublish$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class BulkPublishCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "BulkPublish", {})
13
- .n("CognitoSyncClient", "BulkPublishCommand")
14
- .sc(BulkPublish$)
15
- .build() {
3
+ export class BulkPublishCommand extends command(_ep0, _mw0, "BulkPublish", BulkPublish$) {
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 { DeleteDataset$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DeleteDatasetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "DeleteDataset", {})
13
- .n("CognitoSyncClient", "DeleteDatasetCommand")
14
- .sc(DeleteDataset$)
15
- .build() {
3
+ export class DeleteDatasetCommand extends command(_ep0, _mw0, "DeleteDataset", DeleteDataset$) {
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 { DescribeDataset$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeDatasetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "DescribeDataset", {})
13
- .n("CognitoSyncClient", "DescribeDatasetCommand")
14
- .sc(DescribeDataset$)
15
- .build() {
3
+ export class DescribeDatasetCommand extends command(_ep0, _mw0, "DescribeDataset", DescribeDataset$) {
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 { DescribeIdentityPoolUsage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeIdentityPoolUsageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {})
13
- .n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand")
14
- .sc(DescribeIdentityPoolUsage$)
15
- .build() {
3
+ export class DescribeIdentityPoolUsageCommand extends command(_ep0, _mw0, "DescribeIdentityPoolUsage", DescribeIdentityPoolUsage$) {
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 { DescribeIdentityUsage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class DescribeIdentityUsageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "DescribeIdentityUsage", {})
13
- .n("CognitoSyncClient", "DescribeIdentityUsageCommand")
14
- .sc(DescribeIdentityUsage$)
15
- .build() {
3
+ export class DescribeIdentityUsageCommand extends command(_ep0, _mw0, "DescribeIdentityUsage", DescribeIdentityUsage$) {
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 { GetBulkPublishDetails$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetBulkPublishDetailsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "GetBulkPublishDetails", {})
13
- .n("CognitoSyncClient", "GetBulkPublishDetailsCommand")
14
- .sc(GetBulkPublishDetails$)
15
- .build() {
3
+ export class GetBulkPublishDetailsCommand extends command(_ep0, _mw0, "GetBulkPublishDetails", GetBulkPublishDetails$) {
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 { GetCognitoEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetCognitoEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "GetCognitoEvents", {})
13
- .n("CognitoSyncClient", "GetCognitoEventsCommand")
14
- .sc(GetCognitoEvents$)
15
- .build() {
3
+ export class GetCognitoEventsCommand extends command(_ep0, _mw0, "GetCognitoEvents", GetCognitoEvents$) {
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 { GetIdentityPoolConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetIdentityPoolConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {})
13
- .n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand")
14
- .sc(GetIdentityPoolConfiguration$)
15
- .build() {
3
+ export class GetIdentityPoolConfigurationCommand extends command(_ep0, _mw0, "GetIdentityPoolConfiguration", GetIdentityPoolConfiguration$) {
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 { ListDatasets$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListDatasetsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "ListDatasets", {})
13
- .n("CognitoSyncClient", "ListDatasetsCommand")
14
- .sc(ListDatasets$)
15
- .build() {
3
+ export class ListDatasetsCommand extends command(_ep0, _mw0, "ListDatasets", ListDatasets$) {
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 { ListIdentityPoolUsage$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListIdentityPoolUsageCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "ListIdentityPoolUsage", {})
13
- .n("CognitoSyncClient", "ListIdentityPoolUsageCommand")
14
- .sc(ListIdentityPoolUsage$)
15
- .build() {
3
+ export class ListIdentityPoolUsageCommand extends command(_ep0, _mw0, "ListIdentityPoolUsage", ListIdentityPoolUsage$) {
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 { ListRecords$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListRecordsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "ListRecords", {})
13
- .n("CognitoSyncClient", "ListRecordsCommand")
14
- .sc(ListRecords$)
15
- .build() {
3
+ export class ListRecordsCommand extends command(_ep0, _mw0, "ListRecords", ListRecords$) {
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 { RegisterDevice$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RegisterDeviceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "RegisterDevice", {})
13
- .n("CognitoSyncClient", "RegisterDeviceCommand")
14
- .sc(RegisterDevice$)
15
- .build() {
3
+ export class RegisterDeviceCommand extends command(_ep0, _mw0, "RegisterDevice", RegisterDevice$) {
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 { SetCognitoEvents$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetCognitoEventsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "SetCognitoEvents", {})
13
- .n("CognitoSyncClient", "SetCognitoEventsCommand")
14
- .sc(SetCognitoEvents$)
15
- .build() {
3
+ export class SetCognitoEventsCommand extends command(_ep0, _mw0, "SetCognitoEvents", SetCognitoEvents$) {
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 { SetIdentityPoolConfiguration$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SetIdentityPoolConfigurationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {})
13
- .n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand")
14
- .sc(SetIdentityPoolConfiguration$)
15
- .build() {
3
+ export class SetIdentityPoolConfigurationCommand extends command(_ep0, _mw0, "SetIdentityPoolConfiguration", SetIdentityPoolConfiguration$) {
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 { SubscribeToDataset$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class SubscribeToDatasetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "SubscribeToDataset", {})
13
- .n("CognitoSyncClient", "SubscribeToDatasetCommand")
14
- .sc(SubscribeToDataset$)
15
- .build() {
3
+ export class SubscribeToDatasetCommand extends command(_ep0, _mw0, "SubscribeToDataset", SubscribeToDataset$) {
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 { UnsubscribeFromDataset$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UnsubscribeFromDatasetCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "UnsubscribeFromDataset", {})
13
- .n("CognitoSyncClient", "UnsubscribeFromDatasetCommand")
14
- .sc(UnsubscribeFromDataset$)
15
- .build() {
3
+ export class UnsubscribeFromDatasetCommand extends command(_ep0, _mw0, "UnsubscribeFromDataset", UnsubscribeFromDataset$) {
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 { UpdateRecords$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateRecordsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("AWSCognitoSyncService", "UpdateRecords", {})
13
- .n("CognitoSyncClient", "UpdateRecordsCommand")
14
- .sc(UpdateRecords$)
15
- .build() {
3
+ export class UpdateRecordsCommand extends command(_ep0, _mw0, "UpdateRecords", UpdateRecords$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./CognitoSyncClient";
2
2
  export * from "./CognitoSync";
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 "./models/enums";
6
7
  export * from "./models/errors";
@@ -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)),