@aws-sdk/client-cognito-sync 3.948.0 → 3.953.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 (37) hide show
  1. package/dist-cjs/index.js +263 -185
  2. package/dist-cjs/runtimeConfig.shared.js +7 -1
  3. package/dist-es/commands/BulkPublishCommand.js +2 -2
  4. package/dist-es/commands/DeleteDatasetCommand.js +2 -2
  5. package/dist-es/commands/DescribeDatasetCommand.js +2 -2
  6. package/dist-es/commands/DescribeIdentityPoolUsageCommand.js +2 -2
  7. package/dist-es/commands/DescribeIdentityUsageCommand.js +2 -2
  8. package/dist-es/commands/GetBulkPublishDetailsCommand.js +2 -2
  9. package/dist-es/commands/GetCognitoEventsCommand.js +2 -2
  10. package/dist-es/commands/GetIdentityPoolConfigurationCommand.js +2 -2
  11. package/dist-es/commands/ListDatasetsCommand.js +2 -2
  12. package/dist-es/commands/ListIdentityPoolUsageCommand.js +2 -2
  13. package/dist-es/commands/ListRecordsCommand.js +2 -2
  14. package/dist-es/commands/RegisterDeviceCommand.js +2 -2
  15. package/dist-es/commands/SetCognitoEventsCommand.js +2 -2
  16. package/dist-es/commands/SetIdentityPoolConfigurationCommand.js +2 -2
  17. package/dist-es/commands/SubscribeToDatasetCommand.js +2 -2
  18. package/dist-es/commands/UnsubscribeFromDatasetCommand.js +2 -2
  19. package/dist-es/commands/UpdateRecordsCommand.js +2 -2
  20. package/dist-es/index.js +1 -0
  21. package/dist-es/runtimeConfig.shared.js +7 -1
  22. package/dist-es/schemas/schemas_0.js +139 -132
  23. package/dist-types/CognitoSyncClient.d.ts +1 -10
  24. package/dist-types/index.d.ts +1 -0
  25. package/dist-types/runtimeConfig.browser.d.ts +6 -2
  26. package/dist-types/runtimeConfig.d.ts +6 -2
  27. package/dist-types/runtimeConfig.native.d.ts +6 -2
  28. package/dist-types/runtimeConfig.shared.d.ts +6 -1
  29. package/dist-types/schemas/schemas_0.d.ts +72 -80
  30. package/dist-types/ts3.4/CognitoSyncClient.d.ts +0 -4
  31. package/dist-types/ts3.4/index.d.ts +1 -0
  32. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +9 -5
  33. package/dist-types/ts3.4/runtimeConfig.d.ts +9 -5
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +9 -5
  35. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +9 -4
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +71 -80
  37. package/package.json +34 -34
@@ -26,7 +26,13 @@ const getRuntimeConfig = (config) => {
26
26
  },
27
27
  ],
28
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
- protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.cognitosync" }),
29
+ protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
+ protocolSettings: config?.protocolSettings ?? {
31
+ defaultNamespace: "com.amazonaws.cognitosync",
32
+ xmlNamespace: "http://cognito-sync.amazonaws.com/doc/2014-06-30/",
33
+ version: "2014-06-30",
34
+ serviceTarget: "AWSCognitoSyncService",
35
+ },
30
36
  serviceId: config?.serviceId ?? "Cognito Sync",
31
37
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
32
38
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { BulkPublish } from "../schemas/schemas_0";
4
+ import { BulkPublish$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class BulkPublishCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class BulkPublishCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "BulkPublish", {})
13
13
  .n("CognitoSyncClient", "BulkPublishCommand")
14
- .sc(BulkPublish)
14
+ .sc(BulkPublish$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DeleteDataset } from "../schemas/schemas_0";
4
+ import { DeleteDataset$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DeleteDatasetCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DeleteDatasetCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "DeleteDataset", {})
13
13
  .n("CognitoSyncClient", "DeleteDatasetCommand")
14
- .sc(DeleteDataset)
14
+ .sc(DeleteDataset$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DescribeDataset } from "../schemas/schemas_0";
4
+ import { DescribeDataset$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DescribeDatasetCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DescribeDatasetCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "DescribeDataset", {})
13
13
  .n("CognitoSyncClient", "DescribeDatasetCommand")
14
- .sc(DescribeDataset)
14
+ .sc(DescribeDataset$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DescribeIdentityPoolUsage } from "../schemas/schemas_0";
4
+ import { DescribeIdentityPoolUsage$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DescribeIdentityPoolUsageCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DescribeIdentityPoolUsageCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "DescribeIdentityPoolUsage", {})
13
13
  .n("CognitoSyncClient", "DescribeIdentityPoolUsageCommand")
14
- .sc(DescribeIdentityPoolUsage)
14
+ .sc(DescribeIdentityPoolUsage$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { DescribeIdentityUsage } from "../schemas/schemas_0";
4
+ import { DescribeIdentityUsage$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class DescribeIdentityUsageCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class DescribeIdentityUsageCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "DescribeIdentityUsage", {})
13
13
  .n("CognitoSyncClient", "DescribeIdentityUsageCommand")
14
- .sc(DescribeIdentityUsage)
14
+ .sc(DescribeIdentityUsage$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetBulkPublishDetails } from "../schemas/schemas_0";
4
+ import { GetBulkPublishDetails$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetBulkPublishDetailsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetBulkPublishDetailsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "GetBulkPublishDetails", {})
13
13
  .n("CognitoSyncClient", "GetBulkPublishDetailsCommand")
14
- .sc(GetBulkPublishDetails)
14
+ .sc(GetBulkPublishDetails$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetCognitoEvents } from "../schemas/schemas_0";
4
+ import { GetCognitoEvents$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetCognitoEventsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetCognitoEventsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "GetCognitoEvents", {})
13
13
  .n("CognitoSyncClient", "GetCognitoEventsCommand")
14
- .sc(GetCognitoEvents)
14
+ .sc(GetCognitoEvents$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { GetIdentityPoolConfiguration } from "../schemas/schemas_0";
4
+ import { GetIdentityPoolConfiguration$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class GetIdentityPoolConfigurationCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class GetIdentityPoolConfigurationCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "GetIdentityPoolConfiguration", {})
13
13
  .n("CognitoSyncClient", "GetIdentityPoolConfigurationCommand")
14
- .sc(GetIdentityPoolConfiguration)
14
+ .sc(GetIdentityPoolConfiguration$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListDatasets } from "../schemas/schemas_0";
4
+ import { ListDatasets$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListDatasetsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListDatasetsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "ListDatasets", {})
13
13
  .n("CognitoSyncClient", "ListDatasetsCommand")
14
- .sc(ListDatasets)
14
+ .sc(ListDatasets$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListIdentityPoolUsage } from "../schemas/schemas_0";
4
+ import { ListIdentityPoolUsage$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListIdentityPoolUsageCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListIdentityPoolUsageCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "ListIdentityPoolUsage", {})
13
13
  .n("CognitoSyncClient", "ListIdentityPoolUsageCommand")
14
- .sc(ListIdentityPoolUsage)
14
+ .sc(ListIdentityPoolUsage$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ListRecords } from "../schemas/schemas_0";
4
+ import { ListRecords$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class ListRecordsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class ListRecordsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "ListRecords", {})
13
13
  .n("CognitoSyncClient", "ListRecordsCommand")
14
- .sc(ListRecords)
14
+ .sc(ListRecords$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { RegisterDevice } from "../schemas/schemas_0";
4
+ import { RegisterDevice$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class RegisterDeviceCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class RegisterDeviceCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "RegisterDevice", {})
13
13
  .n("CognitoSyncClient", "RegisterDeviceCommand")
14
- .sc(RegisterDevice)
14
+ .sc(RegisterDevice$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SetCognitoEvents } from "../schemas/schemas_0";
4
+ import { SetCognitoEvents$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SetCognitoEventsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SetCognitoEventsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "SetCognitoEvents", {})
13
13
  .n("CognitoSyncClient", "SetCognitoEventsCommand")
14
- .sc(SetCognitoEvents)
14
+ .sc(SetCognitoEvents$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SetIdentityPoolConfiguration } from "../schemas/schemas_0";
4
+ import { SetIdentityPoolConfiguration$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SetIdentityPoolConfigurationCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SetIdentityPoolConfigurationCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "SetIdentityPoolConfiguration", {})
13
13
  .n("CognitoSyncClient", "SetIdentityPoolConfigurationCommand")
14
- .sc(SetIdentityPoolConfiguration)
14
+ .sc(SetIdentityPoolConfiguration$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { SubscribeToDataset } from "../schemas/schemas_0";
4
+ import { SubscribeToDataset$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class SubscribeToDatasetCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class SubscribeToDatasetCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "SubscribeToDataset", {})
13
13
  .n("CognitoSyncClient", "SubscribeToDatasetCommand")
14
- .sc(SubscribeToDataset)
14
+ .sc(SubscribeToDataset$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UnsubscribeFromDataset } from "../schemas/schemas_0";
4
+ import { UnsubscribeFromDataset$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UnsubscribeFromDatasetCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UnsubscribeFromDatasetCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "UnsubscribeFromDataset", {})
13
13
  .n("CognitoSyncClient", "UnsubscribeFromDatasetCommand")
14
- .sc(UnsubscribeFromDataset)
14
+ .sc(UnsubscribeFromDataset$)
15
15
  .build() {
16
16
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
2
  import { Command as $Command } from "@smithy/smithy-client";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
- import { UpdateRecords } from "../schemas/schemas_0";
4
+ import { UpdateRecords$ } from "../schemas/schemas_0";
5
5
  export { $Command };
6
6
  export class UpdateRecordsCommand extends $Command
7
7
  .classBuilder()
@@ -11,6 +11,6 @@ export class UpdateRecordsCommand extends $Command
11
11
  })
12
12
  .s("AWSCognitoSyncService", "UpdateRecords", {})
13
13
  .n("CognitoSyncClient", "UpdateRecordsCommand")
14
- .sc(UpdateRecords)
14
+ .sc(UpdateRecords$)
15
15
  .build() {
16
16
  }
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 * from "./schemas/schemas_0";
4
5
  export * from "./models/enums";
5
6
  export * from "./models/errors";
6
7
  export { CognitoSyncServiceException } from "./models/CognitoSyncServiceException";
@@ -23,7 +23,13 @@ export const getRuntimeConfig = (config) => {
23
23
  },
24
24
  ],
25
25
  logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.cognitosync" }),
26
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
27
+ protocolSettings: config?.protocolSettings ?? {
28
+ defaultNamespace: "com.amazonaws.cognitosync",
29
+ xmlNamespace: "http://cognito-sync.amazonaws.com/doc/2014-06-30/",
30
+ version: "2014-06-30",
31
+ serviceTarget: "AWSCognitoSyncService",
32
+ },
27
33
  serviceId: config?.serviceId ?? "Cognito Sync",
28
34
  urlParser: config?.urlParser ?? parseUrl,
29
35
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,