@squidcloud/mail-client 1.0.460 → 1.0.462

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.
@@ -1,3 +1,15 @@
1
+ export interface SquidMailAttachment {
2
+ /** Filename to be reported as the name of the attached file */
3
+ filename?: string;
4
+ /** String or base64-encoded content of the attachment. Mutually exclusive with path. */
5
+ content?: string;
6
+ /** Encoding of the content string, e.g. 'base64' for binary attachments */
7
+ encoding?: string;
8
+ /** MIME type of the attachment, e.g. 'application/pdf'. Derived from filename if not set. */
9
+ contentType?: string;
10
+ /** Absolute file path on the backend server. The file will be streamed directly. Mutually exclusive with content. */
11
+ path?: string;
12
+ }
1
13
  export interface SquidSendMailRequest {
2
14
  integrationId: string;
3
15
  to: string;
@@ -5,6 +17,7 @@ export interface SquidSendMailRequest {
5
17
  subject: string;
6
18
  body: string;
7
19
  html: boolean;
20
+ attachments?: SquidMailAttachment[];
8
21
  }
9
22
  export interface SquidSendMailResponse {
10
23
  serverResponse: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/mail-client",
3
- "version": "1.0.460",
3
+ "version": "1.0.462",
4
4
  "description": "Squid Mail Client",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/client/src/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "assertic": "^1.3.0",
21
21
  "lodash": "^4.17.21",
22
- "@squidcloud/client": "^1.0.460"
22
+ "@squidcloud/client": "^1.0.462"
23
23
  },
24
24
  "engines": {
25
25
  "node": ">=20.0.0"