@distilled.cloud/resend 1.0.0-rc.13 → 1.0.0-rc.14
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/src/services/resend.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
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.ts";
|
|
6
|
-
import {
|
|
7
|
-
ResendProtocol,
|
|
8
|
-
type ResendOpError,
|
|
9
|
-
type ResendOpContext,
|
|
10
|
-
} from "../protocol.ts";
|
|
11
|
-
import { paginateResend } from "../pagination.ts";
|
|
12
5
|
import { UnknownResendError } from "../errors.ts";
|
|
6
|
+
import { paginateResend } from "../pagination.ts";
|
|
7
|
+
import { ResendProtocol, type ResendOpError, type ResendOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { ResendOpError, ResendOpContext };
|
|
16
12
|
|
|
@@ -21,29 +17,19 @@ export interface CancelEmailRequest {
|
|
|
21
17
|
export const CancelEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
22
18
|
S.Struct({
|
|
23
19
|
email_id: S.String.pipe(T.Label()),
|
|
24
|
-
}).pipe(
|
|
25
|
-
|
|
26
|
-
),
|
|
27
|
-
).annotate({
|
|
28
|
-
identifier: "CancelEmailRequest",
|
|
29
|
-
}) as any as S.Schema<CancelEmailRequest>;
|
|
20
|
+
}).pipe(T.Http({ method: "POST", uri: "/emails/{email_id}/cancel", code: 200 })),
|
|
21
|
+
).annotate({ identifier: "CancelEmailRequest" }) as any as S.Schema<CancelEmailRequest>;
|
|
30
22
|
|
|
31
23
|
export type EmailToList = Array<string>;
|
|
32
|
-
export const EmailToList = /*@__PURE__*/ S.Array(
|
|
33
|
-
S.String,
|
|
34
|
-
) as any as S.Schema<EmailToList>;
|
|
24
|
+
export const EmailToList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<EmailToList>;
|
|
35
25
|
|
|
36
26
|
/** The email addresses of the blind carbon copy recipients. */
|
|
37
27
|
export type EmailBccList = Array<string>;
|
|
38
|
-
export const EmailBccList = /*@__PURE__*/ S.Array(
|
|
39
|
-
S.String,
|
|
40
|
-
) as any as S.Schema<EmailBccList>;
|
|
28
|
+
export const EmailBccList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<EmailBccList>;
|
|
41
29
|
|
|
42
30
|
/** The email addresses of the carbon copy recipients. */
|
|
43
31
|
export type EmailCcList = Array<string>;
|
|
44
|
-
export const EmailCcList = /*@__PURE__*/ S.Array(
|
|
45
|
-
S.String,
|
|
46
|
-
) as any as S.Schema<EmailCcList>;
|
|
32
|
+
export const EmailCcList = /*@__PURE__*/ S.Array(S.String) as any as S.Schema<EmailCcList>;
|
|
47
33
|
|
|
48
34
|
/** The email addresses to which replies should be sent. */
|
|
49
35
|
export type EmailReplyToList = Array<string>;
|
|
@@ -111,9 +97,7 @@ export const CreateApiKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
111
97
|
permission: S.optional(CreateApiKeyRequestPermission),
|
|
112
98
|
domain_id: S.optional(S.String),
|
|
113
99
|
}).pipe(T.Http({ method: "POST", uri: "/api-keys", code: 200 })),
|
|
114
|
-
).annotate({
|
|
115
|
-
identifier: "CreateApiKeyRequest",
|
|
116
|
-
}) as any as S.Schema<CreateApiKeyRequest>;
|
|
100
|
+
).annotate({ identifier: "CreateApiKeyRequest" }) as any as S.Schema<CreateApiKeyRequest>;
|
|
117
101
|
|
|
118
102
|
export interface CreateApiKeyResponse {
|
|
119
103
|
/** The ID of the API key. */
|
|
@@ -126,9 +110,7 @@ export const CreateApiKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
126
110
|
id: S.optional(S.String),
|
|
127
111
|
token: S.optional(S.String),
|
|
128
112
|
}),
|
|
129
|
-
).annotate({
|
|
130
|
-
identifier: "CreateApiKeyResponse",
|
|
131
|
-
}) as any as S.Schema<CreateApiKeyResponse>;
|
|
113
|
+
).annotate({ identifier: "CreateApiKeyResponse" }) as any as S.Schema<CreateApiKeyResponse>;
|
|
132
114
|
|
|
133
115
|
/** The initial status of the automation. Defaults to `disabled`. */
|
|
134
116
|
export type CreateAutomationRequestStatus = "enabled" | "disabled";
|
|
@@ -193,13 +175,10 @@ export const AutomationConnection = /*@__PURE__*/ S.suspend(() =>
|
|
|
193
175
|
to: S.String,
|
|
194
176
|
type: S.optional(AutomationConnectionType),
|
|
195
177
|
}),
|
|
196
|
-
).annotate({
|
|
197
|
-
identifier: "AutomationConnection",
|
|
198
|
-
}) as any as S.Schema<AutomationConnection>;
|
|
178
|
+
).annotate({ identifier: "AutomationConnection" }) as any as S.Schema<AutomationConnection>;
|
|
199
179
|
|
|
200
180
|
/** The connections between steps in the automation graph. */
|
|
201
|
-
export type CreateAutomationRequestConnectionsList =
|
|
202
|
-
Array<AutomationConnection>;
|
|
181
|
+
export type CreateAutomationRequestConnectionsList = Array<AutomationConnection>;
|
|
203
182
|
export const CreateAutomationRequestConnectionsList = /*@__PURE__*/ S.Array(
|
|
204
183
|
AutomationConnection,
|
|
205
184
|
) as any as S.Schema<CreateAutomationRequestConnectionsList>;
|
|
@@ -221,9 +200,7 @@ export const CreateAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
221
200
|
steps: CreateAutomationRequestStepsList,
|
|
222
201
|
connections: CreateAutomationRequestConnectionsList,
|
|
223
202
|
}).pipe(T.Http({ method: "POST", uri: "/automations", code: 200 })),
|
|
224
|
-
).annotate({
|
|
225
|
-
identifier: "CreateAutomationRequest",
|
|
226
|
-
}) as any as S.Schema<CreateAutomationRequest>;
|
|
203
|
+
).annotate({ identifier: "CreateAutomationRequest" }) as any as S.Schema<CreateAutomationRequest>;
|
|
227
204
|
|
|
228
205
|
export interface CreateAutomationResponse {
|
|
229
206
|
/** Type of the response object. */
|
|
@@ -236,9 +213,7 @@ export const CreateAutomationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
236
213
|
object: S.optional(S.String),
|
|
237
214
|
id: S.optional(S.String),
|
|
238
215
|
}),
|
|
239
|
-
).annotate({
|
|
240
|
-
identifier: "CreateAutomationResponse",
|
|
241
|
-
}) as any as S.Schema<CreateAutomationResponse>;
|
|
216
|
+
).annotate({ identifier: "CreateAutomationResponse" }) as any as S.Schema<CreateAutomationResponse>;
|
|
242
217
|
|
|
243
218
|
/** The email addresses to which replies should be sent. */
|
|
244
219
|
export type CreateBroadcastRequestReplyToList = Array<string>;
|
|
@@ -287,9 +262,7 @@ export const CreateBroadcastRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
287
262
|
send: S.optional(S.Boolean),
|
|
288
263
|
scheduled_at: S.optional(S.String),
|
|
289
264
|
}).pipe(T.Http({ method: "POST", uri: "/broadcasts", code: 200 })),
|
|
290
|
-
).annotate({
|
|
291
|
-
identifier: "CreateBroadcastRequest",
|
|
292
|
-
}) as any as S.Schema<CreateBroadcastRequest>;
|
|
265
|
+
).annotate({ identifier: "CreateBroadcastRequest" }) as any as S.Schema<CreateBroadcastRequest>;
|
|
293
266
|
|
|
294
267
|
export interface CreateBroadcastResponseSuccess {
|
|
295
268
|
/** The ID of the broadcast. */
|
|
@@ -307,9 +280,7 @@ export const CreateBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
|
307
280
|
}) as any as S.Schema<CreateBroadcastResponseSuccess>;
|
|
308
281
|
|
|
309
282
|
/** A map of custom property keys and values to create. */
|
|
310
|
-
export type CreateContactRequestPropertiesMap = {
|
|
311
|
-
[key: string]: unknown | undefined;
|
|
312
|
-
};
|
|
283
|
+
export type CreateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
|
|
313
284
|
export const CreateContactRequestPropertiesMap = /*@__PURE__*/ S.Record(
|
|
314
285
|
S.String,
|
|
315
286
|
S.Unknown,
|
|
@@ -341,8 +312,7 @@ export const CreateContactRequestTopicsItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
341
312
|
}) as any as S.Schema<CreateContactRequestTopicsItem>;
|
|
342
313
|
|
|
343
314
|
/** Array of topic subscriptions for the contact. */
|
|
344
|
-
export type CreateContactRequestTopicsList =
|
|
345
|
-
Array<CreateContactRequestTopicsItem>;
|
|
315
|
+
export type CreateContactRequestTopicsList = Array<CreateContactRequestTopicsItem>;
|
|
346
316
|
export const CreateContactRequestTopicsList = /*@__PURE__*/ S.Array(
|
|
347
317
|
CreateContactRequestTopicsItem,
|
|
348
318
|
) as any as S.Schema<CreateContactRequestTopicsList>;
|
|
@@ -376,9 +346,7 @@ export const CreateContactRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
376
346
|
topics: S.optional(CreateContactRequestTopicsList),
|
|
377
347
|
audience_id: S.optional(S.String),
|
|
378
348
|
}).pipe(T.Http({ method: "POST", uri: "/contacts", code: 200 })),
|
|
379
|
-
).annotate({
|
|
380
|
-
identifier: "CreateContactRequest",
|
|
381
|
-
}) as any as S.Schema<CreateContactRequest>;
|
|
349
|
+
).annotate({ identifier: "CreateContactRequest" }) as any as S.Schema<CreateContactRequest>;
|
|
382
350
|
|
|
383
351
|
export interface CreateContactResponseSuccess {
|
|
384
352
|
/** Type of the response object. */
|
|
@@ -428,22 +396,17 @@ export interface CreateContactPropertyResponseSuccess {
|
|
|
428
396
|
/** The object type of the response. */
|
|
429
397
|
object?: string;
|
|
430
398
|
}
|
|
431
|
-
export const CreateContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(
|
|
432
|
-
(
|
|
433
|
-
S.
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
}),
|
|
399
|
+
export const CreateContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
400
|
+
S.Struct({
|
|
401
|
+
id: S.optional(S.String),
|
|
402
|
+
object: S.optional(S.String),
|
|
403
|
+
}),
|
|
437
404
|
).annotate({
|
|
438
405
|
identifier: "CreateContactPropertyResponseSuccess",
|
|
439
406
|
}) as any as S.Schema<CreateContactPropertyResponseSuccess>;
|
|
440
407
|
|
|
441
408
|
/** The region where emails will be sent from. Possible values are us-east-1 | eu-west-1 | sa-east-1 | ap-northeast-1 */
|
|
442
|
-
export type CreateDomainRequestRegion =
|
|
443
|
-
| "us-east-1"
|
|
444
|
-
| "eu-west-1"
|
|
445
|
-
| "sa-east-1"
|
|
446
|
-
| "ap-northeast-1";
|
|
409
|
+
export type CreateDomainRequestRegion = "us-east-1" | "eu-west-1" | "sa-east-1" | "ap-northeast-1";
|
|
447
410
|
export const CreateDomainRequestRegion = S.String;
|
|
448
411
|
|
|
449
412
|
/** TLS mode. Opportunistic attempts secure connection but falls back to unencrypted. Enforced requires TLS or email won't be sent. */
|
|
@@ -470,9 +433,7 @@ export const DomainCapabilities = /*@__PURE__*/ S.suspend(() =>
|
|
|
470
433
|
sending: S.optional(DomainCapabilitiesSending),
|
|
471
434
|
receiving: S.optional(DomainCapabilitiesReceiving),
|
|
472
435
|
}),
|
|
473
|
-
).annotate({
|
|
474
|
-
identifier: "DomainCapabilities",
|
|
475
|
-
}) as any as S.Schema<DomainCapabilities>;
|
|
436
|
+
).annotate({ identifier: "DomainCapabilities" }) as any as S.Schema<DomainCapabilities>;
|
|
476
437
|
|
|
477
438
|
export interface CreateDomainRequest {
|
|
478
439
|
/** The name of the domain you want to create. */
|
|
@@ -502,9 +463,7 @@ export const CreateDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
502
463
|
capabilities: S.optional(DomainCapabilities),
|
|
503
464
|
tracking_subdomain: S.optional(S.String),
|
|
504
465
|
}).pipe(T.Http({ method: "POST", uri: "/domains", code: 200 })),
|
|
505
|
-
).annotate({
|
|
506
|
-
identifier: "CreateDomainRequest",
|
|
507
|
-
}) as any as S.Schema<CreateDomainRequest>;
|
|
466
|
+
).annotate({ identifier: "CreateDomainRequest" }) as any as S.Schema<CreateDomainRequest>;
|
|
508
467
|
|
|
509
468
|
/** The type of record (SPF for sending, DKIM for sending, Receiving for inbound emails, Tracking for click and open tracking). */
|
|
510
469
|
export type DomainRecordRecord = "SPF" | "DKIM" | "Receiving" | "Tracking";
|
|
@@ -589,9 +548,7 @@ export const CreateDomainResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
589
548
|
click_tracking: S.optional(S.Boolean),
|
|
590
549
|
tracking_subdomain: S.optional(S.String),
|
|
591
550
|
}),
|
|
592
|
-
).annotate({
|
|
593
|
-
identifier: "CreateDomainResponse",
|
|
594
|
-
}) as any as S.Schema<CreateDomainResponse>;
|
|
551
|
+
).annotate({ identifier: "CreateDomainResponse" }) as any as S.Schema<CreateDomainResponse>;
|
|
595
552
|
|
|
596
553
|
export type CreateEmailRequestToCase1List = Array<string>;
|
|
597
554
|
export const CreateEmailRequestToCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -600,8 +557,7 @@ export const CreateEmailRequestToCase1List = /*@__PURE__*/ S.Array(
|
|
|
600
557
|
|
|
601
558
|
/** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
|
|
602
559
|
export type CreateEmailRequestTo = string | CreateEmailRequestToCase1List;
|
|
603
|
-
export const CreateEmailRequestTo =
|
|
604
|
-
S.Unknown as any as S.Schema<CreateEmailRequestTo>;
|
|
560
|
+
export const CreateEmailRequestTo = S.Unknown as any as S.Schema<CreateEmailRequestTo>;
|
|
605
561
|
|
|
606
562
|
export type CreateEmailRequestBccCase1List = Array<string>;
|
|
607
563
|
export const CreateEmailRequestBccCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -610,8 +566,7 @@ export const CreateEmailRequestBccCase1List = /*@__PURE__*/ S.Array(
|
|
|
610
566
|
|
|
611
567
|
/** Bcc recipient email address. For multiple addresses, send as an array of strings. */
|
|
612
568
|
export type CreateEmailRequestBcc = string | CreateEmailRequestBccCase1List;
|
|
613
|
-
export const CreateEmailRequestBcc =
|
|
614
|
-
S.Unknown as any as S.Schema<CreateEmailRequestBcc>;
|
|
569
|
+
export const CreateEmailRequestBcc = S.Unknown as any as S.Schema<CreateEmailRequestBcc>;
|
|
615
570
|
|
|
616
571
|
export type CreateEmailRequestCcCase1List = Array<string>;
|
|
617
572
|
export const CreateEmailRequestCcCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -620,8 +575,7 @@ export const CreateEmailRequestCcCase1List = /*@__PURE__*/ S.Array(
|
|
|
620
575
|
|
|
621
576
|
/** Cc recipient email address. For multiple addresses, send as an array of strings. */
|
|
622
577
|
export type CreateEmailRequestCc = string | CreateEmailRequestCcCase1List;
|
|
623
|
-
export const CreateEmailRequestCc =
|
|
624
|
-
S.Unknown as any as S.Schema<CreateEmailRequestCc>;
|
|
578
|
+
export const CreateEmailRequestCc = S.Unknown as any as S.Schema<CreateEmailRequestCc>;
|
|
625
579
|
|
|
626
580
|
export type CreateEmailRequestReplyToCase1List = Array<string>;
|
|
627
581
|
export const CreateEmailRequestReplyToCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -629,11 +583,8 @@ export const CreateEmailRequestReplyToCase1List = /*@__PURE__*/ S.Array(
|
|
|
629
583
|
) as any as S.Schema<CreateEmailRequestReplyToCase1List>;
|
|
630
584
|
|
|
631
585
|
/** Reply-to email address. For multiple addresses, send as an array of strings. */
|
|
632
|
-
export type CreateEmailRequestReplyTo =
|
|
633
|
-
|
|
634
|
-
| CreateEmailRequestReplyToCase1List;
|
|
635
|
-
export const CreateEmailRequestReplyTo =
|
|
636
|
-
S.Unknown as any as S.Schema<CreateEmailRequestReplyTo>;
|
|
586
|
+
export type CreateEmailRequestReplyTo = string | CreateEmailRequestReplyToCase1List;
|
|
587
|
+
export const CreateEmailRequestReplyTo = S.Unknown as any as S.Schema<CreateEmailRequestReplyTo>;
|
|
637
588
|
|
|
638
589
|
export type CreateEmailRequestTemplateVariablesValue = string | number;
|
|
639
590
|
export const CreateEmailRequestTemplateVariablesValue =
|
|
@@ -752,9 +703,7 @@ export const CreateEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
752
703
|
tags: S.optional(CreateEmailRequestTagsList),
|
|
753
704
|
topic_id: S.optional(S.String),
|
|
754
705
|
}).pipe(T.Http({ method: "POST", uri: "/emails", code: 200 })),
|
|
755
|
-
).annotate({
|
|
756
|
-
identifier: "CreateEmailRequest",
|
|
757
|
-
}) as any as S.Schema<CreateEmailRequest>;
|
|
706
|
+
).annotate({ identifier: "CreateEmailRequest" }) as any as S.Schema<CreateEmailRequest>;
|
|
758
707
|
|
|
759
708
|
export interface SendEmailResponse {
|
|
760
709
|
/** The ID of the sent email. */
|
|
@@ -764,9 +713,7 @@ export const SendEmailResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
764
713
|
S.Struct({
|
|
765
714
|
id: S.optional(S.String),
|
|
766
715
|
}),
|
|
767
|
-
).annotate({
|
|
768
|
-
identifier: "SendEmailResponse",
|
|
769
|
-
}) as any as S.Schema<SendEmailResponse>;
|
|
716
|
+
).annotate({ identifier: "SendEmailResponse" }) as any as S.Schema<SendEmailResponse>;
|
|
770
717
|
|
|
771
718
|
export type SendEmailRequestToCase1List = Array<string>;
|
|
772
719
|
export const SendEmailRequestToCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -775,8 +722,7 @@ export const SendEmailRequestToCase1List = /*@__PURE__*/ S.Array(
|
|
|
775
722
|
|
|
776
723
|
/** Recipient email address. For multiple addresses, send as an array of strings. Max 50. */
|
|
777
724
|
export type SendEmailRequestTo = string | SendEmailRequestToCase1List;
|
|
778
|
-
export const SendEmailRequestTo =
|
|
779
|
-
S.Unknown as any as S.Schema<SendEmailRequestTo>;
|
|
725
|
+
export const SendEmailRequestTo = S.Unknown as any as S.Schema<SendEmailRequestTo>;
|
|
780
726
|
|
|
781
727
|
export type SendEmailRequestBccCase1List = Array<string>;
|
|
782
728
|
export const SendEmailRequestBccCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -785,8 +731,7 @@ export const SendEmailRequestBccCase1List = /*@__PURE__*/ S.Array(
|
|
|
785
731
|
|
|
786
732
|
/** Bcc recipient email address. For multiple addresses, send as an array of strings. */
|
|
787
733
|
export type SendEmailRequestBcc = string | SendEmailRequestBccCase1List;
|
|
788
|
-
export const SendEmailRequestBcc =
|
|
789
|
-
S.Unknown as any as S.Schema<SendEmailRequestBcc>;
|
|
734
|
+
export const SendEmailRequestBcc = S.Unknown as any as S.Schema<SendEmailRequestBcc>;
|
|
790
735
|
|
|
791
736
|
export type SendEmailRequestCcCase1List = Array<string>;
|
|
792
737
|
export const SendEmailRequestCcCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -795,8 +740,7 @@ export const SendEmailRequestCcCase1List = /*@__PURE__*/ S.Array(
|
|
|
795
740
|
|
|
796
741
|
/** Cc recipient email address. For multiple addresses, send as an array of strings. */
|
|
797
742
|
export type SendEmailRequestCc = string | SendEmailRequestCcCase1List;
|
|
798
|
-
export const SendEmailRequestCc =
|
|
799
|
-
S.Unknown as any as S.Schema<SendEmailRequestCc>;
|
|
743
|
+
export const SendEmailRequestCc = S.Unknown as any as S.Schema<SendEmailRequestCc>;
|
|
800
744
|
|
|
801
745
|
export type SendEmailRequestReplyToCase1List = Array<string>;
|
|
802
746
|
export const SendEmailRequestReplyToCase1List = /*@__PURE__*/ S.Array(
|
|
@@ -805,8 +749,7 @@ export const SendEmailRequestReplyToCase1List = /*@__PURE__*/ S.Array(
|
|
|
805
749
|
|
|
806
750
|
/** Reply-to email address. For multiple addresses, send as an array of strings. */
|
|
807
751
|
export type SendEmailRequestReplyTo = string | SendEmailRequestReplyToCase1List;
|
|
808
|
-
export const SendEmailRequestReplyTo =
|
|
809
|
-
S.Unknown as any as S.Schema<SendEmailRequestReplyTo>;
|
|
752
|
+
export const SendEmailRequestReplyTo = S.Unknown as any as S.Schema<SendEmailRequestReplyTo>;
|
|
810
753
|
|
|
811
754
|
export type SendEmailRequestTemplateVariablesValue = string | number;
|
|
812
755
|
export const SendEmailRequestTemplateVariablesValue =
|
|
@@ -832,9 +775,7 @@ export const SendEmailRequestTemplate = /*@__PURE__*/ S.suspend(() =>
|
|
|
832
775
|
id: S.String,
|
|
833
776
|
variables: S.optional(SendEmailRequestTemplateVariablesMap),
|
|
834
777
|
}),
|
|
835
|
-
).annotate({
|
|
836
|
-
identifier: "SendEmailRequestTemplate",
|
|
837
|
-
}) as any as S.Schema<SendEmailRequestTemplate>;
|
|
778
|
+
).annotate({ identifier: "SendEmailRequestTemplate" }) as any as S.Schema<SendEmailRequestTemplate>;
|
|
838
779
|
|
|
839
780
|
export type SendEmailRequestAttachmentsList = Array<Attachment>;
|
|
840
781
|
export const SendEmailRequestAttachmentsList = /*@__PURE__*/ S.Array(
|
|
@@ -890,9 +831,7 @@ export const SendEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
890
831
|
tags: S.optional(SendEmailRequestTagsList),
|
|
891
832
|
topic_id: S.optional(S.String),
|
|
892
833
|
}),
|
|
893
|
-
).annotate({
|
|
894
|
-
identifier: "SendEmailRequest",
|
|
895
|
-
}) as any as S.Schema<SendEmailRequest>;
|
|
834
|
+
).annotate({ identifier: "SendEmailRequest" }) as any as S.Schema<SendEmailRequest>;
|
|
896
835
|
|
|
897
836
|
export type CreateEmailBatchRequestBodyList = Array<SendEmailRequest>;
|
|
898
837
|
export const CreateEmailBatchRequestBodyList = /*@__PURE__*/ S.Array(
|
|
@@ -906,9 +845,7 @@ export const CreateEmailBatchRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
906
845
|
S.Struct({
|
|
907
846
|
body: S.optional(CreateEmailBatchRequestBodyList.pipe(T.HttpBody())),
|
|
908
847
|
}).pipe(T.Http({ method: "POST", uri: "/emails/batch", code: 200 })),
|
|
909
|
-
).annotate({
|
|
910
|
-
identifier: "CreateEmailBatchRequest",
|
|
911
|
-
}) as any as S.Schema<CreateEmailBatchRequest>;
|
|
848
|
+
).annotate({ identifier: "CreateEmailBatchRequest" }) as any as S.Schema<CreateEmailBatchRequest>;
|
|
912
849
|
|
|
913
850
|
export interface CreateBatchEmailsResponseDataItem {
|
|
914
851
|
/** The ID of the sent email. */
|
|
@@ -922,8 +859,7 @@ export const CreateBatchEmailsResponseDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
922
859
|
identifier: "CreateBatchEmailsResponseDataItem",
|
|
923
860
|
}) as any as S.Schema<CreateBatchEmailsResponseDataItem>;
|
|
924
861
|
|
|
925
|
-
export type CreateBatchEmailsResponseDataList =
|
|
926
|
-
Array<CreateBatchEmailsResponseDataItem>;
|
|
862
|
+
export type CreateBatchEmailsResponseDataList = Array<CreateBatchEmailsResponseDataItem>;
|
|
927
863
|
export const CreateBatchEmailsResponseDataList = /*@__PURE__*/ S.Array(
|
|
928
864
|
CreateBatchEmailsResponseDataItem,
|
|
929
865
|
) as any as S.Schema<CreateBatchEmailsResponseDataList>;
|
|
@@ -950,9 +886,7 @@ export const CreateEventRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
950
886
|
name: S.String,
|
|
951
887
|
schema: S.optional(S.NullOr(S.Unknown)),
|
|
952
888
|
}).pipe(T.Http({ method: "POST", uri: "/events", code: 200 })),
|
|
953
|
-
).annotate({
|
|
954
|
-
identifier: "CreateEventRequest",
|
|
955
|
-
}) as any as S.Schema<CreateEventRequest>;
|
|
889
|
+
).annotate({ identifier: "CreateEventRequest" }) as any as S.Schema<CreateEventRequest>;
|
|
956
890
|
|
|
957
891
|
export interface CreateEventResponse {
|
|
958
892
|
/** Type of the response object. */
|
|
@@ -965,9 +899,7 @@ export const CreateEventResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
965
899
|
object: S.optional(S.String),
|
|
966
900
|
id: S.optional(S.String),
|
|
967
901
|
}),
|
|
968
|
-
).annotate({
|
|
969
|
-
identifier: "CreateEventResponse",
|
|
970
|
-
}) as any as S.Schema<CreateEventResponse>;
|
|
902
|
+
).annotate({ identifier: "CreateEventResponse" }) as any as S.Schema<CreateEventResponse>;
|
|
971
903
|
|
|
972
904
|
export interface CreateSegmentRequest {
|
|
973
905
|
/** The name of the segment. */
|
|
@@ -983,9 +915,7 @@ export const CreateSegmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
983
915
|
audience_id: S.optional(S.String),
|
|
984
916
|
filter: S.optional(S.Unknown),
|
|
985
917
|
}).pipe(T.Http({ method: "POST", uri: "/segments", code: 200 })),
|
|
986
|
-
).annotate({
|
|
987
|
-
identifier: "CreateSegmentRequest",
|
|
988
|
-
}) as any as S.Schema<CreateSegmentRequest>;
|
|
918
|
+
).annotate({ identifier: "CreateSegmentRequest" }) as any as S.Schema<CreateSegmentRequest>;
|
|
989
919
|
|
|
990
920
|
export interface CreateSegmentResponseSuccess {
|
|
991
921
|
/** The ID of the segment. */
|
|
@@ -1009,19 +939,13 @@ export const CreateTemplateRequestReplyToList = /*@__PURE__*/ S.Array(
|
|
|
1009
939
|
) as any as S.Schema<CreateTemplateRequestReplyToList>;
|
|
1010
940
|
|
|
1011
941
|
/** The type of the variable. */
|
|
1012
|
-
export type TemplateVariableInputType =
|
|
1013
|
-
| "string"
|
|
1014
|
-
| "number"
|
|
1015
|
-
| "boolean"
|
|
1016
|
-
| "object"
|
|
1017
|
-
| "list";
|
|
942
|
+
export type TemplateVariableInputType = "string" | "number" | "boolean" | "object" | "list";
|
|
1018
943
|
export const TemplateVariableInputType = S.String;
|
|
1019
944
|
|
|
1020
945
|
export type TemplateVariableInputFallbackValueCase4List = Array<unknown>;
|
|
1021
|
-
export const TemplateVariableInputFallbackValueCase4List =
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
) as any as S.Schema<TemplateVariableInputFallbackValueCase4List>;
|
|
946
|
+
export const TemplateVariableInputFallbackValueCase4List = /*@__PURE__*/ S.Array(
|
|
947
|
+
S.Unknown,
|
|
948
|
+
) as any as S.Schema<TemplateVariableInputFallbackValueCase4List>;
|
|
1025
949
|
|
|
1026
950
|
/** The fallback value of the variable. */
|
|
1027
951
|
export type TemplateVariableInputFallbackValue =
|
|
@@ -1047,9 +971,7 @@ export const TemplateVariableInput = /*@__PURE__*/ S.suspend(() =>
|
|
|
1047
971
|
type: TemplateVariableInputType,
|
|
1048
972
|
fallback_value: S.optional(TemplateVariableInputFallbackValue),
|
|
1049
973
|
}),
|
|
1050
|
-
).annotate({
|
|
1051
|
-
identifier: "TemplateVariableInput",
|
|
1052
|
-
}) as any as S.Schema<TemplateVariableInput>;
|
|
974
|
+
).annotate({ identifier: "TemplateVariableInput" }) as any as S.Schema<TemplateVariableInput>;
|
|
1053
975
|
|
|
1054
976
|
export type CreateTemplateRequestVariablesList = Array<TemplateVariableInput>;
|
|
1055
977
|
export const CreateTemplateRequestVariablesList = /*@__PURE__*/ S.Array(
|
|
@@ -1084,9 +1006,7 @@ export const CreateTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1084
1006
|
text: S.optional(S.String),
|
|
1085
1007
|
variables: S.optional(CreateTemplateRequestVariablesList),
|
|
1086
1008
|
}).pipe(T.Http({ method: "POST", uri: "/templates", code: 200 })),
|
|
1087
|
-
).annotate({
|
|
1088
|
-
identifier: "CreateTemplateRequest",
|
|
1089
|
-
}) as any as S.Schema<CreateTemplateRequest>;
|
|
1009
|
+
).annotate({ identifier: "CreateTemplateRequest" }) as any as S.Schema<CreateTemplateRequest>;
|
|
1090
1010
|
|
|
1091
1011
|
export interface CreateTemplateResponseSuccess {
|
|
1092
1012
|
/** The ID of the template. */
|
|
@@ -1128,9 +1048,7 @@ export const CreateTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1128
1048
|
description: S.optional(S.String),
|
|
1129
1049
|
visibility: S.optional(CreateTopicRequestVisibility),
|
|
1130
1050
|
}).pipe(T.Http({ method: "POST", uri: "/topics", code: 200 })),
|
|
1131
|
-
).annotate({
|
|
1132
|
-
identifier: "CreateTopicRequest",
|
|
1133
|
-
}) as any as S.Schema<CreateTopicRequest>;
|
|
1051
|
+
).annotate({ identifier: "CreateTopicRequest" }) as any as S.Schema<CreateTopicRequest>;
|
|
1134
1052
|
|
|
1135
1053
|
export interface CreateTopicResponseSuccess {
|
|
1136
1054
|
/** The ID of the topic. */
|
|
@@ -1164,9 +1082,7 @@ export const CreateWebhookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1164
1082
|
endpoint: S.String,
|
|
1165
1083
|
events: CreateWebhookRequestEventsList,
|
|
1166
1084
|
}).pipe(T.Http({ method: "POST", uri: "/webhooks", code: 200 })),
|
|
1167
|
-
).annotate({
|
|
1168
|
-
identifier: "CreateWebhookRequest",
|
|
1169
|
-
}) as any as S.Schema<CreateWebhookRequest>;
|
|
1085
|
+
).annotate({ identifier: "CreateWebhookRequest" }) as any as S.Schema<CreateWebhookRequest>;
|
|
1170
1086
|
|
|
1171
1087
|
export interface CreateWebhookResponse {
|
|
1172
1088
|
/** The type of object. */
|
|
@@ -1182,9 +1098,7 @@ export const CreateWebhookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1182
1098
|
id: S.optional(S.String),
|
|
1183
1099
|
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
1184
1100
|
}),
|
|
1185
|
-
).annotate({
|
|
1186
|
-
identifier: "CreateWebhookResponse",
|
|
1187
|
-
}) as any as S.Schema<CreateWebhookResponse>;
|
|
1101
|
+
).annotate({ identifier: "CreateWebhookResponse" }) as any as S.Schema<CreateWebhookResponse>;
|
|
1188
1102
|
|
|
1189
1103
|
export interface DeleteApiKeyRequest {
|
|
1190
1104
|
/** The API key ID. */
|
|
@@ -1193,12 +1107,8 @@ export interface DeleteApiKeyRequest {
|
|
|
1193
1107
|
export const DeleteApiKeyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1194
1108
|
S.Struct({
|
|
1195
1109
|
api_key_id: S.String.pipe(T.Label()),
|
|
1196
|
-
}).pipe(
|
|
1197
|
-
|
|
1198
|
-
),
|
|
1199
|
-
).annotate({
|
|
1200
|
-
identifier: "DeleteApiKeyRequest",
|
|
1201
|
-
}) as any as S.Schema<DeleteApiKeyRequest>;
|
|
1110
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/api-keys/{api_key_id}", code: 200 })),
|
|
1111
|
+
).annotate({ identifier: "DeleteApiKeyRequest" }) as any as S.Schema<DeleteApiKeyRequest>;
|
|
1202
1112
|
|
|
1203
1113
|
export interface DeleteApiKeyResponse {
|
|
1204
1114
|
/** The type of object. */
|
|
@@ -1214,9 +1124,7 @@ export const DeleteApiKeyResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1214
1124
|
id: S.optional(S.String),
|
|
1215
1125
|
deleted: S.optional(S.Boolean),
|
|
1216
1126
|
}),
|
|
1217
|
-
).annotate({
|
|
1218
|
-
identifier: "DeleteApiKeyResponse",
|
|
1219
|
-
}) as any as S.Schema<DeleteApiKeyResponse>;
|
|
1127
|
+
).annotate({ identifier: "DeleteApiKeyResponse" }) as any as S.Schema<DeleteApiKeyResponse>;
|
|
1220
1128
|
|
|
1221
1129
|
export interface DeleteAutomationRequest {
|
|
1222
1130
|
/** The ID of the automation. */
|
|
@@ -1225,16 +1133,8 @@ export interface DeleteAutomationRequest {
|
|
|
1225
1133
|
export const DeleteAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1226
1134
|
S.Struct({
|
|
1227
1135
|
automation_id: S.String.pipe(T.Label()),
|
|
1228
|
-
}).pipe(
|
|
1229
|
-
|
|
1230
|
-
method: "DELETE",
|
|
1231
|
-
uri: "/automations/{automation_id}",
|
|
1232
|
-
code: 200,
|
|
1233
|
-
}),
|
|
1234
|
-
),
|
|
1235
|
-
).annotate({
|
|
1236
|
-
identifier: "DeleteAutomationRequest",
|
|
1237
|
-
}) as any as S.Schema<DeleteAutomationRequest>;
|
|
1136
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/automations/{automation_id}", code: 200 })),
|
|
1137
|
+
).annotate({ identifier: "DeleteAutomationRequest" }) as any as S.Schema<DeleteAutomationRequest>;
|
|
1238
1138
|
|
|
1239
1139
|
export interface DeleteAutomationResponse {
|
|
1240
1140
|
/** Type of the response object. */
|
|
@@ -1250,9 +1150,7 @@ export const DeleteAutomationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1250
1150
|
id: S.optional(S.String),
|
|
1251
1151
|
deleted: S.optional(S.Boolean),
|
|
1252
1152
|
}),
|
|
1253
|
-
).annotate({
|
|
1254
|
-
identifier: "DeleteAutomationResponse",
|
|
1255
|
-
}) as any as S.Schema<DeleteAutomationResponse>;
|
|
1153
|
+
).annotate({ identifier: "DeleteAutomationResponse" }) as any as S.Schema<DeleteAutomationResponse>;
|
|
1256
1154
|
|
|
1257
1155
|
export interface DeleteBroadcastRequest {
|
|
1258
1156
|
/** The Broadcast ID. */
|
|
@@ -1262,9 +1160,7 @@ export const DeleteBroadcastRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1262
1160
|
S.Struct({
|
|
1263
1161
|
id: S.String.pipe(T.Label()),
|
|
1264
1162
|
}).pipe(T.Http({ method: "DELETE", uri: "/broadcasts/{id}", code: 200 })),
|
|
1265
|
-
).annotate({
|
|
1266
|
-
identifier: "DeleteBroadcastRequest",
|
|
1267
|
-
}) as any as S.Schema<DeleteBroadcastRequest>;
|
|
1163
|
+
).annotate({ identifier: "DeleteBroadcastRequest" }) as any as S.Schema<DeleteBroadcastRequest>;
|
|
1268
1164
|
|
|
1269
1165
|
export interface RemoveBroadcastResponseSuccess {
|
|
1270
1166
|
/** The ID of the broadcast. */
|
|
@@ -1292,9 +1188,7 @@ export const DeleteContactRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1292
1188
|
S.Struct({
|
|
1293
1189
|
id: S.String.pipe(T.Label()),
|
|
1294
1190
|
}).pipe(T.Http({ method: "DELETE", uri: "/contacts/{id}", code: 200 })),
|
|
1295
|
-
).annotate({
|
|
1296
|
-
identifier: "DeleteContactRequest",
|
|
1297
|
-
}) as any as S.Schema<DeleteContactRequest>;
|
|
1191
|
+
).annotate({ identifier: "DeleteContactRequest" }) as any as S.Schema<DeleteContactRequest>;
|
|
1298
1192
|
|
|
1299
1193
|
export interface RemoveContactResponseSuccess {
|
|
1300
1194
|
/** Type of the response object. */
|
|
@@ -1321,9 +1215,7 @@ export interface DeleteContactPropertyRequest {
|
|
|
1321
1215
|
export const DeleteContactPropertyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1322
1216
|
S.Struct({
|
|
1323
1217
|
id: S.String.pipe(T.Label()),
|
|
1324
|
-
}).pipe(
|
|
1325
|
-
T.Http({ method: "DELETE", uri: "/contact-properties/{id}", code: 200 }),
|
|
1326
|
-
),
|
|
1218
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/contact-properties/{id}", code: 200 })),
|
|
1327
1219
|
).annotate({
|
|
1328
1220
|
identifier: "DeleteContactPropertyRequest",
|
|
1329
1221
|
}) as any as S.Schema<DeleteContactPropertyRequest>;
|
|
@@ -1336,13 +1228,12 @@ export interface RemoveContactPropertyResponseSuccess {
|
|
|
1336
1228
|
/** Indicates whether the contact property was successfully deleted. */
|
|
1337
1229
|
deleted?: boolean;
|
|
1338
1230
|
}
|
|
1339
|
-
export const RemoveContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(
|
|
1340
|
-
(
|
|
1341
|
-
S.
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
}),
|
|
1231
|
+
export const RemoveContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
1232
|
+
S.Struct({
|
|
1233
|
+
id: S.optional(S.String),
|
|
1234
|
+
object: S.optional(S.String),
|
|
1235
|
+
deleted: S.optional(S.Boolean),
|
|
1236
|
+
}),
|
|
1346
1237
|
).annotate({
|
|
1347
1238
|
identifier: "RemoveContactPropertyResponseSuccess",
|
|
1348
1239
|
}) as any as S.Schema<RemoveContactPropertyResponseSuccess>;
|
|
@@ -1358,11 +1249,7 @@ export const DeleteContactSegmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1358
1249
|
contact_id: S.String.pipe(T.Label()),
|
|
1359
1250
|
segment_id: S.String.pipe(T.Label()),
|
|
1360
1251
|
}).pipe(
|
|
1361
|
-
T.Http({
|
|
1362
|
-
method: "DELETE",
|
|
1363
|
-
uri: "/contacts/{contact_id}/segments/{segment_id}",
|
|
1364
|
-
code: 200,
|
|
1365
|
-
}),
|
|
1252
|
+
T.Http({ method: "DELETE", uri: "/contacts/{contact_id}/segments/{segment_id}", code: 200 }),
|
|
1366
1253
|
),
|
|
1367
1254
|
).annotate({
|
|
1368
1255
|
identifier: "DeleteContactSegmentRequest",
|
|
@@ -1378,14 +1265,13 @@ export interface RemoveContactFromSegmentResponseSuccess {
|
|
|
1378
1265
|
/** Indicates whether the contact was successfully removed from the segment. */
|
|
1379
1266
|
deleted?: boolean;
|
|
1380
1267
|
}
|
|
1381
|
-
export const RemoveContactFromSegmentResponseSuccess = /*@__PURE__*/ S.suspend(
|
|
1382
|
-
(
|
|
1383
|
-
S.
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
}),
|
|
1268
|
+
export const RemoveContactFromSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
1269
|
+
S.Struct({
|
|
1270
|
+
object: S.optional(S.String),
|
|
1271
|
+
contact_id: S.optional(S.String),
|
|
1272
|
+
segment_id: S.optional(S.String),
|
|
1273
|
+
deleted: S.optional(S.Boolean),
|
|
1274
|
+
}),
|
|
1389
1275
|
).annotate({
|
|
1390
1276
|
identifier: "RemoveContactFromSegmentResponseSuccess",
|
|
1391
1277
|
}) as any as S.Schema<RemoveContactFromSegmentResponseSuccess>;
|
|
@@ -1398,9 +1284,7 @@ export const DeleteDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1398
1284
|
S.Struct({
|
|
1399
1285
|
domain_id: S.String.pipe(T.Label()),
|
|
1400
1286
|
}).pipe(T.Http({ method: "DELETE", uri: "/domains/{domain_id}", code: 200 })),
|
|
1401
|
-
).annotate({
|
|
1402
|
-
identifier: "DeleteDomainRequest",
|
|
1403
|
-
}) as any as S.Schema<DeleteDomainRequest>;
|
|
1287
|
+
).annotate({ identifier: "DeleteDomainRequest" }) as any as S.Schema<DeleteDomainRequest>;
|
|
1404
1288
|
|
|
1405
1289
|
export interface DeleteDomainResponse {
|
|
1406
1290
|
/** The type of object. */
|
|
@@ -1416,9 +1300,7 @@ export const DeleteDomainResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1416
1300
|
id: S.optional(S.String),
|
|
1417
1301
|
deleted: S.optional(S.Boolean),
|
|
1418
1302
|
}),
|
|
1419
|
-
).annotate({
|
|
1420
|
-
identifier: "DeleteDomainResponse",
|
|
1421
|
-
}) as any as S.Schema<DeleteDomainResponse>;
|
|
1303
|
+
).annotate({ identifier: "DeleteDomainResponse" }) as any as S.Schema<DeleteDomainResponse>;
|
|
1422
1304
|
|
|
1423
1305
|
export interface DeleteEventRequest {
|
|
1424
1306
|
/** The event ID (UUID) or event name. */
|
|
@@ -1428,9 +1310,7 @@ export const DeleteEventRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1428
1310
|
S.Struct({
|
|
1429
1311
|
identifier: S.String.pipe(T.Label()),
|
|
1430
1312
|
}).pipe(T.Http({ method: "DELETE", uri: "/events/{identifier}", code: 200 })),
|
|
1431
|
-
).annotate({
|
|
1432
|
-
identifier: "DeleteEventRequest",
|
|
1433
|
-
}) as any as S.Schema<DeleteEventRequest>;
|
|
1313
|
+
).annotate({ identifier: "DeleteEventRequest" }) as any as S.Schema<DeleteEventRequest>;
|
|
1434
1314
|
|
|
1435
1315
|
export interface RemoveEventResponse {
|
|
1436
1316
|
/** Type of the response object. */
|
|
@@ -1446,9 +1326,7 @@ export const RemoveEventResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1446
1326
|
id: S.optional(S.String),
|
|
1447
1327
|
deleted: S.optional(S.Boolean),
|
|
1448
1328
|
}),
|
|
1449
|
-
).annotate({
|
|
1450
|
-
identifier: "RemoveEventResponse",
|
|
1451
|
-
}) as any as S.Schema<RemoveEventResponse>;
|
|
1329
|
+
).annotate({ identifier: "RemoveEventResponse" }) as any as S.Schema<RemoveEventResponse>;
|
|
1452
1330
|
|
|
1453
1331
|
export interface DeleteSegmentRequest {
|
|
1454
1332
|
/** The Segment ID. */
|
|
@@ -1458,9 +1336,7 @@ export const DeleteSegmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1458
1336
|
S.Struct({
|
|
1459
1337
|
id: S.String.pipe(T.Label()),
|
|
1460
1338
|
}).pipe(T.Http({ method: "DELETE", uri: "/segments/{id}", code: 200 })),
|
|
1461
|
-
).annotate({
|
|
1462
|
-
identifier: "DeleteSegmentRequest",
|
|
1463
|
-
}) as any as S.Schema<DeleteSegmentRequest>;
|
|
1339
|
+
).annotate({ identifier: "DeleteSegmentRequest" }) as any as S.Schema<DeleteSegmentRequest>;
|
|
1464
1340
|
|
|
1465
1341
|
export interface RemoveSegmentResponseSuccess {
|
|
1466
1342
|
/** The ID of the segment. */
|
|
@@ -1488,9 +1364,7 @@ export const DeleteTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1488
1364
|
S.Struct({
|
|
1489
1365
|
id: S.String.pipe(T.Label()),
|
|
1490
1366
|
}).pipe(T.Http({ method: "DELETE", uri: "/templates/{id}", code: 200 })),
|
|
1491
|
-
).annotate({
|
|
1492
|
-
identifier: "DeleteTemplateRequest",
|
|
1493
|
-
}) as any as S.Schema<DeleteTemplateRequest>;
|
|
1367
|
+
).annotate({ identifier: "DeleteTemplateRequest" }) as any as S.Schema<DeleteTemplateRequest>;
|
|
1494
1368
|
|
|
1495
1369
|
export interface RemoveTemplateResponseSuccess {
|
|
1496
1370
|
/** Type of the response object. */
|
|
@@ -1518,9 +1392,7 @@ export const DeleteTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1518
1392
|
S.Struct({
|
|
1519
1393
|
id: S.String.pipe(T.Label()),
|
|
1520
1394
|
}).pipe(T.Http({ method: "DELETE", uri: "/topics/{id}", code: 200 })),
|
|
1521
|
-
).annotate({
|
|
1522
|
-
identifier: "DeleteTopicRequest",
|
|
1523
|
-
}) as any as S.Schema<DeleteTopicRequest>;
|
|
1395
|
+
).annotate({ identifier: "DeleteTopicRequest" }) as any as S.Schema<DeleteTopicRequest>;
|
|
1524
1396
|
|
|
1525
1397
|
export interface RemoveTopicResponseSuccess {
|
|
1526
1398
|
/** The ID of the topic. */
|
|
@@ -1547,12 +1419,8 @@ export interface DeleteWebhookRequest {
|
|
|
1547
1419
|
export const DeleteWebhookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1548
1420
|
S.Struct({
|
|
1549
1421
|
webhook_id: S.String.pipe(T.Label()),
|
|
1550
|
-
}).pipe(
|
|
1551
|
-
|
|
1552
|
-
),
|
|
1553
|
-
).annotate({
|
|
1554
|
-
identifier: "DeleteWebhookRequest",
|
|
1555
|
-
}) as any as S.Schema<DeleteWebhookRequest>;
|
|
1422
|
+
}).pipe(T.Http({ method: "DELETE", uri: "/webhooks/{webhook_id}", code: 200 })),
|
|
1423
|
+
).annotate({ identifier: "DeleteWebhookRequest" }) as any as S.Schema<DeleteWebhookRequest>;
|
|
1556
1424
|
|
|
1557
1425
|
export interface DeleteWebhookResponse {
|
|
1558
1426
|
/** The type of object. */
|
|
@@ -1568,9 +1436,7 @@ export const DeleteWebhookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1568
1436
|
id: S.optional(S.String),
|
|
1569
1437
|
deleted: S.optional(S.Boolean),
|
|
1570
1438
|
}),
|
|
1571
|
-
).annotate({
|
|
1572
|
-
identifier: "DeleteWebhookResponse",
|
|
1573
|
-
}) as any as S.Schema<DeleteWebhookResponse>;
|
|
1439
|
+
).annotate({ identifier: "DeleteWebhookResponse" }) as any as S.Schema<DeleteWebhookResponse>;
|
|
1574
1440
|
|
|
1575
1441
|
export interface DuplicateTemplateRequest {
|
|
1576
1442
|
/** The Template ID or alias. */
|
|
@@ -1579,12 +1445,8 @@ export interface DuplicateTemplateRequest {
|
|
|
1579
1445
|
export const DuplicateTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1580
1446
|
S.Struct({
|
|
1581
1447
|
id: S.String.pipe(T.Label()),
|
|
1582
|
-
}).pipe(
|
|
1583
|
-
|
|
1584
|
-
),
|
|
1585
|
-
).annotate({
|
|
1586
|
-
identifier: "DuplicateTemplateRequest",
|
|
1587
|
-
}) as any as S.Schema<DuplicateTemplateRequest>;
|
|
1448
|
+
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/duplicate", code: 200 })),
|
|
1449
|
+
).annotate({ identifier: "DuplicateTemplateRequest" }) as any as S.Schema<DuplicateTemplateRequest>;
|
|
1588
1450
|
|
|
1589
1451
|
export interface DuplicateTemplateResponseSuccess {
|
|
1590
1452
|
/** The ID of the duplicated template. */
|
|
@@ -1608,12 +1470,8 @@ export interface GetAutomationRequest {
|
|
|
1608
1470
|
export const GetAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1609
1471
|
S.Struct({
|
|
1610
1472
|
automation_id: S.String.pipe(T.Label()),
|
|
1611
|
-
}).pipe(
|
|
1612
|
-
|
|
1613
|
-
),
|
|
1614
|
-
).annotate({
|
|
1615
|
-
identifier: "GetAutomationRequest",
|
|
1616
|
-
}) as any as S.Schema<GetAutomationRequest>;
|
|
1473
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}", code: 200 })),
|
|
1474
|
+
).annotate({ identifier: "GetAutomationRequest" }) as any as S.Schema<GetAutomationRequest>;
|
|
1617
1475
|
|
|
1618
1476
|
/** The current status of the automation. */
|
|
1619
1477
|
export type AutomationStatus = "enabled" | "disabled";
|
|
@@ -1646,9 +1504,7 @@ export const AutomationStepResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1646
1504
|
type: S.optional(AutomationStepResponseType),
|
|
1647
1505
|
config: S.optional(S.Unknown),
|
|
1648
1506
|
}),
|
|
1649
|
-
).annotate({
|
|
1650
|
-
identifier: "AutomationStepResponse",
|
|
1651
|
-
}) as any as S.Schema<AutomationStepResponse>;
|
|
1507
|
+
).annotate({ identifier: "AutomationStepResponse" }) as any as S.Schema<AutomationStepResponse>;
|
|
1652
1508
|
|
|
1653
1509
|
/** The steps in the active version of the automation. */
|
|
1654
1510
|
export type AutomationStepsList = Array<AutomationStepResponse>;
|
|
@@ -1703,23 +1559,11 @@ export const GetAutomationRunRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1703
1559
|
S.Struct({
|
|
1704
1560
|
automation_id: S.String.pipe(T.Label()),
|
|
1705
1561
|
run_id: S.String.pipe(T.Label()),
|
|
1706
|
-
}).pipe(
|
|
1707
|
-
|
|
1708
|
-
method: "GET",
|
|
1709
|
-
uri: "/automations/{automation_id}/runs/{run_id}",
|
|
1710
|
-
code: 200,
|
|
1711
|
-
}),
|
|
1712
|
-
),
|
|
1713
|
-
).annotate({
|
|
1714
|
-
identifier: "GetAutomationRunRequest",
|
|
1715
|
-
}) as any as S.Schema<GetAutomationRunRequest>;
|
|
1562
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}/runs/{run_id}", code: 200 })),
|
|
1563
|
+
).annotate({ identifier: "GetAutomationRunRequest" }) as any as S.Schema<GetAutomationRunRequest>;
|
|
1716
1564
|
|
|
1717
1565
|
/** The current status of the automation run. */
|
|
1718
|
-
export type AutomationRunStatus =
|
|
1719
|
-
| "running"
|
|
1720
|
-
| "completed"
|
|
1721
|
-
| "failed"
|
|
1722
|
-
| "cancelled";
|
|
1566
|
+
export type AutomationRunStatus = "running" | "completed" | "failed" | "cancelled";
|
|
1723
1567
|
export const AutomationRunStatus = S.String;
|
|
1724
1568
|
|
|
1725
1569
|
/** The type of automation step. */
|
|
@@ -1764,9 +1608,7 @@ export const AutomationRunStep = /*@__PURE__*/ S.suspend(() =>
|
|
|
1764
1608
|
error: S.optional(S.NullOr(S.Unknown)),
|
|
1765
1609
|
created_at: S.optional(S.String),
|
|
1766
1610
|
}),
|
|
1767
|
-
).annotate({
|
|
1768
|
-
identifier: "AutomationRunStep",
|
|
1769
|
-
}) as any as S.Schema<AutomationRunStep>;
|
|
1611
|
+
).annotate({ identifier: "AutomationRunStep" }) as any as S.Schema<AutomationRunStep>;
|
|
1770
1612
|
|
|
1771
1613
|
/** The steps executed in this run, sorted in graph order. */
|
|
1772
1614
|
export type AutomationRunStepsList = Array<AutomationRunStep>;
|
|
@@ -1810,9 +1652,7 @@ export const GetBroadcastRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1810
1652
|
S.Struct({
|
|
1811
1653
|
id: S.String.pipe(T.Label()),
|
|
1812
1654
|
}).pipe(T.Http({ method: "GET", uri: "/broadcasts/{id}", code: 200 })),
|
|
1813
|
-
).annotate({
|
|
1814
|
-
identifier: "GetBroadcastRequest",
|
|
1815
|
-
}) as any as S.Schema<GetBroadcastRequest>;
|
|
1655
|
+
).annotate({ identifier: "GetBroadcastRequest" }) as any as S.Schema<GetBroadcastRequest>;
|
|
1816
1656
|
|
|
1817
1657
|
/** The email addresses to which replies should be sent. */
|
|
1818
1658
|
export type GetBroadcastResponseSuccessReplyToList = Array<string>;
|
|
@@ -1882,14 +1722,10 @@ export const GetContactRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1882
1722
|
S.Struct({
|
|
1883
1723
|
id: S.String.pipe(T.Label()),
|
|
1884
1724
|
}).pipe(T.Http({ method: "GET", uri: "/contacts/{id}", code: 200 })),
|
|
1885
|
-
).annotate({
|
|
1886
|
-
identifier: "GetContactRequest",
|
|
1887
|
-
}) as any as S.Schema<GetContactRequest>;
|
|
1725
|
+
).annotate({ identifier: "GetContactRequest" }) as any as S.Schema<GetContactRequest>;
|
|
1888
1726
|
|
|
1889
1727
|
/** A map of custom property keys and values. */
|
|
1890
|
-
export type GetContactResponseSuccessPropertiesMap = {
|
|
1891
|
-
[key: string]: unknown | undefined;
|
|
1892
|
-
};
|
|
1728
|
+
export type GetContactResponseSuccessPropertiesMap = { [key: string]: unknown | undefined };
|
|
1893
1729
|
export const GetContactResponseSuccessPropertiesMap = /*@__PURE__*/ S.Record(
|
|
1894
1730
|
S.String,
|
|
1895
1731
|
S.Unknown,
|
|
@@ -1935,9 +1771,7 @@ export interface GetContactPropertyRequest {
|
|
|
1935
1771
|
export const GetContactPropertyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1936
1772
|
S.Struct({
|
|
1937
1773
|
id: S.String.pipe(T.Label()),
|
|
1938
|
-
}).pipe(
|
|
1939
|
-
T.Http({ method: "GET", uri: "/contact-properties/{id}", code: 200 }),
|
|
1940
|
-
),
|
|
1774
|
+
}).pipe(T.Http({ method: "GET", uri: "/contact-properties/{id}", code: 200 })),
|
|
1941
1775
|
).annotate({
|
|
1942
1776
|
identifier: "GetContactPropertyRequest",
|
|
1943
1777
|
}) as any as S.Schema<GetContactPropertyRequest>;
|
|
@@ -1982,9 +1816,7 @@ export const GetDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1982
1816
|
S.Struct({
|
|
1983
1817
|
domain_id: S.String.pipe(T.Label()),
|
|
1984
1818
|
}).pipe(T.Http({ method: "GET", uri: "/domains/{domain_id}", code: 200 })),
|
|
1985
|
-
).annotate({
|
|
1986
|
-
identifier: "GetDomainRequest",
|
|
1987
|
-
}) as any as S.Schema<GetDomainRequest>;
|
|
1819
|
+
).annotate({ identifier: "GetDomainRequest" }) as any as S.Schema<GetDomainRequest>;
|
|
1988
1820
|
|
|
1989
1821
|
export type DomainRecordsList = Array<DomainRecord>;
|
|
1990
1822
|
export const DomainRecordsList = /*@__PURE__*/ S.Array(
|
|
@@ -2037,9 +1869,7 @@ export const GetEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2037
1869
|
S.Struct({
|
|
2038
1870
|
email_id: S.String.pipe(T.Label()),
|
|
2039
1871
|
}).pipe(T.Http({ method: "GET", uri: "/emails/{email_id}", code: 200 })),
|
|
2040
|
-
).annotate({
|
|
2041
|
-
identifier: "GetEmailRequest",
|
|
2042
|
-
}) as any as S.Schema<GetEmailRequest>;
|
|
1872
|
+
).annotate({ identifier: "GetEmailRequest" }) as any as S.Schema<GetEmailRequest>;
|
|
2043
1873
|
|
|
2044
1874
|
export interface GetEmailAttachmentRequest {
|
|
2045
1875
|
/** The ID of the email. */
|
|
@@ -2052,11 +1882,7 @@ export const GetEmailAttachmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2052
1882
|
email_id: S.String.pipe(T.Label()),
|
|
2053
1883
|
attachment_id: S.String.pipe(T.Label()),
|
|
2054
1884
|
}).pipe(
|
|
2055
|
-
T.Http({
|
|
2056
|
-
method: "GET",
|
|
2057
|
-
uri: "/emails/{email_id}/attachments/{attachment_id}",
|
|
2058
|
-
code: 200,
|
|
2059
|
-
}),
|
|
1885
|
+
T.Http({ method: "GET", uri: "/emails/{email_id}/attachments/{attachment_id}", code: 200 }),
|
|
2060
1886
|
),
|
|
2061
1887
|
).annotate({
|
|
2062
1888
|
identifier: "GetEmailAttachmentRequest",
|
|
@@ -2098,9 +1924,7 @@ export const RetrievedAttachment = /*@__PURE__*/ S.suspend(() =>
|
|
|
2098
1924
|
expires_at: S.optional(S.String),
|
|
2099
1925
|
size: S.optional(S.Number),
|
|
2100
1926
|
}),
|
|
2101
|
-
).annotate({
|
|
2102
|
-
identifier: "RetrievedAttachment",
|
|
2103
|
-
}) as any as S.Schema<RetrievedAttachment>;
|
|
1927
|
+
).annotate({ identifier: "RetrievedAttachment" }) as any as S.Schema<RetrievedAttachment>;
|
|
2104
1928
|
|
|
2105
1929
|
export interface GetEmailReceivingRequest {
|
|
2106
1930
|
/** The ID of the received email. */
|
|
@@ -2109,12 +1933,8 @@ export interface GetEmailReceivingRequest {
|
|
|
2109
1933
|
export const GetEmailReceivingRequest = /*@__PURE__*/ S.suspend(() =>
|
|
2110
1934
|
S.Struct({
|
|
2111
1935
|
email_id: S.String.pipe(T.Label()),
|
|
2112
|
-
}).pipe(
|
|
2113
|
-
|
|
2114
|
-
),
|
|
2115
|
-
).annotate({
|
|
2116
|
-
identifier: "GetEmailReceivingRequest",
|
|
2117
|
-
}) as any as S.Schema<GetEmailReceivingRequest>;
|
|
1936
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/receiving/{email_id}", code: 200 })),
|
|
1937
|
+
).annotate({ identifier: "GetEmailReceivingRequest" }) as any as S.Schema<GetEmailReceivingRequest>;
|
|
2118
1938
|
|
|
2119
1939
|
/** The recipient email addresses. */
|
|
2120
1940
|
export type GetReceivedEmailResponseToList = Array<string>;
|
|
@@ -2141,11 +1961,8 @@ export const GetReceivedEmailResponseReplyToList = /*@__PURE__*/ S.Array(
|
|
|
2141
1961
|
) as any as S.Schema<GetReceivedEmailResponseReplyToList>;
|
|
2142
1962
|
|
|
2143
1963
|
/** How the attachment should be displayed. */
|
|
2144
|
-
export type GetReceivedEmailResponseAttachmentsItemContentDisposition =
|
|
2145
|
-
|
|
2146
|
-
| "attachment";
|
|
2147
|
-
export const GetReceivedEmailResponseAttachmentsItemContentDisposition =
|
|
2148
|
-
S.String;
|
|
1964
|
+
export type GetReceivedEmailResponseAttachmentsItemContentDisposition = "inline" | "attachment";
|
|
1965
|
+
export const GetReceivedEmailResponseAttachmentsItemContentDisposition = S.String;
|
|
2149
1966
|
|
|
2150
1967
|
export interface GetReceivedEmailResponseAttachmentsItem {
|
|
2151
1968
|
/** The ID of the attachment. */
|
|
@@ -2161,18 +1978,15 @@ export interface GetReceivedEmailResponseAttachmentsItem {
|
|
|
2161
1978
|
/** Size of the attachment in bytes. */
|
|
2162
1979
|
size?: number;
|
|
2163
1980
|
}
|
|
2164
|
-
export const GetReceivedEmailResponseAttachmentsItem = /*@__PURE__*/ S.suspend(
|
|
2165
|
-
(
|
|
2166
|
-
S.
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
),
|
|
2174
|
-
size: S.optional(S.Number),
|
|
2175
|
-
}),
|
|
1981
|
+
export const GetReceivedEmailResponseAttachmentsItem = /*@__PURE__*/ S.suspend(() =>
|
|
1982
|
+
S.Struct({
|
|
1983
|
+
id: S.optional(S.String),
|
|
1984
|
+
filename: S.optional(S.String),
|
|
1985
|
+
content_type: S.optional(S.String),
|
|
1986
|
+
content_id: S.optional(S.String),
|
|
1987
|
+
content_disposition: S.optional(GetReceivedEmailResponseAttachmentsItemContentDisposition),
|
|
1988
|
+
size: S.optional(S.Number),
|
|
1989
|
+
}),
|
|
2176
1990
|
).annotate({
|
|
2177
1991
|
identifier: "GetReceivedEmailResponseAttachmentsItem",
|
|
2178
1992
|
}) as any as S.Schema<GetReceivedEmailResponseAttachmentsItem>;
|
|
@@ -2231,9 +2045,7 @@ export const GetReceivedEmailResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2231
2045
|
created_at: S.optional(S.String),
|
|
2232
2046
|
attachments: S.optional(GetReceivedEmailResponseAttachmentsList),
|
|
2233
2047
|
}),
|
|
2234
|
-
).annotate({
|
|
2235
|
-
identifier: "GetReceivedEmailResponse",
|
|
2236
|
-
}) as any as S.Schema<GetReceivedEmailResponse>;
|
|
2048
|
+
).annotate({ identifier: "GetReceivedEmailResponse" }) as any as S.Schema<GetReceivedEmailResponse>;
|
|
2237
2049
|
|
|
2238
2050
|
export interface GetEmailReceivingAttachmentRequest {
|
|
2239
2051
|
/** The ID of the received email. */
|
|
@@ -2264,9 +2076,7 @@ export const GetEventRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2264
2076
|
S.Struct({
|
|
2265
2077
|
identifier: S.String.pipe(T.Label()),
|
|
2266
2078
|
}).pipe(T.Http({ method: "GET", uri: "/events/{identifier}", code: 200 })),
|
|
2267
|
-
).annotate({
|
|
2268
|
-
identifier: "GetEventRequest",
|
|
2269
|
-
}) as any as S.Schema<GetEventRequest>;
|
|
2079
|
+
).annotate({ identifier: "GetEventRequest" }) as any as S.Schema<GetEventRequest>;
|
|
2270
2080
|
|
|
2271
2081
|
export interface Event {
|
|
2272
2082
|
/** Type of the response object. */
|
|
@@ -2349,9 +2159,7 @@ export const GetSegmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2349
2159
|
S.Struct({
|
|
2350
2160
|
id: S.String.pipe(T.Label()),
|
|
2351
2161
|
}).pipe(T.Http({ method: "GET", uri: "/segments/{id}", code: 200 })),
|
|
2352
|
-
).annotate({
|
|
2353
|
-
identifier: "GetSegmentRequest",
|
|
2354
|
-
}) as any as S.Schema<GetSegmentRequest>;
|
|
2162
|
+
).annotate({ identifier: "GetSegmentRequest" }) as any as S.Schema<GetSegmentRequest>;
|
|
2355
2163
|
|
|
2356
2164
|
export interface GetSegmentResponseSuccess {
|
|
2357
2165
|
/** The ID of the segment. */
|
|
@@ -2388,9 +2196,7 @@ export const GetTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2388
2196
|
S.Struct({
|
|
2389
2197
|
id: S.String.pipe(T.Label()),
|
|
2390
2198
|
}).pipe(T.Http({ method: "GET", uri: "/templates/{id}", code: 200 })),
|
|
2391
|
-
).annotate({
|
|
2392
|
-
identifier: "GetTemplateRequest",
|
|
2393
|
-
}) as any as S.Schema<GetTemplateRequest>;
|
|
2199
|
+
).annotate({ identifier: "GetTemplateRequest" }) as any as S.Schema<GetTemplateRequest>;
|
|
2394
2200
|
|
|
2395
2201
|
/** Reply-to email addresses. */
|
|
2396
2202
|
export type TemplateReplyToList = Array<string>;
|
|
@@ -2399,12 +2205,7 @@ export const TemplateReplyToList = /*@__PURE__*/ S.Array(
|
|
|
2399
2205
|
) as any as S.Schema<TemplateReplyToList>;
|
|
2400
2206
|
|
|
2401
2207
|
/** The type of the variable. */
|
|
2402
|
-
export type TemplateVariableType =
|
|
2403
|
-
| "string"
|
|
2404
|
-
| "number"
|
|
2405
|
-
| "boolean"
|
|
2406
|
-
| "object"
|
|
2407
|
-
| "list";
|
|
2208
|
+
export type TemplateVariableType = "string" | "number" | "boolean" | "object" | "list";
|
|
2408
2209
|
export const TemplateVariableType = S.String;
|
|
2409
2210
|
|
|
2410
2211
|
export type TemplateVariableFallbackValueCase4List = Array<unknown>;
|
|
@@ -2445,9 +2246,7 @@ export const TemplateVariable = /*@__PURE__*/ S.suspend(() =>
|
|
|
2445
2246
|
created_at: S.optional(S.String),
|
|
2446
2247
|
updated_at: S.optional(S.String),
|
|
2447
2248
|
}),
|
|
2448
|
-
).annotate({
|
|
2449
|
-
identifier: "TemplateVariable",
|
|
2450
|
-
}) as any as S.Schema<TemplateVariable>;
|
|
2249
|
+
).annotate({ identifier: "TemplateVariable" }) as any as S.Schema<TemplateVariable>;
|
|
2451
2250
|
|
|
2452
2251
|
export type TemplateVariablesList = Array<TemplateVariable>;
|
|
2453
2252
|
export const TemplateVariablesList = /*@__PURE__*/ S.Array(
|
|
@@ -2520,9 +2319,7 @@ export const GetTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2520
2319
|
S.Struct({
|
|
2521
2320
|
id: S.String.pipe(T.Label()),
|
|
2522
2321
|
}).pipe(T.Http({ method: "GET", uri: "/topics/{id}", code: 200 })),
|
|
2523
|
-
).annotate({
|
|
2524
|
-
identifier: "GetTopicRequest",
|
|
2525
|
-
}) as any as S.Schema<GetTopicRequest>;
|
|
2322
|
+
).annotate({ identifier: "GetTopicRequest" }) as any as S.Schema<GetTopicRequest>;
|
|
2526
2323
|
|
|
2527
2324
|
/** The default subscription status for the topic. */
|
|
2528
2325
|
export type GetTopicResponseSuccessDefaultSubscription = "opt_in" | "opt_out";
|
|
@@ -2554,15 +2351,11 @@ export const GetTopicResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
|
2554
2351
|
object: S.optional(S.String),
|
|
2555
2352
|
name: S.optional(S.String),
|
|
2556
2353
|
description: S.optional(S.String),
|
|
2557
|
-
default_subscription: S.optional(
|
|
2558
|
-
GetTopicResponseSuccessDefaultSubscription,
|
|
2559
|
-
),
|
|
2354
|
+
default_subscription: S.optional(GetTopicResponseSuccessDefaultSubscription),
|
|
2560
2355
|
visibility: S.optional(GetTopicResponseSuccessVisibility),
|
|
2561
2356
|
created_at: S.optional(S.String),
|
|
2562
2357
|
}),
|
|
2563
|
-
).annotate({
|
|
2564
|
-
identifier: "GetTopicResponseSuccess",
|
|
2565
|
-
}) as any as S.Schema<GetTopicResponseSuccess>;
|
|
2358
|
+
).annotate({ identifier: "GetTopicResponseSuccess" }) as any as S.Schema<GetTopicResponseSuccess>;
|
|
2566
2359
|
|
|
2567
2360
|
export interface GetWebhookRequest {
|
|
2568
2361
|
/** The Webhook ID. */
|
|
@@ -2572,9 +2365,7 @@ export const GetWebhookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2572
2365
|
S.Struct({
|
|
2573
2366
|
webhook_id: S.String.pipe(T.Label()),
|
|
2574
2367
|
}).pipe(T.Http({ method: "GET", uri: "/webhooks/{webhook_id}", code: 200 })),
|
|
2575
|
-
).annotate({
|
|
2576
|
-
identifier: "GetWebhookRequest",
|
|
2577
|
-
}) as any as S.Schema<GetWebhookRequest>;
|
|
2368
|
+
).annotate({ identifier: "GetWebhookRequest" }) as any as S.Schema<GetWebhookRequest>;
|
|
2578
2369
|
|
|
2579
2370
|
/** Array of event types subscribed to. */
|
|
2580
2371
|
export type GetWebhookResponseEventsList = Array<string>;
|
|
@@ -2608,9 +2399,7 @@ export const GetWebhookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2608
2399
|
created_at: S.optional(S.String),
|
|
2609
2400
|
signing_secret: S.optional(S.String.pipe(T.SensitiveValue({}))),
|
|
2610
2401
|
}),
|
|
2611
|
-
).annotate({
|
|
2612
|
-
identifier: "GetWebhookResponse",
|
|
2613
|
-
}) as any as S.Schema<GetWebhookResponse>;
|
|
2402
|
+
).annotate({ identifier: "GetWebhookResponse" }) as any as S.Schema<GetWebhookResponse>;
|
|
2614
2403
|
|
|
2615
2404
|
export interface ListApiKeysRequest {
|
|
2616
2405
|
/** Number of items to return. */
|
|
@@ -2626,9 +2415,7 @@ export const ListApiKeysRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2626
2415
|
after: S.optional(S.String.pipe(T.Query())),
|
|
2627
2416
|
before: S.optional(S.String.pipe(T.Query())),
|
|
2628
2417
|
}).pipe(T.Http({ method: "GET", uri: "/api-keys", code: 200 })),
|
|
2629
|
-
).annotate({
|
|
2630
|
-
identifier: "ListApiKeysRequest",
|
|
2631
|
-
}) as any as S.Schema<ListApiKeysRequest>;
|
|
2418
|
+
).annotate({ identifier: "ListApiKeysRequest" }) as any as S.Schema<ListApiKeysRequest>;
|
|
2632
2419
|
|
|
2633
2420
|
export interface ApiKey {
|
|
2634
2421
|
/** The ID of the API key. */
|
|
@@ -2667,9 +2454,7 @@ export const ListApiKeysResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2667
2454
|
has_more: S.optional(S.Boolean),
|
|
2668
2455
|
data: ListApiKeysResponseDataList,
|
|
2669
2456
|
}),
|
|
2670
|
-
).annotate({
|
|
2671
|
-
identifier: "ListApiKeysResponse",
|
|
2672
|
-
}) as any as S.Schema<ListApiKeysResponse>;
|
|
2457
|
+
).annotate({ identifier: "ListApiKeysResponse" }) as any as S.Schema<ListApiKeysResponse>;
|
|
2673
2458
|
|
|
2674
2459
|
export interface ListAutomationRunsRequest {
|
|
2675
2460
|
/** The ID of the automation. */
|
|
@@ -2690,23 +2475,13 @@ export const ListAutomationRunsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2690
2475
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
2691
2476
|
after: S.optional(S.String.pipe(T.Query())),
|
|
2692
2477
|
before: S.optional(S.String.pipe(T.Query())),
|
|
2693
|
-
}).pipe(
|
|
2694
|
-
T.Http({
|
|
2695
|
-
method: "GET",
|
|
2696
|
-
uri: "/automations/{automation_id}/runs",
|
|
2697
|
-
code: 200,
|
|
2698
|
-
}),
|
|
2699
|
-
),
|
|
2478
|
+
}).pipe(T.Http({ method: "GET", uri: "/automations/{automation_id}/runs", code: 200 })),
|
|
2700
2479
|
).annotate({
|
|
2701
2480
|
identifier: "ListAutomationRunsRequest",
|
|
2702
2481
|
}) as any as S.Schema<ListAutomationRunsRequest>;
|
|
2703
2482
|
|
|
2704
2483
|
/** The current status of the automation run. */
|
|
2705
|
-
export type AutomationRunListItemStatus =
|
|
2706
|
-
| "running"
|
|
2707
|
-
| "completed"
|
|
2708
|
-
| "failed"
|
|
2709
|
-
| "cancelled";
|
|
2484
|
+
export type AutomationRunListItemStatus = "running" | "completed" | "failed" | "cancelled";
|
|
2710
2485
|
export const AutomationRunListItemStatus = S.String;
|
|
2711
2486
|
|
|
2712
2487
|
export interface AutomationRunListItem {
|
|
@@ -2729,9 +2504,7 @@ export const AutomationRunListItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
2729
2504
|
completed_at: S.optional(S.NullOr(S.String)),
|
|
2730
2505
|
created_at: S.optional(S.String),
|
|
2731
2506
|
}),
|
|
2732
|
-
).annotate({
|
|
2733
|
-
identifier: "AutomationRunListItem",
|
|
2734
|
-
}) as any as S.Schema<AutomationRunListItem>;
|
|
2507
|
+
).annotate({ identifier: "AutomationRunListItem" }) as any as S.Schema<AutomationRunListItem>;
|
|
2735
2508
|
|
|
2736
2509
|
/** Array of automation runs. */
|
|
2737
2510
|
export type ListAutomationRunsResponseDataList = Array<AutomationRunListItem>;
|
|
@@ -2777,9 +2550,7 @@ export const ListAutomationsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2777
2550
|
after: S.optional(S.String.pipe(T.Query())),
|
|
2778
2551
|
before: S.optional(S.String.pipe(T.Query())),
|
|
2779
2552
|
}).pipe(T.Http({ method: "GET", uri: "/automations", code: 200 })),
|
|
2780
|
-
).annotate({
|
|
2781
|
-
identifier: "ListAutomationsRequest",
|
|
2782
|
-
}) as any as S.Schema<ListAutomationsRequest>;
|
|
2553
|
+
).annotate({ identifier: "ListAutomationsRequest" }) as any as S.Schema<ListAutomationsRequest>;
|
|
2783
2554
|
|
|
2784
2555
|
/** The current status of the automation. */
|
|
2785
2556
|
export type AutomationListItemStatus = "enabled" | "disabled";
|
|
@@ -2805,9 +2576,7 @@ export const AutomationListItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
2805
2576
|
created_at: S.optional(S.String),
|
|
2806
2577
|
updated_at: S.optional(S.String),
|
|
2807
2578
|
}),
|
|
2808
|
-
).annotate({
|
|
2809
|
-
identifier: "AutomationListItem",
|
|
2810
|
-
}) as any as S.Schema<AutomationListItem>;
|
|
2579
|
+
).annotate({ identifier: "AutomationListItem" }) as any as S.Schema<AutomationListItem>;
|
|
2811
2580
|
|
|
2812
2581
|
/** Array of automations. */
|
|
2813
2582
|
export type ListAutomationsResponseDataList = Array<AutomationListItem>;
|
|
@@ -2829,9 +2598,7 @@ export const ListAutomationsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
2829
2598
|
has_more: S.optional(S.Boolean),
|
|
2830
2599
|
data: ListAutomationsResponseDataList,
|
|
2831
2600
|
}),
|
|
2832
|
-
).annotate({
|
|
2833
|
-
identifier: "ListAutomationsResponse",
|
|
2834
|
-
}) as any as S.Schema<ListAutomationsResponse>;
|
|
2601
|
+
).annotate({ identifier: "ListAutomationsResponse" }) as any as S.Schema<ListAutomationsResponse>;
|
|
2835
2602
|
|
|
2836
2603
|
export interface ListBroadcastsRequest {
|
|
2837
2604
|
/** Number of items to return. */
|
|
@@ -2847,9 +2614,7 @@ export const ListBroadcastsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2847
2614
|
after: S.optional(S.String.pipe(T.Query())),
|
|
2848
2615
|
before: S.optional(S.String.pipe(T.Query())),
|
|
2849
2616
|
}).pipe(T.Http({ method: "GET", uri: "/broadcasts", code: 200 })),
|
|
2850
|
-
).annotate({
|
|
2851
|
-
identifier: "ListBroadcastsRequest",
|
|
2852
|
-
}) as any as S.Schema<ListBroadcastsRequest>;
|
|
2617
|
+
).annotate({ identifier: "ListBroadcastsRequest" }) as any as S.Schema<ListBroadcastsRequest>;
|
|
2853
2618
|
|
|
2854
2619
|
export interface ListBroadcastsResponseSuccessDataItem {
|
|
2855
2620
|
/** Unique identifier for the broadcast. */
|
|
@@ -2871,26 +2636,24 @@ export interface ListBroadcastsResponseSuccessDataItem {
|
|
|
2871
2636
|
/** The topic ID that the broadcast is scoped to. */
|
|
2872
2637
|
topic_id?: string;
|
|
2873
2638
|
}
|
|
2874
|
-
export const ListBroadcastsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(
|
|
2875
|
-
(
|
|
2876
|
-
S.
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
}),
|
|
2639
|
+
export const ListBroadcastsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
2640
|
+
S.Struct({
|
|
2641
|
+
id: S.optional(S.String),
|
|
2642
|
+
name: S.optional(S.String),
|
|
2643
|
+
audience_id: S.optional(S.String),
|
|
2644
|
+
segment_id: S.optional(S.String),
|
|
2645
|
+
status: S.optional(S.String),
|
|
2646
|
+
created_at: S.optional(S.String),
|
|
2647
|
+
scheduled_at: S.optional(S.String),
|
|
2648
|
+
sent_at: S.optional(S.String),
|
|
2649
|
+
topic_id: S.optional(S.String),
|
|
2650
|
+
}),
|
|
2887
2651
|
).annotate({
|
|
2888
2652
|
identifier: "ListBroadcastsResponseSuccessDataItem",
|
|
2889
2653
|
}) as any as S.Schema<ListBroadcastsResponseSuccessDataItem>;
|
|
2890
2654
|
|
|
2891
2655
|
/** Array containing broadcast information. */
|
|
2892
|
-
export type ListBroadcastsResponseSuccessDataList =
|
|
2893
|
-
Array<ListBroadcastsResponseSuccessDataItem>;
|
|
2656
|
+
export type ListBroadcastsResponseSuccessDataList = Array<ListBroadcastsResponseSuccessDataItem>;
|
|
2894
2657
|
export const ListBroadcastsResponseSuccessDataList = /*@__PURE__*/ S.Array(
|
|
2895
2658
|
ListBroadcastsResponseSuccessDataItem,
|
|
2896
2659
|
) as any as S.Schema<ListBroadcastsResponseSuccessDataList>;
|
|
@@ -2932,9 +2695,7 @@ export const ListContactPropertiesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
2932
2695
|
}) as any as S.Schema<ListContactPropertiesRequest>;
|
|
2933
2696
|
|
|
2934
2697
|
/** The default value when the property is not set for a contact. */
|
|
2935
|
-
export type ListContactPropertiesResponseSuccessDataItemFallbackValue =
|
|
2936
|
-
| string
|
|
2937
|
-
| number;
|
|
2698
|
+
export type ListContactPropertiesResponseSuccessDataItemFallbackValue = string | number;
|
|
2938
2699
|
export const ListContactPropertiesResponseSuccessDataItemFallbackValue =
|
|
2939
2700
|
S.Unknown as any as S.Schema<ListContactPropertiesResponseSuccessDataItemFallbackValue>;
|
|
2940
2701
|
|
|
@@ -2950,28 +2711,24 @@ export interface ListContactPropertiesResponseSuccessDataItem {
|
|
|
2950
2711
|
/** Timestamp indicating when the contact property was created. */
|
|
2951
2712
|
created_at?: string;
|
|
2952
2713
|
}
|
|
2953
|
-
export const ListContactPropertiesResponseSuccessDataItem =
|
|
2954
|
-
|
|
2955
|
-
S.
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
).annotate({
|
|
2965
|
-
identifier: "ListContactPropertiesResponseSuccessDataItem",
|
|
2966
|
-
}) as any as S.Schema<ListContactPropertiesResponseSuccessDataItem>;
|
|
2714
|
+
export const ListContactPropertiesResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
2715
|
+
S.Struct({
|
|
2716
|
+
id: S.optional(S.String),
|
|
2717
|
+
key: S.optional(S.String),
|
|
2718
|
+
type: S.optional(S.String),
|
|
2719
|
+
fallback_value: S.optional(ListContactPropertiesResponseSuccessDataItemFallbackValue),
|
|
2720
|
+
created_at: S.optional(S.String),
|
|
2721
|
+
}),
|
|
2722
|
+
).annotate({
|
|
2723
|
+
identifier: "ListContactPropertiesResponseSuccessDataItem",
|
|
2724
|
+
}) as any as S.Schema<ListContactPropertiesResponseSuccessDataItem>;
|
|
2967
2725
|
|
|
2968
2726
|
/** Array containing contact property information. */
|
|
2969
2727
|
export type ListContactPropertiesResponseSuccessDataList =
|
|
2970
2728
|
Array<ListContactPropertiesResponseSuccessDataItem>;
|
|
2971
|
-
export const ListContactPropertiesResponseSuccessDataList =
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
) as any as S.Schema<ListContactPropertiesResponseSuccessDataList>;
|
|
2729
|
+
export const ListContactPropertiesResponseSuccessDataList = /*@__PURE__*/ S.Array(
|
|
2730
|
+
ListContactPropertiesResponseSuccessDataItem,
|
|
2731
|
+
) as any as S.Schema<ListContactPropertiesResponseSuccessDataList>;
|
|
2975
2732
|
|
|
2976
2733
|
export interface ListContactPropertiesResponseSuccess {
|
|
2977
2734
|
/** Type of the response object. */
|
|
@@ -2981,13 +2738,12 @@ export interface ListContactPropertiesResponseSuccess {
|
|
|
2981
2738
|
/** Array containing contact property information. */
|
|
2982
2739
|
data: ListContactPropertiesResponseSuccessDataList;
|
|
2983
2740
|
}
|
|
2984
|
-
export const ListContactPropertiesResponseSuccess = /*@__PURE__*/ S.suspend(
|
|
2985
|
-
(
|
|
2986
|
-
S.
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
}),
|
|
2741
|
+
export const ListContactPropertiesResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
2742
|
+
S.Struct({
|
|
2743
|
+
object: S.optional(S.String),
|
|
2744
|
+
has_more: S.optional(S.Boolean),
|
|
2745
|
+
data: ListContactPropertiesResponseSuccessDataList,
|
|
2746
|
+
}),
|
|
2991
2747
|
).annotate({
|
|
2992
2748
|
identifier: "ListContactPropertiesResponseSuccess",
|
|
2993
2749
|
}) as any as S.Schema<ListContactPropertiesResponseSuccess>;
|
|
@@ -3009,9 +2765,7 @@ export const ListContactsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3009
2765
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3010
2766
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3011
2767
|
}).pipe(T.Http({ method: "GET", uri: "/contacts", code: 200 })),
|
|
3012
|
-
).annotate({
|
|
3013
|
-
identifier: "ListContactsRequest",
|
|
3014
|
-
}) as any as S.Schema<ListContactsRequest>;
|
|
2768
|
+
).annotate({ identifier: "ListContactsRequest" }) as any as S.Schema<ListContactsRequest>;
|
|
3015
2769
|
|
|
3016
2770
|
export interface ListContactsResponseSuccessDataItem {
|
|
3017
2771
|
/** Unique identifier for the contact. */
|
|
@@ -3041,8 +2795,7 @@ export const ListContactsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3041
2795
|
}) as any as S.Schema<ListContactsResponseSuccessDataItem>;
|
|
3042
2796
|
|
|
3043
2797
|
/** Array containing contact information. */
|
|
3044
|
-
export type ListContactsResponseSuccessDataList =
|
|
3045
|
-
Array<ListContactsResponseSuccessDataItem>;
|
|
2798
|
+
export type ListContactsResponseSuccessDataList = Array<ListContactsResponseSuccessDataItem>;
|
|
3046
2799
|
export const ListContactsResponseSuccessDataList = /*@__PURE__*/ S.Array(
|
|
3047
2800
|
ListContactsResponseSuccessDataItem,
|
|
3048
2801
|
) as any as S.Schema<ListContactsResponseSuccessDataList>;
|
|
@@ -3078,13 +2831,7 @@ export const ListContactSegmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3078
2831
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3079
2832
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3080
2833
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3081
|
-
}).pipe(
|
|
3082
|
-
T.Http({
|
|
3083
|
-
method: "GET",
|
|
3084
|
-
uri: "/contacts/{contact_id}/segments",
|
|
3085
|
-
code: 200,
|
|
3086
|
-
}),
|
|
3087
|
-
),
|
|
2834
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts/{contact_id}/segments", code: 200 })),
|
|
3088
2835
|
).annotate({
|
|
3089
2836
|
identifier: "ListContactSegmentsRequest",
|
|
3090
2837
|
}) as any as S.Schema<ListContactSegmentsRequest>;
|
|
@@ -3097,16 +2844,15 @@ export interface ListContactSegmentsResponseSuccessDataItem {
|
|
|
3097
2844
|
/** Timestamp indicating when the contact was added to the segment. */
|
|
3098
2845
|
created_at?: string;
|
|
3099
2846
|
}
|
|
3100
|
-
export const ListContactSegmentsResponseSuccessDataItem =
|
|
3101
|
-
|
|
3102
|
-
S.
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
}) as any as S.Schema<ListContactSegmentsResponseSuccessDataItem>;
|
|
2847
|
+
export const ListContactSegmentsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
2848
|
+
S.Struct({
|
|
2849
|
+
id: S.optional(S.String),
|
|
2850
|
+
name: S.optional(S.String),
|
|
2851
|
+
created_at: S.optional(S.String),
|
|
2852
|
+
}),
|
|
2853
|
+
).annotate({
|
|
2854
|
+
identifier: "ListContactSegmentsResponseSuccessDataItem",
|
|
2855
|
+
}) as any as S.Schema<ListContactSegmentsResponseSuccessDataItem>;
|
|
3110
2856
|
|
|
3111
2857
|
/** Array containing segment information for this contact. */
|
|
3112
2858
|
export type ListContactSegmentsResponseSuccessDataList =
|
|
@@ -3149,17 +2895,11 @@ export const ListContactTopicsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3149
2895
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3150
2896
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3151
2897
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3152
|
-
}).pipe(
|
|
3153
|
-
|
|
3154
|
-
),
|
|
3155
|
-
).annotate({
|
|
3156
|
-
identifier: "ListContactTopicsRequest",
|
|
3157
|
-
}) as any as S.Schema<ListContactTopicsRequest>;
|
|
2898
|
+
}).pipe(T.Http({ method: "GET", uri: "/contacts/{contact_id}/topics", code: 200 })),
|
|
2899
|
+
).annotate({ identifier: "ListContactTopicsRequest" }) as any as S.Schema<ListContactTopicsRequest>;
|
|
3158
2900
|
|
|
3159
2901
|
/** The subscription status for this topic. */
|
|
3160
|
-
export type GetContactTopicsResponseSuccessDataItemSubscription =
|
|
3161
|
-
| "opt_in"
|
|
3162
|
-
| "opt_out";
|
|
2902
|
+
export type GetContactTopicsResponseSuccessDataItemSubscription = "opt_in" | "opt_out";
|
|
3163
2903
|
export const GetContactTopicsResponseSuccessDataItemSubscription = S.String;
|
|
3164
2904
|
|
|
3165
2905
|
export interface GetContactTopicsResponseSuccessDataItem {
|
|
@@ -3172,16 +2912,13 @@ export interface GetContactTopicsResponseSuccessDataItem {
|
|
|
3172
2912
|
/** The subscription status for this topic. */
|
|
3173
2913
|
subscription?: GetContactTopicsResponseSuccessDataItemSubscription;
|
|
3174
2914
|
}
|
|
3175
|
-
export const GetContactTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(
|
|
3176
|
-
(
|
|
3177
|
-
S.
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
GetContactTopicsResponseSuccessDataItemSubscription,
|
|
3183
|
-
),
|
|
3184
|
-
}),
|
|
2915
|
+
export const GetContactTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
2916
|
+
S.Struct({
|
|
2917
|
+
id: S.optional(S.String),
|
|
2918
|
+
name: S.optional(S.String),
|
|
2919
|
+
description: S.optional(S.String),
|
|
2920
|
+
subscription: S.optional(GetContactTopicsResponseSuccessDataItemSubscription),
|
|
2921
|
+
}),
|
|
3185
2922
|
).annotate({
|
|
3186
2923
|
identifier: "GetContactTopicsResponseSuccessDataItem",
|
|
3187
2924
|
}) as any as S.Schema<GetContactTopicsResponseSuccessDataItem>;
|
|
@@ -3225,9 +2962,7 @@ export const ListDomainsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3225
2962
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3226
2963
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3227
2964
|
}).pipe(T.Http({ method: "GET", uri: "/domains", code: 200 })),
|
|
3228
|
-
).annotate({
|
|
3229
|
-
identifier: "ListDomainsRequest",
|
|
3230
|
-
}) as any as S.Schema<ListDomainsRequest>;
|
|
2965
|
+
).annotate({ identifier: "ListDomainsRequest" }) as any as S.Schema<ListDomainsRequest>;
|
|
3231
2966
|
|
|
3232
2967
|
export interface ListDomainsItem {
|
|
3233
2968
|
/** The ID of the domain. */
|
|
@@ -3251,9 +2986,7 @@ export const ListDomainsItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3251
2986
|
region: S.optional(S.String),
|
|
3252
2987
|
capabilities: S.optional(DomainCapabilities),
|
|
3253
2988
|
}),
|
|
3254
|
-
).annotate({
|
|
3255
|
-
identifier: "ListDomainsItem",
|
|
3256
|
-
}) as any as S.Schema<ListDomainsItem>;
|
|
2989
|
+
).annotate({ identifier: "ListDomainsItem" }) as any as S.Schema<ListDomainsItem>;
|
|
3257
2990
|
|
|
3258
2991
|
export type ListDomainsResponseDataList = Array<ListDomainsItem>;
|
|
3259
2992
|
export const ListDomainsResponseDataList = /*@__PURE__*/ S.Array(
|
|
@@ -3273,9 +3006,7 @@ export const ListDomainsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3273
3006
|
has_more: S.optional(S.Boolean),
|
|
3274
3007
|
data: ListDomainsResponseDataList,
|
|
3275
3008
|
}),
|
|
3276
|
-
).annotate({
|
|
3277
|
-
identifier: "ListDomainsResponse",
|
|
3278
|
-
}) as any as S.Schema<ListDomainsResponse>;
|
|
3009
|
+
).annotate({ identifier: "ListDomainsResponse" }) as any as S.Schema<ListDomainsResponse>;
|
|
3279
3010
|
|
|
3280
3011
|
export interface ListEmailAttachmentsRequest {
|
|
3281
3012
|
/** The ID of the email. */
|
|
@@ -3293,17 +3024,13 @@ export const ListEmailAttachmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3293
3024
|
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3294
3025
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3295
3026
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3296
|
-
}).pipe(
|
|
3297
|
-
T.Http({ method: "GET", uri: "/emails/{email_id}/attachments", code: 200 }),
|
|
3298
|
-
),
|
|
3027
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/{email_id}/attachments", code: 200 })),
|
|
3299
3028
|
).annotate({
|
|
3300
3029
|
identifier: "ListEmailAttachmentsRequest",
|
|
3301
3030
|
}) as any as S.Schema<ListEmailAttachmentsRequest>;
|
|
3302
3031
|
|
|
3303
3032
|
/** How the attachment should be displayed. */
|
|
3304
|
-
export type ListAttachmentsResponseDataItemContentDisposition =
|
|
3305
|
-
| "inline"
|
|
3306
|
-
| "attachment";
|
|
3033
|
+
export type ListAttachmentsResponseDataItemContentDisposition = "inline" | "attachment";
|
|
3307
3034
|
export const ListAttachmentsResponseDataItemContentDisposition = S.String;
|
|
3308
3035
|
|
|
3309
3036
|
export interface ListAttachmentsResponseDataItem {
|
|
@@ -3330,9 +3057,7 @@ export const ListAttachmentsResponseDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3330
3057
|
filename: S.optional(S.String),
|
|
3331
3058
|
content_type: S.optional(S.String),
|
|
3332
3059
|
content_id: S.optional(S.String),
|
|
3333
|
-
content_disposition: S.optional(
|
|
3334
|
-
ListAttachmentsResponseDataItemContentDisposition,
|
|
3335
|
-
),
|
|
3060
|
+
content_disposition: S.optional(ListAttachmentsResponseDataItemContentDisposition),
|
|
3336
3061
|
download_url: S.optional(S.String),
|
|
3337
3062
|
expires_at: S.optional(S.String),
|
|
3338
3063
|
size: S.optional(S.Number),
|
|
@@ -3342,8 +3067,7 @@ export const ListAttachmentsResponseDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3342
3067
|
}) as any as S.Schema<ListAttachmentsResponseDataItem>;
|
|
3343
3068
|
|
|
3344
3069
|
/** Array containing attachment information. */
|
|
3345
|
-
export type ListAttachmentsResponseDataList =
|
|
3346
|
-
Array<ListAttachmentsResponseDataItem>;
|
|
3070
|
+
export type ListAttachmentsResponseDataList = Array<ListAttachmentsResponseDataItem>;
|
|
3347
3071
|
export const ListAttachmentsResponseDataList = /*@__PURE__*/ S.Array(
|
|
3348
3072
|
ListAttachmentsResponseDataItem,
|
|
3349
3073
|
) as any as S.Schema<ListAttachmentsResponseDataList>;
|
|
@@ -3362,9 +3086,7 @@ export const ListAttachmentsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3362
3086
|
has_more: S.optional(S.Boolean),
|
|
3363
3087
|
data: ListAttachmentsResponseDataList,
|
|
3364
3088
|
}),
|
|
3365
|
-
).annotate({
|
|
3366
|
-
identifier: "ListAttachmentsResponse",
|
|
3367
|
-
}) as any as S.Schema<ListAttachmentsResponse>;
|
|
3089
|
+
).annotate({ identifier: "ListAttachmentsResponse" }) as any as S.Schema<ListAttachmentsResponse>;
|
|
3368
3090
|
|
|
3369
3091
|
export interface ListEmailReceivingRequest {
|
|
3370
3092
|
/** Maximum number of received emails to return. */
|
|
@@ -3404,17 +3126,15 @@ export const ListReceivedEmailsResponseDataItemCcList = /*@__PURE__*/ S.Array(
|
|
|
3404
3126
|
|
|
3405
3127
|
/** The reply-to addresses. */
|
|
3406
3128
|
export type ListReceivedEmailsResponseDataItemReplyToList = Array<string>;
|
|
3407
|
-
export const ListReceivedEmailsResponseDataItemReplyToList =
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
) as any as S.Schema<ListReceivedEmailsResponseDataItemReplyToList>;
|
|
3129
|
+
export const ListReceivedEmailsResponseDataItemReplyToList = /*@__PURE__*/ S.Array(
|
|
3130
|
+
S.String,
|
|
3131
|
+
) as any as S.Schema<ListReceivedEmailsResponseDataItemReplyToList>;
|
|
3411
3132
|
|
|
3412
3133
|
/** How the attachment should be displayed. */
|
|
3413
3134
|
export type ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition =
|
|
3414
3135
|
| "inline"
|
|
3415
3136
|
| "attachment";
|
|
3416
|
-
export const ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition =
|
|
3417
|
-
S.String;
|
|
3137
|
+
export const ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition = S.String;
|
|
3418
3138
|
|
|
3419
3139
|
export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
|
|
3420
3140
|
/** The ID of the attachment. */
|
|
@@ -3430,29 +3150,27 @@ export interface ListReceivedEmailsResponseDataItemAttachmentsItem {
|
|
|
3430
3150
|
/** Size of the attachment in bytes. */
|
|
3431
3151
|
size?: number;
|
|
3432
3152
|
}
|
|
3433
|
-
export const ListReceivedEmailsResponseDataItemAttachmentsItem =
|
|
3434
|
-
|
|
3435
|
-
S.
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
}) as any as S.Schema<ListReceivedEmailsResponseDataItemAttachmentsItem>;
|
|
3153
|
+
export const ListReceivedEmailsResponseDataItemAttachmentsItem = /*@__PURE__*/ S.suspend(() =>
|
|
3154
|
+
S.Struct({
|
|
3155
|
+
id: S.optional(S.String),
|
|
3156
|
+
filename: S.optional(S.String),
|
|
3157
|
+
content_type: S.optional(S.String),
|
|
3158
|
+
content_id: S.optional(S.String),
|
|
3159
|
+
content_disposition: S.optional(
|
|
3160
|
+
ListReceivedEmailsResponseDataItemAttachmentsItemContentDisposition,
|
|
3161
|
+
),
|
|
3162
|
+
size: S.optional(S.Number),
|
|
3163
|
+
}),
|
|
3164
|
+
).annotate({
|
|
3165
|
+
identifier: "ListReceivedEmailsResponseDataItemAttachmentsItem",
|
|
3166
|
+
}) as any as S.Schema<ListReceivedEmailsResponseDataItemAttachmentsItem>;
|
|
3448
3167
|
|
|
3449
3168
|
/** Array of attachments for this email. */
|
|
3450
3169
|
export type ListReceivedEmailsResponseDataItemAttachmentsList =
|
|
3451
3170
|
Array<ListReceivedEmailsResponseDataItemAttachmentsItem>;
|
|
3452
|
-
export const ListReceivedEmailsResponseDataItemAttachmentsList =
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
) as any as S.Schema<ListReceivedEmailsResponseDataItemAttachmentsList>;
|
|
3171
|
+
export const ListReceivedEmailsResponseDataItemAttachmentsList = /*@__PURE__*/ S.Array(
|
|
3172
|
+
ListReceivedEmailsResponseDataItemAttachmentsItem,
|
|
3173
|
+
) as any as S.Schema<ListReceivedEmailsResponseDataItemAttachmentsList>;
|
|
3456
3174
|
|
|
3457
3175
|
export interface ListReceivedEmailsResponseDataItem {
|
|
3458
3176
|
/** The ID of the received email. */
|
|
@@ -3485,9 +3203,7 @@ export const ListReceivedEmailsResponseDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3485
3203
|
message_id: S.optional(S.String),
|
|
3486
3204
|
bcc: S.optional(S.NullOr(ListReceivedEmailsResponseDataItemBccList)),
|
|
3487
3205
|
cc: S.optional(S.NullOr(ListReceivedEmailsResponseDataItemCcList)),
|
|
3488
|
-
reply_to: S.optional(
|
|
3489
|
-
S.NullOr(ListReceivedEmailsResponseDataItemReplyToList),
|
|
3490
|
-
),
|
|
3206
|
+
reply_to: S.optional(S.NullOr(ListReceivedEmailsResponseDataItemReplyToList)),
|
|
3491
3207
|
created_at: S.optional(S.String),
|
|
3492
3208
|
attachments: S.optional(ListReceivedEmailsResponseDataItemAttachmentsList),
|
|
3493
3209
|
}),
|
|
@@ -3496,8 +3212,7 @@ export const ListReceivedEmailsResponseDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3496
3212
|
}) as any as S.Schema<ListReceivedEmailsResponseDataItem>;
|
|
3497
3213
|
|
|
3498
3214
|
/** Array containing received email information. */
|
|
3499
|
-
export type ListReceivedEmailsResponseDataList =
|
|
3500
|
-
Array<ListReceivedEmailsResponseDataItem>;
|
|
3215
|
+
export type ListReceivedEmailsResponseDataList = Array<ListReceivedEmailsResponseDataItem>;
|
|
3501
3216
|
export const ListReceivedEmailsResponseDataList = /*@__PURE__*/ S.Array(
|
|
3502
3217
|
ListReceivedEmailsResponseDataItem,
|
|
3503
3218
|
) as any as S.Schema<ListReceivedEmailsResponseDataList>;
|
|
@@ -3530,20 +3245,13 @@ export interface ListEmailReceivingAttachmentsRequest {
|
|
|
3530
3245
|
/** Pagination cursor to fetch results before this attachment ID. Cannot be used with 'after'. */
|
|
3531
3246
|
before?: string;
|
|
3532
3247
|
}
|
|
3533
|
-
export const ListEmailReceivingAttachmentsRequest = /*@__PURE__*/ S.suspend(
|
|
3534
|
-
(
|
|
3535
|
-
S.
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
}).pipe(
|
|
3541
|
-
T.Http({
|
|
3542
|
-
method: "GET",
|
|
3543
|
-
uri: "/emails/receiving/{email_id}/attachments",
|
|
3544
|
-
code: 200,
|
|
3545
|
-
}),
|
|
3546
|
-
),
|
|
3248
|
+
export const ListEmailReceivingAttachmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
3249
|
+
S.Struct({
|
|
3250
|
+
email_id: S.String.pipe(T.Label()),
|
|
3251
|
+
limit: S.optional(S.Number.pipe(T.Query())),
|
|
3252
|
+
after: S.optional(S.String.pipe(T.Query())),
|
|
3253
|
+
before: S.optional(S.String.pipe(T.Query())),
|
|
3254
|
+
}).pipe(T.Http({ method: "GET", uri: "/emails/receiving/{email_id}/attachments", code: 200 })),
|
|
3547
3255
|
).annotate({
|
|
3548
3256
|
identifier: "ListEmailReceivingAttachmentsRequest",
|
|
3549
3257
|
}) as any as S.Schema<ListEmailReceivingAttachmentsRequest>;
|
|
@@ -3562,9 +3270,7 @@ export const ListEmailsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3562
3270
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3563
3271
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3564
3272
|
}).pipe(T.Http({ method: "GET", uri: "/emails", code: 200 })),
|
|
3565
|
-
).annotate({
|
|
3566
|
-
identifier: "ListEmailsRequest",
|
|
3567
|
-
}) as any as S.Schema<ListEmailsRequest>;
|
|
3273
|
+
).annotate({ identifier: "ListEmailsRequest" }) as any as S.Schema<ListEmailsRequest>;
|
|
3568
3274
|
|
|
3569
3275
|
/** Array containing email information. */
|
|
3570
3276
|
export type ListEmailsResponseDataList = Array<Email>;
|
|
@@ -3586,9 +3292,7 @@ export const ListEmailsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3586
3292
|
has_more: S.optional(S.Boolean),
|
|
3587
3293
|
data: ListEmailsResponseDataList,
|
|
3588
3294
|
}),
|
|
3589
|
-
).annotate({
|
|
3590
|
-
identifier: "ListEmailsResponse",
|
|
3591
|
-
}) as any as S.Schema<ListEmailsResponse>;
|
|
3295
|
+
).annotate({ identifier: "ListEmailsResponse" }) as any as S.Schema<ListEmailsResponse>;
|
|
3592
3296
|
|
|
3593
3297
|
export interface ListEventsRequest {
|
|
3594
3298
|
/** Number of items to return. */
|
|
@@ -3604,9 +3308,7 @@ export const ListEventsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3604
3308
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3605
3309
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3606
3310
|
}).pipe(T.Http({ method: "GET", uri: "/events", code: 200 })),
|
|
3607
|
-
).annotate({
|
|
3608
|
-
identifier: "ListEventsRequest",
|
|
3609
|
-
}) as any as S.Schema<ListEventsRequest>;
|
|
3311
|
+
).annotate({ identifier: "ListEventsRequest" }) as any as S.Schema<ListEventsRequest>;
|
|
3610
3312
|
|
|
3611
3313
|
export interface EventSummary {
|
|
3612
3314
|
/** The event ID. */
|
|
@@ -3650,9 +3352,7 @@ export const ListEventsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3650
3352
|
has_more: S.optional(S.Boolean),
|
|
3651
3353
|
data: ListEventsResponseDataList,
|
|
3652
3354
|
}),
|
|
3653
|
-
).annotate({
|
|
3654
|
-
identifier: "ListEventsResponse",
|
|
3655
|
-
}) as any as S.Schema<ListEventsResponse>;
|
|
3355
|
+
).annotate({ identifier: "ListEventsResponse" }) as any as S.Schema<ListEventsResponse>;
|
|
3656
3356
|
|
|
3657
3357
|
export interface ListLogsRequest {
|
|
3658
3358
|
/** Number of items to return. */
|
|
@@ -3668,18 +3368,10 @@ export const ListLogsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3668
3368
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3669
3369
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3670
3370
|
}).pipe(T.Http({ method: "GET", uri: "/logs", code: 200 })),
|
|
3671
|
-
).annotate({
|
|
3672
|
-
identifier: "ListLogsRequest",
|
|
3673
|
-
}) as any as S.Schema<ListLogsRequest>;
|
|
3371
|
+
).annotate({ identifier: "ListLogsRequest" }) as any as S.Schema<ListLogsRequest>;
|
|
3674
3372
|
|
|
3675
3373
|
/** The HTTP method used. */
|
|
3676
|
-
export type LogSummaryMethod =
|
|
3677
|
-
| "GET"
|
|
3678
|
-
| "POST"
|
|
3679
|
-
| "PUT"
|
|
3680
|
-
| "DELETE"
|
|
3681
|
-
| "PATCH"
|
|
3682
|
-
| "OPTIONS";
|
|
3374
|
+
export type LogSummaryMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
|
3683
3375
|
export const LogSummaryMethod = S.String;
|
|
3684
3376
|
|
|
3685
3377
|
export interface LogSummary {
|
|
@@ -3727,9 +3419,7 @@ export const ListLogsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
3727
3419
|
has_more: S.optional(S.Boolean),
|
|
3728
3420
|
data: ListLogsResponseDataList,
|
|
3729
3421
|
}),
|
|
3730
|
-
).annotate({
|
|
3731
|
-
identifier: "ListLogsResponse",
|
|
3732
|
-
}) as any as S.Schema<ListLogsResponse>;
|
|
3422
|
+
).annotate({ identifier: "ListLogsResponse" }) as any as S.Schema<ListLogsResponse>;
|
|
3733
3423
|
|
|
3734
3424
|
export interface ListSegmentsRequest {
|
|
3735
3425
|
/** Number of items to return. */
|
|
@@ -3745,9 +3435,7 @@ export const ListSegmentsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3745
3435
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3746
3436
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3747
3437
|
}).pipe(T.Http({ method: "GET", uri: "/segments", code: 200 })),
|
|
3748
|
-
).annotate({
|
|
3749
|
-
identifier: "ListSegmentsRequest",
|
|
3750
|
-
}) as any as S.Schema<ListSegmentsRequest>;
|
|
3438
|
+
).annotate({ identifier: "ListSegmentsRequest" }) as any as S.Schema<ListSegmentsRequest>;
|
|
3751
3439
|
|
|
3752
3440
|
export interface ListSegmentsResponseSuccessDataItem {
|
|
3753
3441
|
/** Unique identifier for the segment. */
|
|
@@ -3771,8 +3459,7 @@ export const ListSegmentsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3771
3459
|
}) as any as S.Schema<ListSegmentsResponseSuccessDataItem>;
|
|
3772
3460
|
|
|
3773
3461
|
/** Array containing segment information. */
|
|
3774
|
-
export type ListSegmentsResponseSuccessDataList =
|
|
3775
|
-
Array<ListSegmentsResponseSuccessDataItem>;
|
|
3462
|
+
export type ListSegmentsResponseSuccessDataList = Array<ListSegmentsResponseSuccessDataItem>;
|
|
3776
3463
|
export const ListSegmentsResponseSuccessDataList = /*@__PURE__*/ S.Array(
|
|
3777
3464
|
ListSegmentsResponseSuccessDataItem,
|
|
3778
3465
|
) as any as S.Schema<ListSegmentsResponseSuccessDataList>;
|
|
@@ -3809,9 +3496,7 @@ export const ListTemplatesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3809
3496
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3810
3497
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3811
3498
|
}).pipe(T.Http({ method: "GET", uri: "/templates", code: 200 })),
|
|
3812
|
-
).annotate({
|
|
3813
|
-
identifier: "ListTemplatesRequest",
|
|
3814
|
-
}) as any as S.Schema<ListTemplatesRequest>;
|
|
3499
|
+
).annotate({ identifier: "ListTemplatesRequest" }) as any as S.Schema<ListTemplatesRequest>;
|
|
3815
3500
|
|
|
3816
3501
|
/** The publication status of the template. */
|
|
3817
3502
|
export type TemplateListItemStatus = "draft" | "published";
|
|
@@ -3843,9 +3528,7 @@ export const TemplateListItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3843
3528
|
updated_at: S.optional(S.String),
|
|
3844
3529
|
alias: S.optional(S.String),
|
|
3845
3530
|
}),
|
|
3846
|
-
).annotate({
|
|
3847
|
-
identifier: "TemplateListItem",
|
|
3848
|
-
}) as any as S.Schema<TemplateListItem>;
|
|
3531
|
+
).annotate({ identifier: "TemplateListItem" }) as any as S.Schema<TemplateListItem>;
|
|
3849
3532
|
|
|
3850
3533
|
/** Array containing templates information. */
|
|
3851
3534
|
export type ListTemplatesResponseSuccessDataList = Array<TemplateListItem>;
|
|
@@ -3885,14 +3568,10 @@ export const ListTopicsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3885
3568
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3886
3569
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3887
3570
|
}).pipe(T.Http({ method: "GET", uri: "/topics", code: 200 })),
|
|
3888
|
-
).annotate({
|
|
3889
|
-
identifier: "ListTopicsRequest",
|
|
3890
|
-
}) as any as S.Schema<ListTopicsRequest>;
|
|
3571
|
+
).annotate({ identifier: "ListTopicsRequest" }) as any as S.Schema<ListTopicsRequest>;
|
|
3891
3572
|
|
|
3892
3573
|
/** The default subscription status for the topic. */
|
|
3893
|
-
export type ListTopicsResponseSuccessDataItemDefaultSubscription =
|
|
3894
|
-
| "opt_in"
|
|
3895
|
-
| "opt_out";
|
|
3574
|
+
export type ListTopicsResponseSuccessDataItemDefaultSubscription = "opt_in" | "opt_out";
|
|
3896
3575
|
export const ListTopicsResponseSuccessDataItemDefaultSubscription = S.String;
|
|
3897
3576
|
|
|
3898
3577
|
/** The visibility of the topic. */
|
|
@@ -3918,9 +3597,7 @@ export const ListTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3918
3597
|
id: S.optional(S.String),
|
|
3919
3598
|
name: S.optional(S.String),
|
|
3920
3599
|
description: S.optional(S.String),
|
|
3921
|
-
default_subscription: S.optional(
|
|
3922
|
-
ListTopicsResponseSuccessDataItemDefaultSubscription,
|
|
3923
|
-
),
|
|
3600
|
+
default_subscription: S.optional(ListTopicsResponseSuccessDataItemDefaultSubscription),
|
|
3924
3601
|
visibility: S.optional(ListTopicsResponseSuccessDataItemVisibility),
|
|
3925
3602
|
created_at: S.optional(S.String),
|
|
3926
3603
|
}),
|
|
@@ -3929,8 +3606,7 @@ export const ListTopicsResponseSuccessDataItem = /*@__PURE__*/ S.suspend(() =>
|
|
|
3929
3606
|
}) as any as S.Schema<ListTopicsResponseSuccessDataItem>;
|
|
3930
3607
|
|
|
3931
3608
|
/** Array containing topic information. */
|
|
3932
|
-
export type ListTopicsResponseSuccessDataList =
|
|
3933
|
-
Array<ListTopicsResponseSuccessDataItem>;
|
|
3609
|
+
export type ListTopicsResponseSuccessDataList = Array<ListTopicsResponseSuccessDataItem>;
|
|
3934
3610
|
export const ListTopicsResponseSuccessDataList = /*@__PURE__*/ S.Array(
|
|
3935
3611
|
ListTopicsResponseSuccessDataItem,
|
|
3936
3612
|
) as any as S.Schema<ListTopicsResponseSuccessDataList>;
|
|
@@ -3967,9 +3643,7 @@ export const ListWebhooksRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
3967
3643
|
after: S.optional(S.String.pipe(T.Query())),
|
|
3968
3644
|
before: S.optional(S.String.pipe(T.Query())),
|
|
3969
3645
|
}).pipe(T.Http({ method: "GET", uri: "/webhooks", code: 200 })),
|
|
3970
|
-
).annotate({
|
|
3971
|
-
identifier: "ListWebhooksRequest",
|
|
3972
|
-
}) as any as S.Schema<ListWebhooksRequest>;
|
|
3646
|
+
).annotate({ identifier: "ListWebhooksRequest" }) as any as S.Schema<ListWebhooksRequest>;
|
|
3973
3647
|
|
|
3974
3648
|
/** Array of event types subscribed to. */
|
|
3975
3649
|
export type ListWebhooksResponseDataItemEventsList = Array<string>;
|
|
@@ -4021,9 +3695,7 @@ export const ListWebhooksResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4021
3695
|
has_more: S.optional(S.Boolean),
|
|
4022
3696
|
data: ListWebhooksResponseDataList,
|
|
4023
3697
|
}),
|
|
4024
|
-
).annotate({
|
|
4025
|
-
identifier: "ListWebhooksResponse",
|
|
4026
|
-
}) as any as S.Schema<ListWebhooksResponse>;
|
|
3698
|
+
).annotate({ identifier: "ListWebhooksResponse" }) as any as S.Schema<ListWebhooksResponse>;
|
|
4027
3699
|
|
|
4028
3700
|
export interface PublishTemplateRequest {
|
|
4029
3701
|
/** The Template ID or alias. */
|
|
@@ -4032,12 +3704,8 @@ export interface PublishTemplateRequest {
|
|
|
4032
3704
|
export const PublishTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
4033
3705
|
S.Struct({
|
|
4034
3706
|
id: S.String.pipe(T.Label()),
|
|
4035
|
-
}).pipe(
|
|
4036
|
-
|
|
4037
|
-
),
|
|
4038
|
-
).annotate({
|
|
4039
|
-
identifier: "PublishTemplateRequest",
|
|
4040
|
-
}) as any as S.Schema<PublishTemplateRequest>;
|
|
3707
|
+
}).pipe(T.Http({ method: "POST", uri: "/templates/{id}/publish", code: 200 })),
|
|
3708
|
+
).annotate({ identifier: "PublishTemplateRequest" }) as any as S.Schema<PublishTemplateRequest>;
|
|
4041
3709
|
|
|
4042
3710
|
export interface PublishTemplateResponseSuccess {
|
|
4043
3711
|
/** The ID of the template. */
|
|
@@ -4065,9 +3733,7 @@ export const SendBroadcastRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4065
3733
|
id: S.String.pipe(T.Label()),
|
|
4066
3734
|
scheduled_at: S.optional(S.String),
|
|
4067
3735
|
}).pipe(T.Http({ method: "POST", uri: "/broadcasts/{id}/send", code: 200 })),
|
|
4068
|
-
).annotate({
|
|
4069
|
-
identifier: "SendBroadcastRequest",
|
|
4070
|
-
}) as any as S.Schema<SendBroadcastRequest>;
|
|
3736
|
+
).annotate({ identifier: "SendBroadcastRequest" }) as any as S.Schema<SendBroadcastRequest>;
|
|
4071
3737
|
|
|
4072
3738
|
export interface SendBroadcastResponseSuccess {
|
|
4073
3739
|
/** The ID of the broadcast. */
|
|
@@ -4105,14 +3771,10 @@ export const SendEventRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4105
3771
|
email: S.optional(S.String),
|
|
4106
3772
|
payload: S.optional(SendEventRequestPayloadMap),
|
|
4107
3773
|
}).pipe(T.Http({ method: "POST", uri: "/events/send", code: 200 })),
|
|
4108
|
-
).annotate({
|
|
4109
|
-
identifier: "SendEventRequest",
|
|
4110
|
-
}) as any as S.Schema<SendEventRequest>;
|
|
3774
|
+
).annotate({ identifier: "SendEventRequest" }) as any as S.Schema<SendEventRequest>;
|
|
4111
3775
|
|
|
4112
3776
|
export interface SendEventResponse {}
|
|
4113
|
-
export const SendEventResponse = /*@__PURE__*/ S.suspend(() =>
|
|
4114
|
-
S.Struct({}),
|
|
4115
|
-
).annotate({
|
|
3777
|
+
export const SendEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
|
|
4116
3778
|
identifier: "SendEventResponse",
|
|
4117
3779
|
}) as any as S.Schema<SendEventResponse>;
|
|
4118
3780
|
|
|
@@ -4123,16 +3785,8 @@ export interface StopAutomationRequest {
|
|
|
4123
3785
|
export const StopAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
4124
3786
|
S.Struct({
|
|
4125
3787
|
automation_id: S.String.pipe(T.Label()),
|
|
4126
|
-
}).pipe(
|
|
4127
|
-
|
|
4128
|
-
method: "POST",
|
|
4129
|
-
uri: "/automations/{automation_id}/stop",
|
|
4130
|
-
code: 200,
|
|
4131
|
-
}),
|
|
4132
|
-
),
|
|
4133
|
-
).annotate({
|
|
4134
|
-
identifier: "StopAutomationRequest",
|
|
4135
|
-
}) as any as S.Schema<StopAutomationRequest>;
|
|
3788
|
+
}).pipe(T.Http({ method: "POST", uri: "/automations/{automation_id}/stop", code: 200 })),
|
|
3789
|
+
).annotate({ identifier: "StopAutomationRequest" }) as any as S.Schema<StopAutomationRequest>;
|
|
4136
3790
|
|
|
4137
3791
|
export interface StopAutomationResponse {
|
|
4138
3792
|
/** Type of the response object. */
|
|
@@ -4148,9 +3802,7 @@ export const StopAutomationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4148
3802
|
id: S.optional(S.String),
|
|
4149
3803
|
status: S.optional(S.String),
|
|
4150
3804
|
}),
|
|
4151
|
-
).annotate({
|
|
4152
|
-
identifier: "StopAutomationResponse",
|
|
4153
|
-
}) as any as S.Schema<StopAutomationResponse>;
|
|
3805
|
+
).annotate({ identifier: "StopAutomationResponse" }) as any as S.Schema<StopAutomationResponse>;
|
|
4154
3806
|
|
|
4155
3807
|
/** The status of the automation. */
|
|
4156
3808
|
export type UpdateAutomationRequestStatus = "enabled" | "disabled";
|
|
@@ -4163,8 +3815,7 @@ export const UpdateAutomationRequestStepsList = /*@__PURE__*/ S.Array(
|
|
|
4163
3815
|
) as any as S.Schema<UpdateAutomationRequestStepsList>;
|
|
4164
3816
|
|
|
4165
3817
|
/** The connections between steps in the automation graph. Must be provided together with `steps`. */
|
|
4166
|
-
export type UpdateAutomationRequestConnectionsList =
|
|
4167
|
-
Array<AutomationConnection>;
|
|
3818
|
+
export type UpdateAutomationRequestConnectionsList = Array<AutomationConnection>;
|
|
4168
3819
|
export const UpdateAutomationRequestConnectionsList = /*@__PURE__*/ S.Array(
|
|
4169
3820
|
AutomationConnection,
|
|
4170
3821
|
) as any as S.Schema<UpdateAutomationRequestConnectionsList>;
|
|
@@ -4188,12 +3839,8 @@ export const UpdateAutomationRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4188
3839
|
status: S.optional(UpdateAutomationRequestStatus),
|
|
4189
3840
|
steps: S.optional(UpdateAutomationRequestStepsList),
|
|
4190
3841
|
connections: S.optional(UpdateAutomationRequestConnectionsList),
|
|
4191
|
-
}).pipe(
|
|
4192
|
-
|
|
4193
|
-
),
|
|
4194
|
-
).annotate({
|
|
4195
|
-
identifier: "UpdateAutomationRequest",
|
|
4196
|
-
}) as any as S.Schema<UpdateAutomationRequest>;
|
|
3842
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/automations/{automation_id}", code: 200 })),
|
|
3843
|
+
).annotate({ identifier: "UpdateAutomationRequest" }) as any as S.Schema<UpdateAutomationRequest>;
|
|
4197
3844
|
|
|
4198
3845
|
export interface PatchAutomationResponse {
|
|
4199
3846
|
/** Type of the response object. */
|
|
@@ -4206,9 +3853,7 @@ export const PatchAutomationResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4206
3853
|
object: S.optional(S.String),
|
|
4207
3854
|
id: S.optional(S.String),
|
|
4208
3855
|
}),
|
|
4209
|
-
).annotate({
|
|
4210
|
-
identifier: "PatchAutomationResponse",
|
|
4211
|
-
}) as any as S.Schema<PatchAutomationResponse>;
|
|
3856
|
+
).annotate({ identifier: "PatchAutomationResponse" }) as any as S.Schema<PatchAutomationResponse>;
|
|
4212
3857
|
|
|
4213
3858
|
/** The email addresses to which replies should be sent. */
|
|
4214
3859
|
export type UpdateBroadcastRequestReplyToList = Array<string>;
|
|
@@ -4254,9 +3899,7 @@ export const UpdateBroadcastRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4254
3899
|
text: S.optional(S.String),
|
|
4255
3900
|
topic_id: S.optional(S.String),
|
|
4256
3901
|
}).pipe(T.Http({ method: "PATCH", uri: "/broadcasts/{id}", code: 200 })),
|
|
4257
|
-
).annotate({
|
|
4258
|
-
identifier: "UpdateBroadcastRequest",
|
|
4259
|
-
}) as any as S.Schema<UpdateBroadcastRequest>;
|
|
3902
|
+
).annotate({ identifier: "UpdateBroadcastRequest" }) as any as S.Schema<UpdateBroadcastRequest>;
|
|
4260
3903
|
|
|
4261
3904
|
export interface UpdateBroadcastResponseSuccess {
|
|
4262
3905
|
/** The ID of the broadcast. */
|
|
@@ -4274,9 +3917,7 @@ export const UpdateBroadcastResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
|
4274
3917
|
}) as any as S.Schema<UpdateBroadcastResponseSuccess>;
|
|
4275
3918
|
|
|
4276
3919
|
/** A map of custom property keys and values to update. */
|
|
4277
|
-
export type UpdateContactRequestPropertiesMap = {
|
|
4278
|
-
[key: string]: unknown | undefined;
|
|
4279
|
-
};
|
|
3920
|
+
export type UpdateContactRequestPropertiesMap = { [key: string]: unknown | undefined };
|
|
4280
3921
|
export const UpdateContactRequestPropertiesMap = /*@__PURE__*/ S.Record(
|
|
4281
3922
|
S.String,
|
|
4282
3923
|
S.Unknown,
|
|
@@ -4305,9 +3946,7 @@ export const UpdateContactRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4305
3946
|
unsubscribed: S.optional(S.Boolean),
|
|
4306
3947
|
properties: S.optional(UpdateContactRequestPropertiesMap),
|
|
4307
3948
|
}).pipe(T.Http({ method: "PATCH", uri: "/contacts/{id}", code: 200 })),
|
|
4308
|
-
).annotate({
|
|
4309
|
-
identifier: "UpdateContactRequest",
|
|
4310
|
-
}) as any as S.Schema<UpdateContactRequest>;
|
|
3949
|
+
).annotate({ identifier: "UpdateContactRequest" }) as any as S.Schema<UpdateContactRequest>;
|
|
4311
3950
|
|
|
4312
3951
|
export interface UpdateContactResponseSuccess {
|
|
4313
3952
|
/** Type of the response object. */
|
|
@@ -4339,9 +3978,7 @@ export const UpdateContactPropertyRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4339
3978
|
S.Struct({
|
|
4340
3979
|
id: S.String.pipe(T.Label()),
|
|
4341
3980
|
fallback_value: S.optional(UpdateContactPropertyRequestFallbackValue),
|
|
4342
|
-
}).pipe(
|
|
4343
|
-
T.Http({ method: "PATCH", uri: "/contact-properties/{id}", code: 200 }),
|
|
4344
|
-
),
|
|
3981
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/contact-properties/{id}", code: 200 })),
|
|
4345
3982
|
).annotate({
|
|
4346
3983
|
identifier: "UpdateContactPropertyRequest",
|
|
4347
3984
|
}) as any as S.Schema<UpdateContactPropertyRequest>;
|
|
@@ -4352,12 +3989,11 @@ export interface UpdateContactPropertyResponseSuccess {
|
|
|
4352
3989
|
/** The object type. */
|
|
4353
3990
|
object?: string;
|
|
4354
3991
|
}
|
|
4355
|
-
export const UpdateContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(
|
|
4356
|
-
(
|
|
4357
|
-
S.
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
}),
|
|
3992
|
+
export const UpdateContactPropertyResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
3993
|
+
S.Struct({
|
|
3994
|
+
id: S.optional(S.String),
|
|
3995
|
+
object: S.optional(S.String),
|
|
3996
|
+
}),
|
|
4361
3997
|
).annotate({
|
|
4362
3998
|
identifier: "UpdateContactPropertyResponseSuccess",
|
|
4363
3999
|
}) as any as S.Schema<UpdateContactPropertyResponseSuccess>;
|
|
@@ -4373,11 +4009,7 @@ export const UpdateContactSegmentRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4373
4009
|
contact_id: S.String.pipe(T.Label()),
|
|
4374
4010
|
segment_id: S.String.pipe(T.Label()),
|
|
4375
4011
|
}).pipe(
|
|
4376
|
-
T.Http({
|
|
4377
|
-
method: "POST",
|
|
4378
|
-
uri: "/contacts/{contact_id}/segments/{segment_id}",
|
|
4379
|
-
code: 200,
|
|
4380
|
-
}),
|
|
4012
|
+
T.Http({ method: "POST", uri: "/contacts/{contact_id}/segments/{segment_id}", code: 200 }),
|
|
4381
4013
|
),
|
|
4382
4014
|
).annotate({
|
|
4383
4015
|
identifier: "UpdateContactSegmentRequest",
|
|
@@ -4402,33 +4034,25 @@ export const AddContactToSegmentResponseSuccess = /*@__PURE__*/ S.suspend(() =>
|
|
|
4402
4034
|
}) as any as S.Schema<AddContactToSegmentResponseSuccess>;
|
|
4403
4035
|
|
|
4404
4036
|
/** The subscription status (opt_in or opt_out). */
|
|
4405
|
-
export type UpdateContactTopicsRequestTopicsItemSubscription =
|
|
4406
|
-
| "opt_in"
|
|
4407
|
-
| "opt_out";
|
|
4037
|
+
export type UpdateContactTopicsRequestTopicsItemSubscription = "opt_in" | "opt_out";
|
|
4408
4038
|
export const UpdateContactTopicsRequestTopicsItemSubscription = S.String;
|
|
4409
4039
|
|
|
4410
4040
|
export interface UpdateContactTopicsRequestTopicsItem {
|
|
4411
4041
|
/** The ID of the topic. */
|
|
4412
4042
|
id?: string;
|
|
4413
4043
|
/** The subscription status (opt_in or opt_out). */
|
|
4414
|
-
subscription?:
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
|
|
4418
|
-
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
id: S.optional(S.String),
|
|
4422
|
-
subscription: S.optional(
|
|
4423
|
-
UpdateContactTopicsRequestTopicsItemSubscription,
|
|
4424
|
-
),
|
|
4425
|
-
}),
|
|
4044
|
+
subscription?: UpdateContactTopicsRequestTopicsItemSubscription | (string & {});
|
|
4045
|
+
}
|
|
4046
|
+
export const UpdateContactTopicsRequestTopicsItem = /*@__PURE__*/ S.suspend(() =>
|
|
4047
|
+
S.Struct({
|
|
4048
|
+
id: S.optional(S.String),
|
|
4049
|
+
subscription: S.optional(UpdateContactTopicsRequestTopicsItemSubscription),
|
|
4050
|
+
}),
|
|
4426
4051
|
).annotate({
|
|
4427
4052
|
identifier: "UpdateContactTopicsRequestTopicsItem",
|
|
4428
4053
|
}) as any as S.Schema<UpdateContactTopicsRequestTopicsItem>;
|
|
4429
4054
|
|
|
4430
|
-
export type UpdateContactTopicsRequestTopicsList =
|
|
4431
|
-
Array<UpdateContactTopicsRequestTopicsItem>;
|
|
4055
|
+
export type UpdateContactTopicsRequestTopicsList = Array<UpdateContactTopicsRequestTopicsItem>;
|
|
4432
4056
|
export const UpdateContactTopicsRequestTopicsList = /*@__PURE__*/ S.Array(
|
|
4433
4057
|
UpdateContactTopicsRequestTopicsItem,
|
|
4434
4058
|
) as any as S.Schema<UpdateContactTopicsRequestTopicsList>;
|
|
@@ -4442,23 +4066,14 @@ export const UpdateContactTopicsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4442
4066
|
S.Struct({
|
|
4443
4067
|
contact_id: S.String.pipe(T.Label()),
|
|
4444
4068
|
topics: UpdateContactTopicsRequestTopicsList,
|
|
4445
|
-
}).pipe(
|
|
4446
|
-
T.Http({
|
|
4447
|
-
method: "PATCH",
|
|
4448
|
-
uri: "/contacts/{contact_id}/topics",
|
|
4449
|
-
code: 200,
|
|
4450
|
-
}),
|
|
4451
|
-
),
|
|
4069
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/contacts/{contact_id}/topics", code: 200 })),
|
|
4452
4070
|
).annotate({
|
|
4453
4071
|
identifier: "UpdateContactTopicsRequest",
|
|
4454
4072
|
}) as any as S.Schema<UpdateContactTopicsRequest>;
|
|
4455
4073
|
|
|
4456
4074
|
/** The subscription status. */
|
|
4457
|
-
export type UpdateContactTopicsResponseSuccessTopicsItemSubscription =
|
|
4458
|
-
|
|
4459
|
-
| "opt_out";
|
|
4460
|
-
export const UpdateContactTopicsResponseSuccessTopicsItemSubscription =
|
|
4461
|
-
S.String;
|
|
4075
|
+
export type UpdateContactTopicsResponseSuccessTopicsItemSubscription = "opt_in" | "opt_out";
|
|
4076
|
+
export const UpdateContactTopicsResponseSuccessTopicsItemSubscription = S.String;
|
|
4462
4077
|
|
|
4463
4078
|
export interface UpdateContactTopicsResponseSuccessTopicsItem {
|
|
4464
4079
|
/** The ID of the topic. */
|
|
@@ -4466,25 +4081,21 @@ export interface UpdateContactTopicsResponseSuccessTopicsItem {
|
|
|
4466
4081
|
/** The subscription status. */
|
|
4467
4082
|
subscription?: UpdateContactTopicsResponseSuccessTopicsItemSubscription;
|
|
4468
4083
|
}
|
|
4469
|
-
export const UpdateContactTopicsResponseSuccessTopicsItem =
|
|
4470
|
-
|
|
4471
|
-
S.
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
).annotate({
|
|
4478
|
-
identifier: "UpdateContactTopicsResponseSuccessTopicsItem",
|
|
4479
|
-
}) as any as S.Schema<UpdateContactTopicsResponseSuccessTopicsItem>;
|
|
4084
|
+
export const UpdateContactTopicsResponseSuccessTopicsItem = /*@__PURE__*/ S.suspend(() =>
|
|
4085
|
+
S.Struct({
|
|
4086
|
+
id: S.optional(S.String),
|
|
4087
|
+
subscription: S.optional(UpdateContactTopicsResponseSuccessTopicsItemSubscription),
|
|
4088
|
+
}),
|
|
4089
|
+
).annotate({
|
|
4090
|
+
identifier: "UpdateContactTopicsResponseSuccessTopicsItem",
|
|
4091
|
+
}) as any as S.Schema<UpdateContactTopicsResponseSuccessTopicsItem>;
|
|
4480
4092
|
|
|
4481
4093
|
/** Array of updated topic subscriptions. */
|
|
4482
4094
|
export type UpdateContactTopicsResponseSuccessTopicsList =
|
|
4483
4095
|
Array<UpdateContactTopicsResponseSuccessTopicsItem>;
|
|
4484
|
-
export const UpdateContactTopicsResponseSuccessTopicsList =
|
|
4485
|
-
|
|
4486
|
-
|
|
4487
|
-
) as any as S.Schema<UpdateContactTopicsResponseSuccessTopicsList>;
|
|
4096
|
+
export const UpdateContactTopicsResponseSuccessTopicsList = /*@__PURE__*/ S.Array(
|
|
4097
|
+
UpdateContactTopicsResponseSuccessTopicsItem,
|
|
4098
|
+
) as any as S.Schema<UpdateContactTopicsResponseSuccessTopicsList>;
|
|
4488
4099
|
|
|
4489
4100
|
export interface UpdateContactTopicsResponseSuccess {
|
|
4490
4101
|
/** The object type. */
|
|
@@ -4526,9 +4137,7 @@ export const UpdateDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4526
4137
|
capabilities: S.optional(DomainCapabilities),
|
|
4527
4138
|
tracking_subdomain: S.optional(S.String),
|
|
4528
4139
|
}).pipe(T.Http({ method: "PATCH", uri: "/domains/{domain_id}", code: 200 })),
|
|
4529
|
-
).annotate({
|
|
4530
|
-
identifier: "UpdateDomainRequest",
|
|
4531
|
-
}) as any as S.Schema<UpdateDomainRequest>;
|
|
4140
|
+
).annotate({ identifier: "UpdateDomainRequest" }) as any as S.Schema<UpdateDomainRequest>;
|
|
4532
4141
|
|
|
4533
4142
|
export interface UpdateDomainResponseSuccess {
|
|
4534
4143
|
/** The ID of the updated domain. */
|
|
@@ -4553,9 +4162,7 @@ export const UpdateEmailRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4553
4162
|
S.Struct({
|
|
4554
4163
|
email_id: S.String.pipe(T.Label()),
|
|
4555
4164
|
}).pipe(T.Http({ method: "PATCH", uri: "/emails/{email_id}", code: 200 })),
|
|
4556
|
-
).annotate({
|
|
4557
|
-
identifier: "UpdateEmailRequest",
|
|
4558
|
-
}) as any as S.Schema<UpdateEmailRequest>;
|
|
4165
|
+
).annotate({ identifier: "UpdateEmailRequest" }) as any as S.Schema<UpdateEmailRequest>;
|
|
4559
4166
|
|
|
4560
4167
|
export interface UpdateEmailOptions {
|
|
4561
4168
|
/** Schedule email to be sent later. The date should be in ISO 8601 format. */
|
|
@@ -4565,9 +4172,7 @@ export const UpdateEmailOptions = /*@__PURE__*/ S.suspend(() =>
|
|
|
4565
4172
|
S.Struct({
|
|
4566
4173
|
scheduled_at: S.optional(S.String),
|
|
4567
4174
|
}),
|
|
4568
|
-
).annotate({
|
|
4569
|
-
identifier: "UpdateEmailOptions",
|
|
4570
|
-
}) as any as S.Schema<UpdateEmailOptions>;
|
|
4175
|
+
).annotate({ identifier: "UpdateEmailOptions" }) as any as S.Schema<UpdateEmailOptions>;
|
|
4571
4176
|
|
|
4572
4177
|
export interface UpdateEventRequest {
|
|
4573
4178
|
/** The event ID (UUID) or event name. */
|
|
@@ -4580,9 +4185,7 @@ export const UpdateEventRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4580
4185
|
identifier: S.String.pipe(T.Label()),
|
|
4581
4186
|
schema: S.NullOr(S.Unknown),
|
|
4582
4187
|
}).pipe(T.Http({ method: "PATCH", uri: "/events/{identifier}", code: 200 })),
|
|
4583
|
-
).annotate({
|
|
4584
|
-
identifier: "UpdateEventRequest",
|
|
4585
|
-
}) as any as S.Schema<UpdateEventRequest>;
|
|
4188
|
+
).annotate({ identifier: "UpdateEventRequest" }) as any as S.Schema<UpdateEventRequest>;
|
|
4586
4189
|
|
|
4587
4190
|
export interface UpdateEventResponse {
|
|
4588
4191
|
/** Type of the response object. */
|
|
@@ -4595,9 +4198,7 @@ export const UpdateEventResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4595
4198
|
object: S.optional(S.String),
|
|
4596
4199
|
id: S.optional(S.String),
|
|
4597
4200
|
}),
|
|
4598
|
-
).annotate({
|
|
4599
|
-
identifier: "UpdateEventResponse",
|
|
4600
|
-
}) as any as S.Schema<UpdateEventResponse>;
|
|
4201
|
+
).annotate({ identifier: "UpdateEventResponse" }) as any as S.Schema<UpdateEventResponse>;
|
|
4601
4202
|
|
|
4602
4203
|
/** Reply-to email addresses. */
|
|
4603
4204
|
export type UpdateTemplateRequestReplyToList = Array<string>;
|
|
@@ -4641,9 +4242,7 @@ export const UpdateTemplateRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4641
4242
|
text: S.optional(S.String),
|
|
4642
4243
|
variables: S.optional(UpdateTemplateRequestVariablesList),
|
|
4643
4244
|
}).pipe(T.Http({ method: "PATCH", uri: "/templates/{id}", code: 200 })),
|
|
4644
|
-
).annotate({
|
|
4645
|
-
identifier: "UpdateTemplateRequest",
|
|
4646
|
-
}) as any as S.Schema<UpdateTemplateRequest>;
|
|
4245
|
+
).annotate({ identifier: "UpdateTemplateRequest" }) as any as S.Schema<UpdateTemplateRequest>;
|
|
4647
4246
|
|
|
4648
4247
|
export interface UpdateTemplateResponseSuccess {
|
|
4649
4248
|
/** The ID of the template. */
|
|
@@ -4681,9 +4280,7 @@ export const UpdateTopicRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4681
4280
|
description: S.optional(S.String),
|
|
4682
4281
|
visibility: S.optional(UpdateTopicRequestVisibility),
|
|
4683
4282
|
}).pipe(T.Http({ method: "PATCH", uri: "/topics/{id}", code: 200 })),
|
|
4684
|
-
).annotate({
|
|
4685
|
-
identifier: "UpdateTopicRequest",
|
|
4686
|
-
}) as any as S.Schema<UpdateTopicRequest>;
|
|
4283
|
+
).annotate({ identifier: "UpdateTopicRequest" }) as any as S.Schema<UpdateTopicRequest>;
|
|
4687
4284
|
|
|
4688
4285
|
export interface UpdateTopicResponseSuccess {
|
|
4689
4286
|
/** The ID of the topic. */
|
|
@@ -4726,12 +4323,8 @@ export const UpdateWebhookRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
4726
4323
|
endpoint: S.optional(S.String),
|
|
4727
4324
|
events: S.optional(UpdateWebhookRequestEventsList),
|
|
4728
4325
|
status: S.optional(UpdateWebhookRequestStatus),
|
|
4729
|
-
}).pipe(
|
|
4730
|
-
|
|
4731
|
-
),
|
|
4732
|
-
).annotate({
|
|
4733
|
-
identifier: "UpdateWebhookRequest",
|
|
4734
|
-
}) as any as S.Schema<UpdateWebhookRequest>;
|
|
4326
|
+
}).pipe(T.Http({ method: "PATCH", uri: "/webhooks/{webhook_id}", code: 200 })),
|
|
4327
|
+
).annotate({ identifier: "UpdateWebhookRequest" }) as any as S.Schema<UpdateWebhookRequest>;
|
|
4735
4328
|
|
|
4736
4329
|
export interface UpdateWebhookResponse {
|
|
4737
4330
|
/** The type of object. */
|
|
@@ -4744,9 +4337,7 @@ export const UpdateWebhookResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4744
4337
|
object: S.optional(S.String),
|
|
4745
4338
|
id: S.optional(S.String),
|
|
4746
4339
|
}),
|
|
4747
|
-
).annotate({
|
|
4748
|
-
identifier: "UpdateWebhookResponse",
|
|
4749
|
-
}) as any as S.Schema<UpdateWebhookResponse>;
|
|
4340
|
+
).annotate({ identifier: "UpdateWebhookResponse" }) as any as S.Schema<UpdateWebhookResponse>;
|
|
4750
4341
|
|
|
4751
4342
|
export interface VerifyDomainRequest {
|
|
4752
4343
|
/** The ID of the domain. */
|
|
@@ -4755,12 +4346,8 @@ export interface VerifyDomainRequest {
|
|
|
4755
4346
|
export const VerifyDomainRequest = /*@__PURE__*/ S.suspend(() =>
|
|
4756
4347
|
S.Struct({
|
|
4757
4348
|
domain_id: S.String.pipe(T.Label()),
|
|
4758
|
-
}).pipe(
|
|
4759
|
-
|
|
4760
|
-
),
|
|
4761
|
-
).annotate({
|
|
4762
|
-
identifier: "VerifyDomainRequest",
|
|
4763
|
-
}) as any as S.Schema<VerifyDomainRequest>;
|
|
4349
|
+
}).pipe(T.Http({ method: "POST", uri: "/domains/{domain_id}/verify", code: 200 })),
|
|
4350
|
+
).annotate({ identifier: "VerifyDomainRequest" }) as any as S.Schema<VerifyDomainRequest>;
|
|
4764
4351
|
|
|
4765
4352
|
export interface VerifyDomainResponse {
|
|
4766
4353
|
/** The type of object. */
|
|
@@ -4773,9 +4360,7 @@ export const VerifyDomainResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
4773
4360
|
object: S.optional(S.String),
|
|
4774
4361
|
id: S.optional(S.String),
|
|
4775
4362
|
}),
|
|
4776
|
-
).annotate({
|
|
4777
|
-
identifier: "VerifyDomainResponse",
|
|
4778
|
-
}) as any as S.Schema<VerifyDomainResponse>;
|
|
4363
|
+
).annotate({ identifier: "VerifyDomainResponse" }) as any as S.Schema<VerifyDomainResponse>;
|
|
4779
4364
|
|
|
4780
4365
|
export type CancelEmailError = ResendOpError;
|
|
4781
4366
|
/** Cancel the schedule of the e-mail. */
|
|
@@ -5274,18 +4859,14 @@ export const getDomain: API.OperationMethod<
|
|
|
5274
4859
|
|
|
5275
4860
|
export type GetEmailError = ResendOpError;
|
|
5276
4861
|
/** Retrieve a single email */
|
|
5277
|
-
export const getEmail: API.OperationMethod<
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
errors: [UnknownResendError],
|
|
5286
|
-
protocol: ResendProtocol,
|
|
5287
|
-
retry: Retry.Retry,
|
|
5288
|
-
}));
|
|
4862
|
+
export const getEmail: API.OperationMethod<GetEmailRequest, Email, GetEmailError, ResendOpContext> =
|
|
4863
|
+
/*@__PURE__*/ API.make(() => ({
|
|
4864
|
+
input: GetEmailRequest,
|
|
4865
|
+
output: Email,
|
|
4866
|
+
errors: [UnknownResendError],
|
|
4867
|
+
protocol: ResendProtocol,
|
|
4868
|
+
retry: Retry.Retry,
|
|
4869
|
+
}));
|
|
5289
4870
|
|
|
5290
4871
|
export type GetEmailAttachmentError = ResendOpError;
|
|
5291
4872
|
/** Retrieve a single attachment for a sent email */
|
|
@@ -5334,33 +4915,25 @@ export const getEmailReceivingAttachment: API.OperationMethod<
|
|
|
5334
4915
|
|
|
5335
4916
|
export type GetEventError = ResendOpError;
|
|
5336
4917
|
/** Retrieve a single event */
|
|
5337
|
-
export const getEvent: API.OperationMethod<
|
|
5338
|
-
|
|
5339
|
-
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
errors: [UnknownResendError],
|
|
5346
|
-
protocol: ResendProtocol,
|
|
5347
|
-
retry: Retry.Retry,
|
|
5348
|
-
}));
|
|
4918
|
+
export const getEvent: API.OperationMethod<GetEventRequest, Event, GetEventError, ResendOpContext> =
|
|
4919
|
+
/*@__PURE__*/ API.make(() => ({
|
|
4920
|
+
input: GetEventRequest,
|
|
4921
|
+
output: Event,
|
|
4922
|
+
errors: [UnknownResendError],
|
|
4923
|
+
protocol: ResendProtocol,
|
|
4924
|
+
retry: Retry.Retry,
|
|
4925
|
+
}));
|
|
5349
4926
|
|
|
5350
4927
|
export type GetLogError = ResendOpError;
|
|
5351
4928
|
/** Retrieve a single log */
|
|
5352
|
-
export const getLog: API.OperationMethod<
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
errors: [UnknownResendError],
|
|
5361
|
-
protocol: ResendProtocol,
|
|
5362
|
-
retry: Retry.Retry,
|
|
5363
|
-
}));
|
|
4929
|
+
export const getLog: API.OperationMethod<GetLogRequest, Log, GetLogError, ResendOpContext> =
|
|
4930
|
+
/*@__PURE__*/ API.make(() => ({
|
|
4931
|
+
input: GetLogRequest,
|
|
4932
|
+
output: Log,
|
|
4933
|
+
errors: [UnknownResendError],
|
|
4934
|
+
protocol: ResendProtocol,
|
|
4935
|
+
retry: Retry.Retry,
|
|
4936
|
+
}));
|
|
5364
4937
|
|
|
5365
4938
|
export type GetSegmentError = ResendOpError;
|
|
5366
4939
|
/** Retrieve a single segment */
|