@withone/platform-resend 0.0.0-stage → 0.1.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/index.js ADDED
@@ -0,0 +1,897 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ addContactSegment: () => addContactSegment,
24
+ cancelScheduledEmail: () => cancelScheduledEmail,
25
+ createApiKey: () => createApiKey,
26
+ createAutomation: () => createAutomation,
27
+ createBroadcast: () => createBroadcast,
28
+ createContact: () => createContact,
29
+ createContactProperty: () => createContactProperty,
30
+ createDomain: () => createDomain,
31
+ createEvent: () => createEvent,
32
+ createSegment: () => createSegment,
33
+ createTemplate: () => createTemplate,
34
+ createTopic: () => createTopic,
35
+ createWebhook: () => createWebhook,
36
+ deleteAutomation: () => deleteAutomation,
37
+ deleteBroadcastDraft: () => deleteBroadcastDraft,
38
+ deleteContact: () => deleteContact,
39
+ deleteContactProperty: () => deleteContactProperty,
40
+ deleteEvent: () => deleteEvent,
41
+ deleteSegment: () => deleteSegment,
42
+ deleteTemplate: () => deleteTemplate,
43
+ deleteTopic: () => deleteTopic,
44
+ deleteWebhook: () => deleteWebhook,
45
+ duplicateTemplate: () => duplicateTemplate,
46
+ listApiKeys: () => listApiKeys,
47
+ listAttachmentsReceivedEmail: () => listAttachmentsReceivedEmail,
48
+ listAutomationRuns: () => listAutomationRuns,
49
+ listAutomations: () => listAutomations,
50
+ listBroadcasts: () => listBroadcasts,
51
+ listContactProperties: () => listContactProperties,
52
+ listContacts: () => listContacts,
53
+ listContactsSegments: () => listContactsSegments,
54
+ listContactsTopics: () => listContactsTopics,
55
+ listDomains: () => listDomains,
56
+ listEmails: () => listEmails,
57
+ listEvents: () => listEvents,
58
+ listLogs: () => listLogs,
59
+ listReceivedEmails: () => listReceivedEmails,
60
+ listSegments: () => listSegments,
61
+ listSentEmailsAttachments: () => listSentEmailsAttachments,
62
+ listTemplates: () => listTemplates,
63
+ listTopics: () => listTopics,
64
+ listWebhooks: () => listWebhooks,
65
+ publishTemplate: () => publishTemplate,
66
+ removeApiKey: () => removeApiKey,
67
+ removeContactFromSegment: () => removeContactFromSegment,
68
+ removeDomain: () => removeDomain,
69
+ retrieveAutomation: () => retrieveAutomation,
70
+ retrieveAutomationRun: () => retrieveAutomationRun,
71
+ retrieveBroadcast: () => retrieveBroadcast,
72
+ retrieveContactIdOrEmail: () => retrieveContactIdOrEmail,
73
+ retrieveContactProperty: () => retrieveContactProperty,
74
+ retrieveDomain: () => retrieveDomain,
75
+ retrieveEmailsAttachment: () => retrieveEmailsAttachment,
76
+ retrieveEvent: () => retrieveEvent,
77
+ retrieveLog: () => retrieveLog,
78
+ retrieveReceivedEmail: () => retrieveReceivedEmail,
79
+ retrieveReceivedEmailAttachment: () => retrieveReceivedEmailAttachment,
80
+ retrieveSegment: () => retrieveSegment,
81
+ retrieveSingleEmail: () => retrieveSingleEmail,
82
+ retrieveTemplate: () => retrieveTemplate,
83
+ retrieveTopic: () => retrieveTopic,
84
+ retrieveWebhook: () => retrieveWebhook,
85
+ sendBatchEmails: () => sendBatchEmails,
86
+ sendEmail: () => sendEmail,
87
+ sendEvent: () => sendEvent,
88
+ sendOrScheduleBroadcast: () => sendOrScheduleBroadcast,
89
+ stopAutomation: () => stopAutomation,
90
+ updateAutomation: () => updateAutomation,
91
+ updateBroadcast: () => updateBroadcast,
92
+ updateContactIdOrEmail: () => updateContactIdOrEmail,
93
+ updateContactProperty: () => updateContactProperty,
94
+ updateContactsTopics: () => updateContactsTopics,
95
+ updateDomain: () => updateDomain,
96
+ updateEmail: () => updateEmail,
97
+ updateEvent: () => updateEvent,
98
+ updateTemplate: () => updateTemplate,
99
+ updateTopic: () => updateTopic,
100
+ updateWebhook: () => updateWebhook,
101
+ verifyDomain: () => verifyDomain
102
+ });
103
+ module.exports = __toCommonJS(src_exports);
104
+ var import_codegen = require("@withone/sdk/codegen");
105
+ var __retrieveContactPropertyRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
106
+ function retrieveContactProperty(input) {
107
+ return new import_codegen.Action({
108
+ systemId: "conn_mod_def::GJ6SQvW0Qps::sSgFPHr1Qgq-HRp_I6I46Q",
109
+ method: "GET",
110
+ path: "/contact-properties/{{id}}",
111
+ ...(0, import_codegen.routeInput)(input, __retrieveContactPropertyRouting, { "headers": { "Accept": "application/json" } })
112
+ });
113
+ }
114
+ var __deleteContactRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
115
+ function deleteContact(input) {
116
+ return new import_codegen.Action({
117
+ systemId: "conn_mod_def::GJ6SQ6V8mMg::loR3evzrR-mCP4w9ybLO6A",
118
+ method: "DELETE",
119
+ path: "/contacts/{{id}}",
120
+ ...(0, import_codegen.routeInput)(input, __deleteContactRouting, { "headers": { "Accept": "application/json" } })
121
+ });
122
+ }
123
+ var __updateEmailRouting = { "routes": [["scheduled_at", "body"], ["emailId", "path"]], "requiredParts": ["body", "path"] };
124
+ function updateEmail(input) {
125
+ return new import_codegen.Action({
126
+ systemId: "conn_mod_def::GJ6SRnxxnKo::vyJ_Tm94Q1Gjcv44rP0Cig",
127
+ method: "PATCH",
128
+ path: "/emails/{{emailId}}",
129
+ ...(0, import_codegen.routeInput)(input, __updateEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
130
+ });
131
+ }
132
+ var __deleteTopicRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
133
+ function deleteTopic(input) {
134
+ return new import_codegen.Action({
135
+ systemId: "conn_mod_def::GJ6SSJ7V0pU::05L95JI6RIaex4XJdxq5jQ",
136
+ method: "DELETE",
137
+ path: "/topics/{{id}}",
138
+ ...(0, import_codegen.routeInput)(input, __deleteTopicRouting, { "headers": { "Accept": "application/json" } })
139
+ });
140
+ }
141
+ var __deleteContactPropertyRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
142
+ function deleteContactProperty(input) {
143
+ return new import_codegen.Action({
144
+ systemId: "conn_mod_def::GJ6SQfeZeys::Q5dycmGTT8W0kdZjc9hx-A",
145
+ method: "DELETE",
146
+ path: "/contact-properties/{{id}}",
147
+ ...(0, import_codegen.routeInput)(input, __deleteContactPropertyRouting, { "headers": { "Accept": "application/json" } })
148
+ });
149
+ }
150
+ var __createContactRouting = { "routes": [["audience_id", "body"], ["email", "body"], ["first_name", "body"], ["last_name", "body"], ["properties", "body"], ["segments", "body"], ["topics", "body"], ["unsubscribed", "body"]], "requiredParts": ["body"] };
151
+ function createContact(input) {
152
+ return new import_codegen.Action({
153
+ systemId: "conn_mod_def::GJ6SQt3jhlI::10Leh5p5RR2V7V673_r8oA",
154
+ method: "POST",
155
+ path: "/contacts",
156
+ ...(0, import_codegen.routeInput)(input, __createContactRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
157
+ });
158
+ }
159
+ var __publishTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
160
+ function publishTemplate(input) {
161
+ return new import_codegen.Action({
162
+ systemId: "conn_mod_def::GJ6SSC-PjSw::7OsF06T0QIarFuUXRgUSWA",
163
+ method: "POST",
164
+ path: "/templates/{{id}}/publish",
165
+ ...(0, import_codegen.routeInput)(input, __publishTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
166
+ });
167
+ }
168
+ var __listApiKeysRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
169
+ function listApiKeys(input) {
170
+ return new import_codegen.Action({
171
+ systemId: "conn_mod_def::GJ6SQK6lvm8::trDTdSJeTeK1WKxhOkrLGQ",
172
+ method: "GET",
173
+ path: "/api-keys",
174
+ ...(0, import_codegen.routeInput)(input, __listApiKeysRouting, { "headers": { "Accept": "application/json" } })
175
+ });
176
+ }
177
+ var __createBroadcastRouting = { "routes": [["audience_id", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["preview_text", "body"], ["reply_to", "body"], ["scheduled_at", "body"], ["segment_id", "body"], ["send", "body"], ["subject", "body"], ["text", "body"], ["topic_id", "body"]], "requiredParts": ["body"] };
178
+ function createBroadcast(input) {
179
+ return new import_codegen.Action({
180
+ systemId: "conn_mod_def::GJ6SQU-Yehs::sMxrd3AZSQOkWwwaHLU46g",
181
+ method: "POST",
182
+ path: "/broadcasts",
183
+ ...(0, import_codegen.routeInput)(input, __createBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
184
+ });
185
+ }
186
+ var __listContactPropertiesRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
187
+ function listContactProperties(input) {
188
+ return new import_codegen.Action({
189
+ systemId: "conn_mod_def::GJ6SQvvhIhQ::BPzfBHSiQQGcpjLz-m5UtA",
190
+ method: "GET",
191
+ path: "/contact-properties",
192
+ ...(0, import_codegen.routeInput)(input, __listContactPropertiesRouting, { "headers": { "Accept": "application/json" } })
193
+ });
194
+ }
195
+ var __removeContactFromSegmentRouting = { "routes": [["contactId", "path"], ["segmentId", "path"]], "requiredParts": ["path"] };
196
+ function removeContactFromSegment(input) {
197
+ return new import_codegen.Action({
198
+ systemId: "conn_mod_def::GJ6SQ6Mv3Po::80Sh4zV6QEe1pMSRRsjyvQ",
199
+ method: "DELETE",
200
+ path: "/contacts/{{contactId}}/segments/{{segmentId}}",
201
+ ...(0, import_codegen.routeInput)(input, __removeContactFromSegmentRouting, { "headers": { "Accept": "application/json" } })
202
+ });
203
+ }
204
+ var __removeDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
205
+ function removeDomain(input) {
206
+ return new import_codegen.Action({
207
+ systemId: "conn_mod_def::GJ6SRCly_Dg::WDYeJu9RT3ilFQja73FVxA",
208
+ method: "DELETE",
209
+ path: "/domains/{{domainId}}",
210
+ ...(0, import_codegen.routeInput)(input, __removeDomainRouting, { "headers": { "Accept": "application/json" } })
211
+ });
212
+ }
213
+ var __createDomainRouting = { "routes": [["capabilities", "body"], ["click_tracking", "body"], ["custom_return_path", "body"], ["name", "body"], ["open_tracking", "body"], ["region", "body"], ["tls", "body"]], "requiredParts": ["body"] };
214
+ function createDomain(input) {
215
+ return new import_codegen.Action({
216
+ systemId: "conn_mod_def::GJ6SRDxtYJs::ooMtDHuoRUGsXRRmENF3IQ",
217
+ method: "POST",
218
+ path: "/domains",
219
+ ...(0, import_codegen.routeInput)(input, __createDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
220
+ });
221
+ }
222
+ var __retrieveDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
223
+ function retrieveDomain(input) {
224
+ return new import_codegen.Action({
225
+ systemId: "conn_mod_def::GJ6SRSBtDLM::uOwpomkXQ9qZX1M7nlJ01g",
226
+ method: "GET",
227
+ path: "/domains/{{domainId}}",
228
+ ...(0, import_codegen.routeInput)(input, __retrieveDomainRouting, { "headers": { "Accept": "application/json" } })
229
+ });
230
+ }
231
+ var __listDomainsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
232
+ function listDomains(input) {
233
+ return new import_codegen.Action({
234
+ systemId: "conn_mod_def::GJ6SRTe7Fh8::tB_m8RIIRnSHLTTKV_-E2w",
235
+ method: "GET",
236
+ path: "/domains",
237
+ ...(0, import_codegen.routeInput)(input, __listDomainsRouting, { "headers": { "Accept": "application/json" } })
238
+ });
239
+ }
240
+ var __duplicateTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
241
+ function duplicateTemplate(input) {
242
+ return new import_codegen.Action({
243
+ systemId: "conn_mod_def::GJ6SSAX30Io::KxA0MGP8QWSCNRORgmlvvQ",
244
+ method: "POST",
245
+ path: "/templates/{{id}}/duplicate",
246
+ ...(0, import_codegen.routeInput)(input, __duplicateTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
247
+ });
248
+ }
249
+ var __retrieveSingleEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
250
+ function retrieveSingleEmail(input) {
251
+ return new import_codegen.Action({
252
+ systemId: "conn_mod_def::GJ6SRcerbx4::hFG382R8SteemlQRBdYvtQ",
253
+ method: "GET",
254
+ path: "/emails/{{emailId}}",
255
+ ...(0, import_codegen.routeInput)(input, __retrieveSingleEmailRouting, { "headers": { "Accept": "application/json" } })
256
+ });
257
+ }
258
+ var __listSentEmailsAttachmentsRouting = { "routes": [["emailId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
259
+ function listSentEmailsAttachments(input) {
260
+ return new import_codegen.Action({
261
+ systemId: "conn_mod_def::GJ6SReEHPcE::f1Q9958PTai145ogEOJ0Wg",
262
+ method: "GET",
263
+ path: "/emails/{{emailId}}/attachments",
264
+ ...(0, import_codegen.routeInput)(input, __listSentEmailsAttachmentsRouting, { "headers": { "Accept": "application/json" } })
265
+ });
266
+ }
267
+ var __sendBatchEmailsRouting = { "routes": [["body", "body", null]], "requiredParts": [] };
268
+ function sendBatchEmails(input) {
269
+ return new import_codegen.Action({
270
+ systemId: "conn_mod_def::GJ6SRoHZm8Q::cVupy9ZORNmCasMiTRsJlg",
271
+ method: "POST",
272
+ path: "/emails/batch",
273
+ ...(0, import_codegen.routeInput)(input, __sendBatchEmailsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
274
+ });
275
+ }
276
+ var __retrieveReceivedEmailAttachmentRouting = { "routes": [["attachmentId", "path"], ["emailId", "path"]], "requiredParts": ["path"] };
277
+ function retrieveReceivedEmailAttachment(input) {
278
+ return new import_codegen.Action({
279
+ systemId: "conn_mod_def::GJ6SRohm7Kw::C1UB6v8MTtudwvCblNHswQ",
280
+ method: "GET",
281
+ path: "/emails/receiving/{{emailId}}/attachments/{{attachmentId}}",
282
+ ...(0, import_codegen.routeInput)(input, __retrieveReceivedEmailAttachmentRouting, { "headers": { "Accept": "application/json" } })
283
+ });
284
+ }
285
+ var __listSegmentsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
286
+ function listSegments(input) {
287
+ return new import_codegen.Action({
288
+ systemId: "conn_mod_def::GJ6SR1Wx3bs::mVb7qoy0Tdexa4ecFQpXGQ",
289
+ method: "GET",
290
+ path: "/segments",
291
+ ...(0, import_codegen.routeInput)(input, __listSegmentsRouting, { "headers": { "Accept": "application/json" } })
292
+ });
293
+ }
294
+ var __retrieveReceivedEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
295
+ function retrieveReceivedEmail(input) {
296
+ return new import_codegen.Action({
297
+ systemId: "conn_mod_def::GJ6SR1smyYk::jcWNj6MARdmjFJbPM10Biw",
298
+ method: "GET",
299
+ path: "/emails/receiving/{{emailId}}",
300
+ ...(0, import_codegen.routeInput)(input, __retrieveReceivedEmailRouting, { "headers": { "Accept": "application/json" } })
301
+ });
302
+ }
303
+ var __listAttachmentsReceivedEmailRouting = { "routes": [["emailId", "path"], ["query", "query", null]], "requiredParts": ["path"] };
304
+ function listAttachmentsReceivedEmail(input) {
305
+ return new import_codegen.Action({
306
+ systemId: "conn_mod_def::GJ6SRqyQ5II::0whWu-NjTRaNHVzSa0tJNw",
307
+ method: "GET",
308
+ path: "/emails/receiving/{{emailId}}/attachments",
309
+ ...(0, import_codegen.routeInput)(input, __listAttachmentsReceivedEmailRouting, { "headers": { "Accept": "application/json" } })
310
+ });
311
+ }
312
+ var __createSegmentRouting = { "routes": [["audience_id", "body"], ["filter", "body"], ["name", "body"]], "requiredParts": ["body"] };
313
+ function createSegment(input) {
314
+ return new import_codegen.Action({
315
+ systemId: "conn_mod_def::GJ6SR0vqLuY::iUGMTEnKS7-7exuUV-JB6Q",
316
+ method: "POST",
317
+ path: "/segments",
318
+ ...(0, import_codegen.routeInput)(input, __createSegmentRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
319
+ });
320
+ }
321
+ var __retrieveSegmentRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
322
+ function retrieveSegment(input) {
323
+ return new import_codegen.Action({
324
+ systemId: "conn_mod_def::GJ6SR1dOqTc::HETT_IzIT8-Ctc1PbUVDaw",
325
+ method: "GET",
326
+ path: "/segments/{{id}}",
327
+ ...(0, import_codegen.routeInput)(input, __retrieveSegmentRouting, { "headers": { "Accept": "application/json" } })
328
+ });
329
+ }
330
+ var __createTemplateRouting = { "routes": [["alias", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["reply_to", "body"], ["subject", "body"], ["text", "body"], ["variables", "body"]], "requiredParts": ["body"] };
331
+ function createTemplate(input) {
332
+ return new import_codegen.Action({
333
+ systemId: "conn_mod_def::GJ6SR9X5u0w::KBsye0N7QgybB-u4xrpSTA",
334
+ method: "POST",
335
+ path: "/templates",
336
+ ...(0, import_codegen.routeInput)(input, __createTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
337
+ });
338
+ }
339
+ var __retrieveTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
340
+ function retrieveTemplate(input) {
341
+ return new import_codegen.Action({
342
+ systemId: "conn_mod_def::GJ6SSKFbhCI::vMg7ZSpRQkysU38sf3uzIQ",
343
+ method: "GET",
344
+ path: "/templates/{{id}}",
345
+ ...(0, import_codegen.routeInput)(input, __retrieveTemplateRouting, { "headers": { "Accept": "application/json" } })
346
+ });
347
+ }
348
+ var __createTopicRouting = { "routes": [["default_subscription", "body"], ["description", "body"], ["name", "body"], ["visibility", "body"]], "requiredParts": ["body"] };
349
+ function createTopic(input) {
350
+ return new import_codegen.Action({
351
+ systemId: "conn_mod_def::GJ6SSKnUG08::vSVjmpJlQRymCrQEcNiLHg",
352
+ method: "POST",
353
+ path: "/topics",
354
+ ...(0, import_codegen.routeInput)(input, __createTopicRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
355
+ });
356
+ }
357
+ var __updateWebhookRouting = { "routes": [["endpoint", "body"], ["events", "body"], ["status", "body"], ["webhookId", "path"]], "requiredParts": ["body", "path"] };
358
+ function updateWebhook(input) {
359
+ return new import_codegen.Action({
360
+ systemId: "conn_mod_def::GJ6SSjJ3Tbg::ivzeVeNyRyuD6MQv6vFsGw",
361
+ method: "PATCH",
362
+ path: "/webhooks/{{webhookId}}",
363
+ ...(0, import_codegen.routeInput)(input, __updateWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
364
+ });
365
+ }
366
+ var __createContactPropertyRouting = { "routes": [["fallback_value", "body"], ["key", "body"], ["type", "body"]], "requiredParts": ["body"] };
367
+ function createContactProperty(input) {
368
+ return new import_codegen.Action({
369
+ systemId: "conn_mod_def::GJ6SQlTaP64::Ua2wW9ShQhy8f94Af_XdkA",
370
+ method: "POST",
371
+ path: "/contact-properties",
372
+ ...(0, import_codegen.routeInput)(input, __createContactPropertyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
373
+ });
374
+ }
375
+ var __updateBroadcastRouting = { "routes": [["audience_id", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["preview_text", "body"], ["reply_to", "body"], ["segment_id", "body"], ["subject", "body"], ["text", "body"], ["topic_id", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
376
+ function updateBroadcast(input) {
377
+ return new import_codegen.Action({
378
+ systemId: "conn_mod_def::GJ6SQmzVh5g::0CmkH8JwR4ip11kQL-2fEw",
379
+ method: "PATCH",
380
+ path: "/broadcasts/{{id}}",
381
+ ...(0, import_codegen.routeInput)(input, __updateBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
382
+ });
383
+ }
384
+ var __addContactSegmentRouting = { "routes": [["contactId", "path"], ["segmentId", "path"]], "requiredParts": ["path"] };
385
+ function addContactSegment(input) {
386
+ return new import_codegen.Action({
387
+ systemId: "conn_mod_def::GJ6SQuYl700::04X1vCBfR8WTQ15gP2ssXQ",
388
+ method: "POST",
389
+ path: "/contacts/{{contactId}}/segments/{{segmentId}}",
390
+ ...(0, import_codegen.routeInput)(input, __addContactSegmentRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
391
+ });
392
+ }
393
+ var __sendEmailRouting = { "routes": [["attachments", "body"], ["bcc", "body"], ["cc", "body"], ["from", "body"], ["headers", "body"], ["html", "body"], ["reply_to", "body"], ["scheduled_at", "body"], ["subject", "body"], ["tags", "body"], ["template", "body"], ["text", "body"], ["to", "body"], ["topic_id", "body"]], "requiredParts": ["body"] };
394
+ function sendEmail(input) {
395
+ return new import_codegen.Action({
396
+ systemId: "conn_mod_def::GJ6SRgloL9U::ffk4sD2zRU-J_jTGGdBk5w",
397
+ method: "POST",
398
+ path: "/emails",
399
+ ...(0, import_codegen.routeInput)(input, __sendEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
400
+ });
401
+ }
402
+ var __listReceivedEmailsRouting = { "routes": [["query", "query", null]], "requiredParts": [] };
403
+ function listReceivedEmails(input) {
404
+ return new import_codegen.Action({
405
+ systemId: "conn_mod_def::GJ6SRt19kWs::cnNGF5y-QeOFXG-WqAZnQg",
406
+ method: "GET",
407
+ path: "/emails/receiving",
408
+ ...(0, import_codegen.routeInput)(input, __listReceivedEmailsRouting, { "headers": { "Accept": "application/json" } })
409
+ });
410
+ }
411
+ var __deleteSegmentRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
412
+ function deleteSegment(input) {
413
+ return new import_codegen.Action({
414
+ systemId: "conn_mod_def::GJ6SR0y9eV4::eKxoccOqQoKJztiSwc25oA",
415
+ method: "DELETE",
416
+ path: "/segments/{{id}}",
417
+ ...(0, import_codegen.routeInput)(input, __deleteSegmentRouting, { "headers": { "Accept": "application/json" } })
418
+ });
419
+ }
420
+ var __deleteTemplateRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
421
+ function deleteTemplate(input) {
422
+ return new import_codegen.Action({
423
+ systemId: "conn_mod_def::GJ6SR9I1k6Y::23njFYTfRjabj6776PqFeA",
424
+ method: "DELETE",
425
+ path: "/templates/{{id}}",
426
+ ...(0, import_codegen.routeInput)(input, __deleteTemplateRouting, { "headers": { "Accept": "application/json" } })
427
+ });
428
+ }
429
+ var __updateTemplateRouting = { "routes": [["alias", "body"], ["from", "body"], ["html", "body"], ["name", "body"], ["reply_to", "body"], ["subject", "body"], ["text", "body"], ["variables", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
430
+ function updateTemplate(input) {
431
+ return new import_codegen.Action({
432
+ systemId: "conn_mod_def::GJ6SSKovHx4::FT0F0lo_SZ6RGQTZ2kWZUQ",
433
+ method: "PATCH",
434
+ path: "/templates/{{id}}",
435
+ ...(0, import_codegen.routeInput)(input, __updateTemplateRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
436
+ });
437
+ }
438
+ var __retrieveWebhookRouting = { "routes": [["webhookId", "path"]], "requiredParts": ["path"] };
439
+ function retrieveWebhook(input) {
440
+ return new import_codegen.Action({
441
+ systemId: "conn_mod_def::GJ6SSfoVFJg::CbYmUEs4RXe87u3fXcI-0g",
442
+ method: "GET",
443
+ path: "/webhooks/{{webhookId}}",
444
+ ...(0, import_codegen.routeInput)(input, __retrieveWebhookRouting, { "headers": { "Accept": "application/json" } })
445
+ });
446
+ }
447
+ var __removeApiKeyRouting = { "routes": [["apiKeyId", "path"]], "requiredParts": ["path"] };
448
+ function removeApiKey(input) {
449
+ return new import_codegen.Action({
450
+ systemId: "conn_mod_def::GJ6SQIU-98U::Uu_tg_ERRTqQl_gK_jivsw",
451
+ method: "DELETE",
452
+ path: "/api-keys/{{apiKeyId}}",
453
+ ...(0, import_codegen.routeInput)(input, __removeApiKeyRouting, { "headers": { "Accept": "application/json" } })
454
+ });
455
+ }
456
+ var __verifyDomainRouting = { "routes": [["domainId", "path"]], "requiredParts": ["path"] };
457
+ function verifyDomain(input) {
458
+ return new import_codegen.Action({
459
+ systemId: "conn_mod_def::GJ6SRUbooAM::NCip1IyKRfiKuJQzwE2B4A",
460
+ method: "POST",
461
+ path: "/domains/{{domainId}}/verify",
462
+ ...(0, import_codegen.routeInput)(input, __verifyDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
463
+ });
464
+ }
465
+ var __deleteBroadcastDraftRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
466
+ function deleteBroadcastDraft(input) {
467
+ return new import_codegen.Action({
468
+ systemId: "conn_mod_def::GJ6SQTtCmwc::SCII7IsVS5Wio4qQdPZ0oQ",
469
+ method: "DELETE",
470
+ path: "/broadcasts/{{id}}",
471
+ ...(0, import_codegen.routeInput)(input, __deleteBroadcastDraftRouting, { "headers": { "Accept": "application/json" } })
472
+ });
473
+ }
474
+ var __createApiKeyRouting = { "routes": [["domain_id", "body"], ["name", "body"], ["permission", "body"]], "requiredParts": ["body"] };
475
+ function createApiKey(input) {
476
+ return new import_codegen.Action({
477
+ systemId: "conn_mod_def::GJ6SQIayOl8::dwrNtslSTduCzlsGg_3bKg",
478
+ method: "POST",
479
+ path: "/api-keys",
480
+ ...(0, import_codegen.routeInput)(input, __createApiKeyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
481
+ });
482
+ }
483
+ var __updateContactPropertyRouting = { "routes": [["fallback_value", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
484
+ function updateContactProperty(input) {
485
+ return new import_codegen.Action({
486
+ systemId: "conn_mod_def::GJ6SQyOMWBc::L2m7Yfo7TSSYXC4rfgLjZA",
487
+ method: "PATCH",
488
+ path: "/contact-properties/{{id}}",
489
+ ...(0, import_codegen.routeInput)(input, __updateContactPropertyRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
490
+ });
491
+ }
492
+ var __sendOrScheduleBroadcastRouting = { "routes": [["scheduled_at", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
493
+ function sendOrScheduleBroadcast(input) {
494
+ return new import_codegen.Action({
495
+ systemId: "conn_mod_def::GJ6SQf1CnvU::qYu8Ko0jRviqSVgIrsR9Wg",
496
+ method: "POST",
497
+ path: "/broadcasts/{{id}}/send",
498
+ ...(0, import_codegen.routeInput)(input, __sendOrScheduleBroadcastRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
499
+ });
500
+ }
501
+ var __listContactsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"], ["segment_id", "query"]], "requiredParts": [] };
502
+ function listContacts(input) {
503
+ return new import_codegen.Action({
504
+ systemId: "conn_mod_def::GJ6SQ7DFu44::Ndbs37cHSEKvas_wTgG2mw",
505
+ method: "GET",
506
+ path: "/contacts",
507
+ ...(0, import_codegen.routeInput)(input, __listContactsRouting, { "headers": { "Accept": "application/json" } })
508
+ });
509
+ }
510
+ var __updateDomainRouting = { "routes": [["capabilities", "body"], ["click_tracking", "body"], ["open_tracking", "body"], ["tls", "body"], ["domainId", "path"]], "requiredParts": ["body", "path"] };
511
+ function updateDomain(input) {
512
+ return new import_codegen.Action({
513
+ systemId: "conn_mod_def::GJ6SRRrKowA::2ARJbS8PQdOXDgjG10dGyg",
514
+ method: "PATCH",
515
+ path: "/domains/{{domainId}}",
516
+ ...(0, import_codegen.routeInput)(input, __updateDomainRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
517
+ });
518
+ }
519
+ var __listContactsTopicsRouting = { "routes": [["contactId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": ["path"] };
520
+ function listContactsTopics(input) {
521
+ return new import_codegen.Action({
522
+ systemId: "conn_mod_def::GJ6SRFeDA2g::tNICtRvLRpGnjZJShCAYAw",
523
+ method: "GET",
524
+ path: "/contacts/{{contactId}}/topics",
525
+ ...(0, import_codegen.routeInput)(input, __listContactsTopicsRouting, { "headers": { "Accept": "application/json" } })
526
+ });
527
+ }
528
+ var __retrieveContactIdOrEmailRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
529
+ function retrieveContactIdOrEmail(input) {
530
+ return new import_codegen.Action({
531
+ systemId: "conn_mod_def::GJ6SQ5s1QZo::faJisv9DTHGzq_A19Zs8vA",
532
+ method: "GET",
533
+ path: "/contacts/{{id}}",
534
+ ...(0, import_codegen.routeInput)(input, __retrieveContactIdOrEmailRouting, { "headers": { "Accept": "application/json" } })
535
+ });
536
+ }
537
+ var __retrieveEmailsAttachmentRouting = { "routes": [["attachmentId", "path"], ["emailId", "path"]], "requiredParts": ["path"] };
538
+ function retrieveEmailsAttachment(input) {
539
+ return new import_codegen.Action({
540
+ systemId: "conn_mod_def::GJ6SRfcBtYo::5N4OabrmSuqPqDqOmneDSw",
541
+ method: "GET",
542
+ path: "/emails/{{emailId}}/attachments/{{attachmentId}}",
543
+ ...(0, import_codegen.routeInput)(input, __retrieveEmailsAttachmentRouting, { "headers": { "Accept": "application/json" } })
544
+ });
545
+ }
546
+ var __updateContactIdOrEmailRouting = { "routes": [["email", "body"], ["first_name", "body"], ["last_name", "body"], ["properties", "body"], ["unsubscribed", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
547
+ function updateContactIdOrEmail(input) {
548
+ return new import_codegen.Action({
549
+ systemId: "conn_mod_def::GJ6SRDQbg5k::hBgqy1SUTkGdj_S9aWBi8A",
550
+ method: "PATCH",
551
+ path: "/contacts/{{id}}",
552
+ ...(0, import_codegen.routeInput)(input, __updateContactIdOrEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
553
+ });
554
+ }
555
+ var __updateContactsTopicsRouting = { "routes": [["topics", "body"], ["contactId", "path"]], "requiredParts": ["body", "path"] };
556
+ function updateContactsTopics(input) {
557
+ return new import_codegen.Action({
558
+ systemId: "conn_mod_def::GJ6SRJ1ZBCk::NmI04M2QQmiDdUMeGw7A2w",
559
+ method: "PATCH",
560
+ path: "/contacts/{{contactId}}/topics",
561
+ ...(0, import_codegen.routeInput)(input, __updateContactsTopicsRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
562
+ });
563
+ }
564
+ var __cancelScheduledEmailRouting = { "routes": [["emailId", "path"]], "requiredParts": ["path"] };
565
+ function cancelScheduledEmail(input) {
566
+ return new import_codegen.Action({
567
+ systemId: "conn_mod_def::GJ6SRU_IODQ::uZ-yJz-jSPKdMSPWhlI2KA",
568
+ method: "POST",
569
+ path: "/emails/{{emailId}}/cancel",
570
+ ...(0, import_codegen.routeInput)(input, __cancelScheduledEmailRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
571
+ });
572
+ }
573
+ var __listBroadcastsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
574
+ function listBroadcasts(input) {
575
+ return new import_codegen.Action({
576
+ systemId: "conn_mod_def::GJ6SQX9Jyh0::U-CTSzAvSzKuD25Q3TIK4Q",
577
+ method: "GET",
578
+ path: "/broadcasts",
579
+ ...(0, import_codegen.routeInput)(input, __listBroadcastsRouting, { "headers": { "Accept": "application/json" } })
580
+ });
581
+ }
582
+ var __listContactsSegmentsRouting = { "routes": [["contactId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": ["path"] };
583
+ function listContactsSegments(input) {
584
+ return new import_codegen.Action({
585
+ systemId: "conn_mod_def::GJ6SQ6eEMoc::ENFPxMD9R-2cK93bcc7rDA",
586
+ method: "GET",
587
+ path: "/contacts/{{contactId}}/segments",
588
+ ...(0, import_codegen.routeInput)(input, __listContactsSegmentsRouting, { "headers": { "Accept": "application/json" } })
589
+ });
590
+ }
591
+ var __listEmailsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
592
+ function listEmails(input) {
593
+ return new import_codegen.Action({
594
+ systemId: "conn_mod_def::GJ6SRf8FQWg::MmeqceRoTmSeLYCxbaAmUA",
595
+ method: "GET",
596
+ path: "/emails",
597
+ ...(0, import_codegen.routeInput)(input, __listEmailsRouting, { "headers": { "Accept": "application/json" } })
598
+ });
599
+ }
600
+ var __retrieveBroadcastRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
601
+ function retrieveBroadcast(input) {
602
+ return new import_codegen.Action({
603
+ systemId: "conn_mod_def::GJ6SQgVHZXg::izwXC941TfS_CNMqtrvpIA",
604
+ method: "GET",
605
+ path: "/broadcasts/{{id}}",
606
+ ...(0, import_codegen.routeInput)(input, __retrieveBroadcastRouting, { "headers": { "Accept": "application/json" } })
607
+ });
608
+ }
609
+ var __deleteWebhookRouting = { "routes": [["webhookId", "path"]], "requiredParts": ["path"] };
610
+ function deleteWebhook(input) {
611
+ return new import_codegen.Action({
612
+ systemId: "conn_mod_def::GJ6SSXL1wH8::Q-IpinknT7CiKabqtHTG9A",
613
+ method: "DELETE",
614
+ path: "/webhooks/{{webhookId}}",
615
+ ...(0, import_codegen.routeInput)(input, __deleteWebhookRouting, { "headers": { "Accept": "application/json" } })
616
+ });
617
+ }
618
+ var __retrieveTopicRouting = { "routes": [["id", "path"]], "requiredParts": ["path"] };
619
+ function retrieveTopic(input) {
620
+ return new import_codegen.Action({
621
+ systemId: "conn_mod_def::GJ6SSSdIGc8::Ax9LaEQ8SJe4QCPNyq9OBg",
622
+ method: "GET",
623
+ path: "/topics/{{id}}",
624
+ ...(0, import_codegen.routeInput)(input, __retrieveTopicRouting, { "headers": { "Accept": "application/json" } })
625
+ });
626
+ }
627
+ var __createWebhookRouting = { "routes": [["endpoint", "body"], ["events", "body"]], "requiredParts": ["body"] };
628
+ function createWebhook(input) {
629
+ return new import_codegen.Action({
630
+ systemId: "conn_mod_def::GJ6SSSj-VGk::18at33nmRQiQhaT7OxoPXQ",
631
+ method: "POST",
632
+ path: "/webhooks",
633
+ ...(0, import_codegen.routeInput)(input, __createWebhookRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
634
+ });
635
+ }
636
+ var __listTemplatesRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
637
+ function listTemplates(input) {
638
+ return new import_codegen.Action({
639
+ systemId: "conn_mod_def::GJ6SR9sumbc::BuAgBQSNTGGPrWPVu3JtNQ",
640
+ method: "GET",
641
+ path: "/templates",
642
+ ...(0, import_codegen.routeInput)(input, __listTemplatesRouting, { "headers": { "Accept": "application/json" } })
643
+ });
644
+ }
645
+ var __listTopicsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
646
+ function listTopics(input) {
647
+ return new import_codegen.Action({
648
+ systemId: "conn_mod_def::GJ6SSKwhyis::qPHbHCC3TNO0DsmvIXWegA",
649
+ method: "GET",
650
+ path: "/topics",
651
+ ...(0, import_codegen.routeInput)(input, __listTopicsRouting, { "headers": { "Accept": "application/json" } })
652
+ });
653
+ }
654
+ var __updateTopicRouting = { "routes": [["description", "body"], ["name", "body"], ["visibility", "body"], ["id", "path"]], "requiredParts": ["body", "path"] };
655
+ function updateTopic(input) {
656
+ return new import_codegen.Action({
657
+ systemId: "conn_mod_def::GJ6SSWg8Z8Q::-BqCdu1USTuSmaDeMN8T1g",
658
+ method: "PATCH",
659
+ path: "/topics/{{id}}",
660
+ ...(0, import_codegen.routeInput)(input, __updateTopicRouting, { "headers": { "Accept": "application/json", "Content-Type": "application/json" } })
661
+ });
662
+ }
663
+ var __listWebhooksRouting = { "routes": [["query", "query", null]], "requiredParts": [] };
664
+ function listWebhooks(input) {
665
+ return new import_codegen.Action({
666
+ systemId: "conn_mod_def::GJ6SSTwQGjk::Lb29VMQaSHqKbU6ZZjdINw",
667
+ method: "GET",
668
+ path: "/webhooks",
669
+ ...(0, import_codegen.routeInput)(input, __listWebhooksRouting, { "headers": { "Accept": "application/json" } })
670
+ });
671
+ }
672
+ var __createAutomationRouting = { "routes": [["connections", "body"], ["name", "body"], ["status", "body"], ["steps", "body"]], "requiredParts": ["body"] };
673
+ function createAutomation(input) {
674
+ return new import_codegen.Action({
675
+ systemId: "conn_mod_def::GOUbGrHb4sA::C7NTt7HKRzeCPvBZ1E_aUw",
676
+ method: "POST",
677
+ path: "/automations",
678
+ ...(0, import_codegen.routeInput)(input, __createAutomationRouting, { "headers": { "Content-Type": "application/json" } })
679
+ });
680
+ }
681
+ var __retrieveAutomationRunRouting = { "routes": [["automationId", "path"], ["runId", "path"]], "requiredParts": ["path"] };
682
+ function retrieveAutomationRun(input) {
683
+ return new import_codegen.Action({
684
+ systemId: "conn_mod_def::GOUbG00_HyA::p_X1YD6RSOST4kQvAa-0AA",
685
+ method: "GET",
686
+ path: "/automations/{{automationId}}/runs/{{runId}}",
687
+ ...(0, import_codegen.routeInput)(input, __retrieveAutomationRunRouting)
688
+ });
689
+ }
690
+ var __updateAutomationRouting = { "routes": [["automationId", "path"], ["body", "body", null]], "requiredParts": ["path"] };
691
+ function updateAutomation(input) {
692
+ return new import_codegen.Action({
693
+ systemId: "conn_mod_def::GOUbGzPuvpA::W84CT2kRQVeNcKxi2xlrvA",
694
+ method: "PATCH",
695
+ path: "/automations/{{automationId}}",
696
+ ...(0, import_codegen.routeInput)(input, __updateAutomationRouting, { "headers": { "Content-Type": "application/json" } })
697
+ });
698
+ }
699
+ var __listEventsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
700
+ function listEvents(input) {
701
+ return new import_codegen.Action({
702
+ systemId: "conn_mod_def::GOUbG8nw-zg::uurqLMAFQGaq5JSKUs5oQQ",
703
+ method: "GET",
704
+ path: "/events",
705
+ ...(0, import_codegen.routeInput)(input, __listEventsRouting)
706
+ });
707
+ }
708
+ var __retrieveAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
709
+ function retrieveAutomation(input) {
710
+ return new import_codegen.Action({
711
+ systemId: "conn_mod_def::GOUbGoSWsrg::D-XxFHM-RoWzaLqddJRjeg",
712
+ method: "GET",
713
+ path: "/automations/{{automationId}}",
714
+ ...(0, import_codegen.routeInput)(input, __retrieveAutomationRouting)
715
+ });
716
+ }
717
+ var __listAutomationRunsRouting = { "routes": [["automationId", "path"], ["after", "query"], ["before", "query"], ["limit", "query"], ["status", "query"]], "requiredParts": ["path"] };
718
+ function listAutomationRuns(input) {
719
+ return new import_codegen.Action({
720
+ systemId: "conn_mod_def::GOUbGpasx4A::dTV6V9t8SeaC1X5h6NXNow",
721
+ method: "GET",
722
+ path: "/automations/{{automationId}}/runs",
723
+ ...(0, import_codegen.routeInput)(input, __listAutomationRunsRouting)
724
+ });
725
+ }
726
+ var __deleteEventRouting = { "routes": [["identifier", "path"]], "requiredParts": ["path"] };
727
+ function deleteEvent(input) {
728
+ return new import_codegen.Action({
729
+ systemId: "conn_mod_def::GOUbGzk2L1A::jzEQpaG6S5-lLu4HbeiSIw",
730
+ method: "DELETE",
731
+ path: "/events/{{identifier}}",
732
+ ...(0, import_codegen.routeInput)(input, __deleteEventRouting)
733
+ });
734
+ }
735
+ var __listAutomationsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"], ["status", "query"]], "requiredParts": [] };
736
+ function listAutomations(input) {
737
+ return new import_codegen.Action({
738
+ systemId: "conn_mod_def::GOUbGqQ82xA::QwsDDIdcSXS070o4pGcRwg",
739
+ method: "GET",
740
+ path: "/automations",
741
+ ...(0, import_codegen.routeInput)(input, __listAutomationsRouting)
742
+ });
743
+ }
744
+ var __stopAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
745
+ function stopAutomation(input) {
746
+ return new import_codegen.Action({
747
+ systemId: "conn_mod_def::GOUbGx2IvFA::Z71kWDA0RnKzTGZK6f147A",
748
+ method: "POST",
749
+ path: "/automations/{{automationId}}/stop",
750
+ ...(0, import_codegen.routeInput)(input, __stopAutomationRouting)
751
+ });
752
+ }
753
+ var __sendEventRouting = { "routes": [["body", "body", null]], "requiredParts": [] };
754
+ function sendEvent(input) {
755
+ return new import_codegen.Action({
756
+ systemId: "conn_mod_def::GOUbG9N96ZA::rMlh3387QECM6zGltFVECA",
757
+ method: "POST",
758
+ path: "/events/send",
759
+ ...(0, import_codegen.routeInput)(input, __sendEventRouting, { "headers": { "Content-Type": "application/json" } })
760
+ });
761
+ }
762
+ var __deleteAutomationRouting = { "routes": [["automationId", "path"]], "requiredParts": ["path"] };
763
+ function deleteAutomation(input) {
764
+ return new import_codegen.Action({
765
+ systemId: "conn_mod_def::GOUbGovRGdg::7IZ4Sk9CR9m7L6DvSqOFJw",
766
+ method: "DELETE",
767
+ path: "/automations/{{automationId}}",
768
+ ...(0, import_codegen.routeInput)(input, __deleteAutomationRouting, { "headers": { "Accept": "application/json" } })
769
+ });
770
+ }
771
+ var __createEventRouting = { "routes": [["name", "body"], ["schema", "body"]], "requiredParts": ["body"] };
772
+ function createEvent(input) {
773
+ return new import_codegen.Action({
774
+ systemId: "conn_mod_def::GOUbGy5oLag::Ld9CrdvMSB2f0p5QMLDhwQ",
775
+ method: "POST",
776
+ path: "/events",
777
+ ...(0, import_codegen.routeInput)(input, __createEventRouting, { "headers": { "Content-Type": "application/json" } })
778
+ });
779
+ }
780
+ var __retrieveEventRouting = { "routes": [["identifier", "path"]], "requiredParts": ["path"] };
781
+ function retrieveEvent(input) {
782
+ return new import_codegen.Action({
783
+ systemId: "conn_mod_def::GOUbG7vt0rg::mPKT2AjfTx2dqpq1bCL0GQ",
784
+ method: "GET",
785
+ path: "/events/{{identifier}}",
786
+ ...(0, import_codegen.routeInput)(input, __retrieveEventRouting)
787
+ });
788
+ }
789
+ var __updateEventRouting = { "routes": [["schema", "body"], ["identifier", "path"]], "requiredParts": ["body", "path"] };
790
+ function updateEvent(input) {
791
+ return new import_codegen.Action({
792
+ systemId: "conn_mod_def::GOUbG7-q_eA::nJr0hygZQ1in-6BTya8DQA",
793
+ method: "PATCH",
794
+ path: "/events/{{identifier}}",
795
+ ...(0, import_codegen.routeInput)(input, __updateEventRouting, { "headers": { "Content-Type": "application/json" } })
796
+ });
797
+ }
798
+ var __listLogsRouting = { "routes": [["after", "query"], ["before", "query"], ["limit", "query"]], "requiredParts": [] };
799
+ function listLogs(input) {
800
+ return new import_codegen.Action({
801
+ systemId: "conn_mod_def::GOUbG8D5rZA::Vrz405fHRs2SCkFRqX5ihw",
802
+ method: "GET",
803
+ path: "/logs",
804
+ ...(0, import_codegen.routeInput)(input, __listLogsRouting)
805
+ });
806
+ }
807
+ var __retrieveLogRouting = { "routes": [["logId", "path"]], "requiredParts": ["path"] };
808
+ function retrieveLog(input) {
809
+ return new import_codegen.Action({
810
+ systemId: "conn_mod_def::GOUbHFzLQ_A::ztMA7SGkRoqvEq_b5p8oCQ",
811
+ method: "GET",
812
+ path: "/logs/{{logId}}",
813
+ ...(0, import_codegen.routeInput)(input, __retrieveLogRouting)
814
+ });
815
+ }
816
+ // Annotate the CommonJS export names for ESM import in node:
817
+ 0 && (module.exports = {
818
+ addContactSegment,
819
+ cancelScheduledEmail,
820
+ createApiKey,
821
+ createAutomation,
822
+ createBroadcast,
823
+ createContact,
824
+ createContactProperty,
825
+ createDomain,
826
+ createEvent,
827
+ createSegment,
828
+ createTemplate,
829
+ createTopic,
830
+ createWebhook,
831
+ deleteAutomation,
832
+ deleteBroadcastDraft,
833
+ deleteContact,
834
+ deleteContactProperty,
835
+ deleteEvent,
836
+ deleteSegment,
837
+ deleteTemplate,
838
+ deleteTopic,
839
+ deleteWebhook,
840
+ duplicateTemplate,
841
+ listApiKeys,
842
+ listAttachmentsReceivedEmail,
843
+ listAutomationRuns,
844
+ listAutomations,
845
+ listBroadcasts,
846
+ listContactProperties,
847
+ listContacts,
848
+ listContactsSegments,
849
+ listContactsTopics,
850
+ listDomains,
851
+ listEmails,
852
+ listEvents,
853
+ listLogs,
854
+ listReceivedEmails,
855
+ listSegments,
856
+ listSentEmailsAttachments,
857
+ listTemplates,
858
+ listTopics,
859
+ listWebhooks,
860
+ publishTemplate,
861
+ removeApiKey,
862
+ removeContactFromSegment,
863
+ removeDomain,
864
+ retrieveAutomation,
865
+ retrieveAutomationRun,
866
+ retrieveBroadcast,
867
+ retrieveContactIdOrEmail,
868
+ retrieveContactProperty,
869
+ retrieveDomain,
870
+ retrieveEmailsAttachment,
871
+ retrieveEvent,
872
+ retrieveLog,
873
+ retrieveReceivedEmail,
874
+ retrieveReceivedEmailAttachment,
875
+ retrieveSegment,
876
+ retrieveSingleEmail,
877
+ retrieveTemplate,
878
+ retrieveTopic,
879
+ retrieveWebhook,
880
+ sendBatchEmails,
881
+ sendEmail,
882
+ sendEvent,
883
+ sendOrScheduleBroadcast,
884
+ stopAutomation,
885
+ updateAutomation,
886
+ updateBroadcast,
887
+ updateContactIdOrEmail,
888
+ updateContactProperty,
889
+ updateContactsTopics,
890
+ updateDomain,
891
+ updateEmail,
892
+ updateEvent,
893
+ updateTemplate,
894
+ updateTopic,
895
+ updateWebhook,
896
+ verifyDomain
897
+ });