resend 6.5.2 → 6.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/dist/index.cjs +5 -2
- package/dist/index.d.cts +7 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.mjs +5 -2
- package/package.json +14 -12
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let svix = require("svix");
|
|
2
2
|
|
|
3
3
|
//#region package.json
|
|
4
|
-
var version = "6.
|
|
4
|
+
var version = "6.6.0";
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/common/utils/build-pagination-query.ts
|
|
@@ -434,7 +434,10 @@ function parseDomainToApiOptions(domain) {
|
|
|
434
434
|
name: domain.name,
|
|
435
435
|
region: domain.region,
|
|
436
436
|
custom_return_path: domain.customReturnPath,
|
|
437
|
-
capabilities: domain.capabilities
|
|
437
|
+
capabilities: domain.capabilities,
|
|
438
|
+
open_tracking: domain.openTracking,
|
|
439
|
+
click_tracking: domain.clickTracking,
|
|
440
|
+
tls: domain.tls
|
|
438
441
|
};
|
|
439
442
|
}
|
|
440
443
|
|
package/dist/index.d.cts
CHANGED
|
@@ -63,10 +63,13 @@ interface DomainApiOptions {
|
|
|
63
63
|
region?: string;
|
|
64
64
|
custom_return_path?: string;
|
|
65
65
|
capabilities?: Partial<DomainCapabilities>;
|
|
66
|
+
open_tracking?: boolean;
|
|
67
|
+
click_tracking?: boolean;
|
|
68
|
+
tls?: 'enforced' | 'opportunistic';
|
|
66
69
|
}
|
|
67
70
|
//#endregion
|
|
68
71
|
//#region src/interfaces.d.ts
|
|
69
|
-
type RESEND_ERROR_CODE_KEY = '
|
|
72
|
+
type RESEND_ERROR_CODE_KEY = 'invalid_idempotency_key' | 'validation_error' | 'missing_api_key' | 'restricted_api_key' | 'invalid_api_key' | 'not_found' | 'method_not_allowed' | 'invalid_idempotent_request' | 'concurrent_idempotent_requests' | 'invalid_attachment' | 'invalid_from_address' | 'invalid_access' | 'invalid_parameter' | 'invalid_region' | 'missing_required_field' | 'monthly_quota_exceeded' | 'daily_quota_exceeded' | 'rate_limit_exceeded' | 'security_error' | 'application_error' | 'internal_server_error';
|
|
70
73
|
type Response<T> = ({
|
|
71
74
|
data: T;
|
|
72
75
|
error: null;
|
|
@@ -668,6 +671,9 @@ interface CreateDomainOptions {
|
|
|
668
671
|
region?: DomainRegion;
|
|
669
672
|
customReturnPath?: string;
|
|
670
673
|
capabilities?: Partial<DomainCapabilities>;
|
|
674
|
+
openTracking?: boolean;
|
|
675
|
+
clickTracking?: boolean;
|
|
676
|
+
tls?: 'enforced' | 'opportunistic';
|
|
671
677
|
}
|
|
672
678
|
interface CreateDomainRequestOptions extends PostOptions {}
|
|
673
679
|
interface CreateDomainResponseSuccess extends Pick<Domain, 'name' | 'id' | 'status' | 'created_at' | 'region'> {
|
package/dist/index.d.mts
CHANGED
|
@@ -63,10 +63,13 @@ interface DomainApiOptions {
|
|
|
63
63
|
region?: string;
|
|
64
64
|
custom_return_path?: string;
|
|
65
65
|
capabilities?: Partial<DomainCapabilities>;
|
|
66
|
+
open_tracking?: boolean;
|
|
67
|
+
click_tracking?: boolean;
|
|
68
|
+
tls?: 'enforced' | 'opportunistic';
|
|
66
69
|
}
|
|
67
70
|
//#endregion
|
|
68
71
|
//#region src/interfaces.d.ts
|
|
69
|
-
type RESEND_ERROR_CODE_KEY = '
|
|
72
|
+
type RESEND_ERROR_CODE_KEY = 'invalid_idempotency_key' | 'validation_error' | 'missing_api_key' | 'restricted_api_key' | 'invalid_api_key' | 'not_found' | 'method_not_allowed' | 'invalid_idempotent_request' | 'concurrent_idempotent_requests' | 'invalid_attachment' | 'invalid_from_address' | 'invalid_access' | 'invalid_parameter' | 'invalid_region' | 'missing_required_field' | 'monthly_quota_exceeded' | 'daily_quota_exceeded' | 'rate_limit_exceeded' | 'security_error' | 'application_error' | 'internal_server_error';
|
|
70
73
|
type Response<T> = ({
|
|
71
74
|
data: T;
|
|
72
75
|
error: null;
|
|
@@ -668,6 +671,9 @@ interface CreateDomainOptions {
|
|
|
668
671
|
region?: DomainRegion;
|
|
669
672
|
customReturnPath?: string;
|
|
670
673
|
capabilities?: Partial<DomainCapabilities>;
|
|
674
|
+
openTracking?: boolean;
|
|
675
|
+
clickTracking?: boolean;
|
|
676
|
+
tls?: 'enforced' | 'opportunistic';
|
|
671
677
|
}
|
|
672
678
|
interface CreateDomainRequestOptions extends PostOptions {}
|
|
673
679
|
interface CreateDomainResponseSuccess extends Pick<Domain, 'name' | 'id' | 'status' | 'created_at' | 'region'> {
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Webhook } from "svix";
|
|
2
2
|
|
|
3
3
|
//#region package.json
|
|
4
|
-
var version = "6.
|
|
4
|
+
var version = "6.6.0";
|
|
5
5
|
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/common/utils/build-pagination-query.ts
|
|
@@ -434,7 +434,10 @@ function parseDomainToApiOptions(domain) {
|
|
|
434
434
|
name: domain.name,
|
|
435
435
|
region: domain.region,
|
|
436
436
|
custom_return_path: domain.customReturnPath,
|
|
437
|
-
capabilities: domain.capabilities
|
|
437
|
+
capabilities: domain.capabilities,
|
|
438
|
+
open_tracking: domain.openTracking,
|
|
439
|
+
click_tracking: domain.clickTracking,
|
|
440
|
+
tls: domain.tls
|
|
438
441
|
};
|
|
439
442
|
}
|
|
440
443
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -29,6 +29,17 @@
|
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsdown src/index.ts --format esm,cjs --dts",
|
|
34
|
+
"lint": "biome check .",
|
|
35
|
+
"lint:fix": "biome check . --write",
|
|
36
|
+
"prepublishOnly": "pnpm run build",
|
|
37
|
+
"test": "vitest run",
|
|
38
|
+
"test:dev": "cross-env TEST_MODE=dev vitest run",
|
|
39
|
+
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run",
|
|
40
|
+
"test:watch": "vitest",
|
|
41
|
+
"typecheck": "tsc --noEmit"
|
|
42
|
+
},
|
|
32
43
|
"repository": {
|
|
33
44
|
"type": "git",
|
|
34
45
|
"url": "git+https://github.com/resend/resend-node.git"
|
|
@@ -66,14 +77,5 @@
|
|
|
66
77
|
"vitest": "3.2.4",
|
|
67
78
|
"vitest-fetch-mock": "0.4.5"
|
|
68
79
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
"lint": "biome check .",
|
|
72
|
-
"lint:fix": "biome check . --write",
|
|
73
|
-
"test": "vitest run",
|
|
74
|
-
"test:dev": "cross-env TEST_MODE=dev vitest run",
|
|
75
|
-
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run",
|
|
76
|
-
"test:watch": "vitest",
|
|
77
|
-
"typecheck": "tsc --noEmit"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
+
"packageManager": "pnpm@10.18.2"
|
|
81
|
+
}
|