@logto/connector-aws-ses 1.0.1 → 1.0.2
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/LICENSE +0 -6
- package/lib/index.js +5 -31
- package/lib/types.d.ts +6 -6
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
Portions of this software are licensed as follows:
|
|
2
|
-
|
|
3
|
-
* All content that resides under the "packages/cloud" directory of this repository, if that directory exists, is licensed under the license defined in "packages/cloud/LICENSE" (Elastic-2.0).
|
|
4
|
-
* All third party components incorporated into this software are licensed under the original license provided by the owner of the applicable component.
|
|
5
|
-
* Content outside of the above mentioned directories or restrictions above is available under the "MPL-2.0" license as defined below.
|
|
6
|
-
|
|
7
1
|
Mozilla Public License Version 2.0
|
|
8
2
|
==================================
|
|
9
3
|
|
package/lib/index.js
CHANGED
|
@@ -1009,7 +1009,7 @@ let TooManyRequestsException$1 = class TooManyRequestsException extends SESv2Ser
|
|
|
1009
1009
|
});
|
|
1010
1010
|
this.name = "TooManyRequestsException";
|
|
1011
1011
|
this.$fault = "client";
|
|
1012
|
-
Object.setPrototypeOf(this, TooManyRequestsException
|
|
1012
|
+
Object.setPrototypeOf(this, TooManyRequestsException.prototype);
|
|
1013
1013
|
}
|
|
1014
1014
|
};
|
|
1015
1015
|
var BehaviorOnMxFailure;
|
|
@@ -3108,7 +3108,7 @@ let ExpiredTokenException$1 = class ExpiredTokenException extends STSServiceExce
|
|
|
3108
3108
|
});
|
|
3109
3109
|
this.name = "ExpiredTokenException";
|
|
3110
3110
|
this.$fault = "client";
|
|
3111
|
-
Object.setPrototypeOf(this, ExpiredTokenException
|
|
3111
|
+
Object.setPrototypeOf(this, ExpiredTokenException.prototype);
|
|
3112
3112
|
}
|
|
3113
3113
|
};
|
|
3114
3114
|
class MalformedPolicyDocumentException extends STSServiceException {
|
|
@@ -3183,18 +3183,6 @@ class IDPCommunicationErrorException extends STSServiceException {
|
|
|
3183
3183
|
Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype);
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
|
-
class InvalidAuthorizationMessageException extends STSServiceException {
|
|
3187
|
-
constructor(opts) {
|
|
3188
|
-
super({
|
|
3189
|
-
name: "InvalidAuthorizationMessageException",
|
|
3190
|
-
$fault: "client",
|
|
3191
|
-
...opts,
|
|
3192
|
-
});
|
|
3193
|
-
this.name = "InvalidAuthorizationMessageException";
|
|
3194
|
-
this.$fault = "client";
|
|
3195
|
-
Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype);
|
|
3196
|
-
}
|
|
3197
|
-
}
|
|
3198
3186
|
const AssumeRoleRequestFilterSensitiveLog = (obj) => ({
|
|
3199
3187
|
...obj,
|
|
3200
3188
|
});
|
|
@@ -3283,7 +3271,7 @@ var util$2 = {};
|
|
|
3283
3271
|
|
|
3284
3272
|
exports.isName = isName;
|
|
3285
3273
|
exports.getAllMatches = getAllMatches;
|
|
3286
|
-
exports.nameRegexp = nameRegexp;
|
|
3274
|
+
exports.nameRegexp = nameRegexp;
|
|
3287
3275
|
} (util$2));
|
|
3288
3276
|
|
|
3289
3277
|
const util$1 = util$2;
|
|
@@ -6489,7 +6477,7 @@ let InvalidRequestException$1 = class InvalidRequestException extends SSOService
|
|
|
6489
6477
|
});
|
|
6490
6478
|
this.name = "InvalidRequestException";
|
|
6491
6479
|
this.$fault = "client";
|
|
6492
|
-
Object.setPrototypeOf(this, InvalidRequestException
|
|
6480
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
6493
6481
|
}
|
|
6494
6482
|
};
|
|
6495
6483
|
class ResourceNotFoundException extends SSOServiceException {
|
|
@@ -8501,20 +8489,6 @@ class UnsupportedGrantTypeException extends SSOOIDCServiceException {
|
|
|
8501
8489
|
this.error_description = opts.error_description;
|
|
8502
8490
|
}
|
|
8503
8491
|
}
|
|
8504
|
-
class InvalidClientMetadataException extends SSOOIDCServiceException {
|
|
8505
|
-
constructor(opts) {
|
|
8506
|
-
super({
|
|
8507
|
-
name: "InvalidClientMetadataException",
|
|
8508
|
-
$fault: "client",
|
|
8509
|
-
...opts,
|
|
8510
|
-
});
|
|
8511
|
-
this.name = "InvalidClientMetadataException";
|
|
8512
|
-
this.$fault = "client";
|
|
8513
|
-
Object.setPrototypeOf(this, InvalidClientMetadataException.prototype);
|
|
8514
|
-
this.error = opts.error;
|
|
8515
|
-
this.error_description = opts.error_description;
|
|
8516
|
-
}
|
|
8517
|
-
}
|
|
8518
8492
|
const CreateTokenRequestFilterSensitiveLog = (obj) => ({
|
|
8519
8493
|
...obj,
|
|
8520
8494
|
});
|
|
@@ -11303,7 +11277,7 @@ const makeEmailContent = (template, payload) => {
|
|
|
11303
11277
|
Body: {
|
|
11304
11278
|
Html: {
|
|
11305
11279
|
Data: typeof payload.code === 'string'
|
|
11306
|
-
? template.content.
|
|
11280
|
+
? template.content.replaceAll('{{code}}', payload.code)
|
|
11307
11281
|
: template.content,
|
|
11308
11282
|
},
|
|
11309
11283
|
},
|
package/lib/types.d.ts
CHANGED
|
@@ -44,11 +44,6 @@ export declare const awsSesConfigGuard: z.ZodObject<{
|
|
|
44
44
|
feedbackForwardingEmailAddressIdentityArn: z.ZodOptional<z.ZodString>;
|
|
45
45
|
configurationSetName: z.ZodOptional<z.ZodString>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
emailAddress?: string | undefined;
|
|
48
|
-
emailAddressIdentityArn?: string | undefined;
|
|
49
|
-
feedbackForwardingEmailAddress?: string | undefined;
|
|
50
|
-
feedbackForwardingEmailAddressIdentityArn?: string | undefined;
|
|
51
|
-
configurationSetName?: string | undefined;
|
|
52
47
|
accessKeyId: string;
|
|
53
48
|
accessKeySecret: string;
|
|
54
49
|
region: string;
|
|
@@ -57,12 +52,12 @@ export declare const awsSesConfigGuard: z.ZodObject<{
|
|
|
57
52
|
subject: string;
|
|
58
53
|
content: string;
|
|
59
54
|
}[];
|
|
60
|
-
}, {
|
|
61
55
|
emailAddress?: string | undefined;
|
|
62
56
|
emailAddressIdentityArn?: string | undefined;
|
|
63
57
|
feedbackForwardingEmailAddress?: string | undefined;
|
|
64
58
|
feedbackForwardingEmailAddressIdentityArn?: string | undefined;
|
|
65
59
|
configurationSetName?: string | undefined;
|
|
60
|
+
}, {
|
|
66
61
|
accessKeyId: string;
|
|
67
62
|
accessKeySecret: string;
|
|
68
63
|
region: string;
|
|
@@ -71,6 +66,11 @@ export declare const awsSesConfigGuard: z.ZodObject<{
|
|
|
71
66
|
subject: string;
|
|
72
67
|
content: string;
|
|
73
68
|
}[];
|
|
69
|
+
emailAddress?: string | undefined;
|
|
70
|
+
emailAddressIdentityArn?: string | undefined;
|
|
71
|
+
feedbackForwardingEmailAddress?: string | undefined;
|
|
72
|
+
feedbackForwardingEmailAddressIdentityArn?: string | undefined;
|
|
73
|
+
configurationSetName?: string | undefined;
|
|
74
74
|
}>;
|
|
75
75
|
export type AwsSesConfig = z.infer<typeof awsSesConfigGuard>;
|
|
76
76
|
export type Payload = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/connector-aws-ses",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Logto Connector for Amazon SES",
|
|
5
5
|
"author": "Jeff <admin@breadth.app>",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@logto/connector-kit": "^
|
|
7
|
+
"@logto/connector-kit": "^2.0.0",
|
|
8
8
|
"@aws-sdk/client-sesv2": "^3.224.0",
|
|
9
9
|
"@aws-sdk/types": "^3.226.0"
|
|
10
10
|
},
|