@superdurable/connector-amazon-ses 0.1.0 → 0.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/README.md +1 -1
- package/dex-connector.json +955 -2
- package/dist/chunk-WYO3XI32.js +754 -0
- package/dist/connection-Z3og2ZYX.d.ts +519 -0
- package/dist/index.d.ts +832 -9
- package/dist/index.js +1247 -36
- package/dist/mock.d.ts +295 -3
- package/dist/mock.js +730 -3
- package/package.json +3 -3
- package/dist/chunk-6NP3EK7O.js +0 -111
- package/dist/connection-BEfEuNCI.d.ts +0 -73
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { SecretString, CredentialProvider, Mutation, Query, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
/** Connector configuration; omitted fields use manifest defaults. */
|
|
5
|
+
interface Config {
|
|
6
|
+
/** AWS Region code for the email identity, such as eu-west-1. In https://console.aws.amazon.com/ses > Verified identities, use the Region selector; blank uses the displayed default. */
|
|
7
|
+
region?: string;
|
|
8
|
+
/** Optional SES-compatible API root. Blank derives the regional AWS endpoint from region. Override only for a trusted compatible endpoint; local tests may use loopback HTTP. */
|
|
9
|
+
endpoint?: string;
|
|
10
|
+
/** Maximum duration of one GetEmailIdentity request as a positive Go duration such as 15s. Blank uses the displayed default; increase only for a slow network. Runtime value in milliseconds. */
|
|
11
|
+
timeoutMs?: number;
|
|
12
|
+
/** Maximum complete identity metadata response in bytes. Blank uses the displayed default; increase only for unusually large responses. */
|
|
13
|
+
maxResponseBytes?: number;
|
|
14
|
+
}
|
|
15
|
+
/** Runtime schema for manifest configuration. */
|
|
16
|
+
declare const ConfigSchema: z.ZodObject<{
|
|
17
|
+
region: z.ZodOptional<z.ZodString>;
|
|
18
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
19
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxResponseBytes: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
/** Private connector credentials resolved by the host. */
|
|
23
|
+
interface Credentials {
|
|
24
|
+
/** Secret-stored AWS access key ID from https://console.aws.amazon.com/iam > Users > selected user > Security credentials > Access keys > Create access key. Long-term IDs start AKIA and temporary IDs start ASIA. Blank prevents signing. */
|
|
25
|
+
accessKeyId: SecretString;
|
|
26
|
+
/** Secret access key paired with access_key_id, shown once on the IAM Retrieve access keys page. Copy the Value, never the key ID. Blank prevents signing; rotate through IAM. */
|
|
27
|
+
secretAccessKey: SecretString;
|
|
28
|
+
/** Secret session token for temporary ASIA credentials, from AWS STS. Blank means long-term IAM user credentials. Temporary credentials expire; replace all three fields before expiry. */
|
|
29
|
+
sessionToken?: SecretString;
|
|
30
|
+
}
|
|
31
|
+
/** Stored credential material that fails the connector credential checks, so no retry can succeed. */
|
|
32
|
+
declare class CredentialMaterialError extends TypeError {
|
|
33
|
+
constructor(message: string);
|
|
34
|
+
}
|
|
35
|
+
/** Report malformed stored credential material, also behind the SDK provider's decoding TypeError. */
|
|
36
|
+
declare function isCredentialMaterialError(error: unknown): boolean;
|
|
37
|
+
/** Decode private credential fields for the connector. */
|
|
38
|
+
declare function decodeCredentials(value: unknown): Credentials;
|
|
39
|
+
/** Host-owned source of private connector credentials. */
|
|
40
|
+
type CredentialSource = CredentialProvider<Credentials>;
|
|
41
|
+
/** CreateEmailIdentityInput starts verification of one email address or domain. */
|
|
42
|
+
interface CreateEmailIdentityInput {
|
|
43
|
+
/** EmailIdentity is the address or domain to add under SES Console > Verified identities. */
|
|
44
|
+
"emailIdentity": string;
|
|
45
|
+
}
|
|
46
|
+
/** CreatedEmailIdentity describes the identity accepted for verification. */
|
|
47
|
+
interface CreatedEmailIdentity {
|
|
48
|
+
/** Name is the email address or domain. */
|
|
49
|
+
"name": string;
|
|
50
|
+
/** IdentityType is EMAIL_ADDRESS or DOMAIN. */
|
|
51
|
+
"identityType": string;
|
|
52
|
+
/** VerifiedForSending is false until the verification link or DNS records are confirmed. */
|
|
53
|
+
"verifiedForSending": boolean;
|
|
54
|
+
/** DKIMTokens are public CNAME token values for domain verification, when SES supplies them. */
|
|
55
|
+
"dkimTokens"?: Array<string> | undefined;
|
|
56
|
+
}
|
|
57
|
+
/** GetEmailIdentityInput identifies one SES email identity in the configured Region. */
|
|
58
|
+
interface GetEmailIdentityInput {
|
|
59
|
+
"emailIdentity": string;
|
|
60
|
+
}
|
|
61
|
+
/** EmailIdentityDetails returns the name and verification status of an SES email identity. */
|
|
62
|
+
interface EmailIdentityDetails {
|
|
63
|
+
"name": string;
|
|
64
|
+
"verificationStatus": string;
|
|
65
|
+
}
|
|
66
|
+
/** ListEmailIdentitiesInput requests one page of regional identities. */
|
|
67
|
+
interface ListEmailIdentitiesInput {
|
|
68
|
+
/** NextToken continues a previous page; blank starts at the beginning. */
|
|
69
|
+
"nextToken"?: string | undefined;
|
|
70
|
+
/** PageSize is 1 to 1000; zero uses 100. */
|
|
71
|
+
"pageSize"?: number | undefined;
|
|
72
|
+
}
|
|
73
|
+
/** EmailIdentitySummary describes one identity returned by SES. */
|
|
74
|
+
interface EmailIdentitySummary {
|
|
75
|
+
/** Name is the email address or domain. */
|
|
76
|
+
"name": string;
|
|
77
|
+
/** IdentityType is EMAIL_ADDRESS or DOMAIN. */
|
|
78
|
+
"identityType": string;
|
|
79
|
+
/** VerificationStatus is the current SES verification state. */
|
|
80
|
+
"verificationStatus": string;
|
|
81
|
+
/** SendingEnabled reports whether SES permits this identity to send. */
|
|
82
|
+
"sendingEnabled": boolean;
|
|
83
|
+
}
|
|
84
|
+
/** EmailIdentityPage is one bounded page and its continuation token. */
|
|
85
|
+
interface EmailIdentityPage {
|
|
86
|
+
/** Identities holds at most PageSize entries. */
|
|
87
|
+
"identities": Array<EmailIdentitySummary> | null;
|
|
88
|
+
/** NextToken continues the listing; blank means the final page. */
|
|
89
|
+
"nextToken"?: string | undefined;
|
|
90
|
+
}
|
|
91
|
+
/** DeleteEmailIdentityInput names one email or domain identity to remove. */
|
|
92
|
+
interface DeleteEmailIdentityInput {
|
|
93
|
+
/** EmailIdentity is the exact identity shown under SES Verified identities. */
|
|
94
|
+
"emailIdentity": string;
|
|
95
|
+
}
|
|
96
|
+
/** DeletedEmailIdentity identifies the identity SES removed. */
|
|
97
|
+
interface DeletedEmailIdentity {
|
|
98
|
+
/** Name is the email address or domain. */
|
|
99
|
+
"name": string;
|
|
100
|
+
}
|
|
101
|
+
/** SendEmailInput sends one bounded plain text message from a verified identity. */
|
|
102
|
+
interface SendEmailInput {
|
|
103
|
+
/** FromEmailAddress is a verified SES sender shown under Verified identities. */
|
|
104
|
+
"fromEmailAddress": string;
|
|
105
|
+
/** ToEmailAddress is the recipient address; sandbox accounts require a verified recipient. */
|
|
106
|
+
"toEmailAddress": string;
|
|
107
|
+
/** Subject is the UTF-8 email subject, at most 998 bytes. */
|
|
108
|
+
"subject": string;
|
|
109
|
+
/** TextBody is the UTF-8 plain text body, at most 100 KiB. */
|
|
110
|
+
"textBody": string;
|
|
111
|
+
}
|
|
112
|
+
/** SentEmail is the provider message identity returned after SES accepts the send. */
|
|
113
|
+
interface SentEmail {
|
|
114
|
+
/** MessageID is the SES message ID; it does not prove delivery. */
|
|
115
|
+
"messageId": string;
|
|
116
|
+
}
|
|
117
|
+
/** EmailTemplateContent is the subject and text and/or HTML body stored by SES. */
|
|
118
|
+
interface EmailTemplateContent {
|
|
119
|
+
/** Subject is a UTF-8 subject, at most 998 bytes, without a line break. */
|
|
120
|
+
"subject": string;
|
|
121
|
+
/** Text is the UTF-8 plain text body; blank means no text part. */
|
|
122
|
+
"text"?: string | undefined;
|
|
123
|
+
/** HTML is the UTF-8 HTML body; blank means no HTML part. */
|
|
124
|
+
"html"?: string | undefined;
|
|
125
|
+
}
|
|
126
|
+
/** CreateEmailTemplateInput names a new regional template and its complete content. */
|
|
127
|
+
interface CreateEmailTemplateInput {
|
|
128
|
+
/** TemplateName is the new template name. */
|
|
129
|
+
"templateName": string;
|
|
130
|
+
/** Content contains the subject and text and/or HTML body. */
|
|
131
|
+
"content": EmailTemplateContent;
|
|
132
|
+
}
|
|
133
|
+
/** EmailTemplate names one stored template and its complete content. */
|
|
134
|
+
interface EmailTemplate {
|
|
135
|
+
/** Name is the regional SES template name. */
|
|
136
|
+
"name": string;
|
|
137
|
+
/** Content contains its subject and body parts. */
|
|
138
|
+
"content": EmailTemplateContent;
|
|
139
|
+
}
|
|
140
|
+
/** GetEmailTemplateInput names one regional SES template. */
|
|
141
|
+
interface GetEmailTemplateInput {
|
|
142
|
+
/** TemplateName is the exact template name in the SES Console. */
|
|
143
|
+
"templateName": string;
|
|
144
|
+
}
|
|
145
|
+
/** ListEmailTemplatesInput requests one bounded page of regional template names. */
|
|
146
|
+
interface ListEmailTemplatesInput {
|
|
147
|
+
/** NextToken resumes a previous page; blank starts at the beginning. */
|
|
148
|
+
"nextToken"?: string | undefined;
|
|
149
|
+
/** PageSize is 1 to 100; zero uses 10. */
|
|
150
|
+
"pageSize"?: number | undefined;
|
|
151
|
+
}
|
|
152
|
+
/** EmailTemplateSummary identifies one template and its creation time. */
|
|
153
|
+
interface EmailTemplateSummary {
|
|
154
|
+
/** Name is the template name. */
|
|
155
|
+
"name": string;
|
|
156
|
+
/** CreatedAt is the SES creation timestamp. */
|
|
157
|
+
"createdAt": string;
|
|
158
|
+
}
|
|
159
|
+
/** EmailTemplatePage is one bounded page and its continuation token. */
|
|
160
|
+
interface EmailTemplatePage {
|
|
161
|
+
/** Templates holds at most PageSize entries. */
|
|
162
|
+
"templates": Array<EmailTemplateSummary> | null;
|
|
163
|
+
/** NextToken continues the listing; blank means the final page. */
|
|
164
|
+
"nextToken"?: string | undefined;
|
|
165
|
+
}
|
|
166
|
+
/** UpdateEmailTemplateInput replaces one stored template's complete content. */
|
|
167
|
+
interface UpdateEmailTemplateInput {
|
|
168
|
+
/** TemplateName is the exact regional template name. */
|
|
169
|
+
"templateName": string;
|
|
170
|
+
/** Content replaces the subject and both optional body parts. */
|
|
171
|
+
"content": EmailTemplateContent;
|
|
172
|
+
}
|
|
173
|
+
/** DeleteEmailTemplateInput names one stored template to remove. */
|
|
174
|
+
interface DeleteEmailTemplateInput {
|
|
175
|
+
/** TemplateName is the exact regional template name. */
|
|
176
|
+
"templateName": string;
|
|
177
|
+
}
|
|
178
|
+
/** DeletedEmailTemplate identifies a removed or already absent template. */
|
|
179
|
+
interface DeletedEmailTemplate {
|
|
180
|
+
/** Name is the template name. */
|
|
181
|
+
"name": string;
|
|
182
|
+
}
|
|
183
|
+
/** SendTemplatedEmailInput sends a stored SES template with JSON variables. */
|
|
184
|
+
interface SendTemplatedEmailInput {
|
|
185
|
+
/** FromEmailAddress is a verified SES sender. */
|
|
186
|
+
"fromEmailAddress": string;
|
|
187
|
+
/** ToEmailAddress is the recipient; sandbox accounts require a verified recipient. */
|
|
188
|
+
"toEmailAddress": string;
|
|
189
|
+
/** TemplateName is the stored template name in the connection Region. */
|
|
190
|
+
"templateName": string;
|
|
191
|
+
/** TemplateData maps placeholder names to text values; blank sends an empty JSON object. */
|
|
192
|
+
"templateData"?: {
|
|
193
|
+
[key: string]: string;
|
|
194
|
+
} | undefined;
|
|
195
|
+
}
|
|
196
|
+
/** CustomVerificationEmailTemplate is the complete regional verification message. */
|
|
197
|
+
interface CustomVerificationEmailTemplate {
|
|
198
|
+
/** Name identifies the custom verification template. */
|
|
199
|
+
"name": string;
|
|
200
|
+
/** FromEmailAddress is the verified sender address. */
|
|
201
|
+
"fromEmailAddress": string;
|
|
202
|
+
/** Subject is the verification email subject. */
|
|
203
|
+
"subject": string;
|
|
204
|
+
/** Content is the UTF-8 verification email body. */
|
|
205
|
+
"content": string;
|
|
206
|
+
/** SuccessRedirectionURL receives a successfully verified recipient. */
|
|
207
|
+
"successRedirectionURL": string;
|
|
208
|
+
/** FailureRedirectionURL receives an unsuccessfully verified recipient. */
|
|
209
|
+
"failureRedirectionURL": string;
|
|
210
|
+
}
|
|
211
|
+
/** CreateCustomVerificationEmailTemplateInput supplies a complete new template. */
|
|
212
|
+
interface CreateCustomVerificationEmailTemplateInput {
|
|
213
|
+
/** Template includes the new name, sender, subject, content, and redirect URLs. */
|
|
214
|
+
"template": CustomVerificationEmailTemplate;
|
|
215
|
+
}
|
|
216
|
+
/** GetCustomVerificationEmailTemplateInput names one regional template. */
|
|
217
|
+
interface GetCustomVerificationEmailTemplateInput {
|
|
218
|
+
/** TemplateName is the exact name in SES. */
|
|
219
|
+
"templateName": string;
|
|
220
|
+
}
|
|
221
|
+
/** ListCustomVerificationEmailTemplatesInput requests one regional list page. */
|
|
222
|
+
interface ListCustomVerificationEmailTemplatesInput {
|
|
223
|
+
/** NextToken resumes a previous page; blank starts at the beginning. */
|
|
224
|
+
"nextToken"?: string | undefined;
|
|
225
|
+
/** PageSize is 1 to 50; zero uses 10. */
|
|
226
|
+
"pageSize"?: number | undefined;
|
|
227
|
+
}
|
|
228
|
+
/** CustomVerificationEmailTemplateSummary is metadata from a list page. */
|
|
229
|
+
interface CustomVerificationEmailTemplateSummary {
|
|
230
|
+
/** Name identifies the custom verification template. */
|
|
231
|
+
"name": string;
|
|
232
|
+
/** FromEmailAddress is the verified sender address. */
|
|
233
|
+
"fromEmailAddress": string;
|
|
234
|
+
/** Subject is the verification email subject. */
|
|
235
|
+
"subject": string;
|
|
236
|
+
/** SuccessRedirectionURL receives a successfully verified recipient. */
|
|
237
|
+
"successRedirectionURL": string;
|
|
238
|
+
/** FailureRedirectionURL receives an unsuccessfully verified recipient. */
|
|
239
|
+
"failureRedirectionURL": string;
|
|
240
|
+
}
|
|
241
|
+
/** CustomVerificationEmailTemplatePage holds one bounded page of summaries. */
|
|
242
|
+
interface CustomVerificationEmailTemplatePage {
|
|
243
|
+
/** Templates contains at most PageSize summaries. */
|
|
244
|
+
"templates": Array<CustomVerificationEmailTemplateSummary> | null;
|
|
245
|
+
/** NextToken continues the listing; blank means the final page. */
|
|
246
|
+
"nextToken"?: string | undefined;
|
|
247
|
+
}
|
|
248
|
+
/** UpdateCustomVerificationEmailTemplateInput replaces one template completely. */
|
|
249
|
+
interface UpdateCustomVerificationEmailTemplateInput {
|
|
250
|
+
/** Template is the full replacement, including its existing name. */
|
|
251
|
+
"template": CustomVerificationEmailTemplate;
|
|
252
|
+
}
|
|
253
|
+
/** DeleteCustomVerificationEmailTemplateInput names one regional template. */
|
|
254
|
+
interface DeleteCustomVerificationEmailTemplateInput {
|
|
255
|
+
/** TemplateName is the exact template name in SES. */
|
|
256
|
+
"templateName": string;
|
|
257
|
+
}
|
|
258
|
+
/** SendCustomVerificationEmailInput requests one verification email. */
|
|
259
|
+
interface SendCustomVerificationEmailInput {
|
|
260
|
+
/** EmailAddress is the recipient to verify. */
|
|
261
|
+
"emailAddress": string;
|
|
262
|
+
/** TemplateName is the existing custom verification template. */
|
|
263
|
+
"templateName": string;
|
|
264
|
+
/** ConfigurationSetName is optional; blank uses the account default. */
|
|
265
|
+
"configurationSetName"?: string | undefined;
|
|
266
|
+
}
|
|
267
|
+
/** Runtime validator for CreateEmailIdentityInput. */
|
|
268
|
+
declare const CreateEmailIdentityInputSchema: z.ZodObject<{
|
|
269
|
+
emailIdentity: z.ZodString;
|
|
270
|
+
}, z.core.$strict>;
|
|
271
|
+
/** Runtime validator for CreatedEmailIdentity. */
|
|
272
|
+
declare const CreatedEmailIdentitySchema: z.ZodObject<{
|
|
273
|
+
name: z.ZodString;
|
|
274
|
+
identityType: z.ZodString;
|
|
275
|
+
verifiedForSending: z.ZodBoolean;
|
|
276
|
+
dkimTokens: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
/** Runtime validator for GetEmailIdentityInput. */
|
|
279
|
+
declare const GetEmailIdentityInputSchema: z.ZodObject<{
|
|
280
|
+
emailIdentity: z.ZodString;
|
|
281
|
+
}, z.core.$strict>;
|
|
282
|
+
/** Runtime validator for EmailIdentityDetails. */
|
|
283
|
+
declare const EmailIdentityDetailsSchema: z.ZodObject<{
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
verificationStatus: z.ZodString;
|
|
286
|
+
}, z.core.$strict>;
|
|
287
|
+
/** Runtime validator for ListEmailIdentitiesInput. */
|
|
288
|
+
declare const ListEmailIdentitiesInputSchema: z.ZodObject<{
|
|
289
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
290
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
291
|
+
}, z.core.$strict>;
|
|
292
|
+
/** Runtime validator for EmailIdentitySummary. */
|
|
293
|
+
declare const EmailIdentitySummarySchema: z.ZodObject<{
|
|
294
|
+
name: z.ZodString;
|
|
295
|
+
identityType: z.ZodString;
|
|
296
|
+
verificationStatus: z.ZodString;
|
|
297
|
+
sendingEnabled: z.ZodBoolean;
|
|
298
|
+
}, z.core.$strict>;
|
|
299
|
+
/** Runtime validator for EmailIdentityPage. */
|
|
300
|
+
declare const EmailIdentityPageSchema: z.ZodObject<{
|
|
301
|
+
identities: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
identityType: z.ZodString;
|
|
304
|
+
verificationStatus: z.ZodString;
|
|
305
|
+
sendingEnabled: z.ZodBoolean;
|
|
306
|
+
}, z.core.$strict>>>;
|
|
307
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
/** Runtime validator for DeleteEmailIdentityInput. */
|
|
310
|
+
declare const DeleteEmailIdentityInputSchema: z.ZodObject<{
|
|
311
|
+
emailIdentity: z.ZodString;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
/** Runtime validator for DeletedEmailIdentity. */
|
|
314
|
+
declare const DeletedEmailIdentitySchema: z.ZodObject<{
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
/** Runtime validator for SendEmailInput. */
|
|
318
|
+
declare const SendEmailInputSchema: z.ZodObject<{
|
|
319
|
+
fromEmailAddress: z.ZodString;
|
|
320
|
+
toEmailAddress: z.ZodString;
|
|
321
|
+
subject: z.ZodString;
|
|
322
|
+
textBody: z.ZodString;
|
|
323
|
+
}, z.core.$strict>;
|
|
324
|
+
/** Runtime validator for SentEmail. */
|
|
325
|
+
declare const SentEmailSchema: z.ZodObject<{
|
|
326
|
+
messageId: z.ZodString;
|
|
327
|
+
}, z.core.$strict>;
|
|
328
|
+
/** Runtime validator for EmailTemplateContent. */
|
|
329
|
+
declare const EmailTemplateContentSchema: z.ZodObject<{
|
|
330
|
+
subject: z.ZodString;
|
|
331
|
+
text: z.ZodOptional<z.ZodString>;
|
|
332
|
+
html: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
/** Runtime validator for CreateEmailTemplateInput. */
|
|
335
|
+
declare const CreateEmailTemplateInputSchema: z.ZodObject<{
|
|
336
|
+
templateName: z.ZodString;
|
|
337
|
+
content: z.ZodObject<{
|
|
338
|
+
subject: z.ZodString;
|
|
339
|
+
text: z.ZodOptional<z.ZodString>;
|
|
340
|
+
html: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
/** Runtime validator for EmailTemplate. */
|
|
344
|
+
declare const EmailTemplateSchema: z.ZodObject<{
|
|
345
|
+
name: z.ZodString;
|
|
346
|
+
content: z.ZodObject<{
|
|
347
|
+
subject: z.ZodString;
|
|
348
|
+
text: z.ZodOptional<z.ZodString>;
|
|
349
|
+
html: z.ZodOptional<z.ZodString>;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
/** Runtime validator for GetEmailTemplateInput. */
|
|
353
|
+
declare const GetEmailTemplateInputSchema: z.ZodObject<{
|
|
354
|
+
templateName: z.ZodString;
|
|
355
|
+
}, z.core.$strict>;
|
|
356
|
+
/** Runtime validator for ListEmailTemplatesInput. */
|
|
357
|
+
declare const ListEmailTemplatesInputSchema: z.ZodObject<{
|
|
358
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
359
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
/** Runtime validator for EmailTemplateSummary. */
|
|
362
|
+
declare const EmailTemplateSummarySchema: z.ZodObject<{
|
|
363
|
+
name: z.ZodString;
|
|
364
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
365
|
+
}, z.core.$strict>;
|
|
366
|
+
/** Runtime validator for EmailTemplatePage. */
|
|
367
|
+
declare const EmailTemplatePageSchema: z.ZodObject<{
|
|
368
|
+
templates: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
369
|
+
name: z.ZodString;
|
|
370
|
+
createdAt: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
371
|
+
}, z.core.$strict>>>;
|
|
372
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
/** Runtime validator for UpdateEmailTemplateInput. */
|
|
375
|
+
declare const UpdateEmailTemplateInputSchema: z.ZodObject<{
|
|
376
|
+
templateName: z.ZodString;
|
|
377
|
+
content: z.ZodObject<{
|
|
378
|
+
subject: z.ZodString;
|
|
379
|
+
text: z.ZodOptional<z.ZodString>;
|
|
380
|
+
html: z.ZodOptional<z.ZodString>;
|
|
381
|
+
}, z.core.$strict>;
|
|
382
|
+
}, z.core.$strict>;
|
|
383
|
+
/** Runtime validator for DeleteEmailTemplateInput. */
|
|
384
|
+
declare const DeleteEmailTemplateInputSchema: z.ZodObject<{
|
|
385
|
+
templateName: z.ZodString;
|
|
386
|
+
}, z.core.$strict>;
|
|
387
|
+
/** Runtime validator for DeletedEmailTemplate. */
|
|
388
|
+
declare const DeletedEmailTemplateSchema: z.ZodObject<{
|
|
389
|
+
name: z.ZodString;
|
|
390
|
+
}, z.core.$strict>;
|
|
391
|
+
/** Runtime validator for SendTemplatedEmailInput. */
|
|
392
|
+
declare const SendTemplatedEmailInputSchema: z.ZodObject<{
|
|
393
|
+
fromEmailAddress: z.ZodString;
|
|
394
|
+
toEmailAddress: z.ZodString;
|
|
395
|
+
templateName: z.ZodString;
|
|
396
|
+
templateData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
397
|
+
}, z.core.$strict>;
|
|
398
|
+
/** Runtime validator for CustomVerificationEmailTemplate. */
|
|
399
|
+
declare const CustomVerificationEmailTemplateSchema: z.ZodObject<{
|
|
400
|
+
name: z.ZodString;
|
|
401
|
+
fromEmailAddress: z.ZodString;
|
|
402
|
+
subject: z.ZodString;
|
|
403
|
+
content: z.ZodString;
|
|
404
|
+
successRedirectionURL: z.ZodString;
|
|
405
|
+
failureRedirectionURL: z.ZodString;
|
|
406
|
+
}, z.core.$strict>;
|
|
407
|
+
/** Runtime validator for CreateCustomVerificationEmailTemplateInput. */
|
|
408
|
+
declare const CreateCustomVerificationEmailTemplateInputSchema: z.ZodObject<{
|
|
409
|
+
template: z.ZodObject<{
|
|
410
|
+
name: z.ZodString;
|
|
411
|
+
fromEmailAddress: z.ZodString;
|
|
412
|
+
subject: z.ZodString;
|
|
413
|
+
content: z.ZodString;
|
|
414
|
+
successRedirectionURL: z.ZodString;
|
|
415
|
+
failureRedirectionURL: z.ZodString;
|
|
416
|
+
}, z.core.$strict>;
|
|
417
|
+
}, z.core.$strict>;
|
|
418
|
+
/** Runtime validator for GetCustomVerificationEmailTemplateInput. */
|
|
419
|
+
declare const GetCustomVerificationEmailTemplateInputSchema: z.ZodObject<{
|
|
420
|
+
templateName: z.ZodString;
|
|
421
|
+
}, z.core.$strict>;
|
|
422
|
+
/** Runtime validator for ListCustomVerificationEmailTemplatesInput. */
|
|
423
|
+
declare const ListCustomVerificationEmailTemplatesInputSchema: z.ZodObject<{
|
|
424
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
425
|
+
pageSize: z.ZodOptional<z.ZodNumber>;
|
|
426
|
+
}, z.core.$strict>;
|
|
427
|
+
/** Runtime validator for CustomVerificationEmailTemplateSummary. */
|
|
428
|
+
declare const CustomVerificationEmailTemplateSummarySchema: z.ZodObject<{
|
|
429
|
+
name: z.ZodString;
|
|
430
|
+
fromEmailAddress: z.ZodString;
|
|
431
|
+
subject: z.ZodString;
|
|
432
|
+
successRedirectionURL: z.ZodString;
|
|
433
|
+
failureRedirectionURL: z.ZodString;
|
|
434
|
+
}, z.core.$strict>;
|
|
435
|
+
/** Runtime validator for CustomVerificationEmailTemplatePage. */
|
|
436
|
+
declare const CustomVerificationEmailTemplatePageSchema: z.ZodObject<{
|
|
437
|
+
templates: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
fromEmailAddress: z.ZodString;
|
|
440
|
+
subject: z.ZodString;
|
|
441
|
+
successRedirectionURL: z.ZodString;
|
|
442
|
+
failureRedirectionURL: z.ZodString;
|
|
443
|
+
}, z.core.$strict>>>;
|
|
444
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
445
|
+
}, z.core.$strict>;
|
|
446
|
+
/** Runtime validator for UpdateCustomVerificationEmailTemplateInput. */
|
|
447
|
+
declare const UpdateCustomVerificationEmailTemplateInputSchema: z.ZodObject<{
|
|
448
|
+
template: z.ZodObject<{
|
|
449
|
+
name: z.ZodString;
|
|
450
|
+
fromEmailAddress: z.ZodString;
|
|
451
|
+
subject: z.ZodString;
|
|
452
|
+
content: z.ZodString;
|
|
453
|
+
successRedirectionURL: z.ZodString;
|
|
454
|
+
failureRedirectionURL: z.ZodString;
|
|
455
|
+
}, z.core.$strict>;
|
|
456
|
+
}, z.core.$strict>;
|
|
457
|
+
/** Runtime validator for DeleteCustomVerificationEmailTemplateInput. */
|
|
458
|
+
declare const DeleteCustomVerificationEmailTemplateInputSchema: z.ZodObject<{
|
|
459
|
+
templateName: z.ZodString;
|
|
460
|
+
}, z.core.$strict>;
|
|
461
|
+
/** Runtime validator for SendCustomVerificationEmailInput. */
|
|
462
|
+
declare const SendCustomVerificationEmailInputSchema: z.ZodObject<{
|
|
463
|
+
emailAddress: z.ZodString;
|
|
464
|
+
templateName: z.ZodString;
|
|
465
|
+
configurationSetName: z.ZodOptional<z.ZodString>;
|
|
466
|
+
}, z.core.$strict>;
|
|
467
|
+
|
|
468
|
+
/** Typed operations supplied by a client or mock. */
|
|
469
|
+
interface Operations {
|
|
470
|
+
/** Invoke createEmailIdentity through this connection. */
|
|
471
|
+
createEmailIdentity(): Mutation<CreateEmailIdentityInput, CreatedEmailIdentity>;
|
|
472
|
+
/** Invoke getEmailIdentity through this connection. */
|
|
473
|
+
getEmailIdentity(): Query<GetEmailIdentityInput, EmailIdentityDetails>;
|
|
474
|
+
/** Invoke listEmailIdentities through this connection. */
|
|
475
|
+
listEmailIdentities(): Query<ListEmailIdentitiesInput, EmailIdentityPage>;
|
|
476
|
+
/** Invoke deleteEmailIdentity through this connection. */
|
|
477
|
+
deleteEmailIdentity(): Mutation<DeleteEmailIdentityInput, DeletedEmailIdentity>;
|
|
478
|
+
/** Invoke sendEmail through this connection. */
|
|
479
|
+
sendEmail(): Mutation<SendEmailInput, SentEmail>;
|
|
480
|
+
/** Invoke createEmailTemplate through this connection. */
|
|
481
|
+
createEmailTemplate(): Mutation<CreateEmailTemplateInput, EmailTemplate>;
|
|
482
|
+
/** Invoke getEmailTemplate through this connection. */
|
|
483
|
+
getEmailTemplate(): Query<GetEmailTemplateInput, EmailTemplate>;
|
|
484
|
+
/** Invoke listEmailTemplates through this connection. */
|
|
485
|
+
listEmailTemplates(): Query<ListEmailTemplatesInput, EmailTemplatePage>;
|
|
486
|
+
/** Invoke updateEmailTemplate through this connection. */
|
|
487
|
+
updateEmailTemplate(): Mutation<UpdateEmailTemplateInput, EmailTemplate>;
|
|
488
|
+
/** Invoke deleteEmailTemplate through this connection. */
|
|
489
|
+
deleteEmailTemplate(): Mutation<DeleteEmailTemplateInput, DeletedEmailTemplate>;
|
|
490
|
+
/** Invoke sendTemplatedEmail through this connection. */
|
|
491
|
+
sendTemplatedEmail(): Mutation<SendTemplatedEmailInput, SentEmail>;
|
|
492
|
+
/** Invoke createCustomVerificationEmailTemplate through this connection. */
|
|
493
|
+
createCustomVerificationEmailTemplate(): Mutation<CreateCustomVerificationEmailTemplateInput, CustomVerificationEmailTemplate>;
|
|
494
|
+
/** Invoke getCustomVerificationEmailTemplate through this connection. */
|
|
495
|
+
getCustomVerificationEmailTemplate(): Query<GetCustomVerificationEmailTemplateInput, CustomVerificationEmailTemplate>;
|
|
496
|
+
/** Invoke listCustomVerificationEmailTemplates through this connection. */
|
|
497
|
+
listCustomVerificationEmailTemplates(): Query<ListCustomVerificationEmailTemplatesInput, CustomVerificationEmailTemplatePage>;
|
|
498
|
+
/** Invoke updateCustomVerificationEmailTemplate through this connection. */
|
|
499
|
+
updateCustomVerificationEmailTemplate(): Mutation<UpdateCustomVerificationEmailTemplateInput, CustomVerificationEmailTemplate>;
|
|
500
|
+
/** Invoke deleteCustomVerificationEmailTemplate through this connection. */
|
|
501
|
+
deleteCustomVerificationEmailTemplate(): Mutation<DeleteCustomVerificationEmailTemplateInput, DeletedEmailTemplate>;
|
|
502
|
+
/** Invoke sendCustomVerificationEmail through this connection. */
|
|
503
|
+
sendCustomVerificationEmail(): Mutation<SendCustomVerificationEmailInput, SentEmail>;
|
|
504
|
+
}
|
|
505
|
+
/** Named connector connection kept outside Flow state. */
|
|
506
|
+
declare class Connection<BoundOperations = Operations> {
|
|
507
|
+
/** Stable provider and connection name. */
|
|
508
|
+
readonly reference: ConnectionRef;
|
|
509
|
+
/** Bound provider operations. */
|
|
510
|
+
readonly operations: BoundOperations;
|
|
511
|
+
/** Validate a reference and bind operations. */
|
|
512
|
+
constructor(reference: ConnectionRef, operations: BoundOperations);
|
|
513
|
+
}
|
|
514
|
+
/** Bind a client to a named connection. */
|
|
515
|
+
declare function newConnection(client: Operations, reference: ConnectionRef): Connection;
|
|
516
|
+
/** Bind scripted operations to a named connection. */
|
|
517
|
+
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
518
|
+
|
|
519
|
+
export { EmailTemplatePageSchema as $, CreateEmailTemplateInputSchema as A, CreatedEmailIdentitySchema as B, type CreateCustomVerificationEmailTemplateInput as C, type DeleteCustomVerificationEmailTemplateInput as D, type EmailTemplate as E, CredentialMaterialError as F, type GetCustomVerificationEmailTemplateInput as G, type CredentialSource as H, CustomVerificationEmailTemplatePageSchema as I, CustomVerificationEmailTemplateSchema as J, type CustomVerificationEmailTemplateSummary as K, type ListCustomVerificationEmailTemplatesInput as L, CustomVerificationEmailTemplateSummarySchema as M, DeleteCustomVerificationEmailTemplateInputSchema as N, type Operations as O, DeleteEmailIdentityInputSchema as P, DeleteEmailTemplateInputSchema as Q, DeletedEmailIdentitySchema as R, type SendCustomVerificationEmailInput as S, DeletedEmailTemplateSchema as T, type UpdateCustomVerificationEmailTemplateInput as U, EmailIdentityDetailsSchema as V, EmailIdentityPageSchema as W, type EmailIdentitySummary as X, EmailIdentitySummarySchema as Y, type EmailTemplateContent as Z, EmailTemplateContentSchema as _, type CustomVerificationEmailTemplate as a, EmailTemplateSchema as a0, type EmailTemplateSummary as a1, EmailTemplateSummarySchema as a2, GetCustomVerificationEmailTemplateInputSchema as a3, GetEmailIdentityInputSchema as a4, GetEmailTemplateInputSchema as a5, ListCustomVerificationEmailTemplatesInputSchema as a6, ListEmailIdentitiesInputSchema as a7, ListEmailTemplatesInputSchema as a8, SendCustomVerificationEmailInputSchema as a9, SendEmailInputSchema as aa, SendTemplatedEmailInputSchema as ab, SentEmailSchema as ac, UpdateCustomVerificationEmailTemplateInputSchema as ad, UpdateEmailTemplateInputSchema as ae, decodeCredentials as af, isCredentialMaterialError as ag, newConnection as ah, newConnectionWithOperations as ai, Connection as b, type CreateEmailIdentityInput as c, type CreatedEmailIdentity as d, type CreateEmailTemplateInput as e, type DeletedEmailTemplate as f, type DeleteEmailIdentityInput as g, type DeletedEmailIdentity as h, type DeleteEmailTemplateInput as i, type GetEmailIdentityInput as j, type EmailIdentityDetails as k, type GetEmailTemplateInput as l, type CustomVerificationEmailTemplatePage as m, type ListEmailIdentitiesInput as n, type EmailIdentityPage as o, type ListEmailTemplatesInput as p, type EmailTemplatePage as q, type SentEmail as r, type SendEmailInput as s, type SendTemplatedEmailInput as t, type UpdateEmailTemplateInput as u, type Config as v, type Credentials as w, ConfigSchema as x, CreateCustomVerificationEmailTemplateInputSchema as y, CreateEmailIdentityInputSchema as z };
|