agentmail 0.5.37 → 0.5.38
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/domains/types/CreateDomainRequest.d.ts +2 -0
- package/dist/cjs/api/resources/domains/types/Domain.d.ts +5 -2
- package/dist/cjs/api/resources/domains/types/DomainItem.d.ts +2 -0
- package/dist/cjs/api/resources/domains/types/InboundEnabled.d.ts +7 -0
- package/dist/cjs/api/resources/domains/types/InboundEnabled.js +3 -0
- package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.d.ts +6 -4
- package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/domains/types/index.js +1 -0
- package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.js +2 -0
- package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +2 -0
- package/dist/cjs/serialization/resources/domains/types/Domain.js +2 -0
- package/dist/cjs/serialization/resources/domains/types/DomainItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/domains/types/DomainItem.js +2 -0
- package/dist/cjs/serialization/resources/domains/types/InboundEnabled.d.ts +7 -0
- package/dist/cjs/serialization/resources/domains/types/InboundEnabled.js +39 -0
- package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.js +2 -0
- package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/domains/types/CreateDomainRequest.d.mts +2 -0
- package/dist/esm/api/resources/domains/types/Domain.d.mts +5 -2
- package/dist/esm/api/resources/domains/types/DomainItem.d.mts +2 -0
- package/dist/esm/api/resources/domains/types/InboundEnabled.d.mts +7 -0
- package/dist/esm/api/resources/domains/types/InboundEnabled.mjs +2 -0
- package/dist/esm/api/resources/domains/types/UpdateDomainRequest.d.mts +6 -4
- package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/api/resources/domains/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.mjs +2 -0
- package/dist/esm/serialization/resources/domains/types/Domain.d.mts +2 -0
- package/dist/esm/serialization/resources/domains/types/Domain.mjs +2 -0
- package/dist/esm/serialization/resources/domains/types/DomainItem.d.mts +2 -0
- package/dist/esm/serialization/resources/domains/types/DomainItem.mjs +2 -0
- package/dist/esm/serialization/resources/domains/types/InboundEnabled.d.mts +7 -0
- package/dist/esm/serialization/resources/domains/types/InboundEnabled.mjs +3 -0
- package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.mjs +2 -0
- package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.5.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
46
|
+
"X-Fern-SDK-Version": "0.5.38",
|
|
47
|
+
"User-Agent": "agentmail/0.5.38",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -7,9 +7,11 @@ export interface CreateDomainRequest {
|
|
|
7
7
|
* provider is detected.
|
|
8
8
|
* This flag does not configure DNS or inbound routing. For shared Google
|
|
9
9
|
* Workspace domains, follow the [Google Workspace guide](/google-workspace).
|
|
10
|
+
* Only checked when `inbound_enabled` is true; a send-only domain skips the check.
|
|
10
11
|
*/
|
|
11
12
|
allowConflictingProvider?: boolean;
|
|
12
13
|
feedbackEnabled?: AgentMail.FeedbackEnabled;
|
|
14
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
13
15
|
subdomainsEnabled?: AgentMail.SubdomainsEnabled;
|
|
14
16
|
trackingEnabled?: AgentMail.TrackingEnabled;
|
|
15
17
|
}
|
|
@@ -7,11 +7,14 @@ export interface Domain {
|
|
|
7
7
|
/** Why the domain is not (yet) VERIFIED, when known. `dns_records_missing` / `dns_records_invalid` point at the DNS records. The `ses_*` values mean the records look right and sending-infrastructure validation has not converged: `ses_dkim_pending` / `ses_mail_from_pending` (still checking), `ses_dkim_temporary_failure` / `ses_mail_from_temporary_failure` (a transient error the infrastructure keeps retrying on its own — usually resolves without changes), `ses_dkim_failed` / `ses_mail_from_failed` (a terminal verdict; re-verify after fixing), `ses_dkim_not_started` / `ses_mail_from_not_started` (the attribute was never configured on the identity — re-verify to push it), and `ses_not_verified_for_sending`. Absent when VERIFIED. */
|
|
8
8
|
reason?: string;
|
|
9
9
|
feedbackEnabled: AgentMail.FeedbackEnabled;
|
|
10
|
+
/** Absent on domains created before this field existed; those receive email. */
|
|
11
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
10
12
|
subdomainsEnabled: AgentMail.SubdomainsEnabled;
|
|
11
13
|
trackingEnabled: AgentMail.TrackingEnabled;
|
|
12
14
|
/**
|
|
13
|
-
* A list of DNS records required to verify the domain. Includes
|
|
14
|
-
*
|
|
15
|
+
* A list of DNS records required to verify the domain. Includes the apex
|
|
16
|
+
* MX record unless `inbound_enabled` is false, and a wildcard MX record
|
|
17
|
+
* (`*.<domain>`) when `subdomains_enabled` is true.
|
|
15
18
|
*/
|
|
16
19
|
records: AgentMail.VerificationRecord[];
|
|
17
20
|
clientId?: AgentMail.ClientId;
|
|
@@ -4,6 +4,8 @@ export interface DomainItem {
|
|
|
4
4
|
domainId: AgentMail.DomainId;
|
|
5
5
|
domain: AgentMail.DomainName;
|
|
6
6
|
feedbackEnabled: AgentMail.FeedbackEnabled;
|
|
7
|
+
/** Absent on domains created before this field existed; those receive email. */
|
|
8
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
7
9
|
subdomainsEnabled: AgentMail.SubdomainsEnabled;
|
|
8
10
|
trackingEnabled: AgentMail.TrackingEnabled;
|
|
9
11
|
clientId?: AgentMail.ClientId;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Receive email for this domain. Defaults to `true`. Set `false` for a send-only
|
|
3
|
+
* domain: the apex MX record is not required and is omitted from `records`, so the
|
|
4
|
+
* domain's existing email provider keeps receiving its mail. Inboxes on a send-only
|
|
5
|
+
* domain can still send.
|
|
6
|
+
*/
|
|
7
|
+
export type InboundEnabled = boolean;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Provide at least one of `feedback_enabled`, `
|
|
4
|
-
* `tracking_enabled`. Omitted
|
|
5
|
-
*
|
|
3
|
+
* Provide at least one of `feedback_enabled`, `inbound_enabled`,
|
|
4
|
+
* `subdomains_enabled`, or `tracking_enabled`. Omitted fields are left
|
|
5
|
+
* unchanged; an empty body is rejected. Enabling `inbound_enabled` or
|
|
6
6
|
* `subdomains_enabled` on a verified domain returns it to `PENDING` until the
|
|
7
|
-
* newly
|
|
7
|
+
* newly required MX record (the apex MX, or the wildcard `*.<domain>`) is
|
|
8
|
+
* published and verified.
|
|
8
9
|
*/
|
|
9
10
|
export interface UpdateDomainRequest {
|
|
10
11
|
feedbackEnabled?: AgentMail.FeedbackEnabled;
|
|
12
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
11
13
|
subdomainsEnabled?: AgentMail.SubdomainsEnabled;
|
|
12
14
|
trackingEnabled?: AgentMail.TrackingEnabled;
|
|
13
15
|
}
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.js";
|
|
|
6
6
|
export * from "./DomainName.js";
|
|
7
7
|
export * from "./FeedbackEnabled.js";
|
|
8
8
|
export * from "./GetSetupLinkResponse.js";
|
|
9
|
+
export * from "./InboundEnabled.js";
|
|
9
10
|
export * from "./ListDomainsResponse.js";
|
|
10
11
|
export * from "./RecordStatus.js";
|
|
11
12
|
export * from "./RecordType.js";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./DomainItem.js"), exports);
|
|
|
22
22
|
__exportStar(require("./DomainName.js"), exports);
|
|
23
23
|
__exportStar(require("./FeedbackEnabled.js"), exports);
|
|
24
24
|
__exportStar(require("./GetSetupLinkResponse.js"), exports);
|
|
25
|
+
__exportStar(require("./InboundEnabled.js"), exports);
|
|
25
26
|
__exportStar(require("./ListDomainsResponse.js"), exports);
|
|
26
27
|
__exportStar(require("./RecordStatus.js"), exports);
|
|
27
28
|
__exportStar(require("./RecordType.js"), exports);
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { DomainName } from "./DomainName.js";
|
|
5
5
|
import { FeedbackEnabled } from "./FeedbackEnabled.js";
|
|
6
|
+
import { InboundEnabled } from "./InboundEnabled.js";
|
|
6
7
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
|
|
7
8
|
import { TrackingEnabled } from "./TrackingEnabled.js";
|
|
8
9
|
export declare const CreateDomainRequest: core.serialization.ObjectSchema<serializers.CreateDomainRequest.Raw, AgentMail.CreateDomainRequest>;
|
|
@@ -11,6 +12,7 @@ export declare namespace CreateDomainRequest {
|
|
|
11
12
|
domain: DomainName.Raw;
|
|
12
13
|
allow_conflicting_provider?: boolean | null;
|
|
13
14
|
feedback_enabled?: FeedbackEnabled.Raw | null;
|
|
15
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
14
16
|
subdomains_enabled?: SubdomainsEnabled.Raw | null;
|
|
15
17
|
tracking_enabled?: TrackingEnabled.Raw | null;
|
|
16
18
|
}
|
|
@@ -38,12 +38,14 @@ exports.CreateDomainRequest = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const DomainName_js_1 = require("./DomainName.js");
|
|
40
40
|
const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
|
|
41
|
+
const InboundEnabled_js_1 = require("./InboundEnabled.js");
|
|
41
42
|
const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
|
|
42
43
|
const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
|
|
43
44
|
exports.CreateDomainRequest = core.serialization.object({
|
|
44
45
|
domain: DomainName_js_1.DomainName,
|
|
45
46
|
allowConflictingProvider: core.serialization.property("allow_conflicting_provider", core.serialization.boolean().optional()),
|
|
46
47
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled.optional()),
|
|
48
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
|
|
47
49
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled.optional()),
|
|
48
50
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled.optional()),
|
|
49
51
|
});
|
|
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.js";
|
|
|
6
6
|
import { DomainId } from "./DomainId.js";
|
|
7
7
|
import { DomainName } from "./DomainName.js";
|
|
8
8
|
import { FeedbackEnabled } from "./FeedbackEnabled.js";
|
|
9
|
+
import { InboundEnabled } from "./InboundEnabled.js";
|
|
9
10
|
import { Status } from "./Status.js";
|
|
10
11
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
|
|
11
12
|
import { TrackingEnabled } from "./TrackingEnabled.js";
|
|
@@ -19,6 +20,7 @@ export declare namespace Domain {
|
|
|
19
20
|
status: Status.Raw;
|
|
20
21
|
reason?: string | null;
|
|
21
22
|
feedback_enabled: FeedbackEnabled.Raw;
|
|
23
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
22
24
|
subdomains_enabled: SubdomainsEnabled.Raw;
|
|
23
25
|
tracking_enabled: TrackingEnabled.Raw;
|
|
24
26
|
records: VerificationRecord.Raw[];
|
|
@@ -41,6 +41,7 @@ const ClientId_js_1 = require("./ClientId.js");
|
|
|
41
41
|
const DomainId_js_1 = require("./DomainId.js");
|
|
42
42
|
const DomainName_js_1 = require("./DomainName.js");
|
|
43
43
|
const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
|
|
44
|
+
const InboundEnabled_js_1 = require("./InboundEnabled.js");
|
|
44
45
|
const Status_js_1 = require("./Status.js");
|
|
45
46
|
const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
|
|
46
47
|
const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
|
|
@@ -52,6 +53,7 @@ exports.Domain = core.serialization.object({
|
|
|
52
53
|
status: Status_js_1.Status,
|
|
53
54
|
reason: core.serialization.string().optional(),
|
|
54
55
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
|
|
56
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
|
|
55
57
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled),
|
|
56
58
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled),
|
|
57
59
|
records: core.serialization.list(VerificationRecord_js_1.VerificationRecord),
|
|
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.js";
|
|
|
6
6
|
import { DomainId } from "./DomainId.js";
|
|
7
7
|
import { DomainName } from "./DomainName.js";
|
|
8
8
|
import { FeedbackEnabled } from "./FeedbackEnabled.js";
|
|
9
|
+
import { InboundEnabled } from "./InboundEnabled.js";
|
|
9
10
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
|
|
10
11
|
import { TrackingEnabled } from "./TrackingEnabled.js";
|
|
11
12
|
export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
|
|
@@ -15,6 +16,7 @@ export declare namespace DomainItem {
|
|
|
15
16
|
domain_id: DomainId.Raw;
|
|
16
17
|
domain: DomainName.Raw;
|
|
17
18
|
feedback_enabled: FeedbackEnabled.Raw;
|
|
19
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
18
20
|
subdomains_enabled: SubdomainsEnabled.Raw;
|
|
19
21
|
tracking_enabled: TrackingEnabled.Raw;
|
|
20
22
|
client_id?: ClientId.Raw | null;
|
|
@@ -41,6 +41,7 @@ const ClientId_js_1 = require("./ClientId.js");
|
|
|
41
41
|
const DomainId_js_1 = require("./DomainId.js");
|
|
42
42
|
const DomainName_js_1 = require("./DomainName.js");
|
|
43
43
|
const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
|
|
44
|
+
const InboundEnabled_js_1 = require("./InboundEnabled.js");
|
|
44
45
|
const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
|
|
45
46
|
const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
|
|
46
47
|
exports.DomainItem = core.serialization.object({
|
|
@@ -48,6 +49,7 @@ exports.DomainItem = core.serialization.object({
|
|
|
48
49
|
domainId: core.serialization.property("domain_id", DomainId_js_1.DomainId),
|
|
49
50
|
domain: DomainName_js_1.DomainName,
|
|
50
51
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
|
|
52
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
|
|
51
53
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled),
|
|
52
54
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled),
|
|
53
55
|
clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const InboundEnabled: core.serialization.Schema<serializers.InboundEnabled.Raw, AgentMail.InboundEnabled>;
|
|
5
|
+
export declare namespace InboundEnabled {
|
|
6
|
+
type Raw = boolean;
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InboundEnabled = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InboundEnabled = core.serialization.boolean();
|
|
@@ -2,12 +2,14 @@ import type * as AgentMail from "../../../../api/index.js";
|
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { FeedbackEnabled } from "./FeedbackEnabled.js";
|
|
5
|
+
import { InboundEnabled } from "./InboundEnabled.js";
|
|
5
6
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
|
|
6
7
|
import { TrackingEnabled } from "./TrackingEnabled.js";
|
|
7
8
|
export declare const UpdateDomainRequest: core.serialization.ObjectSchema<serializers.UpdateDomainRequest.Raw, AgentMail.UpdateDomainRequest>;
|
|
8
9
|
export declare namespace UpdateDomainRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
feedback_enabled?: FeedbackEnabled.Raw | null;
|
|
12
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
11
13
|
subdomains_enabled?: SubdomainsEnabled.Raw | null;
|
|
12
14
|
tracking_enabled?: TrackingEnabled.Raw | null;
|
|
13
15
|
}
|
|
@@ -37,10 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.UpdateDomainRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
|
|
40
|
+
const InboundEnabled_js_1 = require("./InboundEnabled.js");
|
|
40
41
|
const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
|
|
41
42
|
const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
|
|
42
43
|
exports.UpdateDomainRequest = core.serialization.object({
|
|
43
44
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled.optional()),
|
|
45
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
|
|
44
46
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled.optional()),
|
|
45
47
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled.optional()),
|
|
46
48
|
});
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.js";
|
|
|
6
6
|
export * from "./DomainName.js";
|
|
7
7
|
export * from "./FeedbackEnabled.js";
|
|
8
8
|
export * from "./GetSetupLinkResponse.js";
|
|
9
|
+
export * from "./InboundEnabled.js";
|
|
9
10
|
export * from "./ListDomainsResponse.js";
|
|
10
11
|
export * from "./RecordStatus.js";
|
|
11
12
|
export * from "./RecordType.js";
|
|
@@ -22,6 +22,7 @@ __exportStar(require("./DomainItem.js"), exports);
|
|
|
22
22
|
__exportStar(require("./DomainName.js"), exports);
|
|
23
23
|
__exportStar(require("./FeedbackEnabled.js"), exports);
|
|
24
24
|
__exportStar(require("./GetSetupLinkResponse.js"), exports);
|
|
25
|
+
__exportStar(require("./InboundEnabled.js"), exports);
|
|
25
26
|
__exportStar(require("./ListDomainsResponse.js"), exports);
|
|
26
27
|
__exportStar(require("./RecordStatus.js"), exports);
|
|
27
28
|
__exportStar(require("./RecordType.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.38";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentmail",
|
|
9
|
-
"X-Fern-SDK-Version": "0.5.
|
|
10
|
-
"User-Agent": "agentmail/0.5.
|
|
9
|
+
"X-Fern-SDK-Version": "0.5.38",
|
|
10
|
+
"User-Agent": "agentmail/0.5.38",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -7,9 +7,11 @@ export interface CreateDomainRequest {
|
|
|
7
7
|
* provider is detected.
|
|
8
8
|
* This flag does not configure DNS or inbound routing. For shared Google
|
|
9
9
|
* Workspace domains, follow the [Google Workspace guide](/google-workspace).
|
|
10
|
+
* Only checked when `inbound_enabled` is true; a send-only domain skips the check.
|
|
10
11
|
*/
|
|
11
12
|
allowConflictingProvider?: boolean;
|
|
12
13
|
feedbackEnabled?: AgentMail.FeedbackEnabled;
|
|
14
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
13
15
|
subdomainsEnabled?: AgentMail.SubdomainsEnabled;
|
|
14
16
|
trackingEnabled?: AgentMail.TrackingEnabled;
|
|
15
17
|
}
|
|
@@ -7,11 +7,14 @@ export interface Domain {
|
|
|
7
7
|
/** Why the domain is not (yet) VERIFIED, when known. `dns_records_missing` / `dns_records_invalid` point at the DNS records. The `ses_*` values mean the records look right and sending-infrastructure validation has not converged: `ses_dkim_pending` / `ses_mail_from_pending` (still checking), `ses_dkim_temporary_failure` / `ses_mail_from_temporary_failure` (a transient error the infrastructure keeps retrying on its own — usually resolves without changes), `ses_dkim_failed` / `ses_mail_from_failed` (a terminal verdict; re-verify after fixing), `ses_dkim_not_started` / `ses_mail_from_not_started` (the attribute was never configured on the identity — re-verify to push it), and `ses_not_verified_for_sending`. Absent when VERIFIED. */
|
|
8
8
|
reason?: string;
|
|
9
9
|
feedbackEnabled: AgentMail.FeedbackEnabled;
|
|
10
|
+
/** Absent on domains created before this field existed; those receive email. */
|
|
11
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
10
12
|
subdomainsEnabled: AgentMail.SubdomainsEnabled;
|
|
11
13
|
trackingEnabled: AgentMail.TrackingEnabled;
|
|
12
14
|
/**
|
|
13
|
-
* A list of DNS records required to verify the domain. Includes
|
|
14
|
-
*
|
|
15
|
+
* A list of DNS records required to verify the domain. Includes the apex
|
|
16
|
+
* MX record unless `inbound_enabled` is false, and a wildcard MX record
|
|
17
|
+
* (`*.<domain>`) when `subdomains_enabled` is true.
|
|
15
18
|
*/
|
|
16
19
|
records: AgentMail.VerificationRecord[];
|
|
17
20
|
clientId?: AgentMail.ClientId;
|
|
@@ -4,6 +4,8 @@ export interface DomainItem {
|
|
|
4
4
|
domainId: AgentMail.DomainId;
|
|
5
5
|
domain: AgentMail.DomainName;
|
|
6
6
|
feedbackEnabled: AgentMail.FeedbackEnabled;
|
|
7
|
+
/** Absent on domains created before this field existed; those receive email. */
|
|
8
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
7
9
|
subdomainsEnabled: AgentMail.SubdomainsEnabled;
|
|
8
10
|
trackingEnabled: AgentMail.TrackingEnabled;
|
|
9
11
|
clientId?: AgentMail.ClientId;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Receive email for this domain. Defaults to `true`. Set `false` for a send-only
|
|
3
|
+
* domain: the apex MX record is not required and is omitted from `records`, so the
|
|
4
|
+
* domain's existing email provider keeps receiving its mail. Inboxes on a send-only
|
|
5
|
+
* domain can still send.
|
|
6
|
+
*/
|
|
7
|
+
export type InboundEnabled = boolean;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.mjs";
|
|
2
2
|
/**
|
|
3
|
-
* Provide at least one of `feedback_enabled`, `
|
|
4
|
-
* `tracking_enabled`. Omitted
|
|
5
|
-
*
|
|
3
|
+
* Provide at least one of `feedback_enabled`, `inbound_enabled`,
|
|
4
|
+
* `subdomains_enabled`, or `tracking_enabled`. Omitted fields are left
|
|
5
|
+
* unchanged; an empty body is rejected. Enabling `inbound_enabled` or
|
|
6
6
|
* `subdomains_enabled` on a verified domain returns it to `PENDING` until the
|
|
7
|
-
* newly
|
|
7
|
+
* newly required MX record (the apex MX, or the wildcard `*.<domain>`) is
|
|
8
|
+
* published and verified.
|
|
8
9
|
*/
|
|
9
10
|
export interface UpdateDomainRequest {
|
|
10
11
|
feedbackEnabled?: AgentMail.FeedbackEnabled;
|
|
12
|
+
inboundEnabled?: AgentMail.InboundEnabled;
|
|
11
13
|
subdomainsEnabled?: AgentMail.SubdomainsEnabled;
|
|
12
14
|
trackingEnabled?: AgentMail.TrackingEnabled;
|
|
13
15
|
}
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.mjs";
|
|
|
6
6
|
export * from "./DomainName.mjs";
|
|
7
7
|
export * from "./FeedbackEnabled.mjs";
|
|
8
8
|
export * from "./GetSetupLinkResponse.mjs";
|
|
9
|
+
export * from "./InboundEnabled.mjs";
|
|
9
10
|
export * from "./ListDomainsResponse.mjs";
|
|
10
11
|
export * from "./RecordStatus.mjs";
|
|
11
12
|
export * from "./RecordType.mjs";
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.mjs";
|
|
|
6
6
|
export * from "./DomainName.mjs";
|
|
7
7
|
export * from "./FeedbackEnabled.mjs";
|
|
8
8
|
export * from "./GetSetupLinkResponse.mjs";
|
|
9
|
+
export * from "./InboundEnabled.mjs";
|
|
9
10
|
export * from "./ListDomainsResponse.mjs";
|
|
10
11
|
export * from "./RecordStatus.mjs";
|
|
11
12
|
export * from "./RecordType.mjs";
|
|
@@ -3,6 +3,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { DomainName } from "./DomainName.mjs";
|
|
5
5
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
6
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
6
7
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
7
8
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
8
9
|
export declare const CreateDomainRequest: core.serialization.ObjectSchema<serializers.CreateDomainRequest.Raw, AgentMail.CreateDomainRequest>;
|
|
@@ -11,6 +12,7 @@ export declare namespace CreateDomainRequest {
|
|
|
11
12
|
domain: DomainName.Raw;
|
|
12
13
|
allow_conflicting_provider?: boolean | null;
|
|
13
14
|
feedback_enabled?: FeedbackEnabled.Raw | null;
|
|
15
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
14
16
|
subdomains_enabled?: SubdomainsEnabled.Raw | null;
|
|
15
17
|
tracking_enabled?: TrackingEnabled.Raw | null;
|
|
16
18
|
}
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { DomainName } from "./DomainName.mjs";
|
|
4
4
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
5
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
5
6
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
6
7
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
7
8
|
export const CreateDomainRequest = core.serialization.object({
|
|
8
9
|
domain: DomainName,
|
|
9
10
|
allowConflictingProvider: core.serialization.property("allow_conflicting_provider", core.serialization.boolean().optional()),
|
|
10
11
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled.optional()),
|
|
12
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled.optional()),
|
|
11
13
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled.optional()),
|
|
12
14
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled.optional()),
|
|
13
15
|
});
|
|
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
6
6
|
import { DomainId } from "./DomainId.mjs";
|
|
7
7
|
import { DomainName } from "./DomainName.mjs";
|
|
8
8
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
9
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
9
10
|
import { Status } from "./Status.mjs";
|
|
10
11
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
11
12
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
@@ -19,6 +20,7 @@ export declare namespace Domain {
|
|
|
19
20
|
status: Status.Raw;
|
|
20
21
|
reason?: string | null;
|
|
21
22
|
feedback_enabled: FeedbackEnabled.Raw;
|
|
23
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
22
24
|
subdomains_enabled: SubdomainsEnabled.Raw;
|
|
23
25
|
tracking_enabled: TrackingEnabled.Raw;
|
|
24
26
|
records: VerificationRecord.Raw[];
|
|
@@ -5,6 +5,7 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
5
5
|
import { DomainId } from "./DomainId.mjs";
|
|
6
6
|
import { DomainName } from "./DomainName.mjs";
|
|
7
7
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
8
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
8
9
|
import { Status } from "./Status.mjs";
|
|
9
10
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
10
11
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
@@ -16,6 +17,7 @@ export const Domain = core.serialization.object({
|
|
|
16
17
|
status: Status,
|
|
17
18
|
reason: core.serialization.string().optional(),
|
|
18
19
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled),
|
|
20
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled.optional()),
|
|
19
21
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled),
|
|
20
22
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled),
|
|
21
23
|
records: core.serialization.list(VerificationRecord),
|
|
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
6
6
|
import { DomainId } from "./DomainId.mjs";
|
|
7
7
|
import { DomainName } from "./DomainName.mjs";
|
|
8
8
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
9
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
9
10
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
10
11
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
11
12
|
export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
|
|
@@ -15,6 +16,7 @@ export declare namespace DomainItem {
|
|
|
15
16
|
domain_id: DomainId.Raw;
|
|
16
17
|
domain: DomainName.Raw;
|
|
17
18
|
feedback_enabled: FeedbackEnabled.Raw;
|
|
19
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
18
20
|
subdomains_enabled: SubdomainsEnabled.Raw;
|
|
19
21
|
tracking_enabled: TrackingEnabled.Raw;
|
|
20
22
|
client_id?: ClientId.Raw | null;
|
|
@@ -5,6 +5,7 @@ import { ClientId } from "./ClientId.mjs";
|
|
|
5
5
|
import { DomainId } from "./DomainId.mjs";
|
|
6
6
|
import { DomainName } from "./DomainName.mjs";
|
|
7
7
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
8
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
8
9
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
9
10
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
10
11
|
export const DomainItem = core.serialization.object({
|
|
@@ -12,6 +13,7 @@ export const DomainItem = core.serialization.object({
|
|
|
12
13
|
domainId: core.serialization.property("domain_id", DomainId),
|
|
13
14
|
domain: DomainName,
|
|
14
15
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled),
|
|
16
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled.optional()),
|
|
15
17
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled),
|
|
16
18
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled),
|
|
17
19
|
clientId: core.serialization.property("client_id", ClientId.optional()),
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
export declare const InboundEnabled: core.serialization.Schema<serializers.InboundEnabled.Raw, AgentMail.InboundEnabled>;
|
|
5
|
+
export declare namespace InboundEnabled {
|
|
6
|
+
type Raw = boolean;
|
|
7
|
+
}
|
|
@@ -2,12 +2,14 @@ import type * as AgentMail from "../../../../api/index.mjs";
|
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
5
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
5
6
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
6
7
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
7
8
|
export declare const UpdateDomainRequest: core.serialization.ObjectSchema<serializers.UpdateDomainRequest.Raw, AgentMail.UpdateDomainRequest>;
|
|
8
9
|
export declare namespace UpdateDomainRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
feedback_enabled?: FeedbackEnabled.Raw | null;
|
|
12
|
+
inbound_enabled?: InboundEnabled.Raw | null;
|
|
11
13
|
subdomains_enabled?: SubdomainsEnabled.Raw | null;
|
|
12
14
|
tracking_enabled?: TrackingEnabled.Raw | null;
|
|
13
15
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import { FeedbackEnabled } from "./FeedbackEnabled.mjs";
|
|
4
|
+
import { InboundEnabled } from "./InboundEnabled.mjs";
|
|
4
5
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.mjs";
|
|
5
6
|
import { TrackingEnabled } from "./TrackingEnabled.mjs";
|
|
6
7
|
export const UpdateDomainRequest = core.serialization.object({
|
|
7
8
|
feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled.optional()),
|
|
9
|
+
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled.optional()),
|
|
8
10
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled.optional()),
|
|
9
11
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled.optional()),
|
|
10
12
|
});
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.mjs";
|
|
|
6
6
|
export * from "./DomainName.mjs";
|
|
7
7
|
export * from "./FeedbackEnabled.mjs";
|
|
8
8
|
export * from "./GetSetupLinkResponse.mjs";
|
|
9
|
+
export * from "./InboundEnabled.mjs";
|
|
9
10
|
export * from "./ListDomainsResponse.mjs";
|
|
10
11
|
export * from "./RecordStatus.mjs";
|
|
11
12
|
export * from "./RecordType.mjs";
|
|
@@ -6,6 +6,7 @@ export * from "./DomainItem.mjs";
|
|
|
6
6
|
export * from "./DomainName.mjs";
|
|
7
7
|
export * from "./FeedbackEnabled.mjs";
|
|
8
8
|
export * from "./GetSetupLinkResponse.mjs";
|
|
9
|
+
export * from "./InboundEnabled.mjs";
|
|
9
10
|
export * from "./ListDomainsResponse.mjs";
|
|
10
11
|
export * from "./RecordStatus.mjs";
|
|
11
12
|
export * from "./RecordType.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.38";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.38";
|