@effect-aws/client-cognito-identity-provider 1.10.6 → 1.11.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.
- package/dist/cjs/CognitoIdentityProviderClientInstance.d.ts +3 -1
- package/dist/cjs/CognitoIdentityProviderClientInstance.d.ts.map +1 -1
- package/dist/cjs/CognitoIdentityProviderClientInstance.js +6 -4
- package/dist/cjs/CognitoIdentityProviderClientInstance.js.map +1 -1
- package/dist/cjs/CognitoIdentityProviderService.d.ts +33 -9
- package/dist/cjs/CognitoIdentityProviderService.d.ts.map +1 -1
- package/dist/cjs/CognitoIdentityProviderService.js +24 -9
- package/dist/cjs/CognitoIdentityProviderService.js.map +1 -1
- package/dist/cjs/CognitoIdentityProviderServiceConfig.d.ts +2 -1
- package/dist/cjs/CognitoIdentityProviderServiceConfig.d.ts.map +1 -1
- package/dist/cjs/CognitoIdentityProviderServiceConfig.js +34 -9
- package/dist/cjs/CognitoIdentityProviderServiceConfig.js.map +1 -1
- package/dist/cjs/Errors.d.ts +5 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +2 -0
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/dts/CognitoIdentityProviderClientInstance.d.ts +3 -1
- package/dist/dts/CognitoIdentityProviderClientInstance.d.ts.map +1 -1
- package/dist/dts/CognitoIdentityProviderService.d.ts +33 -9
- package/dist/dts/CognitoIdentityProviderService.d.ts.map +1 -1
- package/dist/dts/CognitoIdentityProviderServiceConfig.d.ts +2 -1
- package/dist/dts/CognitoIdentityProviderServiceConfig.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +5 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/CognitoIdentityProviderClientInstance.js +3 -1
- package/dist/esm/CognitoIdentityProviderClientInstance.js.map +1 -1
- package/dist/esm/CognitoIdentityProviderService.js +19 -4
- package/dist/esm/CognitoIdentityProviderService.js.map +1 -1
- package/dist/esm/CognitoIdentityProviderServiceConfig.js +4 -2
- package/dist/esm/CognitoIdentityProviderServiceConfig.js.map +1 -1
- package/dist/esm/Errors.js +2 -0
- package/dist/esm/Errors.js.map +1 -1
- package/package.json +2 -2
- package/src/CognitoIdentityProviderClientInstance.ts +3 -1
- package/src/CognitoIdentityProviderService.ts +227 -4
- package/src/CognitoIdentityProviderServiceConfig.ts +4 -2
- package/src/Errors.ts +7 -1
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
* @since 1.0.0
|
|
3
3
|
*/
|
|
4
4
|
import type { CognitoIdentityProviderClientConfig } from "@aws-sdk/client-cognito-identity-provider";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as FiberRef from "effect/FiberRef";
|
|
7
8
|
import { dual } from "effect/Function";
|
|
8
9
|
import { globalValue } from "effect/GlobalValue";
|
|
10
|
+
import * as Layer from "effect/Layer";
|
|
9
11
|
import type { CognitoIdentityProviderService } from "./CognitoIdentityProviderService.js";
|
|
10
12
|
|
|
11
13
|
/**
|
package/src/Errors.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type {
|
|
2
|
+
AccessDeniedException,
|
|
2
3
|
AliasExistsException,
|
|
3
4
|
CodeDeliveryFailureException,
|
|
4
5
|
CodeMismatchException,
|
|
@@ -11,6 +12,7 @@ import type {
|
|
|
11
12
|
ForbiddenException,
|
|
12
13
|
GroupExistsException,
|
|
13
14
|
InternalErrorException,
|
|
15
|
+
InternalServerException,
|
|
14
16
|
InvalidEmailRoleAccessPolicyException,
|
|
15
17
|
InvalidLambdaResponseException,
|
|
16
18
|
InvalidOAuthFlowException,
|
|
@@ -55,9 +57,10 @@ import type {
|
|
|
55
57
|
WebAuthnOriginNotAllowedException,
|
|
56
58
|
WebAuthnRelyingPartyMismatchException,
|
|
57
59
|
} from "@aws-sdk/client-cognito-identity-provider";
|
|
58
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
60
|
+
import type { TaggedException } from "@effect-aws/commons/Errors";
|
|
59
61
|
|
|
60
62
|
export const AllServiceErrors = [
|
|
63
|
+
"AccessDeniedException",
|
|
61
64
|
"AliasExistsException",
|
|
62
65
|
"CodeDeliveryFailureException",
|
|
63
66
|
"CodeMismatchException",
|
|
@@ -70,6 +73,7 @@ export const AllServiceErrors = [
|
|
|
70
73
|
"ForbiddenException",
|
|
71
74
|
"GroupExistsException",
|
|
72
75
|
"InternalErrorException",
|
|
76
|
+
"InternalServerException",
|
|
73
77
|
"InvalidEmailRoleAccessPolicyException",
|
|
74
78
|
"InvalidLambdaResponseException",
|
|
75
79
|
"InvalidOAuthFlowException",
|
|
@@ -115,6 +119,7 @@ export const AllServiceErrors = [
|
|
|
115
119
|
"WebAuthnRelyingPartyMismatchException",
|
|
116
120
|
] as const;
|
|
117
121
|
|
|
122
|
+
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
118
123
|
export type AliasExistsError = TaggedException<AliasExistsException>;
|
|
119
124
|
export type CodeDeliveryFailureError = TaggedException<CodeDeliveryFailureException>;
|
|
120
125
|
export type CodeMismatchError = TaggedException<CodeMismatchException>;
|
|
@@ -127,6 +132,7 @@ export type FeatureUnavailableInTierError = TaggedException<FeatureUnavailableIn
|
|
|
127
132
|
export type ForbiddenError = TaggedException<ForbiddenException>;
|
|
128
133
|
export type GroupExistsError = TaggedException<GroupExistsException>;
|
|
129
134
|
export type InternalError = TaggedException<InternalErrorException>;
|
|
135
|
+
export type InternalServerError = TaggedException<InternalServerException>;
|
|
130
136
|
export type InvalidEmailRoleAccessPolicyError = TaggedException<InvalidEmailRoleAccessPolicyException>;
|
|
131
137
|
export type InvalidLambdaResponseError = TaggedException<InvalidLambdaResponseException>;
|
|
132
138
|
export type InvalidOAuthFlowError = TaggedException<InvalidOAuthFlowException>;
|