-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add client-cognito-sync (#643)
- Loading branch information
Showing
33 changed files
with
7,759 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/node_modules/ | ||
/build/ | ||
/coverage/ | ||
/docs/ | ||
/types/ | ||
/dist/ | ||
*.tsbuildinfo | ||
*.tgz | ||
*.log | ||
package-lock.json | ||
|
||
*.d.ts | ||
*.js | ||
*.js.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/coverage/ | ||
/docs/ | ||
tsconfig.test.json | ||
*.tsbuildinfo |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,268 @@ | ||
import { | ||
BulkPublishRequest, | ||
BulkPublishResponse, | ||
DeleteDatasetRequest, | ||
DeleteDatasetResponse, | ||
DescribeDatasetRequest, | ||
DescribeDatasetResponse, | ||
DescribeIdentityPoolUsageRequest, | ||
DescribeIdentityPoolUsageResponse, | ||
DescribeIdentityUsageRequest, | ||
DescribeIdentityUsageResponse, | ||
GetBulkPublishDetailsRequest, | ||
GetBulkPublishDetailsResponse, | ||
GetCognitoEventsRequest, | ||
GetCognitoEventsResponse, | ||
GetIdentityPoolConfigurationRequest, | ||
GetIdentityPoolConfigurationResponse, | ||
ListDatasetsRequest, | ||
ListDatasetsResponse, | ||
ListIdentityPoolUsageRequest, | ||
ListIdentityPoolUsageResponse, | ||
ListRecordsRequest, | ||
ListRecordsResponse, | ||
RegisterDeviceRequest, | ||
RegisterDeviceResponse, | ||
SetCognitoEventsRequest, | ||
SetIdentityPoolConfigurationRequest, | ||
SetIdentityPoolConfigurationResponse, | ||
SubscribeToDatasetRequest, | ||
SubscribeToDatasetResponse, | ||
UnsubscribeFromDatasetRequest, | ||
UnsubscribeFromDatasetResponse, | ||
UpdateRecordsRequest, | ||
UpdateRecordsResponse | ||
} from "./models/index"; | ||
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig"; | ||
import { | ||
EndpointsInputConfig, | ||
EndpointsResolvedConfig, | ||
RegionInputConfig, | ||
RegionResolvedConfig, | ||
resolveEndpointsConfig, | ||
resolveRegionConfig | ||
} from "@aws-sdk/config-resolver"; | ||
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; | ||
import { | ||
HostHeaderInputConfig, | ||
HostHeaderResolvedConfig, | ||
getHostHeaderPlugin, | ||
resolveHostHeaderConfig | ||
} from "@aws-sdk/middleware-host-header"; | ||
import { | ||
RetryInputConfig, | ||
RetryResolvedConfig, | ||
getRetryPlugin, | ||
resolveRetryConfig | ||
} from "@aws-sdk/middleware-retry"; | ||
import { | ||
AwsAuthInputConfig, | ||
AwsAuthResolvedConfig, | ||
getAwsAuthPlugin, | ||
resolveAwsAuthConfig | ||
} from "@aws-sdk/middleware-signing"; | ||
import { | ||
UserAgentInputConfig, | ||
UserAgentResolvedConfig, | ||
getUserAgentPlugin, | ||
resolveUserAgentConfig | ||
} from "@aws-sdk/middleware-user-agent"; | ||
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http"; | ||
import { | ||
Client as __Client, | ||
SmithyConfiguration as __SmithyConfiguration, | ||
SmithyResolvedConfiguration as __SmithyResolvedConfiguration | ||
} from "@aws-sdk/smithy-client"; | ||
import { | ||
RegionInfoProvider, | ||
Credentials as __Credentials, | ||
Decoder as __Decoder, | ||
Encoder as __Encoder, | ||
HashConstructor as __HashConstructor, | ||
HttpHandlerOptions as __HttpHandlerOptions, | ||
MetadataBearer as __MetadataBearer, | ||
Provider as __Provider, | ||
StreamCollector as __StreamCollector, | ||
UrlParser as __UrlParser | ||
} from "@aws-sdk/types"; | ||
|
||
export type ServiceInputTypes = | ||
| BulkPublishRequest | ||
| DeleteDatasetRequest | ||
| DescribeDatasetRequest | ||
| DescribeIdentityPoolUsageRequest | ||
| DescribeIdentityUsageRequest | ||
| GetBulkPublishDetailsRequest | ||
| GetCognitoEventsRequest | ||
| GetIdentityPoolConfigurationRequest | ||
| ListDatasetsRequest | ||
| ListIdentityPoolUsageRequest | ||
| ListRecordsRequest | ||
| RegisterDeviceRequest | ||
| SetCognitoEventsRequest | ||
| SetIdentityPoolConfigurationRequest | ||
| SubscribeToDatasetRequest | ||
| UnsubscribeFromDatasetRequest | ||
| UpdateRecordsRequest; | ||
|
||
export type ServiceOutputTypes = | ||
| __MetadataBearer | ||
| BulkPublishResponse | ||
| DeleteDatasetResponse | ||
| DescribeDatasetResponse | ||
| DescribeIdentityPoolUsageResponse | ||
| DescribeIdentityUsageResponse | ||
| GetBulkPublishDetailsResponse | ||
| GetCognitoEventsResponse | ||
| GetIdentityPoolConfigurationResponse | ||
| ListDatasetsResponse | ||
| ListIdentityPoolUsageResponse | ||
| ListRecordsResponse | ||
| RegisterDeviceResponse | ||
| SetIdentityPoolConfigurationResponse | ||
| SubscribeToDatasetResponse | ||
| UnsubscribeFromDatasetResponse | ||
| UpdateRecordsResponse; | ||
|
||
export interface ClientDefaults | ||
extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { | ||
/** | ||
* The HTTP handler to use. Fetch in browser and Https in Nodejs. | ||
*/ | ||
requestHandler?: __HttpHandler; | ||
|
||
/** | ||
* A constructor for a class implementing the @aws-sdk/types.Hash interface | ||
* that computes the SHA-256 HMAC or checksum of a string or binary buffer. | ||
*/ | ||
sha256?: __HashConstructor; | ||
|
||
/** | ||
* The function that will be used to convert strings into HTTP endpoints. | ||
*/ | ||
urlParser?: __UrlParser; | ||
|
||
/** | ||
* A function that can calculate the length of a request body. | ||
*/ | ||
bodyLengthChecker?: (body: any) => number | undefined; | ||
|
||
/** | ||
* A function that converts a stream into an array of bytes. | ||
*/ | ||
streamCollector?: __StreamCollector; | ||
|
||
/** | ||
* The function that will be used to convert a base64-encoded string to a byte array | ||
*/ | ||
base64Decoder?: __Decoder; | ||
|
||
/** | ||
* The function that will be used to convert binary data to a base64-encoded string | ||
*/ | ||
base64Encoder?: __Encoder; | ||
|
||
/** | ||
* The function that will be used to convert a UTF8-encoded string to a byte array | ||
*/ | ||
utf8Decoder?: __Decoder; | ||
|
||
/** | ||
* The function that will be used to convert binary data to a UTF-8 encoded string | ||
*/ | ||
utf8Encoder?: __Encoder; | ||
|
||
/** | ||
* The string that will be used to populate default value in 'User-Agent' header | ||
*/ | ||
defaultUserAgent?: string; | ||
|
||
/** | ||
* The runtime environment | ||
*/ | ||
runtime?: string; | ||
|
||
/** | ||
* The service name with which to sign requests. | ||
*/ | ||
signingName?: string; | ||
|
||
/** | ||
* Default credentials provider; Not available in browser runtime | ||
*/ | ||
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; | ||
|
||
/** | ||
* Provider function that return promise of a region string | ||
*/ | ||
regionDefaultProvider?: (input: any) => __Provider<string>; | ||
|
||
/** | ||