@logto/connector-aws-ses 1.1.2 → 1.2.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/lib/index.js +227 -14
- package/lib/index.js.map +1 -0
- package/package.json +10 -15
- package/lib/constant.d.ts +0 -2
- package/lib/date-utils-vaX2R5qo.js +0 -102
- package/lib/defaultRoleAssumers-DMJuO6rb.js +0 -3220
- package/lib/index-BjiMjUem.js +0 -290
- package/lib/index-BoQzAHHB.js +0 -355
- package/lib/index-CMob0Rvo.js +0 -40
- package/lib/index-Cq0GQt9c.js +0 -58
- package/lib/index-DIAzYdwQ.js +0 -77
- package/lib/index-DIymHkFl.js +0 -218
- package/lib/index-DaduCA7X.js +0 -160
- package/lib/index-Dh6q8yRM.js +0 -14
- package/lib/index-s7VGoewj.js +0 -5778
- package/lib/index.d.ts +0 -3
- package/lib/loadSso-ChzknlEd.js +0 -592
- package/lib/loadSsoOidc-RJkBDJ78.js +0 -890
- package/lib/loadSts-CqVZgkwk.js +0 -17
- package/lib/loadSts-_S-bg8by.js +0 -17
- package/lib/mock.d.ts +0 -11
- package/lib/noAuth-NfiqQHEa.js +0 -9
- package/lib/parseKnownFiles-DjQIrDWV.js +0 -23
- package/lib/types.d.ts +0 -76
- package/lib/utils.d.ts +0 -7
package/lib/loadSts-CqVZgkwk.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { g as getDefaultRoleAssumer } from './defaultRoleAssumers-DMJuO6rb.js';
|
|
2
|
-
import 'os';
|
|
3
|
-
import 'path';
|
|
4
|
-
import 'crypto';
|
|
5
|
-
import 'fs';
|
|
6
|
-
import './index-s7VGoewj.js';
|
|
7
|
-
import '@logto/connector-kit';
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'buffer';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'http';
|
|
12
|
-
import 'https';
|
|
13
|
-
import 'http2';
|
|
14
|
-
import 'util';
|
|
15
|
-
import 'process';
|
|
16
|
-
import './noAuth-NfiqQHEa.js';
|
|
17
|
-
import './date-utils-vaX2R5qo.js';
|
package/lib/loadSts-_S-bg8by.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { a as getDefaultRoleAssumerWithWebIdentity } from './defaultRoleAssumers-DMJuO6rb.js';
|
|
2
|
-
import 'os';
|
|
3
|
-
import 'path';
|
|
4
|
-
import 'crypto';
|
|
5
|
-
import 'fs';
|
|
6
|
-
import './index-s7VGoewj.js';
|
|
7
|
-
import '@logto/connector-kit';
|
|
8
|
-
import 'zod';
|
|
9
|
-
import 'buffer';
|
|
10
|
-
import 'stream';
|
|
11
|
-
import 'http';
|
|
12
|
-
import 'https';
|
|
13
|
-
import 'http2';
|
|
14
|
-
import 'util';
|
|
15
|
-
import 'process';
|
|
16
|
-
import './noAuth-NfiqQHEa.js';
|
|
17
|
-
import './date-utils-vaX2R5qo.js';
|
package/lib/mock.d.ts
DELETED
package/lib/noAuth-NfiqQHEa.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { l as loadSharedConfigFiles } from './index-s7VGoewj.js';
|
|
2
|
-
|
|
3
|
-
const mergeConfigFiles = (...files) => {
|
|
4
|
-
const merged = {};
|
|
5
|
-
for (const file of files) {
|
|
6
|
-
for (const [key, values] of Object.entries(file)) {
|
|
7
|
-
if (merged[key] !== undefined) {
|
|
8
|
-
Object.assign(merged[key], values);
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
merged[key] = values;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return merged;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const parseKnownFiles = async (init) => {
|
|
19
|
-
const parsedFiles = await loadSharedConfigFiles(init);
|
|
20
|
-
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export { parseKnownFiles as p };
|
package/lib/types.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
declare const templateGuard: z.ZodObject<{
|
|
3
|
-
usageType: z.ZodString;
|
|
4
|
-
subject: z.ZodString;
|
|
5
|
-
content: z.ZodString;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
usageType: string;
|
|
8
|
-
subject: string;
|
|
9
|
-
content: string;
|
|
10
|
-
}, {
|
|
11
|
-
usageType: string;
|
|
12
|
-
subject: string;
|
|
13
|
-
content: string;
|
|
14
|
-
}>;
|
|
15
|
-
export type Template = z.infer<typeof templateGuard>;
|
|
16
|
-
export declare const awsSesConfigGuard: z.ZodObject<{
|
|
17
|
-
accessKeyId: z.ZodString;
|
|
18
|
-
accessKeySecret: z.ZodString;
|
|
19
|
-
region: z.ZodString;
|
|
20
|
-
emailAddress: z.ZodOptional<z.ZodString>;
|
|
21
|
-
emailAddressIdentityArn: z.ZodOptional<z.ZodString>;
|
|
22
|
-
templates: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
23
|
-
usageType: z.ZodString;
|
|
24
|
-
subject: z.ZodString;
|
|
25
|
-
content: z.ZodString;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
usageType: string;
|
|
28
|
-
subject: string;
|
|
29
|
-
content: string;
|
|
30
|
-
}, {
|
|
31
|
-
usageType: string;
|
|
32
|
-
subject: string;
|
|
33
|
-
content: string;
|
|
34
|
-
}>, "many">, {
|
|
35
|
-
usageType: string;
|
|
36
|
-
subject: string;
|
|
37
|
-
content: string;
|
|
38
|
-
}[], {
|
|
39
|
-
usageType: string;
|
|
40
|
-
subject: string;
|
|
41
|
-
content: string;
|
|
42
|
-
}[]>;
|
|
43
|
-
feedbackForwardingEmailAddress: z.ZodOptional<z.ZodString>;
|
|
44
|
-
feedbackForwardingEmailAddressIdentityArn: z.ZodOptional<z.ZodString>;
|
|
45
|
-
configurationSetName: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
accessKeyId: string;
|
|
48
|
-
accessKeySecret: string;
|
|
49
|
-
region: string;
|
|
50
|
-
templates: {
|
|
51
|
-
usageType: string;
|
|
52
|
-
subject: string;
|
|
53
|
-
content: string;
|
|
54
|
-
}[];
|
|
55
|
-
emailAddress?: string | undefined;
|
|
56
|
-
emailAddressIdentityArn?: string | undefined;
|
|
57
|
-
feedbackForwardingEmailAddress?: string | undefined;
|
|
58
|
-
feedbackForwardingEmailAddressIdentityArn?: string | undefined;
|
|
59
|
-
configurationSetName?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
accessKeyId: string;
|
|
62
|
-
accessKeySecret: string;
|
|
63
|
-
region: string;
|
|
64
|
-
templates: {
|
|
65
|
-
usageType: string;
|
|
66
|
-
subject: string;
|
|
67
|
-
content: string;
|
|
68
|
-
}[];
|
|
69
|
-
emailAddress?: string | undefined;
|
|
70
|
-
emailAddressIdentityArn?: string | undefined;
|
|
71
|
-
feedbackForwardingEmailAddress?: string | undefined;
|
|
72
|
-
feedbackForwardingEmailAddressIdentityArn?: string | undefined;
|
|
73
|
-
configurationSetName?: string | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
export type AwsSesConfig = z.infer<typeof awsSesConfigGuard>;
|
|
76
|
-
export {};
|
package/lib/utils.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { EmailContent } from '@aws-sdk/client-sesv2';
|
|
2
|
-
import { SendEmailCommand, SESv2Client } from '@aws-sdk/client-sesv2';
|
|
3
|
-
import { type SendMessagePayload } from '@logto/connector-kit';
|
|
4
|
-
import type { AwsSesConfig, Template } from './types.js';
|
|
5
|
-
export declare const makeClient: (accessKeyId: string, secretAccessKey: string, region: string) => SESv2Client;
|
|
6
|
-
export declare const makeEmailContent: (template: Template, payload: SendMessagePayload) => EmailContent;
|
|
7
|
-
export declare const makeCommand: (config: AwsSesConfig, emailContent: EmailContent, to: string) => SendEmailCommand;
|