resend 6.35.0 → 6.36.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/dist/index.cjs +1 -1
- package/dist/index.d.cts +19 -5
- package/dist/index.d.mts +19 -5
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1828,12 +1828,22 @@ interface InboxDraftAttachment {
|
|
|
1828
1828
|
content_type: string;
|
|
1829
1829
|
size: number;
|
|
1830
1830
|
}
|
|
1831
|
-
interface
|
|
1831
|
+
interface InboxDraftContentAttachmentOptions {
|
|
1832
1832
|
/** Content of the file, as a base64 string or a Buffer. */
|
|
1833
1833
|
content: string | Buffer;
|
|
1834
|
+
path?: never;
|
|
1834
1835
|
filename: string;
|
|
1835
1836
|
contentType: string;
|
|
1836
1837
|
}
|
|
1838
|
+
interface InboxDraftPathAttachmentOptions {
|
|
1839
|
+
content?: never;
|
|
1840
|
+
/** URL of the file, downloaded when the request is made and stored on the draft. */
|
|
1841
|
+
path: string;
|
|
1842
|
+
filename: string;
|
|
1843
|
+
/** Defaults to the content type of the downloaded file. */
|
|
1844
|
+
contentType?: string;
|
|
1845
|
+
}
|
|
1846
|
+
type InboxDraftAttachmentOptions = InboxDraftContentAttachmentOptions | InboxDraftPathAttachmentOptions;
|
|
1837
1847
|
interface InboxDraft {
|
|
1838
1848
|
object: 'inbox_draft';
|
|
1839
1849
|
id: string;
|
|
@@ -1874,8 +1884,10 @@ type CreateInboxDraftContent = RequireAtLeastOne<{
|
|
|
1874
1884
|
text?: string | null;
|
|
1875
1885
|
html?: string | null;
|
|
1876
1886
|
/**
|
|
1877
|
-
* Files to store on the draft. Each one needs
|
|
1878
|
-
*
|
|
1887
|
+
* Files to store on the draft. Each one needs a `filename` and either `content` with a `contentType`,
|
|
1888
|
+
* or a `path` URL that is downloaded when the request is made.
|
|
1889
|
+
* The files on a draft, downloaded ones included, can total at most 25 MB. An empty file, a blocked file type,
|
|
1890
|
+
* or a `path` that cannot be downloaded returns a 422.
|
|
1879
1891
|
*/
|
|
1880
1892
|
attachments?: InboxDraftAttachmentOptions[];
|
|
1881
1893
|
}>;
|
|
@@ -1949,8 +1961,10 @@ type UpdateInboxDraftOptions = InboxSelector & {
|
|
|
1949
1961
|
text?: string | null;
|
|
1950
1962
|
html?: string | null;
|
|
1951
1963
|
/**
|
|
1952
|
-
* Files to store on the draft. Each one needs
|
|
1953
|
-
*
|
|
1964
|
+
* Files to store on the draft. Each one needs a `filename` and either `content` with a `contentType`,
|
|
1965
|
+
* or a `path` URL that is downloaded when the request is made.
|
|
1966
|
+
* The files on a draft, downloaded ones included, can total at most 25 MB. An empty file, a blocked file type,
|
|
1967
|
+
* or a `path` that cannot be downloaded returns a 422.
|
|
1954
1968
|
* Sending the field replaces every attachment on the draft. Send `[]` or `null` to remove them all.
|
|
1955
1969
|
*/
|
|
1956
1970
|
attachments?: InboxDraftAttachmentOptions[] | null;
|
package/dist/index.d.mts
CHANGED
|
@@ -1828,12 +1828,22 @@ interface InboxDraftAttachment {
|
|
|
1828
1828
|
content_type: string;
|
|
1829
1829
|
size: number;
|
|
1830
1830
|
}
|
|
1831
|
-
interface
|
|
1831
|
+
interface InboxDraftContentAttachmentOptions {
|
|
1832
1832
|
/** Content of the file, as a base64 string or a Buffer. */
|
|
1833
1833
|
content: string | Buffer;
|
|
1834
|
+
path?: never;
|
|
1834
1835
|
filename: string;
|
|
1835
1836
|
contentType: string;
|
|
1836
1837
|
}
|
|
1838
|
+
interface InboxDraftPathAttachmentOptions {
|
|
1839
|
+
content?: never;
|
|
1840
|
+
/** URL of the file, downloaded when the request is made and stored on the draft. */
|
|
1841
|
+
path: string;
|
|
1842
|
+
filename: string;
|
|
1843
|
+
/** Defaults to the content type of the downloaded file. */
|
|
1844
|
+
contentType?: string;
|
|
1845
|
+
}
|
|
1846
|
+
type InboxDraftAttachmentOptions = InboxDraftContentAttachmentOptions | InboxDraftPathAttachmentOptions;
|
|
1837
1847
|
interface InboxDraft {
|
|
1838
1848
|
object: 'inbox_draft';
|
|
1839
1849
|
id: string;
|
|
@@ -1874,8 +1884,10 @@ type CreateInboxDraftContent = RequireAtLeastOne<{
|
|
|
1874
1884
|
text?: string | null;
|
|
1875
1885
|
html?: string | null;
|
|
1876
1886
|
/**
|
|
1877
|
-
* Files to store on the draft. Each one needs
|
|
1878
|
-
*
|
|
1887
|
+
* Files to store on the draft. Each one needs a `filename` and either `content` with a `contentType`,
|
|
1888
|
+
* or a `path` URL that is downloaded when the request is made.
|
|
1889
|
+
* The files on a draft, downloaded ones included, can total at most 25 MB. An empty file, a blocked file type,
|
|
1890
|
+
* or a `path` that cannot be downloaded returns a 422.
|
|
1879
1891
|
*/
|
|
1880
1892
|
attachments?: InboxDraftAttachmentOptions[];
|
|
1881
1893
|
}>;
|
|
@@ -1949,8 +1961,10 @@ type UpdateInboxDraftOptions = InboxSelector & {
|
|
|
1949
1961
|
text?: string | null;
|
|
1950
1962
|
html?: string | null;
|
|
1951
1963
|
/**
|
|
1952
|
-
* Files to store on the draft. Each one needs
|
|
1953
|
-
*
|
|
1964
|
+
* Files to store on the draft. Each one needs a `filename` and either `content` with a `contentType`,
|
|
1965
|
+
* or a `path` URL that is downloaded when the request is made.
|
|
1966
|
+
* The files on a draft, downloaded ones included, can total at most 25 MB. An empty file, a blocked file type,
|
|
1967
|
+
* or a `path` that cannot be downloaded returns a 422.
|
|
1954
1968
|
* Sending the field replaces every attachment on the draft. Send `[]` or `null` to remove them all.
|
|
1955
1969
|
*/
|
|
1956
1970
|
attachments?: InboxDraftAttachmentOptions[] | null;
|
package/dist/index.mjs
CHANGED