@distilled.cloud/resend 1.0.0-rc.13 → 1.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +2 -4
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +3 -11
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/resend.d.ts +1 -1
- package/lib/services/resend.d.ts.map +1 -1
- package/lib/services/resend.js +130 -384
- package/lib/services/resend.js.map +1 -1
- package/package.json +12 -10
- package/src/credentials.ts +7 -8
- package/src/errors.ts +5 -8
- package/src/index.ts +1 -5
- package/src/pagination.ts +5 -14
- package/src/protocol.ts +35 -45
- package/src/retry.ts +2 -8
- package/src/services/resend.ts +331 -758
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -43
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -57
package/lib/services/resend.js
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
1
2
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-resend). Do not edit.
|
|
2
3
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
4
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as T from "../traits.js";
|
|
6
|
-
import { ResendProtocol, } from "../protocol.js";
|
|
7
|
-
import { paginateResend } from "../pagination.js";
|
|
8
5
|
import { UnknownResendError } from "../errors.js";
|
|
6
|
+
import { paginateResend } from "../pagination.js";
|
|
7
|
+
import { ResendProtocol } from "../protocol.js";
|
|
9
8
|
import * as Retry from "../retry.js";
|
|
9
|
+
import * as T from "../traits.js";
|
|
10
10
|
export const CancelEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
11
11
|
email_id: S.String.pipe(T.Label()),
|
|
12
|
-
}).pipe(T.Http({ method: "POST", uri: "/emails/{email_id}/cancel", code: 200 }))).annotate({
|
|
13
|
-
identifier: "CancelEmailRequest",
|
|
14
|
-
});
|
|
12
|
+
}).pipe(T.Http({ method: "POST", uri: "/emails/{email_id}/cancel", code: 200 }))).annotate({ identifier: "CancelEmailRequest" });
|
|
15
13
|
export const EmailToList = /*@__PURE__*/ S.Array(S.String);
|
|
16
14
|
export const EmailBccList = /*@__PURE__*/ S.Array(S.String);
|
|
17
15
|
export const EmailCcList = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -35,15 +33,11 @@ export const CreateApiKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
35
33
|
name: S.String,
|
|
36
34
|
permission: S.optional(CreateApiKeyRequestPermission),
|
|
37
35
|
domain_id: S.optional(S.String),
|
|
38
|
-
}).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 }))).annotate({
|
|
39
|
-
identifier: "CreateApiKeyRequest",
|
|
40
|
-
});
|
|
36
|
+
}).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 }))).annotate({ identifier: "CreateApiKeyRequest" });
|
|
41
37
|
export const CreateApiKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
42
38
|
id: S.optional(S.String),
|
|
43
39
|
token: S.optional(S.String),
|
|
44
|
-
})).annotate({
|
|
45
|
-
identifier: "CreateApiKeyResponse",
|
|
46
|
-
});
|
|
40
|
+
})).annotate({ identifier: "CreateApiKeyResponse" });
|
|
47
41
|
export const CreateAutomationRequestStatus = S.String;
|
|
48
42
|
export const AutomationStepType = S.String;
|
|
49
43
|
export const AutomationStep = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -57,24 +51,18 @@ export const AutomationConnection = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
57
51
|
from: S.String,
|
|
58
52
|
to: S.String,
|
|
59
53
|
type: S.optional(AutomationConnectionType),
|
|
60
|
-
})).annotate({
|
|
61
|
-
identifier: "AutomationConnection",
|
|
62
|
-
});
|
|
54
|
+
})).annotate({ identifier: "AutomationConnection" });
|
|
63
55
|
export const CreateAutomationRequestConnectionsList = /*@__PURE__*/ S.Array(AutomationConnection);
|
|
64
56
|
export const CreateAutomationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
65
57
|
name: S.String,
|
|
66
58
|
status: S.optional(CreateAutomationRequestStatus),
|
|
67
59
|
steps: CreateAutomationRequestStepsList,
|
|
68
60
|
connections: CreateAutomationRequestConnectionsList,
|
|
69
|
-
}).pipe(T.Http({ method: "POST", uri: "/automations", code: 200 }))).annotate({
|
|
70
|
-
identifier: "CreateAutomationRequest",
|
|
71
|
-
});
|
|
61
|
+
}).pipe(T.Http({ method: "POST", uri: "/automations", code: 200 }))).annotate({ identifier: "CreateAutomationRequest" });
|
|
72
62
|
export const CreateAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
73
63
|
object: S.optional(S.String),
|
|
74
64
|
id: S.optional(S.String),
|
|
75
|
-
})).annotate({
|
|
76
|
-
identifier: "CreateAutomationResponse",
|
|
77
|
-
});
|
|
65
|
+
})).annotate({ identifier: "CreateAutomationResponse" });
|
|
78
66
|
export const CreateBroadcastRequestReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
79
67
|
export const CreateBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
80
68
|
name: S.optional(S.String),
|
|
@@ -89,9 +77,7 @@ export const CreateBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
89
77
|
topic_id: S.optional(S.String),
|
|
90
78
|
send: S.optional(S.Boolean),
|
|
91
79
|
scheduled_at: S.optional(S.String),
|
|
92
|
-
}).pipe(T.Http({ method: "POST", uri: "/broadcasts", code: 200 }))).annotate({
|
|
93
|
-
identifier: "CreateBroadcastRequest",
|
|
94
|
-
});
|
|
80
|
+
}).pipe(T.Http({ method: "POST", uri: "/broadcasts", code: 200 }))).annotate({ identifier: "CreateBroadcastRequest" });
|
|
95
81
|
export const CreateBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
96
82
|
id: S.optional(S.String),
|
|
97
83
|
object: S.optional(S.String),
|
|
@@ -117,9 +103,7 @@ export const CreateContactRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
117
103
|
segments: S.optional(CreateContactRequestSegmentsList),
|
|
118
104
|
topics: S.optional(CreateContactRequestTopicsList),
|
|
119
105
|
audience_id: S.optional(S.String),
|
|
120
|
-
}).pipe(T.Http({ method: "POST", uri: "/contacts", code: 200 }))).annotate({
|
|
121
|
-
identifier: "CreateContactRequest",
|
|
122
|
-
});
|
|
106
|
+
}).pipe(T.Http({ method: "POST", uri: "/contacts", code: 200 }))).annotate({ identifier: "CreateContactRequest" });
|
|
123
107
|
export const CreateContactResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
124
108
|
object: S.optional(S.String),
|
|
125
109
|
id: S.optional(S.String),
|
|
@@ -148,9 +132,7 @@ export const DomainCapabilitiesReceiving = S.String;
|
|
|
148
132
|
export const DomainCapabilities = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
149
133
|
sending: S.optional(DomainCapabilitiesSending),
|
|
150
134
|
receiving: S.optional(DomainCapabilitiesReceiving),
|
|
151
|
-
})).annotate({
|
|
152
|
-
identifier: "DomainCapabilities",
|
|
153
|
-
});
|
|
135
|
+
})).annotate({ identifier: "DomainCapabilities" });
|
|
154
136
|
export const CreateDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
155
137
|
name: S.String,
|
|
156
138
|
region: S.optional(CreateDomainRequestRegion),
|
|
@@ -160,9 +142,7 @@ export const CreateDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
160
142
|
tls: S.optional(CreateDomainRequestTls),
|
|
161
143
|
capabilities: S.optional(DomainCapabilities),
|
|
162
144
|
tracking_subdomain: S.optional(S.String),
|
|
163
|
-
}).pipe(T.Http({ method: "POST", uri: "/domains", code: 200 }))).annotate({
|
|
164
|
-
identifier: "CreateDomainRequest",
|
|
165
|
-
});
|
|
145
|
+
}).pipe(T.Http({ method: "POST", uri: "/domains", code: 200 }))).annotate({ identifier: "CreateDomainRequest" });
|
|
166
146
|
export const DomainRecordRecord = S.String;
|
|
167
147
|
export const DomainRecordType = S.String;
|
|
168
148
|
export const DomainRecordStatus = S.String;
|
|
@@ -187,9 +167,7 @@ export const CreateDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
187
167
|
open_tracking: S.optional(S.Boolean),
|
|
188
168
|
click_tracking: S.optional(S.Boolean),
|
|
189
169
|
tracking_subdomain: S.optional(S.String),
|
|
190
|
-
})).annotate({
|
|
191
|
-
identifier: "CreateDomainResponse",
|
|
192
|
-
});
|
|
170
|
+
})).annotate({ identifier: "CreateDomainResponse" });
|
|
193
171
|
export const CreateEmailRequestToCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
194
172
|
export const CreateEmailRequestTo = S.Unknown;
|
|
195
173
|
export const CreateEmailRequestBccCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -234,14 +212,10 @@ export const CreateEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
234
212
|
attachments: S.optional(CreateEmailRequestAttachmentsList),
|
|
235
213
|
tags: S.optional(CreateEmailRequestTagsList),
|
|
236
214
|
topic_id: S.optional(S.String),
|
|
237
|
-
}).pipe(T.Http({ method: "POST", uri: "/emails", code: 200 }))).annotate({
|
|
238
|
-
identifier: "CreateEmailRequest",
|
|
239
|
-
});
|
|
215
|
+
}).pipe(T.Http({ method: "POST", uri: "/emails", code: 200 }))).annotate({ identifier: "CreateEmailRequest" });
|
|
240
216
|
export const SendEmailResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
241
217
|
id: S.optional(S.String),
|
|
242
|
-
})).annotate({
|
|
243
|
-
identifier: "SendEmailResponse",
|
|
244
|
-
});
|
|
218
|
+
})).annotate({ identifier: "SendEmailResponse" });
|
|
245
219
|
export const SendEmailRequestToCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
246
220
|
export const SendEmailRequestTo = S.Unknown;
|
|
247
221
|
export const SendEmailRequestBccCase1List = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -255,9 +229,7 @@ export const SendEmailRequestTemplateVariablesMap = /*@__PURE__*/ S.Record(S.Str
|
|
|
255
229
|
export const SendEmailRequestTemplate = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
256
230
|
id: S.String,
|
|
257
231
|
variables: S.optional(SendEmailRequestTemplateVariablesMap),
|
|
258
|
-
})).annotate({
|
|
259
|
-
identifier: "SendEmailRequestTemplate",
|
|
260
|
-
});
|
|
232
|
+
})).annotate({ identifier: "SendEmailRequestTemplate" });
|
|
261
233
|
export const SendEmailRequestAttachmentsList = /*@__PURE__*/ S.Array(Attachment);
|
|
262
234
|
export const SendEmailRequestTagsList = /*@__PURE__*/ S.Array(Tag);
|
|
263
235
|
export const SendEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -275,15 +247,11 @@ export const SendEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
275
247
|
attachments: S.optional(SendEmailRequestAttachmentsList),
|
|
276
248
|
tags: S.optional(SendEmailRequestTagsList),
|
|
277
249
|
topic_id: S.optional(S.String),
|
|
278
|
-
})).annotate({
|
|
279
|
-
identifier: "SendEmailRequest",
|
|
280
|
-
});
|
|
250
|
+
})).annotate({ identifier: "SendEmailRequest" });
|
|
281
251
|
export const CreateEmailBatchRequestBodyList = /*@__PURE__*/ S.Array(SendEmailRequest);
|
|
282
252
|
export const CreateEmailBatchRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
283
253
|
body: S.optional(CreateEmailBatchRequestBodyList.pipe(T.HttpBody())),
|
|
284
|
-
}).pipe(T.Http({ method: "POST", uri: "/emails/batch", code: 200 }))).annotate({
|
|
285
|
-
identifier: "CreateEmailBatchRequest",
|
|
286
|
-
});
|
|
254
|
+
}).pipe(T.Http({ method: "POST", uri: "/emails/batch", code: 200 }))).annotate({ identifier: "CreateEmailBatchRequest" });
|
|
287
255
|
export const CreateBatchEmailsResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
288
256
|
id: S.optional(S.String),
|
|
289
257
|
})).annotate({
|
|
@@ -298,22 +266,16 @@ export const CreateBatchEmailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
298
266
|
export const CreateEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
299
267
|
name: S.String,
|
|
300
268
|
schema: S.optional(S.NullOr(S.Unknown)),
|
|
301
|
-
}).pipe(T.Http({ method: "POST", uri: "/events", code: 200 }))).annotate({
|
|
302
|
-
identifier: "CreateEventRequest",
|
|
303
|
-
});
|
|
269
|
+
}).pipe(T.Http({ method: "POST", uri: "/events", code: 200 }))).annotate({ identifier: "CreateEventRequest" });
|
|
304
270
|
export const CreateEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
305
271
|
object: S.optional(S.String),
|
|
306
272
|
id: S.optional(S.String),
|
|
307
|
-
})).annotate({
|
|
308
|
-
identifier: "CreateEventResponse",
|
|
309
|
-
});
|
|
273
|
+
})).annotate({ identifier: "CreateEventResponse" });
|
|
310
274
|
export const CreateSegmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
311
275
|
name: S.String,
|
|
312
276
|
audience_id: S.optional(S.String),
|
|
313
277
|
filter: S.optional(S.Unknown),
|
|
314
|
-
}).pipe(T.Http({ method: "POST", uri: "/segments", code: 200 }))).annotate({
|
|
315
|
-
identifier: "CreateSegmentRequest",
|
|
316
|
-
});
|
|
278
|
+
}).pipe(T.Http({ method: "POST", uri: "/segments", code: 200 }))).annotate({ identifier: "CreateSegmentRequest" });
|
|
317
279
|
export const CreateSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
318
280
|
id: S.optional(S.String),
|
|
319
281
|
object: S.optional(S.String),
|
|
@@ -322,16 +284,13 @@ export const CreateSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
322
284
|
});
|
|
323
285
|
export const CreateTemplateRequestReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
324
286
|
export const TemplateVariableInputType = S.String;
|
|
325
|
-
export const TemplateVariableInputFallbackValueCase4List =
|
|
326
|
-
/*@__PURE__*/ S.Array(S.Unknown);
|
|
287
|
+
export const TemplateVariableInputFallbackValueCase4List = /*@__PURE__*/ S.Array(S.Unknown);
|
|
327
288
|
export const TemplateVariableInputFallbackValue = S.Unknown;
|
|
328
289
|
export const TemplateVariableInput = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
290
|
key: S.String,
|
|
330
291
|
type: TemplateVariableInputType,
|
|
331
292
|
fallback_value: S.optional(TemplateVariableInputFallbackValue),
|
|
332
|
-
})).annotate({
|
|
333
|
-
identifier: "TemplateVariableInput",
|
|
334
|
-
});
|
|
293
|
+
})).annotate({ identifier: "TemplateVariableInput" });
|
|
335
294
|
export const CreateTemplateRequestVariablesList = /*@__PURE__*/ S.Array(TemplateVariableInput);
|
|
336
295
|
export const CreateTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
337
296
|
name: S.String,
|
|
@@ -342,9 +301,7 @@ export const CreateTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
342
301
|
html: S.String,
|
|
343
302
|
text: S.optional(S.String),
|
|
344
303
|
variables: S.optional(CreateTemplateRequestVariablesList),
|
|
345
|
-
}).pipe(T.Http({ method: "POST", uri: "/templates", code: 200 }))).annotate({
|
|
346
|
-
identifier: "CreateTemplateRequest",
|
|
347
|
-
});
|
|
304
|
+
}).pipe(T.Http({ method: "POST", uri: "/templates", code: 200 }))).annotate({ identifier: "CreateTemplateRequest" });
|
|
348
305
|
export const CreateTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
349
306
|
id: S.optional(S.String),
|
|
350
307
|
object: S.optional(S.String),
|
|
@@ -358,9 +315,7 @@ export const CreateTopicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
358
315
|
default_subscription: CreateTopicRequestDefaultSubscription,
|
|
359
316
|
description: S.optional(S.String),
|
|
360
317
|
visibility: S.optional(CreateTopicRequestVisibility),
|
|
361
|
-
}).pipe(T.Http({ method: "POST", uri: "/topics", code: 200 }))).annotate({
|
|
362
|
-
identifier: "CreateTopicRequest",
|
|
363
|
-
});
|
|
318
|
+
}).pipe(T.Http({ method: "POST", uri: "/topics", code: 200 }))).annotate({ identifier: "CreateTopicRequest" });
|
|
364
319
|
export const CreateTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
365
320
|
id: S.optional(S.String),
|
|
366
321
|
object: S.optional(S.String),
|
|
@@ -371,49 +326,31 @@ export const CreateWebhookRequestEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
|
371
326
|
export const CreateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
372
327
|
endpoint: S.String,
|
|
373
328
|
events: CreateWebhookRequestEventsList,
|
|
374
|
-
}).pipe(T.Http({ method: "POST", uri: "/webhooks", code: 200 }))).annotate({
|
|
375
|
-
identifier: "CreateWebhookRequest",
|
|
376
|
-
});
|
|
329
|
+
}).pipe(T.Http({ method: "POST", uri: "/webhooks", code: 200 }))).annotate({ identifier: "CreateWebhookRequest" });
|
|
377
330
|
export const CreateWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
378
331
|
object: S.optional(S.String),
|
|
379
332
|
id: S.optional(S.String),
|
|
380
333
|
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
381
|
-
})).annotate({
|
|
382
|
-
identifier: "CreateWebhookResponse",
|
|
383
|
-
});
|
|
334
|
+
})).annotate({ identifier: "CreateWebhookResponse" });
|
|
384
335
|
export const DeleteApiKeyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
385
336
|
api_key_id: S.String.pipe(T.Label()),
|
|
386
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/api-keys/{api_key_id}", code: 200 }))).annotate({
|
|
387
|
-
identifier: "DeleteApiKeyRequest",
|
|
388
|
-
});
|
|
337
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/api-keys/{api_key_id}", code: 200 }))).annotate({ identifier: "DeleteApiKeyRequest" });
|
|
389
338
|
export const DeleteApiKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
390
339
|
object: S.optional(S.String),
|
|
391
340
|
id: S.optional(S.String),
|
|
392
341
|
deleted: S.optional(S.Boolean),
|
|
393
|
-
})).annotate({
|
|
394
|
-
identifier: "DeleteApiKeyResponse",
|
|
395
|
-
});
|
|
342
|
+
})).annotate({ identifier: "DeleteApiKeyResponse" });
|
|
396
343
|
export const DeleteAutomationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
397
344
|
automation_id: S.String.pipe(T.Label()),
|
|
398
|
-
}).pipe(T.Http({
|
|
399
|
-
method: "DELETE",
|
|
400
|
-
uri: "/automations/{automation_id}",
|
|
401
|
-
code: 200,
|
|
402
|
-
}))).annotate({
|
|
403
|
-
identifier: "DeleteAutomationRequest",
|
|
404
|
-
});
|
|
345
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/automations/{automation_id}", code: 200 }))).annotate({ identifier: "DeleteAutomationRequest" });
|
|
405
346
|
export const DeleteAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
406
347
|
object: S.optional(S.String),
|
|
407
348
|
id: S.optional(S.String),
|
|
408
349
|
deleted: S.optional(S.Boolean),
|
|
409
|
-
})).annotate({
|
|
410
|
-
identifier: "DeleteAutomationResponse",
|
|
411
|
-
});
|
|
350
|
+
})).annotate({ identifier: "DeleteAutomationResponse" });
|
|
412
351
|
export const DeleteBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
413
352
|
id: S.String.pipe(T.Label()),
|
|
414
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/broadcasts/{id}", code: 200 }))).annotate({
|
|
415
|
-
identifier: "DeleteBroadcastRequest",
|
|
416
|
-
});
|
|
353
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/broadcasts/{id}", code: 200 }))).annotate({ identifier: "DeleteBroadcastRequest" });
|
|
417
354
|
export const RemoveBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
418
355
|
id: S.optional(S.String),
|
|
419
356
|
object: S.optional(S.String),
|
|
@@ -423,9 +360,7 @@ export const RemoveBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
423
360
|
});
|
|
424
361
|
export const DeleteContactRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
425
362
|
id: S.String.pipe(T.Label()),
|
|
426
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/contacts/{id}", code: 200 }))).annotate({
|
|
427
|
-
identifier: "DeleteContactRequest",
|
|
428
|
-
});
|
|
363
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/contacts/{id}", code: 200 }))).annotate({ identifier: "DeleteContactRequest" });
|
|
429
364
|
export const RemoveContactResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
430
365
|
object: S.optional(S.String),
|
|
431
366
|
id: S.optional(S.String),
|
|
@@ -448,11 +383,7 @@ export const RemoveContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() =
|
|
|
448
383
|
export const DeleteContactSegmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
449
384
|
contact_id: S.String.pipe(T.Label()),
|
|
450
385
|
segment_id: S.String.pipe(T.Label()),
|
|
451
|
-
}).pipe(T.Http({
|
|
452
|
-
method: "DELETE",
|
|
453
|
-
uri: "/contacts/{contact_id}/segments/{segment_id}",
|
|
454
|
-
code: 200,
|
|
455
|
-
}))).annotate({
|
|
386
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/contacts/{contact_id}/segments/{segment_id}", code: 200 }))).annotate({
|
|
456
387
|
identifier: "DeleteContactSegmentRequest",
|
|
457
388
|
});
|
|
458
389
|
export const RemoveContactFromSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -465,33 +396,23 @@ export const RemoveContactFromSegmentResponseSuccess = /*@__PURE__*/ S.suspend((
|
|
|
465
396
|
});
|
|
466
397
|
export const DeleteDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
467
398
|
domain_id: S.String.pipe(T.Label()),
|
|
468
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/domains/{domain_id}", code: 200 }))).annotate({
|
|
469
|
-
identifier: "DeleteDomainRequest",
|
|
470
|
-
});
|
|
399
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/domains/{domain_id}", code: 200 }))).annotate({ identifier: "DeleteDomainRequest" });
|
|
471
400
|
export const DeleteDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
472
401
|
object: S.optional(S.String),
|
|
473
402
|
id: S.optional(S.String),
|
|
474
403
|
deleted: S.optional(S.Boolean),
|
|
475
|
-
})).annotate({
|
|
476
|
-
identifier: "DeleteDomainResponse",
|
|
477
|
-
});
|
|
404
|
+
})).annotate({ identifier: "DeleteDomainResponse" });
|
|
478
405
|
export const DeleteEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
479
406
|
identifier: S.String.pipe(T.Label()),
|
|
480
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/events/{identifier}", code: 200 }))).annotate({
|
|
481
|
-
identifier: "DeleteEventRequest",
|
|
482
|
-
});
|
|
407
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/events/{identifier}", code: 200 }))).annotate({ identifier: "DeleteEventRequest" });
|
|
483
408
|
export const RemoveEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
484
409
|
object: S.optional(S.String),
|
|
485
410
|
id: S.optional(S.String),
|
|
486
411
|
deleted: S.optional(S.Boolean),
|
|
487
|
-
})).annotate({
|
|
488
|
-
identifier: "RemoveEventResponse",
|
|
489
|
-
});
|
|
412
|
+
})).annotate({ identifier: "RemoveEventResponse" });
|
|
490
413
|
export const DeleteSegmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
491
414
|
id: S.String.pipe(T.Label()),
|
|
492
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/segments/{id}", code: 200 }))).annotate({
|
|
493
|
-
identifier: "DeleteSegmentRequest",
|
|
494
|
-
});
|
|
415
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/segments/{id}", code: 200 }))).annotate({ identifier: "DeleteSegmentRequest" });
|
|
495
416
|
export const RemoveSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
496
417
|
id: S.optional(S.String),
|
|
497
418
|
object: S.optional(S.String),
|
|
@@ -501,9 +422,7 @@ export const RemoveSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
501
422
|
});
|
|
502
423
|
export const DeleteTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
503
424
|
id: S.String.pipe(T.Label()),
|
|
504
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/templates/{id}", code: 200 }))).annotate({
|
|
505
|
-
identifier: "DeleteTemplateRequest",
|
|
506
|
-
});
|
|
425
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/templates/{id}", code: 200 }))).annotate({ identifier: "DeleteTemplateRequest" });
|
|
507
426
|
export const RemoveTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
508
427
|
object: S.optional(S.String),
|
|
509
428
|
id: S.optional(S.String),
|
|
@@ -513,9 +432,7 @@ export const RemoveTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Str
|
|
|
513
432
|
});
|
|
514
433
|
export const DeleteTopicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
515
434
|
id: S.String.pipe(T.Label()),
|
|
516
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/topics/{id}", code: 200 }))).annotate({
|
|
517
|
-
identifier: "DeleteTopicRequest",
|
|
518
|
-
});
|
|
435
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/topics/{id}", code: 200 }))).annotate({ identifier: "DeleteTopicRequest" });
|
|
519
436
|
export const RemoveTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
520
437
|
id: S.optional(S.String),
|
|
521
438
|
object: S.optional(S.String),
|
|
@@ -525,21 +442,15 @@ export const RemoveTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
525
442
|
});
|
|
526
443
|
export const DeleteWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
527
444
|
webhook_id: S.String.pipe(T.Label()),
|
|
528
|
-
}).pipe(T.Http({ method: "DELETE", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({
|
|
529
|
-
identifier: "DeleteWebhookRequest",
|
|
530
|
-
});
|
|
445
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({ identifier: "DeleteWebhookRequest" });
|
|
531
446
|
export const DeleteWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
532
447
|
object: S.optional(S.String),
|
|
533
448
|
id: S.optional(S.String),
|
|
534
449
|
deleted: S.optional(S.Boolean),
|
|
535
|
-
})).annotate({
|
|
536
|
-
identifier: "DeleteWebhookResponse",
|
|
537
|
-
});
|
|
450
|
+
})).annotate({ identifier: "DeleteWebhookResponse" });
|
|
538
451
|
export const DuplicateTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
539
452
|
id: S.String.pipe(T.Label()),
|
|
540
|
-
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/duplicate", code: 200 }))).annotate({
|
|
541
|
-
identifier: "DuplicateTemplateRequest",
|
|
542
|
-
});
|
|
453
|
+
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/duplicate", code: 200 }))).annotate({ identifier: "DuplicateTemplateRequest" });
|
|
543
454
|
export const DuplicateTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
544
455
|
id: S.optional(S.String),
|
|
545
456
|
object: S.optional(S.String),
|
|
@@ -548,18 +459,14 @@ export const DuplicateTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.
|
|
|
548
459
|
});
|
|
549
460
|
export const GetAutomationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
550
461
|
automation_id: S.String.pipe(T.Label()),
|
|
551
|
-
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}", code: 200 }))).annotate({
|
|
552
|
-
identifier: "GetAutomationRequest",
|
|
553
|
-
});
|
|
462
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}", code: 200 }))).annotate({ identifier: "GetAutomationRequest" });
|
|
554
463
|
export const AutomationStatus = S.String;
|
|
555
464
|
export const AutomationStepResponseType = S.String;
|
|
556
465
|
export const AutomationStepResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
557
466
|
key: S.optional(S.String),
|
|
558
467
|
type: S.optional(AutomationStepResponseType),
|
|
559
468
|
config: S.optional(S.Unknown),
|
|
560
|
-
})).annotate({
|
|
561
|
-
identifier: "AutomationStepResponse",
|
|
562
|
-
});
|
|
469
|
+
})).annotate({ identifier: "AutomationStepResponse" });
|
|
563
470
|
export const AutomationStepsList = /*@__PURE__*/ S.Array(AutomationStepResponse);
|
|
564
471
|
export const AutomationConnectionsList = /*@__PURE__*/ S.Array(AutomationConnection);
|
|
565
472
|
export const Automation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -575,13 +482,7 @@ export const Automation = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
575
482
|
export const GetAutomationRunRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
576
483
|
automation_id: S.String.pipe(T.Label()),
|
|
577
484
|
run_id: S.String.pipe(T.Label()),
|
|
578
|
-
}).pipe(T.Http({
|
|
579
|
-
method: "GET",
|
|
580
|
-
uri: "/automations/{automation_id}/runs/{run_id}",
|
|
581
|
-
code: 200,
|
|
582
|
-
}))).annotate({
|
|
583
|
-
identifier: "GetAutomationRunRequest",
|
|
584
|
-
});
|
|
485
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}/runs/{run_id}", code: 200 }))).annotate({ identifier: "GetAutomationRunRequest" });
|
|
585
486
|
export const AutomationRunStatus = S.String;
|
|
586
487
|
export const AutomationRunStepType = S.String;
|
|
587
488
|
export const AutomationRunStep = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -593,9 +494,7 @@ export const AutomationRunStep = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
593
494
|
output: S.optional(S.NullOr(S.Unknown)),
|
|
594
495
|
error: S.optional(S.NullOr(S.Unknown)),
|
|
595
496
|
created_at: S.optional(S.String),
|
|
596
|
-
})).annotate({
|
|
597
|
-
identifier: "AutomationRunStep",
|
|
598
|
-
});
|
|
497
|
+
})).annotate({ identifier: "AutomationRunStep" });
|
|
599
498
|
export const AutomationRunStepsList = /*@__PURE__*/ S.Array(AutomationRunStep);
|
|
600
499
|
export const AutomationRun = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
601
500
|
object: S.optional(S.String),
|
|
@@ -608,9 +507,7 @@ export const AutomationRun = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
608
507
|
})).annotate({ identifier: "AutomationRun" });
|
|
609
508
|
export const GetBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
610
509
|
id: S.String.pipe(T.Label()),
|
|
611
|
-
}).pipe(T.Http({ method: "GET", uri: "/broadcasts/{id}", code: 200 }))).annotate({
|
|
612
|
-
identifier: "GetBroadcastRequest",
|
|
613
|
-
});
|
|
510
|
+
}).pipe(T.Http({ method: "GET", uri: "/broadcasts/{id}", code: 200 }))).annotate({ identifier: "GetBroadcastRequest" });
|
|
614
511
|
export const GetBroadcastResponseSuccessReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
615
512
|
export const GetBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
616
513
|
id: S.optional(S.String),
|
|
@@ -633,9 +530,7 @@ export const GetBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
633
530
|
});
|
|
634
531
|
export const GetContactRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
635
532
|
id: S.String.pipe(T.Label()),
|
|
636
|
-
}).pipe(T.Http({ method: "GET", uri: "/contacts/{id}", code: 200 }))).annotate({
|
|
637
|
-
identifier: "GetContactRequest",
|
|
638
|
-
});
|
|
533
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts/{id}", code: 200 }))).annotate({ identifier: "GetContactRequest" });
|
|
639
534
|
export const GetContactResponseSuccessPropertiesMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
|
|
640
535
|
export const GetContactResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
641
536
|
object: S.optional(S.String),
|
|
@@ -667,9 +562,7 @@ export const GetContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() => S
|
|
|
667
562
|
});
|
|
668
563
|
export const GetDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
669
564
|
domain_id: S.String.pipe(T.Label()),
|
|
670
|
-
}).pipe(T.Http({ method: "GET", uri: "/domains/{domain_id}", code: 200 }))).annotate({
|
|
671
|
-
identifier: "GetDomainRequest",
|
|
672
|
-
});
|
|
565
|
+
}).pipe(T.Http({ method: "GET", uri: "/domains/{domain_id}", code: 200 }))).annotate({ identifier: "GetDomainRequest" });
|
|
673
566
|
export const DomainRecordsList = /*@__PURE__*/ S.Array(DomainRecord);
|
|
674
567
|
export const Domain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
675
568
|
object: S.optional(S.String),
|
|
@@ -686,17 +579,11 @@ export const Domain = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
686
579
|
})).annotate({ identifier: "Domain" });
|
|
687
580
|
export const GetEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
688
581
|
email_id: S.String.pipe(T.Label()),
|
|
689
|
-
}).pipe(T.Http({ method: "GET", uri: "/emails/{email_id}", code: 200 }))).annotate({
|
|
690
|
-
identifier: "GetEmailRequest",
|
|
691
|
-
});
|
|
582
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/{email_id}", code: 200 }))).annotate({ identifier: "GetEmailRequest" });
|
|
692
583
|
export const GetEmailAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
693
584
|
email_id: S.String.pipe(T.Label()),
|
|
694
585
|
attachment_id: S.String.pipe(T.Label()),
|
|
695
|
-
}).pipe(T.Http({
|
|
696
|
-
method: "GET",
|
|
697
|
-
uri: "/emails/{email_id}/attachments/{attachment_id}",
|
|
698
|
-
code: 200,
|
|
699
|
-
}))).annotate({
|
|
586
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/{email_id}/attachments/{attachment_id}", code: 200 }))).annotate({
|
|
700
587
|
identifier: "GetEmailAttachmentRequest",
|
|
701
588
|
});
|
|
702
589
|
export const RetrievedAttachmentContentDisposition = S.String;
|
|
@@ -710,14 +597,10 @@ export const RetrievedAttachment = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
710
597
|
download_url: S.optional(S.String),
|
|
711
598
|
expires_at: S.optional(S.String),
|
|
712
599
|
size: S.optional(S.Number),
|
|
713
|
-
})).annotate({
|
|
714
|
-
identifier: "RetrievedAttachment",
|
|
715
|
-
});
|
|
600
|
+
})).annotate({ identifier: "RetrievedAttachment" });
|
|
716
601
|
export const GetEmailReceivingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
717
602
|
email_id: S.String.pipe(T.Label()),
|
|
718
|
-
}).pipe(T.Http({ method: "GET", uri: "/emails/receiving/{email_id}", code: 200 }))).annotate({
|
|
719
|
-
identifier: "GetEmailReceivingRequest",
|
|
720
|
-
});
|
|
603
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/receiving/{email_id}", code: 200 }))).annotate({ identifier: "GetEmailReceivingRequest" });
|
|
721
604
|
export const GetReceivedEmailResponseToList = /*@__PURE__*/ S.Array(S.String);
|
|
722
605
|
export const GetReceivedEmailResponseBccList = /*@__PURE__*/ S.Array(S.String);
|
|
723
606
|
export const GetReceivedEmailResponseCcList = /*@__PURE__*/ S.Array(S.String);
|
|
@@ -749,9 +632,7 @@ export const GetReceivedEmailResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
749
632
|
headers: S.optional(S.NullOr(S.Unknown)),
|
|
750
633
|
created_at: S.optional(S.String),
|
|
751
634
|
attachments: S.optional(GetReceivedEmailResponseAttachmentsList),
|
|
752
|
-
})).annotate({
|
|
753
|
-
identifier: "GetReceivedEmailResponse",
|
|
754
|
-
});
|
|
635
|
+
})).annotate({ identifier: "GetReceivedEmailResponse" });
|
|
755
636
|
export const GetEmailReceivingAttachmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
756
637
|
email_id: S.String.pipe(T.Label()),
|
|
757
638
|
attachment_id: S.String.pipe(T.Label()),
|
|
@@ -764,9 +645,7 @@ export const GetEmailReceivingAttachmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
764
645
|
});
|
|
765
646
|
export const GetEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
766
647
|
identifier: S.String.pipe(T.Label()),
|
|
767
|
-
}).pipe(T.Http({ method: "GET", uri: "/events/{identifier}", code: 200 }))).annotate({
|
|
768
|
-
identifier: "GetEventRequest",
|
|
769
|
-
});
|
|
648
|
+
}).pipe(T.Http({ method: "GET", uri: "/events/{identifier}", code: 200 }))).annotate({ identifier: "GetEventRequest" });
|
|
770
649
|
export const Event = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
771
650
|
object: S.optional(S.String),
|
|
772
651
|
id: S.optional(S.String),
|
|
@@ -792,9 +671,7 @@ export const Log = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
792
671
|
})).annotate({ identifier: "Log" });
|
|
793
672
|
export const GetSegmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
794
673
|
id: S.String.pipe(T.Label()),
|
|
795
|
-
}).pipe(T.Http({ method: "GET", uri: "/segments/{id}", code: 200 }))).annotate({
|
|
796
|
-
identifier: "GetSegmentRequest",
|
|
797
|
-
});
|
|
674
|
+
}).pipe(T.Http({ method: "GET", uri: "/segments/{id}", code: 200 }))).annotate({ identifier: "GetSegmentRequest" });
|
|
798
675
|
export const GetSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
799
676
|
id: S.optional(S.String),
|
|
800
677
|
object: S.optional(S.String),
|
|
@@ -807,9 +684,7 @@ export const GetSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
807
684
|
});
|
|
808
685
|
export const GetTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
809
686
|
id: S.String.pipe(T.Label()),
|
|
810
|
-
}).pipe(T.Http({ method: "GET", uri: "/templates/{id}", code: 200 }))).annotate({
|
|
811
|
-
identifier: "GetTemplateRequest",
|
|
812
|
-
});
|
|
687
|
+
}).pipe(T.Http({ method: "GET", uri: "/templates/{id}", code: 200 }))).annotate({ identifier: "GetTemplateRequest" });
|
|
813
688
|
export const TemplateReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
814
689
|
export const TemplateVariableType = S.String;
|
|
815
690
|
export const TemplateVariableFallbackValueCase4List = /*@__PURE__*/ S.Array(S.Unknown);
|
|
@@ -821,9 +696,7 @@ export const TemplateVariable = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
821
696
|
fallback_value: S.optional(TemplateVariableFallbackValue),
|
|
822
697
|
created_at: S.optional(S.String),
|
|
823
698
|
updated_at: S.optional(S.String),
|
|
824
|
-
})).annotate({
|
|
825
|
-
identifier: "TemplateVariable",
|
|
826
|
-
});
|
|
699
|
+
})).annotate({ identifier: "TemplateVariable" });
|
|
827
700
|
export const TemplateVariablesList = /*@__PURE__*/ S.Array(TemplateVariable);
|
|
828
701
|
export const TemplateStatus = S.String;
|
|
829
702
|
export const Template = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -846,9 +719,7 @@ export const Template = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
846
719
|
})).annotate({ identifier: "Template" });
|
|
847
720
|
export const GetTopicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
848
721
|
id: S.String.pipe(T.Label()),
|
|
849
|
-
}).pipe(T.Http({ method: "GET", uri: "/topics/{id}", code: 200 }))).annotate({
|
|
850
|
-
identifier: "GetTopicRequest",
|
|
851
|
-
});
|
|
722
|
+
}).pipe(T.Http({ method: "GET", uri: "/topics/{id}", code: 200 }))).annotate({ identifier: "GetTopicRequest" });
|
|
852
723
|
export const GetTopicResponseSuccessDefaultSubscription = S.String;
|
|
853
724
|
export const GetTopicResponseSuccessVisibility = S.String;
|
|
854
725
|
export const GetTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -859,14 +730,10 @@ export const GetTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
859
730
|
default_subscription: S.optional(GetTopicResponseSuccessDefaultSubscription),
|
|
860
731
|
visibility: S.optional(GetTopicResponseSuccessVisibility),
|
|
861
732
|
created_at: S.optional(S.String),
|
|
862
|
-
})).annotate({
|
|
863
|
-
identifier: "GetTopicResponseSuccess",
|
|
864
|
-
});
|
|
733
|
+
})).annotate({ identifier: "GetTopicResponseSuccess" });
|
|
865
734
|
export const GetWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
866
735
|
webhook_id: S.String.pipe(T.Label()),
|
|
867
|
-
}).pipe(T.Http({ method: "GET", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({
|
|
868
|
-
identifier: "GetWebhookRequest",
|
|
869
|
-
});
|
|
736
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({ identifier: "GetWebhookRequest" });
|
|
870
737
|
export const GetWebhookResponseEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
871
738
|
export const GetWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
872
739
|
object: S.optional(S.String),
|
|
@@ -876,16 +743,12 @@ export const GetWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
876
743
|
status: S.optional(S.String),
|
|
877
744
|
created_at: S.optional(S.String),
|
|
878
745
|
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
879
|
-
})).annotate({
|
|
880
|
-
identifier: "GetWebhookResponse",
|
|
881
|
-
});
|
|
746
|
+
})).annotate({ identifier: "GetWebhookResponse" });
|
|
882
747
|
export const ListApiKeysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
883
748
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
884
749
|
after: S.optional(S.String.pipe(T.Query())),
|
|
885
750
|
before: S.optional(S.String.pipe(T.Query())),
|
|
886
|
-
}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 }))).annotate({
|
|
887
|
-
identifier: "ListApiKeysRequest",
|
|
888
|
-
});
|
|
751
|
+
}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 }))).annotate({ identifier: "ListApiKeysRequest" });
|
|
889
752
|
export const ApiKey = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
890
753
|
id: S.optional(S.String),
|
|
891
754
|
name: S.optional(S.String),
|
|
@@ -897,20 +760,14 @@ export const ListApiKeysResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
897
760
|
object: S.optional(S.String),
|
|
898
761
|
has_more: S.optional(S.Boolean),
|
|
899
762
|
data: ListApiKeysResponseDataList,
|
|
900
|
-
})).annotate({
|
|
901
|
-
identifier: "ListApiKeysResponse",
|
|
902
|
-
});
|
|
763
|
+
})).annotate({ identifier: "ListApiKeysResponse" });
|
|
903
764
|
export const ListAutomationRunsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
904
765
|
automation_id: S.String.pipe(T.Label()),
|
|
905
766
|
status: S.optional(S.String.pipe(T.Query())),
|
|
906
767
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
907
768
|
after: S.optional(S.String.pipe(T.Query())),
|
|
908
769
|
before: S.optional(S.String.pipe(T.Query())),
|
|
909
|
-
}).pipe(T.Http({
|
|
910
|
-
method: "GET",
|
|
911
|
-
uri: "/automations/{automation_id}/runs",
|
|
912
|
-
code: 200,
|
|
913
|
-
}))).annotate({
|
|
770
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}/runs", code: 200 }))).annotate({
|
|
914
771
|
identifier: "ListAutomationRunsRequest",
|
|
915
772
|
});
|
|
916
773
|
export const AutomationRunListItemStatus = S.String;
|
|
@@ -920,9 +777,7 @@ export const AutomationRunListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
920
777
|
started_at: S.optional(S.NullOr(S.String)),
|
|
921
778
|
completed_at: S.optional(S.NullOr(S.String)),
|
|
922
779
|
created_at: S.optional(S.String),
|
|
923
|
-
})).annotate({
|
|
924
|
-
identifier: "AutomationRunListItem",
|
|
925
|
-
});
|
|
780
|
+
})).annotate({ identifier: "AutomationRunListItem" });
|
|
926
781
|
export const ListAutomationRunsResponseDataList = /*@__PURE__*/ S.Array(AutomationRunListItem);
|
|
927
782
|
export const ListAutomationRunsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
928
783
|
object: S.optional(S.String),
|
|
@@ -937,9 +792,7 @@ export const ListAutomationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
937
792
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
938
793
|
after: S.optional(S.String.pipe(T.Query())),
|
|
939
794
|
before: S.optional(S.String.pipe(T.Query())),
|
|
940
|
-
}).pipe(T.Http({ method: "GET", uri: "/automations", code: 200 }))).annotate({
|
|
941
|
-
identifier: "ListAutomationsRequest",
|
|
942
|
-
});
|
|
795
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations", code: 200 }))).annotate({ identifier: "ListAutomationsRequest" });
|
|
943
796
|
export const AutomationListItemStatus = S.String;
|
|
944
797
|
export const AutomationListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
945
798
|
id: S.optional(S.String),
|
|
@@ -947,24 +800,18 @@ export const AutomationListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
947
800
|
status: S.optional(AutomationListItemStatus),
|
|
948
801
|
created_at: S.optional(S.String),
|
|
949
802
|
updated_at: S.optional(S.String),
|
|
950
|
-
})).annotate({
|
|
951
|
-
identifier: "AutomationListItem",
|
|
952
|
-
});
|
|
803
|
+
})).annotate({ identifier: "AutomationListItem" });
|
|
953
804
|
export const ListAutomationsResponseDataList = /*@__PURE__*/ S.Array(AutomationListItem);
|
|
954
805
|
export const ListAutomationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
955
806
|
object: S.optional(S.String),
|
|
956
807
|
has_more: S.optional(S.Boolean),
|
|
957
808
|
data: ListAutomationsResponseDataList,
|
|
958
|
-
})).annotate({
|
|
959
|
-
identifier: "ListAutomationsResponse",
|
|
960
|
-
});
|
|
809
|
+
})).annotate({ identifier: "ListAutomationsResponse" });
|
|
961
810
|
export const ListBroadcastsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
962
811
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
963
812
|
after: S.optional(S.String.pipe(T.Query())),
|
|
964
813
|
before: S.optional(S.String.pipe(T.Query())),
|
|
965
|
-
}).pipe(T.Http({ method: "GET", uri: "/broadcasts", code: 200 }))).annotate({
|
|
966
|
-
identifier: "ListBroadcastsRequest",
|
|
967
|
-
});
|
|
814
|
+
}).pipe(T.Http({ method: "GET", uri: "/broadcasts", code: 200 }))).annotate({ identifier: "ListBroadcastsRequest" });
|
|
968
815
|
export const ListBroadcastsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
969
816
|
id: S.optional(S.String),
|
|
970
817
|
name: S.optional(S.String),
|
|
@@ -994,8 +841,7 @@ export const ListContactPropertiesRequest = /*@__PURE__*/ S.suspend(() => S.Stru
|
|
|
994
841
|
identifier: "ListContactPropertiesRequest",
|
|
995
842
|
});
|
|
996
843
|
export const ListContactPropertiesResponseSuccessDataItemFallbackValue = S.Unknown;
|
|
997
|
-
export const ListContactPropertiesResponseSuccessDataItem =
|
|
998
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
844
|
+
export const ListContactPropertiesResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
999
845
|
id: S.optional(S.String),
|
|
1000
846
|
key: S.optional(S.String),
|
|
1001
847
|
type: S.optional(S.String),
|
|
@@ -1004,8 +850,7 @@ export const ListContactPropertiesResponseSuccessDataItem =
|
|
|
1004
850
|
})).annotate({
|
|
1005
851
|
identifier: "ListContactPropertiesResponseSuccessDataItem",
|
|
1006
852
|
});
|
|
1007
|
-
export const ListContactPropertiesResponseSuccessDataList =
|
|
1008
|
-
/*@__PURE__*/ S.Array(ListContactPropertiesResponseSuccessDataItem);
|
|
853
|
+
export const ListContactPropertiesResponseSuccessDataList = /*@__PURE__*/ S.Array(ListContactPropertiesResponseSuccessDataItem);
|
|
1009
854
|
export const ListContactPropertiesResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1010
855
|
object: S.optional(S.String),
|
|
1011
856
|
has_more: S.optional(S.Boolean),
|
|
@@ -1018,9 +863,7 @@ export const ListContactsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1018
863
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1019
864
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1020
865
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1021
|
-
}).pipe(T.Http({ method: "GET", uri: "/contacts", code: 200 }))).annotate({
|
|
1022
|
-
identifier: "ListContactsRequest",
|
|
1023
|
-
});
|
|
866
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts", code: 200 }))).annotate({ identifier: "ListContactsRequest" });
|
|
1024
867
|
export const ListContactsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1025
868
|
id: S.optional(S.String),
|
|
1026
869
|
email: S.optional(S.String),
|
|
@@ -1043,15 +886,10 @@ export const ListContactSegmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct
|
|
|
1043
886
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1044
887
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1045
888
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1046
|
-
}).pipe(T.Http({
|
|
1047
|
-
method: "GET",
|
|
1048
|
-
uri: "/contacts/{contact_id}/segments",
|
|
1049
|
-
code: 200,
|
|
1050
|
-
}))).annotate({
|
|
889
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts/{contact_id}/segments", code: 200 }))).annotate({
|
|
1051
890
|
identifier: "ListContactSegmentsRequest",
|
|
1052
891
|
});
|
|
1053
|
-
export const ListContactSegmentsResponseSuccessDataItem =
|
|
1054
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
892
|
+
export const ListContactSegmentsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1055
893
|
id: S.optional(S.String),
|
|
1056
894
|
name: S.optional(S.String),
|
|
1057
895
|
created_at: S.optional(S.String),
|
|
@@ -1071,9 +909,7 @@ export const ListContactTopicsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1071
909
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1072
910
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1073
911
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1074
|
-
}).pipe(T.Http({ method: "GET", uri: "/contacts/{contact_id}/topics", code: 200 }))).annotate({
|
|
1075
|
-
identifier: "ListContactTopicsRequest",
|
|
1076
|
-
});
|
|
912
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts/{contact_id}/topics", code: 200 }))).annotate({ identifier: "ListContactTopicsRequest" });
|
|
1077
913
|
export const GetContactTopicsResponseSuccessDataItemSubscription = S.String;
|
|
1078
914
|
export const GetContactTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1079
915
|
id: S.optional(S.String),
|
|
@@ -1095,9 +931,7 @@ export const ListDomainsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1095
931
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1096
932
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1097
933
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1098
|
-
}).pipe(T.Http({ method: "GET", uri: "/domains", code: 200 }))).annotate({
|
|
1099
|
-
identifier: "ListDomainsRequest",
|
|
1100
|
-
});
|
|
934
|
+
}).pipe(T.Http({ method: "GET", uri: "/domains", code: 200 }))).annotate({ identifier: "ListDomainsRequest" });
|
|
1101
935
|
export const ListDomainsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1102
936
|
id: S.optional(S.String),
|
|
1103
937
|
name: S.optional(S.String),
|
|
@@ -1105,17 +939,13 @@ export const ListDomainsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1105
939
|
created_at: S.optional(S.String),
|
|
1106
940
|
region: S.optional(S.String),
|
|
1107
941
|
capabilities: S.optional(DomainCapabilities),
|
|
1108
|
-
})).annotate({
|
|
1109
|
-
identifier: "ListDomainsItem",
|
|
1110
|
-
});
|
|
942
|
+
})).annotate({ identifier: "ListDomainsItem" });
|
|
1111
943
|
export const ListDomainsResponseDataList = /*@__PURE__*/ S.Array(ListDomainsItem);
|
|
1112
944
|
export const ListDomainsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1113
945
|
object: S.optional(S.String),
|
|
1114
946
|
has_more: S.optional(S.Boolean),
|
|
1115
947
|
data: ListDomainsResponseDataList,
|
|
1116
|
-
})).annotate({
|
|
1117
|
-
identifier: "ListDomainsResponse",
|
|
1118
|
-
});
|
|
948
|
+
})).annotate({ identifier: "ListDomainsResponse" });
|
|
1119
949
|
export const ListEmailAttachmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1120
950
|
email_id: S.String.pipe(T.Label()),
|
|
1121
951
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
@@ -1142,9 +972,7 @@ export const ListAttachmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1142
972
|
object: S.optional(S.String),
|
|
1143
973
|
has_more: S.optional(S.Boolean),
|
|
1144
974
|
data: ListAttachmentsResponseDataList,
|
|
1145
|
-
})).annotate({
|
|
1146
|
-
identifier: "ListAttachmentsResponse",
|
|
1147
|
-
});
|
|
975
|
+
})).annotate({ identifier: "ListAttachmentsResponse" });
|
|
1148
976
|
export const ListEmailReceivingRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1149
977
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1150
978
|
after: S.optional(S.String.pipe(T.Query())),
|
|
@@ -1155,11 +983,9 @@ export const ListEmailReceivingRequest = /*@__PURE__*/ S.suspend(() => S.Struct(
|
|
|
1155
983
|
export const ListReceivedEmailsResponseDataItemToList = /*@__PURE__*/ S.Array(S.String);
|
|
1156
984
|
export const ListReceivedEmailsResponseDataItemBccList = /*@__PURE__*/ S.Array(S.String);
|
|
1157
985
|
export const ListReceivedEmailsResponseDataItemCcList = /*@__PURE__*/ S.Array(S.String);
|
|
1158
|
-
export const ListReceivedEmailsResponseDataItemReplyToList =
|
|
1159
|
-
/*@__PURE__*/ S.Array(S.String);
|
|
986
|
+
export const ListReceivedEmailsResponseDataItemReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
1160
987
|
export const ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition = S.String;
|
|
1161
|
-
export const ListReceivedEmailsResponseDataItemAttachmentsItem =
|
|
1162
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
988
|
+
export const ListReceivedEmailsResponseDataItemAttachmentsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1163
989
|
id: S.optional(S.String),
|
|
1164
990
|
filename: S.optional(S.String),
|
|
1165
991
|
content_type: S.optional(S.String),
|
|
@@ -1169,8 +995,7 @@ export const ListReceivedEmailsResponseDataItemAttachmentsItem =
|
|
|
1169
995
|
})).annotate({
|
|
1170
996
|
identifier: "ListReceivedEmailsResponseDataItemAttachmentsItem",
|
|
1171
997
|
});
|
|
1172
|
-
export const ListReceivedEmailsResponseDataItemAttachmentsList =
|
|
1173
|
-
/*@__PURE__*/ S.Array(ListReceivedEmailsResponseDataItemAttachmentsItem);
|
|
998
|
+
export const ListReceivedEmailsResponseDataItemAttachmentsList = /*@__PURE__*/ S.Array(ListReceivedEmailsResponseDataItemAttachmentsItem);
|
|
1174
999
|
export const ListReceivedEmailsResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1175
1000
|
id: S.optional(S.String),
|
|
1176
1001
|
to: S.optional(ListReceivedEmailsResponseDataItemToList),
|
|
@@ -1198,35 +1023,25 @@ export const ListEmailReceivingAttachmentsRequest = /*@__PURE__*/ S.suspend(() =
|
|
|
1198
1023
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1199
1024
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1200
1025
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1201
|
-
}).pipe(T.Http({
|
|
1202
|
-
method: "GET",
|
|
1203
|
-
uri: "/emails/receiving/{email_id}/attachments",
|
|
1204
|
-
code: 200,
|
|
1205
|
-
}))).annotate({
|
|
1026
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/receiving/{email_id}/attachments", code: 200 }))).annotate({
|
|
1206
1027
|
identifier: "ListEmailReceivingAttachmentsRequest",
|
|
1207
1028
|
});
|
|
1208
1029
|
export const ListEmailsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1209
1030
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1210
1031
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1211
1032
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1212
|
-
}).pipe(T.Http({ method: "GET", uri: "/emails", code: 200 }))).annotate({
|
|
1213
|
-
identifier: "ListEmailsRequest",
|
|
1214
|
-
});
|
|
1033
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails", code: 200 }))).annotate({ identifier: "ListEmailsRequest" });
|
|
1215
1034
|
export const ListEmailsResponseDataList = /*@__PURE__*/ S.Array(Email);
|
|
1216
1035
|
export const ListEmailsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1217
1036
|
object: S.optional(S.String),
|
|
1218
1037
|
has_more: S.optional(S.Boolean),
|
|
1219
1038
|
data: ListEmailsResponseDataList,
|
|
1220
|
-
})).annotate({
|
|
1221
|
-
identifier: "ListEmailsResponse",
|
|
1222
|
-
});
|
|
1039
|
+
})).annotate({ identifier: "ListEmailsResponse" });
|
|
1223
1040
|
export const ListEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1224
1041
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1225
1042
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1226
1043
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1227
|
-
}).pipe(T.Http({ method: "GET", uri: "/events", code: 200 }))).annotate({
|
|
1228
|
-
identifier: "ListEventsRequest",
|
|
1229
|
-
});
|
|
1044
|
+
}).pipe(T.Http({ method: "GET", uri: "/events", code: 200 }))).annotate({ identifier: "ListEventsRequest" });
|
|
1230
1045
|
export const EventSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1231
1046
|
id: S.optional(S.String),
|
|
1232
1047
|
name: S.optional(S.String),
|
|
@@ -1239,16 +1054,12 @@ export const ListEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1239
1054
|
object: S.optional(S.String),
|
|
1240
1055
|
has_more: S.optional(S.Boolean),
|
|
1241
1056
|
data: ListEventsResponseDataList,
|
|
1242
|
-
})).annotate({
|
|
1243
|
-
identifier: "ListEventsResponse",
|
|
1244
|
-
});
|
|
1057
|
+
})).annotate({ identifier: "ListEventsResponse" });
|
|
1245
1058
|
export const ListLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1246
1059
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1247
1060
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1248
1061
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1249
|
-
}).pipe(T.Http({ method: "GET", uri: "/logs", code: 200 }))).annotate({
|
|
1250
|
-
identifier: "ListLogsRequest",
|
|
1251
|
-
});
|
|
1062
|
+
}).pipe(T.Http({ method: "GET", uri: "/logs", code: 200 }))).annotate({ identifier: "ListLogsRequest" });
|
|
1252
1063
|
export const LogSummaryMethod = S.String;
|
|
1253
1064
|
export const LogSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1254
1065
|
id: S.optional(S.String),
|
|
@@ -1263,16 +1074,12 @@ export const ListLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1263
1074
|
object: S.optional(S.String),
|
|
1264
1075
|
has_more: S.optional(S.Boolean),
|
|
1265
1076
|
data: ListLogsResponseDataList,
|
|
1266
|
-
})).annotate({
|
|
1267
|
-
identifier: "ListLogsResponse",
|
|
1268
|
-
});
|
|
1077
|
+
})).annotate({ identifier: "ListLogsResponse" });
|
|
1269
1078
|
export const ListSegmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1270
1079
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1271
1080
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1272
1081
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1273
|
-
}).pipe(T.Http({ method: "GET", uri: "/segments", code: 200 }))).annotate({
|
|
1274
|
-
identifier: "ListSegmentsRequest",
|
|
1275
|
-
});
|
|
1082
|
+
}).pipe(T.Http({ method: "GET", uri: "/segments", code: 200 }))).annotate({ identifier: "ListSegmentsRequest" });
|
|
1276
1083
|
export const ListSegmentsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1277
1084
|
id: S.optional(S.String),
|
|
1278
1085
|
name: S.optional(S.String),
|
|
@@ -1293,9 +1100,7 @@ export const ListTemplatesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1293
1100
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1294
1101
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1295
1102
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1296
|
-
}).pipe(T.Http({ method: "GET", uri: "/templates", code: 200 }))).annotate({
|
|
1297
|
-
identifier: "ListTemplatesRequest",
|
|
1298
|
-
});
|
|
1103
|
+
}).pipe(T.Http({ method: "GET", uri: "/templates", code: 200 }))).annotate({ identifier: "ListTemplatesRequest" });
|
|
1299
1104
|
export const TemplateListItemStatus = S.String;
|
|
1300
1105
|
export const TemplateListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1301
1106
|
id: S.optional(S.String),
|
|
@@ -1305,9 +1110,7 @@ export const TemplateListItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1305
1110
|
created_at: S.optional(S.String),
|
|
1306
1111
|
updated_at: S.optional(S.String),
|
|
1307
1112
|
alias: S.optional(S.String),
|
|
1308
|
-
})).annotate({
|
|
1309
|
-
identifier: "TemplateListItem",
|
|
1310
|
-
});
|
|
1113
|
+
})).annotate({ identifier: "TemplateListItem" });
|
|
1311
1114
|
export const ListTemplatesResponseSuccessDataList = /*@__PURE__*/ S.Array(TemplateListItem);
|
|
1312
1115
|
export const ListTemplatesResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1313
1116
|
object: S.optional(S.String),
|
|
@@ -1320,9 +1123,7 @@ export const ListTopicsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1320
1123
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1321
1124
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1322
1125
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1323
|
-
}).pipe(T.Http({ method: "GET", uri: "/topics", code: 200 }))).annotate({
|
|
1324
|
-
identifier: "ListTopicsRequest",
|
|
1325
|
-
});
|
|
1126
|
+
}).pipe(T.Http({ method: "GET", uri: "/topics", code: 200 }))).annotate({ identifier: "ListTopicsRequest" });
|
|
1326
1127
|
export const ListTopicsResponseSuccessDataItemDefaultSubscription = S.String;
|
|
1327
1128
|
export const ListTopicsResponseSuccessDataItemVisibility = S.String;
|
|
1328
1129
|
export const ListTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1347,9 +1148,7 @@ export const ListWebhooksRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1347
1148
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
1348
1149
|
after: S.optional(S.String.pipe(T.Query())),
|
|
1349
1150
|
before: S.optional(S.String.pipe(T.Query())),
|
|
1350
|
-
}).pipe(T.Http({ method: "GET", uri: "/webhooks", code: 200 }))).annotate({
|
|
1351
|
-
identifier: "ListWebhooksRequest",
|
|
1352
|
-
});
|
|
1151
|
+
}).pipe(T.Http({ method: "GET", uri: "/webhooks", code: 200 }))).annotate({ identifier: "ListWebhooksRequest" });
|
|
1353
1152
|
export const ListWebhooksResponseDataItemEventsList = /*@__PURE__*/ S.Array(S.String);
|
|
1354
1153
|
export const ListWebhooksResponseDataItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1355
1154
|
id: S.optional(S.String),
|
|
@@ -1365,14 +1164,10 @@ export const ListWebhooksResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1365
1164
|
object: S.optional(S.String),
|
|
1366
1165
|
has_more: S.optional(S.Boolean),
|
|
1367
1166
|
data: ListWebhooksResponseDataList,
|
|
1368
|
-
})).annotate({
|
|
1369
|
-
identifier: "ListWebhooksResponse",
|
|
1370
|
-
});
|
|
1167
|
+
})).annotate({ identifier: "ListWebhooksResponse" });
|
|
1371
1168
|
export const PublishTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1372
1169
|
id: S.String.pipe(T.Label()),
|
|
1373
|
-
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/publish", code: 200 }))).annotate({
|
|
1374
|
-
identifier: "PublishTemplateRequest",
|
|
1375
|
-
});
|
|
1170
|
+
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/publish", code: 200 }))).annotate({ identifier: "PublishTemplateRequest" });
|
|
1376
1171
|
export const PublishTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1377
1172
|
id: S.optional(S.String),
|
|
1378
1173
|
object: S.optional(S.String),
|
|
@@ -1382,9 +1177,7 @@ export const PublishTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.St
|
|
|
1382
1177
|
export const SendBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1383
1178
|
id: S.String.pipe(T.Label()),
|
|
1384
1179
|
scheduled_at: S.optional(S.String),
|
|
1385
|
-
}).pipe(T.Http({ method: "POST", uri: "/broadcasts/{id}/send", code: 200 }))).annotate({
|
|
1386
|
-
identifier: "SendBroadcastRequest",
|
|
1387
|
-
});
|
|
1180
|
+
}).pipe(T.Http({ method: "POST", uri: "/broadcasts/{id}/send", code: 200 }))).annotate({ identifier: "SendBroadcastRequest" });
|
|
1388
1181
|
export const SendBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1389
1182
|
id: S.optional(S.String),
|
|
1390
1183
|
})).annotate({
|
|
@@ -1396,28 +1189,18 @@ export const SendEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1396
1189
|
contact_id: S.optional(S.String),
|
|
1397
1190
|
email: S.optional(S.String),
|
|
1398
1191
|
payload: S.optional(SendEventRequestPayloadMap),
|
|
1399
|
-
}).pipe(T.Http({ method: "POST", uri: "/events/send", code: 200 }))).annotate({
|
|
1400
|
-
identifier: "SendEventRequest",
|
|
1401
|
-
});
|
|
1192
|
+
}).pipe(T.Http({ method: "POST", uri: "/events/send", code: 200 }))).annotate({ identifier: "SendEventRequest" });
|
|
1402
1193
|
export const SendEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
1403
1194
|
identifier: "SendEventResponse",
|
|
1404
1195
|
});
|
|
1405
1196
|
export const StopAutomationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1406
1197
|
automation_id: S.String.pipe(T.Label()),
|
|
1407
|
-
}).pipe(T.Http({
|
|
1408
|
-
method: "POST",
|
|
1409
|
-
uri: "/automations/{automation_id}/stop",
|
|
1410
|
-
code: 200,
|
|
1411
|
-
}))).annotate({
|
|
1412
|
-
identifier: "StopAutomationRequest",
|
|
1413
|
-
});
|
|
1198
|
+
}).pipe(T.Http({ method: "POST", uri: "/automations/{automation_id}/stop", code: 200 }))).annotate({ identifier: "StopAutomationRequest" });
|
|
1414
1199
|
export const StopAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1415
1200
|
object: S.optional(S.String),
|
|
1416
1201
|
id: S.optional(S.String),
|
|
1417
1202
|
status: S.optional(S.String),
|
|
1418
|
-
})).annotate({
|
|
1419
|
-
identifier: "StopAutomationResponse",
|
|
1420
|
-
});
|
|
1203
|
+
})).annotate({ identifier: "StopAutomationResponse" });
|
|
1421
1204
|
export const UpdateAutomationRequestStatus = S.String;
|
|
1422
1205
|
export const UpdateAutomationRequestStepsList = /*@__PURE__*/ S.Array(AutomationStep);
|
|
1423
1206
|
export const UpdateAutomationRequestConnectionsList = /*@__PURE__*/ S.Array(AutomationConnection);
|
|
@@ -1427,15 +1210,11 @@ export const UpdateAutomationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1427
1210
|
status: S.optional(UpdateAutomationRequestStatus),
|
|
1428
1211
|
steps: S.optional(UpdateAutomationRequestStepsList),
|
|
1429
1212
|
connections: S.optional(UpdateAutomationRequestConnectionsList),
|
|
1430
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/automations/{automation_id}", code: 200 }))).annotate({
|
|
1431
|
-
identifier: "UpdateAutomationRequest",
|
|
1432
|
-
});
|
|
1213
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/automations/{automation_id}", code: 200 }))).annotate({ identifier: "UpdateAutomationRequest" });
|
|
1433
1214
|
export const PatchAutomationResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1434
1215
|
object: S.optional(S.String),
|
|
1435
1216
|
id: S.optional(S.String),
|
|
1436
|
-
})).annotate({
|
|
1437
|
-
identifier: "PatchAutomationResponse",
|
|
1438
|
-
});
|
|
1217
|
+
})).annotate({ identifier: "PatchAutomationResponse" });
|
|
1439
1218
|
export const UpdateBroadcastRequestReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
1440
1219
|
export const UpdateBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1441
1220
|
id: S.String.pipe(T.Label()),
|
|
@@ -1449,9 +1228,7 @@ export const UpdateBroadcastRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1449
1228
|
html: S.optional(S.String),
|
|
1450
1229
|
text: S.optional(S.String),
|
|
1451
1230
|
topic_id: S.optional(S.String),
|
|
1452
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/broadcasts/{id}", code: 200 }))).annotate({
|
|
1453
|
-
identifier: "UpdateBroadcastRequest",
|
|
1454
|
-
});
|
|
1231
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/broadcasts/{id}", code: 200 }))).annotate({ identifier: "UpdateBroadcastRequest" });
|
|
1455
1232
|
export const UpdateBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1456
1233
|
id: S.optional(S.String),
|
|
1457
1234
|
object: S.optional(S.String),
|
|
@@ -1466,9 +1243,7 @@ export const UpdateContactRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1466
1243
|
last_name: S.optional(S.String),
|
|
1467
1244
|
unsubscribed: S.optional(S.Boolean),
|
|
1468
1245
|
properties: S.optional(UpdateContactRequestPropertiesMap),
|
|
1469
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/contacts/{id}", code: 200 }))).annotate({
|
|
1470
|
-
identifier: "UpdateContactRequest",
|
|
1471
|
-
});
|
|
1246
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/contacts/{id}", code: 200 }))).annotate({ identifier: "UpdateContactRequest" });
|
|
1472
1247
|
export const UpdateContactResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1473
1248
|
object: S.optional(S.String),
|
|
1474
1249
|
id: S.optional(S.String),
|
|
@@ -1491,11 +1266,7 @@ export const UpdateContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() =
|
|
|
1491
1266
|
export const UpdateContactSegmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1492
1267
|
contact_id: S.String.pipe(T.Label()),
|
|
1493
1268
|
segment_id: S.String.pipe(T.Label()),
|
|
1494
|
-
}).pipe(T.Http({
|
|
1495
|
-
method: "POST",
|
|
1496
|
-
uri: "/contacts/{contact_id}/segments/{segment_id}",
|
|
1497
|
-
code: 200,
|
|
1498
|
-
}))).annotate({
|
|
1269
|
+
}).pipe(T.Http({ method: "POST", uri: "/contacts/{contact_id}/segments/{segment_id}", code: 200 }))).annotate({
|
|
1499
1270
|
identifier: "UpdateContactSegmentRequest",
|
|
1500
1271
|
});
|
|
1501
1272
|
export const AddContactToSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1516,23 +1287,17 @@ export const UpdateContactTopicsRequestTopicsList = /*@__PURE__*/ S.Array(Update
|
|
|
1516
1287
|
export const UpdateContactTopicsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1517
1288
|
contact_id: S.String.pipe(T.Label()),
|
|
1518
1289
|
topics: UpdateContactTopicsRequestTopicsList,
|
|
1519
|
-
}).pipe(T.Http({
|
|
1520
|
-
method: "PATCH",
|
|
1521
|
-
uri: "/contacts/{contact_id}/topics",
|
|
1522
|
-
code: 200,
|
|
1523
|
-
}))).annotate({
|
|
1290
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/contacts/{contact_id}/topics", code: 200 }))).annotate({
|
|
1524
1291
|
identifier: "UpdateContactTopicsRequest",
|
|
1525
1292
|
});
|
|
1526
1293
|
export const UpdateContactTopicsResponseSuccessTopicsItemSubscription = S.String;
|
|
1527
|
-
export const UpdateContactTopicsResponseSuccessTopicsItem =
|
|
1528
|
-
/*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1294
|
+
export const UpdateContactTopicsResponseSuccessTopicsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1529
1295
|
id: S.optional(S.String),
|
|
1530
1296
|
subscription: S.optional(UpdateContactTopicsResponseSuccessTopicsItemSubscription),
|
|
1531
1297
|
})).annotate({
|
|
1532
1298
|
identifier: "UpdateContactTopicsResponseSuccessTopicsItem",
|
|
1533
1299
|
});
|
|
1534
|
-
export const UpdateContactTopicsResponseSuccessTopicsList =
|
|
1535
|
-
/*@__PURE__*/ S.Array(UpdateContactTopicsResponseSuccessTopicsItem);
|
|
1300
|
+
export const UpdateContactTopicsResponseSuccessTopicsList = /*@__PURE__*/ S.Array(UpdateContactTopicsResponseSuccessTopicsItem);
|
|
1536
1301
|
export const UpdateContactTopicsResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1537
1302
|
object: S.optional(S.String),
|
|
1538
1303
|
contact_id: S.optional(S.String),
|
|
@@ -1547,9 +1312,7 @@ export const UpdateDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1547
1312
|
tls: S.optional(S.String),
|
|
1548
1313
|
capabilities: S.optional(DomainCapabilities),
|
|
1549
1314
|
tracking_subdomain: S.optional(S.String),
|
|
1550
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/domains/{domain_id}", code: 200 }))).annotate({
|
|
1551
|
-
identifier: "UpdateDomainRequest",
|
|
1552
|
-
});
|
|
1315
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/domains/{domain_id}", code: 200 }))).annotate({ identifier: "UpdateDomainRequest" });
|
|
1553
1316
|
export const UpdateDomainResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1554
1317
|
id: S.optional(S.String),
|
|
1555
1318
|
object: S.optional(S.String),
|
|
@@ -1558,26 +1321,18 @@ export const UpdateDomainResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struc
|
|
|
1558
1321
|
});
|
|
1559
1322
|
export const UpdateEmailRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1560
1323
|
email_id: S.String.pipe(T.Label()),
|
|
1561
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/emails/{email_id}", code: 200 }))).annotate({
|
|
1562
|
-
identifier: "UpdateEmailRequest",
|
|
1563
|
-
});
|
|
1324
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/emails/{email_id}", code: 200 }))).annotate({ identifier: "UpdateEmailRequest" });
|
|
1564
1325
|
export const UpdateEmailOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1565
1326
|
scheduled_at: S.optional(S.String),
|
|
1566
|
-
})).annotate({
|
|
1567
|
-
identifier: "UpdateEmailOptions",
|
|
1568
|
-
});
|
|
1327
|
+
})).annotate({ identifier: "UpdateEmailOptions" });
|
|
1569
1328
|
export const UpdateEventRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1570
1329
|
identifier: S.String.pipe(T.Label()),
|
|
1571
1330
|
schema: S.NullOr(S.Unknown),
|
|
1572
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/events/{identifier}", code: 200 }))).annotate({
|
|
1573
|
-
identifier: "UpdateEventRequest",
|
|
1574
|
-
});
|
|
1331
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/events/{identifier}", code: 200 }))).annotate({ identifier: "UpdateEventRequest" });
|
|
1575
1332
|
export const UpdateEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1576
1333
|
object: S.optional(S.String),
|
|
1577
1334
|
id: S.optional(S.String),
|
|
1578
|
-
})).annotate({
|
|
1579
|
-
identifier: "UpdateEventResponse",
|
|
1580
|
-
});
|
|
1335
|
+
})).annotate({ identifier: "UpdateEventResponse" });
|
|
1581
1336
|
export const UpdateTemplateRequestReplyToList = /*@__PURE__*/ S.Array(S.String);
|
|
1582
1337
|
export const UpdateTemplateRequestVariablesList = /*@__PURE__*/ S.Array(TemplateVariableInput);
|
|
1583
1338
|
export const UpdateTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
@@ -1590,9 +1345,7 @@ export const UpdateTemplateRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1590
1345
|
html: S.optional(S.String),
|
|
1591
1346
|
text: S.optional(S.String),
|
|
1592
1347
|
variables: S.optional(UpdateTemplateRequestVariablesList),
|
|
1593
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/templates/{id}", code: 200 }))).annotate({
|
|
1594
|
-
identifier: "UpdateTemplateRequest",
|
|
1595
|
-
});
|
|
1348
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/templates/{id}", code: 200 }))).annotate({ identifier: "UpdateTemplateRequest" });
|
|
1596
1349
|
export const UpdateTemplateResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1597
1350
|
id: S.optional(S.String),
|
|
1598
1351
|
object: S.optional(S.String),
|
|
@@ -1605,9 +1358,7 @@ export const UpdateTopicRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1605
1358
|
name: S.optional(S.String),
|
|
1606
1359
|
description: S.optional(S.String),
|
|
1607
1360
|
visibility: S.optional(UpdateTopicRequestVisibility),
|
|
1608
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/topics/{id}", code: 200 }))).annotate({
|
|
1609
|
-
identifier: "UpdateTopicRequest",
|
|
1610
|
-
});
|
|
1361
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/topics/{id}", code: 200 }))).annotate({ identifier: "UpdateTopicRequest" });
|
|
1611
1362
|
export const UpdateTopicResponseSuccess = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1612
1363
|
id: S.optional(S.String),
|
|
1613
1364
|
object: S.optional(S.String),
|
|
@@ -1621,26 +1372,18 @@ export const UpdateWebhookRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
|
1621
1372
|
endpoint: S.optional(S.String),
|
|
1622
1373
|
events: S.optional(UpdateWebhookRequestEventsList),
|
|
1623
1374
|
status: S.optional(UpdateWebhookRequestStatus),
|
|
1624
|
-
}).pipe(T.Http({ method: "PATCH", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({
|
|
1625
|
-
identifier: "UpdateWebhookRequest",
|
|
1626
|
-
});
|
|
1375
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/webhooks/{webhook_id}", code: 200 }))).annotate({ identifier: "UpdateWebhookRequest" });
|
|
1627
1376
|
export const UpdateWebhookResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1628
1377
|
object: S.optional(S.String),
|
|
1629
1378
|
id: S.optional(S.String),
|
|
1630
|
-
})).annotate({
|
|
1631
|
-
identifier: "UpdateWebhookResponse",
|
|
1632
|
-
});
|
|
1379
|
+
})).annotate({ identifier: "UpdateWebhookResponse" });
|
|
1633
1380
|
export const VerifyDomainRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1634
1381
|
domain_id: S.String.pipe(T.Label()),
|
|
1635
|
-
}).pipe(T.Http({ method: "POST", uri: "/domains/{domain_id}/verify", code: 200 }))).annotate({
|
|
1636
|
-
identifier: "VerifyDomainRequest",
|
|
1637
|
-
});
|
|
1382
|
+
}).pipe(T.Http({ method: "POST", uri: "/domains/{domain_id}/verify", code: 200 }))).annotate({ identifier: "VerifyDomainRequest" });
|
|
1638
1383
|
export const VerifyDomainResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
1639
1384
|
object: S.optional(S.String),
|
|
1640
1385
|
id: S.optional(S.String),
|
|
1641
|
-
})).annotate({
|
|
1642
|
-
identifier: "VerifyDomainResponse",
|
|
1643
|
-
});
|
|
1386
|
+
})).annotate({ identifier: "VerifyDomainResponse" });
|
|
1644
1387
|
/** Cancel the schedule of the e-mail. */
|
|
1645
1388
|
export const cancelEmail = /*@__PURE__*/ API.make(() => ({
|
|
1646
1389
|
input: CancelEmailRequest,
|
|
@@ -1906,7 +1649,8 @@ export const getDomain = /*@__PURE__*/ API.make(() => ({
|
|
|
1906
1649
|
retry: Retry.Retry,
|
|
1907
1650
|
}));
|
|
1908
1651
|
/** Retrieve a single email */
|
|
1909
|
-
export const getEmail =
|
|
1652
|
+
export const getEmail =
|
|
1653
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1910
1654
|
input: GetEmailRequest,
|
|
1911
1655
|
output: Email,
|
|
1912
1656
|
errors: [UnknownResendError],
|
|
@@ -1938,7 +1682,8 @@ export const getEmailReceivingAttachment = /*@__PURE__*/ API.make(() => ({
|
|
|
1938
1682
|
retry: Retry.Retry,
|
|
1939
1683
|
}));
|
|
1940
1684
|
/** Retrieve a single event */
|
|
1941
|
-
export const getEvent =
|
|
1685
|
+
export const getEvent =
|
|
1686
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1942
1687
|
input: GetEventRequest,
|
|
1943
1688
|
output: Event,
|
|
1944
1689
|
errors: [UnknownResendError],
|
|
@@ -1946,7 +1691,8 @@ export const getEvent = /*@__PURE__*/ API.make(() => ({
|
|
|
1946
1691
|
retry: Retry.Retry,
|
|
1947
1692
|
}));
|
|
1948
1693
|
/** Retrieve a single log */
|
|
1949
|
-
export const getLog =
|
|
1694
|
+
export const getLog =
|
|
1695
|
+
/*@__PURE__*/ API.make(() => ({
|
|
1950
1696
|
input: GetLogRequest,
|
|
1951
1697
|
output: Log,
|
|
1952
1698
|
errors: [UnknownResendError],
|