serverless-spy 0.0.3 → 0.0.6
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.
- package/.jsii +3 -2
- package/lib/ServerlessSpy.js +1 -1
- package/listener/createServerlessSpyListener.ts +12 -2
- package/listener/index.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/CHANGELOG.md +4150 -0
- package/node_modules/@aws-sdk/client-cognito-identity/LICENSE +201 -0
- package/node_modules/@aws-sdk/client-cognito-identity/README.md +219 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentity.js +352 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/CognitoIdentityClient.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/CreateIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DeleteIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/DescribeIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetCredentialsForIdentityCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetIdentityPoolRolesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/GetPrincipalTagAttributeMapCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListIdentityPoolsCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/ListTagsForResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/LookupDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/MergeDeveloperIdentitiesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetIdentityPoolRolesCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/SetPrincipalTagAttributeMapCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/TagResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkDeveloperIdentityCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UnlinkIdentityCommand.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UntagResourceCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/UpdateIdentityPoolCommand.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/commands/index.js +26 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/endpoints.js +167 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/CognitoIdentityServiceException.js +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/index.js +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/models/models_0.js +354 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/Interfaces.js +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/ListIdentityPoolsPaginator.js +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/pagination/index.js +5 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/protocols/Aws_json1_1.js +2236 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.browser.js +45 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.js +52 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.native.js +16 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-cjs/runtimeConfig.shared.js +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentity.js +355 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/CognitoIdentityClient.js +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/CreateIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DeleteIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/DescribeIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetCredentialsForIdentityCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetIdentityPoolRolesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetOpenIdTokenForDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/GetPrincipalTagAttributeMapCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListIdentityPoolsCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/ListTagsForResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/LookupDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/MergeDeveloperIdentitiesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetIdentityPoolRolesCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/SetPrincipalTagAttributeMapCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/TagResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkDeveloperIdentityCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UnlinkIdentityCommand.js +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UntagResourceCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/UpdateIdentityPoolCommand.js +41 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/commands/index.js +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/endpoints.js +163 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/index.js +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/CognitoIdentityServiceException.js +12 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/index.js +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/models/models_0.js +202 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/Interfaces.js +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/ListIdentityPoolsPaginator.js +75 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/pagination/index.js +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/protocols/Aws_json1_1.js +2662 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.browser.js +26 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.js +30 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.native.js +8 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-es/runtimeConfig.shared.js +13 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentity.d.ts +295 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/CognitoIdentityClient.d.ts +180 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/CreateIdentityPoolCommand.d.ts +61 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentitiesCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DeleteIdentityPoolCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/DescribeIdentityPoolCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetCredentialsForIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdCommand.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetIdentityPoolRolesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/GetPrincipalTagAttributeMapCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentitiesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListIdentityPoolsCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/LookupDeveloperIdentityCommand.d.ts +51 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/MergeDeveloperIdentitiesCommand.d.ts +47 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetIdentityPoolRolesCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/SetPrincipalTagAttributeMapCommand.d.ts +35 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/TagResourceCommand.d.ts +49 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkDeveloperIdentityCommand.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UnlinkIdentityCommand.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UntagResourceCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/UpdateIdentityPoolCommand.d.ts +36 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/commands/index.d.ts +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/endpoints.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/CognitoIdentityServiceException.d.ts +10 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/models/models_0.d.ts +1166 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/Interfaces.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/protocols/Aws_json1_1.d.ts +71 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.browser.d.ts +40 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.d.ts +40 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.native.d.ts +39 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/runtimeConfig.shared.d.ts +13 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentity.d.ts +120 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/CognitoIdentityClient.d.ts +96 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/CreateIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DeleteIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/DescribeIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetCredentialsForIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetIdentityPoolRolesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetOpenIdTokenForDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/GetPrincipalTagAttributeMapCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListIdentityPoolsCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/LookupDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/MergeDeveloperIdentitiesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetIdentityPoolRolesCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/SetPrincipalTagAttributeMapCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkDeveloperIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UnlinkIdentityCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/UpdateIdentityPoolCommand.d.ts +17 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/commands/index.d.ts +23 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/index.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/CognitoIdentityServiceException.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/index.d.ts +1 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/models/models_0.d.ts +567 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/ListIdentityPoolsPaginator.d.ts +4 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +71 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/node_modules/@aws-sdk/client-cognito-identity/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/node_modules/@aws-sdk/client-cognito-identity/package.json +107 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/CHANGELOG.md +4874 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/README.md +11 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/CognitoProviderParameters.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/InMemoryStorage.js +21 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/IndexedDbStorage.js +71 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Logins.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/Storage.js +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentity.js +32 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/fromCognitoIdentityPool.js +42 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/localStorage.js +16 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/resolveLogins.js +19 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/CognitoProviderParameters.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/InMemoryStorage.js +20 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/IndexedDbStorage.js +70 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Logins.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/Storage.js +1 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentity.js +50 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/fromCognitoIdentityPool.js +73 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/index.js +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/localStorage.js +12 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-es/resolveLogins.js +19 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/CognitoProviderParameters.d.ts +25 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/InMemoryStorage.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/IndexedDbStorage.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Logins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/Storage.d.ts +14 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentity.d.ts +23 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/fromCognitoIdentityPool.d.ts +44 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/localStorage.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/resolveLogins.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/CognitoProviderParameters.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/InMemoryStorage.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/IndexedDbStorage.d.ts +10 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Logins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/Storage.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentity.d.ts +13 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +15 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/index.d.ts +5 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/localStorage.d.ts +2 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/ts3.4/resolveLogins.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-provider-cognito-identity/package.json +59 -0
- package/node_modules/@aws-sdk/credential-providers/CHANGELOG.md +570 -0
- package/node_modules/@aws-sdk/credential-providers/LICENSE +201 -0
- package/node_modules/@aws-sdk/credential-providers/README.md +663 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentity.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromCognitoIdentityPool.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromEnv.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromIni.js +14 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromInstanceMetadata.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromNodeProviderChain.js +14 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromProcess.js +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromSSO.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTemporaryCredentials.js +31 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromTokenFile.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/fromWebToken.js +13 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.js +15 -0
- package/node_modules/@aws-sdk/credential-providers/dist-cjs/index.web.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentity.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromCognitoIdentityPool.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromContainerMetadata.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromEnv.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromIni.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromInstanceMetadata.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromNodeProviderChain.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromProcess.js +2 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromSSO.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromTemporaryCredentials.js +40 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromTokenFile.js +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/fromWebToken.js +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/index.js +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-es/index.web.js +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentity.d.ts +45 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromCognitoIdentityPool.d.ts +46 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromContainerMetadata.d.ts +24 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromEnv.d.ts +26 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromIni.d.ts +43 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromInstanceMetadata.d.ts +22 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromNodeProviderChain.d.ts +29 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromProcess.d.ts +28 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromSSO.d.ts +48 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromTemporaryCredentials.d.ts +48 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromTokenFile.d.ts +32 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/fromWebToken.d.ts +41 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/index.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/index.web.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentity.d.ts +9 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromCognitoIdentityPool.d.ts +7 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromContainerMetadata.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromEnv.d.ts +3 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromIni.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromInstanceMetadata.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromNodeProviderChain.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromProcess.d.ts +6 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromSSO.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTemporaryCredentials.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromTokenFile.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/fromWebToken.d.ts +8 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.d.ts +12 -0
- package/node_modules/@aws-sdk/credential-providers/dist-types/ts3.4/index.web.d.ts +4 -0
- package/node_modules/@aws-sdk/credential-providers/package.json +78 -0
- package/package.json +4 -16
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { __awaiter, __generator } from "tslib";
|
|
2
|
+
import { GetIdCommand } from "@aws-sdk/client-cognito-identity";
|
|
3
|
+
import { CredentialsProviderError } from "@aws-sdk/property-provider";
|
|
4
|
+
import { fromCognitoIdentity } from "./fromCognitoIdentity";
|
|
5
|
+
import { localStorage } from "./localStorage";
|
|
6
|
+
import { resolveLogins } from "./resolveLogins";
|
|
7
|
+
export function fromCognitoIdentityPool(_a) {
|
|
8
|
+
var _this = this;
|
|
9
|
+
var accountId = _a.accountId, _b = _a.cache, cache = _b === void 0 ? localStorage() : _b, client = _a.client, customRoleArn = _a.customRoleArn, identityPoolId = _a.identityPoolId, logins = _a.logins, _c = _a.userIdentifier, userIdentifier = _c === void 0 ? !logins || Object.keys(logins).length === 0 ? "ANONYMOUS" : undefined : _c;
|
|
10
|
+
var cacheKey = userIdentifier ? "aws:cognito-identity-credentials:".concat(identityPoolId, ":").concat(userIdentifier) : undefined;
|
|
11
|
+
var provider = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
12
|
+
var identityId, _a, _b, IdentityId, _c, _d, _e, _f;
|
|
13
|
+
var _g;
|
|
14
|
+
return __generator(this, function (_h) {
|
|
15
|
+
switch (_h.label) {
|
|
16
|
+
case 0:
|
|
17
|
+
_a = cacheKey;
|
|
18
|
+
if (!_a) return [3, 2];
|
|
19
|
+
return [4, cache.getItem(cacheKey)];
|
|
20
|
+
case 1:
|
|
21
|
+
_a = (_h.sent());
|
|
22
|
+
_h.label = 2;
|
|
23
|
+
case 2:
|
|
24
|
+
identityId = _a;
|
|
25
|
+
if (!!identityId) return [3, 7];
|
|
26
|
+
_d = (_c = client).send;
|
|
27
|
+
_e = GetIdCommand.bind;
|
|
28
|
+
_g = {
|
|
29
|
+
AccountId: accountId,
|
|
30
|
+
IdentityPoolId: identityPoolId
|
|
31
|
+
};
|
|
32
|
+
if (!logins) return [3, 4];
|
|
33
|
+
return [4, resolveLogins(logins)];
|
|
34
|
+
case 3:
|
|
35
|
+
_f = _h.sent();
|
|
36
|
+
return [3, 5];
|
|
37
|
+
case 4:
|
|
38
|
+
_f = undefined;
|
|
39
|
+
_h.label = 5;
|
|
40
|
+
case 5: return [4, _d.apply(_c, [new (_e.apply(GetIdCommand, [void 0, (_g.Logins = _f,
|
|
41
|
+
_g)]))()])];
|
|
42
|
+
case 6:
|
|
43
|
+
_b = (_h.sent()).IdentityId, IdentityId = _b === void 0 ? throwOnMissingId() : _b;
|
|
44
|
+
identityId = IdentityId;
|
|
45
|
+
if (cacheKey) {
|
|
46
|
+
Promise.resolve(cache.setItem(cacheKey, identityId)).catch(function () { });
|
|
47
|
+
}
|
|
48
|
+
_h.label = 7;
|
|
49
|
+
case 7:
|
|
50
|
+
provider = fromCognitoIdentity({
|
|
51
|
+
client: client,
|
|
52
|
+
customRoleArn: customRoleArn,
|
|
53
|
+
logins: logins,
|
|
54
|
+
identityId: identityId,
|
|
55
|
+
});
|
|
56
|
+
return [2, provider()];
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
60
|
+
return function () {
|
|
61
|
+
return provider().catch(function (err) { return __awaiter(_this, void 0, void 0, function () {
|
|
62
|
+
return __generator(this, function (_a) {
|
|
63
|
+
if (cacheKey) {
|
|
64
|
+
Promise.resolve(cache.removeItem(cacheKey)).catch(function () { });
|
|
65
|
+
}
|
|
66
|
+
throw err;
|
|
67
|
+
});
|
|
68
|
+
}); });
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function throwOnMissingId() {
|
|
72
|
+
throw new CredentialsProviderError("Response from Amazon Cognito contained no identity ID");
|
|
73
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IndexedDbStorage } from "./IndexedDbStorage";
|
|
2
|
+
import { InMemoryStorage } from "./InMemoryStorage";
|
|
3
|
+
var inMemoryStorage = new InMemoryStorage();
|
|
4
|
+
export function localStorage() {
|
|
5
|
+
if (typeof self === "object" && self.indexedDB) {
|
|
6
|
+
return new IndexedDbStorage();
|
|
7
|
+
}
|
|
8
|
+
if (typeof window === "object" && window.localStorage) {
|
|
9
|
+
return window.localStorage;
|
|
10
|
+
}
|
|
11
|
+
return inMemoryStorage;
|
|
12
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __read } from "tslib";
|
|
2
|
+
export function resolveLogins(logins) {
|
|
3
|
+
return Promise.all(Object.keys(logins).reduce(function (arr, name) {
|
|
4
|
+
var tokenOrProvider = logins[name];
|
|
5
|
+
if (typeof tokenOrProvider === "string") {
|
|
6
|
+
arr.push([name, tokenOrProvider]);
|
|
7
|
+
}
|
|
8
|
+
else {
|
|
9
|
+
arr.push(tokenOrProvider().then(function (token) { return [name, token]; }));
|
|
10
|
+
}
|
|
11
|
+
return arr;
|
|
12
|
+
}, [])).then(function (resolvedPairs) {
|
|
13
|
+
return resolvedPairs.reduce(function (logins, _a) {
|
|
14
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
15
|
+
logins[key] = value;
|
|
16
|
+
return logins;
|
|
17
|
+
}, {});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CognitoIdentityClient } from "@aws-sdk/client-cognito-identity";
|
|
2
|
+
import { Logins } from "./Logins";
|
|
3
|
+
export interface CognitoProviderParameters {
|
|
4
|
+
/**
|
|
5
|
+
* The SDK client with which the credential provider will contact the Amazon
|
|
6
|
+
* Cognito service.
|
|
7
|
+
*/
|
|
8
|
+
client: CognitoIdentityClient;
|
|
9
|
+
/**
|
|
10
|
+
* The Amazon Resource Name (ARN) of the role to be assumed when multiple
|
|
11
|
+
* roles were received in the token from the identity provider. For example,
|
|
12
|
+
* a SAML-based identity provider. This parameter is optional for identity
|
|
13
|
+
* providers that do not support role customization.
|
|
14
|
+
*/
|
|
15
|
+
customRoleArn?: string;
|
|
16
|
+
/**
|
|
17
|
+
* A set of key-value pairs that map external identity provider names to
|
|
18
|
+
* login tokens or functions that return promises for login tokens. The
|
|
19
|
+
* latter should be used when login tokens must be periodically refreshed.
|
|
20
|
+
*
|
|
21
|
+
* Logins should not be specified when trying to get credentials for an
|
|
22
|
+
* unauthenticated identity.
|
|
23
|
+
*/
|
|
24
|
+
logins?: Logins;
|
|
25
|
+
}
|
package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/InMemoryStorage.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Storage } from "./Storage";
|
|
2
|
+
export declare class InMemoryStorage implements Storage {
|
|
3
|
+
private store;
|
|
4
|
+
constructor(store?: Record<string, string>);
|
|
5
|
+
getItem(key: string): string | null;
|
|
6
|
+
removeItem(key: string): void;
|
|
7
|
+
setItem(key: string, value: string): void;
|
|
8
|
+
}
|
package/node_modules/@aws-sdk/credential-provider-cognito-identity/dist-types/IndexedDbStorage.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Storage } from "./Storage";
|
|
2
|
+
export declare class IndexedDbStorage implements Storage {
|
|
3
|
+
private readonly dbName;
|
|
4
|
+
constructor(dbName?: string);
|
|
5
|
+
getItem(key: string): Promise<string | null>;
|
|
6
|
+
removeItem(key: string): Promise<void>;
|
|
7
|
+
setItem(id: string, value: string): Promise<void>;
|
|
8
|
+
private getDb;
|
|
9
|
+
private withObjectStore;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A subset of the Storage interface defined in the WHATWG HTML specification.
|
|
3
|
+
* Access by index is not supported, as it cannot be replicated without Proxy
|
|
4
|
+
* objects.
|
|
5
|
+
*
|
|
6
|
+
* The interface has been augmented to support asynchronous storage
|
|
7
|
+
*
|
|
8
|
+
* @see https://html.spec.whatwg.org/multipage/webstorage.html#the-storage-interface
|
|
9
|
+
*/
|
|
10
|
+
export interface Storage {
|
|
11
|
+
getItem(key: string): string | null | Promise<string | null>;
|
|
12
|
+
removeItem(key: string): void | Promise<void>;
|
|
13
|
+
setItem(key: string, data: string): void | Promise<void>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Credentials, Provider } from "@aws-sdk/types";
|
|
2
|
+
import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
3
|
+
export interface CognitoIdentityCredentials extends Credentials {
|
|
4
|
+
/**
|
|
5
|
+
* The Cognito ID returned by the last call to AWS.CognitoIdentity.getOpenIdToken().
|
|
6
|
+
*/
|
|
7
|
+
identityId: string;
|
|
8
|
+
}
|
|
9
|
+
export declare type CognitoIdentityCredentialProvider = Provider<CognitoIdentityCredentials>;
|
|
10
|
+
/**
|
|
11
|
+
* Retrieves temporary AWS credentials using Amazon Cognito's
|
|
12
|
+
* `GetCredentialsForIdentity` operation.
|
|
13
|
+
*
|
|
14
|
+
* Results from this function call are not cached internally.
|
|
15
|
+
*/
|
|
16
|
+
export declare function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider;
|
|
17
|
+
export interface FromCognitoIdentityParameters extends CognitoProviderParameters {
|
|
18
|
+
/**
|
|
19
|
+
* The unique identifier for the identity against which credentials will be
|
|
20
|
+
* issued.
|
|
21
|
+
*/
|
|
22
|
+
identityId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
2
|
+
import { CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
|
|
3
|
+
import { Storage } from "./Storage";
|
|
4
|
+
/**
|
|
5
|
+
* Retrieves or generates a unique identifier using Amazon Cognito's `GetId`
|
|
6
|
+
* operation, then generates temporary AWS credentials using Amazon Cognito's
|
|
7
|
+
* `GetCredentialsForIdentity` operation.
|
|
8
|
+
*
|
|
9
|
+
* Results from `GetId` are cached internally, but results from
|
|
10
|
+
* `GetCredentialsForIdentity` are not.
|
|
11
|
+
*/
|
|
12
|
+
export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier, }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider;
|
|
13
|
+
export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters {
|
|
14
|
+
/**
|
|
15
|
+
* A standard AWS account ID (9+ digits).
|
|
16
|
+
*/
|
|
17
|
+
accountId?: string;
|
|
18
|
+
/**
|
|
19
|
+
* A cache in which to store resolved Cognito IdentityIds. If not supplied,
|
|
20
|
+
* the credential provider will attempt to store IdentityIds in one of the
|
|
21
|
+
* following (in order of preference):
|
|
22
|
+
* 1. IndexedDB
|
|
23
|
+
* 2. LocalStorage
|
|
24
|
+
* 3. An in-memory cache object that will not persist between pages.
|
|
25
|
+
*
|
|
26
|
+
* IndexedDB is preferred to maximize data sharing between top-level
|
|
27
|
+
* browsing contexts and web workers.
|
|
28
|
+
*
|
|
29
|
+
* The provider will not cache IdentityIds of authenticated users unless a
|
|
30
|
+
* separate `userIdentitifer` parameter is supplied.
|
|
31
|
+
*/
|
|
32
|
+
cache?: Storage;
|
|
33
|
+
/**
|
|
34
|
+
* The unique identifier for the identity pool from which an identity should
|
|
35
|
+
* be retrieved or generated.
|
|
36
|
+
*/
|
|
37
|
+
identityPoolId: string;
|
|
38
|
+
/**
|
|
39
|
+
* A unique identifier for the user. This is distinct from a Cognito
|
|
40
|
+
* IdentityId and should instead be an identifier meaningful to your
|
|
41
|
+
* application. Used to cache Cognito IdentityIds on a per-user basis.
|
|
42
|
+
*/
|
|
43
|
+
userIdentifier?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Storage } from "./Storage";
|
|
2
|
+
export declare class InMemoryStorage implements Storage {
|
|
3
|
+
private store;
|
|
4
|
+
constructor(store?: Record<string, string>);
|
|
5
|
+
getItem(key: string): string | null;
|
|
6
|
+
removeItem(key: string): void;
|
|
7
|
+
setItem(key: string, value: string): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Storage } from "./Storage";
|
|
2
|
+
export declare class IndexedDbStorage implements Storage {
|
|
3
|
+
private readonly dbName;
|
|
4
|
+
constructor(dbName?: string);
|
|
5
|
+
getItem(key: string): Promise<string | null>;
|
|
6
|
+
removeItem(key: string): Promise<void>;
|
|
7
|
+
setItem(id: string, value: string): Promise<void>;
|
|
8
|
+
private getDb;
|
|
9
|
+
private withObjectStore;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Credentials, Provider } from "@aws-sdk/types";
|
|
2
|
+
import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
3
|
+
export interface CognitoIdentityCredentials extends Credentials {
|
|
4
|
+
|
|
5
|
+
identityId: string;
|
|
6
|
+
}
|
|
7
|
+
export declare type CognitoIdentityCredentialProvider = Provider<CognitoIdentityCredentials>;
|
|
8
|
+
|
|
9
|
+
export declare function fromCognitoIdentity(parameters: FromCognitoIdentityParameters): CognitoIdentityCredentialProvider;
|
|
10
|
+
export interface FromCognitoIdentityParameters extends CognitoProviderParameters {
|
|
11
|
+
|
|
12
|
+
identityId: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CognitoProviderParameters } from "./CognitoProviderParameters";
|
|
2
|
+
import { CognitoIdentityCredentialProvider } from "./fromCognitoIdentity";
|
|
3
|
+
import { Storage } from "./Storage";
|
|
4
|
+
|
|
5
|
+
export declare function fromCognitoIdentityPool({ accountId, cache, client, customRoleArn, identityPoolId, logins, userIdentifier, }: FromCognitoIdentityPoolParameters): CognitoIdentityCredentialProvider;
|
|
6
|
+
export interface FromCognitoIdentityPoolParameters extends CognitoProviderParameters {
|
|
7
|
+
|
|
8
|
+
accountId?: string;
|
|
9
|
+
|
|
10
|
+
cache?: Storage;
|
|
11
|
+
|
|
12
|
+
identityPoolId: string;
|
|
13
|
+
|
|
14
|
+
userIdentifier?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aws-sdk/credential-provider-cognito-identity",
|
|
3
|
+
"version": "3.154.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
6
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
7
|
+
"build:es": "tsc -p tsconfig.es.json",
|
|
8
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
9
|
+
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
10
|
+
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
11
|
+
"test": "jest"
|
|
12
|
+
},
|
|
13
|
+
"main": "./dist-cjs/index.js",
|
|
14
|
+
"module": "./dist-es/index.js",
|
|
15
|
+
"types": "./dist-types/index.d.ts",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"author": {
|
|
18
|
+
"name": "AWS SDK for JavaScript Team",
|
|
19
|
+
"url": "https://aws.amazon.com/javascript/"
|
|
20
|
+
},
|
|
21
|
+
"license": "Apache-2.0",
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@aws-sdk/client-cognito-identity": "3.154.0",
|
|
24
|
+
"@aws-sdk/property-provider": "3.127.0",
|
|
25
|
+
"@aws-sdk/types": "3.127.0",
|
|
26
|
+
"tslib": "^2.3.1"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">= 12.0.0"
|
|
30
|
+
},
|
|
31
|
+
"typesVersions": {
|
|
32
|
+
"<4.0": {
|
|
33
|
+
"dist-types/*": [
|
|
34
|
+
"dist-types/ts3.4/*"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"files": [
|
|
39
|
+
"dist-*"
|
|
40
|
+
],
|
|
41
|
+
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-cognito-identity",
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/aws/aws-sdk-js-v3.git",
|
|
45
|
+
"directory": "packages/credential-provider-cognito-identity"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@tsconfig/recommended": "1.0.1",
|
|
49
|
+
"concurrently": "7.0.0",
|
|
50
|
+
"downlevel-dts": "0.7.0",
|
|
51
|
+
"rimraf": "3.0.2",
|
|
52
|
+
"typedoc": "0.19.2",
|
|
53
|
+
"typescript": "~4.6.2"
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
,"_resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-cognito-identity/-/credential-provider-cognito-identity-3.154.0.tgz"
|
|
57
|
+
,"_integrity": "sha512-19kmtBcoM/vUHMoBv+YiNkvWTVeJc7ZFISjQSEFbWn7ZcUEPTejXa+iy5UmEP1Xe8aEjOWSxx4D+dFBFgF/1kw=="
|
|
58
|
+
,"_from": "@aws-sdk/credential-provider-cognito-identity@3.154.0"
|
|
59
|
+
}
|