resend 6.28.1-preview-inboxes.0 → 6.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -201
- package/dist/index.d.cts +1 -476
- package/dist/index.d.mts +1 -476
- package/dist/index.mjs +2 -199
- package/package.json +1 -1
- package/readme.md +0 -16
package/dist/index.d.cts
CHANGED
|
@@ -1760,424 +1760,6 @@ export interface UpdateEventResponseSuccess {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
export type UpdateEventResponse = Response<UpdateEventResponseSuccess>;
|
|
1762
1762
|
//#endregion
|
|
1763
|
-
//#region src/inboxes/drafts/interfaces/draft.d.ts
|
|
1764
|
-
type InboxDraftType = 'standalone' | 'reply';
|
|
1765
|
-
interface InboxDraft {
|
|
1766
|
-
object: 'inbox_draft';
|
|
1767
|
-
id: string;
|
|
1768
|
-
type: InboxDraftType;
|
|
1769
|
-
to: string[] | null;
|
|
1770
|
-
cc: string[];
|
|
1771
|
-
bcc: string[];
|
|
1772
|
-
subject: string | null;
|
|
1773
|
-
html: string | null;
|
|
1774
|
-
text: string | null;
|
|
1775
|
-
thread_id: string | null;
|
|
1776
|
-
reply_to_email_id: string | null;
|
|
1777
|
-
email_id: string | null;
|
|
1778
|
-
created_at: string;
|
|
1779
|
-
updated_at: string;
|
|
1780
|
-
}
|
|
1781
|
-
interface InboxDraftListItem {
|
|
1782
|
-
id: string;
|
|
1783
|
-
type: InboxDraftType;
|
|
1784
|
-
to: string[] | null;
|
|
1785
|
-
cc: string[];
|
|
1786
|
-
bcc: string[];
|
|
1787
|
-
subject: string | null;
|
|
1788
|
-
snippet: string | null;
|
|
1789
|
-
thread_id: string | null;
|
|
1790
|
-
reply_to_email_id: string | null;
|
|
1791
|
-
updated_at: string;
|
|
1792
|
-
}
|
|
1793
|
-
//#endregion
|
|
1794
|
-
//#region src/inboxes/drafts/interfaces/create-inbox-draft.interface.d.ts
|
|
1795
|
-
type CreateInboxDraftContent = RequireAtLeastOne<{
|
|
1796
|
-
to?: string | string[];
|
|
1797
|
-
cc?: string | string[];
|
|
1798
|
-
bcc?: string | string[];
|
|
1799
|
-
subject?: string | null;
|
|
1800
|
-
text?: string | null;
|
|
1801
|
-
html?: string | null;
|
|
1802
|
-
}>;
|
|
1803
|
-
type CreateInboxDraftOptions = {
|
|
1804
|
-
inboxId: string;
|
|
1805
|
-
} & CreateInboxDraftContent & ({
|
|
1806
|
-
threadId: string;
|
|
1807
|
-
replyToEmailId: string;
|
|
1808
|
-
} | {
|
|
1809
|
-
threadId?: never;
|
|
1810
|
-
replyToEmailId?: never;
|
|
1811
|
-
});
|
|
1812
|
-
interface CreateInboxDraftRequestOptions extends PostOptions {}
|
|
1813
|
-
type CreateInboxDraftResponseSuccess = InboxDraft;
|
|
1814
|
-
type CreateInboxDraftResponse = Response<CreateInboxDraftResponseSuccess>;
|
|
1815
|
-
//#endregion
|
|
1816
|
-
//#region src/inboxes/drafts/interfaces/get-inbox-draft.interface.d.ts
|
|
1817
|
-
interface GetInboxDraftOptions {
|
|
1818
|
-
inboxId: string;
|
|
1819
|
-
draftId: string;
|
|
1820
|
-
}
|
|
1821
|
-
type GetInboxDraftResponseSuccess = InboxDraft;
|
|
1822
|
-
type GetInboxDraftResponse = Response<GetInboxDraftResponseSuccess>;
|
|
1823
|
-
//#endregion
|
|
1824
|
-
//#region src/inboxes/drafts/interfaces/list-inbox-drafts.interface.d.ts
|
|
1825
|
-
interface ListInboxDraftsOptions {
|
|
1826
|
-
inboxId: string;
|
|
1827
|
-
cursor?: string;
|
|
1828
|
-
}
|
|
1829
|
-
interface ListInboxDraftsResponseSuccess {
|
|
1830
|
-
object: 'list';
|
|
1831
|
-
has_more: boolean;
|
|
1832
|
-
next_cursor: string | null;
|
|
1833
|
-
data: InboxDraftListItem[];
|
|
1834
|
-
}
|
|
1835
|
-
type ListInboxDraftsResponse = Response<ListInboxDraftsResponseSuccess>;
|
|
1836
|
-
//#endregion
|
|
1837
|
-
//#region src/inboxes/drafts/interfaces/remove-inbox-draft.interface.d.ts
|
|
1838
|
-
interface RemoveInboxDraftOptions {
|
|
1839
|
-
inboxId: string;
|
|
1840
|
-
draftId: string;
|
|
1841
|
-
}
|
|
1842
|
-
interface RemoveInboxDraftResponseSuccess {
|
|
1843
|
-
object: 'inbox_draft';
|
|
1844
|
-
id: string;
|
|
1845
|
-
deleted: boolean;
|
|
1846
|
-
}
|
|
1847
|
-
type RemoveInboxDraftResponse = Response<RemoveInboxDraftResponseSuccess>;
|
|
1848
|
-
//#endregion
|
|
1849
|
-
//#region src/inboxes/drafts/interfaces/send-inbox-draft.interface.d.ts
|
|
1850
|
-
interface SendInboxDraftOptions {
|
|
1851
|
-
inboxId: string;
|
|
1852
|
-
draftId: string;
|
|
1853
|
-
}
|
|
1854
|
-
interface SendInboxDraftRequestOptions extends PostOptions {}
|
|
1855
|
-
interface SendInboxDraftResponseSuccess {
|
|
1856
|
-
object: 'inbox_draft';
|
|
1857
|
-
id: string;
|
|
1858
|
-
thread_id: string;
|
|
1859
|
-
email_id: string;
|
|
1860
|
-
}
|
|
1861
|
-
type SendInboxDraftResponse = Response<SendInboxDraftResponseSuccess>;
|
|
1862
|
-
//#endregion
|
|
1863
|
-
//#region src/inboxes/drafts/interfaces/update-inbox-draft.interface.d.ts
|
|
1864
|
-
type UpdateInboxDraftOptions = {
|
|
1865
|
-
inboxId: string;
|
|
1866
|
-
draftId: string;
|
|
1867
|
-
} & RequireAtLeastOne<{
|
|
1868
|
-
to?: string | string[] | null;
|
|
1869
|
-
cc?: string | string[] | null;
|
|
1870
|
-
bcc?: string | string[] | null;
|
|
1871
|
-
subject?: string | null;
|
|
1872
|
-
text?: string | null;
|
|
1873
|
-
html?: string | null;
|
|
1874
|
-
}>;
|
|
1875
|
-
type UpdateInboxDraftResponseSuccess = InboxDraft;
|
|
1876
|
-
type UpdateInboxDraftResponse = Response<UpdateInboxDraftResponseSuccess>;
|
|
1877
|
-
//#endregion
|
|
1878
|
-
//#region src/inboxes/interfaces/inbox.d.ts
|
|
1879
|
-
export declare const INBOX_MESSAGE_FOLDERS: readonly ["inbox", "archive", "spam", "sent", "trash"];
|
|
1880
|
-
type InboxMessageFolder = (typeof INBOX_MESSAGE_FOLDERS)[number];
|
|
1881
|
-
export declare const MOVE_THREAD_FOLDERS: readonly ["inbox", "archive", "spam", "trash"];
|
|
1882
|
-
type MoveThreadFolder = (typeof MOVE_THREAD_FOLDERS)[number];
|
|
1883
|
-
export declare const INBOX_LABEL_COLORS: readonly ["cyan", "teal", "grass", "lime", "yellow", "orange", "iris", "plum", "crimson", "bronze", "mauve"];
|
|
1884
|
-
type InboxLabelColor = (typeof INBOX_LABEL_COLORS)[number];
|
|
1885
|
-
interface Inbox {
|
|
1886
|
-
id: string;
|
|
1887
|
-
name: string | null;
|
|
1888
|
-
email_address: string;
|
|
1889
|
-
friendly_name: string | null;
|
|
1890
|
-
unread: number;
|
|
1891
|
-
last_received: string | null;
|
|
1892
|
-
}
|
|
1893
|
-
//#endregion
|
|
1894
|
-
//#region src/inboxes/labels/interfaces/create-inbox-label.interface.d.ts
|
|
1895
|
-
interface CreateInboxLabelOptions {
|
|
1896
|
-
inboxId: string;
|
|
1897
|
-
name: string;
|
|
1898
|
-
color?: InboxLabelColor;
|
|
1899
|
-
}
|
|
1900
|
-
interface CreateInboxLabelRequestOptions extends PostOptions {}
|
|
1901
|
-
interface CreateInboxLabelResponseSuccess {
|
|
1902
|
-
object: 'inbox_label';
|
|
1903
|
-
id: string;
|
|
1904
|
-
name: string;
|
|
1905
|
-
color: InboxLabelColor;
|
|
1906
|
-
created_at: string;
|
|
1907
|
-
}
|
|
1908
|
-
type CreateInboxLabelResponse = Response<CreateInboxLabelResponseSuccess>;
|
|
1909
|
-
//#endregion
|
|
1910
|
-
//#region src/inboxes/labels/interfaces/label.d.ts
|
|
1911
|
-
interface InboxLabel {
|
|
1912
|
-
id: string;
|
|
1913
|
-
name: string;
|
|
1914
|
-
color: InboxLabelColor;
|
|
1915
|
-
created_at: string;
|
|
1916
|
-
}
|
|
1917
|
-
//#endregion
|
|
1918
|
-
//#region src/inboxes/labels/interfaces/list-inbox-labels.interface.d.ts
|
|
1919
|
-
interface ListInboxLabelsOptions {
|
|
1920
|
-
inboxId: string;
|
|
1921
|
-
}
|
|
1922
|
-
interface ListInboxLabelsResponseSuccess {
|
|
1923
|
-
object: 'list';
|
|
1924
|
-
has_more: boolean;
|
|
1925
|
-
data: InboxLabel[];
|
|
1926
|
-
}
|
|
1927
|
-
type ListInboxLabelsResponse = Response<ListInboxLabelsResponseSuccess>;
|
|
1928
|
-
//#endregion
|
|
1929
|
-
//#region src/inboxes/labels/interfaces/remove-inbox-label.interface.d.ts
|
|
1930
|
-
interface RemoveInboxLabelOptions {
|
|
1931
|
-
inboxId: string;
|
|
1932
|
-
labelId: string;
|
|
1933
|
-
}
|
|
1934
|
-
interface RemoveInboxLabelResponseSuccess {
|
|
1935
|
-
object: 'inbox_label';
|
|
1936
|
-
id: string;
|
|
1937
|
-
deleted: boolean;
|
|
1938
|
-
}
|
|
1939
|
-
type RemoveInboxLabelResponse = Response<RemoveInboxLabelResponseSuccess>;
|
|
1940
|
-
//#endregion
|
|
1941
|
-
//#region src/inboxes/labels/interfaces/update-inbox-label.interface.d.ts
|
|
1942
|
-
interface UpdateInboxLabelOptions {
|
|
1943
|
-
inboxId: string;
|
|
1944
|
-
labelId: string;
|
|
1945
|
-
name?: string;
|
|
1946
|
-
color?: InboxLabelColor;
|
|
1947
|
-
}
|
|
1948
|
-
interface UpdateInboxLabelResponseSuccess {
|
|
1949
|
-
object: 'inbox_label';
|
|
1950
|
-
id: string;
|
|
1951
|
-
}
|
|
1952
|
-
type UpdateInboxLabelResponse = Response<UpdateInboxLabelResponseSuccess>;
|
|
1953
|
-
//#endregion
|
|
1954
|
-
//#region src/inboxes/threads/interfaces/thread.d.ts
|
|
1955
|
-
interface InboxThreadLabel {
|
|
1956
|
-
id: string;
|
|
1957
|
-
name: string;
|
|
1958
|
-
color: InboxLabelColor;
|
|
1959
|
-
}
|
|
1960
|
-
interface InboxThread {
|
|
1961
|
-
id: string;
|
|
1962
|
-
subject: string | null;
|
|
1963
|
-
from: string | null;
|
|
1964
|
-
to: string[];
|
|
1965
|
-
cc: string[];
|
|
1966
|
-
bcc: string[];
|
|
1967
|
-
labels: InboxThreadLabel[];
|
|
1968
|
-
message_count: number;
|
|
1969
|
-
has_attachment: boolean;
|
|
1970
|
-
has_draft: boolean;
|
|
1971
|
-
read: boolean;
|
|
1972
|
-
received_at: string;
|
|
1973
|
-
}
|
|
1974
|
-
interface InboxThreadSummary {
|
|
1975
|
-
object: 'inbox_thread';
|
|
1976
|
-
id: string;
|
|
1977
|
-
subject: string | null;
|
|
1978
|
-
folder: InboxMessageFolder;
|
|
1979
|
-
labels: InboxThreadLabel[];
|
|
1980
|
-
read: boolean;
|
|
1981
|
-
}
|
|
1982
|
-
interface InboxMessageAttachment {
|
|
1983
|
-
id: string;
|
|
1984
|
-
filename: string | null;
|
|
1985
|
-
size: number | null;
|
|
1986
|
-
}
|
|
1987
|
-
interface InboxMessage {
|
|
1988
|
-
id: string;
|
|
1989
|
-
direction: 'inbound' | 'outbound';
|
|
1990
|
-
from: string;
|
|
1991
|
-
to: string[];
|
|
1992
|
-
cc: string[];
|
|
1993
|
-
bcc: string[];
|
|
1994
|
-
reply_to: string[];
|
|
1995
|
-
subject: string | null;
|
|
1996
|
-
message_id: string | null;
|
|
1997
|
-
html: string | null;
|
|
1998
|
-
text: string | null;
|
|
1999
|
-
attachments: InboxMessageAttachment[];
|
|
2000
|
-
read: boolean;
|
|
2001
|
-
received_at: string;
|
|
2002
|
-
}
|
|
2003
|
-
//#endregion
|
|
2004
|
-
//#region src/inboxes/threads/interfaces/forward-inbox-thread-email.interface.d.ts
|
|
2005
|
-
interface ForwardInboxThreadEmailOptions {
|
|
2006
|
-
inboxId: string;
|
|
2007
|
-
threadId: string;
|
|
2008
|
-
emailId: string;
|
|
2009
|
-
to: string | string[];
|
|
2010
|
-
html?: string;
|
|
2011
|
-
text?: string;
|
|
2012
|
-
subject?: string;
|
|
2013
|
-
}
|
|
2014
|
-
interface ForwardInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2015
|
-
interface ForwardInboxThreadEmailResponseSuccess {
|
|
2016
|
-
id: string;
|
|
2017
|
-
email_id: string;
|
|
2018
|
-
direction: 'outbound';
|
|
2019
|
-
from: string;
|
|
2020
|
-
to: string[];
|
|
2021
|
-
cc: string[];
|
|
2022
|
-
bcc: string[];
|
|
2023
|
-
html: string | null;
|
|
2024
|
-
text: string | null;
|
|
2025
|
-
attachments: InboxMessageAttachment[];
|
|
2026
|
-
read: boolean;
|
|
2027
|
-
received_at: string;
|
|
2028
|
-
}
|
|
2029
|
-
type ForwardInboxThreadEmailResponse = Response<ForwardInboxThreadEmailResponseSuccess>;
|
|
2030
|
-
//#endregion
|
|
2031
|
-
//#region src/inboxes/threads/interfaces/get-inbox-thread.interface.d.ts
|
|
2032
|
-
interface GetInboxThreadOptions {
|
|
2033
|
-
inboxId: string;
|
|
2034
|
-
threadId: string;
|
|
2035
|
-
}
|
|
2036
|
-
interface GetInboxThreadResponseSuccess extends InboxThreadSummary {
|
|
2037
|
-
messages: {
|
|
2038
|
-
has_more: boolean;
|
|
2039
|
-
data: InboxMessage[];
|
|
2040
|
-
};
|
|
2041
|
-
}
|
|
2042
|
-
type GetInboxThreadResponse = Response<GetInboxThreadResponseSuccess>;
|
|
2043
|
-
//#endregion
|
|
2044
|
-
//#region src/inboxes/threads/interfaces/get-inbox-thread-email.interface.d.ts
|
|
2045
|
-
interface GetInboxThreadEmailOptions {
|
|
2046
|
-
inboxId: string;
|
|
2047
|
-
threadId: string;
|
|
2048
|
-
emailId: string;
|
|
2049
|
-
}
|
|
2050
|
-
type GetInboxThreadEmailResponseSuccess = InboxMessage;
|
|
2051
|
-
type GetInboxThreadEmailResponse = Response<GetInboxThreadEmailResponseSuccess>;
|
|
2052
|
-
//#endregion
|
|
2053
|
-
//#region src/inboxes/threads/interfaces/list-inbox-threads.interface.d.ts
|
|
2054
|
-
interface ListInboxThreadsOptions {
|
|
2055
|
-
inboxId: string;
|
|
2056
|
-
folder?: InboxMessageFolder;
|
|
2057
|
-
query?: string;
|
|
2058
|
-
from?: string;
|
|
2059
|
-
label?: string | string[];
|
|
2060
|
-
cursor?: string;
|
|
2061
|
-
}
|
|
2062
|
-
interface ListInboxThreadsResponseSuccess {
|
|
2063
|
-
object: 'list';
|
|
2064
|
-
has_more: boolean;
|
|
2065
|
-
next_cursor: string | null;
|
|
2066
|
-
data: InboxThread[];
|
|
2067
|
-
}
|
|
2068
|
-
type ListInboxThreadsResponse = Response<ListInboxThreadsResponseSuccess>;
|
|
2069
|
-
//#endregion
|
|
2070
|
-
//#region src/inboxes/threads/interfaces/remove-inbox-thread.interface.d.ts
|
|
2071
|
-
interface RemoveInboxThreadOptions {
|
|
2072
|
-
inboxId: string;
|
|
2073
|
-
threadId: string;
|
|
2074
|
-
}
|
|
2075
|
-
interface RemoveInboxThreadResponseSuccess {
|
|
2076
|
-
object: 'inbox_thread';
|
|
2077
|
-
id: string;
|
|
2078
|
-
deleted: boolean;
|
|
2079
|
-
}
|
|
2080
|
-
type RemoveInboxThreadResponse = Response<RemoveInboxThreadResponseSuccess>;
|
|
2081
|
-
//#endregion
|
|
2082
|
-
//#region src/inboxes/threads/interfaces/reply-inbox-thread-email.interface.d.ts
|
|
2083
|
-
type ReplyInboxThreadEmailOptions = {
|
|
2084
|
-
inboxId: string;
|
|
2085
|
-
threadId: string;
|
|
2086
|
-
emailId: string;
|
|
2087
|
-
} & RequireAtLeastOne<{
|
|
2088
|
-
html?: string;
|
|
2089
|
-
text?: string;
|
|
2090
|
-
}> & {
|
|
2091
|
-
subject?: string;
|
|
2092
|
-
};
|
|
2093
|
-
interface ReplyInboxThreadEmailRequestOptions extends PostOptions {}
|
|
2094
|
-
type ReplyInboxThreadEmailResponseSuccess = InboxMessage & {
|
|
2095
|
-
email_id: string;
|
|
2096
|
-
};
|
|
2097
|
-
type ReplyInboxThreadEmailResponse = Response<ReplyInboxThreadEmailResponseSuccess>;
|
|
2098
|
-
//#endregion
|
|
2099
|
-
//#region src/inboxes/threads/interfaces/update-inbox-thread.interface.d.ts
|
|
2100
|
-
type UpdateInboxThreadOptions = {
|
|
2101
|
-
inboxId: string;
|
|
2102
|
-
threadId: string;
|
|
2103
|
-
} & RequireAtLeastOne<{
|
|
2104
|
-
read?: boolean;
|
|
2105
|
-
folder?: MoveThreadFolder;
|
|
2106
|
-
labelId?: string;
|
|
2107
|
-
}>;
|
|
2108
|
-
interface UpdateInboxThreadResponseSuccess {
|
|
2109
|
-
object: 'inbox';
|
|
2110
|
-
id: string;
|
|
2111
|
-
subject: string | null;
|
|
2112
|
-
folder: InboxMessageFolder;
|
|
2113
|
-
labels: InboxThreadLabel[];
|
|
2114
|
-
read: boolean;
|
|
2115
|
-
}
|
|
2116
|
-
type UpdateInboxThreadResponse = Response<UpdateInboxThreadResponseSuccess>;
|
|
2117
|
-
//#endregion
|
|
2118
|
-
//#region src/inboxes/interfaces/create-inbox.interface.d.ts
|
|
2119
|
-
interface CreateInboxOptions {
|
|
2120
|
-
emailAddress: string;
|
|
2121
|
-
name?: string;
|
|
2122
|
-
forwarding?: boolean;
|
|
2123
|
-
friendlyName?: string;
|
|
2124
|
-
}
|
|
2125
|
-
interface CreateInboxRequestOptions extends PostOptions {}
|
|
2126
|
-
interface CreateInboxResponseSuccess {
|
|
2127
|
-
object: 'inbox';
|
|
2128
|
-
id: string;
|
|
2129
|
-
name: string;
|
|
2130
|
-
email_address: string;
|
|
2131
|
-
domain_id: string;
|
|
2132
|
-
forwarding_address: string | null;
|
|
2133
|
-
friendly_name: string | null;
|
|
2134
|
-
unread: number;
|
|
2135
|
-
created_at: string;
|
|
2136
|
-
}
|
|
2137
|
-
type CreateInboxResponse = Response<CreateInboxResponseSuccess>;
|
|
2138
|
-
//#endregion
|
|
2139
|
-
//#region src/inboxes/interfaces/get-inbox.interface.d.ts
|
|
2140
|
-
interface GetInboxResponseSuccess {
|
|
2141
|
-
object: 'inbox';
|
|
2142
|
-
id: string;
|
|
2143
|
-
name: string | null;
|
|
2144
|
-
email_address: string;
|
|
2145
|
-
forwarding_address: string | null;
|
|
2146
|
-
friendly_name: string | null;
|
|
2147
|
-
unread: number;
|
|
2148
|
-
drafts: number;
|
|
2149
|
-
last_received: string | null;
|
|
2150
|
-
}
|
|
2151
|
-
type GetInboxResponse = Response<GetInboxResponseSuccess>;
|
|
2152
|
-
//#endregion
|
|
2153
|
-
//#region src/inboxes/interfaces/list-inboxes.interface.d.ts
|
|
2154
|
-
type ListInboxesOptions = PaginationOptions;
|
|
2155
|
-
interface ListInboxesResponseSuccess {
|
|
2156
|
-
object: 'list';
|
|
2157
|
-
has_more: boolean;
|
|
2158
|
-
data: Inbox[];
|
|
2159
|
-
}
|
|
2160
|
-
type ListInboxesResponse = Response<ListInboxesResponseSuccess>;
|
|
2161
|
-
//#endregion
|
|
2162
|
-
//#region src/inboxes/interfaces/remove-inbox.interface.d.ts
|
|
2163
|
-
interface RemoveInboxResponseSuccess {
|
|
2164
|
-
object: 'inbox';
|
|
2165
|
-
id: string;
|
|
2166
|
-
deleted: boolean;
|
|
2167
|
-
}
|
|
2168
|
-
type RemoveInboxResponse = Response<RemoveInboxResponseSuccess>;
|
|
2169
|
-
//#endregion
|
|
2170
|
-
//#region src/inboxes/interfaces/update-inbox.interface.d.ts
|
|
2171
|
-
type UpdateInboxOptions = RequireAtLeastOne<{
|
|
2172
|
-
name?: string;
|
|
2173
|
-
friendlyName?: string;
|
|
2174
|
-
}>;
|
|
2175
|
-
interface UpdateInboxResponseSuccess {
|
|
2176
|
-
object: 'inbox';
|
|
2177
|
-
id: string;
|
|
2178
|
-
}
|
|
2179
|
-
type UpdateInboxResponse = Response<UpdateInboxResponseSuccess>;
|
|
2180
|
-
//#endregion
|
|
2181
1763
|
//#region src/logs/interfaces/log.d.ts
|
|
2182
1764
|
export interface Log {
|
|
2183
1765
|
id: string;
|
|
@@ -2426,62 +2008,6 @@ declare class Events$1 {
|
|
|
2426
2008
|
remove(identifier: string): Promise<RemoveEventResponse>;
|
|
2427
2009
|
}
|
|
2428
2010
|
//#endregion
|
|
2429
|
-
//#region src/inboxes/drafts/drafts.d.ts
|
|
2430
|
-
declare class InboxDrafts {
|
|
2431
|
-
private readonly resend;
|
|
2432
|
-
constructor(resend: Resend);
|
|
2433
|
-
list(options: ListInboxDraftsOptions): Promise<ListInboxDraftsResponse>;
|
|
2434
|
-
create(payload: CreateInboxDraftOptions, options?: CreateInboxDraftRequestOptions): Promise<CreateInboxDraftResponse>;
|
|
2435
|
-
get(options: GetInboxDraftOptions): Promise<GetInboxDraftResponse>;
|
|
2436
|
-
update(options: UpdateInboxDraftOptions): Promise<UpdateInboxDraftResponse>;
|
|
2437
|
-
remove(options: RemoveInboxDraftOptions): Promise<RemoveInboxDraftResponse>;
|
|
2438
|
-
send(payload: SendInboxDraftOptions, options?: SendInboxDraftRequestOptions): Promise<SendInboxDraftResponse>;
|
|
2439
|
-
}
|
|
2440
|
-
//#endregion
|
|
2441
|
-
//#region src/inboxes/labels/labels.d.ts
|
|
2442
|
-
declare class InboxLabels {
|
|
2443
|
-
private readonly resend;
|
|
2444
|
-
constructor(resend: Resend);
|
|
2445
|
-
list(options: ListInboxLabelsOptions): Promise<ListInboxLabelsResponse>;
|
|
2446
|
-
create(payload: CreateInboxLabelOptions, options?: CreateInboxLabelRequestOptions): Promise<CreateInboxLabelResponse>;
|
|
2447
|
-
update(options: UpdateInboxLabelOptions): Promise<UpdateInboxLabelResponse>;
|
|
2448
|
-
remove(options: RemoveInboxLabelOptions): Promise<RemoveInboxLabelResponse>;
|
|
2449
|
-
}
|
|
2450
|
-
//#endregion
|
|
2451
|
-
//#region src/inboxes/threads/emails/emails.d.ts
|
|
2452
|
-
declare class InboxThreadEmails {
|
|
2453
|
-
private readonly resend;
|
|
2454
|
-
constructor(resend: Resend);
|
|
2455
|
-
get(options: GetInboxThreadEmailOptions): Promise<GetInboxThreadEmailResponse>;
|
|
2456
|
-
reply(payload: ReplyInboxThreadEmailOptions, options?: ReplyInboxThreadEmailRequestOptions): Promise<ReplyInboxThreadEmailResponse>;
|
|
2457
|
-
forward(payload: ForwardInboxThreadEmailOptions, options?: ForwardInboxThreadEmailRequestOptions): Promise<ForwardInboxThreadEmailResponse>;
|
|
2458
|
-
}
|
|
2459
|
-
//#endregion
|
|
2460
|
-
//#region src/inboxes/threads/threads.d.ts
|
|
2461
|
-
declare class InboxThreads {
|
|
2462
|
-
private readonly resend;
|
|
2463
|
-
readonly emails: InboxThreadEmails;
|
|
2464
|
-
constructor(resend: Resend);
|
|
2465
|
-
list(options: ListInboxThreadsOptions): Promise<ListInboxThreadsResponse>;
|
|
2466
|
-
get(options: GetInboxThreadOptions): Promise<GetInboxThreadResponse>;
|
|
2467
|
-
update(options: UpdateInboxThreadOptions): Promise<UpdateInboxThreadResponse>;
|
|
2468
|
-
remove(options: RemoveInboxThreadOptions): Promise<RemoveInboxThreadResponse>;
|
|
2469
|
-
}
|
|
2470
|
-
//#endregion
|
|
2471
|
-
//#region src/inboxes/inboxes.d.ts
|
|
2472
|
-
declare class Inboxes {
|
|
2473
|
-
private readonly resend;
|
|
2474
|
-
readonly threads: InboxThreads;
|
|
2475
|
-
readonly labels: InboxLabels;
|
|
2476
|
-
readonly drafts: InboxDrafts;
|
|
2477
|
-
constructor(resend: Resend);
|
|
2478
|
-
create(payload: CreateInboxOptions, options?: CreateInboxRequestOptions): Promise<CreateInboxResponse>;
|
|
2479
|
-
list(options?: ListInboxesOptions): Promise<ListInboxesResponse>;
|
|
2480
|
-
get(id: string): Promise<GetInboxResponse>;
|
|
2481
|
-
update(id: string, payload: UpdateInboxOptions): Promise<UpdateInboxResponse>;
|
|
2482
|
-
remove(id: string): Promise<RemoveInboxResponse>;
|
|
2483
|
-
}
|
|
2484
|
-
//#endregion
|
|
2485
2011
|
//#region src/logs/logs.d.ts
|
|
2486
2012
|
declare class Logs {
|
|
2487
2013
|
private readonly resend;
|
|
@@ -3212,7 +2738,6 @@ export declare class Resend {
|
|
|
3212
2738
|
readonly domains: Domains;
|
|
3213
2739
|
readonly emails: Emails;
|
|
3214
2740
|
readonly events: Events$1;
|
|
3215
|
-
readonly inboxes: Inboxes;
|
|
3216
2741
|
readonly logs: Logs;
|
|
3217
2742
|
readonly oauthGrants: OAuthGrants;
|
|
3218
2743
|
readonly suppressions: Suppressions;
|
|
@@ -3229,4 +2754,4 @@ export declare class Resend {
|
|
|
3229
2754
|
delete<T>(path: string, query?: unknown, options?: DeleteOptions): Promise<Response<T>>;
|
|
3230
2755
|
}
|
|
3231
2756
|
//#endregion
|
|
3232
|
-
export type { ContactCreatedEvent, ContactDeletedEvent, ContactUpdatedEvent,
|
|
2757
|
+
export type { ContactCreatedEvent, ContactDeletedEvent, ContactUpdatedEvent, CreateWebhookOptions, CreateWebhookRequestOptions, CreateWebhookResponse, CreateWebhookResponseSuccess, DomainCreatedEvent, DomainDeletedEvent, DomainUpdatedEvent, EmailBouncedEvent, EmailClickedEvent, EmailComplainedEvent, EmailDeliveredEvent, EmailDeliveryDelayedEvent, EmailFailedEvent, EmailOpenedEvent, EmailReceivedEvent, EmailScheduledEvent, EmailSentEvent, EmailSuppressedEvent, ErrorResponse, GetAttachmentOptions, GetAttachmentResponse, GetAttachmentResponseSuccess, GetWebhookEventOptions, GetWebhookEventResponse, GetWebhookEventResponseSuccess, GetWebhookResponse, GetWebhookResponseSuccess, ListAttachmentsOptions, ListAttachmentsResponse, ListAttachmentsResponseSuccess, ListOAuthGrantsOptions, ListOAuthGrantsResponse, ListOAuthGrantsResponseSuccess, ListWebhookEventAttemptsOptions, ListWebhookEventAttemptsResponse, ListWebhookEventAttemptsResponseSuccess, ListWebhookEventsOptions, ListWebhookEventsResponse, ListWebhookEventsResponseSuccess, ListWebhooksOptions, ListWebhooksResponse, ListWebhooksResponseSuccess, OAuthGrant, RemoveWebhookResponse, RemoveWebhookResponseSuccess, ReplayWebhookEventOptions, ReplayWebhookEventResponse, ReplayWebhookEventResponseSuccess, ResendOptions, Response, RevokeOAuthGrantResponse, RevokeOAuthGrantResponseSuccess, RotateWebhookSigningSecretResponse, RotateWebhookSigningSecretResponseSuccess, SuppressionAddedEvent, SuppressionRemovedEvent, UpdateWebhookOptions, UpdateWebhookResponse, UpdateWebhookResponseSuccess, Webhook, WebhookEvent, WebhookEventAttempt, WebhookEventLog, WebhookEventLogStatus, WebhookEventPayload };
|