@keystrokehq/sendgrid 0.0.1
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 +225 -0
- package/dist/_official/index.d.mts +2 -0
- package/dist/_official/index.mjs +3 -0
- package/dist/_runtime/index.d.mts +2 -0
- package/dist/_runtime/index.mjs +3 -0
- package/dist/alerts.d.mts +193 -0
- package/dist/alerts.mjs +101 -0
- package/dist/api-keys.d.mts +160 -0
- package/dist/api-keys.mjs +113 -0
- package/dist/client.d.mts +73 -0
- package/dist/client.mjs +261 -0
- package/dist/connection.d.mts +2 -0
- package/dist/connection.mjs +3 -0
- package/dist/domains.d.mts +114 -0
- package/dist/domains.mjs +62 -0
- package/dist/email-validation.d.mts +134 -0
- package/dist/email-validation.mjs +73 -0
- package/dist/events.d.mts +69 -0
- package/dist/events.mjs +28 -0
- package/dist/factory-BSL0D2L0.mjs +25 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -0
- package/dist/integration-37BovSeK.mjs +23 -0
- package/dist/integration-CmJ2TILG.d.mts +57 -0
- package/dist/mail-send.d.mts +315 -0
- package/dist/mail-send.mjs +218 -0
- package/dist/marketing-contacts.d.mts +607 -0
- package/dist/marketing-contacts.mjs +277 -0
- package/dist/marketing-customfields.d.mts +94 -0
- package/dist/marketing-customfields.mjs +70 -0
- package/dist/marketing-lists.d.mts +184 -0
- package/dist/marketing-lists.mjs +130 -0
- package/dist/marketing-segments.d.mts +340 -0
- package/dist/marketing-segments.mjs +179 -0
- package/dist/marketing-singlesends.d.mts +648 -0
- package/dist/marketing-singlesends.mjs +277 -0
- package/dist/operations.d.mts +25 -0
- package/dist/operations.mjs +69 -0
- package/dist/schemas/index.d.mts +1395 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/sender-identities.d.mts +218 -0
- package/dist/sender-identities.mjs +109 -0
- package/dist/senders.d.mts +227 -0
- package/dist/senders.mjs +83 -0
- package/dist/shared-CQ8JFNXi.mjs +13 -0
- package/dist/stats.d.mts +215 -0
- package/dist/stats.mjs +107 -0
- package/dist/suppressions.d.mts +785 -0
- package/dist/suppressions.mjs +539 -0
- package/dist/templates.d.mts +451 -0
- package/dist/templates.mjs +238 -0
- package/dist/triggers.d.mts +35 -0
- package/dist/triggers.mjs +98 -0
- package/dist/user-account.d.mts +108 -0
- package/dist/user-account.mjs +59 -0
- package/dist/verification.d.mts +67 -0
- package/dist/verification.mjs +72 -0
- package/dist/webhooks/event.d.mts +287 -0
- package/dist/webhooks/event.mjs +147 -0
- package/dist/webhooks/parse.d.mts +172 -0
- package/dist/webhooks/parse.mjs +125 -0
- package/dist/webhooks-CKdsIikb.mjs +735 -0
- package/package.json +162 -0
|
@@ -0,0 +1,735 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/schemas/shared.ts
|
|
4
|
+
/** Non-empty string — used for provider IDs, emails, batch IDs, etc. */
|
|
5
|
+
const sendgridIdSchema = z.string().min(1);
|
|
6
|
+
/** SendGrid email field: lowercased by the API but accepts mixed case. */
|
|
7
|
+
const sendgridEmailSchema = z.string().min(3).max(254);
|
|
8
|
+
/** ISO-8601 timestamp — used across Marketing v3 and Designs. */
|
|
9
|
+
const sendgridIsoDatetimeSchema = z.iso.datetime();
|
|
10
|
+
/** Unix-seconds timestamp — used by the Event Webhook payloads and `send_at`. */
|
|
11
|
+
const sendgridUnixSecondsSchema = z.number().int().nonnegative();
|
|
12
|
+
/** Returns a loose object schema that preserves unknown keys via `.catchall(z.unknown())`. */
|
|
13
|
+
function sendgridLooseObject(shape = {}) {
|
|
14
|
+
return z.object(shape).catchall(z.unknown());
|
|
15
|
+
}
|
|
16
|
+
/** Marketing v3 cursor-style pagination metadata envelope. */
|
|
17
|
+
const sendgridPaginationMetadataSchema = sendgridLooseObject({
|
|
18
|
+
prev: z.string().optional(),
|
|
19
|
+
self: z.string().optional(),
|
|
20
|
+
next: z.string().optional(),
|
|
21
|
+
count: z.number().optional()
|
|
22
|
+
});
|
|
23
|
+
/** Response envelope for POST /mail/send when sandbox returns a body (rare). */
|
|
24
|
+
const sendgridEmptySuccessSchema = z.object({ success: z.literal(true) });
|
|
25
|
+
/** Common ASM (advanced suppression manager) group reference used in Mail Send. */
|
|
26
|
+
const sendgridAsmSchema = z.object({
|
|
27
|
+
group_id: z.number().int().nonnegative(),
|
|
28
|
+
groups_to_display: z.array(z.number().int().nonnegative()).optional()
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/schemas/alerts.ts
|
|
33
|
+
const sendgridAlertTypeSchema = z.enum(["usage_limit", "stats_notification"]);
|
|
34
|
+
const sendgridAlertFrequencySchema = z.enum([
|
|
35
|
+
"daily",
|
|
36
|
+
"weekly",
|
|
37
|
+
"monthly"
|
|
38
|
+
]);
|
|
39
|
+
const sendgridAlertSchema = sendgridLooseObject({
|
|
40
|
+
id: z.number().int(),
|
|
41
|
+
type: sendgridAlertTypeSchema,
|
|
42
|
+
email_to: sendgridEmailSchema.optional(),
|
|
43
|
+
frequency: sendgridAlertFrequencySchema.optional(),
|
|
44
|
+
percentage: z.number().int().optional(),
|
|
45
|
+
created_at: z.number().int().optional(),
|
|
46
|
+
updated_at: z.number().int().optional()
|
|
47
|
+
});
|
|
48
|
+
const sendgridAlertListSchema = z.array(sendgridAlertSchema);
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/schemas/api-keys.ts
|
|
52
|
+
const sendgridApiKeyScopeSchema = z.string().min(1);
|
|
53
|
+
const sendgridApiKeySchema = sendgridLooseObject({
|
|
54
|
+
api_key_id: sendgridIdSchema,
|
|
55
|
+
name: z.string(),
|
|
56
|
+
scopes: z.array(sendgridApiKeyScopeSchema).optional()
|
|
57
|
+
});
|
|
58
|
+
const sendgridApiKeyWithKeySchema = sendgridApiKeySchema.extend({ api_key: z.string().min(1).optional() });
|
|
59
|
+
const sendgridApiKeyListSchema = z.object({ result: z.array(sendgridApiKeySchema) });
|
|
60
|
+
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/schemas/contacts.ts
|
|
63
|
+
const sendgridContactSchema = sendgridLooseObject({
|
|
64
|
+
id: sendgridIdSchema,
|
|
65
|
+
email: sendgridEmailSchema,
|
|
66
|
+
alternate_emails: z.array(z.string()).optional(),
|
|
67
|
+
first_name: z.string().optional(),
|
|
68
|
+
last_name: z.string().optional(),
|
|
69
|
+
address_line_1: z.string().optional(),
|
|
70
|
+
address_line_2: z.string().optional(),
|
|
71
|
+
city: z.string().optional(),
|
|
72
|
+
state_province_region: z.string().optional(),
|
|
73
|
+
country: z.string().optional(),
|
|
74
|
+
postal_code: z.string().optional(),
|
|
75
|
+
phone_number: z.string().optional(),
|
|
76
|
+
whatsapp: z.string().optional(),
|
|
77
|
+
line: z.string().optional(),
|
|
78
|
+
facebook: z.string().optional(),
|
|
79
|
+
unique_name: z.string().optional(),
|
|
80
|
+
custom_fields: z.record(z.string(), z.unknown()).optional(),
|
|
81
|
+
created_at: sendgridIsoDatetimeSchema.optional(),
|
|
82
|
+
updated_at: sendgridIsoDatetimeSchema.optional(),
|
|
83
|
+
list_ids: z.array(sendgridIdSchema).optional()
|
|
84
|
+
});
|
|
85
|
+
const sendgridContactInputSchema = z.object({
|
|
86
|
+
email: sendgridEmailSchema,
|
|
87
|
+
alternate_emails: z.array(z.string()).optional(),
|
|
88
|
+
first_name: z.string().optional(),
|
|
89
|
+
last_name: z.string().optional(),
|
|
90
|
+
address_line_1: z.string().optional(),
|
|
91
|
+
address_line_2: z.string().optional(),
|
|
92
|
+
city: z.string().optional(),
|
|
93
|
+
state_province_region: z.string().optional(),
|
|
94
|
+
country: z.string().optional(),
|
|
95
|
+
postal_code: z.string().optional(),
|
|
96
|
+
phone_number: z.string().optional(),
|
|
97
|
+
whatsapp: z.string().optional(),
|
|
98
|
+
line: z.string().optional(),
|
|
99
|
+
facebook: z.string().optional(),
|
|
100
|
+
unique_name: z.string().optional(),
|
|
101
|
+
custom_fields: z.record(z.string(), z.unknown()).optional()
|
|
102
|
+
});
|
|
103
|
+
const sendgridUpsertContactsResultSchema = z.object({ job_id: sendgridIdSchema });
|
|
104
|
+
const sendgridContactDeleteResultSchema = z.object({ job_id: sendgridIdSchema });
|
|
105
|
+
const sendgridContactCountSchema = z.object({
|
|
106
|
+
contact_count: z.number().int().nonnegative(),
|
|
107
|
+
billable_count: z.number().int().nonnegative().optional()
|
|
108
|
+
});
|
|
109
|
+
const sendgridContactSearchResultSchema = z.object({
|
|
110
|
+
result: z.array(sendgridContactSchema),
|
|
111
|
+
contact_count: z.number().int().nonnegative().optional()
|
|
112
|
+
});
|
|
113
|
+
const sendgridContactBatchResultSchema = z.object({ result: z.array(sendgridContactSchema) });
|
|
114
|
+
const sendgridContactImportSchema = sendgridLooseObject({
|
|
115
|
+
id: sendgridIdSchema,
|
|
116
|
+
status: z.string(),
|
|
117
|
+
job_type: z.string().optional(),
|
|
118
|
+
results: z.object({
|
|
119
|
+
requested_count: z.number().int().optional(),
|
|
120
|
+
created_count: z.number().int().optional(),
|
|
121
|
+
updated_count: z.number().int().optional(),
|
|
122
|
+
deleted_count: z.number().int().optional(),
|
|
123
|
+
errored_count: z.number().int().optional(),
|
|
124
|
+
errors_url: z.string().optional()
|
|
125
|
+
}).optional(),
|
|
126
|
+
started_at: z.string().optional(),
|
|
127
|
+
finished_at: z.string().optional(),
|
|
128
|
+
upload_uri: z.string().optional(),
|
|
129
|
+
upload_headers: z.array(z.object({
|
|
130
|
+
header: z.string(),
|
|
131
|
+
value: z.string()
|
|
132
|
+
})).optional()
|
|
133
|
+
});
|
|
134
|
+
const sendgridContactExportSchema = sendgridLooseObject({
|
|
135
|
+
id: sendgridIdSchema,
|
|
136
|
+
status: z.string(),
|
|
137
|
+
created_at: z.string().optional(),
|
|
138
|
+
completed_at: z.string().optional(),
|
|
139
|
+
urls: z.array(z.string()).optional(),
|
|
140
|
+
message: z.string().optional(),
|
|
141
|
+
expires_at: z.string().optional()
|
|
142
|
+
});
|
|
143
|
+
const sendgridContactExportListSchema = z.object({ result: z.array(sendgridContactExportSchema) });
|
|
144
|
+
const sendgridFieldDefinitionSchema = sendgridLooseObject({
|
|
145
|
+
id: sendgridIdSchema,
|
|
146
|
+
name: z.string(),
|
|
147
|
+
field_type: z.enum([
|
|
148
|
+
"Text",
|
|
149
|
+
"Number",
|
|
150
|
+
"Date"
|
|
151
|
+
])
|
|
152
|
+
});
|
|
153
|
+
const sendgridFieldDefinitionListSchema = z.object({
|
|
154
|
+
custom_fields: z.array(sendgridFieldDefinitionSchema),
|
|
155
|
+
reserved_fields: z.array(sendgridFieldDefinitionSchema).optional()
|
|
156
|
+
});
|
|
157
|
+
const sendgridContactIdentifierSchema = sendgridLooseObject({
|
|
158
|
+
contact_id: sendgridIdSchema,
|
|
159
|
+
identifiers: z.array(z.object({
|
|
160
|
+
type: z.string(),
|
|
161
|
+
value: z.string()
|
|
162
|
+
})).optional()
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
//#endregion
|
|
166
|
+
//#region src/schemas/custom-fields.ts
|
|
167
|
+
const sendgridCustomFieldDefinitionSchema = sendgridLooseObject({
|
|
168
|
+
id: sendgridIdSchema,
|
|
169
|
+
name: z.string(),
|
|
170
|
+
field_type: z.enum([
|
|
171
|
+
"Text",
|
|
172
|
+
"Number",
|
|
173
|
+
"Date"
|
|
174
|
+
])
|
|
175
|
+
});
|
|
176
|
+
const sendgridCustomFieldListSchema = z.object({
|
|
177
|
+
custom_fields: z.array(sendgridCustomFieldDefinitionSchema),
|
|
178
|
+
reserved_fields: z.array(sendgridCustomFieldDefinitionSchema).optional()
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
//#endregion
|
|
182
|
+
//#region src/schemas/domains.ts
|
|
183
|
+
const sendgridDnsRecordSchema = sendgridLooseObject({
|
|
184
|
+
valid: z.boolean().optional(),
|
|
185
|
+
type: z.string().optional(),
|
|
186
|
+
host: z.string().optional(),
|
|
187
|
+
data: z.string().optional()
|
|
188
|
+
});
|
|
189
|
+
const sendgridAuthenticatedDomainSchema = sendgridLooseObject({
|
|
190
|
+
id: z.number().int(),
|
|
191
|
+
user_id: z.number().int().optional(),
|
|
192
|
+
subdomain: z.string().optional(),
|
|
193
|
+
domain: z.string(),
|
|
194
|
+
username: z.string().optional(),
|
|
195
|
+
ips: z.array(z.string()).optional(),
|
|
196
|
+
custom_spf: z.boolean().optional(),
|
|
197
|
+
default: z.boolean().optional(),
|
|
198
|
+
legacy: z.boolean().optional(),
|
|
199
|
+
automatic_security: z.boolean().optional(),
|
|
200
|
+
valid: z.boolean().optional(),
|
|
201
|
+
dns: z.record(z.string(), sendgridDnsRecordSchema).optional()
|
|
202
|
+
});
|
|
203
|
+
const sendgridAuthenticatedDomainListSchema = z.array(sendgridAuthenticatedDomainSchema);
|
|
204
|
+
const sendgridDomainValidateResultSchema = sendgridLooseObject({
|
|
205
|
+
id: z.number().int(),
|
|
206
|
+
valid: z.boolean(),
|
|
207
|
+
validation_results: z.record(z.string(), z.unknown()).optional()
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
//#endregion
|
|
211
|
+
//#region src/schemas/email-validation.ts
|
|
212
|
+
const sendgridEmailValidationVerdictSchema = z.enum([
|
|
213
|
+
"Valid",
|
|
214
|
+
"Risky",
|
|
215
|
+
"Invalid"
|
|
216
|
+
]);
|
|
217
|
+
const sendgridEmailValidationResultSchema = sendgridLooseObject({
|
|
218
|
+
email: sendgridEmailSchema,
|
|
219
|
+
verdict: sendgridEmailValidationVerdictSchema,
|
|
220
|
+
score: z.number().optional(),
|
|
221
|
+
local: z.string().optional(),
|
|
222
|
+
host: z.string().optional(),
|
|
223
|
+
suggestion: z.string().optional(),
|
|
224
|
+
checks: z.record(z.string(), z.unknown()).optional(),
|
|
225
|
+
source: z.string().optional(),
|
|
226
|
+
ip_address: z.string().optional()
|
|
227
|
+
});
|
|
228
|
+
const sendgridEmailValidationResponseSchema = z.object({ result: sendgridEmailValidationResultSchema });
|
|
229
|
+
const sendgridBulkEmailValidationJobSchema = sendgridLooseObject({
|
|
230
|
+
id: sendgridIdSchema,
|
|
231
|
+
status: z.string(),
|
|
232
|
+
segments: z.number().int().optional(),
|
|
233
|
+
results: z.unknown().optional(),
|
|
234
|
+
started_at: z.string().optional(),
|
|
235
|
+
finished_at: z.string().optional(),
|
|
236
|
+
submitted_at: z.string().optional()
|
|
237
|
+
});
|
|
238
|
+
const sendgridBulkEmailValidationJobListSchema = z.object({ result: z.array(sendgridBulkEmailValidationJobSchema) });
|
|
239
|
+
const sendgridBulkEmailValidationPresignedUrlSchema = z.object({
|
|
240
|
+
job_id: sendgridIdSchema,
|
|
241
|
+
upload_uri: z.string(),
|
|
242
|
+
upload_headers: z.array(z.object({
|
|
243
|
+
header: z.string(),
|
|
244
|
+
value: z.string()
|
|
245
|
+
}))
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region src/schemas/lists.ts
|
|
250
|
+
const sendgridListSchema = sendgridLooseObject({
|
|
251
|
+
id: sendgridIdSchema,
|
|
252
|
+
name: z.string(),
|
|
253
|
+
contact_count: z.number().int().nonnegative().optional()
|
|
254
|
+
});
|
|
255
|
+
const sendgridListCollectionSchema = z.object({ result: z.array(sendgridListSchema) });
|
|
256
|
+
const sendgridListContactCountSchema = z.object({
|
|
257
|
+
contact_count: z.number().int().nonnegative(),
|
|
258
|
+
billable_count: z.number().int().nonnegative().optional()
|
|
259
|
+
});
|
|
260
|
+
const sendgridListRemoveContactsResultSchema = z.object({ job_id: sendgridIdSchema });
|
|
261
|
+
|
|
262
|
+
//#endregion
|
|
263
|
+
//#region src/schemas/mail-send.ts
|
|
264
|
+
const sendgridEmailAddressSchema = z.object({
|
|
265
|
+
email: sendgridEmailSchema,
|
|
266
|
+
name: z.string().min(1).optional()
|
|
267
|
+
});
|
|
268
|
+
const sendgridPersonalizationSchema = z.object({
|
|
269
|
+
to: z.array(sendgridEmailAddressSchema).min(1),
|
|
270
|
+
cc: z.array(sendgridEmailAddressSchema).optional(),
|
|
271
|
+
bcc: z.array(sendgridEmailAddressSchema).optional(),
|
|
272
|
+
from: sendgridEmailAddressSchema.optional(),
|
|
273
|
+
subject: z.string().optional(),
|
|
274
|
+
headers: z.record(z.string(), z.string()).optional(),
|
|
275
|
+
substitutions: z.record(z.string(), z.string()).optional(),
|
|
276
|
+
dynamicTemplateData: z.record(z.string(), z.unknown()).optional(),
|
|
277
|
+
customArgs: z.record(z.string(), z.string()).optional(),
|
|
278
|
+
sendAt: sendgridUnixSecondsSchema.optional()
|
|
279
|
+
});
|
|
280
|
+
const sendgridAttachmentSchema = z.object({
|
|
281
|
+
content: z.string().min(1),
|
|
282
|
+
type: z.string().min(1).optional(),
|
|
283
|
+
filename: z.string().min(1),
|
|
284
|
+
disposition: z.enum(["attachment", "inline"]).optional(),
|
|
285
|
+
contentId: z.string().min(1).optional()
|
|
286
|
+
});
|
|
287
|
+
const sendgridMailContentSchema = z.object({
|
|
288
|
+
type: z.enum(["text/plain", "text/html"]).or(z.string().min(1)),
|
|
289
|
+
value: z.string()
|
|
290
|
+
});
|
|
291
|
+
const sendgridMailSettingsSchema = z.object({
|
|
292
|
+
sandboxMode: z.object({ enable: z.boolean() }).optional(),
|
|
293
|
+
bypassListManagement: z.object({ enable: z.boolean() }).optional(),
|
|
294
|
+
bypassSpamManagement: z.object({ enable: z.boolean() }).optional(),
|
|
295
|
+
bypassBounceManagement: z.object({ enable: z.boolean() }).optional(),
|
|
296
|
+
bypassUnsubscribeManagement: z.object({ enable: z.boolean() }).optional(),
|
|
297
|
+
footer: z.object({
|
|
298
|
+
enable: z.boolean(),
|
|
299
|
+
text: z.string().optional(),
|
|
300
|
+
html: z.string().optional()
|
|
301
|
+
}).optional()
|
|
302
|
+
});
|
|
303
|
+
const sendgridTrackingSettingsSchema = z.object({
|
|
304
|
+
clickTracking: z.object({
|
|
305
|
+
enable: z.boolean(),
|
|
306
|
+
enableText: z.boolean().optional()
|
|
307
|
+
}).optional(),
|
|
308
|
+
openTracking: z.object({
|
|
309
|
+
enable: z.boolean(),
|
|
310
|
+
substitutionTag: z.string().optional()
|
|
311
|
+
}).optional(),
|
|
312
|
+
subscriptionTracking: z.object({ enable: z.boolean() }).optional(),
|
|
313
|
+
ganalytics: z.object({
|
|
314
|
+
enable: z.boolean(),
|
|
315
|
+
utmSource: z.string().optional(),
|
|
316
|
+
utmMedium: z.string().optional(),
|
|
317
|
+
utmTerm: z.string().optional(),
|
|
318
|
+
utmContent: z.string().optional(),
|
|
319
|
+
utmCampaign: z.string().optional()
|
|
320
|
+
}).optional()
|
|
321
|
+
});
|
|
322
|
+
const sendgridMailSendInputSchema = z.object({
|
|
323
|
+
personalizations: z.array(sendgridPersonalizationSchema).min(1).max(1e3),
|
|
324
|
+
from: sendgridEmailAddressSchema,
|
|
325
|
+
replyTo: sendgridEmailAddressSchema.optional(),
|
|
326
|
+
replyToList: z.array(sendgridEmailAddressSchema).optional(),
|
|
327
|
+
subject: z.string().optional(),
|
|
328
|
+
content: z.array(sendgridMailContentSchema).optional(),
|
|
329
|
+
templateId: z.string().min(1).optional(),
|
|
330
|
+
attachments: z.array(sendgridAttachmentSchema).optional(),
|
|
331
|
+
categories: z.array(z.string().min(1)).max(10).optional(),
|
|
332
|
+
customArgs: z.record(z.string(), z.string()).optional(),
|
|
333
|
+
sendAt: sendgridUnixSecondsSchema.optional(),
|
|
334
|
+
batchId: sendgridIdSchema.optional(),
|
|
335
|
+
asm: sendgridAsmSchema.optional(),
|
|
336
|
+
ipPoolName: z.string().min(1).optional(),
|
|
337
|
+
mailSettings: sendgridMailSettingsSchema.optional(),
|
|
338
|
+
trackingSettings: sendgridTrackingSettingsSchema.optional(),
|
|
339
|
+
headers: z.record(z.string(), z.string()).optional()
|
|
340
|
+
});
|
|
341
|
+
const sendgridMailSendResultSchema = z.object({
|
|
342
|
+
messageId: z.string().optional(),
|
|
343
|
+
accepted: z.boolean()
|
|
344
|
+
});
|
|
345
|
+
const sendgridBatchIdSchema = z.object({ batch_id: sendgridIdSchema });
|
|
346
|
+
const sendgridScheduledSendStatusSchema = z.enum(["cancel", "pause"]);
|
|
347
|
+
const sendgridScheduledSendSchema = sendgridLooseObject({
|
|
348
|
+
batch_id: sendgridIdSchema,
|
|
349
|
+
status: sendgridScheduledSendStatusSchema.optional()
|
|
350
|
+
});
|
|
351
|
+
const sendgridScheduledSendListSchema = z.array(sendgridScheduledSendSchema);
|
|
352
|
+
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/schemas/segments.ts
|
|
355
|
+
const sendgridSegmentStatusSchema = z.enum([
|
|
356
|
+
"pending",
|
|
357
|
+
"ready",
|
|
358
|
+
"failed"
|
|
359
|
+
]);
|
|
360
|
+
const sendgridSegmentSchema = sendgridLooseObject({
|
|
361
|
+
id: sendgridIdSchema,
|
|
362
|
+
name: z.string(),
|
|
363
|
+
query_dsl: z.string().optional(),
|
|
364
|
+
query_version: z.string().optional(),
|
|
365
|
+
parent_list_ids: z.array(sendgridIdSchema).optional(),
|
|
366
|
+
contacts_count: z.number().int().nonnegative().optional(),
|
|
367
|
+
contacts_sample_updated_at: sendgridIsoDatetimeSchema.optional(),
|
|
368
|
+
created_at: sendgridIsoDatetimeSchema.optional(),
|
|
369
|
+
updated_at: sendgridIsoDatetimeSchema.optional(),
|
|
370
|
+
next_sample_update: sendgridIsoDatetimeSchema.optional(),
|
|
371
|
+
status: sendgridLooseObject({
|
|
372
|
+
query_validation: z.string().optional(),
|
|
373
|
+
error_message: z.string().optional()
|
|
374
|
+
}).optional()
|
|
375
|
+
});
|
|
376
|
+
const sendgridSegmentListSchema = z.object({ results: z.array(sendgridSegmentSchema) });
|
|
377
|
+
|
|
378
|
+
//#endregion
|
|
379
|
+
//#region src/schemas/senders.ts
|
|
380
|
+
const sendgridSenderAddressSchema = z.object({
|
|
381
|
+
nickname: z.string(),
|
|
382
|
+
from: z.object({
|
|
383
|
+
email: sendgridEmailSchema,
|
|
384
|
+
name: z.string().optional()
|
|
385
|
+
}),
|
|
386
|
+
reply_to: z.object({
|
|
387
|
+
email: sendgridEmailSchema,
|
|
388
|
+
name: z.string().optional()
|
|
389
|
+
}),
|
|
390
|
+
address: z.string(),
|
|
391
|
+
address_2: z.string().optional(),
|
|
392
|
+
city: z.string(),
|
|
393
|
+
state: z.string().optional(),
|
|
394
|
+
zip: z.string().optional(),
|
|
395
|
+
country: z.string()
|
|
396
|
+
});
|
|
397
|
+
const sendgridSenderSchema = sendgridLooseObject({
|
|
398
|
+
id: z.number().int(),
|
|
399
|
+
nickname: z.string(),
|
|
400
|
+
from: z.object({
|
|
401
|
+
email: z.string(),
|
|
402
|
+
name: z.string().optional()
|
|
403
|
+
}).optional(),
|
|
404
|
+
reply_to: z.object({
|
|
405
|
+
email: z.string(),
|
|
406
|
+
name: z.string().optional()
|
|
407
|
+
}).optional(),
|
|
408
|
+
address: z.string().optional(),
|
|
409
|
+
address_2: z.string().optional(),
|
|
410
|
+
city: z.string().optional(),
|
|
411
|
+
state: z.string().optional(),
|
|
412
|
+
zip: z.string().optional(),
|
|
413
|
+
country: z.string().optional(),
|
|
414
|
+
verified: z.boolean().optional(),
|
|
415
|
+
locked: z.boolean().optional(),
|
|
416
|
+
created_at: z.number().int().optional(),
|
|
417
|
+
updated_at: z.number().int().optional()
|
|
418
|
+
});
|
|
419
|
+
const sendgridSenderListSchema = z.object({ results: z.array(sendgridSenderSchema) });
|
|
420
|
+
const sendgridVerifiedSenderSchema = sendgridLooseObject({
|
|
421
|
+
id: z.number().int(),
|
|
422
|
+
nickname: z.string(),
|
|
423
|
+
from_email: z.string(),
|
|
424
|
+
from_name: z.string().optional(),
|
|
425
|
+
reply_to: z.string().optional(),
|
|
426
|
+
reply_to_name: z.string().optional(),
|
|
427
|
+
address: z.string().optional(),
|
|
428
|
+
address2: z.string().optional(),
|
|
429
|
+
city: z.string().optional(),
|
|
430
|
+
state: z.string().optional(),
|
|
431
|
+
zip: z.string().optional(),
|
|
432
|
+
country: z.string().optional(),
|
|
433
|
+
verified: z.boolean().optional(),
|
|
434
|
+
locked: z.boolean().optional()
|
|
435
|
+
});
|
|
436
|
+
const sendgridVerifiedSenderListSchema = z.object({ results: z.array(sendgridVerifiedSenderSchema) });
|
|
437
|
+
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region src/schemas/single-sends.ts
|
|
440
|
+
const sendgridSingleSendStatusSchema = z.enum([
|
|
441
|
+
"draft",
|
|
442
|
+
"scheduled",
|
|
443
|
+
"triggered",
|
|
444
|
+
"canceled",
|
|
445
|
+
"sent",
|
|
446
|
+
"failed"
|
|
447
|
+
]);
|
|
448
|
+
const sendgridSingleSendSendToSchema = z.object({
|
|
449
|
+
list_ids: z.array(sendgridIdSchema).optional(),
|
|
450
|
+
segment_ids: z.array(sendgridIdSchema).optional(),
|
|
451
|
+
all: z.boolean().optional()
|
|
452
|
+
});
|
|
453
|
+
const sendgridSingleSendEmailConfigSchema = sendgridLooseObject({
|
|
454
|
+
subject: z.string().optional(),
|
|
455
|
+
html_content: z.string().optional(),
|
|
456
|
+
plain_content: z.string().optional(),
|
|
457
|
+
generate_plain_content: z.boolean().optional(),
|
|
458
|
+
editor: z.enum(["code", "design"]).optional(),
|
|
459
|
+
suppression_group_id: z.number().int().optional(),
|
|
460
|
+
custom_unsubscribe_url: z.string().optional(),
|
|
461
|
+
sender_id: z.number().int().optional(),
|
|
462
|
+
ip_pool: z.string().optional(),
|
|
463
|
+
design_id: z.string().optional()
|
|
464
|
+
});
|
|
465
|
+
const sendgridSingleSendSchema = sendgridLooseObject({
|
|
466
|
+
id: sendgridIdSchema,
|
|
467
|
+
name: z.string(),
|
|
468
|
+
status: sendgridSingleSendStatusSchema.optional(),
|
|
469
|
+
categories: z.array(z.string()).optional(),
|
|
470
|
+
send_at: sendgridIsoDatetimeSchema.optional(),
|
|
471
|
+
send_to: sendgridSingleSendSendToSchema.optional(),
|
|
472
|
+
email_config: sendgridSingleSendEmailConfigSchema.optional(),
|
|
473
|
+
created_at: sendgridIsoDatetimeSchema.optional(),
|
|
474
|
+
updated_at: sendgridIsoDatetimeSchema.optional()
|
|
475
|
+
});
|
|
476
|
+
const sendgridSingleSendListSchema = z.object({ result: z.array(sendgridSingleSendSchema) });
|
|
477
|
+
const sendgridSingleSendScheduleInputSchema = z.object({ send_at: sendgridIsoDatetimeSchema.or(z.literal("now")) });
|
|
478
|
+
const sendgridSingleSendSearchInputSchema = z.object({
|
|
479
|
+
name: z.string().optional(),
|
|
480
|
+
status: z.array(sendgridSingleSendStatusSchema).optional(),
|
|
481
|
+
categories: z.array(z.string()).optional()
|
|
482
|
+
});
|
|
483
|
+
const sendgridSingleSendTestInputSchema = z.object({
|
|
484
|
+
template_id: sendgridIdSchema.optional(),
|
|
485
|
+
version_id_override: sendgridIdSchema.optional(),
|
|
486
|
+
sender_id: z.number().int().optional(),
|
|
487
|
+
custom_unsubscribe_url: z.string().optional(),
|
|
488
|
+
suppression_group_id: z.number().int().optional(),
|
|
489
|
+
emails: z.array(sendgridEmailSchema).min(1).max(10),
|
|
490
|
+
from_address: sendgridEmailSchema.optional()
|
|
491
|
+
});
|
|
492
|
+
const sendgridSingleSendStatsSchema = sendgridLooseObject({
|
|
493
|
+
id: sendgridIdSchema,
|
|
494
|
+
aggregation: z.string().optional(),
|
|
495
|
+
stats: z.array(z.unknown()).optional()
|
|
496
|
+
});
|
|
497
|
+
const sendgridSingleSendClicksSchema = sendgridLooseObject({
|
|
498
|
+
id: sendgridIdSchema,
|
|
499
|
+
aggregation: z.string().optional(),
|
|
500
|
+
stats: z.array(z.unknown()).optional()
|
|
501
|
+
});
|
|
502
|
+
const sendgridSingleSendStatsListSchema = z.object({ results: z.array(sendgridSingleSendStatsSchema) });
|
|
503
|
+
|
|
504
|
+
//#endregion
|
|
505
|
+
//#region src/schemas/stats.ts
|
|
506
|
+
const sendgridAggregationSchema = z.enum([
|
|
507
|
+
"day",
|
|
508
|
+
"week",
|
|
509
|
+
"month"
|
|
510
|
+
]);
|
|
511
|
+
const sendgridStatMetricSchema = sendgridLooseObject({
|
|
512
|
+
requests: z.number().int().optional(),
|
|
513
|
+
delivered: z.number().int().optional(),
|
|
514
|
+
opens: z.number().int().optional(),
|
|
515
|
+
unique_opens: z.number().int().optional(),
|
|
516
|
+
clicks: z.number().int().optional(),
|
|
517
|
+
unique_clicks: z.number().int().optional(),
|
|
518
|
+
bounces: z.number().int().optional(),
|
|
519
|
+
bounce_drops: z.number().int().optional(),
|
|
520
|
+
blocks: z.number().int().optional(),
|
|
521
|
+
spam_reports: z.number().int().optional(),
|
|
522
|
+
unsubscribes: z.number().int().optional(),
|
|
523
|
+
unique_unsubscribes: z.number().int().optional(),
|
|
524
|
+
processed: z.number().int().optional(),
|
|
525
|
+
deferred: z.number().int().optional(),
|
|
526
|
+
invalid_emails: z.number().int().optional()
|
|
527
|
+
});
|
|
528
|
+
const sendgridStatEntrySchema = z.object({
|
|
529
|
+
type: z.string(),
|
|
530
|
+
name: z.string(),
|
|
531
|
+
metrics: sendgridStatMetricSchema
|
|
532
|
+
});
|
|
533
|
+
const sendgridStatBucketSchema = z.object({
|
|
534
|
+
date: z.string(),
|
|
535
|
+
stats: z.array(sendgridStatEntrySchema)
|
|
536
|
+
});
|
|
537
|
+
const sendgridStatBucketListSchema = z.array(sendgridStatBucketSchema);
|
|
538
|
+
const sendgridCategoryStatsSchema = z.array(sendgridStatBucketSchema);
|
|
539
|
+
const sendgridAutomationStatsSchema = sendgridLooseObject({
|
|
540
|
+
results: z.array(z.unknown()),
|
|
541
|
+
_metadata: z.unknown().optional()
|
|
542
|
+
});
|
|
543
|
+
const sendgridEngagementQualitySchema = sendgridLooseObject({
|
|
544
|
+
account_id: z.string().optional(),
|
|
545
|
+
date: z.string().optional(),
|
|
546
|
+
metrics: z.unknown().optional()
|
|
547
|
+
});
|
|
548
|
+
|
|
549
|
+
//#endregion
|
|
550
|
+
//#region src/schemas/suppressions.ts
|
|
551
|
+
const sendgridGlobalSuppressionSchema = sendgridLooseObject({
|
|
552
|
+
recipient_email: z.string(),
|
|
553
|
+
created: z.number().int().optional()
|
|
554
|
+
});
|
|
555
|
+
const sendgridGlobalSuppressionListSchema = z.array(sendgridGlobalSuppressionSchema);
|
|
556
|
+
const sendgridSuppressionGroupSchema = sendgridLooseObject({
|
|
557
|
+
id: z.number().int(),
|
|
558
|
+
name: z.string(),
|
|
559
|
+
description: z.string().optional(),
|
|
560
|
+
is_default: z.boolean().optional(),
|
|
561
|
+
unsubscribes: z.number().int().optional()
|
|
562
|
+
});
|
|
563
|
+
const sendgridSuppressionGroupListSchema = z.array(sendgridSuppressionGroupSchema);
|
|
564
|
+
const sendgridBounceRecordSchema = sendgridLooseObject({
|
|
565
|
+
created: z.number().int(),
|
|
566
|
+
email: z.string(),
|
|
567
|
+
reason: z.string().optional(),
|
|
568
|
+
status: z.string().optional()
|
|
569
|
+
});
|
|
570
|
+
const sendgridBounceListSchema = z.array(sendgridBounceRecordSchema);
|
|
571
|
+
const sendgridBlockRecordSchema = sendgridLooseObject({
|
|
572
|
+
created: z.number().int(),
|
|
573
|
+
email: z.string(),
|
|
574
|
+
reason: z.string().optional(),
|
|
575
|
+
status: z.string().optional()
|
|
576
|
+
});
|
|
577
|
+
const sendgridBlockListSchema = z.array(sendgridBlockRecordSchema);
|
|
578
|
+
const sendgridInvalidEmailRecordSchema = sendgridLooseObject({
|
|
579
|
+
created: z.number().int(),
|
|
580
|
+
email: z.string(),
|
|
581
|
+
reason: z.string().optional()
|
|
582
|
+
});
|
|
583
|
+
const sendgridInvalidEmailListSchema = z.array(sendgridInvalidEmailRecordSchema);
|
|
584
|
+
const sendgridSpamReportRecordSchema = sendgridLooseObject({
|
|
585
|
+
created: z.number().int(),
|
|
586
|
+
email: z.string(),
|
|
587
|
+
ip: z.string().optional()
|
|
588
|
+
});
|
|
589
|
+
const sendgridSpamReportListSchema = z.array(sendgridSpamReportRecordSchema);
|
|
590
|
+
const sendgridGroupSuppressionEntrySchema = sendgridLooseObject({
|
|
591
|
+
id: z.number().int().optional(),
|
|
592
|
+
group_id: z.number().int().optional(),
|
|
593
|
+
email: z.string()
|
|
594
|
+
});
|
|
595
|
+
const sendgridGroupSuppressionListSchema = z.array(sendgridGroupSuppressionEntrySchema);
|
|
596
|
+
|
|
597
|
+
//#endregion
|
|
598
|
+
//#region src/schemas/templates.ts
|
|
599
|
+
const sendgridTemplateGenerationSchema = z.enum(["legacy", "dynamic"]);
|
|
600
|
+
const sendgridTemplateVersionSchema = sendgridLooseObject({
|
|
601
|
+
id: sendgridIdSchema,
|
|
602
|
+
template_id: sendgridIdSchema,
|
|
603
|
+
active: z.number().int().optional(),
|
|
604
|
+
name: z.string().optional(),
|
|
605
|
+
html_content: z.string().optional(),
|
|
606
|
+
plain_content: z.string().optional(),
|
|
607
|
+
generate_plain_content: z.boolean().optional(),
|
|
608
|
+
subject: z.string().optional(),
|
|
609
|
+
editor: z.enum(["code", "design"]).optional(),
|
|
610
|
+
updated_at: z.string().optional()
|
|
611
|
+
});
|
|
612
|
+
const sendgridTemplateSchema = sendgridLooseObject({
|
|
613
|
+
id: sendgridIdSchema,
|
|
614
|
+
name: z.string(),
|
|
615
|
+
generation: sendgridTemplateGenerationSchema.optional(),
|
|
616
|
+
updated_at: z.string().optional(),
|
|
617
|
+
versions: z.array(sendgridTemplateVersionSchema).optional()
|
|
618
|
+
});
|
|
619
|
+
const sendgridTemplateListSchema = z.object({ result: z.array(sendgridTemplateSchema) });
|
|
620
|
+
|
|
621
|
+
//#endregion
|
|
622
|
+
//#region src/schemas/user-account.ts
|
|
623
|
+
const sendgridUserProfileSchema = sendgridLooseObject({
|
|
624
|
+
address: z.string().optional(),
|
|
625
|
+
address2: z.string().optional(),
|
|
626
|
+
city: z.string().optional(),
|
|
627
|
+
company: z.string().optional(),
|
|
628
|
+
country: z.string().optional(),
|
|
629
|
+
first_name: z.string().optional(),
|
|
630
|
+
last_name: z.string().optional(),
|
|
631
|
+
phone: z.string().optional(),
|
|
632
|
+
state: z.string().optional(),
|
|
633
|
+
website: z.string().optional(),
|
|
634
|
+
zip: z.string().optional()
|
|
635
|
+
});
|
|
636
|
+
const sendgridAccountInfoSchema = sendgridLooseObject({
|
|
637
|
+
type: z.string(),
|
|
638
|
+
reputation: z.number().optional()
|
|
639
|
+
});
|
|
640
|
+
const sendgridScopesSchema = z.object({ scopes: z.array(z.string()) });
|
|
641
|
+
const sendgridCreditBalanceSchema = sendgridLooseObject({
|
|
642
|
+
remain: z.number().int().optional(),
|
|
643
|
+
total: z.number().int().optional(),
|
|
644
|
+
overage: z.number().int().optional(),
|
|
645
|
+
used: z.number().int().optional(),
|
|
646
|
+
last_reset: z.string().optional(),
|
|
647
|
+
next_reset: z.string().optional(),
|
|
648
|
+
reset_frequency: z.string().optional()
|
|
649
|
+
});
|
|
650
|
+
const sendgridUserEmailSchema = z.object({ email: sendgridEmailSchema });
|
|
651
|
+
|
|
652
|
+
//#endregion
|
|
653
|
+
//#region src/schemas/webhooks.ts
|
|
654
|
+
const sendgridEventWebhookSettingsSchema = sendgridLooseObject({
|
|
655
|
+
id: z.string().optional(),
|
|
656
|
+
friendly_name: z.string().optional(),
|
|
657
|
+
enabled: z.boolean().optional(),
|
|
658
|
+
url: z.string().optional(),
|
|
659
|
+
group_resubscribe: z.boolean().optional(),
|
|
660
|
+
delivered: z.boolean().optional(),
|
|
661
|
+
group_unsubscribe: z.boolean().optional(),
|
|
662
|
+
spam_report: z.boolean().optional(),
|
|
663
|
+
bounce: z.boolean().optional(),
|
|
664
|
+
deferred: z.boolean().optional(),
|
|
665
|
+
unsubscribe: z.boolean().optional(),
|
|
666
|
+
processed: z.boolean().optional(),
|
|
667
|
+
open: z.boolean().optional(),
|
|
668
|
+
click: z.boolean().optional(),
|
|
669
|
+
dropped: z.boolean().optional(),
|
|
670
|
+
oauth_client_id: z.string().optional(),
|
|
671
|
+
oauth_token_url: z.string().optional()
|
|
672
|
+
});
|
|
673
|
+
const sendgridEventWebhookListSchema = z.object({
|
|
674
|
+
max_allowed: z.number().int().optional(),
|
|
675
|
+
webhooks: z.array(sendgridEventWebhookSettingsSchema)
|
|
676
|
+
});
|
|
677
|
+
const sendgridSignedPublicKeySchema = z.object({ public_key: z.string() });
|
|
678
|
+
const sendgridSignatureToggleSchema = z.object({ enabled: z.boolean() });
|
|
679
|
+
const sendgridParseSettingSchema = sendgridLooseObject({
|
|
680
|
+
url: z.string().optional(),
|
|
681
|
+
hostname: z.string(),
|
|
682
|
+
spam_check: z.boolean().optional(),
|
|
683
|
+
send_raw: z.boolean().optional()
|
|
684
|
+
});
|
|
685
|
+
const sendgridParseSettingListSchema = z.object({ result: z.array(sendgridParseSettingSchema) });
|
|
686
|
+
const sendgridParseStatsBucketSchema = sendgridLooseObject({
|
|
687
|
+
date: z.string(),
|
|
688
|
+
stats: z.array(z.unknown())
|
|
689
|
+
});
|
|
690
|
+
const sendgridParseStatsSchema = z.array(sendgridParseStatsBucketSchema);
|
|
691
|
+
/** Single SendGrid Event Webhook event. Known fields are typed; unknown custom args pass through. */
|
|
692
|
+
const sendgridEventWebhookEventSchema = sendgridLooseObject({
|
|
693
|
+
email: z.string(),
|
|
694
|
+
timestamp: z.number().int(),
|
|
695
|
+
event: z.string(),
|
|
696
|
+
"smtp-id": z.string().optional(),
|
|
697
|
+
sg_event_id: z.string(),
|
|
698
|
+
sg_message_id: z.string().optional(),
|
|
699
|
+
category: z.union([z.string(), z.array(z.string())]).optional(),
|
|
700
|
+
reason: z.string().optional(),
|
|
701
|
+
status: z.string().optional(),
|
|
702
|
+
response: z.string().optional(),
|
|
703
|
+
attempt: z.string().optional(),
|
|
704
|
+
url: z.string().optional(),
|
|
705
|
+
useragent: z.string().optional(),
|
|
706
|
+
ip: z.string().optional(),
|
|
707
|
+
asm_group_id: z.number().int().optional(),
|
|
708
|
+
tls: z.number().int().optional(),
|
|
709
|
+
type: z.string().optional(),
|
|
710
|
+
bounce_classification: z.string().optional(),
|
|
711
|
+
sg_machine_open: z.boolean().optional()
|
|
712
|
+
});
|
|
713
|
+
const sendgridEventWebhookPayloadSchema = z.array(sendgridEventWebhookEventSchema);
|
|
714
|
+
/** Inbound Parse payload (multipart/form-data -> fields). */
|
|
715
|
+
const sendgridInboundParsePayloadSchema = sendgridLooseObject({
|
|
716
|
+
headers: z.string().optional(),
|
|
717
|
+
dkim: z.string().optional(),
|
|
718
|
+
to: z.string().optional(),
|
|
719
|
+
from: z.string().optional(),
|
|
720
|
+
subject: z.string().optional(),
|
|
721
|
+
html: z.string().optional(),
|
|
722
|
+
text: z.string().optional(),
|
|
723
|
+
envelope: z.string().optional(),
|
|
724
|
+
charsets: z.string().optional(),
|
|
725
|
+
SPF: z.string().optional(),
|
|
726
|
+
spam_score: z.string().optional(),
|
|
727
|
+
spam_report: z.string().optional(),
|
|
728
|
+
sender_ip: z.string().optional(),
|
|
729
|
+
attachments: z.string().optional(),
|
|
730
|
+
"attachment-info": z.string().optional(),
|
|
731
|
+
email: z.string().optional()
|
|
732
|
+
});
|
|
733
|
+
|
|
734
|
+
//#endregion
|
|
735
|
+
export { sendgridSingleSendTestInputSchema as $, sendgridAlertFrequencySchema as $t, sendgridInvalidEmailRecordSchema as A, sendgridAuthenticatedDomainListSchema as At, sendgridStatBucketSchema as B, sendgridContactExportSchema as Bt, sendgridBounceListSchema as C, sendgridListSchema as Ct, sendgridGroupSuppressionEntrySchema as D, sendgridEmailValidationResponseSchema as Dt, sendgridGlobalSuppressionSchema as E, sendgridBulkEmailValidationPresignedUrlSchema as Et, sendgridAggregationSchema as F, sendgridCustomFieldListSchema as Ft, sendgridSingleSendListSchema as G, sendgridContactSearchResultSchema as Gt, sendgridStatMetricSchema as H, sendgridContactImportSchema as Ht, sendgridAutomationStatsSchema as I, sendgridContactBatchResultSchema as It, sendgridSingleSendSearchInputSchema as J, sendgridUpsertContactsResultSchema as Jt, sendgridSingleSendScheduleInputSchema as K, sendgridFieldDefinitionListSchema as Kt, sendgridCategoryStatsSchema as L, sendgridContactCountSchema as Lt, sendgridSpamReportRecordSchema as M, sendgridDnsRecordSchema as Mt, sendgridSuppressionGroupListSchema as N, sendgridDomainValidateResultSchema as Nt, sendgridGroupSuppressionListSchema as O, sendgridEmailValidationResultSchema as Ot, sendgridSuppressionGroupSchema as P, sendgridCustomFieldDefinitionSchema as Pt, sendgridSingleSendStatusSchema as Q, sendgridApiKeyWithKeySchema as Qt, sendgridEngagementQualitySchema as R, sendgridContactDeleteResultSchema as Rt, sendgridBlockRecordSchema as S, sendgridListRemoveContactsResultSchema as St, sendgridGlobalSuppressionListSchema as T, sendgridBulkEmailValidationJobSchema as Tt, sendgridSingleSendClicksSchema as U, sendgridContactInputSchema as Ut, sendgridStatEntrySchema as V, sendgridContactIdentifierSchema as Vt, sendgridSingleSendEmailConfigSchema as W, sendgridContactSchema as Wt, sendgridSingleSendStatsListSchema as X, sendgridApiKeySchema as Xt, sendgridSingleSendSendToSchema as Y, sendgridApiKeyListSchema as Yt, sendgridSingleSendStatsSchema as Z, sendgridApiKeyScopeSchema as Zt, sendgridTemplateGenerationSchema as _, sendgridScheduledSendSchema as _t, sendgridInboundParsePayloadSchema as a, sendgridEmptySuccessSchema as an, sendgridSegmentListSchema as at, sendgridTemplateVersionSchema as b, sendgridListCollectionSchema as bt, sendgridParseStatsBucketSchema as c, sendgridLooseObject as cn, sendgridAttachmentSchema as ct, sendgridSignedPublicKeySchema as d, sendgridMailContentSchema as dt, sendgridAlertListSchema as en, sendgridSenderAddressSchema as et, sendgridAccountInfoSchema as f, sendgridMailSendInputSchema as ft, sendgridUserProfileSchema as g, sendgridScheduledSendListSchema as gt, sendgridUserEmailSchema as h, sendgridPersonalizationSchema as ht, sendgridEventWebhookSettingsSchema as i, sendgridEmailSchema as in, sendgridVerifiedSenderSchema as it, sendgridSpamReportListSchema as j, sendgridAuthenticatedDomainSchema as jt, sendgridInvalidEmailListSchema as k, sendgridEmailValidationVerdictSchema as kt, sendgridParseStatsSchema as l, sendgridPaginationMetadataSchema as ln, sendgridBatchIdSchema as lt, sendgridScopesSchema as m, sendgridMailSettingsSchema as mt, sendgridEventWebhookListSchema as n, sendgridAlertTypeSchema as nn, sendgridSenderSchema as nt, sendgridParseSettingListSchema as o, sendgridIdSchema as on, sendgridSegmentSchema as ot, sendgridCreditBalanceSchema as p, sendgridMailSendResultSchema as pt, sendgridSingleSendSchema as q, sendgridFieldDefinitionSchema as qt, sendgridEventWebhookPayloadSchema as r, sendgridAsmSchema as rn, sendgridVerifiedSenderListSchema as rt, sendgridParseSettingSchema as s, sendgridIsoDatetimeSchema as sn, sendgridSegmentStatusSchema as st, sendgridEventWebhookEventSchema as t, sendgridAlertSchema as tn, sendgridSenderListSchema as tt, sendgridSignatureToggleSchema as u, sendgridUnixSecondsSchema as un, sendgridEmailAddressSchema as ut, sendgridTemplateListSchema as v, sendgridScheduledSendStatusSchema as vt, sendgridBounceRecordSchema as w, sendgridBulkEmailValidationJobListSchema as wt, sendgridBlockListSchema as x, sendgridListContactCountSchema as xt, sendgridTemplateSchema as y, sendgridTrackingSettingsSchema as yt, sendgridStatBucketListSchema as z, sendgridContactExportListSchema as zt };
|