@marlinjai/mail-sdk 0.6.1 → 0.8.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/README.md +91 -0
- package/dist/index.d.mts +474 -91
- package/dist/index.d.ts +474 -91
- package/dist/index.js +10 -0
- package/dist/index.mjs +10 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -441,6 +441,16 @@ function createNamespaces(config) {
|
|
|
441
441
|
get: (id, opts) => execute(config, "templates.get", { params: { id } }, opts),
|
|
442
442
|
update: (id, body, opts) => execute(config, "templates.update", { params: { id }, body }, opts),
|
|
443
443
|
delete: (id, opts) => execute(config, "templates.delete", { params: { id } }, opts),
|
|
444
|
+
/**
|
|
445
|
+
* Declares what the template receives from your app: each merge value's
|
|
446
|
+
* label, where it comes from, its kind and an example. Replaces the
|
|
447
|
+
* stored declaration whole; the same declaration again answers
|
|
448
|
+
* `changed: false` and writes nothing. Creates no template version, so
|
|
449
|
+
* it never conflicts with someone editing. Call it from your deploy with
|
|
450
|
+
* the commit as `app_version`. An API key with `send` or `full` scope
|
|
451
|
+
* only: the dashboard cannot declare.
|
|
452
|
+
*/
|
|
453
|
+
declareInputs: (id, body, opts) => execute(config, "templates.declareInputs", { params: { id }, body }, opts),
|
|
444
454
|
versions: (id, query, opts) => execute(config, "templates.versions", { params: { id }, query }, opts),
|
|
445
455
|
version: (id, version, opts) => execute(config, "templates.version", { params: { id, version } }, opts),
|
|
446
456
|
compile: (id, body = {}, opts) => execute(config, "templates.compile", { params: { id }, body }, opts),
|
package/dist/index.mjs
CHANGED
|
@@ -425,6 +425,16 @@ function createNamespaces(config) {
|
|
|
425
425
|
get: (id, opts) => execute(config, "templates.get", { params: { id } }, opts),
|
|
426
426
|
update: (id, body, opts) => execute(config, "templates.update", { params: { id }, body }, opts),
|
|
427
427
|
delete: (id, opts) => execute(config, "templates.delete", { params: { id } }, opts),
|
|
428
|
+
/**
|
|
429
|
+
* Declares what the template receives from your app: each merge value's
|
|
430
|
+
* label, where it comes from, its kind and an example. Replaces the
|
|
431
|
+
* stored declaration whole; the same declaration again answers
|
|
432
|
+
* `changed: false` and writes nothing. Creates no template version, so
|
|
433
|
+
* it never conflicts with someone editing. Call it from your deploy with
|
|
434
|
+
* the commit as `app_version`. An API key with `send` or `full` scope
|
|
435
|
+
* only: the dashboard cannot declare.
|
|
436
|
+
*/
|
|
437
|
+
declareInputs: (id, body, opts) => execute(config, "templates.declareInputs", { params: { id }, body }, opts),
|
|
428
438
|
versions: (id, query, opts) => execute(config, "templates.versions", { params: { id }, query }, opts),
|
|
429
439
|
version: (id, version, opts) => execute(config, "templates.version", { params: { id, version } }, opts),
|
|
430
440
|
compile: (id, body = {}, opts) => execute(config, "templates.compile", { params: { id }, body }, opts),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.8.0",
|
|
7
7
|
"description": "Typed client for the Lumitra Mail v1 API: Node and edge runtimes, retries with idempotency, cursor pagination, webhook verification",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"LICENSE"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@marlinjai/mail-contract": "^0.
|
|
35
|
+
"@marlinjai/mail-contract": "^0.8.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"zod": "^3.25.0"
|