samva 0.29.0 → 0.30.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 +216 -191
- package/dist/client/sdk.gen.js +2392 -1153
- package/dist/client/types.gen.d.ts +766 -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 +13 -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 +22 -22
- package/dist/effect/generated/conversations.js +7 -8
- 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;
|
|
@@ -9018,7 +9069,7 @@ export type ConversationsCreateData = {
|
|
|
9018
9069
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
9019
9070
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
9020
9071
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9021
|
-
context?: ConversationContextWritable | null |
|
|
9072
|
+
context?: ConversationContextWritable | null | undefined;
|
|
9022
9073
|
tags?: Array<string> | null | undefined;
|
|
9023
9074
|
categories?: Array<string> | null | undefined;
|
|
9024
9075
|
isTest?: boolean | null | undefined;
|
|
@@ -9104,16 +9155,16 @@ export type ConversationsGetByIdResponse = ConversationsGetByIdResponses[keyof C
|
|
|
9104
9155
|
export type ConversationsUpdateData = {
|
|
9105
9156
|
body: {
|
|
9106
9157
|
title?: string | null | undefined;
|
|
9107
|
-
description?: string | null |
|
|
9108
|
-
externalId?: string | null |
|
|
9109
|
-
parentConversationId?: ConversationId | null |
|
|
9158
|
+
description?: string | null | undefined;
|
|
9159
|
+
externalId?: string | null | undefined;
|
|
9160
|
+
parentConversationId?: ConversationId | null | undefined;
|
|
9110
9161
|
primaryChannel?: "email" | null | undefined;
|
|
9111
9162
|
status?: "active" | "waiting" | "resolved" | "escalated" | "archived" | null | undefined;
|
|
9112
|
-
statusReason?: string | null |
|
|
9163
|
+
statusReason?: string | null | undefined;
|
|
9113
9164
|
priority?: number | null | undefined;
|
|
9114
9165
|
urgency?: "low" | "medium" | "high" | "critical" | null | undefined;
|
|
9115
9166
|
complexity?: "simple" | "moderate" | "complex" | null | undefined;
|
|
9116
|
-
context?: ConversationContextWritable | null |
|
|
9167
|
+
context?: ConversationContextWritable | null | undefined;
|
|
9117
9168
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9118
9169
|
isTest?: boolean | null | undefined;
|
|
9119
9170
|
isInternal?: boolean | null | undefined;
|
|
@@ -9609,16 +9660,16 @@ export type ContactsCreateData = {
|
|
|
9609
9660
|
body: {
|
|
9610
9661
|
namespaceId?: NamespaceId | null | undefined;
|
|
9611
9662
|
name: string;
|
|
9612
|
-
displayName?: string | null |
|
|
9613
|
-
avatar?: string | null |
|
|
9663
|
+
displayName?: string | null | undefined;
|
|
9664
|
+
avatar?: string | null | undefined;
|
|
9614
9665
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
9615
|
-
profile?: ContactProfileWritable | null |
|
|
9616
|
-
preferences?: ContactPreferences | null |
|
|
9666
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
9667
|
+
preferences?: ContactPreferences | null | undefined;
|
|
9617
9668
|
tags?: Array<string> | null | undefined;
|
|
9618
9669
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
9619
|
-
statusReason?: string | null |
|
|
9620
|
-
externalId?: string | null |
|
|
9621
|
-
metadata?: JsonObjectWritable | null |
|
|
9670
|
+
statusReason?: string | null | undefined;
|
|
9671
|
+
externalId?: string | null | undefined;
|
|
9672
|
+
metadata?: JsonObjectWritable | null | undefined;
|
|
9622
9673
|
};
|
|
9623
9674
|
path?: never;
|
|
9624
9675
|
query?: never;
|
|
@@ -9725,11 +9776,11 @@ export type ContactsFindOrCreateData = {
|
|
|
9725
9776
|
lookup: ContactLookup;
|
|
9726
9777
|
create?: {
|
|
9727
9778
|
name?: string | null | undefined;
|
|
9728
|
-
displayName?: string | null |
|
|
9729
|
-
avatar?: string | null |
|
|
9779
|
+
displayName?: string | null | undefined;
|
|
9780
|
+
avatar?: string | null | undefined;
|
|
9730
9781
|
identities?: Array<ContactIdentityInput> | null | undefined;
|
|
9731
|
-
profile?: ContactProfileWritable | null |
|
|
9732
|
-
externalId?: string | null |
|
|
9782
|
+
profile?: ContactProfileWritable | null | undefined;
|
|
9783
|
+
externalId?: string | null | undefined;
|
|
9733
9784
|
} | null | undefined;
|
|
9734
9785
|
};
|
|
9735
9786
|
path?: never;
|
|
@@ -9878,13 +9929,13 @@ export type ContactsGetResponse = ContactsGetResponses[keyof ContactsGetResponse
|
|
|
9878
9929
|
export type ContactsUpdateData = {
|
|
9879
9930
|
body: {
|
|
9880
9931
|
name?: string | null | undefined;
|
|
9881
|
-
displayName?: string | null |
|
|
9882
|
-
avatar?: string | null |
|
|
9932
|
+
displayName?: string | null | undefined;
|
|
9933
|
+
avatar?: string | null | undefined;
|
|
9883
9934
|
profile?: ContactProfileUpdate | null | undefined;
|
|
9884
|
-
preferences?: ContactPreferences | null |
|
|
9935
|
+
preferences?: ContactPreferences | null | undefined;
|
|
9885
9936
|
status?: "active" | "paused" | "blocked" | "archived" | null | undefined;
|
|
9886
|
-
statusReason?: string | null |
|
|
9887
|
-
externalId?: string | null |
|
|
9937
|
+
statusReason?: string | null | undefined;
|
|
9938
|
+
externalId?: string | null | undefined;
|
|
9888
9939
|
metadata?: JsonObjectWritable | null | undefined;
|
|
9889
9940
|
};
|
|
9890
9941
|
path: {
|
|
@@ -10265,9 +10316,9 @@ export type ContactsPlanImportErrors = {
|
|
|
10265
10316
|
*/
|
|
10266
10317
|
401: UnauthorizedError;
|
|
10267
10318
|
/**
|
|
10268
|
-
* ForbiddenError
|
|
10319
|
+
* ForbiddenError
|
|
10269
10320
|
*/
|
|
10270
|
-
403: ForbiddenError
|
|
10321
|
+
403: ForbiddenError;
|
|
10271
10322
|
/**
|
|
10272
10323
|
* ResourceNotFoundError
|
|
10273
10324
|
*/
|
|
@@ -10357,12 +10408,14 @@ export type ContactsStartImportData = {
|
|
|
10357
10408
|
];
|
|
10358
10409
|
};
|
|
10359
10410
|
planHash: string;
|
|
10360
|
-
idempotencyKey: string;
|
|
10361
10411
|
} | {
|
|
10362
10412
|
mode: "resume";
|
|
10363
10413
|
jobId: ContactImportJobId;
|
|
10364
10414
|
expectedGeneration: number;
|
|
10365
10415
|
};
|
|
10416
|
+
headers?: {
|
|
10417
|
+
"idempotency-key"?: string | null | undefined;
|
|
10418
|
+
};
|
|
10366
10419
|
path?: never;
|
|
10367
10420
|
query?: never;
|
|
10368
10421
|
url: "/v1/contacts/imports";
|
|
@@ -10377,9 +10430,9 @@ export type ContactsStartImportErrors = {
|
|
|
10377
10430
|
*/
|
|
10378
10431
|
402: PaymentRequiredError;
|
|
10379
10432
|
/**
|
|
10380
|
-
* ForbiddenError
|
|
10433
|
+
* ForbiddenError
|
|
10381
10434
|
*/
|
|
10382
|
-
403: ForbiddenError
|
|
10435
|
+
403: ForbiddenError;
|
|
10383
10436
|
/**
|
|
10384
10437
|
* ResourceNotFoundError
|
|
10385
10438
|
*/
|
|
@@ -10792,7 +10845,9 @@ export type EventsCreateData = {
|
|
|
10792
10845
|
name: string;
|
|
10793
10846
|
properties?: JsonObjectWritable | null | undefined;
|
|
10794
10847
|
occurredAt?: string | null | undefined;
|
|
10795
|
-
|
|
10848
|
+
};
|
|
10849
|
+
headers?: {
|
|
10850
|
+
"idempotency-key"?: string | null | undefined;
|
|
10796
10851
|
};
|
|
10797
10852
|
path?: never;
|
|
10798
10853
|
query?: never;
|
|
@@ -10848,6 +10903,9 @@ export type EventsBatchData = {
|
|
|
10848
10903
|
body: {
|
|
10849
10904
|
events: [CreateEventPayload, ...Array<CreateEventPayload>];
|
|
10850
10905
|
};
|
|
10906
|
+
headers?: {
|
|
10907
|
+
"idempotency-key"?: string | null | undefined;
|
|
10908
|
+
};
|
|
10851
10909
|
path?: never;
|
|
10852
10910
|
query?: never;
|
|
10853
10911
|
url: "/v1/events/batch";
|
|
@@ -12116,14 +12174,14 @@ export type ContactGroupsListResponse = ContactGroupsListResponses[keyof Contact
|
|
|
12116
12174
|
export type ContactGroupsCreateData = {
|
|
12117
12175
|
body: {
|
|
12118
12176
|
name: string;
|
|
12119
|
-
description?: string | null |
|
|
12177
|
+
description?: string | null | undefined;
|
|
12120
12178
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
12121
12179
|
criteria?: {
|
|
12122
12180
|
[key: string]: JsonValueWritable | undefined;
|
|
12123
|
-
} | null |
|
|
12181
|
+
} | null | undefined;
|
|
12124
12182
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
12125
|
-
icon?: string | null |
|
|
12126
|
-
parentGroupId?: ContactGroupId | null |
|
|
12183
|
+
icon?: string | null | undefined;
|
|
12184
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
12127
12185
|
isActive?: boolean | null | undefined;
|
|
12128
12186
|
};
|
|
12129
12187
|
path?: never;
|
|
@@ -12289,14 +12347,14 @@ export type ContactGroupsGetByIdResponse = ContactGroupsGetByIdResponses[keyof C
|
|
|
12289
12347
|
export type ContactGroupsUpdateData = {
|
|
12290
12348
|
body: {
|
|
12291
12349
|
name?: string | null | undefined;
|
|
12292
|
-
description?: string | null |
|
|
12350
|
+
description?: string | null | undefined;
|
|
12293
12351
|
type?: "static" | "dynamic" | "smart" | null | undefined;
|
|
12294
12352
|
criteria?: {
|
|
12295
12353
|
[key: string]: JsonValueWritable | undefined;
|
|
12296
|
-
} | null |
|
|
12354
|
+
} | null | undefined;
|
|
12297
12355
|
color?: "clay" | "sand" | "moss" | "sky" | "plum" | "rose" | null | null | undefined;
|
|
12298
|
-
icon?: string | null |
|
|
12299
|
-
parentGroupId?: ContactGroupId | null |
|
|
12356
|
+
icon?: string | null | undefined;
|
|
12357
|
+
parentGroupId?: ContactGroupId | null | undefined;
|
|
12300
12358
|
isActive?: boolean | null | undefined;
|
|
12301
12359
|
};
|
|
12302
12360
|
path: {
|
|
@@ -12640,7 +12698,7 @@ export type CustomFieldsCreateData = {
|
|
|
12640
12698
|
label: string;
|
|
12641
12699
|
type: "text" | "number" | "boolean" | "date" | "select";
|
|
12642
12700
|
options?: Array<string> | null | undefined;
|
|
12643
|
-
defaultValue?: string | null |
|
|
12701
|
+
defaultValue?: string | null | undefined;
|
|
12644
12702
|
isRequired?: boolean | null | undefined;
|
|
12645
12703
|
sortOrder?: number | null | undefined;
|
|
12646
12704
|
};
|
|
@@ -12742,7 +12800,7 @@ export type CustomFieldsUpdateData = {
|
|
|
12742
12800
|
body: {
|
|
12743
12801
|
label?: string | null | undefined;
|
|
12744
12802
|
options?: Array<string> | null | undefined;
|
|
12745
|
-
defaultValue?: string | null |
|
|
12803
|
+
defaultValue?: string | null | undefined;
|
|
12746
12804
|
isRequired?: boolean | null | undefined;
|
|
12747
12805
|
sortOrder?: number | null | undefined;
|
|
12748
12806
|
};
|
|
@@ -12839,14 +12897,12 @@ export type TopicsListResponse = TopicsListResponses[keyof TopicsListResponses];
|
|
|
12839
12897
|
export type TopicsCreateData = {
|
|
12840
12898
|
body: {
|
|
12841
12899
|
name: string;
|
|
12842
|
-
description?: string | null |
|
|
12843
|
-
namespaceId?: NamespaceId | null |
|
|
12900
|
+
description?: string | null | undefined;
|
|
12901
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
12844
12902
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
12849
|
-
templateId?: TemplateId | null | null | undefined;
|
|
12903
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
12904
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
12905
|
+
templateId?: TemplateId | null | undefined;
|
|
12850
12906
|
};
|
|
12851
12907
|
path?: never;
|
|
12852
12908
|
query?: never;
|
|
@@ -13030,13 +13086,11 @@ export type TopicsGetResponse = TopicsGetResponses[keyof TopicsGetResponses];
|
|
|
13030
13086
|
export type TopicsUpdateData = {
|
|
13031
13087
|
body: {
|
|
13032
13088
|
name?: string | null | undefined;
|
|
13033
|
-
description?: string | null |
|
|
13089
|
+
description?: string | null | undefined;
|
|
13034
13090
|
default?: "opt_out" | "opt_in" | null | undefined;
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
replyMailboxId?: MailboxId | null | null | undefined;
|
|
13039
|
-
templateId?: TemplateId | null | null | undefined;
|
|
13091
|
+
defaultSenderId?: EmailSenderId | null | undefined;
|
|
13092
|
+
replyMailboxId?: MailboxId | null | undefined;
|
|
13093
|
+
templateId?: TemplateId | null | undefined;
|
|
13040
13094
|
};
|
|
13041
13095
|
path: {
|
|
13042
13096
|
id: TopicId;
|
|
@@ -13240,9 +13294,9 @@ export type TopicFormsListErrors = {
|
|
|
13240
13294
|
*/
|
|
13241
13295
|
401: UnauthorizedError;
|
|
13242
13296
|
/**
|
|
13243
|
-
* ForbiddenError
|
|
13297
|
+
* ForbiddenError
|
|
13244
13298
|
*/
|
|
13245
|
-
403: ForbiddenError
|
|
13299
|
+
403: ForbiddenError;
|
|
13246
13300
|
/**
|
|
13247
13301
|
* ResourceNotFoundError
|
|
13248
13302
|
*/
|
|
@@ -13291,9 +13345,9 @@ export type TopicFormsCreateErrors = {
|
|
|
13291
13345
|
*/
|
|
13292
13346
|
401: UnauthorizedError;
|
|
13293
13347
|
/**
|
|
13294
|
-
* ForbiddenError
|
|
13348
|
+
* ForbiddenError
|
|
13295
13349
|
*/
|
|
13296
|
-
403: ForbiddenError
|
|
13350
|
+
403: ForbiddenError;
|
|
13297
13351
|
/**
|
|
13298
13352
|
* ResourceNotFoundError
|
|
13299
13353
|
*/
|
|
@@ -13334,9 +13388,9 @@ export type TopicFormsRemoveErrors = {
|
|
|
13334
13388
|
*/
|
|
13335
13389
|
401: UnauthorizedError;
|
|
13336
13390
|
/**
|
|
13337
|
-
* ForbiddenError
|
|
13391
|
+
* ForbiddenError
|
|
13338
13392
|
*/
|
|
13339
|
-
403: ForbiddenError
|
|
13393
|
+
403: ForbiddenError;
|
|
13340
13394
|
/**
|
|
13341
13395
|
* ResourceNotFoundError
|
|
13342
13396
|
*/
|
|
@@ -13379,9 +13433,9 @@ export type TopicFormsGetErrors = {
|
|
|
13379
13433
|
*/
|
|
13380
13434
|
401: UnauthorizedError;
|
|
13381
13435
|
/**
|
|
13382
|
-
* ForbiddenError
|
|
13436
|
+
* ForbiddenError
|
|
13383
13437
|
*/
|
|
13384
|
-
403: ForbiddenError
|
|
13438
|
+
403: ForbiddenError;
|
|
13385
13439
|
/**
|
|
13386
13440
|
* ResourceNotFoundError
|
|
13387
13441
|
*/
|
|
@@ -13414,7 +13468,7 @@ export type TopicFormsUpdateData = {
|
|
|
13414
13468
|
confirmationMessage?: string | null | undefined;
|
|
13415
13469
|
successTitle?: string | null | undefined;
|
|
13416
13470
|
successMessage?: string | null | undefined;
|
|
13417
|
-
redirectUrl?: string | null |
|
|
13471
|
+
redirectUrl?: string | null | undefined;
|
|
13418
13472
|
};
|
|
13419
13473
|
path: {
|
|
13420
13474
|
id: TopicId;
|
|
@@ -13429,9 +13483,9 @@ export type TopicFormsUpdateErrors = {
|
|
|
13429
13483
|
*/
|
|
13430
13484
|
401: UnauthorizedError;
|
|
13431
13485
|
/**
|
|
13432
|
-
* ForbiddenError
|
|
13486
|
+
* ForbiddenError
|
|
13433
13487
|
*/
|
|
13434
|
-
403: ForbiddenError
|
|
13488
|
+
403: ForbiddenError;
|
|
13435
13489
|
/**
|
|
13436
13490
|
* ResourceNotFoundError
|
|
13437
13491
|
*/
|
|
@@ -13457,15 +13511,15 @@ export type TopicFormsUpdateResponses = {
|
|
|
13457
13511
|
200: TopicForm;
|
|
13458
13512
|
};
|
|
13459
13513
|
export type TopicFormsUpdateResponse = TopicFormsUpdateResponses[keyof TopicFormsUpdateResponses];
|
|
13460
|
-
export type
|
|
13514
|
+
export type NewslettersListData = {
|
|
13461
13515
|
body?: never;
|
|
13462
|
-
path
|
|
13463
|
-
|
|
13516
|
+
path?: never;
|
|
13517
|
+
query?: {
|
|
13518
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
13464
13519
|
};
|
|
13465
|
-
|
|
13466
|
-
url: "/v1/topics/{id}/issues";
|
|
13520
|
+
url: "/v1/newsletters";
|
|
13467
13521
|
};
|
|
13468
|
-
export type
|
|
13522
|
+
export type NewslettersListErrors = {
|
|
13469
13523
|
/**
|
|
13470
13524
|
* UnauthorizedError
|
|
13471
13525
|
*/
|
|
@@ -13483,9 +13537,9 @@ export type TopicIssuesListErrors = {
|
|
|
13483
13537
|
*/
|
|
13484
13538
|
409: ConflictError;
|
|
13485
13539
|
/**
|
|
13486
|
-
*
|
|
13540
|
+
* ValidationError
|
|
13487
13541
|
*/
|
|
13488
|
-
422:
|
|
13542
|
+
422: ValidationError;
|
|
13489
13543
|
/**
|
|
13490
13544
|
* InternalError
|
|
13491
13545
|
*/
|
|
@@ -13495,28 +13549,33 @@ export type TopicIssuesListErrors = {
|
|
|
13495
13549
|
*/
|
|
13496
13550
|
504: GatewayTimeoutError;
|
|
13497
13551
|
};
|
|
13498
|
-
export type
|
|
13499
|
-
export type
|
|
13552
|
+
export type NewslettersListError = NewslettersListErrors[keyof NewslettersListErrors];
|
|
13553
|
+
export type NewslettersListResponses = {
|
|
13500
13554
|
/**
|
|
13501
|
-
*
|
|
13555
|
+
* Success
|
|
13502
13556
|
*/
|
|
13503
|
-
200:
|
|
13557
|
+
200: {
|
|
13558
|
+
items: Array<Newsletter>;
|
|
13559
|
+
};
|
|
13504
13560
|
};
|
|
13505
|
-
export type
|
|
13506
|
-
export type
|
|
13561
|
+
export type NewslettersListResponse = NewslettersListResponses[keyof NewslettersListResponses];
|
|
13562
|
+
export type NewslettersCreateData = {
|
|
13507
13563
|
body: {
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13564
|
+
topicId?: TopicId | null | undefined;
|
|
13565
|
+
name?: string | null | undefined;
|
|
13566
|
+
description?: string | null | undefined;
|
|
13567
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
13568
|
+
archiveEnabled?: boolean | null | undefined;
|
|
13569
|
+
publicationSlug?: string | null | undefined;
|
|
13512
13570
|
};
|
|
13513
|
-
|
|
13514
|
-
|
|
13571
|
+
headers?: {
|
|
13572
|
+
"idempotency-key"?: string | null | undefined;
|
|
13515
13573
|
};
|
|
13574
|
+
path?: never;
|
|
13516
13575
|
query?: never;
|
|
13517
|
-
url: "/v1/
|
|
13576
|
+
url: "/v1/newsletters";
|
|
13518
13577
|
};
|
|
13519
|
-
export type
|
|
13578
|
+
export type NewslettersCreateErrors = {
|
|
13520
13579
|
/**
|
|
13521
13580
|
* UnauthorizedError
|
|
13522
13581
|
*/
|
|
@@ -13534,9 +13593,9 @@ export type TopicIssuesUpdateErrors = {
|
|
|
13534
13593
|
*/
|
|
13535
13594
|
409: ConflictError;
|
|
13536
13595
|
/**
|
|
13537
|
-
*
|
|
13596
|
+
* ValidationError
|
|
13538
13597
|
*/
|
|
13539
|
-
422:
|
|
13598
|
+
422: ValidationError;
|
|
13540
13599
|
/**
|
|
13541
13600
|
* InternalError
|
|
13542
13601
|
*/
|
|
@@ -13546,40 +13605,288 @@ export type TopicIssuesUpdateErrors = {
|
|
|
13546
13605
|
*/
|
|
13547
13606
|
504: GatewayTimeoutError;
|
|
13548
13607
|
};
|
|
13549
|
-
export type
|
|
13550
|
-
export type
|
|
13608
|
+
export type NewslettersCreateError = NewslettersCreateErrors[keyof NewslettersCreateErrors];
|
|
13609
|
+
export type NewslettersCreateResponses = {
|
|
13551
13610
|
/**
|
|
13552
|
-
*
|
|
13611
|
+
* Newsletter
|
|
13553
13612
|
*/
|
|
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
|
-
|
|
13613
|
+
201: Newsletter;
|
|
13614
|
+
};
|
|
13615
|
+
export type NewslettersCreateResponse = NewslettersCreateResponses[keyof NewslettersCreateResponses];
|
|
13616
|
+
export type NewslettersRemoveData = {
|
|
13617
|
+
body?: never;
|
|
13618
|
+
headers?: {
|
|
13619
|
+
"idempotency-key"?: string | null | undefined;
|
|
13620
|
+
};
|
|
13621
|
+
path: {
|
|
13622
|
+
id: NewsletterId;
|
|
13623
|
+
};
|
|
13624
|
+
query?: never;
|
|
13625
|
+
url: "/v1/newsletters/{id}";
|
|
13626
|
+
};
|
|
13627
|
+
export type NewslettersRemoveErrors = {
|
|
13628
|
+
/**
|
|
13629
|
+
* UnauthorizedError
|
|
13630
|
+
*/
|
|
13631
|
+
401: UnauthorizedError;
|
|
13632
|
+
/**
|
|
13633
|
+
* ForbiddenError | FlagDisabledError
|
|
13634
|
+
*/
|
|
13635
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13636
|
+
/**
|
|
13637
|
+
* ResourceNotFoundError
|
|
13638
|
+
*/
|
|
13639
|
+
404: ResourceNotFoundError;
|
|
13640
|
+
/**
|
|
13641
|
+
* ConflictError
|
|
13642
|
+
*/
|
|
13643
|
+
409: ConflictError;
|
|
13644
|
+
/**
|
|
13645
|
+
* ValidationError
|
|
13646
|
+
*/
|
|
13647
|
+
422: ValidationError;
|
|
13648
|
+
/**
|
|
13649
|
+
* InternalError
|
|
13650
|
+
*/
|
|
13651
|
+
500: InternalError;
|
|
13652
|
+
/**
|
|
13653
|
+
* GatewayTimeoutError
|
|
13654
|
+
*/
|
|
13655
|
+
504: GatewayTimeoutError;
|
|
13656
|
+
};
|
|
13657
|
+
export type NewslettersRemoveError = NewslettersRemoveErrors[keyof NewslettersRemoveErrors];
|
|
13658
|
+
export type NewslettersRemoveResponses = {
|
|
13659
|
+
/**
|
|
13660
|
+
* Success
|
|
13661
|
+
*/
|
|
13662
|
+
200: {
|
|
13663
|
+
success: boolean;
|
|
13664
|
+
};
|
|
13665
|
+
};
|
|
13666
|
+
export type NewslettersRemoveResponse = NewslettersRemoveResponses[keyof NewslettersRemoveResponses];
|
|
13667
|
+
export type NewslettersGetData = {
|
|
13668
|
+
body?: never;
|
|
13669
|
+
path: {
|
|
13670
|
+
id: NewsletterId;
|
|
13671
|
+
};
|
|
13672
|
+
query?: never;
|
|
13673
|
+
url: "/v1/newsletters/{id}";
|
|
13674
|
+
};
|
|
13675
|
+
export type NewslettersGetErrors = {
|
|
13676
|
+
/**
|
|
13677
|
+
* UnauthorizedError
|
|
13678
|
+
*/
|
|
13679
|
+
401: UnauthorizedError;
|
|
13680
|
+
/**
|
|
13681
|
+
* ForbiddenError | FlagDisabledError
|
|
13682
|
+
*/
|
|
13683
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13684
|
+
/**
|
|
13685
|
+
* ResourceNotFoundError
|
|
13686
|
+
*/
|
|
13687
|
+
404: ResourceNotFoundError;
|
|
13688
|
+
/**
|
|
13689
|
+
* ConflictError
|
|
13690
|
+
*/
|
|
13691
|
+
409: ConflictError;
|
|
13692
|
+
/**
|
|
13693
|
+
* ValidationError
|
|
13694
|
+
*/
|
|
13695
|
+
422: ValidationError;
|
|
13696
|
+
/**
|
|
13697
|
+
* InternalError
|
|
13698
|
+
*/
|
|
13699
|
+
500: InternalError;
|
|
13700
|
+
/**
|
|
13701
|
+
* GatewayTimeoutError
|
|
13702
|
+
*/
|
|
13703
|
+
504: GatewayTimeoutError;
|
|
13704
|
+
};
|
|
13705
|
+
export type NewslettersGetError = NewslettersGetErrors[keyof NewslettersGetErrors];
|
|
13706
|
+
export type NewslettersGetResponses = {
|
|
13707
|
+
/**
|
|
13708
|
+
* Newsletter
|
|
13709
|
+
*/
|
|
13710
|
+
200: Newsletter;
|
|
13711
|
+
};
|
|
13712
|
+
export type NewslettersGetResponse = NewslettersGetResponses[keyof NewslettersGetResponses];
|
|
13713
|
+
export type NewslettersUpdateData = {
|
|
13714
|
+
body: {
|
|
13715
|
+
archiveEnabled?: boolean | null | undefined;
|
|
13716
|
+
publicationSlug?: string | null | undefined;
|
|
13717
|
+
};
|
|
13718
|
+
headers?: {
|
|
13719
|
+
"idempotency-key"?: string | null | undefined;
|
|
13720
|
+
};
|
|
13721
|
+
path: {
|
|
13722
|
+
id: NewsletterId;
|
|
13723
|
+
};
|
|
13724
|
+
query?: never;
|
|
13725
|
+
url: "/v1/newsletters/{id}";
|
|
13726
|
+
};
|
|
13727
|
+
export type NewslettersUpdateErrors = {
|
|
13728
|
+
/**
|
|
13729
|
+
* UnauthorizedError
|
|
13730
|
+
*/
|
|
13731
|
+
401: UnauthorizedError;
|
|
13732
|
+
/**
|
|
13733
|
+
* ForbiddenError | FlagDisabledError
|
|
13734
|
+
*/
|
|
13735
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13736
|
+
/**
|
|
13737
|
+
* ResourceNotFoundError
|
|
13738
|
+
*/
|
|
13739
|
+
404: ResourceNotFoundError;
|
|
13740
|
+
/**
|
|
13741
|
+
* ConflictError
|
|
13742
|
+
*/
|
|
13743
|
+
409: ConflictError;
|
|
13744
|
+
/**
|
|
13745
|
+
* ValidationError
|
|
13746
|
+
*/
|
|
13747
|
+
422: ValidationError;
|
|
13748
|
+
/**
|
|
13749
|
+
* InternalError
|
|
13750
|
+
*/
|
|
13751
|
+
500: InternalError;
|
|
13752
|
+
/**
|
|
13753
|
+
* GatewayTimeoutError
|
|
13754
|
+
*/
|
|
13755
|
+
504: GatewayTimeoutError;
|
|
13756
|
+
};
|
|
13757
|
+
export type NewslettersUpdateError = NewslettersUpdateErrors[keyof NewslettersUpdateErrors];
|
|
13758
|
+
export type NewslettersUpdateResponses = {
|
|
13759
|
+
/**
|
|
13760
|
+
* Newsletter
|
|
13761
|
+
*/
|
|
13762
|
+
200: Newsletter;
|
|
13763
|
+
};
|
|
13764
|
+
export type NewslettersUpdateResponse = NewslettersUpdateResponses[keyof NewslettersUpdateResponses];
|
|
13765
|
+
export type NewsletterIssuesListData = {
|
|
13766
|
+
body?: never;
|
|
13767
|
+
path: {
|
|
13768
|
+
id: NewsletterId;
|
|
13769
|
+
};
|
|
13770
|
+
query?: never;
|
|
13771
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13772
|
+
};
|
|
13773
|
+
export type NewsletterIssuesListErrors = {
|
|
13774
|
+
/**
|
|
13775
|
+
* UnauthorizedError
|
|
13776
|
+
*/
|
|
13777
|
+
401: UnauthorizedError;
|
|
13778
|
+
/**
|
|
13779
|
+
* ForbiddenError | FlagDisabledError
|
|
13780
|
+
*/
|
|
13781
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13782
|
+
/**
|
|
13783
|
+
* ResourceNotFoundError
|
|
13784
|
+
*/
|
|
13785
|
+
404: ResourceNotFoundError;
|
|
13786
|
+
/**
|
|
13787
|
+
* ConflictError
|
|
13788
|
+
*/
|
|
13789
|
+
409: ConflictError;
|
|
13790
|
+
/**
|
|
13791
|
+
* TemplateSourceError | ValidationError
|
|
13792
|
+
*/
|
|
13793
|
+
422: TemplateSourceError | ValidationError;
|
|
13794
|
+
/**
|
|
13795
|
+
* InternalError
|
|
13796
|
+
*/
|
|
13797
|
+
500: InternalError;
|
|
13798
|
+
/**
|
|
13799
|
+
* GatewayTimeoutError
|
|
13800
|
+
*/
|
|
13801
|
+
504: GatewayTimeoutError;
|
|
13802
|
+
};
|
|
13803
|
+
export type NewsletterIssuesListError = NewsletterIssuesListErrors[keyof NewsletterIssuesListErrors];
|
|
13804
|
+
export type NewsletterIssuesListResponses = {
|
|
13805
|
+
/**
|
|
13806
|
+
* NewsletterIssueList
|
|
13807
|
+
*/
|
|
13808
|
+
200: NewsletterIssueList;
|
|
13809
|
+
};
|
|
13810
|
+
export type NewsletterIssuesListResponse = NewsletterIssuesListResponses[keyof NewsletterIssuesListResponses];
|
|
13811
|
+
export type NewsletterIssuesUpdateData = {
|
|
13812
|
+
body: {
|
|
13813
|
+
path: string;
|
|
13814
|
+
content: string;
|
|
13815
|
+
expectedRevision: string;
|
|
13816
|
+
};
|
|
13817
|
+
headers?: {
|
|
13818
|
+
"idempotency-key"?: string | null | undefined;
|
|
13819
|
+
};
|
|
13820
|
+
path: {
|
|
13821
|
+
id: NewsletterId;
|
|
13822
|
+
};
|
|
13823
|
+
query?: never;
|
|
13824
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13825
|
+
};
|
|
13826
|
+
export type NewsletterIssuesUpdateErrors = {
|
|
13827
|
+
/**
|
|
13828
|
+
* UnauthorizedError
|
|
13829
|
+
*/
|
|
13830
|
+
401: UnauthorizedError;
|
|
13831
|
+
/**
|
|
13832
|
+
* ForbiddenError | FlagDisabledError
|
|
13833
|
+
*/
|
|
13834
|
+
403: ForbiddenError | FlagDisabledError;
|
|
13835
|
+
/**
|
|
13836
|
+
* ResourceNotFoundError
|
|
13837
|
+
*/
|
|
13838
|
+
404: ResourceNotFoundError;
|
|
13839
|
+
/**
|
|
13840
|
+
* ConflictError
|
|
13841
|
+
*/
|
|
13842
|
+
409: ConflictError;
|
|
13843
|
+
/**
|
|
13844
|
+
* TemplateSourceError | ValidationError
|
|
13845
|
+
*/
|
|
13846
|
+
422: TemplateSourceError | ValidationError;
|
|
13847
|
+
/**
|
|
13848
|
+
* InternalError
|
|
13849
|
+
*/
|
|
13850
|
+
500: InternalError;
|
|
13851
|
+
/**
|
|
13852
|
+
* GatewayTimeoutError
|
|
13853
|
+
*/
|
|
13854
|
+
504: GatewayTimeoutError;
|
|
13855
|
+
};
|
|
13856
|
+
export type NewsletterIssuesUpdateError = NewsletterIssuesUpdateErrors[keyof NewsletterIssuesUpdateErrors];
|
|
13857
|
+
export type NewsletterIssuesUpdateResponses = {
|
|
13858
|
+
/**
|
|
13859
|
+
* Success
|
|
13860
|
+
*/
|
|
13861
|
+
200: {
|
|
13862
|
+
workspace: {
|
|
13863
|
+
projectId: TemplateProjectId;
|
|
13864
|
+
organizationId: OrganizationId | null;
|
|
13865
|
+
ownerEpoch: number;
|
|
13866
|
+
repositoryName: string;
|
|
13867
|
+
defaultBranch: string;
|
|
13868
|
+
baseCommit: string;
|
|
13869
|
+
remoteHead: string;
|
|
13870
|
+
pendingRemoteHead: string | null;
|
|
13871
|
+
revision: string;
|
|
13872
|
+
overlay: {
|
|
13873
|
+
[key: string]: string | null;
|
|
13874
|
+
};
|
|
13875
|
+
assetChanges: Array<{
|
|
13876
|
+
path: string;
|
|
13877
|
+
status: "added" | "modified" | "deleted";
|
|
13878
|
+
}>;
|
|
13879
|
+
conflicts: Array<{
|
|
13880
|
+
path: string;
|
|
13881
|
+
base: string | null;
|
|
13882
|
+
draft: string | null;
|
|
13883
|
+
main: string | null;
|
|
13884
|
+
}>;
|
|
13885
|
+
provenance: {
|
|
13886
|
+
references: Array<{
|
|
13887
|
+
kind: string;
|
|
13888
|
+
digest: string;
|
|
13889
|
+
locator?: string | undefined;
|
|
13583
13890
|
}>;
|
|
13584
13891
|
};
|
|
13585
13892
|
mounts: Array<{
|
|
@@ -13633,21 +13940,23 @@ export type TopicIssuesUpdateResponses = {
|
|
|
13633
13940
|
};
|
|
13634
13941
|
};
|
|
13635
13942
|
};
|
|
13636
|
-
export type
|
|
13637
|
-
export type
|
|
13943
|
+
export type NewsletterIssuesUpdateResponse = NewsletterIssuesUpdateResponses[keyof NewsletterIssuesUpdateResponses];
|
|
13944
|
+
export type NewsletterIssuesCreateData = {
|
|
13638
13945
|
body: {
|
|
13639
13946
|
path: string;
|
|
13640
13947
|
content: string;
|
|
13641
|
-
idempotencyKey: string;
|
|
13642
13948
|
expectedRevision?: string | null | undefined;
|
|
13643
13949
|
};
|
|
13950
|
+
headers?: {
|
|
13951
|
+
"idempotency-key"?: string | null | undefined;
|
|
13952
|
+
};
|
|
13644
13953
|
path: {
|
|
13645
|
-
id:
|
|
13954
|
+
id: NewsletterId;
|
|
13646
13955
|
};
|
|
13647
13956
|
query?: never;
|
|
13648
|
-
url: "/v1/
|
|
13957
|
+
url: "/v1/newsletters/{id}/issues";
|
|
13649
13958
|
};
|
|
13650
|
-
export type
|
|
13959
|
+
export type NewsletterIssuesCreateErrors = {
|
|
13651
13960
|
/**
|
|
13652
13961
|
* UnauthorizedError
|
|
13653
13962
|
*/
|
|
@@ -13677,8 +13986,8 @@ export type TopicIssuesCreateErrors = {
|
|
|
13677
13986
|
*/
|
|
13678
13987
|
504: GatewayTimeoutError;
|
|
13679
13988
|
};
|
|
13680
|
-
export type
|
|
13681
|
-
export type
|
|
13989
|
+
export type NewsletterIssuesCreateError = NewsletterIssuesCreateErrors[keyof NewsletterIssuesCreateErrors];
|
|
13990
|
+
export type NewsletterIssuesCreateResponses = {
|
|
13682
13991
|
/**
|
|
13683
13992
|
* Success
|
|
13684
13993
|
*/
|
|
@@ -13764,16 +14073,16 @@ export type TopicIssuesCreateResponses = {
|
|
|
13764
14073
|
};
|
|
13765
14074
|
};
|
|
13766
14075
|
};
|
|
13767
|
-
export type
|
|
13768
|
-
export type
|
|
14076
|
+
export type NewsletterIssuesCreateResponse = NewsletterIssuesCreateResponses[keyof NewsletterIssuesCreateResponses];
|
|
14077
|
+
export type NewsletterIssuesOpenData = {
|
|
13769
14078
|
body?: never;
|
|
13770
14079
|
path: {
|
|
13771
|
-
id:
|
|
14080
|
+
id: NewsletterId;
|
|
13772
14081
|
};
|
|
13773
14082
|
query?: never;
|
|
13774
|
-
url: "/v1/
|
|
14083
|
+
url: "/v1/newsletters/{id}/issues/workspace";
|
|
13775
14084
|
};
|
|
13776
|
-
export type
|
|
14085
|
+
export type NewsletterIssuesOpenErrors = {
|
|
13777
14086
|
/**
|
|
13778
14087
|
* UnauthorizedError
|
|
13779
14088
|
*/
|
|
@@ -13803,8 +14112,8 @@ export type TopicIssuesOpenErrors = {
|
|
|
13803
14112
|
*/
|
|
13804
14113
|
504: GatewayTimeoutError;
|
|
13805
14114
|
};
|
|
13806
|
-
export type
|
|
13807
|
-
export type
|
|
14115
|
+
export type NewsletterIssuesOpenError = NewsletterIssuesOpenErrors[keyof NewsletterIssuesOpenErrors];
|
|
14116
|
+
export type NewsletterIssuesOpenResponses = {
|
|
13808
14117
|
/**
|
|
13809
14118
|
* Success
|
|
13810
14119
|
*/
|
|
@@ -13890,19 +14199,19 @@ export type TopicIssuesOpenResponses = {
|
|
|
13890
14199
|
};
|
|
13891
14200
|
};
|
|
13892
14201
|
};
|
|
13893
|
-
export type
|
|
13894
|
-
export type
|
|
14202
|
+
export type NewsletterIssuesOpenResponse = NewsletterIssuesOpenResponses[keyof NewsletterIssuesOpenResponses];
|
|
14203
|
+
export type NewsletterIssuesGetData = {
|
|
13895
14204
|
body?: never;
|
|
13896
14205
|
path: {
|
|
13897
|
-
id:
|
|
14206
|
+
id: NewsletterId;
|
|
13898
14207
|
};
|
|
13899
14208
|
query: {
|
|
13900
14209
|
path: string;
|
|
13901
14210
|
expectedRevision: string;
|
|
13902
14211
|
};
|
|
13903
|
-
url: "/v1/
|
|
14212
|
+
url: "/v1/newsletters/{id}/issues/document";
|
|
13904
14213
|
};
|
|
13905
|
-
export type
|
|
14214
|
+
export type NewsletterIssuesGetErrors = {
|
|
13906
14215
|
/**
|
|
13907
14216
|
* UnauthorizedError
|
|
13908
14217
|
*/
|
|
@@ -13932,27 +14241,29 @@ export type TopicIssuesGetErrors = {
|
|
|
13932
14241
|
*/
|
|
13933
14242
|
504: GatewayTimeoutError;
|
|
13934
14243
|
};
|
|
13935
|
-
export type
|
|
13936
|
-
export type
|
|
14244
|
+
export type NewsletterIssuesGetError = NewsletterIssuesGetErrors[keyof NewsletterIssuesGetErrors];
|
|
14245
|
+
export type NewsletterIssuesGetResponses = {
|
|
13937
14246
|
/**
|
|
13938
|
-
*
|
|
14247
|
+
* NewsletterIssueDocument
|
|
13939
14248
|
*/
|
|
13940
|
-
200:
|
|
14249
|
+
200: NewsletterIssueDocument;
|
|
13941
14250
|
};
|
|
13942
|
-
export type
|
|
13943
|
-
export type
|
|
14251
|
+
export type NewsletterIssuesGetResponse = NewsletterIssuesGetResponses[keyof NewsletterIssuesGetResponses];
|
|
14252
|
+
export type NewsletterIssuesRemoveData = {
|
|
13944
14253
|
body: {
|
|
13945
14254
|
path: string;
|
|
13946
|
-
idempotencyKey: string;
|
|
13947
14255
|
expectedRevision: string;
|
|
13948
14256
|
};
|
|
14257
|
+
headers?: {
|
|
14258
|
+
"idempotency-key"?: string | null | undefined;
|
|
14259
|
+
};
|
|
13949
14260
|
path: {
|
|
13950
|
-
id:
|
|
14261
|
+
id: NewsletterId;
|
|
13951
14262
|
};
|
|
13952
14263
|
query?: never;
|
|
13953
|
-
url: "/v1/
|
|
14264
|
+
url: "/v1/newsletters/{id}/issues/remove";
|
|
13954
14265
|
};
|
|
13955
|
-
export type
|
|
14266
|
+
export type NewsletterIssuesRemoveErrors = {
|
|
13956
14267
|
/**
|
|
13957
14268
|
* UnauthorizedError
|
|
13958
14269
|
*/
|
|
@@ -13982,8 +14293,8 @@ export type TopicIssuesRemoveErrors = {
|
|
|
13982
14293
|
*/
|
|
13983
14294
|
504: GatewayTimeoutError;
|
|
13984
14295
|
};
|
|
13985
|
-
export type
|
|
13986
|
-
export type
|
|
14296
|
+
export type NewsletterIssuesRemoveError = NewsletterIssuesRemoveErrors[keyof NewsletterIssuesRemoveErrors];
|
|
14297
|
+
export type NewsletterIssuesRemoveResponses = {
|
|
13987
14298
|
/**
|
|
13988
14299
|
* Success
|
|
13989
14300
|
*/
|
|
@@ -14069,21 +14380,23 @@ export type TopicIssuesRemoveResponses = {
|
|
|
14069
14380
|
};
|
|
14070
14381
|
};
|
|
14071
14382
|
};
|
|
14072
|
-
export type
|
|
14073
|
-
export type
|
|
14383
|
+
export type NewsletterIssuesRemoveResponse = NewsletterIssuesRemoveResponses[keyof NewsletterIssuesRemoveResponses];
|
|
14384
|
+
export type NewsletterIssuesSaveData = {
|
|
14074
14385
|
body: {
|
|
14075
14386
|
expectedRevision: string;
|
|
14076
14387
|
expectedHead: string;
|
|
14077
14388
|
message: string;
|
|
14078
|
-
|
|
14389
|
+
};
|
|
14390
|
+
headers?: {
|
|
14391
|
+
"idempotency-key"?: string | null | undefined;
|
|
14079
14392
|
};
|
|
14080
14393
|
path: {
|
|
14081
|
-
id:
|
|
14394
|
+
id: NewsletterId;
|
|
14082
14395
|
};
|
|
14083
14396
|
query?: never;
|
|
14084
|
-
url: "/v1/
|
|
14397
|
+
url: "/v1/newsletters/{id}/issues/save";
|
|
14085
14398
|
};
|
|
14086
|
-
export type
|
|
14399
|
+
export type NewsletterIssuesSaveErrors = {
|
|
14087
14400
|
/**
|
|
14088
14401
|
* UnauthorizedError
|
|
14089
14402
|
*/
|
|
@@ -14113,8 +14426,8 @@ export type TopicIssuesSaveErrors = {
|
|
|
14113
14426
|
*/
|
|
14114
14427
|
504: GatewayTimeoutError;
|
|
14115
14428
|
};
|
|
14116
|
-
export type
|
|
14117
|
-
export type
|
|
14429
|
+
export type NewsletterIssuesSaveError = NewsletterIssuesSaveErrors[keyof NewsletterIssuesSaveErrors];
|
|
14430
|
+
export type NewsletterIssuesSaveResponses = {
|
|
14118
14431
|
/**
|
|
14119
14432
|
* Success
|
|
14120
14433
|
*/
|
|
@@ -14174,19 +14487,22 @@ export type TopicIssuesSaveResponses = {
|
|
|
14174
14487
|
}>;
|
|
14175
14488
|
};
|
|
14176
14489
|
};
|
|
14177
|
-
export type
|
|
14178
|
-
export type
|
|
14490
|
+
export type NewsletterIssuesSaveResponse = NewsletterIssuesSaveResponses[keyof NewsletterIssuesSaveResponses];
|
|
14491
|
+
export type NewsletterIssuesCheckData = {
|
|
14179
14492
|
body: {
|
|
14180
14493
|
path: string;
|
|
14181
14494
|
expectedRevision: string;
|
|
14182
14495
|
};
|
|
14496
|
+
headers?: {
|
|
14497
|
+
"idempotency-key"?: string | null | undefined;
|
|
14498
|
+
};
|
|
14183
14499
|
path: {
|
|
14184
|
-
id:
|
|
14500
|
+
id: NewsletterId;
|
|
14185
14501
|
};
|
|
14186
14502
|
query?: never;
|
|
14187
|
-
url: "/v1/
|
|
14503
|
+
url: "/v1/newsletters/{id}/issues/check";
|
|
14188
14504
|
};
|
|
14189
|
-
export type
|
|
14505
|
+
export type NewsletterIssuesCheckErrors = {
|
|
14190
14506
|
/**
|
|
14191
14507
|
* UnauthorizedError
|
|
14192
14508
|
*/
|
|
@@ -14216,8 +14532,8 @@ export type TopicIssuesCheckErrors = {
|
|
|
14216
14532
|
*/
|
|
14217
14533
|
504: GatewayTimeoutError;
|
|
14218
14534
|
};
|
|
14219
|
-
export type
|
|
14220
|
-
export type
|
|
14535
|
+
export type NewsletterIssuesCheckError = NewsletterIssuesCheckErrors[keyof NewsletterIssuesCheckErrors];
|
|
14536
|
+
export type NewsletterIssuesCheckResponses = {
|
|
14221
14537
|
/**
|
|
14222
14538
|
* Success
|
|
14223
14539
|
*/
|
|
@@ -14241,6 +14557,7 @@ export type TopicIssuesCheckResponses = {
|
|
|
14241
14557
|
path: string;
|
|
14242
14558
|
frontmatter: {
|
|
14243
14559
|
title: string;
|
|
14560
|
+
date?: string | undefined;
|
|
14244
14561
|
slug: string;
|
|
14245
14562
|
topic: string;
|
|
14246
14563
|
preheader?: string | undefined;
|
|
@@ -14302,21 +14619,24 @@ export type TopicIssuesCheckResponses = {
|
|
|
14302
14619
|
}>;
|
|
14303
14620
|
};
|
|
14304
14621
|
};
|
|
14305
|
-
export type
|
|
14306
|
-
export type
|
|
14622
|
+
export type NewsletterIssuesCheckResponse = NewsletterIssuesCheckResponses[keyof NewsletterIssuesCheckResponses];
|
|
14623
|
+
export type NewsletterIssuesRenderData = {
|
|
14307
14624
|
body: {
|
|
14308
14625
|
path: string;
|
|
14309
14626
|
expectedRevision: string;
|
|
14310
14627
|
fixture: string;
|
|
14311
14628
|
target: "email" | "web";
|
|
14312
14629
|
};
|
|
14630
|
+
headers?: {
|
|
14631
|
+
"idempotency-key"?: string | null | undefined;
|
|
14632
|
+
};
|
|
14313
14633
|
path: {
|
|
14314
|
-
id:
|
|
14634
|
+
id: NewsletterId;
|
|
14315
14635
|
};
|
|
14316
14636
|
query?: never;
|
|
14317
|
-
url: "/v1/
|
|
14637
|
+
url: "/v1/newsletters/{id}/issues/render";
|
|
14318
14638
|
};
|
|
14319
|
-
export type
|
|
14639
|
+
export type NewsletterIssuesRenderErrors = {
|
|
14320
14640
|
/**
|
|
14321
14641
|
* UnauthorizedError
|
|
14322
14642
|
*/
|
|
@@ -14346,8 +14666,8 @@ export type TopicIssuesRenderErrors = {
|
|
|
14346
14666
|
*/
|
|
14347
14667
|
504: GatewayTimeoutError;
|
|
14348
14668
|
};
|
|
14349
|
-
export type
|
|
14350
|
-
export type
|
|
14669
|
+
export type NewsletterIssuesRenderError = NewsletterIssuesRenderErrors[keyof NewsletterIssuesRenderErrors];
|
|
14670
|
+
export type NewsletterIssuesRenderResponses = {
|
|
14351
14671
|
/**
|
|
14352
14672
|
* Success
|
|
14353
14673
|
*/
|
|
@@ -14371,6 +14691,7 @@ export type TopicIssuesRenderResponses = {
|
|
|
14371
14691
|
path: string;
|
|
14372
14692
|
frontmatter: {
|
|
14373
14693
|
title: string;
|
|
14694
|
+
date?: string | undefined;
|
|
14374
14695
|
slug: string;
|
|
14375
14696
|
topic: string;
|
|
14376
14697
|
preheader?: string | undefined;
|
|
@@ -14475,16 +14796,16 @@ export type TopicIssuesRenderResponses = {
|
|
|
14475
14796
|
} | null | undefined;
|
|
14476
14797
|
};
|
|
14477
14798
|
};
|
|
14478
|
-
export type
|
|
14479
|
-
export type
|
|
14799
|
+
export type NewsletterIssuesRenderResponse = NewsletterIssuesRenderResponses[keyof NewsletterIssuesRenderResponses];
|
|
14800
|
+
export type NewsletterIssuesHeadData = {
|
|
14480
14801
|
body?: never;
|
|
14481
14802
|
path: {
|
|
14482
|
-
id:
|
|
14803
|
+
id: NewsletterId;
|
|
14483
14804
|
};
|
|
14484
14805
|
query?: never;
|
|
14485
|
-
url: "/v1/
|
|
14806
|
+
url: "/v1/newsletters/{id}/issues/head";
|
|
14486
14807
|
};
|
|
14487
|
-
export type
|
|
14808
|
+
export type NewsletterIssuesHeadErrors = {
|
|
14488
14809
|
/**
|
|
14489
14810
|
* UnauthorizedError
|
|
14490
14811
|
*/
|
|
@@ -14514,8 +14835,8 @@ export type TopicIssuesHeadErrors = {
|
|
|
14514
14835
|
*/
|
|
14515
14836
|
504: GatewayTimeoutError;
|
|
14516
14837
|
};
|
|
14517
|
-
export type
|
|
14518
|
-
export type
|
|
14838
|
+
export type NewsletterIssuesHeadError = NewsletterIssuesHeadErrors[keyof NewsletterIssuesHeadErrors];
|
|
14839
|
+
export type NewsletterIssuesHeadResponses = {
|
|
14519
14840
|
/**
|
|
14520
14841
|
* Success
|
|
14521
14842
|
*/
|
|
@@ -14525,18 +14846,18 @@ export type TopicIssuesHeadResponses = {
|
|
|
14525
14846
|
remoteHead: string;
|
|
14526
14847
|
};
|
|
14527
14848
|
};
|
|
14528
|
-
export type
|
|
14529
|
-
export type
|
|
14849
|
+
export type NewsletterIssuesHeadResponse = NewsletterIssuesHeadResponses[keyof NewsletterIssuesHeadResponses];
|
|
14850
|
+
export type NewsletterIssuesHistoryData = {
|
|
14530
14851
|
body?: never;
|
|
14531
14852
|
path: {
|
|
14532
|
-
id:
|
|
14853
|
+
id: NewsletterId;
|
|
14533
14854
|
};
|
|
14534
14855
|
query?: {
|
|
14535
14856
|
limit?: number | null | undefined;
|
|
14536
14857
|
};
|
|
14537
|
-
url: "/v1/
|
|
14858
|
+
url: "/v1/newsletters/{id}/issues/history";
|
|
14538
14859
|
};
|
|
14539
|
-
export type
|
|
14860
|
+
export type NewsletterIssuesHistoryErrors = {
|
|
14540
14861
|
/**
|
|
14541
14862
|
* UnauthorizedError
|
|
14542
14863
|
*/
|
|
@@ -14566,8 +14887,8 @@ export type TopicIssuesHistoryErrors = {
|
|
|
14566
14887
|
*/
|
|
14567
14888
|
504: GatewayTimeoutError;
|
|
14568
14889
|
};
|
|
14569
|
-
export type
|
|
14570
|
-
export type
|
|
14890
|
+
export type NewsletterIssuesHistoryError = NewsletterIssuesHistoryErrors[keyof NewsletterIssuesHistoryErrors];
|
|
14891
|
+
export type NewsletterIssuesHistoryResponses = {
|
|
14571
14892
|
/**
|
|
14572
14893
|
* Success
|
|
14573
14894
|
*/
|
|
@@ -14583,19 +14904,70 @@ export type TopicIssuesHistoryResponses = {
|
|
|
14583
14904
|
}>;
|
|
14584
14905
|
};
|
|
14585
14906
|
};
|
|
14586
|
-
export type
|
|
14587
|
-
export type
|
|
14907
|
+
export type NewsletterIssuesHistoryResponse = NewsletterIssuesHistoryResponses[keyof NewsletterIssuesHistoryResponses];
|
|
14908
|
+
export type NewsletterDomainsListData = {
|
|
14909
|
+
body?: never;
|
|
14910
|
+
path: {
|
|
14911
|
+
id: NewsletterId;
|
|
14912
|
+
};
|
|
14913
|
+
query?: {
|
|
14914
|
+
limit?: number | null | undefined;
|
|
14915
|
+
cursor?: PublicationDomainCursor | null | undefined;
|
|
14916
|
+
};
|
|
14917
|
+
url: "/v1/newsletters/{id}/domains";
|
|
14918
|
+
};
|
|
14919
|
+
export type NewsletterDomainsListErrors = {
|
|
14920
|
+
/**
|
|
14921
|
+
* UnauthorizedError
|
|
14922
|
+
*/
|
|
14923
|
+
401: UnauthorizedError;
|
|
14924
|
+
/**
|
|
14925
|
+
* ForbiddenError | FlagDisabledError
|
|
14926
|
+
*/
|
|
14927
|
+
403: ForbiddenError | FlagDisabledError;
|
|
14928
|
+
/**
|
|
14929
|
+
* ResourceNotFoundError
|
|
14930
|
+
*/
|
|
14931
|
+
404: ResourceNotFoundError;
|
|
14932
|
+
/**
|
|
14933
|
+
* ConflictError
|
|
14934
|
+
*/
|
|
14935
|
+
409: ConflictError;
|
|
14936
|
+
/**
|
|
14937
|
+
* ValidationError
|
|
14938
|
+
*/
|
|
14939
|
+
422: ValidationError;
|
|
14940
|
+
/**
|
|
14941
|
+
* InternalError
|
|
14942
|
+
*/
|
|
14943
|
+
500: InternalError;
|
|
14944
|
+
/**
|
|
14945
|
+
* GatewayTimeoutError
|
|
14946
|
+
*/
|
|
14947
|
+
504: GatewayTimeoutError;
|
|
14948
|
+
};
|
|
14949
|
+
export type NewsletterDomainsListError = NewsletterDomainsListErrors[keyof NewsletterDomainsListErrors];
|
|
14950
|
+
export type NewsletterDomainsListResponses = {
|
|
14951
|
+
/**
|
|
14952
|
+
* PublicationDomainPage
|
|
14953
|
+
*/
|
|
14954
|
+
200: PublicationDomainPage;
|
|
14955
|
+
};
|
|
14956
|
+
export type NewsletterDomainsListResponse = NewsletterDomainsListResponses[keyof NewsletterDomainsListResponses];
|
|
14957
|
+
export type NewsletterDomainsAddData = {
|
|
14588
14958
|
body: {
|
|
14589
14959
|
hostname: string;
|
|
14590
|
-
|
|
14960
|
+
};
|
|
14961
|
+
headers?: {
|
|
14962
|
+
"idempotency-key"?: string | null | undefined;
|
|
14591
14963
|
};
|
|
14592
14964
|
path: {
|
|
14593
|
-
id:
|
|
14965
|
+
id: NewsletterId;
|
|
14594
14966
|
};
|
|
14595
14967
|
query?: never;
|
|
14596
|
-
url: "/v1/
|
|
14968
|
+
url: "/v1/newsletters/{id}/domains";
|
|
14597
14969
|
};
|
|
14598
|
-
export type
|
|
14970
|
+
export type NewsletterDomainsAddErrors = {
|
|
14599
14971
|
/**
|
|
14600
14972
|
* UnauthorizedError
|
|
14601
14973
|
*/
|
|
@@ -14625,8 +14997,8 @@ export type TopicPublicationDomainsAddErrors = {
|
|
|
14625
14997
|
*/
|
|
14626
14998
|
504: GatewayTimeoutError;
|
|
14627
14999
|
};
|
|
14628
|
-
export type
|
|
14629
|
-
export type
|
|
15000
|
+
export type NewsletterDomainsAddError = NewsletterDomainsAddErrors[keyof NewsletterDomainsAddErrors];
|
|
15001
|
+
export type NewsletterDomainsAddResponses = {
|
|
14630
15002
|
/**
|
|
14631
15003
|
* Success
|
|
14632
15004
|
*/
|
|
@@ -14652,19 +15024,20 @@ export type TopicPublicationDomainsAddResponses = {
|
|
|
14652
15024
|
verificationErrors: Array<string>;
|
|
14653
15025
|
};
|
|
14654
15026
|
};
|
|
14655
|
-
export type
|
|
14656
|
-
export type
|
|
15027
|
+
export type NewsletterDomainsAddResponse = NewsletterDomainsAddResponses[keyof NewsletterDomainsAddResponses];
|
|
15028
|
+
export type NewsletterDomainsRemoveData = {
|
|
14657
15029
|
body?: never;
|
|
15030
|
+
headers?: {
|
|
15031
|
+
"idempotency-key"?: string | null | undefined;
|
|
15032
|
+
};
|
|
14658
15033
|
path: {
|
|
14659
|
-
id:
|
|
15034
|
+
id: NewsletterId;
|
|
14660
15035
|
hostname: string;
|
|
14661
15036
|
};
|
|
14662
|
-
query
|
|
14663
|
-
|
|
14664
|
-
};
|
|
14665
|
-
url: "/v1/topics/{id}/publication/domains/{hostname}";
|
|
15037
|
+
query?: never;
|
|
15038
|
+
url: "/v1/newsletters/{id}/domains/{hostname}";
|
|
14666
15039
|
};
|
|
14667
|
-
export type
|
|
15040
|
+
export type NewsletterDomainsRemoveErrors = {
|
|
14668
15041
|
/**
|
|
14669
15042
|
* UnauthorizedError
|
|
14670
15043
|
*/
|
|
@@ -14694,8 +15067,8 @@ export type TopicPublicationDomainsRemoveErrors = {
|
|
|
14694
15067
|
*/
|
|
14695
15068
|
504: GatewayTimeoutError;
|
|
14696
15069
|
};
|
|
14697
|
-
export type
|
|
14698
|
-
export type
|
|
15070
|
+
export type NewsletterDomainsRemoveError = NewsletterDomainsRemoveErrors[keyof NewsletterDomainsRemoveErrors];
|
|
15071
|
+
export type NewsletterDomainsRemoveResponses = {
|
|
14699
15072
|
/**
|
|
14700
15073
|
* Success
|
|
14701
15074
|
*/
|
|
@@ -14721,17 +15094,17 @@ export type TopicPublicationDomainsRemoveResponses = {
|
|
|
14721
15094
|
verificationErrors: Array<string>;
|
|
14722
15095
|
};
|
|
14723
15096
|
};
|
|
14724
|
-
export type
|
|
14725
|
-
export type
|
|
15097
|
+
export type NewsletterDomainsRemoveResponse = NewsletterDomainsRemoveResponses[keyof NewsletterDomainsRemoveResponses];
|
|
15098
|
+
export type NewsletterDomainsGetData = {
|
|
14726
15099
|
body?: never;
|
|
14727
15100
|
path: {
|
|
14728
|
-
id:
|
|
15101
|
+
id: NewsletterId;
|
|
14729
15102
|
hostname: string;
|
|
14730
15103
|
};
|
|
14731
15104
|
query?: never;
|
|
14732
|
-
url: "/v1/
|
|
15105
|
+
url: "/v1/newsletters/{id}/domains/{hostname}";
|
|
14733
15106
|
};
|
|
14734
|
-
export type
|
|
15107
|
+
export type NewsletterDomainsGetErrors = {
|
|
14735
15108
|
/**
|
|
14736
15109
|
* UnauthorizedError
|
|
14737
15110
|
*/
|
|
@@ -14761,8 +15134,8 @@ export type TopicPublicationDomainsGetErrors = {
|
|
|
14761
15134
|
*/
|
|
14762
15135
|
504: GatewayTimeoutError;
|
|
14763
15136
|
};
|
|
14764
|
-
export type
|
|
14765
|
-
export type
|
|
15137
|
+
export type NewsletterDomainsGetError = NewsletterDomainsGetErrors[keyof NewsletterDomainsGetErrors];
|
|
15138
|
+
export type NewsletterDomainsGetResponses = {
|
|
14766
15139
|
/**
|
|
14767
15140
|
* Success
|
|
14768
15141
|
*/
|
|
@@ -14788,7 +15161,7 @@ export type TopicPublicationDomainsGetResponses = {
|
|
|
14788
15161
|
verificationErrors: Array<string>;
|
|
14789
15162
|
};
|
|
14790
15163
|
};
|
|
14791
|
-
export type
|
|
15164
|
+
export type NewsletterDomainsGetResponse = NewsletterDomainsGetResponses[keyof NewsletterDomainsGetResponses];
|
|
14792
15165
|
export type AnalyticsGetStatsData = {
|
|
14793
15166
|
body?: never;
|
|
14794
15167
|
path?: never;
|
|
@@ -15148,8 +15521,8 @@ export type TemplatesCreateData = {
|
|
|
15148
15521
|
slug?: string | null | undefined;
|
|
15149
15522
|
galleryTemplateId?: string | null | undefined;
|
|
15150
15523
|
useBrand?: boolean | null | undefined;
|
|
15151
|
-
description?: string | null |
|
|
15152
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
15524
|
+
description?: string | null | undefined;
|
|
15525
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
15153
15526
|
isActive?: boolean | null | undefined;
|
|
15154
15527
|
/**
|
|
15155
15528
|
* 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 +15532,9 @@ export type TemplatesCreateData = {
|
|
|
15159
15532
|
* 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
15533
|
*/
|
|
15161
15534
|
shared?: boolean | null | undefined;
|
|
15162
|
-
|
|
15535
|
+
};
|
|
15536
|
+
headers: {
|
|
15537
|
+
"idempotency-key": string;
|
|
15163
15538
|
};
|
|
15164
15539
|
path?: never;
|
|
15165
15540
|
query?: never;
|
|
@@ -15640,14 +16015,14 @@ export type TemplatesUpdateData = {
|
|
|
15640
16015
|
name?: string | null | undefined;
|
|
15641
16016
|
slug?: string | null | undefined;
|
|
15642
16017
|
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 |
|
|
16018
|
+
description?: string | null | undefined;
|
|
16019
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
16020
|
+
fromDefault?: TemplateFromDefault | null | undefined;
|
|
16021
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
15647
16022
|
/**
|
|
15648
16023
|
* 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
16024
|
*/
|
|
15650
|
-
trackingDefault?: TemplateTrackingDefault | null |
|
|
16025
|
+
trackingDefault?: TemplateTrackingDefault | null | undefined;
|
|
15651
16026
|
isActive?: boolean | null | undefined;
|
|
15652
16027
|
/**
|
|
15653
16028
|
* 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 +16085,9 @@ export type TemplatesCreateFromWebsiteData = {
|
|
|
15710
16085
|
* The namespace the new template project belongs to. Omit for organization level. A namespace-scoped key always creates in its own namespace.
|
|
15711
16086
|
*/
|
|
15712
16087
|
namespaceId?: NamespaceId | null | undefined;
|
|
15713
|
-
|
|
15714
|
-
|
|
15715
|
-
|
|
15716
|
-
idempotencyKey: string;
|
|
16088
|
+
};
|
|
16089
|
+
headers: {
|
|
16090
|
+
"idempotency-key": string;
|
|
15717
16091
|
};
|
|
15718
16092
|
path?: never;
|
|
15719
16093
|
query?: never;
|
|
@@ -15762,8 +16136,8 @@ export type TemplatesAddEntryData = {
|
|
|
15762
16136
|
entryPath: string;
|
|
15763
16137
|
name: string;
|
|
15764
16138
|
slug: string;
|
|
15765
|
-
description?: string | null |
|
|
15766
|
-
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null |
|
|
16139
|
+
description?: string | null | undefined;
|
|
16140
|
+
category?: "transactional" | "marketing" | "support" | "notification" | "verification" | "reminder" | "alert" | null | undefined;
|
|
15767
16141
|
};
|
|
15768
16142
|
path: {
|
|
15769
16143
|
id: TemplateProjectId;
|
|
@@ -15816,7 +16190,9 @@ export type TemplatesPatchWorkspaceData = {
|
|
|
15816
16190
|
path: string;
|
|
15817
16191
|
content: string | null;
|
|
15818
16192
|
}>;
|
|
15819
|
-
|
|
16193
|
+
};
|
|
16194
|
+
headers: {
|
|
16195
|
+
"idempotency-key": string;
|
|
15820
16196
|
};
|
|
15821
16197
|
path: {
|
|
15822
16198
|
id: TemplateId;
|
|
@@ -16137,7 +16513,9 @@ export type TemplatesPutWorkspaceAssetData = {
|
|
|
16137
16513
|
path: string;
|
|
16138
16514
|
contentBase64: string;
|
|
16139
16515
|
replace: boolean;
|
|
16140
|
-
|
|
16516
|
+
};
|
|
16517
|
+
headers: {
|
|
16518
|
+
"idempotency-key": string;
|
|
16141
16519
|
};
|
|
16142
16520
|
path: {
|
|
16143
16521
|
id: TemplateId;
|
|
@@ -16270,7 +16648,9 @@ export type TemplatesResolveWorkspaceConflictData = {
|
|
|
16270
16648
|
resolution: "draft" | "main" | {
|
|
16271
16649
|
content: string | null;
|
|
16272
16650
|
};
|
|
16273
|
-
|
|
16651
|
+
};
|
|
16652
|
+
headers: {
|
|
16653
|
+
"idempotency-key": string;
|
|
16274
16654
|
};
|
|
16275
16655
|
path: {
|
|
16276
16656
|
id: TemplateId;
|
|
@@ -16401,7 +16781,9 @@ export type TemplatesSaveWorkspaceData = {
|
|
|
16401
16781
|
expectedRevision: string;
|
|
16402
16782
|
expectedHead: string;
|
|
16403
16783
|
message: string;
|
|
16404
|
-
|
|
16784
|
+
};
|
|
16785
|
+
headers: {
|
|
16786
|
+
"idempotency-key": string;
|
|
16405
16787
|
};
|
|
16406
16788
|
path: {
|
|
16407
16789
|
id: TemplateId;
|
|
@@ -16505,7 +16887,9 @@ export type TemplatesRestoreWorkspaceData = {
|
|
|
16505
16887
|
body: {
|
|
16506
16888
|
expectedRevision: string;
|
|
16507
16889
|
commit: string;
|
|
16508
|
-
|
|
16890
|
+
};
|
|
16891
|
+
headers: {
|
|
16892
|
+
"idempotency-key": string;
|
|
16509
16893
|
};
|
|
16510
16894
|
path: {
|
|
16511
16895
|
id: TemplateId;
|
|
@@ -16764,6 +17148,7 @@ export type TemplatesCheckWorkspaceResponses = {
|
|
|
16764
17148
|
path: string;
|
|
16765
17149
|
frontmatter: {
|
|
16766
17150
|
title: string;
|
|
17151
|
+
date?: string | undefined;
|
|
16767
17152
|
slug: string;
|
|
16768
17153
|
topic: string;
|
|
16769
17154
|
preheader?: string | undefined;
|
|
@@ -16892,6 +17277,7 @@ export type TemplatesRenderWorkspaceFixtureResponses = {
|
|
|
16892
17277
|
path: string;
|
|
16893
17278
|
frontmatter: {
|
|
16894
17279
|
title: string;
|
|
17280
|
+
date?: string | undefined;
|
|
16895
17281
|
slug: string;
|
|
16896
17282
|
topic: string;
|
|
16897
17283
|
preheader?: string | undefined;
|
|
@@ -17582,7 +17968,9 @@ export type TemplatesAttachWorkspaceResourceData = {
|
|
|
17582
17968
|
contentBase64: string;
|
|
17583
17969
|
}>;
|
|
17584
17970
|
};
|
|
17585
|
-
|
|
17971
|
+
};
|
|
17972
|
+
headers: {
|
|
17973
|
+
"idempotency-key": string;
|
|
17586
17974
|
};
|
|
17587
17975
|
path: {
|
|
17588
17976
|
id: TemplateId;
|
|
@@ -17706,7 +18094,9 @@ export type TemplatesAttachWorkspaceResourceResponse = TemplatesAttachWorkspaceR
|
|
|
17706
18094
|
export type TemplatesRemoveWorkspaceResourceData = {
|
|
17707
18095
|
body: {
|
|
17708
18096
|
expectedRevision: string;
|
|
17709
|
-
|
|
18097
|
+
};
|
|
18098
|
+
headers: {
|
|
18099
|
+
"idempotency-key": string;
|
|
17710
18100
|
};
|
|
17711
18101
|
path: {
|
|
17712
18102
|
id: TemplateId;
|
|
@@ -18293,9 +18683,9 @@ export type WebhooksUpdateData = {
|
|
|
18293
18683
|
name?: string | null | undefined;
|
|
18294
18684
|
url?: string | null | undefined;
|
|
18295
18685
|
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 |
|
|
18686
|
+
channels?: Array<"email"> | null | undefined;
|
|
18687
|
+
mailboxIds?: [MailboxId, ...Array<MailboxId>] | null | undefined;
|
|
18688
|
+
namespaceId?: NamespaceId | null | undefined;
|
|
18299
18689
|
headers?: {
|
|
18300
18690
|
[key: string]: string | undefined;
|
|
18301
18691
|
} | null | undefined;
|
|
@@ -18714,14 +19104,14 @@ export type OrganizationsUpdateData = {
|
|
|
18714
19104
|
name?: string | null | undefined;
|
|
18715
19105
|
slug?: string | null | undefined;
|
|
18716
19106
|
avatarUrl?: string | null | null | undefined;
|
|
18717
|
-
defaultRegion?: PhoneRegion | null |
|
|
19107
|
+
defaultRegion?: PhoneRegion | null | undefined;
|
|
18718
19108
|
timezone?: IanaTimezone | null | undefined;
|
|
18719
19109
|
isActive?: boolean | null | undefined;
|
|
18720
19110
|
metadata?: {
|
|
18721
19111
|
[key: string]: JsonValueWritable | undefined;
|
|
18722
19112
|
} | null | undefined;
|
|
18723
|
-
replyToDefault?: Array<string> | null |
|
|
18724
|
-
emailFooterEnabledDefault?: boolean | null |
|
|
19113
|
+
replyToDefault?: Array<string> | null | undefined;
|
|
19114
|
+
emailFooterEnabledDefault?: boolean | null | undefined;
|
|
18725
19115
|
};
|
|
18726
19116
|
path?: never;
|
|
18727
19117
|
query?: never;
|
|
@@ -19822,7 +20212,7 @@ export type MailboxesRemoveEndpointResponses = {
|
|
|
19822
20212
|
export type MailboxesRemoveEndpointResponse = MailboxesRemoveEndpointResponses[keyof MailboxesRemoveEndpointResponses];
|
|
19823
20213
|
export type MailboxesUpdateEndpointData = {
|
|
19824
20214
|
body: {
|
|
19825
|
-
displayName?: string | null |
|
|
20215
|
+
displayName?: string | null | undefined;
|
|
19826
20216
|
default?: true | null | undefined;
|
|
19827
20217
|
};
|
|
19828
20218
|
path: {
|
|
@@ -20370,7 +20760,7 @@ export type MailboxesUpdatePolicyData = {
|
|
|
20370
20760
|
body: {
|
|
20371
20761
|
name?: string | null | undefined;
|
|
20372
20762
|
outcome?: MailboxPolicyOutcomeKind | null | undefined;
|
|
20373
|
-
reason?: string | null |
|
|
20763
|
+
reason?: string | null | undefined;
|
|
20374
20764
|
enabled?: boolean | null | undefined;
|
|
20375
20765
|
};
|
|
20376
20766
|
path: {
|
|
@@ -20502,7 +20892,7 @@ export type MailboxesCreateLabelData = {
|
|
|
20502
20892
|
body: {
|
|
20503
20893
|
slug: string;
|
|
20504
20894
|
displayName: string;
|
|
20505
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
20895
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
20506
20896
|
};
|
|
20507
20897
|
path: {
|
|
20508
20898
|
id: MailboxId;
|
|
@@ -20594,7 +20984,7 @@ export type MailboxesDeleteLabelResponse = MailboxesDeleteLabelResponses[keyof M
|
|
|
20594
20984
|
export type MailboxesUpdateLabelData = {
|
|
20595
20985
|
body: {
|
|
20596
20986
|
displayName?: string | null | undefined;
|
|
20597
|
-
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null |
|
|
20987
|
+
color?: "billing" | "domain" | "agent" | "routing" | "important" | "neutral" | null | undefined;
|
|
20598
20988
|
};
|
|
20599
20989
|
path: {
|
|
20600
20990
|
id: MailboxId;
|
|
@@ -20739,7 +21129,7 @@ export type MailboxesUpdateThreadData = {
|
|
|
20739
21129
|
priority?: MailboxThreadPriority | null | undefined;
|
|
20740
21130
|
read?: boolean | null | undefined;
|
|
20741
21131
|
starred?: boolean | null | undefined;
|
|
20742
|
-
snoozedUntil?: string | null |
|
|
21132
|
+
snoozedUntil?: string | null | undefined;
|
|
20743
21133
|
};
|
|
20744
21134
|
path: {
|
|
20745
21135
|
id: MailboxId;
|
|
@@ -21013,7 +21403,7 @@ export type MailboxesListThreadNotesResponse = MailboxesListThreadNotesResponses
|
|
|
21013
21403
|
export type MailboxesCreateNoteData = {
|
|
21014
21404
|
body: {
|
|
21015
21405
|
body: string;
|
|
21016
|
-
color?: string | null |
|
|
21406
|
+
color?: string | null | undefined;
|
|
21017
21407
|
pinned?: boolean | null | undefined;
|
|
21018
21408
|
};
|
|
21019
21409
|
path: {
|
|
@@ -21104,7 +21494,7 @@ export type MailboxesDeleteNoteResponse = MailboxesDeleteNoteResponses[keyof Mai
|
|
|
21104
21494
|
export type MailboxesUpdateNoteData = {
|
|
21105
21495
|
body: {
|
|
21106
21496
|
body?: string | null | undefined;
|
|
21107
|
-
color?: string | null |
|
|
21497
|
+
color?: string | null | undefined;
|
|
21108
21498
|
pinned?: boolean | null | undefined;
|
|
21109
21499
|
};
|
|
21110
21500
|
path: {
|
|
@@ -21971,13 +22361,13 @@ export type MailboxesGetDraftResponse = MailboxesGetDraftResponses[keyof Mailbox
|
|
|
21971
22361
|
export type MailboxesUpdateDraftData = {
|
|
21972
22362
|
body: {
|
|
21973
22363
|
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 |
|
|
22364
|
+
cc?: Array<string> | null | undefined;
|
|
22365
|
+
bcc?: Array<string> | null | undefined;
|
|
22366
|
+
replyTo?: Array<string> | null | undefined;
|
|
22367
|
+
subject?: string | null | undefined;
|
|
22368
|
+
text?: string | null | undefined;
|
|
22369
|
+
html?: string | null | undefined;
|
|
22370
|
+
attachments?: Array<EmailAttachment> | null | undefined;
|
|
21981
22371
|
};
|
|
21982
22372
|
path: {
|
|
21983
22373
|
id: MailboxId;
|