samva 0.29.1 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +23 -5
- package/README.md +166 -133
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/client/client/client.gen.js +1 -2
- package/dist/client/client/utils.gen.js +1 -2
- package/dist/client/client.gen.js +1 -2
- package/dist/client/core/auth.gen.js +1 -2
- package/dist/client/core/bodySerializer.gen.js +1 -2
- package/dist/client/core/params.gen.js +1 -2
- package/dist/client/core/pathSerializer.gen.js +1 -2
- package/dist/client/core/serverSentEvents.gen.js +1 -2
- package/dist/client/core/utils.gen.js +1 -2
- package/dist/client/sdk.gen.d.ts +218 -192
- package/dist/client/sdk.gen.js +2397 -1154
- package/dist/client/types.gen.d.ts +767 -376
- package/dist/client-attribution.js +1 -2
- package/dist/effect/agents.d.ts +33 -11
- package/dist/effect/agents.js +1 -2
- package/dist/effect/analytics.d.ts +6 -6
- package/dist/effect/analytics.js +1 -2
- package/dist/effect/api-keys.d.ts +8 -8
- package/dist/effect/api-keys.js +1 -2
- package/dist/effect/attachments.d.ts +4 -4
- package/dist/effect/attachments.js +1 -2
- package/dist/effect/brands.d.ts +6 -6
- package/dist/effect/brands.js +1 -2
- package/dist/effect/campaigns.d.ts +15 -16
- package/dist/effect/campaigns.js +1 -2
- package/dist/effect/categories.js +1 -2
- package/dist/effect/client.js +1 -2
- package/dist/effect/contact-groups.d.ts +10 -10
- package/dist/effect/contact-groups.js +1 -2
- package/dist/effect/contacts.d.ts +23 -24
- package/dist/effect/contacts.js +1 -2
- package/dist/effect/conversations.d.ts +16 -13
- package/dist/effect/conversations.js +1 -2
- package/dist/effect/custom-fields.d.ts +4 -4
- package/dist/effect/custom-fields.js +1 -2
- package/dist/effect/email.d.ts +61 -63
- package/dist/effect/email.js +1 -2
- package/dist/effect/events.d.ts +2 -4
- package/dist/effect/events.js +1 -2
- package/dist/effect/extension-installations.d.ts +9 -9
- package/dist/effect/extension-installations.js +1 -2
- package/dist/effect/extensions.d.ts +5 -5
- package/dist/effect/extensions.js +1 -2
- package/dist/effect/feedback.d.ts +1 -1
- package/dist/effect/feedback.js +1 -2
- package/dist/effect/generated/agents.d.ts +264 -22
- package/dist/effect/generated/agents.js +2 -3
- package/dist/effect/generated/analytics.js +1 -2
- package/dist/effect/generated/api-keys.js +1 -2
- package/dist/effect/generated/attachments.js +1 -2
- package/dist/effect/generated/brands.js +1 -2
- package/dist/effect/generated/campaigns.d.ts +160 -155
- package/dist/effect/generated/campaigns.js +7 -9
- package/dist/effect/generated/contact-events.js +1 -2
- package/dist/effect/generated/contact-groups.d.ts +26 -26
- package/dist/effect/generated/contact-groups.js +22 -19
- package/dist/effect/generated/contacts.d.ts +119 -90
- package/dist/effect/generated/contacts.js +32 -32
- package/dist/effect/generated/conversations.d.ts +26 -23
- package/dist/effect/generated/conversations.js +10 -10
- package/dist/effect/generated/custom-fields.d.ts +6 -6
- package/dist/effect/generated/custom-fields.js +3 -4
- package/dist/effect/generated/email.d.ts +38 -38
- package/dist/effect/generated/email.js +13 -14
- package/dist/effect/generated/events.d.ts +18 -9
- package/dist/effect/generated/events.js +8 -6
- package/dist/effect/generated/extension-installations.d.ts +2 -2
- package/dist/effect/generated/extension-installations.js +6 -3
- package/dist/effect/generated/extensions.js +1 -2
- package/dist/effect/generated/feedback.js +1 -2
- package/dist/effect/generated/index.d.ts +7 -5
- package/dist/effect/generated/journeys.js +1 -2
- package/dist/effect/generated/mailboxes.d.ts +44 -44
- package/dist/effect/generated/mailboxes.js +17 -18
- package/dist/effect/generated/media.js +1 -2
- package/dist/effect/generated/messages.d.ts +42 -42
- package/dist/effect/generated/messages.js +3 -4
- package/dist/effect/generated/namespaces.js +1 -2
- package/dist/effect/generated/{publication-domains.d.ts → newsletter-domains.d.ts} +304 -80
- package/dist/effect/generated/newsletter-domains.js +218 -0
- package/dist/effect/generated/{topic-issues.d.ts → newsletter-issues.d.ts} +330 -288
- package/dist/effect/generated/{topic-issues.js → newsletter-issues.js} +255 -246
- package/dist/effect/generated/newsletters.d.ts +741 -0
- package/dist/effect/generated/newsletters.js +143 -0
- package/dist/effect/generated/operations.js +1 -2
- package/dist/effect/generated/organizations.d.ts +9 -9
- package/dist/effect/generated/organizations.js +4 -5
- package/dist/effect/generated/scheduled-messages.d.ts +174 -169
- package/dist/effect/generated/scheduled-messages.js +7 -7
- package/dist/effect/generated/shared.d.ts +276 -208
- package/dist/effect/generated/shared.js +50 -36
- package/dist/effect/generated/subscriptions.js +1 -2
- package/dist/effect/generated/templates.d.ts +118 -67
- package/dist/effect/generated/templates.js +43 -35
- package/dist/effect/generated/topic-forms.d.ts +79 -19
- package/dist/effect/generated/topic-forms.js +13 -14
- package/dist/effect/generated/topics.d.ts +27 -65
- package/dist/effect/generated/topics.js +13 -20
- package/dist/effect/generated/webhooks.d.ts +9 -9
- package/dist/effect/generated/webhooks.js +4 -5
- package/dist/effect/generated/whoami.js +1 -2
- package/dist/effect/generated-metadata.d.ts +475 -70
- package/dist/effect/generated-metadata.js +642 -432
- package/dist/effect/index.d.ts +3 -2
- package/dist/effect/index.js +4 -3
- package/dist/effect/internal/client.d.ts +5 -0
- package/dist/effect/internal/client.js +9 -5
- package/dist/effect/internal/email-sender.d.ts +1 -1
- package/dist/effect/internal/email-sender.js +4 -3
- package/dist/effect/internal/mailbox-events.js +1 -2
- package/dist/effect/internal/operation.d.ts +4 -15
- package/dist/effect/internal/operation.js +21 -33
- package/dist/effect/internal/send.js +2 -3
- package/dist/effect/journeys.d.ts +14 -14
- package/dist/effect/journeys.js +1 -2
- package/dist/effect/mailboxes.d.ts +60 -70
- package/dist/effect/mailboxes.js +1 -2
- package/dist/effect/media.d.ts +5 -5
- package/dist/effect/media.js +1 -2
- package/dist/effect/messages.d.ts +9 -9
- package/dist/effect/messages.js +1 -2
- package/dist/effect/namespaces.d.ts +8 -8
- package/dist/effect/namespaces.js +1 -2
- package/dist/effect/newsletter-domains.d.ts +71 -0
- package/dist/effect/newsletter-domains.js +18 -0
- package/dist/effect/{topic-issues.d.ts → newsletter-issues.d.ts} +11 -15
- package/dist/effect/newsletter-issues.js +32 -0
- package/dist/effect/newsletters.d.ts +22 -0
- package/dist/effect/newsletters.js +20 -0
- package/dist/effect/operations.d.ts +3 -3
- package/dist/effect/operations.js +1 -2
- package/dist/effect/organizations.d.ts +8 -10
- package/dist/effect/organizations.js +1 -2
- package/dist/effect/pagination.js +1 -2
- package/dist/effect/retry.d.ts +4 -4
- package/dist/effect/retry.js +5 -6
- package/dist/effect/runtime.js +1 -2
- package/dist/effect/scheduled-messages.d.ts +5 -6
- package/dist/effect/scheduled-messages.js +1 -2
- package/dist/effect/subscriptions.d.ts +1 -1
- package/dist/effect/subscriptions.js +1 -2
- package/dist/effect/templates.d.ts +34 -43
- package/dist/effect/templates.js +1 -2
- package/dist/effect/topic-forms.d.ts +5 -5
- package/dist/effect/topic-forms.js +1 -2
- package/dist/effect/topics.d.ts +9 -13
- package/dist/effect/topics.js +1 -2
- package/dist/effect/webhooks.d.ts +11 -11
- package/dist/effect/webhooks.js +1 -2
- package/dist/effect/whoami.d.ts +1 -1
- package/dist/effect/whoami.js +1 -2
- package/dist/index.js +2 -2
- package/dist/inline-attachments.js +1 -2
- package/dist/mailbox/dispatch.d.ts +10 -0
- package/dist/mailbox/dispatch.js +66 -0
- package/dist/mailbox/index.d.ts +17 -0
- package/dist/mailbox/index.js +30 -0
- package/dist/mailbox/test.d.ts +25 -0
- package/dist/mailbox/test.js +174 -0
- package/dist/mailbox/types.d.ts +184 -0
- package/dist/mailbox/webhook.d.ts +10 -0
- package/dist/mailbox/webhook.js +41 -0
- package/dist/mailbox-events.js +1 -2
- package/dist/normalize.js +1 -2
- package/dist/package.js +2 -3
- package/dist/promises/client.d.ts +215 -0
- package/dist/promises/client.js +324 -0
- package/dist/promises/errors.gen.js +1 -2
- package/dist/promises/index.d.ts +2 -196
- package/dist/promises/index.js +3 -295
- package/dist/promises/request.d.ts +15 -0
- package/dist/promises/request.js +75 -0
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-policy.d.ts +3 -0
- package/dist/request-policy.js +16 -0
- package/dist/service-map.d.ts +78 -47
- package/dist/service-map.js +52 -32
- package/package.json +34 -18
- package/dist/effect/generated/publication-domains.js +0 -163
- package/dist/effect/publication-domains.d.ts +0 -14
- package/dist/effect/publication-domains.js +0 -17
- package/dist/effect/topic-issues.js +0 -33
|
@@ -580,13 +580,13 @@ export type MailboxDraft = {
|
|
|
580
580
|
export type MailboxDraftState = "saved" | "locked" | "sent";
|
|
581
581
|
export type UpdateMailboxDraftPayload = {
|
|
582
582
|
to?: Array<string> | null | undefined;
|
|
583
|
-
cc?: Array<string> | null |
|
|
584
|
-
bcc?: Array<string> | null |
|
|
585
|
-
replyTo?: Array<string> | null |
|
|
586
|
-
subject?: string | null |
|
|
587
|
-
text?: string | null |
|
|
588
|
-
html?: string | null |
|
|
589
|
-
attachments?: Array<EmailAttachment> | null |
|
|
583
|
+
cc?: Array<string> | null | undefined;
|
|
584
|
+
bcc?: Array<string> | null | undefined;
|
|
585
|
+
replyTo?: Array<string> | null | undefined;
|
|
586
|
+
subject?: string | null | undefined;
|
|
587
|
+
text?: string | null | undefined;
|
|
588
|
+
html?: string | null | undefined;
|
|
589
|
+
attachments?: Array<EmailAttachment> | null | undefined;
|
|
590
590
|
};
|
|
591
591
|
export type CreateMailboxDraftPayload = {
|
|
592
592
|
channel?: "email" | null | undefined;
|
|
@@ -759,12 +759,12 @@ export type MailboxNote = {
|
|
|
759
759
|
};
|
|
760
760
|
export type UpdateMailboxNotePayload = {
|
|
761
761
|
body?: string | null | undefined;
|
|
762
|
-
color?: string | null |
|
|
762
|
+
color?: string | null | undefined;
|
|
763
763
|
pinned?: boolean | null | undefined;
|
|
764
764
|
};
|
|
765
765
|
export type CreateMailboxNotePayload = {
|
|
766
766
|
body: string;
|
|
767
|
-
color?: string | null |
|
|
767
|
+
color?: string | null | undefined;
|
|
768
768
|
pinned?: boolean | null | undefined;
|
|
769
769
|
};
|
|
770
770
|
export type MailboxNotePage = {
|
|
@@ -814,7 +814,7 @@ export type UpdateMailboxThreadPayload = {
|
|
|
814
814
|
priority?: MailboxThreadPriority | null | undefined;
|
|
815
815
|
read?: boolean | null | undefined;
|
|
816
816
|
starred?: boolean | null | undefined;
|
|
817
|
-
snoozedUntil?: string | null |
|
|
817
|
+
snoozedUntil?: string | null | undefined;
|
|
818
818
|
};
|
|
819
819
|
export type MailboxThread = {
|
|
820
820
|
id: MailboxThreadId;
|
|
@@ -882,12 +882,12 @@ export type MailboxLabel = {
|
|
|
882
882
|
};
|
|
883
883
|
export type UpdateMailboxLabelPayload = {
|
|
884
884
|
displayName?: string | null | undefined;
|
|
885
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
885
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
886
886
|
};
|
|
887
887
|
export type CreateMailboxLabelPayload = {
|
|
888
888
|
slug: string;
|
|
889
889
|
displayName: string;
|
|
890
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
890
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
891
891
|
};
|
|
892
892
|
export type MailboxLabelList = {
|
|
893
893
|
items: Array<MailboxLabel>;
|
|
@@ -913,7 +913,7 @@ export type MailboxPolicyOutcomeKind = "requireApproval" | "deny";
|
|
|
913
913
|
export type UpdateMailboxPolicyPayload = {
|
|
914
914
|
name?: string | null | undefined;
|
|
915
915
|
outcome?: MailboxPolicyOutcomeKind | null | undefined;
|
|
916
|
-
reason?: string | null |
|
|
916
|
+
reason?: string | null | undefined;
|
|
917
917
|
enabled?: boolean | null | undefined;
|
|
918
918
|
};
|
|
919
919
|
export type CreateMailboxPolicyPayload = {
|
|
@@ -1004,7 +1004,7 @@ export type MailboxMetadataWritable = {
|
|
|
1004
1004
|
};
|
|
1005
1005
|
export type MailboxStatus = "active" | "paused";
|
|
1006
1006
|
export type UpdateMailboxEndpointPayload = {
|
|
1007
|
-
displayName?: string | null |
|
|
1007
|
+
displayName?: string | null | undefined;
|
|
1008
1008
|
default?: true | null | undefined;
|
|
1009
1009
|
};
|
|
1010
1010
|
export type CreateMailboxEndpointPayload = {
|
|
@@ -1326,9 +1326,9 @@ export type UpdateWebhookPayload = {
|
|
|
1326
1326
|
name?: string | null | undefined;
|
|
1327
1327
|
url?: string | null | undefined;
|
|
1328
1328
|
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
|
|
1329
|
-
channels?: Array<"email"> | null |
|
|
1330
|
-
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null |
|
|
1331
|
-
namespaceId?: NamespaceId | null |
|
|
1329
|
+
channels?: Array<"email"> | null | undefined;
|
|
1330
|
+
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
1331
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
1332
1332
|
headers?: {
|
|
1333
1333
|
[key: string]: string;
|
|
1334
1334
|
} | null | undefined;
|
|
@@ -1578,14 +1578,14 @@ export type UpdateTemplatePayload = {
|
|
|
1578
1578
|
name?: string | null | undefined;
|
|
1579
1579
|
slug?: string | null | undefined;
|
|
1580
1580
|
entryPath?: string | null | undefined;
|
|
1581
|
-
description?: string | null |
|
|
1582
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
1583
|
-
fromDefault?: TemplateFromDefault | null |
|
|
1584
|
-
replyToDefault?: Array<string> | null |
|
|
1581
|
+
description?: string | null | undefined;
|
|
1582
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
1583
|
+
fromDefault?: TemplateFromDefault | null | undefined;
|
|
1584
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
1585
1585
|
/**
|
|
1586
1586
|
* Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
|
|
1587
1587
|
*/
|
|
1588
|
-
trackingDefault?: TemplateTrackingDefault | null |
|
|
1588
|
+
trackingDefault?: TemplateTrackingDefault | null | undefined;
|
|
1589
1589
|
isActive?: boolean | null | undefined;
|
|
1590
1590
|
/**
|
|
1591
1591
|
* Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
|
|
@@ -1597,8 +1597,8 @@ export type AddTemplateEntryPayload = {
|
|
|
1597
1597
|
entryPath: string;
|
|
1598
1598
|
name: string;
|
|
1599
1599
|
slug: string;
|
|
1600
|
-
description?: string | null |
|
|
1601
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
1600
|
+
description?: string | null | undefined;
|
|
1601
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
1602
1602
|
};
|
|
1603
1603
|
export type TemplateFromWebsite = {
|
|
1604
1604
|
template: Template;
|
|
@@ -1624,10 +1624,6 @@ export type CreateTemplateFromWebsitePayload = {
|
|
|
1624
1624
|
* The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
|
|
1625
1625
|
*/
|
|
1626
1626
|
namespaceId?: NamespaceId | null | undefined;
|
|
1627
|
-
/**
|
|
1628
|
-
* Repeating a request with the same key, address, name, and namespace returns the project the first one created, even if the site has since stopped answering. The same key with another address, name, or namespace is refused with a 409.
|
|
1629
|
-
*/
|
|
1630
|
-
idempotencyKey: string;
|
|
1631
1627
|
};
|
|
1632
1628
|
export type CreateTemplatePayload = {
|
|
1633
1629
|
name: string;
|
|
@@ -1635,8 +1631,8 @@ export type CreateTemplatePayload = {
|
|
|
1635
1631
|
slug?: string | null | undefined;
|
|
1636
1632
|
galleryTemplateId?: string | null | undefined;
|
|
1637
1633
|
useBrand?: boolean | null | undefined;
|
|
1638
|
-
description?: string | null |
|
|
1639
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
1634
|
+
description?: string | null | undefined;
|
|
1635
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
1640
1636
|
isActive?: boolean | null | undefined;
|
|
1641
1637
|
/**
|
|
1642
1638
|
* The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
|
|
@@ -1646,7 +1642,6 @@ export type CreateTemplatePayload = {
|
|
|
1646
1642
|
* Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key.
|
|
1647
1643
|
*/
|
|
1648
1644
|
shared?: boolean | null | undefined;
|
|
1649
|
-
idempotencyKey: string;
|
|
1650
1645
|
};
|
|
1651
1646
|
export type TemplateFamily = {
|
|
1652
1647
|
id: TemplateFamilyId;
|
|
@@ -1705,56 +1700,78 @@ export type AnalyticsQueryError = {
|
|
|
1705
1700
|
_tag: "AnalyticsQueryError";
|
|
1706
1701
|
message: string;
|
|
1707
1702
|
};
|
|
1708
|
-
export type
|
|
1703
|
+
export type NewsletterId = string;
|
|
1704
|
+
export type PublicationDomainPage = {
|
|
1705
|
+
items: Array<{
|
|
1706
|
+
organizationId: OrganizationId;
|
|
1707
|
+
topicId: TopicId;
|
|
1708
|
+
hostname: string;
|
|
1709
|
+
canonicalHostname: string;
|
|
1710
|
+
phase: "pending" | "active" | "removing" | "removed" | "conflict";
|
|
1711
|
+
active: boolean;
|
|
1712
|
+
hostnameStatus: string | null;
|
|
1713
|
+
sslStatus: string | null;
|
|
1714
|
+
cname: {
|
|
1715
|
+
type: "CNAME" | "TXT";
|
|
1716
|
+
name: string;
|
|
1717
|
+
value: string;
|
|
1718
|
+
};
|
|
1719
|
+
verificationRecords: Array<{
|
|
1720
|
+
type: "CNAME" | "TXT";
|
|
1721
|
+
name: string;
|
|
1722
|
+
value: string;
|
|
1723
|
+
}>;
|
|
1724
|
+
verificationErrors: Array<string>;
|
|
1725
|
+
}>;
|
|
1726
|
+
nextCursor: string | null;
|
|
1727
|
+
};
|
|
1728
|
+
export type PublicationDomainCursor = string;
|
|
1729
|
+
export type NewsletterIssueRenderPayload = {
|
|
1709
1730
|
path: string;
|
|
1710
1731
|
expectedRevision: string;
|
|
1711
1732
|
fixture: string;
|
|
1712
1733
|
target: "email" | "web";
|
|
1713
1734
|
};
|
|
1714
|
-
export type
|
|
1735
|
+
export type NewsletterIssueCheckPayload = {
|
|
1715
1736
|
path: string;
|
|
1716
1737
|
expectedRevision: string;
|
|
1717
1738
|
};
|
|
1718
|
-
export type
|
|
1739
|
+
export type NewsletterIssueSavePayload = {
|
|
1719
1740
|
expectedRevision: string;
|
|
1720
1741
|
expectedHead: string;
|
|
1721
1742
|
message: string;
|
|
1722
|
-
idempotencyKey: string;
|
|
1723
1743
|
};
|
|
1724
|
-
export type
|
|
1744
|
+
export type NewsletterIssueRemovePayload = {
|
|
1725
1745
|
path: string;
|
|
1726
|
-
idempotencyKey: string;
|
|
1727
1746
|
expectedRevision: string;
|
|
1728
1747
|
};
|
|
1729
|
-
export type
|
|
1748
|
+
export type NewsletterIssueUpdatePayload = {
|
|
1730
1749
|
path: string;
|
|
1731
1750
|
content: string;
|
|
1732
|
-
idempotencyKey: string;
|
|
1733
1751
|
expectedRevision: string;
|
|
1734
1752
|
};
|
|
1735
|
-
export type
|
|
1753
|
+
export type NewsletterIssueCreatePayload = {
|
|
1736
1754
|
path: string;
|
|
1737
1755
|
content: string;
|
|
1738
|
-
idempotencyKey: string;
|
|
1739
1756
|
expectedRevision?: string | null | undefined;
|
|
1740
1757
|
};
|
|
1741
|
-
export type
|
|
1758
|
+
export type NewsletterIssueDocument = {
|
|
1742
1759
|
projectId: TemplateProjectId;
|
|
1743
1760
|
revision: string;
|
|
1744
1761
|
path: string;
|
|
1745
1762
|
content: string;
|
|
1746
1763
|
};
|
|
1747
|
-
export type
|
|
1764
|
+
export type NewsletterIssueList = {
|
|
1748
1765
|
projectId: TemplateProjectId | null;
|
|
1749
1766
|
revision: string | null;
|
|
1750
|
-
items: Array<
|
|
1767
|
+
items: Array<NewsletterIssueListItem>;
|
|
1751
1768
|
};
|
|
1752
|
-
export type
|
|
1769
|
+
export type NewsletterIssueListItem = {
|
|
1753
1770
|
path: string;
|
|
1754
1771
|
title: string | null;
|
|
1755
|
-
latestSend:
|
|
1772
|
+
latestSend: NewsletterIssueSend | null;
|
|
1756
1773
|
};
|
|
1757
|
-
export type
|
|
1774
|
+
export type NewsletterIssueSend = {
|
|
1758
1775
|
campaignId: CampaignId;
|
|
1759
1776
|
run: CampaignLatestRun;
|
|
1760
1777
|
};
|
|
@@ -1770,6 +1787,30 @@ export type CampaignLatestRun = {
|
|
|
1770
1787
|
pendingCount: number;
|
|
1771
1788
|
estimatedCompletionAt: string | null;
|
|
1772
1789
|
};
|
|
1790
|
+
export type Newsletter = {
|
|
1791
|
+
id: NewsletterId;
|
|
1792
|
+
topicId: TopicId;
|
|
1793
|
+
namespaceId: NamespaceId | null;
|
|
1794
|
+
name: string;
|
|
1795
|
+
description: string | null;
|
|
1796
|
+
issueProjectId: TemplateProjectId | null;
|
|
1797
|
+
archiveEnabled: boolean;
|
|
1798
|
+
publicationSlug: string | null;
|
|
1799
|
+
createdAt: string;
|
|
1800
|
+
updatedAt: string;
|
|
1801
|
+
};
|
|
1802
|
+
export type NewsletterUpdatePayload = {
|
|
1803
|
+
archiveEnabled?: boolean | null | undefined;
|
|
1804
|
+
publicationSlug?: string | null | undefined;
|
|
1805
|
+
};
|
|
1806
|
+
export type NewsletterCreatePayload = {
|
|
1807
|
+
topicId?: TopicId | null | undefined;
|
|
1808
|
+
name?: string | null | undefined;
|
|
1809
|
+
description?: string | null | undefined;
|
|
1810
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
1811
|
+
archiveEnabled?: boolean | null | undefined;
|
|
1812
|
+
publicationSlug?: string | null | undefined;
|
|
1813
|
+
};
|
|
1773
1814
|
export type TopicForm = {
|
|
1774
1815
|
id: string;
|
|
1775
1816
|
publicKey: string;
|
|
@@ -1790,7 +1831,7 @@ export type TopicFormUpdatePayload = {
|
|
|
1790
1831
|
confirmationMessage?: string | null | undefined;
|
|
1791
1832
|
successTitle?: string | null | undefined;
|
|
1792
1833
|
successMessage?: string | null | undefined;
|
|
1793
|
-
redirectUrl?: string | null |
|
|
1834
|
+
redirectUrl?: string | null | undefined;
|
|
1794
1835
|
};
|
|
1795
1836
|
export type TopicFormCreatePayload = {
|
|
1796
1837
|
allowedOrigins: Array<string>;
|
|
@@ -1844,8 +1885,6 @@ export type Topic = {
|
|
|
1844
1885
|
defaultSenderId: EmailSenderId | null;
|
|
1845
1886
|
replyMailboxId: MailboxId | null;
|
|
1846
1887
|
templateId: TemplateId | null;
|
|
1847
|
-
archiveEnabled: boolean;
|
|
1848
|
-
publicationSlug: string | null;
|
|
1849
1888
|
subscriptions: TopicSubscriptionCounts;
|
|
1850
1889
|
createdAt: string;
|
|
1851
1890
|
updatedAt: string;
|
|
@@ -1859,24 +1898,20 @@ export type TopicSubscriptionCounts = {
|
|
|
1859
1898
|
export type EmailSenderId = string;
|
|
1860
1899
|
export type TopicUpdatePayload = {
|
|
1861
1900
|
name?: string | null | undefined;
|
|
1862
|
-
description?: string | null |
|
|
1901
|
+
description?: string | null | undefined;
|
|
1863
1902
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
1868
|
-
templateId?: TemplateId | null | null | undefined;
|
|
1903
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
1904
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
1905
|
+
templateId?: TemplateId | null | undefined;
|
|
1869
1906
|
};
|
|
1870
1907
|
export type TopicCreatePayload = {
|
|
1871
1908
|
name: string;
|
|
1872
|
-
description?: string | null |
|
|
1873
|
-
namespaceId?: NamespaceId | null |
|
|
1909
|
+
description?: string | null | undefined;
|
|
1910
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
1874
1911
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
1879
|
-
templateId?: TemplateId | null | null | undefined;
|
|
1912
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
1913
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
1914
|
+
templateId?: TemplateId | null | undefined;
|
|
1880
1915
|
};
|
|
1881
1916
|
export type TopicSubscriptionCheck = {
|
|
1882
1917
|
contactId: ContactId | null;
|
|
@@ -2025,7 +2060,7 @@ export type Weekday = "monday" | "tuesday" | "wednesday" | "thursday" | "friday"
|
|
|
2025
2060
|
export type TimeZone = string;
|
|
2026
2061
|
export type AgentModel = "standard" | "max";
|
|
2027
2062
|
export type AgentMode = "live" | "supervised";
|
|
2028
|
-
export type
|
|
2063
|
+
export type IntegrationId = string;
|
|
2029
2064
|
export type AgentId = string;
|
|
2030
2065
|
export type AgentVersionPage = {
|
|
2031
2066
|
items: Array<AgentVersionSummary>;
|
|
@@ -2041,6 +2076,17 @@ export type PublishAgentResponse = {
|
|
|
2041
2076
|
version: AgentVersion;
|
|
2042
2077
|
published: boolean;
|
|
2043
2078
|
};
|
|
2079
|
+
export type Agent = {
|
|
2080
|
+
id: AgentId;
|
|
2081
|
+
name: string;
|
|
2082
|
+
namespaceId: NamespaceId | null;
|
|
2083
|
+
revision: string;
|
|
2084
|
+
draft: AgentDefinition;
|
|
2085
|
+
publishedVersion: number | null;
|
|
2086
|
+
publishedAt: string | null;
|
|
2087
|
+
createdAt: string;
|
|
2088
|
+
updatedAt: string;
|
|
2089
|
+
};
|
|
2044
2090
|
export type PublishAgentPayload = {
|
|
2045
2091
|
revision: string;
|
|
2046
2092
|
};
|
|
@@ -2052,7 +2098,7 @@ export type AgentDefinition = {
|
|
|
2052
2098
|
instructions: string;
|
|
2053
2099
|
knowledge: string;
|
|
2054
2100
|
endpointIds: Array<MailboxEndpointId>;
|
|
2055
|
-
|
|
2101
|
+
integrations: Array<AgentIntegrationGrant>;
|
|
2056
2102
|
mode: AgentMode;
|
|
2057
2103
|
model: AgentModel;
|
|
2058
2104
|
workingHours: WorkingHours | null;
|
|
@@ -2067,6 +2113,19 @@ export type WorkingHoursRange = {
|
|
|
2067
2113
|
opens: ClockTime;
|
|
2068
2114
|
closes: ClockTime;
|
|
2069
2115
|
};
|
|
2116
|
+
export type AgentIntegrationGrant = {
|
|
2117
|
+
integrationId: IntegrationId;
|
|
2118
|
+
tools: AgentToolScope;
|
|
2119
|
+
requireApproval: Array<string>;
|
|
2120
|
+
};
|
|
2121
|
+
export type AgentToolScope = {
|
|
2122
|
+
kind: "all";
|
|
2123
|
+
} | {
|
|
2124
|
+
kind: "readOnly";
|
|
2125
|
+
} | {
|
|
2126
|
+
kind: "selected";
|
|
2127
|
+
names: Array<string>;
|
|
2128
|
+
};
|
|
2070
2129
|
export type DeleteAgentResponse = {
|
|
2071
2130
|
id: AgentId;
|
|
2072
2131
|
deleted: true;
|
|
@@ -2075,17 +2134,6 @@ export type UpdateAgentPayload = {
|
|
|
2075
2134
|
name: AgentName;
|
|
2076
2135
|
};
|
|
2077
2136
|
export type AgentName = string;
|
|
2078
|
-
export type Agent = {
|
|
2079
|
-
id: AgentId;
|
|
2080
|
-
name: string;
|
|
2081
|
-
namespaceId: NamespaceId | null;
|
|
2082
|
-
revision: string;
|
|
2083
|
-
draft: AgentDefinition;
|
|
2084
|
-
publishedVersion: number | null;
|
|
2085
|
-
publishedAt: string | null;
|
|
2086
|
-
createdAt: string;
|
|
2087
|
-
updatedAt: string;
|
|
2088
|
-
};
|
|
2089
2137
|
export type CreateAgentPayload = {
|
|
2090
2138
|
name: AgentName;
|
|
2091
2139
|
/**
|
|
@@ -2358,6 +2406,17 @@ export type JourneyCustomEventTrigger = {
|
|
|
2358
2406
|
type: "event";
|
|
2359
2407
|
eventName: JourneyCustomEventName;
|
|
2360
2408
|
};
|
|
2409
|
+
export type Journey = {
|
|
2410
|
+
id: JourneyId;
|
|
2411
|
+
name: string;
|
|
2412
|
+
status: JourneyStatus;
|
|
2413
|
+
revision: string;
|
|
2414
|
+
draft: JourneyDefinition;
|
|
2415
|
+
publishedVersion: number | null;
|
|
2416
|
+
publishedAt: string | null;
|
|
2417
|
+
createdAt: string;
|
|
2418
|
+
updatedAt: string;
|
|
2419
|
+
};
|
|
2361
2420
|
export type JourneyStatus = "draft" | "active" | "paused" | "archived";
|
|
2362
2421
|
export type PublishJourneyPayload = {
|
|
2363
2422
|
revision: string;
|
|
@@ -2374,17 +2433,6 @@ export type UpdateJourneyPayload = {
|
|
|
2374
2433
|
name: JourneyName;
|
|
2375
2434
|
};
|
|
2376
2435
|
export type JourneyName = string;
|
|
2377
|
-
export type Journey = {
|
|
2378
|
-
id: JourneyId;
|
|
2379
|
-
name: string;
|
|
2380
|
-
status: JourneyStatus;
|
|
2381
|
-
revision: string;
|
|
2382
|
-
draft: JourneyDefinition;
|
|
2383
|
-
publishedVersion: number | null;
|
|
2384
|
-
publishedAt: string | null;
|
|
2385
|
-
createdAt: string;
|
|
2386
|
-
updatedAt: string;
|
|
2387
|
-
};
|
|
2388
2436
|
export type CreateJourneyPayload = {
|
|
2389
2437
|
name: JourneyName;
|
|
2390
2438
|
definition: JourneyDefinition;
|
|
@@ -2434,7 +2482,6 @@ export type CreateEventPayload = {
|
|
|
2434
2482
|
name: string;
|
|
2435
2483
|
properties?: JsonObjectWritable | null | undefined;
|
|
2436
2484
|
occurredAt?: string | null | undefined;
|
|
2437
|
-
idempotencyKey?: string | null | undefined;
|
|
2438
2485
|
};
|
|
2439
2486
|
export type ContactEventReference = {
|
|
2440
2487
|
id: ContactId;
|
|
@@ -2613,11 +2660,11 @@ export type ContactIdentityInput = {
|
|
|
2613
2660
|
verified?: boolean | null | undefined;
|
|
2614
2661
|
};
|
|
2615
2662
|
export type ContactProfileUpdate = {
|
|
2616
|
-
firstName?: string | null |
|
|
2617
|
-
lastName?: string | null |
|
|
2618
|
-
company?: string | null |
|
|
2619
|
-
jobTitle?: string | null |
|
|
2620
|
-
location?: ContactLocation | null |
|
|
2663
|
+
firstName?: string | null | undefined;
|
|
2664
|
+
lastName?: string | null | undefined;
|
|
2665
|
+
company?: string | null | undefined;
|
|
2666
|
+
jobTitle?: string | null | undefined;
|
|
2667
|
+
location?: ContactLocation | null | undefined;
|
|
2621
2668
|
customFields?: ContactCustomFieldsWritable | null | undefined;
|
|
2622
2669
|
};
|
|
2623
2670
|
export type ContactLookup = {
|
|
@@ -3450,11 +3497,11 @@ export type CampaignContentMetadata = {
|
|
|
3450
3497
|
export type CampaignContentMetadataWritable = {
|
|
3451
3498
|
[key: string]: JsonValueWritable | undefined;
|
|
3452
3499
|
} | null;
|
|
3453
|
-
export type CampaignConversationRef = ConversationId | null
|
|
3500
|
+
export type CampaignConversationRef = ConversationId | null;
|
|
3454
3501
|
/**
|
|
3455
3502
|
* Omit to inherit the topic mailbox; null disables mailbox inheritance. An explicit email.replyTo overrides an inherited mailbox.
|
|
3456
3503
|
*/
|
|
3457
|
-
export type CampaignReplyMailbox = MailboxId | null
|
|
3504
|
+
export type CampaignReplyMailbox = MailboxId | null;
|
|
3458
3505
|
export type CampaignFrom = {
|
|
3459
3506
|
email: string;
|
|
3460
3507
|
name?: string | null | undefined;
|
|
@@ -3476,7 +3523,7 @@ export type CampaignEmailContent = {
|
|
|
3476
3523
|
/**
|
|
3477
3524
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
3478
3525
|
*/
|
|
3479
|
-
topicId?: TopicId | null |
|
|
3526
|
+
topicId?: TopicId | null | undefined;
|
|
3480
3527
|
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3481
3528
|
footer?: EmailFooterOverride | undefined;
|
|
3482
3529
|
headers?: EmailCustomHeaders | null | undefined;
|
|
@@ -3510,7 +3557,7 @@ export type EmailTrackingOverrideV1 = {
|
|
|
3510
3557
|
*/
|
|
3511
3558
|
clicks?: boolean | undefined;
|
|
3512
3559
|
};
|
|
3513
|
-
export type ReplyToAddresses = Array<string> | null
|
|
3560
|
+
export type ReplyToAddresses = Array<string> | null;
|
|
3514
3561
|
export type TemplateData = JsonObject | null;
|
|
3515
3562
|
export type TemplateDataWritable = JsonObjectWritable | null;
|
|
3516
3563
|
export type EmailAttachments = Array<EmailAttachment> | null;
|
|
@@ -3604,7 +3651,7 @@ export type CampaignEmailInput = {
|
|
|
3604
3651
|
/**
|
|
3605
3652
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
3606
3653
|
*/
|
|
3607
|
-
topicId?: TopicId | null |
|
|
3654
|
+
topicId?: TopicId | null | undefined;
|
|
3608
3655
|
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3609
3656
|
footer?: EmailFooterOverride | undefined;
|
|
3610
3657
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
@@ -3662,7 +3709,7 @@ export type ScheduledMessage = {
|
|
|
3662
3709
|
updatedAt: string;
|
|
3663
3710
|
};
|
|
3664
3711
|
export type SendMessagePayload = {
|
|
3665
|
-
conversationId?: ConversationId | null |
|
|
3712
|
+
conversationId?: ConversationId | null | undefined;
|
|
3666
3713
|
metadata?: MessageMetadata | undefined;
|
|
3667
3714
|
channel: "email";
|
|
3668
3715
|
to: EmailRecipients;
|
|
@@ -3678,7 +3725,7 @@ export type MessageMetadataWritable = {
|
|
|
3678
3725
|
[key: string]: JsonValueWritable | undefined;
|
|
3679
3726
|
} | null;
|
|
3680
3727
|
export type EmailSendMessagePayload = {
|
|
3681
|
-
conversationId?: ConversationId | null |
|
|
3728
|
+
conversationId?: ConversationId | null | undefined;
|
|
3682
3729
|
metadata?: MessageMetadata | undefined;
|
|
3683
3730
|
channel: "email";
|
|
3684
3731
|
to: EmailRecipients;
|
|
@@ -3704,7 +3751,7 @@ export type EmailContent = {
|
|
|
3704
3751
|
/**
|
|
3705
3752
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
3706
3753
|
*/
|
|
3707
|
-
topicId?: TopicId | null |
|
|
3754
|
+
topicId?: TopicId | null | undefined;
|
|
3708
3755
|
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3709
3756
|
footer?: EmailFooterOverride | undefined;
|
|
3710
3757
|
headers?: EmailCustomHeaders | null | undefined;
|
|
@@ -3726,7 +3773,7 @@ export type EmailContentWritable = {
|
|
|
3726
3773
|
/**
|
|
3727
3774
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
3728
3775
|
*/
|
|
3729
|
-
topicId?: TopicId | null |
|
|
3776
|
+
topicId?: TopicId | null | undefined;
|
|
3730
3777
|
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3731
3778
|
footer?: EmailFooterOverride | undefined;
|
|
3732
3779
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
@@ -3735,15 +3782,15 @@ export type EmailSender = {
|
|
|
3735
3782
|
email: string;
|
|
3736
3783
|
name?: string | null | undefined;
|
|
3737
3784
|
} | null;
|
|
3738
|
-
export type EmailBccRecipients = Array<EmailRecipient> | null
|
|
3785
|
+
export type EmailBccRecipients = Array<EmailRecipient> | null;
|
|
3739
3786
|
export type EmailRecipient = {
|
|
3740
3787
|
contactId: ContactId;
|
|
3741
3788
|
} | {
|
|
3742
3789
|
email: string;
|
|
3743
3790
|
name?: string | null | undefined;
|
|
3744
|
-
displayName?: string | null |
|
|
3791
|
+
displayName?: string | null | undefined;
|
|
3745
3792
|
};
|
|
3746
|
-
export type EmailCcRecipients = Array<EmailRecipient> | null
|
|
3793
|
+
export type EmailCcRecipients = Array<EmailRecipient> | null;
|
|
3747
3794
|
export type EmailRecipients = Array<EmailRecipient>;
|
|
3748
3795
|
export type ScheduledMessageId = string;
|
|
3749
3796
|
export type ScheduledMessagePage = {
|
|
@@ -3751,7 +3798,7 @@ export type ScheduledMessagePage = {
|
|
|
3751
3798
|
nextCursor: string | null;
|
|
3752
3799
|
};
|
|
3753
3800
|
export type DispatchSendMessagePayload = {
|
|
3754
|
-
conversationId?: ConversationId | null |
|
|
3801
|
+
conversationId?: ConversationId | null | undefined;
|
|
3755
3802
|
metadata?: MessageMetadataWritable | undefined;
|
|
3756
3803
|
channel: "email";
|
|
3757
3804
|
to: EmailRecipients;
|
|
@@ -3777,7 +3824,7 @@ export type EmailDispatchContent = {
|
|
|
3777
3824
|
/**
|
|
3778
3825
|
* The topic for this send. Omit to inherit the template topic; null disables topic inheritance for a direct send. Campaigns require a topic.
|
|
3779
3826
|
*/
|
|
3780
|
-
topicId?: TopicId | null |
|
|
3827
|
+
topicId?: TopicId | null | undefined;
|
|
3781
3828
|
tracking?: EmailTrackingOverrideV1 | undefined;
|
|
3782
3829
|
footer?: EmailFooterOverride | undefined;
|
|
3783
3830
|
headers?: EmailCustomHeadersWritable | null | undefined;
|
|
@@ -4008,7 +4055,7 @@ export type MessagesListResponses = {
|
|
|
4008
4055
|
export type MessagesListResponse = MessagesListResponses[keyof MessagesListResponses];
|
|
4009
4056
|
export type MessagesSendData = {
|
|
4010
4057
|
body: {
|
|
4011
|
-
conversationId?: ConversationId | null |
|
|
4058
|
+
conversationId?: ConversationId | null | undefined;
|
|
4012
4059
|
metadata?: MessageMetadataWritable | undefined;
|
|
4013
4060
|
channel: "email";
|
|
4014
4061
|
to: EmailRecipients;
|
|
@@ -4385,7 +4432,7 @@ export type MessagesGetEmailResponses = {
|
|
|
4385
4432
|
export type MessagesGetEmailResponse = MessagesGetEmailResponses[keyof MessagesGetEmailResponses];
|
|
4386
4433
|
export type MessagesValidateEmailData = {
|
|
4387
4434
|
body: {
|
|
4388
|
-
conversationId?: ConversationId | null |
|
|
4435
|
+
conversationId?: ConversationId | null | undefined;
|
|
4389
4436
|
metadata?: MessageMetadataWritable | undefined;
|
|
4390
4437
|
channel: "email";
|
|
4391
4438
|
to: EmailRecipients;
|
|
@@ -4701,9 +4748,11 @@ export type ScheduledMessagesCreateData = {
|
|
|
4701
4748
|
send: DispatchSendMessagePayload;
|
|
4702
4749
|
scheduledFor: string;
|
|
4703
4750
|
timezone?: IanaTimezone | null | undefined;
|
|
4704
|
-
idempotencyKey?: string | null | undefined;
|
|
4705
4751
|
referenceId?: string | null | undefined;
|
|
4706
4752
|
};
|
|
4753
|
+
headers?: {
|
|
4754
|
+
"idempotency-key"?: string | null | undefined;
|
|
4755
|
+
};
|
|
4707
4756
|
path?: never;
|
|
4708
4757
|
query?: never;
|
|
4709
4758
|
url: "/v1/messages/scheduled";
|
|
@@ -5278,7 +5327,9 @@ export type CampaignsListRunsResponse = CampaignsListRunsResponses[keyof Campaig
|
|
|
5278
5327
|
export type CampaignsScheduleRunData = {
|
|
5279
5328
|
body: {
|
|
5280
5329
|
scheduledFor?: string | null | undefined;
|
|
5281
|
-
|
|
5330
|
+
};
|
|
5331
|
+
headers?: {
|
|
5332
|
+
"idempotency-key"?: string | null | undefined;
|
|
5282
5333
|
};
|
|
5283
5334
|
path: {
|
|
5284
5335
|
id: CampaignId;
|
|
@@ -6572,12 +6623,12 @@ export type EmailSetDefaultDomainResponses = {
|
|
|
6572
6623
|
export type EmailSetDefaultDomainResponse = EmailSetDefaultDomainResponses[keyof EmailSetDefaultDomainResponses];
|
|
6573
6624
|
export type EmailUpdateDomainConfigData = {
|
|
6574
6625
|
body: {
|
|
6575
|
-
openTracking?: boolean | null |
|
|
6576
|
-
clickTracking?: boolean | null |
|
|
6577
|
-
replyTo?: Array<string> | null |
|
|
6578
|
-
topicId?: TopicId | null |
|
|
6579
|
-
footerEnabled?: boolean | null |
|
|
6580
|
-
brandSlug?: string | null |
|
|
6626
|
+
openTracking?: boolean | null | undefined;
|
|
6627
|
+
clickTracking?: boolean | null | undefined;
|
|
6628
|
+
replyTo?: Array<string> | null | undefined;
|
|
6629
|
+
topicId?: TopicId | null | undefined;
|
|
6630
|
+
footerEnabled?: boolean | null | undefined;
|
|
6631
|
+
brandSlug?: string | null | undefined;
|
|
6581
6632
|
};
|
|
6582
6633
|
path: {
|
|
6583
6634
|
id: EmailDomainId;
|
|
@@ -7007,8 +7058,8 @@ export type EmailAddSenderData = {
|
|
|
7007
7058
|
body: {
|
|
7008
7059
|
email: string;
|
|
7009
7060
|
domainId?: EmailDomainId | null | undefined;
|
|
7010
|
-
name?: string | null |
|
|
7011
|
-
replyToEmails?: Array<string> | null |
|
|
7061
|
+
name?: string | null | undefined;
|
|
7062
|
+
replyToEmails?: Array<string> | null | undefined;
|
|
7012
7063
|
namespaceId?: NamespaceId | null | undefined;
|
|
7013
7064
|
};
|
|
7014
7065
|
headers: {
|
|
@@ -7825,7 +7876,7 @@ export type EmailUpdateBlockData = {
|
|
|
7825
7876
|
reason?: string | null | undefined;
|
|
7826
7877
|
notes?: string | null | undefined;
|
|
7827
7878
|
isActive?: boolean | null | undefined;
|
|
7828
|
-
expiresAt?: string | null |
|
|
7879
|
+
expiresAt?: string | null | undefined;
|
|
7829
7880
|
};
|
|
7830
7881
|
path: {
|
|
7831
7882
|
id: BlockedEmailId;
|
|
@@ -8020,7 +8071,7 @@ export type EmailCreateForwardingRuleData = {
|
|
|
8020
8071
|
isActive?: boolean | null | undefined;
|
|
8021
8072
|
metadata?: {
|
|
8022
8073
|
[key: string]: JsonValueWritable | undefined;
|
|
8023
|
-
} | null |
|
|
8074
|
+
} | null | undefined;
|
|
8024
8075
|
};
|
|
8025
8076
|
path?: never;
|
|
8026
8077
|
query?: never;
|
|
@@ -8122,12 +8173,12 @@ export type EmailUpdateForwardingRuleData = {
|
|
|
8122
8173
|
forwardTo?: Array<string> | null | undefined;
|
|
8123
8174
|
preserveHeaders?: boolean | null | undefined;
|
|
8124
8175
|
appendNote?: string | null | undefined;
|
|
8125
|
-
conditions?: ForwardingConditions | null |
|
|
8176
|
+
conditions?: ForwardingConditions | null | undefined;
|
|
8126
8177
|
priority?: number | null | undefined;
|
|
8127
8178
|
isActive?: boolean | null | undefined;
|
|
8128
8179
|
metadata?: {
|
|
8129
8180
|
[key: string]: JsonValueWritable | undefined;
|
|
8130
|
-
} | null |
|
|
8181
|
+
} | null | undefined;
|
|
8131
8182
|
};
|
|
8132
8183
|
path: {
|
|
8133
8184
|
id: EmailForwardingRuleId;
|
|
@@ -8969,6 +9020,7 @@ export type ConversationsListData = {
|
|
|
8969
9020
|
status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
|
|
8970
9021
|
channel?: "email" | null | undefined;
|
|
8971
9022
|
contactId?: ContactId | null | undefined;
|
|
9023
|
+
mailboxId?: MailboxId | null | undefined;
|
|
8972
9024
|
after?: string | null | undefined;
|
|
8973
9025
|
before?: string | null | undefined;
|
|
8974
9026
|
};
|
|
@@ -9018,7 +9070,7 @@ export type ConversationsCreateData = {
|
|
|
9018
9070
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
9019
9071
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
9020
9072
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9021
|
-
context?: ConversationContextWritable | null |
|
|
9073
|
+
context?: ConversationContextWritable | null | undefined;
|
|
9022
9074
|
tags?: Array<string> | null | undefined;
|
|
9023
9075
|
categories?: Array<string> | null | undefined;
|
|
9024
9076
|
isTest?: boolean | null | undefined;
|
|
@@ -9104,16 +9156,16 @@ export type ConversationsGetByIdResponse = ConversationsGetByIdResponses[keyof C
|
|
|
9104
9156
|
export type ConversationsUpdateData = {
|
|
9105
9157
|
body: {
|
|
9106
9158
|
title?: string | null | undefined;
|
|
9107
|
-
description?: string | null |
|
|
9108
|
-
externalId?: string | null |
|
|
9109
|
-
parentConversationId?: ConversationId | null |
|
|
9159
|
+
description?: string | null | undefined;
|
|
9160
|
+
externalId?: string | null | undefined;
|
|
9161
|
+
parentConversationId?: ConversationId | null | undefined;
|
|
9110
9162
|
primaryChannel?: "email" | null | undefined;
|
|
9111
9163
|
status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
|
|
9112
|
-
statusReason?: string | null |
|
|
9164
|
+
statusReason?: string | null | undefined;
|
|
9113
9165
|
priority?: number | null | undefined;
|
|
9114
9166
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
9115
9167
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
9116
|
-
context?: ConversationContextWritable | null |
|
|
9168
|
+
context?: ConversationContextWritable | null | undefined;
|
|
9117
9169
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9118
9170
|
isTest?: boolean | null | undefined;
|
|
9119
9171
|
isInternal?: boolean | null | undefined;
|
|
@@ -9609,16 +9661,16 @@ export type ContactsCreateData = {
|
|
|
9609
9661
|
body: {
|
|
9610
9662
|
namespaceId?: NamespaceId | null | undefined;
|
|
9611
9663
|
name: string;
|
|
9612
|
-
displayName?: string | null |
|
|
9613
|
-
avatar?: string | null |
|
|
9664
|
+
displayName?: string | null | undefined;
|
|
9665
|
+
avatar?: string | null | undefined;
|
|
9614
9666
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
9615
|
-
profile?: ContactProfileWritable | null |
|
|
9616
|
-
preferences?: ContactPreferences | null |
|
|
9667
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
9668
|
+
preferences?: ContactPreferences | null | undefined;
|
|
9617
9669
|
tags?: Array<string> | null | undefined;
|
|
9618
9670
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
9619
|
-
statusReason?: string | null |
|
|
9620
|
-
externalId?: string | null |
|
|
9621
|
-
metadata?: JsonObjectWritable | null |
|
|
9671
|
+
statusReason?: string | null | undefined;
|
|
9672
|
+
externalId?: string | null | undefined;
|
|
9673
|
+
metadata?: JsonObjectWritable | null | undefined;
|
|
9622
9674
|
};
|
|
9623
9675
|
path?: never;
|
|
9624
9676
|
query?: never;
|
|
@@ -9725,11 +9777,11 @@ export type ContactsFindOrCreateData = {
|
|
|
9725
9777
|
lookup: ContactLookup;
|
|
9726
9778
|
create?: {
|
|
9727
9779
|
name?: string | null | undefined;
|
|
9728
|
-
displayName?: string | null |
|
|
9729
|
-
avatar?: string | null |
|
|
9780
|
+
displayName?: string | null | undefined;
|
|
9781
|
+
avatar?: string | null | undefined;
|
|
9730
9782
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
9731
|
-
profile?: ContactProfileWritable | null |
|
|
9732
|
-
externalId?: string | null |
|
|
9783
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
9784
|
+
externalId?: string | null | undefined;
|
|
9733
9785
|
} | null | undefined;
|
|
9734
9786
|
};
|
|
9735
9787
|
path?: never;
|
|
@@ -9878,13 +9930,13 @@ export type ContactsGetResponse = ContactsGetResponses[keyof ContactsGetResponse
|
|
|
9878
9930
|
export type ContactsUpdateData = {
|
|
9879
9931
|
body: {
|
|
9880
9932
|
name?: string | null | undefined;
|
|
9881
|
-
displayName?: string | null |
|
|
9882
|
-
avatar?: string | null |
|
|
9933
|
+
displayName?: string | null | undefined;
|
|
9934
|
+
avatar?: string | null | undefined;
|
|
9883
9935
|
profile?: ContactProfileUpdate | null | undefined;
|
|
9884
|
-
preferences?: ContactPreferences | null |
|
|
9936
|
+
preferences?: ContactPreferences | null | undefined;
|
|
9885
9937
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
9886
|
-
statusReason?: string | null |
|
|
9887
|
-
externalId?: string | null |
|
|
9938
|
+
statusReason?: string | null | undefined;
|
|
9939
|
+
externalId?: string | null | undefined;
|
|
9888
9940
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9889
9941
|
};
|
|
9890
9942
|
path: {
|
|
@@ -10265,9 +10317,9 @@ export type ContactsPlanImportErrors = {
|
|
|
10265
10317
|
*/
|
|
10266
10318
|
401: UnauthorizedError;
|
|
10267
10319
|
/**
|
|
10268
|
-
* ForbiddenError
|
|
10320
|
+
* ForbiddenError
|
|
10269
10321
|
*/
|
|
10270
|
-
403: ForbiddenError
|
|
10322
|
+
403: ForbiddenError;
|
|
10271
10323
|
/**
|
|
10272
10324
|
* ResourceNotFoundError
|
|
10273
10325
|
*/
|
|
@@ -10357,12 +10409,14 @@ export type ContactsStartImportData = {
|
|
|
10357
10409
|
];
|
|
10358
10410
|
};
|
|
10359
10411
|
planHash: string;
|
|
10360
|
-
idempotencyKey: string;
|
|
10361
10412
|
} | {
|
|
10362
10413
|
mode: "resume";
|
|
10363
10414
|
jobId: ContactImportJobId;
|
|
10364
10415
|
expectedGeneration: number;
|
|
10365
10416
|
};
|
|
10417
|
+
headers?: {
|
|
10418
|
+
"idempotency-key"?: string | null | undefined;
|
|
10419
|
+
};
|
|
10366
10420
|
path?: never;
|
|
10367
10421
|
query?: never;
|
|
10368
10422
|
url: "/v1/contacts/imports";
|
|
@@ -10377,9 +10431,9 @@ export type ContactsStartImportErrors = {
|
|
|
10377
10431
|
*/
|
|
10378
10432
|
402: PaymentRequiredError;
|
|
10379
10433
|
/**
|
|
10380
|
-
* ForbiddenError
|
|
10434
|
+
* ForbiddenError
|
|
10381
10435
|
*/
|
|
10382
|
-
403: ForbiddenError
|
|
10436
|
+
403: ForbiddenError;
|
|
10383
10437
|
/**
|
|
10384
10438
|
* ResourceNotFoundError
|
|
10385
10439
|
*/
|
|
@@ -10792,7 +10846,9 @@ export type EventsCreateData = {
|
|
|
10792
10846
|
name: string;
|
|
10793
10847
|
properties?: JsonObjectWritable | null | undefined;
|
|
10794
10848
|
occurredAt?: string | null | undefined;
|
|
10795
|
-
|
|
10849
|
+
};
|
|
10850
|
+
headers?: {
|
|
10851
|
+
"idempotency-key"?: string | null | undefined;
|
|
10796
10852
|
};
|
|
10797
10853
|
path?: never;
|
|
10798
10854
|
query?: never;
|
|
@@ -10848,6 +10904,9 @@ export type EventsBatchData = {
|
|
|
10848
10904
|
body: {
|
|
10849
10905
|
events: [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
10850
10906
|
};
|
|
10907
|
+
headers?: {
|
|
10908
|
+
"idempotency-key"?: string | null | undefined;
|
|
10909
|
+
};
|
|
10851
10910
|
path?: never;
|
|
10852
10911
|
query?: never;
|
|
10853
10912
|
url: "/v1/events/batch";
|
|
@@ -12116,14 +12175,14 @@ export type ContactGroupsListResponse = ContactGroupsListResponses[keyof Contact
|
|
|
12116
12175
|
export type ContactGroupsCreateData = {
|
|
12117
12176
|
body: {
|
|
12118
12177
|
name: string;
|
|
12119
|
-
description?: string | null |
|
|
12178
|
+
description?: string | null | undefined;
|
|
12120
12179
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
12121
12180
|
criteria?: {
|
|
12122
12181
|
[key: string]: JsonValueWritable | undefined;
|
|
12123
|
-
} | null |
|
|
12182
|
+
} | null | undefined;
|
|
12124
12183
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
12125
|
-
icon?: string | null |
|
|
12126
|
-
parentGroupId?: ContactGroupId | null |
|
|
12184
|
+
icon?: string | null | undefined;
|
|
12185
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
12127
12186
|
isActive?: boolean | null | undefined;
|
|
12128
12187
|
};
|
|
12129
12188
|
path?: never;
|
|
@@ -12289,14 +12348,14 @@ export type ContactGroupsGetByIdResponse = ContactGroupsGetByIdResponses[keyof C
|
|
|
12289
12348
|
export type ContactGroupsUpdateData = {
|
|
12290
12349
|
body: {
|
|
12291
12350
|
name?: string | null | undefined;
|
|
12292
|
-
description?: string | null |
|
|
12351
|
+
description?: string | null | undefined;
|
|
12293
12352
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
12294
12353
|
criteria?: {
|
|
12295
12354
|
[key: string]: JsonValueWritable | undefined;
|
|
12296
|
-
} | null |
|
|
12355
|
+
} | null | undefined;
|
|
12297
12356
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
12298
|
-
icon?: string | null |
|
|
12299
|
-
parentGroupId?: ContactGroupId | null |
|
|
12357
|
+
icon?: string | null | undefined;
|
|
12358
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
12300
12359
|
isActive?: boolean | null | undefined;
|
|
12301
12360
|
};
|
|
12302
12361
|
path: {
|
|
@@ -12640,7 +12699,7 @@ export type CustomFieldsCreateData = {
|
|
|
12640
12699
|
label: string;
|
|
12641
12700
|
type: "text" | "number" | "boolean" | "date" | "select";
|
|
12642
12701
|
options?: Array<string> | null | undefined;
|
|
12643
|
-
defaultValue?: string | null |
|
|
12702
|
+
defaultValue?: string | null | undefined;
|
|
12644
12703
|
isRequired?: boolean | null | undefined;
|
|
12645
12704
|
sortOrder?: number | null | undefined;
|
|
12646
12705
|
};
|
|
@@ -12742,7 +12801,7 @@ export type CustomFieldsUpdateData = {
|
|
|
12742
12801
|
body: {
|
|
12743
12802
|
label?: string | null | undefined;
|
|
12744
12803
|
options?: Array<string> | null | undefined;
|
|
12745
|
-
defaultValue?: string | null |
|
|
12804
|
+
defaultValue?: string | null | undefined;
|
|
12746
12805
|
isRequired?: boolean | null | undefined;
|
|
12747
12806
|
sortOrder?: number | null | undefined;
|
|
12748
12807
|
};
|
|
@@ -12839,14 +12898,12 @@ export type TopicsListResponse = TopicsListResponses[keyof TopicsListResponses];
|
|
|
12839
12898
|
export type TopicsCreateData = {
|
|
12840
12899
|
body: {
|
|
12841
12900
|
name: string;
|
|
12842
|
-
description?: string | null |
|
|
12843
|
-
namespaceId?: NamespaceId | null |
|
|
12901
|
+
description?: string | null | undefined;
|
|
12902
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
12844
12903
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
12849
|
-
templateId?: TemplateId | null | null | undefined;
|
|
12904
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
12905
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
12906
|
+
templateId?: TemplateId | null | undefined;
|
|
12850
12907
|
};
|
|
12851
12908
|
path?: never;
|
|
12852
12909
|
query?: never;
|
|
@@ -13030,13 +13087,11 @@ export type TopicsGetResponse = TopicsGetResponses[keyof TopicsGetResponses];
|
|
|
13030
13087
|
export type TopicsUpdateData = {
|
|
13031
13088
|
body: {
|
|
13032
13089
|
name?: string | null | undefined;
|
|
13033
|
-
description?: string | null |
|
|
13090
|
+
description?: string | null | undefined;
|
|
13034
13091
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
13039
|
-
templateId?: TemplateId | null | null | undefined;
|
|
13092
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
13093
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
13094
|
+
templateId?: TemplateId | null | undefined;
|
|
13040
13095
|
};
|
|
13041
13096
|
path: {
|
|
13042
13097
|
id: TopicId;
|
|
@@ -13240,9 +13295,9 @@ export type TopicFormsListErrors = {
|
|
|
13240
13295
|
*/
|
|
13241
13296
|
401: UnauthorizedError;
|
|
13242
13297
|
/**
|
|
13243
|
-
* ForbiddenError
|
|
13298
|
+
* ForbiddenError
|
|
13244
13299
|
*/
|
|
13245
|
-
403: ForbiddenError
|
|
13300
|
+
403: ForbiddenError;
|
|
13246
13301
|
/**
|
|
13247
13302
|
* ResourceNotFoundError
|
|
13248
13303
|
*/
|
|
@@ -13291,9 +13346,9 @@ export type TopicFormsCreateErrors = {
|
|
|
13291
13346
|
*/
|
|
13292
13347
|
401: UnauthorizedError;
|
|
13293
13348
|
/**
|
|
13294
|
-
* ForbiddenError
|
|
13349
|
+
* ForbiddenError
|
|
13295
13350
|
*/
|
|
13296
|
-
403: ForbiddenError
|
|
13351
|
+
403: ForbiddenError;
|
|
13297
13352
|
/**
|
|
13298
13353
|
* ResourceNotFoundError
|
|
13299
13354
|
*/
|
|
@@ -13334,9 +13389,9 @@ export type TopicFormsRemoveErrors = {
|
|
|
13334
13389
|
*/
|
|
13335
13390
|
401: UnauthorizedError;
|
|
13336
13391
|
/**
|
|
13337
|
-
* ForbiddenError
|
|
13392
|
+
* ForbiddenError
|
|
13338
13393
|
*/
|
|
13339
|
-
403: ForbiddenError
|
|
13394
|
+
403: ForbiddenError;
|
|
13340
13395
|
/**
|
|
13341
13396
|
* ResourceNotFoundError
|
|
13342
13397
|
*/
|
|
@@ -13379,9 +13434,9 @@ export type TopicFormsGetErrors = {
|
|
|
13379
13434
|
*/
|
|
13380
13435
|
401: UnauthorizedError;
|
|
13381
13436
|
/**
|
|
13382
|
-
* ForbiddenError
|
|
13437
|
+
* ForbiddenError
|
|
13383
13438
|
*/
|
|
13384
|
-
403: ForbiddenError
|
|
13439
|
+
403: ForbiddenError;
|
|
13385
13440
|
/**
|
|
13386
13441
|
* ResourceNotFoundError
|
|
13387
13442
|
*/
|
|
@@ -13414,7 +13469,7 @@ export type TopicFormsUpdateData = {
|
|
|
13414
13469
|
confirmationMessage?: string | null | undefined;
|
|
13415
13470
|
successTitle?: string | null | undefined;
|
|
13416
13471
|
successMessage?: string | null | undefined;
|
|
13417
|
-
redirectUrl?: string | null |
|
|
13472
|
+
redirectUrl?: string | null | undefined;
|
|
13418
13473
|
};
|
|
13419
13474
|
path: {
|
|
13420
13475
|
id: TopicId;
|
|
@@ -13429,9 +13484,9 @@ export type TopicFormsUpdateErrors = {
|
|
|
13429
13484
|
*/
|
|
13430
13485
|
401: UnauthorizedError;
|
|
13431
13486
|
/**
|
|
13432
|
-
* ForbiddenError
|
|
13487
|
+
* ForbiddenError
|
|
13433
13488
|
*/
|
|
13434
|
-
403: ForbiddenError
|
|
13489
|
+
403: ForbiddenError;
|
|
13435
13490
|
/**
|
|
13436
13491
|
* ResourceNotFoundError
|
|
13437
13492
|
*/
|
|
@@ -13457,15 +13512,15 @@ export type TopicFormsUpdateResponses = {
|
|
|
13457
13512
|
200: TopicForm;
|
|
13458
13513
|
};
|
|
13459
13514
|
export type TopicFormsUpdateResponse = TopicFormsUpdateResponses[keyof TopicFormsUpdateResponses];
|
|
13460
|
-
export type
|
|
13515
|
+
export type NewslettersListData = {
|
|
13461
13516
|
body?: never;
|
|
13462
|
-
path
|
|
13463
|
-
|
|
13517
|
+
path?: never;
|
|
13518
|
+
query?: {
|
|
13519
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
13464
13520
|
};
|
|
13465
|
-
|
|
13466
|
-
url: "/v1/topics/{id}/issues";
|
|
13521
|
+
url: "/v1/newsletters";
|
|
13467
13522
|
};
|
|
13468
|
-
export type
|
|
13523
|
+
export type NewslettersListErrors = {
|
|
13469
13524
|
/**
|
|
13470
13525
|
* UnauthorizedError
|
|
13471
13526
|
*/
|
|
@@ -13483,9 +13538,9 @@ export type TopicIssuesListErrors = {
|
|
|
13483
13538
|
*/
|
|
13484
13539
|
409: ConflictError;
|
|
13485
13540
|
/**
|
|
13486
|
-
*
|
|
13541
|
+
* ValidationError
|
|
13487
13542
|
*/
|
|
13488
|
-
422:
|
|
13543
|
+
422: ValidationError;
|
|
13489
13544
|
/**
|
|
13490
13545
|
* InternalError
|
|
13491
13546
|
*/
|
|
@@ -13495,28 +13550,33 @@ export type TopicIssuesListErrors = {
|
|
|
13495
13550
|
*/
|
|
13496
13551
|
504: GatewayTimeoutError;
|
|
13497
13552
|
};
|
|
13498
|
-
export type
|
|
13499
|
-
export type
|
|
13553
|
+
export type NewslettersListError = NewslettersListErrors[keyof NewslettersListErrors];
|
|
13554
|
+
export type NewslettersListResponses = {
|
|
13500
13555
|
/**
|
|
13501
|
-
*
|
|
13556
|
+
* Success
|
|
13502
13557
|
*/
|
|
13503
|
-
200:
|
|
13558
|
+
200: {
|
|
13559
|
+
items: Array<Newsletter>;
|
|
13560
|
+
};
|
|
13504
13561
|
};
|
|
13505
|
-
export type
|
|
13506
|
-
export type
|
|
13562
|
+
export type NewslettersListResponse = NewslettersListResponses[keyof NewslettersListResponses];
|
|
13563
|
+
export type NewslettersCreateData = {
|
|
13507
13564
|
body: {
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13565
|
+
topicId?: TopicId | null | undefined;
|
|
13566
|
+
name?: string | null | undefined;
|
|
13567
|
+
description?: string | null | undefined;
|
|
13568
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
13569
|
+
archiveEnabled?: boolean | null | undefined;
|
|
13570
|
+
publicationSlug?: string | null | undefined;
|
|
13512
13571
|
};
|
|
13513
|
-
|
|
13514
|
-
|
|
13572
|
+
headers?: {
|
|
13573
|
+
"idempotency-key"?: string | null | undefined;
|
|
13515
13574
|
};
|
|
13575
|
+
path?: never;
|
|
13516
13576
|
query?: never;
|
|
13517
|
-
url: "/v1/
|
|
13577
|
+
url: "/v1/newsletters";
|
|
13518
13578
|
};
|
|
13519
|
-
export type
|
|
13579
|
+
export type NewslettersCreateErrors = {
|
|
13520
13580
|
/**
|
|
13521
13581
|
* UnauthorizedError
|
|
13522
13582
|
*/
|
|
@@ -13534,9 +13594,9 @@ export type TopicIssuesUpdateErrors = {
|
|
|
13534
13594
|
*/
|
|
13535
13595
|
409: ConflictError;
|
|
13536
13596
|
/**
|
|
13537
|
-
*
|
|
13597
|
+
* ValidationError
|
|
13538
13598
|
*/
|
|
13539
|
-
422:
|
|
13599
|
+
422: ValidationError;
|
|
13540
13600
|
/**
|
|
13541
13601
|
* InternalError
|
|
13542
13602
|
*/
|
|
@@ -13546,40 +13606,288 @@ export type TopicIssuesUpdateErrors = {
|
|
|
13546
13606
|
*/
|
|
13547
13607
|
504: GatewayTimeoutError;
|
|
13548
13608
|
};
|
|
13549
|
-
export type
|
|
13550
|
-
export type
|
|
13609
|
+
export type NewslettersCreateError = NewslettersCreateErrors[keyof NewslettersCreateErrors];
|
|
13610
|
+
export type NewslettersCreateResponses = {
|
|
13551
13611
|
/**
|
|
13552
|
-
*
|
|
13612
|
+
* Newsletter
|
|
13553
13613
|
*/
|
|
13554
|
-
|
|
13555
|
-
|
|
13556
|
-
|
|
13557
|
-
|
|
13558
|
-
|
|
13559
|
-
|
|
13560
|
-
|
|
13561
|
-
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
|
|
13573
|
-
|
|
13574
|
-
|
|
13575
|
-
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13614
|
+
201: Newsletter;
|
|
13615
|
+
};
|
|
13616
|
+
export type NewslettersCreateResponse = NewslettersCreateResponses[keyof NewslettersCreateResponses];
|
|
13617
|
+
export type NewslettersRemoveData = {
|
|
13618
|
+
body?: never;
|
|
13619
|
+
headers?: {
|
|
13620
|
+
"idempotency-key"?: string | null | undefined;
|
|
13621
|
+
};
|
|
13622
|
+
path: {
|
|
13623
|
+
id: NewsletterId;
|
|
13624
|
+
};
|
|
13625
|
+
query?: never;
|
|
13626
|
+
url: "/v1/newsletters/{id}";
|
|
13627
|
+
};
|
|
13628
|
+
export type NewslettersRemoveErrors = {
|
|
13629
|
+
/**
|
|
13630
|
+
* UnauthorizedError
|
|
13631
|
+
*/
|
|
13632
|
+
401: UnauthorizedError;
|
|
13633
|
+
/**
|
|
13634
|
+
* ForbiddenError | FlagDisabledError
|
|
13635
|
+
*/
|
|
13636
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13637
|
+
/**
|
|
13638
|
+
* ResourceNotFoundError
|
|
13639
|
+
*/
|
|
13640
|
+
404: ResourceNotFoundError;
|
|
13641
|
+
/**
|
|
13642
|
+
* ConflictError
|
|
13643
|
+
*/
|
|
13644
|
+
409: ConflictError;
|
|
13645
|
+
/**
|
|
13646
|
+
* ValidationError
|
|
13647
|
+
*/
|
|
13648
|
+
422: ValidationError;
|
|
13649
|
+
/**
|
|
13650
|
+
* InternalError
|
|
13651
|
+
*/
|
|
13652
|
+
500: InternalError;
|
|
13653
|
+
/**
|
|
13654
|
+
* GatewayTimeoutError
|
|
13655
|
+
*/
|
|
13656
|
+
504: GatewayTimeoutError;
|
|
13657
|
+
};
|
|
13658
|
+
export type NewslettersRemoveError = NewslettersRemoveErrors[keyof NewslettersRemoveErrors];
|
|
13659
|
+
export type NewslettersRemoveResponses = {
|
|
13660
|
+
/**
|
|
13661
|
+
* Success
|
|
13662
|
+
*/
|
|
13663
|
+
200: {
|
|
13664
|
+
success: boolean;
|
|
13665
|
+
};
|
|
13666
|
+
};
|
|
13667
|
+
export type NewslettersRemoveResponse = NewslettersRemoveResponses[keyof NewslettersRemoveResponses];
|
|
13668
|
+
export type NewslettersGetData = {
|
|
13669
|
+
body?: never;
|
|
13670
|
+
path: {
|
|
13671
|
+
id: NewsletterId;
|
|
13672
|
+
};
|
|
13673
|
+
query?: never;
|
|
13674
|
+
url: "/v1/newsletters/{id}";
|
|
13675
|
+
};
|
|
13676
|
+
export type NewslettersGetErrors = {
|
|
13677
|
+
/**
|
|
13678
|
+
* UnauthorizedError
|
|
13679
|
+
*/
|
|
13680
|
+
401: UnauthorizedError;
|
|
13681
|
+
/**
|
|
13682
|
+
* ForbiddenError | FlagDisabledError
|
|
13683
|
+
*/
|
|
13684
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13685
|
+
/**
|
|
13686
|
+
* ResourceNotFoundError
|
|
13687
|
+
*/
|
|
13688
|
+
404: ResourceNotFoundError;
|
|
13689
|
+
/**
|
|
13690
|
+
* ConflictError
|
|
13691
|
+
*/
|
|
13692
|
+
409: ConflictError;
|
|
13693
|
+
/**
|
|
13694
|
+
* ValidationError
|
|
13695
|
+
*/
|
|
13696
|
+
422: ValidationError;
|
|
13697
|
+
/**
|
|
13698
|
+
* InternalError
|
|
13699
|
+
*/
|
|
13700
|
+
500: InternalError;
|
|
13701
|
+
/**
|
|
13702
|
+
* GatewayTimeoutError
|
|
13703
|
+
*/
|
|
13704
|
+
504: GatewayTimeoutError;
|
|
13705
|
+
};
|
|
13706
|
+
export type NewslettersGetError = NewslettersGetErrors[keyof NewslettersGetErrors];
|
|
13707
|
+
export type NewslettersGetResponses = {
|
|
13708
|
+
/**
|
|
13709
|
+
* Newsletter
|
|
13710
|
+
*/
|
|
13711
|
+
200: Newsletter;
|
|
13712
|
+
};
|
|
13713
|
+
export type NewslettersGetResponse = NewslettersGetResponses[keyof NewslettersGetResponses];
|
|
13714
|
+
export type NewslettersUpdateData = {
|
|
13715
|
+
body: {
|
|
13716
|
+
archiveEnabled?: boolean | null | undefined;
|
|
13717
|
+
publicationSlug?: string | null | undefined;
|
|
13718
|
+
};
|
|
13719
|
+
headers?: {
|
|
13720
|
+
"idempotency-key"?: string | null | undefined;
|
|
13721
|
+
};
|
|
13722
|
+
path: {
|
|
13723
|
+
id: NewsletterId;
|
|
13724
|
+
};
|
|
13725
|
+
query?: never;
|
|
13726
|
+
url: "/v1/newsletters/{id}";
|
|
13727
|
+
};
|
|
13728
|
+
export type NewslettersUpdateErrors = {
|
|
13729
|
+
/**
|
|
13730
|
+
* UnauthorizedError
|
|
13731
|
+
*/
|
|
13732
|
+
401: UnauthorizedError;
|
|
13733
|
+
/**
|
|
13734
|
+
* ForbiddenError | FlagDisabledError
|
|
13735
|
+
*/
|
|
13736
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13737
|
+
/**
|
|
13738
|
+
* ResourceNotFoundError
|
|
13739
|
+
*/
|
|
13740
|
+
404: ResourceNotFoundError;
|
|
13741
|
+
/**
|
|
13742
|
+
* ConflictError
|
|
13743
|
+
*/
|
|
13744
|
+
409: ConflictError;
|
|
13745
|
+
/**
|
|
13746
|
+
* ValidationError
|
|
13747
|
+
*/
|
|
13748
|
+
422: ValidationError;
|
|
13749
|
+
/**
|
|
13750
|
+
* InternalError
|
|
13751
|
+
*/
|
|
13752
|
+
500: InternalError;
|
|
13753
|
+
/**
|
|
13754
|
+
* GatewayTimeoutError
|
|
13755
|
+
*/
|
|
13756
|
+
504: GatewayTimeoutError;
|
|
13757
|
+
};
|
|
13758
|
+
export type NewslettersUpdateError = NewslettersUpdateErrors[keyof NewslettersUpdateErrors];
|
|
13759
|
+
export type NewslettersUpdateResponses = {
|
|
13760
|
+
/**
|
|
13761
|
+
* Newsletter
|
|
13762
|
+
*/
|
|
13763
|
+
200: Newsletter;
|
|
13764
|
+
};
|
|
13765
|
+
export type NewslettersUpdateResponse = NewslettersUpdateResponses[keyof NewslettersUpdateResponses];
|
|
13766
|
+
export type NewsletterIssuesListData = {
|
|
13767
|
+
body?: never;
|
|
13768
|
+
path: {
|
|
13769
|
+
id: NewsletterId;
|
|
13770
|
+
};
|
|
13771
|
+
query?: never;
|
|
13772
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13773
|
+
};
|
|
13774
|
+
export type NewsletterIssuesListErrors = {
|
|
13775
|
+
/**
|
|
13776
|
+
* UnauthorizedError
|
|
13777
|
+
*/
|
|
13778
|
+
401: UnauthorizedError;
|
|
13779
|
+
/**
|
|
13780
|
+
* ForbiddenError | FlagDisabledError
|
|
13781
|
+
*/
|
|
13782
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13783
|
+
/**
|
|
13784
|
+
* ResourceNotFoundError
|
|
13785
|
+
*/
|
|
13786
|
+
404: ResourceNotFoundError;
|
|
13787
|
+
/**
|
|
13788
|
+
* ConflictError
|
|
13789
|
+
*/
|
|
13790
|
+
409: ConflictError;
|
|
13791
|
+
/**
|
|
13792
|
+
* TemplateSourceError | ValidationError
|
|
13793
|
+
*/
|
|
13794
|
+
422: TemplateSourceError | ValidationError;
|
|
13795
|
+
/**
|
|
13796
|
+
* InternalError
|
|
13797
|
+
*/
|
|
13798
|
+
500: InternalError;
|
|
13799
|
+
/**
|
|
13800
|
+
* GatewayTimeoutError
|
|
13801
|
+
*/
|
|
13802
|
+
504: GatewayTimeoutError;
|
|
13803
|
+
};
|
|
13804
|
+
export type NewsletterIssuesListError = NewsletterIssuesListErrors[keyof NewsletterIssuesListErrors];
|
|
13805
|
+
export type NewsletterIssuesListResponses = {
|
|
13806
|
+
/**
|
|
13807
|
+
* NewsletterIssueList
|
|
13808
|
+
*/
|
|
13809
|
+
200: NewsletterIssueList;
|
|
13810
|
+
};
|
|
13811
|
+
export type NewsletterIssuesListResponse = NewsletterIssuesListResponses[keyof NewsletterIssuesListResponses];
|
|
13812
|
+
export type NewsletterIssuesUpdateData = {
|
|
13813
|
+
body: {
|
|
13814
|
+
path: string;
|
|
13815
|
+
content: string;
|
|
13816
|
+
expectedRevision: string;
|
|
13817
|
+
};
|
|
13818
|
+
headers?: {
|
|
13819
|
+
"idempotency-key"?: string | null | undefined;
|
|
13820
|
+
};
|
|
13821
|
+
path: {
|
|
13822
|
+
id: NewsletterId;
|
|
13823
|
+
};
|
|
13824
|
+
query?: never;
|
|
13825
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13826
|
+
};
|
|
13827
|
+
export type NewsletterIssuesUpdateErrors = {
|
|
13828
|
+
/**
|
|
13829
|
+
* UnauthorizedError
|
|
13830
|
+
*/
|
|
13831
|
+
401: UnauthorizedError;
|
|
13832
|
+
/**
|
|
13833
|
+
* ForbiddenError | FlagDisabledError
|
|
13834
|
+
*/
|
|
13835
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13836
|
+
/**
|
|
13837
|
+
* ResourceNotFoundError
|
|
13838
|
+
*/
|
|
13839
|
+
404: ResourceNotFoundError;
|
|
13840
|
+
/**
|
|
13841
|
+
* ConflictError
|
|
13842
|
+
*/
|
|
13843
|
+
409: ConflictError;
|
|
13844
|
+
/**
|
|
13845
|
+
* TemplateSourceError | ValidationError
|
|
13846
|
+
*/
|
|
13847
|
+
422: TemplateSourceError | ValidationError;
|
|
13848
|
+
/**
|
|
13849
|
+
* InternalError
|
|
13850
|
+
*/
|
|
13851
|
+
500: InternalError;
|
|
13852
|
+
/**
|
|
13853
|
+
* GatewayTimeoutError
|
|
13854
|
+
*/
|
|
13855
|
+
504: GatewayTimeoutError;
|
|
13856
|
+
};
|
|
13857
|
+
export type NewsletterIssuesUpdateError = NewsletterIssuesUpdateErrors[keyof NewsletterIssuesUpdateErrors];
|
|
13858
|
+
export type NewsletterIssuesUpdateResponses = {
|
|
13859
|
+
/**
|
|
13860
|
+
* Success
|
|
13861
|
+
*/
|
|
13862
|
+
200: {
|
|
13863
|
+
workspace: {
|
|
13864
|
+
projectId: TemplateProjectId;
|
|
13865
|
+
organizationId: OrganizationId | null;
|
|
13866
|
+
ownerEpoch: number;
|
|
13867
|
+
repositoryName: string;
|
|
13868
|
+
defaultBranch: string;
|
|
13869
|
+
baseCommit: string;
|
|
13870
|
+
remoteHead: string;
|
|
13871
|
+
pendingRemoteHead: string | null;
|
|
13872
|
+
revision: string;
|
|
13873
|
+
overlay: {
|
|
13874
|
+
[key: string]: string | null;
|
|
13875
|
+
};
|
|
13876
|
+
assetChanges: Array<{
|
|
13877
|
+
path: string;
|
|
13878
|
+
status: "added" | "modified" | "deleted";
|
|
13879
|
+
}>;
|
|
13880
|
+
conflicts: Array<{
|
|
13881
|
+
path: string;
|
|
13882
|
+
base: string | null;
|
|
13883
|
+
draft: string | null;
|
|
13884
|
+
main: string | null;
|
|
13885
|
+
}>;
|
|
13886
|
+
provenance: {
|
|
13887
|
+
references: Array<{
|
|
13888
|
+
kind: string;
|
|
13889
|
+
digest: string;
|
|
13890
|
+
locator?: string | undefined;
|
|
13583
13891
|
}>;
|
|
13584
13892
|
};
|
|
13585
13893
|
mounts: Array<{
|
|
@@ -13633,21 +13941,23 @@ export type TopicIssuesUpdateResponses = {
|
|
|
13633
13941
|
};
|
|
13634
13942
|
};
|
|
13635
13943
|
};
|
|
13636
|
-
export type
|
|
13637
|
-
export type
|
|
13944
|
+
export type NewsletterIssuesUpdateResponse = NewsletterIssuesUpdateResponses[keyof NewsletterIssuesUpdateResponses];
|
|
13945
|
+
export type NewsletterIssuesCreateData = {
|
|
13638
13946
|
body: {
|
|
13639
13947
|
path: string;
|
|
13640
13948
|
content: string;
|
|
13641
|
-
idempotencyKey: string;
|
|
13642
13949
|
expectedRevision?: string | null | undefined;
|
|
13643
13950
|
};
|
|
13951
|
+
headers?: {
|
|
13952
|
+
"idempotency-key"?: string | null | undefined;
|
|
13953
|
+
};
|
|
13644
13954
|
path: {
|
|
13645
|
-
id:
|
|
13955
|
+
id: NewsletterId;
|
|
13646
13956
|
};
|
|
13647
13957
|
query?: never;
|
|
13648
|
-
url: "/v1/
|
|
13958
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13649
13959
|
};
|
|
13650
|
-
export type
|
|
13960
|
+
export type NewsletterIssuesCreateErrors = {
|
|
13651
13961
|
/**
|
|
13652
13962
|
* UnauthorizedError
|
|
13653
13963
|
*/
|
|
@@ -13677,8 +13987,8 @@ export type TopicIssuesCreateErrors = {
|
|
|
13677
13987
|
*/
|
|
13678
13988
|
504: GatewayTimeoutError;
|
|
13679
13989
|
};
|
|
13680
|
-
export type
|
|
13681
|
-
export type
|
|
13990
|
+
export type NewsletterIssuesCreateError = NewsletterIssuesCreateErrors[keyof NewsletterIssuesCreateErrors];
|
|
13991
|
+
export type NewsletterIssuesCreateResponses = {
|
|
13682
13992
|
/**
|
|
13683
13993
|
* Success
|
|
13684
13994
|
*/
|
|
@@ -13764,16 +14074,16 @@ export type TopicIssuesCreateResponses = {
|
|
|
13764
14074
|
};
|
|
13765
14075
|
};
|
|
13766
14076
|
};
|
|
13767
|
-
export type
|
|
13768
|
-
export type
|
|
14077
|
+
export type NewsletterIssuesCreateResponse = NewsletterIssuesCreateResponses[keyof NewsletterIssuesCreateResponses];
|
|
14078
|
+
export type NewsletterIssuesOpenData = {
|
|
13769
14079
|
body?: never;
|
|
13770
14080
|
path: {
|
|
13771
|
-
id:
|
|
14081
|
+
id: NewsletterId;
|
|
13772
14082
|
};
|
|
13773
14083
|
query?: never;
|
|
13774
|
-
url: "/v1/
|
|
14084
|
+
url: "/v1/newsletters/{id}/issues/workspace";
|
|
13775
14085
|
};
|
|
13776
|
-
export type
|
|
14086
|
+
export type NewsletterIssuesOpenErrors = {
|
|
13777
14087
|
/**
|
|
13778
14088
|
* UnauthorizedError
|
|
13779
14089
|
*/
|
|
@@ -13803,8 +14113,8 @@ export type TopicIssuesOpenErrors = {
|
|
|
13803
14113
|
*/
|
|
13804
14114
|
504: GatewayTimeoutError;
|
|
13805
14115
|
};
|
|
13806
|
-
export type
|
|
13807
|
-
export type
|
|
14116
|
+
export type NewsletterIssuesOpenError = NewsletterIssuesOpenErrors[keyof NewsletterIssuesOpenErrors];
|
|
14117
|
+
export type NewsletterIssuesOpenResponses = {
|
|
13808
14118
|
/**
|
|
13809
14119
|
* Success
|
|
13810
14120
|
*/
|
|
@@ -13890,19 +14200,19 @@ export type TopicIssuesOpenResponses = {
|
|
|
13890
14200
|
};
|
|
13891
14201
|
};
|
|
13892
14202
|
};
|
|
13893
|
-
export type
|
|
13894
|
-
export type
|
|
14203
|
+
export type NewsletterIssuesOpenResponse = NewsletterIssuesOpenResponses[keyof NewsletterIssuesOpenResponses];
|
|
14204
|
+
export type NewsletterIssuesGetData = {
|
|
13895
14205
|
body?: never;
|
|
13896
14206
|
path: {
|
|
13897
|
-
id:
|
|
14207
|
+
id: NewsletterId;
|
|
13898
14208
|
};
|
|
13899
14209
|
query: {
|
|
13900
14210
|
path: string;
|
|
13901
14211
|
expectedRevision: string;
|
|
13902
14212
|
};
|
|
13903
|
-
url: "/v1/
|
|
14213
|
+
url: "/v1/newsletters/{id}/issues/document";
|
|
13904
14214
|
};
|
|
13905
|
-
export type
|
|
14215
|
+
export type NewsletterIssuesGetErrors = {
|
|
13906
14216
|
/**
|
|
13907
14217
|
* UnauthorizedError
|
|
13908
14218
|
*/
|
|
@@ -13932,27 +14242,29 @@ export type TopicIssuesGetErrors = {
|
|
|
13932
14242
|
*/
|
|
13933
14243
|
504: GatewayTimeoutError;
|
|
13934
14244
|
};
|
|
13935
|
-
export type
|
|
13936
|
-
export type
|
|
14245
|
+
export type NewsletterIssuesGetError = NewsletterIssuesGetErrors[keyof NewsletterIssuesGetErrors];
|
|
14246
|
+
export type NewsletterIssuesGetResponses = {
|
|
13937
14247
|
/**
|
|
13938
|
-
*
|
|
14248
|
+
* NewsletterIssueDocument
|
|
13939
14249
|
*/
|
|
13940
|
-
200:
|
|
14250
|
+
200: NewsletterIssueDocument;
|
|
13941
14251
|
};
|
|
13942
|
-
export type
|
|
13943
|
-
export type
|
|
14252
|
+
export type NewsletterIssuesGetResponse = NewsletterIssuesGetResponses[keyof NewsletterIssuesGetResponses];
|
|
14253
|
+
export type NewsletterIssuesRemoveData = {
|
|
13944
14254
|
body: {
|
|
13945
14255
|
path: string;
|
|
13946
|
-
idempotencyKey: string;
|
|
13947
14256
|
expectedRevision: string;
|
|
13948
14257
|
};
|
|
14258
|
+
headers?: {
|
|
14259
|
+
"idempotency-key"?: string | null | undefined;
|
|
14260
|
+
};
|
|
13949
14261
|
path: {
|
|
13950
|
-
id:
|
|
14262
|
+
id: NewsletterId;
|
|
13951
14263
|
};
|
|
13952
14264
|
query?: never;
|
|
13953
|
-
url: "/v1/
|
|
14265
|
+
url: "/v1/newsletters/{id}/issues/remove";
|
|
13954
14266
|
};
|
|
13955
|
-
export type
|
|
14267
|
+
export type NewsletterIssuesRemoveErrors = {
|
|
13956
14268
|
/**
|
|
13957
14269
|
* UnauthorizedError
|
|
13958
14270
|
*/
|
|
@@ -13982,8 +14294,8 @@ export type TopicIssuesRemoveErrors = {
|
|
|
13982
14294
|
*/
|
|
13983
14295
|
504: GatewayTimeoutError;
|
|
13984
14296
|
};
|
|
13985
|
-
export type
|
|
13986
|
-
export type
|
|
14297
|
+
export type NewsletterIssuesRemoveError = NewsletterIssuesRemoveErrors[keyof NewsletterIssuesRemoveErrors];
|
|
14298
|
+
export type NewsletterIssuesRemoveResponses = {
|
|
13987
14299
|
/**
|
|
13988
14300
|
* Success
|
|
13989
14301
|
*/
|
|
@@ -14069,21 +14381,23 @@ export type TopicIssuesRemoveResponses = {
|
|
|
14069
14381
|
};
|
|
14070
14382
|
};
|
|
14071
14383
|
};
|
|
14072
|
-
export type
|
|
14073
|
-
export type
|
|
14384
|
+
export type NewsletterIssuesRemoveResponse = NewsletterIssuesRemoveResponses[keyof NewsletterIssuesRemoveResponses];
|
|
14385
|
+
export type NewsletterIssuesSaveData = {
|
|
14074
14386
|
body: {
|
|
14075
14387
|
expectedRevision: string;
|
|
14076
14388
|
expectedHead: string;
|
|
14077
14389
|
message: string;
|
|
14078
|
-
|
|
14390
|
+
};
|
|
14391
|
+
headers?: {
|
|
14392
|
+
"idempotency-key"?: string | null | undefined;
|
|
14079
14393
|
};
|
|
14080
14394
|
path: {
|
|
14081
|
-
id:
|
|
14395
|
+
id: NewsletterId;
|
|
14082
14396
|
};
|
|
14083
14397
|
query?: never;
|
|
14084
|
-
url: "/v1/
|
|
14398
|
+
url: "/v1/newsletters/{id}/issues/save";
|
|
14085
14399
|
};
|
|
14086
|
-
export type
|
|
14400
|
+
export type NewsletterIssuesSaveErrors = {
|
|
14087
14401
|
/**
|
|
14088
14402
|
* UnauthorizedError
|
|
14089
14403
|
*/
|
|
@@ -14113,8 +14427,8 @@ export type TopicIssuesSaveErrors = {
|
|
|
14113
14427
|
*/
|
|
14114
14428
|
504: GatewayTimeoutError;
|
|
14115
14429
|
};
|
|
14116
|
-
export type
|
|
14117
|
-
export type
|
|
14430
|
+
export type NewsletterIssuesSaveError = NewsletterIssuesSaveErrors[keyof NewsletterIssuesSaveErrors];
|
|
14431
|
+
export type NewsletterIssuesSaveResponses = {
|
|
14118
14432
|
/**
|
|
14119
14433
|
* Success
|
|
14120
14434
|
*/
|
|
@@ -14174,19 +14488,22 @@ export type TopicIssuesSaveResponses = {
|
|
|
14174
14488
|
}>;
|
|
14175
14489
|
};
|
|
14176
14490
|
};
|
|
14177
|
-
export type
|
|
14178
|
-
export type
|
|
14491
|
+
export type NewsletterIssuesSaveResponse = NewsletterIssuesSaveResponses[keyof NewsletterIssuesSaveResponses];
|
|
14492
|
+
export type NewsletterIssuesCheckData = {
|
|
14179
14493
|
body: {
|
|
14180
14494
|
path: string;
|
|
14181
14495
|
expectedRevision: string;
|
|
14182
14496
|
};
|
|
14497
|
+
headers?: {
|
|
14498
|
+
"idempotency-key"?: string | null | undefined;
|
|
14499
|
+
};
|
|
14183
14500
|
path: {
|
|
14184
|
-
id:
|
|
14501
|
+
id: NewsletterId;
|
|
14185
14502
|
};
|
|
14186
14503
|
query?: never;
|
|
14187
|
-
url: "/v1/
|
|
14504
|
+
url: "/v1/newsletters/{id}/issues/check";
|
|
14188
14505
|
};
|
|
14189
|
-
export type
|
|
14506
|
+
export type NewsletterIssuesCheckErrors = {
|
|
14190
14507
|
/**
|
|
14191
14508
|
* UnauthorizedError
|
|
14192
14509
|
*/
|
|
@@ -14216,8 +14533,8 @@ export type TopicIssuesCheckErrors = {
|
|
|
14216
14533
|
*/
|
|
14217
14534
|
504: GatewayTimeoutError;
|
|
14218
14535
|
};
|
|
14219
|
-
export type
|
|
14220
|
-
export type
|
|
14536
|
+
export type NewsletterIssuesCheckError = NewsletterIssuesCheckErrors[keyof NewsletterIssuesCheckErrors];
|
|
14537
|
+
export type NewsletterIssuesCheckResponses = {
|
|
14221
14538
|
/**
|
|
14222
14539
|
* Success
|
|
14223
14540
|
*/
|
|
@@ -14241,6 +14558,7 @@ export type TopicIssuesCheckResponses = {
|
|
|
14241
14558
|
path: string;
|
|
14242
14559
|
frontmatter: {
|
|
14243
14560
|
title: string;
|
|
14561
|
+
date?: string | undefined;
|
|
14244
14562
|
slug: string;
|
|
14245
14563
|
topic: string;
|
|
14246
14564
|
preheader?: string | undefined;
|
|
@@ -14302,21 +14620,24 @@ export type TopicIssuesCheckResponses = {
|
|
|
14302
14620
|
}>;
|
|
14303
14621
|
};
|
|
14304
14622
|
};
|
|
14305
|
-
export type
|
|
14306
|
-
export type
|
|
14623
|
+
export type NewsletterIssuesCheckResponse = NewsletterIssuesCheckResponses[keyof NewsletterIssuesCheckResponses];
|
|
14624
|
+
export type NewsletterIssuesRenderData = {
|
|
14307
14625
|
body: {
|
|
14308
14626
|
path: string;
|
|
14309
14627
|
expectedRevision: string;
|
|
14310
14628
|
fixture: string;
|
|
14311
14629
|
target: "email" | "web";
|
|
14312
14630
|
};
|
|
14631
|
+
headers?: {
|
|
14632
|
+
"idempotency-key"?: string | null | undefined;
|
|
14633
|
+
};
|
|
14313
14634
|
path: {
|
|
14314
|
-
id:
|
|
14635
|
+
id: NewsletterId;
|
|
14315
14636
|
};
|
|
14316
14637
|
query?: never;
|
|
14317
|
-
url: "/v1/
|
|
14638
|
+
url: "/v1/newsletters/{id}/issues/render";
|
|
14318
14639
|
};
|
|
14319
|
-
export type
|
|
14640
|
+
export type NewsletterIssuesRenderErrors = {
|
|
14320
14641
|
/**
|
|
14321
14642
|
* UnauthorizedError
|
|
14322
14643
|
*/
|
|
@@ -14346,8 +14667,8 @@ export type TopicIssuesRenderErrors = {
|
|
|
14346
14667
|
*/
|
|
14347
14668
|
504: GatewayTimeoutError;
|
|
14348
14669
|
};
|
|
14349
|
-
export type
|
|
14350
|
-
export type
|
|
14670
|
+
export type NewsletterIssuesRenderError = NewsletterIssuesRenderErrors[keyof NewsletterIssuesRenderErrors];
|
|
14671
|
+
export type NewsletterIssuesRenderResponses = {
|
|
14351
14672
|
/**
|
|
14352
14673
|
* Success
|
|
14353
14674
|
*/
|
|
@@ -14371,6 +14692,7 @@ export type TopicIssuesRenderResponses = {
|
|
|
14371
14692
|
path: string;
|
|
14372
14693
|
frontmatter: {
|
|
14373
14694
|
title: string;
|
|
14695
|
+
date?: string | undefined;
|
|
14374
14696
|
slug: string;
|
|
14375
14697
|
topic: string;
|
|
14376
14698
|
preheader?: string | undefined;
|
|
@@ -14475,16 +14797,16 @@ export type TopicIssuesRenderResponses = {
|
|
|
14475
14797
|
} | null | undefined;
|
|
14476
14798
|
};
|
|
14477
14799
|
};
|
|
14478
|
-
export type
|
|
14479
|
-
export type
|
|
14800
|
+
export type NewsletterIssuesRenderResponse = NewsletterIssuesRenderResponses[keyof NewsletterIssuesRenderResponses];
|
|
14801
|
+
export type NewsletterIssuesHeadData = {
|
|
14480
14802
|
body?: never;
|
|
14481
14803
|
path: {
|
|
14482
|
-
id:
|
|
14804
|
+
id: NewsletterId;
|
|
14483
14805
|
};
|
|
14484
14806
|
query?: never;
|
|
14485
|
-
url: "/v1/
|
|
14807
|
+
url: "/v1/newsletters/{id}/issues/head";
|
|
14486
14808
|
};
|
|
14487
|
-
export type
|
|
14809
|
+
export type NewsletterIssuesHeadErrors = {
|
|
14488
14810
|
/**
|
|
14489
14811
|
* UnauthorizedError
|
|
14490
14812
|
*/
|
|
@@ -14514,8 +14836,8 @@ export type TopicIssuesHeadErrors = {
|
|
|
14514
14836
|
*/
|
|
14515
14837
|
504: GatewayTimeoutError;
|
|
14516
14838
|
};
|
|
14517
|
-
export type
|
|
14518
|
-
export type
|
|
14839
|
+
export type NewsletterIssuesHeadError = NewsletterIssuesHeadErrors[keyof NewsletterIssuesHeadErrors];
|
|
14840
|
+
export type NewsletterIssuesHeadResponses = {
|
|
14519
14841
|
/**
|
|
14520
14842
|
* Success
|
|
14521
14843
|
*/
|
|
@@ -14525,18 +14847,18 @@ export type TopicIssuesHeadResponses = {
|
|
|
14525
14847
|
remoteHead: string;
|
|
14526
14848
|
};
|
|
14527
14849
|
};
|
|
14528
|
-
export type
|
|
14529
|
-
export type
|
|
14850
|
+
export type NewsletterIssuesHeadResponse = NewsletterIssuesHeadResponses[keyof NewsletterIssuesHeadResponses];
|
|
14851
|
+
export type NewsletterIssuesHistoryData = {
|
|
14530
14852
|
body?: never;
|
|
14531
14853
|
path: {
|
|
14532
|
-
id:
|
|
14854
|
+
id: NewsletterId;
|
|
14533
14855
|
};
|
|
14534
14856
|
query?: {
|
|
14535
14857
|
limit?: number | null | undefined;
|
|
14536
14858
|
};
|
|
14537
|
-
url: "/v1/
|
|
14859
|
+
url: "/v1/newsletters/{id}/issues/history";
|
|
14538
14860
|
};
|
|
14539
|
-
export type
|
|
14861
|
+
export type NewsletterIssuesHistoryErrors = {
|
|
14540
14862
|
/**
|
|
14541
14863
|
* UnauthorizedError
|
|
14542
14864
|
*/
|
|
@@ -14566,8 +14888,8 @@ export type TopicIssuesHistoryErrors = {
|
|
|
14566
14888
|
*/
|
|
14567
14889
|
504: GatewayTimeoutError;
|
|
14568
14890
|
};
|
|
14569
|
-
export type
|
|
14570
|
-
export type
|
|
14891
|
+
export type NewsletterIssuesHistoryError = NewsletterIssuesHistoryErrors[keyof NewsletterIssuesHistoryErrors];
|
|
14892
|
+
export type NewsletterIssuesHistoryResponses = {
|
|
14571
14893
|
/**
|
|
14572
14894
|
* Success
|
|
14573
14895
|
*/
|
|
@@ -14583,19 +14905,70 @@ export type TopicIssuesHistoryResponses = {
|
|
|
14583
14905
|
}>;
|
|
14584
14906
|
};
|
|
14585
14907
|
};
|
|
14586
|
-
export type
|
|
14587
|
-
export type
|
|
14908
|
+
export type NewsletterIssuesHistoryResponse = NewsletterIssuesHistoryResponses[keyof NewsletterIssuesHistoryResponses];
|
|
14909
|
+
export type NewsletterDomainsListData = {
|
|
14910
|
+
body?: never;
|
|
14911
|
+
path: {
|
|
14912
|
+
id: NewsletterId;
|
|
14913
|
+
};
|
|
14914
|
+
query?: {
|
|
14915
|
+
limit?: number | null | undefined;
|
|
14916
|
+
cursor?: PublicationDomainCursor | null | undefined;
|
|
14917
|
+
};
|
|
14918
|
+
url: "/v1/newsletters/{id}/domains";
|
|
14919
|
+
};
|
|
14920
|
+
export type NewsletterDomainsListErrors = {
|
|
14921
|
+
/**
|
|
14922
|
+
* UnauthorizedError
|
|
14923
|
+
*/
|
|
14924
|
+
401: UnauthorizedError;
|
|
14925
|
+
/**
|
|
14926
|
+
* ForbiddenError | FlagDisabledError
|
|
14927
|
+
*/
|
|
14928
|
+
403: ForbiddenError | FlagDisabledError;
|
|
14929
|
+
/**
|
|
14930
|
+
* ResourceNotFoundError
|
|
14931
|
+
*/
|
|
14932
|
+
404: ResourceNotFoundError;
|
|
14933
|
+
/**
|
|
14934
|
+
* ConflictError
|
|
14935
|
+
*/
|
|
14936
|
+
409: ConflictError;
|
|
14937
|
+
/**
|
|
14938
|
+
* ValidationError
|
|
14939
|
+
*/
|
|
14940
|
+
422: ValidationError;
|
|
14941
|
+
/**
|
|
14942
|
+
* InternalError
|
|
14943
|
+
*/
|
|
14944
|
+
500: InternalError;
|
|
14945
|
+
/**
|
|
14946
|
+
* GatewayTimeoutError
|
|
14947
|
+
*/
|
|
14948
|
+
504: GatewayTimeoutError;
|
|
14949
|
+
};
|
|
14950
|
+
export type NewsletterDomainsListError = NewsletterDomainsListErrors[keyof NewsletterDomainsListErrors];
|
|
14951
|
+
export type NewsletterDomainsListResponses = {
|
|
14952
|
+
/**
|
|
14953
|
+
* PublicationDomainPage
|
|
14954
|
+
*/
|
|
14955
|
+
200: PublicationDomainPage;
|
|
14956
|
+
};
|
|
14957
|
+
export type NewsletterDomainsListResponse = NewsletterDomainsListResponses[keyof NewsletterDomainsListResponses];
|
|
14958
|
+
export type NewsletterDomainsAddData = {
|
|
14588
14959
|
body: {
|
|
14589
14960
|
hostname: string;
|
|
14590
|
-
|
|
14961
|
+
};
|
|
14962
|
+
headers?: {
|
|
14963
|
+
"idempotency-key"?: string | null | undefined;
|
|
14591
14964
|
};
|
|
14592
14965
|
path: {
|
|
14593
|
-
id:
|
|
14966
|
+
id: NewsletterId;
|
|
14594
14967
|
};
|
|
14595
14968
|
query?: never;
|
|
14596
|
-
url: "/v1/
|
|
14969
|
+
url: "/v1/newsletters/{id}/domains";
|
|
14597
14970
|
};
|
|
14598
|
-
export type
|
|
14971
|
+
export type NewsletterDomainsAddErrors = {
|
|
14599
14972
|
/**
|
|
14600
14973
|
* UnauthorizedError
|
|
14601
14974
|
*/
|
|
@@ -14625,8 +14998,8 @@ export type TopicPublicationDomainsAddErrors = {
|
|
|
14625
14998
|
*/
|
|
14626
14999
|
504: GatewayTimeoutError;
|
|
14627
15000
|
};
|
|
14628
|
-
export type
|
|
14629
|
-
export type
|
|
15001
|
+
export type NewsletterDomainsAddError = NewsletterDomainsAddErrors[keyof NewsletterDomainsAddErrors];
|
|
15002
|
+
export type NewsletterDomainsAddResponses = {
|
|
14630
15003
|
/**
|
|
14631
15004
|
* Success
|
|
14632
15005
|
*/
|
|
@@ -14652,19 +15025,20 @@ export type TopicPublicationDomainsAddResponses = {
|
|
|
14652
15025
|
verificationErrors: Array<string>;
|
|
14653
15026
|
};
|
|
14654
15027
|
};
|
|
14655
|
-
export type
|
|
14656
|
-
export type
|
|
15028
|
+
export type NewsletterDomainsAddResponse = NewsletterDomainsAddResponses[keyof NewsletterDomainsAddResponses];
|
|
15029
|
+
export type NewsletterDomainsRemoveData = {
|
|
14657
15030
|
body?: never;
|
|
15031
|
+
headers?: {
|
|
15032
|
+
"idempotency-key"?: string | null | undefined;
|
|
15033
|
+
};
|
|
14658
15034
|
path: {
|
|
14659
|
-
id:
|
|
15035
|
+
id: NewsletterId;
|
|
14660
15036
|
hostname: string;
|
|
14661
15037
|
};
|
|
14662
|
-
query
|
|
14663
|
-
|
|
14664
|
-
};
|
|
14665
|
-
url: "/v1/topics/{id}/publication/domains/{hostname}";
|
|
15038
|
+
query?: never;
|
|
15039
|
+
url: "/v1/newsletters/{id}/domains/{hostname}";
|
|
14666
15040
|
};
|
|
14667
|
-
export type
|
|
15041
|
+
export type NewsletterDomainsRemoveErrors = {
|
|
14668
15042
|
/**
|
|
14669
15043
|
* UnauthorizedError
|
|
14670
15044
|
*/
|
|
@@ -14694,8 +15068,8 @@ export type TopicPublicationDomainsRemoveErrors = {
|
|
|
14694
15068
|
*/
|
|
14695
15069
|
504: GatewayTimeoutError;
|
|
14696
15070
|
};
|
|
14697
|
-
export type
|
|
14698
|
-
export type
|
|
15071
|
+
export type NewsletterDomainsRemoveError = NewsletterDomainsRemoveErrors[keyof NewsletterDomainsRemoveErrors];
|
|
15072
|
+
export type NewsletterDomainsRemoveResponses = {
|
|
14699
15073
|
/**
|
|
14700
15074
|
* Success
|
|
14701
15075
|
*/
|
|
@@ -14721,17 +15095,17 @@ export type TopicPublicationDomainsRemoveResponses = {
|
|
|
14721
15095
|
verificationErrors: Array<string>;
|
|
14722
15096
|
};
|
|
14723
15097
|
};
|
|
14724
|
-
export type
|
|
14725
|
-
export type
|
|
15098
|
+
export type NewsletterDomainsRemoveResponse = NewsletterDomainsRemoveResponses[keyof NewsletterDomainsRemoveResponses];
|
|
15099
|
+
export type NewsletterDomainsGetData = {
|
|
14726
15100
|
body?: never;
|
|
14727
15101
|
path: {
|
|
14728
|
-
id:
|
|
15102
|
+
id: NewsletterId;
|
|
14729
15103
|
hostname: string;
|
|
14730
15104
|
};
|
|
14731
15105
|
query?: never;
|
|
14732
|
-
url: "/v1/
|
|
15106
|
+
url: "/v1/newsletters/{id}/domains/{hostname}";
|
|
14733
15107
|
};
|
|
14734
|
-
export type
|
|
15108
|
+
export type NewsletterDomainsGetErrors = {
|
|
14735
15109
|
/**
|
|
14736
15110
|
* UnauthorizedError
|
|
14737
15111
|
*/
|
|
@@ -14761,8 +15135,8 @@ export type TopicPublicationDomainsGetErrors = {
|
|
|
14761
15135
|
*/
|
|
14762
15136
|
504: GatewayTimeoutError;
|
|
14763
15137
|
};
|
|
14764
|
-
export type
|
|
14765
|
-
export type
|
|
15138
|
+
export type NewsletterDomainsGetError = NewsletterDomainsGetErrors[keyof NewsletterDomainsGetErrors];
|
|
15139
|
+
export type NewsletterDomainsGetResponses = {
|
|
14766
15140
|
/**
|
|
14767
15141
|
* Success
|
|
14768
15142
|
*/
|
|
@@ -14788,7 +15162,7 @@ export type TopicPublicationDomainsGetResponses = {
|
|
|
14788
15162
|
verificationErrors: Array<string>;
|
|
14789
15163
|
};
|
|
14790
15164
|
};
|
|
14791
|
-
export type
|
|
15165
|
+
export type NewsletterDomainsGetResponse = NewsletterDomainsGetResponses[keyof NewsletterDomainsGetResponses];
|
|
14792
15166
|
export type AnalyticsGetStatsData = {
|
|
14793
15167
|
body?: never;
|
|
14794
15168
|
path?: never;
|
|
@@ -15148,8 +15522,8 @@ export type TemplatesCreateData = {
|
|
|
15148
15522
|
slug?: string | null | undefined;
|
|
15149
15523
|
galleryTemplateId?: string | null | undefined;
|
|
15150
15524
|
useBrand?: boolean | null | undefined;
|
|
15151
|
-
description?: string | null |
|
|
15152
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
15525
|
+
description?: string | null | undefined;
|
|
15526
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
15153
15527
|
isActive?: boolean | null | undefined;
|
|
15154
15528
|
/**
|
|
15155
15529
|
* The namespace the new template project belongs to; the project and every entry added to it share it. Omit for organization level. A namespace-scoped key always creates in its own namespace.
|
|
@@ -15159,7 +15533,9 @@ export type TemplatesCreateData = {
|
|
|
15159
15533
|
* Share the new organization-level project with every namespace: namespace-scoped keys read and send its entries but cannot change them. Defaults to false. Not with `namespaceId`, and not from a namespace-scoped key.
|
|
15160
15534
|
*/
|
|
15161
15535
|
shared?: boolean | null | undefined;
|
|
15162
|
-
|
|
15536
|
+
};
|
|
15537
|
+
headers: {
|
|
15538
|
+
"idempotency-key": string;
|
|
15163
15539
|
};
|
|
15164
15540
|
path?: never;
|
|
15165
15541
|
query?: never;
|
|
@@ -15640,14 +16016,14 @@ export type TemplatesUpdateData = {
|
|
|
15640
16016
|
name?: string | null | undefined;
|
|
15641
16017
|
slug?: string | null | undefined;
|
|
15642
16018
|
entryPath?: string | null | undefined;
|
|
15643
|
-
description?: string | null |
|
|
15644
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
15645
|
-
fromDefault?: TemplateFromDefault | null |
|
|
15646
|
-
replyToDefault?: Array<string> | null |
|
|
16019
|
+
description?: string | null | undefined;
|
|
16020
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
16021
|
+
fromDefault?: TemplateFromDefault | null | undefined;
|
|
16022
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
15647
16023
|
/**
|
|
15648
16024
|
* Engagement tracking for sends of this template: `opens` and `clicks`, each inherited from the domain and organization defaults when omitted. A send request's own `tracking` still wins. Null clears the template's default.
|
|
15649
16025
|
*/
|
|
15650
|
-
trackingDefault?: TemplateTrackingDefault | null |
|
|
16026
|
+
trackingDefault?: TemplateTrackingDefault | null | undefined;
|
|
15651
16027
|
isActive?: boolean | null | undefined;
|
|
15652
16028
|
/**
|
|
15653
16029
|
* Share the template's project with every namespace, or stop sharing it. Applies to every entry in the project. Only an organization-level project is shared.
|
|
@@ -15710,10 +16086,9 @@ export type TemplatesCreateFromWebsiteData = {
|
|
|
15710
16086
|
* The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
|
|
15711
16087
|
*/
|
|
15712
16088
|
namespaceId?: NamespaceId | null | undefined;
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
idempotencyKey: string;
|
|
16089
|
+
};
|
|
16090
|
+
headers: {
|
|
16091
|
+
"idempotency-key": string;
|
|
15717
16092
|
};
|
|
15718
16093
|
path?: never;
|
|
15719
16094
|
query?: never;
|
|
@@ -15762,8 +16137,8 @@ export type TemplatesAddEntryData = {
|
|
|
15762
16137
|
entryPath: string;
|
|
15763
16138
|
name: string;
|
|
15764
16139
|
slug: string;
|
|
15765
|
-
description?: string | null |
|
|
15766
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
16140
|
+
description?: string | null | undefined;
|
|
16141
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
15767
16142
|
};
|
|
15768
16143
|
path: {
|
|
15769
16144
|
id: TemplateProjectId;
|
|
@@ -15816,7 +16191,9 @@ export type TemplatesPatchWorkspaceData = {
|
|
|
15816
16191
|
path: string;
|
|
15817
16192
|
content: string | null;
|
|
15818
16193
|
}>;
|
|
15819
|
-
|
|
16194
|
+
};
|
|
16195
|
+
headers: {
|
|
16196
|
+
"idempotency-key": string;
|
|
15820
16197
|
};
|
|
15821
16198
|
path: {
|
|
15822
16199
|
id: TemplateId;
|
|
@@ -16137,7 +16514,9 @@ export type TemplatesPutWorkspaceAssetData = {
|
|
|
16137
16514
|
path: string;
|
|
16138
16515
|
contentBase64: string;
|
|
16139
16516
|
replace: boolean;
|
|
16140
|
-
|
|
16517
|
+
};
|
|
16518
|
+
headers: {
|
|
16519
|
+
"idempotency-key": string;
|
|
16141
16520
|
};
|
|
16142
16521
|
path: {
|
|
16143
16522
|
id: TemplateId;
|
|
@@ -16270,7 +16649,9 @@ export type TemplatesResolveWorkspaceConflictData = {
|
|
|
16270
16649
|
resolution: "draft" | "main" | {
|
|
16271
16650
|
content: string | null;
|
|
16272
16651
|
};
|
|
16273
|
-
|
|
16652
|
+
};
|
|
16653
|
+
headers: {
|
|
16654
|
+
"idempotency-key": string;
|
|
16274
16655
|
};
|
|
16275
16656
|
path: {
|
|
16276
16657
|
id: TemplateId;
|
|
@@ -16401,7 +16782,9 @@ export type TemplatesSaveWorkspaceData = {
|
|
|
16401
16782
|
expectedRevision: string;
|
|
16402
16783
|
expectedHead: string;
|
|
16403
16784
|
message: string;
|
|
16404
|
-
|
|
16785
|
+
};
|
|
16786
|
+
headers: {
|
|
16787
|
+
"idempotency-key": string;
|
|
16405
16788
|
};
|
|
16406
16789
|
path: {
|
|
16407
16790
|
id: TemplateId;
|
|
@@ -16505,7 +16888,9 @@ export type TemplatesRestoreWorkspaceData = {
|
|
|
16505
16888
|
body: {
|
|
16506
16889
|
expectedRevision: string;
|
|
16507
16890
|
commit: string;
|
|
16508
|
-
|
|
16891
|
+
};
|
|
16892
|
+
headers: {
|
|
16893
|
+
"idempotency-key": string;
|
|
16509
16894
|
};
|
|
16510
16895
|
path: {
|
|
16511
16896
|
id: TemplateId;
|
|
@@ -16764,6 +17149,7 @@ export type TemplatesCheckWorkspaceResponses = {
|
|
|
16764
17149
|
path: string;
|
|
16765
17150
|
frontmatter: {
|
|
16766
17151
|
title: string;
|
|
17152
|
+
date?: string | undefined;
|
|
16767
17153
|
slug: string;
|
|
16768
17154
|
topic: string;
|
|
16769
17155
|
preheader?: string | undefined;
|
|
@@ -16892,6 +17278,7 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
|
|
|
16892
17278
|
path: string;
|
|
16893
17279
|
frontmatter: {
|
|
16894
17280
|
title: string;
|
|
17281
|
+
date?: string | undefined;
|
|
16895
17282
|
slug: string;
|
|
16896
17283
|
topic: string;
|
|
16897
17284
|
preheader?: string | undefined;
|
|
@@ -17582,7 +17969,9 @@ export type TemplatesAttachWorkspaceResourceData = {
|
|
|
17582
17969
|
contentBase64: string;
|
|
17583
17970
|
}>;
|
|
17584
17971
|
};
|
|
17585
|
-
|
|
17972
|
+
};
|
|
17973
|
+
headers: {
|
|
17974
|
+
"idempotency-key": string;
|
|
17586
17975
|
};
|
|
17587
17976
|
path: {
|
|
17588
17977
|
id: TemplateId;
|
|
@@ -17706,7 +18095,9 @@ export type TemplatesAttachWorkspaceResourceResponse = TemplatesAttachWorkspaceR
|
|
|
17706
18095
|
export type TemplatesRemoveWorkspaceResourceData = {
|
|
17707
18096
|
body: {
|
|
17708
18097
|
expectedRevision: string;
|
|
17709
|
-
|
|
18098
|
+
};
|
|
18099
|
+
headers: {
|
|
18100
|
+
"idempotency-key": string;
|
|
17710
18101
|
};
|
|
17711
18102
|
path: {
|
|
17712
18103
|
id: TemplateId;
|
|
@@ -18293,9 +18684,9 @@ export type WebhooksUpdateData = {
|
|
|
18293
18684
|
name?: string | null | undefined;
|
|
18294
18685
|
url?: string | null | undefined;
|
|
18295
18686
|
eventTypes?: Array<"message.sent" | "message.delivered" | "message.read" | "message.failed" | "message.bounced" | "message.complained" | "message.received" | "message.opened" | "message.clicked" | "contact.created" | "contact.updated" | "contact.deleted" | "contact.subscribed" | "contact.unsubscribed" | "contact.resubscribed" | "contact.consent_changed" | "conversation.created" | "conversation.updated" | "conversation.archived" | "webhook.created" | "webhook.updated" | "webhook.deleted" | "webhook.test" | "domain.updated" | "domain.warming.updated" | "template.registration.updated" | "flow.registration.updated" | "whatsapp.number.connected" | "mailbox.message.received" | "mailbox.message.sent" | "mailbox.action.pending_approval" | "mailbox.action.resolved" | "mailbox.message.quarantined" | "mailbox.message.released" | "mailbox.message.discarded" | "mailbox.message.delivered" | "mailbox.message.read" | "mailbox.message.failed" | "journey.webhook"> | null | undefined;
|
|
18296
|
-
channels?: Array<"email"> | null |
|
|
18297
|
-
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null |
|
|
18298
|
-
namespaceId?: NamespaceId | null |
|
|
18687
|
+
channels?: Array<"email"> | null | undefined;
|
|
18688
|
+
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
18689
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
18299
18690
|
headers?: {
|
|
18300
18691
|
[key: string]: string | undefined;
|
|
18301
18692
|
} | null | undefined;
|
|
@@ -18714,14 +19105,14 @@ export type OrganizationsUpdateData = {
|
|
|
18714
19105
|
name?: string | null | undefined;
|
|
18715
19106
|
slug?: string | null | undefined;
|
|
18716
19107
|
avatarUrl?: string | null | null | undefined;
|
|
18717
|
-
defaultRegion?: PhoneRegion | null |
|
|
19108
|
+
defaultRegion?: PhoneRegion | null | undefined;
|
|
18718
19109
|
timezone?: IanaTimezone | null | undefined;
|
|
18719
19110
|
isActive?: boolean | null | undefined;
|
|
18720
19111
|
metadata?: {
|
|
18721
19112
|
[key: string]: JsonValueWritable | undefined;
|
|
18722
19113
|
} | null | undefined;
|
|
18723
|
-
replyToDefault?: Array<string> | null |
|
|
18724
|
-
emailFooterEnabledDefault?: boolean | null |
|
|
19114
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
19115
|
+
emailFooterEnabledDefault?: boolean | null | undefined;
|
|
18725
19116
|
};
|
|
18726
19117
|
path?: never;
|
|
18727
19118
|
query?: never;
|
|
@@ -19822,7 +20213,7 @@ export type MailboxesRemoveEndpointResponses = {
|
|
|
19822
20213
|
export type MailboxesRemoveEndpointResponse = MailboxesRemoveEndpointResponses[keyof MailboxesRemoveEndpointResponses];
|
|
19823
20214
|
export type MailboxesUpdateEndpointData = {
|
|
19824
20215
|
body: {
|
|
19825
|
-
displayName?: string | null |
|
|
20216
|
+
displayName?: string | null | undefined;
|
|
19826
20217
|
default?: true | null | undefined;
|
|
19827
20218
|
};
|
|
19828
20219
|
path: {
|
|
@@ -20370,7 +20761,7 @@ export type MailboxesUpdatePolicyData = {
|
|
|
20370
20761
|
body: {
|
|
20371
20762
|
name?: string | null | undefined;
|
|
20372
20763
|
outcome?: MailboxPolicyOutcomeKind | null | undefined;
|
|
20373
|
-
reason?: string | null |
|
|
20764
|
+
reason?: string | null | undefined;
|
|
20374
20765
|
enabled?: boolean | null | undefined;
|
|
20375
20766
|
};
|
|
20376
20767
|
path: {
|
|
@@ -20502,7 +20893,7 @@ export type MailboxesCreateLabelData = {
|
|
|
20502
20893
|
body: {
|
|
20503
20894
|
slug: string;
|
|
20504
20895
|
displayName: string;
|
|
20505
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
20896
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
20506
20897
|
};
|
|
20507
20898
|
path: {
|
|
20508
20899
|
id: MailboxId;
|
|
@@ -20594,7 +20985,7 @@ export type MailboxesDeleteLabelResponse = MailboxesDeleteLabelResponses[keyof M
|
|
|
20594
20985
|
export type MailboxesUpdateLabelData = {
|
|
20595
20986
|
body: {
|
|
20596
20987
|
displayName?: string | null | undefined;
|
|
20597
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
20988
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
20598
20989
|
};
|
|
20599
20990
|
path: {
|
|
20600
20991
|
id: MailboxId;
|
|
@@ -20739,7 +21130,7 @@ export type MailboxesUpdateThreadData = {
|
|
|
20739
21130
|
priority?: MailboxThreadPriority | null | undefined;
|
|
20740
21131
|
read?: boolean | null | undefined;
|
|
20741
21132
|
starred?: boolean | null | undefined;
|
|
20742
|
-
snoozedUntil?: string | null |
|
|
21133
|
+
snoozedUntil?: string | null | undefined;
|
|
20743
21134
|
};
|
|
20744
21135
|
path: {
|
|
20745
21136
|
id: MailboxId;
|
|
@@ -21013,7 +21404,7 @@ export type MailboxesListThreadNotesResponse = MailboxesListThreadNotesResponses
|
|
|
21013
21404
|
export type MailboxesCreateNoteData = {
|
|
21014
21405
|
body: {
|
|
21015
21406
|
body: string;
|
|
21016
|
-
color?: string | null |
|
|
21407
|
+
color?: string | null | undefined;
|
|
21017
21408
|
pinned?: boolean | null | undefined;
|
|
21018
21409
|
};
|
|
21019
21410
|
path: {
|
|
@@ -21104,7 +21495,7 @@ export type MailboxesDeleteNoteResponse = MailboxesDeleteNoteResponses[keyof Mai
|
|
|
21104
21495
|
export type MailboxesUpdateNoteData = {
|
|
21105
21496
|
body: {
|
|
21106
21497
|
body?: string | null | undefined;
|
|
21107
|
-
color?: string | null |
|
|
21498
|
+
color?: string | null | undefined;
|
|
21108
21499
|
pinned?: boolean | null | undefined;
|
|
21109
21500
|
};
|
|
21110
21501
|
path: {
|
|
@@ -21971,13 +22362,13 @@ export type MailboxesGetDraftResponse = MailboxesGetDraftResponses[keyof Mailbox
|
|
|
21971
22362
|
export type MailboxesUpdateDraftData = {
|
|
21972
22363
|
body: {
|
|
21973
22364
|
to?: Array<string> | null | undefined;
|
|
21974
|
-
cc?: Array<string> | null |
|
|
21975
|
-
bcc?: Array<string> | null |
|
|
21976
|
-
replyTo?: Array<string> | null |
|
|
21977
|
-
subject?: string | null |
|
|
21978
|
-
text?: string | null |
|
|
21979
|
-
html?: string | null |
|
|
21980
|
-
attachments?: Array<EmailAttachment> | null |
|
|
22365
|
+
cc?: Array<string> | null | undefined;
|
|
22366
|
+
bcc?: Array<string> | null | undefined;
|
|
22367
|
+
replyTo?: Array<string> | null | undefined;
|
|
22368
|
+
subject?: string | null | undefined;
|
|
22369
|
+
text?: string | null | undefined;
|
|
22370
|
+
html?: string | null | undefined;
|
|
22371
|
+
attachments?: Array<EmailAttachment> | null | undefined;
|
|
21981
22372
|
};
|
|
21982
22373
|
path: {
|
|
21983
22374
|
id: MailboxId;
|