sequenzy 0.4.0 → 0.6.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/CHANGELOG.md +16 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/resources/transactional.d.mts +59 -4
- package/resources/transactional.d.mts.map +1 -1
- package/resources/transactional.d.ts +59 -4
- package/resources/transactional.d.ts.map +1 -1
- package/resources/transactional.js +13 -0
- package/resources/transactional.js.map +1 -1
- package/resources/transactional.mjs +13 -0
- package/resources/transactional.mjs.map +1 -1
- package/src/resources/transactional.ts +70 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0 (2025-12-21)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.5.0...v0.6.0](https://github.com/Sequenzy/sequenzy-typescript/compare/v0.5.0...v0.6.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([c5ab2f4](https://github.com/Sequenzy/sequenzy-typescript/commit/c5ab2f4b042a3a363296756a292e1e20cc393fd6))
|
|
10
|
+
|
|
11
|
+
## 0.5.0 (2025-12-21)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.4.0...v0.5.0](https://github.com/Sequenzy/sequenzy-typescript/compare/v0.4.0...v0.5.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** manual updates ([7d8ea69](https://github.com/Sequenzy/sequenzy-typescript/commit/7d8ea69894194d183d527c643f1eba0943bad846))
|
|
18
|
+
|
|
3
19
|
## 0.4.0 (2025-12-19)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.3.0...v0.4.0](https://github.com/Sequenzy/sequenzy-typescript/compare/v0.3.0...v0.4.0)
|
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Sequenzy TypeScript API - Best Email Marketing
|
|
1
|
+
# Sequenzy TypeScript API - Best Email Marketing Platform API Library
|
|
2
2
|
|
|
3
3
|
[>)](https://npmjs.org/package/sequenzy) 
|
|
4
4
|
|
|
5
5
|
This library provides convenient access to the Sequenzy REST API from server-side TypeScript or JavaScript.
|
|
6
6
|
|
|
7
|
-
The full API of this library can be found in [api.md](api.md).
|
|
7
|
+
The REST API documentation can be found on [docs.sequenzy.com](https://docs.sequenzy.com). The full API of this library can be found in [api.md](api.md).
|
|
8
8
|
|
|
9
9
|
It is generated with [Stainless](https://www.stainless.com/).
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -30,6 +30,19 @@ export declare class Transactional extends APIResource {
|
|
|
30
30
|
* - Provide a `slug` to use a saved template
|
|
31
31
|
* - Provide `subject` and `body` to send custom content directly
|
|
32
32
|
*
|
|
33
|
+
* **Recipients:**
|
|
34
|
+
*
|
|
35
|
+
* - `to` can be a single email or an array of up to 50 emails
|
|
36
|
+
* - `cc` (carbon copy) recipients are visible to all recipients
|
|
37
|
+
* - `bcc` (blind carbon copy) recipients are hidden from other recipients
|
|
38
|
+
* - Duplicate emails across fields are automatically deduplicated
|
|
39
|
+
*
|
|
40
|
+
* **Attachments:**
|
|
41
|
+
*
|
|
42
|
+
* - Attachments can be provided as Base64-encoded content or URLs
|
|
43
|
+
* - Maximum total attachment size: 40MB per email
|
|
44
|
+
* - Any file type supported (PDFs, images, documents, etc.)
|
|
45
|
+
*
|
|
33
46
|
* Optionally set `from` (domain must be verified) and `replyTo` addresses.
|
|
34
47
|
* Variables can be passed to customize the email content. Returns immediately with
|
|
35
48
|
* a job ID.
|
|
@@ -69,9 +82,11 @@ export interface TransactionalListResponse {
|
|
|
69
82
|
export type TransactionalSendResponse = TransactionalSendResponse.SlugBasedResponse | TransactionalSendResponse.DirectContentResponse;
|
|
70
83
|
export declare namespace TransactionalSendResponse {
|
|
71
84
|
interface SlugBasedResponse {
|
|
85
|
+
bcc?: Array<string>;
|
|
86
|
+
cc?: Array<string>;
|
|
72
87
|
jobId?: string;
|
|
73
88
|
success?: boolean;
|
|
74
|
-
to?: string
|
|
89
|
+
to?: string | Array<string>;
|
|
75
90
|
transactional?: SlugBasedResponse.Transactional;
|
|
76
91
|
}
|
|
77
92
|
namespace SlugBasedResponse {
|
|
@@ -82,20 +97,40 @@ export declare namespace TransactionalSendResponse {
|
|
|
82
97
|
}
|
|
83
98
|
}
|
|
84
99
|
interface DirectContentResponse {
|
|
100
|
+
bcc?: Array<string>;
|
|
101
|
+
cc?: Array<string>;
|
|
85
102
|
jobId?: string;
|
|
86
103
|
success?: boolean;
|
|
87
|
-
to?: string
|
|
104
|
+
to?: string | Array<string>;
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
export interface TransactionalSendParams {
|
|
91
108
|
/**
|
|
92
|
-
* Recipient email address
|
|
109
|
+
* Recipient email address(es). Can be a single email string or an array of up to
|
|
110
|
+
* 50 emails.
|
|
111
|
+
*/
|
|
112
|
+
to: string | Array<string>;
|
|
113
|
+
/**
|
|
114
|
+
* File attachments for the email. Each attachment must have a filename and either:
|
|
115
|
+
*
|
|
116
|
+
* - `content`: Base64-encoded file content
|
|
117
|
+
* - `path`: URL to fetch the file from
|
|
118
|
+
*
|
|
119
|
+
* Maximum total size: 40MB per email.
|
|
120
|
+
*/
|
|
121
|
+
attachments?: Array<TransactionalSendParams.Attachment>;
|
|
122
|
+
/**
|
|
123
|
+
* Blind carbon copy recipients. These addresses are hidden from other recipients.
|
|
93
124
|
*/
|
|
94
|
-
|
|
125
|
+
bcc?: Array<string>;
|
|
95
126
|
/**
|
|
96
127
|
* Email body HTML content (required if not using slug)
|
|
97
128
|
*/
|
|
98
129
|
body?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Carbon copy recipients. These addresses are visible to all recipients.
|
|
132
|
+
*/
|
|
133
|
+
cc?: Array<string>;
|
|
99
134
|
/**
|
|
100
135
|
* Custom from address. Format: "Name <email>" or just "email". The domain must be
|
|
101
136
|
* verified for your account. If not verified, this field is silently ignored.
|
|
@@ -126,6 +161,26 @@ export interface TransactionalSendParams {
|
|
|
126
161
|
[key: string]: unknown;
|
|
127
162
|
};
|
|
128
163
|
}
|
|
164
|
+
export declare namespace TransactionalSendParams {
|
|
165
|
+
interface Attachment {
|
|
166
|
+
/**
|
|
167
|
+
* The filename for the attachment (including extension)
|
|
168
|
+
*/
|
|
169
|
+
filename: string;
|
|
170
|
+
/**
|
|
171
|
+
* Base64-encoded file content (mutually exclusive with path)
|
|
172
|
+
*/
|
|
173
|
+
content?: string;
|
|
174
|
+
/**
|
|
175
|
+
* MIME type of the attachment (optional, auto-detected if not provided)
|
|
176
|
+
*/
|
|
177
|
+
contentType?: string;
|
|
178
|
+
/**
|
|
179
|
+
* URL to fetch the file from (mutually exclusive with content)
|
|
180
|
+
*/
|
|
181
|
+
path?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
129
184
|
export declare namespace Transactional {
|
|
130
185
|
export { type TransactionalEmail as TransactionalEmail, type TransactionalRetrieveResponse as TransactionalRetrieveResponse, type TransactionalListResponse as TransactionalListResponse, type TransactionalSendResponse as TransactionalSendResponse, type TransactionalSendParams as TransactionalSendParams, };
|
|
131
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional.d.mts","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI3F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAA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G;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEnB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACxC;AAED,yBAAiB,uBAAuB,CAAC;IACvC,UAAiB,UAAU;QACzB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -30,6 +30,19 @@ export declare class Transactional extends APIResource {
|
|
|
30
30
|
* - Provide a `slug` to use a saved template
|
|
31
31
|
* - Provide `subject` and `body` to send custom content directly
|
|
32
32
|
*
|
|
33
|
+
* **Recipients:**
|
|
34
|
+
*
|
|
35
|
+
* - `to` can be a single email or an array of up to 50 emails
|
|
36
|
+
* - `cc` (carbon copy) recipients are visible to all recipients
|
|
37
|
+
* - `bcc` (blind carbon copy) recipients are hidden from other recipients
|
|
38
|
+
* - Duplicate emails across fields are automatically deduplicated
|
|
39
|
+
*
|
|
40
|
+
* **Attachments:**
|
|
41
|
+
*
|
|
42
|
+
* - Attachments can be provided as Base64-encoded content or URLs
|
|
43
|
+
* - Maximum total attachment size: 40MB per email
|
|
44
|
+
* - Any file type supported (PDFs, images, documents, etc.)
|
|
45
|
+
*
|
|
33
46
|
* Optionally set `from` (domain must be verified) and `replyTo` addresses.
|
|
34
47
|
* Variables can be passed to customize the email content. Returns immediately with
|
|
35
48
|
* a job ID.
|
|
@@ -69,9 +82,11 @@ export interface TransactionalListResponse {
|
|
|
69
82
|
export type TransactionalSendResponse = TransactionalSendResponse.SlugBasedResponse | TransactionalSendResponse.DirectContentResponse;
|
|
70
83
|
export declare namespace TransactionalSendResponse {
|
|
71
84
|
interface SlugBasedResponse {
|
|
85
|
+
bcc?: Array<string>;
|
|
86
|
+
cc?: Array<string>;
|
|
72
87
|
jobId?: string;
|
|
73
88
|
success?: boolean;
|
|
74
|
-
to?: string
|
|
89
|
+
to?: string | Array<string>;
|
|
75
90
|
transactional?: SlugBasedResponse.Transactional;
|
|
76
91
|
}
|
|
77
92
|
namespace SlugBasedResponse {
|
|
@@ -82,20 +97,40 @@ export declare namespace TransactionalSendResponse {
|
|
|
82
97
|
}
|
|
83
98
|
}
|
|
84
99
|
interface DirectContentResponse {
|
|
100
|
+
bcc?: Array<string>;
|
|
101
|
+
cc?: Array<string>;
|
|
85
102
|
jobId?: string;
|
|
86
103
|
success?: boolean;
|
|
87
|
-
to?: string
|
|
104
|
+
to?: string | Array<string>;
|
|
88
105
|
}
|
|
89
106
|
}
|
|
90
107
|
export interface TransactionalSendParams {
|
|
91
108
|
/**
|
|
92
|
-
* Recipient email address
|
|
109
|
+
* Recipient email address(es). Can be a single email string or an array of up to
|
|
110
|
+
* 50 emails.
|
|
111
|
+
*/
|
|
112
|
+
to: string | Array<string>;
|
|
113
|
+
/**
|
|
114
|
+
* File attachments for the email. Each attachment must have a filename and either:
|
|
115
|
+
*
|
|
116
|
+
* - `content`: Base64-encoded file content
|
|
117
|
+
* - `path`: URL to fetch the file from
|
|
118
|
+
*
|
|
119
|
+
* Maximum total size: 40MB per email.
|
|
120
|
+
*/
|
|
121
|
+
attachments?: Array<TransactionalSendParams.Attachment>;
|
|
122
|
+
/**
|
|
123
|
+
* Blind carbon copy recipients. These addresses are hidden from other recipients.
|
|
93
124
|
*/
|
|
94
|
-
|
|
125
|
+
bcc?: Array<string>;
|
|
95
126
|
/**
|
|
96
127
|
* Email body HTML content (required if not using slug)
|
|
97
128
|
*/
|
|
98
129
|
body?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Carbon copy recipients. These addresses are visible to all recipients.
|
|
132
|
+
*/
|
|
133
|
+
cc?: Array<string>;
|
|
99
134
|
/**
|
|
100
135
|
* Custom from address. Format: "Name <email>" or just "email". The domain must be
|
|
101
136
|
* verified for your account. If not verified, this field is silently ignored.
|
|
@@ -126,6 +161,26 @@ export interface TransactionalSendParams {
|
|
|
126
161
|
[key: string]: unknown;
|
|
127
162
|
};
|
|
128
163
|
}
|
|
164
|
+
export declare namespace TransactionalSendParams {
|
|
165
|
+
interface Attachment {
|
|
166
|
+
/**
|
|
167
|
+
* The filename for the attachment (including extension)
|
|
168
|
+
*/
|
|
169
|
+
filename: string;
|
|
170
|
+
/**
|
|
171
|
+
* Base64-encoded file content (mutually exclusive with path)
|
|
172
|
+
*/
|
|
173
|
+
content?: string;
|
|
174
|
+
/**
|
|
175
|
+
* MIME type of the attachment (optional, auto-detected if not provided)
|
|
176
|
+
*/
|
|
177
|
+
contentType?: string;
|
|
178
|
+
/**
|
|
179
|
+
* URL to fetch the file from (mutually exclusive with content)
|
|
180
|
+
*/
|
|
181
|
+
path?: string;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
129
184
|
export declare namespace Transactional {
|
|
130
185
|
export { type TransactionalEmail as TransactionalEmail, type TransactionalRetrieveResponse as TransactionalRetrieveResponse, type TransactionalListResponse as TransactionalListResponse, type TransactionalSendResponse as TransactionalSendResponse, type TransactionalSendParams as TransactionalSendParams, };
|
|
131
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional.d.ts","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI3F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrE
|
|
1
|
+
{"version":3,"file":"transactional.d.ts","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,CAAC;IAI3F;;;;;;;OAOG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;IAIrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CAAC,IAAI,EAAE,uBAAuB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAGrG;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,IAAI,CAAC,EAAE,MAAM,CA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AAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -36,6 +36,19 @@ class Transactional extends resource_1.APIResource {
|
|
|
36
36
|
* - Provide a `slug` to use a saved template
|
|
37
37
|
* - Provide `subject` and `body` to send custom content directly
|
|
38
38
|
*
|
|
39
|
+
* **Recipients:**
|
|
40
|
+
*
|
|
41
|
+
* - `to` can be a single email or an array of up to 50 emails
|
|
42
|
+
* - `cc` (carbon copy) recipients are visible to all recipients
|
|
43
|
+
* - `bcc` (blind carbon copy) recipients are hidden from other recipients
|
|
44
|
+
* - Duplicate emails across fields are automatically deduplicated
|
|
45
|
+
*
|
|
46
|
+
* **Attachments:**
|
|
47
|
+
*
|
|
48
|
+
* - Attachments can be provided as Base64-encoded content or URLs
|
|
49
|
+
* - Maximum total attachment size: 40MB per email
|
|
50
|
+
* - Any file type supported (PDFs, images, documents, etc.)
|
|
51
|
+
*
|
|
39
52
|
* Optionally set `from` (domain must be verified) and `replyTo` addresses.
|
|
40
53
|
* Variables can be passed to customize the email content. Returns immediately with
|
|
41
54
|
* a job ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional.js","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"transactional.js","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CAAC,IAA6B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF;AA/DD,sCA+DC"}
|
|
@@ -33,6 +33,19 @@ export class Transactional extends APIResource {
|
|
|
33
33
|
* - Provide a `slug` to use a saved template
|
|
34
34
|
* - Provide `subject` and `body` to send custom content directly
|
|
35
35
|
*
|
|
36
|
+
* **Recipients:**
|
|
37
|
+
*
|
|
38
|
+
* - `to` can be a single email or an array of up to 50 emails
|
|
39
|
+
* - `cc` (carbon copy) recipients are visible to all recipients
|
|
40
|
+
* - `bcc` (blind carbon copy) recipients are hidden from other recipients
|
|
41
|
+
* - Duplicate emails across fields are automatically deduplicated
|
|
42
|
+
*
|
|
43
|
+
* **Attachments:**
|
|
44
|
+
*
|
|
45
|
+
* - Attachments can be provided as Base64-encoded content or URLs
|
|
46
|
+
* - Maximum total attachment size: 40MB per email
|
|
47
|
+
* - Any file type supported (PDFs, images, documents, etc.)
|
|
48
|
+
*
|
|
36
49
|
* Optionally set `from` (domain must be verified) and `replyTo` addresses.
|
|
37
50
|
* Variables can be passed to customize the email content. Returns immediately with
|
|
38
51
|
* a job ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional.mjs","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"transactional.mjs","sourceRoot":"","sources":["../src/resources/transactional.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,IAAY,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACH,IAAI,CAAC,IAA6B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -40,6 +40,19 @@ export class Transactional extends APIResource {
|
|
|
40
40
|
* - Provide a `slug` to use a saved template
|
|
41
41
|
* - Provide `subject` and `body` to send custom content directly
|
|
42
42
|
*
|
|
43
|
+
* **Recipients:**
|
|
44
|
+
*
|
|
45
|
+
* - `to` can be a single email or an array of up to 50 emails
|
|
46
|
+
* - `cc` (carbon copy) recipients are visible to all recipients
|
|
47
|
+
* - `bcc` (blind carbon copy) recipients are hidden from other recipients
|
|
48
|
+
* - Duplicate emails across fields are automatically deduplicated
|
|
49
|
+
*
|
|
50
|
+
* **Attachments:**
|
|
51
|
+
*
|
|
52
|
+
* - Attachments can be provided as Base64-encoded content or URLs
|
|
53
|
+
* - Maximum total attachment size: 40MB per email
|
|
54
|
+
* - Any file type supported (PDFs, images, documents, etc.)
|
|
55
|
+
*
|
|
43
56
|
* Optionally set `from` (domain must be verified) and `replyTo` addresses.
|
|
44
57
|
* Variables can be passed to customize the email content. Returns immediately with
|
|
45
58
|
* a job ID.
|
|
@@ -96,11 +109,15 @@ export type TransactionalSendResponse =
|
|
|
96
109
|
|
|
97
110
|
export namespace TransactionalSendResponse {
|
|
98
111
|
export interface SlugBasedResponse {
|
|
112
|
+
bcc?: Array<string>;
|
|
113
|
+
|
|
114
|
+
cc?: Array<string>;
|
|
115
|
+
|
|
99
116
|
jobId?: string;
|
|
100
117
|
|
|
101
118
|
success?: boolean;
|
|
102
119
|
|
|
103
|
-
to?: string
|
|
120
|
+
to?: string | Array<string>;
|
|
104
121
|
|
|
105
122
|
transactional?: SlugBasedResponse.Transactional;
|
|
106
123
|
}
|
|
@@ -116,25 +133,50 @@ export namespace TransactionalSendResponse {
|
|
|
116
133
|
}
|
|
117
134
|
|
|
118
135
|
export interface DirectContentResponse {
|
|
136
|
+
bcc?: Array<string>;
|
|
137
|
+
|
|
138
|
+
cc?: Array<string>;
|
|
139
|
+
|
|
119
140
|
jobId?: string;
|
|
120
141
|
|
|
121
142
|
success?: boolean;
|
|
122
143
|
|
|
123
|
-
to?: string
|
|
144
|
+
to?: string | Array<string>;
|
|
124
145
|
}
|
|
125
146
|
}
|
|
126
147
|
|
|
127
148
|
export interface TransactionalSendParams {
|
|
128
149
|
/**
|
|
129
|
-
* Recipient email address
|
|
150
|
+
* Recipient email address(es). Can be a single email string or an array of up to
|
|
151
|
+
* 50 emails.
|
|
152
|
+
*/
|
|
153
|
+
to: string | Array<string>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* File attachments for the email. Each attachment must have a filename and either:
|
|
157
|
+
*
|
|
158
|
+
* - `content`: Base64-encoded file content
|
|
159
|
+
* - `path`: URL to fetch the file from
|
|
160
|
+
*
|
|
161
|
+
* Maximum total size: 40MB per email.
|
|
162
|
+
*/
|
|
163
|
+
attachments?: Array<TransactionalSendParams.Attachment>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Blind carbon copy recipients. These addresses are hidden from other recipients.
|
|
130
167
|
*/
|
|
131
|
-
|
|
168
|
+
bcc?: Array<string>;
|
|
132
169
|
|
|
133
170
|
/**
|
|
134
171
|
* Email body HTML content (required if not using slug)
|
|
135
172
|
*/
|
|
136
173
|
body?: string;
|
|
137
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Carbon copy recipients. These addresses are visible to all recipients.
|
|
177
|
+
*/
|
|
178
|
+
cc?: Array<string>;
|
|
179
|
+
|
|
138
180
|
/**
|
|
139
181
|
* Custom from address. Format: "Name <email>" or just "email". The domain must be
|
|
140
182
|
* verified for your account. If not verified, this field is silently ignored.
|
|
@@ -169,6 +211,30 @@ export interface TransactionalSendParams {
|
|
|
169
211
|
variables?: { [key: string]: unknown };
|
|
170
212
|
}
|
|
171
213
|
|
|
214
|
+
export namespace TransactionalSendParams {
|
|
215
|
+
export interface Attachment {
|
|
216
|
+
/**
|
|
217
|
+
* The filename for the attachment (including extension)
|
|
218
|
+
*/
|
|
219
|
+
filename: string;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Base64-encoded file content (mutually exclusive with path)
|
|
223
|
+
*/
|
|
224
|
+
content?: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* MIME type of the attachment (optional, auto-detected if not provided)
|
|
228
|
+
*/
|
|
229
|
+
contentType?: string;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* URL to fetch the file from (mutually exclusive with content)
|
|
233
|
+
*/
|
|
234
|
+
path?: string;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
172
238
|
export declare namespace Transactional {
|
|
173
239
|
export {
|
|
174
240
|
type TransactionalEmail as TransactionalEmail,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.6.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.6.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.6.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|