agentmail 0.5.46 → 0.5.47
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/agent/client/Client.d.ts +3 -1
- package/dist/cjs/api/resources/agent/client/Client.js +3 -1
- package/dist/cjs/api/resources/apiKeys/types/ApiKeyPermissions.d.ts +4 -4
- package/dist/cjs/api/resources/calendar/types/IanaTimezone.d.ts +5 -3
- package/dist/cjs/api/resources/domains/types/Domain.d.ts +11 -4
- package/dist/cjs/api/resources/domains/types/RecordType.d.ts +1 -0
- package/dist/cjs/api/resources/domains/types/RecordType.js +1 -0
- package/dist/cjs/api/resources/domains/types/TrackingEnabled.d.ts +4 -3
- package/dist/cjs/api/resources/domains/types/TrackingStatus.d.ts +10 -0
- package/dist/cjs/api/resources/domains/types/TrackingStatus.js +3 -0
- package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.d.ts +2 -1
- package/dist/cjs/api/resources/domains/types/VerificationRecord.d.ts +1 -1
- 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/api/resources/events/types/EventId.d.ts +3 -1
- package/dist/cjs/api/resources/events/types/InboxIds.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/MessageReceivedEvent.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/PodIds.d.ts +1 -1
- package/dist/cjs/api/resources/events/types/ReceivedMessage.d.ts +18 -0
- package/dist/cjs/api/resources/events/types/ReceivedMessage.js +3 -0
- package/dist/cjs/api/resources/events/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/events/types/index.js +1 -0
- package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.d.ts +20 -21
- package/dist/cjs/api/resources/inboxes/resources/calendar/client/Client.js +20 -21
- package/dist/cjs/api/resources/messages/types/Message.d.ts +1 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationDomain.d.ts +5 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationDomain.js +3 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationResults.d.ts +56 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationResults.js +3 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationVerdict.d.ts +16 -0
- package/dist/cjs/api/resources/messages/types/MessageAuthenticationVerdict.js +19 -0
- package/dist/cjs/api/resources/messages/types/MessageCalendarEventId.d.ts +3 -2
- package/dist/cjs/api/resources/messages/types/MessageHeaders.d.ts +4 -1
- package/dist/cjs/api/resources/messages/types/MessageItem.d.ts +1 -0
- package/dist/cjs/api/resources/messages/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/messages/types/index.js +3 -0
- package/dist/cjs/api/resources/metrics/client/Client.d.ts +3 -4
- package/dist/cjs/api/resources/metrics/client/Client.js +3 -4
- package/dist/cjs/api/resources/organizations/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/organizations/client/Client.js +1 -1
- package/dist/cjs/api/resources/organizations/types/Organization.d.ts +12 -0
- package/dist/cjs/api/resources/webhooks/types/CreatePodWebhookRequest.d.ts +4 -0
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookEventTypes.d.ts +3 -2
- package/dist/cjs/api/resources/webhooks/types/CreateWebhookRequest.d.ts +3 -2
- package/dist/cjs/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.ts +6 -4
- package/dist/cjs/api/resources/webhooks/types/UpdatePodWebhookRequest.d.ts +2 -1
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookEventTypes.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/types/UpdateWebhookRequest.d.ts +4 -1
- package/dist/cjs/api/resources/webhooks/types/Webhook.d.ts +5 -1
- package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +3 -0
- package/dist/cjs/serialization/resources/domains/types/Domain.js +3 -0
- package/dist/cjs/serialization/resources/domains/types/RecordType.d.ts +1 -1
- package/dist/cjs/serialization/resources/domains/types/RecordType.js +1 -1
- package/dist/cjs/serialization/resources/domains/types/TrackingStatus.d.ts +8 -0
- package/dist/cjs/serialization/resources/domains/types/TrackingStatus.js +6 -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/serialization/resources/events/types/MessageReceivedEvent.d.ts +2 -2
- package/dist/cjs/serialization/resources/events/types/MessageReceivedEvent.js +2 -2
- package/dist/cjs/serialization/resources/events/types/ReceivedMessage.d.ts +11 -0
- package/dist/cjs/serialization/resources/events/types/ReceivedMessage.js +45 -0
- package/dist/cjs/serialization/resources/events/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/events/types/index.js +1 -0
- package/dist/cjs/serialization/resources/messages/types/Message.d.ts +2 -0
- package/dist/cjs/serialization/resources/messages/types/Message.js +2 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationDomain.d.ts +7 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationDomain.js +39 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationResults.d.ts +17 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationResults.js +49 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationVerdict.d.ts +7 -0
- package/dist/cjs/serialization/resources/messages/types/MessageAuthenticationVerdict.js +39 -0
- package/dist/cjs/serialization/resources/messages/types/MessageItem.d.ts +2 -0
- package/dist/cjs/serialization/resources/messages/types/MessageItem.js +2 -0
- package/dist/cjs/serialization/resources/messages/types/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/messages/types/index.js +3 -0
- package/dist/cjs/serialization/resources/organizations/types/Organization.d.ts +2 -0
- package/dist/cjs/serialization/resources/organizations/types/Organization.js +2 -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/agent/client/Client.d.mts +3 -1
- package/dist/esm/api/resources/agent/client/Client.mjs +3 -1
- package/dist/esm/api/resources/apiKeys/types/ApiKeyPermissions.d.mts +4 -4
- package/dist/esm/api/resources/calendar/types/IanaTimezone.d.mts +5 -3
- package/dist/esm/api/resources/domains/types/Domain.d.mts +11 -4
- package/dist/esm/api/resources/domains/types/RecordType.d.mts +1 -0
- package/dist/esm/api/resources/domains/types/RecordType.mjs +1 -0
- package/dist/esm/api/resources/domains/types/TrackingEnabled.d.mts +4 -3
- package/dist/esm/api/resources/domains/types/TrackingStatus.d.mts +10 -0
- package/dist/esm/api/resources/domains/types/TrackingStatus.mjs +2 -0
- package/dist/esm/api/resources/domains/types/UpdateDomainRequest.d.mts +2 -1
- package/dist/esm/api/resources/domains/types/VerificationRecord.d.mts +1 -1
- 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/api/resources/events/types/EventId.d.mts +3 -1
- package/dist/esm/api/resources/events/types/InboxIds.d.mts +1 -1
- package/dist/esm/api/resources/events/types/MessageReceivedEvent.d.mts +1 -1
- package/dist/esm/api/resources/events/types/PodIds.d.mts +1 -1
- package/dist/esm/api/resources/events/types/ReceivedMessage.d.mts +18 -0
- package/dist/esm/api/resources/events/types/ReceivedMessage.mjs +2 -0
- package/dist/esm/api/resources/events/types/index.d.mts +1 -0
- package/dist/esm/api/resources/events/types/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.d.mts +20 -21
- package/dist/esm/api/resources/inboxes/resources/calendar/client/Client.mjs +20 -21
- package/dist/esm/api/resources/messages/types/Message.d.mts +1 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationDomain.d.mts +5 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationDomain.mjs +2 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationResults.d.mts +56 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationResults.mjs +2 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationVerdict.d.mts +16 -0
- package/dist/esm/api/resources/messages/types/MessageAuthenticationVerdict.mjs +16 -0
- package/dist/esm/api/resources/messages/types/MessageCalendarEventId.d.mts +3 -2
- package/dist/esm/api/resources/messages/types/MessageHeaders.d.mts +4 -1
- package/dist/esm/api/resources/messages/types/MessageItem.d.mts +1 -0
- package/dist/esm/api/resources/messages/types/index.d.mts +3 -0
- package/dist/esm/api/resources/messages/types/index.mjs +3 -0
- package/dist/esm/api/resources/metrics/client/Client.d.mts +3 -4
- package/dist/esm/api/resources/metrics/client/Client.mjs +3 -4
- package/dist/esm/api/resources/organizations/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/organizations/client/Client.mjs +1 -1
- package/dist/esm/api/resources/organizations/types/Organization.d.mts +12 -0
- package/dist/esm/api/resources/webhooks/types/CreatePodWebhookRequest.d.mts +4 -0
- package/dist/esm/api/resources/webhooks/types/CreateWebhookEventTypes.d.mts +3 -2
- package/dist/esm/api/resources/webhooks/types/CreateWebhookRequest.d.mts +3 -2
- package/dist/esm/api/resources/webhooks/types/UpdateInboxWebhookRequest.d.mts +6 -4
- package/dist/esm/api/resources/webhooks/types/UpdatePodWebhookRequest.d.mts +2 -1
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookEventTypes.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/types/UpdateWebhookRequest.d.mts +4 -1
- package/dist/esm/api/resources/webhooks/types/Webhook.d.mts +5 -1
- package/dist/esm/serialization/resources/domains/types/Domain.d.mts +3 -0
- package/dist/esm/serialization/resources/domains/types/Domain.mjs +3 -0
- package/dist/esm/serialization/resources/domains/types/RecordType.d.mts +1 -1
- package/dist/esm/serialization/resources/domains/types/RecordType.mjs +1 -1
- package/dist/esm/serialization/resources/domains/types/TrackingStatus.d.mts +8 -0
- package/dist/esm/serialization/resources/domains/types/TrackingStatus.mjs +3 -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/serialization/resources/events/types/MessageReceivedEvent.d.mts +2 -2
- package/dist/esm/serialization/resources/events/types/MessageReceivedEvent.mjs +2 -2
- package/dist/esm/serialization/resources/events/types/ReceivedMessage.d.mts +11 -0
- package/dist/esm/serialization/resources/events/types/ReceivedMessage.mjs +9 -0
- package/dist/esm/serialization/resources/events/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/events/types/index.mjs +1 -0
- package/dist/esm/serialization/resources/messages/types/Message.d.mts +2 -0
- package/dist/esm/serialization/resources/messages/types/Message.mjs +2 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationDomain.d.mts +7 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationDomain.mjs +3 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationResults.d.mts +17 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationResults.mjs +13 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationVerdict.d.mts +7 -0
- package/dist/esm/serialization/resources/messages/types/MessageAuthenticationVerdict.mjs +3 -0
- package/dist/esm/serialization/resources/messages/types/MessageItem.d.mts +2 -0
- package/dist/esm/serialization/resources/messages/types/MessageItem.mjs +2 -0
- package/dist/esm/serialization/resources/messages/types/index.d.mts +3 -0
- package/dist/esm/serialization/resources/messages/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/organizations/types/Organization.d.mts +2 -0
- package/dist/esm/serialization/resources/organizations/types/Organization.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +20 -2
- package/package.json +3 -2
- package/reference.md +27 -27
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* The calendar event this email's invitation was applied to: set when the email's calendar
|
|
3
3
|
* invitation, update, cancellation or attendee reply changed the inbox's calendar, a few seconds
|
|
4
4
|
* after the email arrives. For an email about one date of a recurring event, it is that date's
|
|
5
|
-
* event ID. Absent on other emails, and on invitations that were not imported.
|
|
6
|
-
*
|
|
5
|
+
* event ID. Absent on other emails, and on invitations that were not imported. The
|
|
6
|
+
* `message.received` event for an email with a calendar attachment waits until this is set, at
|
|
7
|
+
* most 20 seconds, so it usually arrives with it. Calendar is available in US production.
|
|
7
8
|
*/
|
|
8
9
|
export type MessageCalendarEventId = string;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Headers in message.
|
|
2
|
+
* Headers in message. `Authentication-Results` is never included, on received or sent
|
|
3
|
+
* messages: the header is unsigned, so a sender can plant a forged copy. Read
|
|
4
|
+
* `authentication_results` for the verdicts instead. Get Raw Message still returns every copy
|
|
5
|
+
* of the header.
|
|
3
6
|
*/
|
|
4
7
|
export type MessageHeaders = Record<string, string>;
|
|
@@ -16,6 +16,7 @@ export interface MessageItem {
|
|
|
16
16
|
calendarEventId?: AgentMail.MessageCalendarEventId;
|
|
17
17
|
references?: AgentMail.MessageReferences;
|
|
18
18
|
headers?: AgentMail.MessageHeaders;
|
|
19
|
+
authenticationResults?: AgentMail.MessageAuthenticationResults;
|
|
19
20
|
agentArmor?: AgentMail.AgentArmorResult;
|
|
20
21
|
size: AgentMail.MessageSize;
|
|
21
22
|
updatedAt: AgentMail.MessageUpdatedAt;
|
|
@@ -8,6 +8,9 @@ export * from "./BatchUpdateMessagesResponse.js";
|
|
|
8
8
|
export * from "./ListMessagesResponse.js";
|
|
9
9
|
export * from "./Message.js";
|
|
10
10
|
export * from "./MessageAttachments.js";
|
|
11
|
+
export * from "./MessageAuthenticationDomain.js";
|
|
12
|
+
export * from "./MessageAuthenticationResults.js";
|
|
13
|
+
export * from "./MessageAuthenticationVerdict.js";
|
|
11
14
|
export * from "./MessageBcc.js";
|
|
12
15
|
export * from "./MessageCalendarEventId.js";
|
|
13
16
|
export * from "./MessageCc.js";
|
|
@@ -24,6 +24,9 @@ __exportStar(require("./BatchUpdateMessagesResponse.js"), exports);
|
|
|
24
24
|
__exportStar(require("./ListMessagesResponse.js"), exports);
|
|
25
25
|
__exportStar(require("./Message.js"), exports);
|
|
26
26
|
__exportStar(require("./MessageAttachments.js"), exports);
|
|
27
|
+
__exportStar(require("./MessageAuthenticationDomain.js"), exports);
|
|
28
|
+
__exportStar(require("./MessageAuthenticationResults.js"), exports);
|
|
29
|
+
__exportStar(require("./MessageAuthenticationVerdict.js"), exports);
|
|
27
30
|
__exportStar(require("./MessageBcc.js"), exports);
|
|
28
31
|
__exportStar(require("./MessageCalendarEventId.js"), exports);
|
|
29
32
|
__exportStar(require("./MessageCc.js"), exports);
|
|
@@ -54,10 +54,9 @@ export declare class MetricsClient {
|
|
|
54
54
|
* `period` grid point, the bounced (or complained) messages over the
|
|
55
55
|
* preceding `window` divided by the messages sent over the same window,
|
|
56
56
|
* with the send count alongside so you can see the volume behind
|
|
57
|
-
* it.
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* window. Defaults to the rolling 24-hour rate sampled hourly over the
|
|
57
|
+
* it. AgentMail weighs bounce and complaint signals when deciding
|
|
58
|
+
* whether to suspend an account's sending, so keep both rates low.
|
|
59
|
+
* Defaults to the rolling 24-hour rate sampled hourly over the
|
|
61
60
|
* last day; `start` must be within the last 90 days, `window` must be a
|
|
62
61
|
* whole multiple of `period`, and the range plus window divided by
|
|
63
62
|
* `period` must not exceed 1000 buckets.
|
|
@@ -239,10 +239,9 @@ class MetricsClient {
|
|
|
239
239
|
* `period` grid point, the bounced (or complained) messages over the
|
|
240
240
|
* preceding `window` divided by the messages sent over the same window,
|
|
241
241
|
* with the send count alongside so you can see the volume behind
|
|
242
|
-
* it.
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
* window. Defaults to the rolling 24-hour rate sampled hourly over the
|
|
242
|
+
* it. AgentMail weighs bounce and complaint signals when deciding
|
|
243
|
+
* whether to suspend an account's sending, so keep both rates low.
|
|
244
|
+
* Defaults to the rolling 24-hour rate sampled hourly over the
|
|
246
245
|
* last day; `start` must be within the last 90 days, `window` must be a
|
|
247
246
|
* whole multiple of `period`, and the range plus window divided by
|
|
248
247
|
* `period` must not exceed 1000 buckets.
|
|
@@ -26,7 +26,7 @@ export declare class OrganizationsClient {
|
|
|
26
26
|
get(requestOptions?: OrganizationsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Organization>;
|
|
27
27
|
private __get;
|
|
28
28
|
/**
|
|
29
|
-
* Returns whether the organization is in
|
|
29
|
+
* Returns whether the organization is in AgentMail Labs, which turns on features that are still in preview, such as [Agent Armor](https://docs.agentmail.to/agent-armor). Requires an organization-scoped API key.
|
|
30
30
|
*
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
@@ -112,7 +112,7 @@ class OrganizationsClient {
|
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
114
|
/**
|
|
115
|
-
* Returns whether the organization is in
|
|
115
|
+
* Returns whether the organization is in AgentMail Labs, which turns on features that are still in preview, such as [Agent Armor](https://docs.agentmail.to/agent-armor). Requires an organization-scoped API key.
|
|
116
116
|
*
|
|
117
117
|
* **CLI:**
|
|
118
118
|
* ```bash
|
|
@@ -22,6 +22,18 @@ export interface Organization {
|
|
|
22
22
|
authenticationId?: string;
|
|
23
23
|
/** Authentication provider type. */
|
|
24
24
|
authenticationType?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Time at which the organization was suspended. Absent when it is not suspended. A suspended
|
|
27
|
+
* organization cannot send, but it still receives mail, its webhooks and WebSocket events still
|
|
28
|
+
* fire, and API reads keep working. See [account_suspended](https://docs.agentmail.to/errors#account_suspended).
|
|
29
|
+
*/
|
|
30
|
+
suspendedAt?: Date;
|
|
31
|
+
/**
|
|
32
|
+
* Why the organization is suspended, in a short machine-readable form such as `message.bounced`
|
|
33
|
+
* or `message.complained`. Absent when it is not suspended. Email support@agentmail.cc to resolve
|
|
34
|
+
* a suspension.
|
|
35
|
+
*/
|
|
36
|
+
suspendedReason?: string;
|
|
25
37
|
/** Time at which organization was last updated. */
|
|
26
38
|
updatedAt: Date;
|
|
27
39
|
/** Time at which organization was created. */
|
|
@@ -5,5 +5,9 @@ import type * as AgentMail from "../../../index.js";
|
|
|
5
5
|
* receive events for the whole pod.
|
|
6
6
|
*/
|
|
7
7
|
export interface CreatePodWebhookRequest extends AgentMail.webhooks.CreateInboxWebhookRequest {
|
|
8
|
+
/**
|
|
9
|
+
* Inboxes for which to send events. A webhook can list at most 10 inboxes and pods combined;
|
|
10
|
+
* more returns `403` with `limit_exceeded`.
|
|
11
|
+
*/
|
|
8
12
|
inboxIds?: AgentMail.InboxIds;
|
|
9
13
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Full list of event types this webhook should receive.
|
|
4
|
-
* want in this array (not
|
|
3
|
+
* Full list of event types this webhook should receive. Required: omitting it or sending an empty array
|
|
4
|
+
* returns a `400`, and there is no "all events" default. Send every type you want in this array (not
|
|
5
|
+
* incremental). See [Webhooks overview](https://docs.agentmail.to/webhooks-overview)
|
|
5
6
|
* for spam, blocked, and unauthenticated events and required permissions.
|
|
6
7
|
*/
|
|
7
8
|
export type CreateWebhookEventTypes = AgentMail.EventTypes;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
export interface CreateWebhookRequest extends AgentMail.webhooks.CreatePodWebhookRequest {
|
|
3
3
|
/**
|
|
4
|
-
* Pods for which to send events.
|
|
5
|
-
*
|
|
4
|
+
* Pods for which to send events. A webhook can list at most 10 pods and inboxes combined; more returns
|
|
5
|
+
* `403` with `limit_exceeded`. The webhook receives an event that matches any listed pod or inbox, so a
|
|
6
|
+
* listed pod already covers every inbox in it.
|
|
6
7
|
*/
|
|
7
8
|
podIds?: AgentMail.PodIds;
|
|
8
9
|
}
|
|
@@ -7,10 +7,12 @@ export interface UpdateInboxWebhookRequest {
|
|
|
7
7
|
eventTypes?: AgentMail.webhooks.UpdateWebhookEventTypes;
|
|
8
8
|
/**
|
|
9
9
|
* Set to true to re-enable a webhook that was disabled after repeated failed deliveries, or false
|
|
10
|
-
* to disable it.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
10
|
+
* to disable it. AgentMail does not notify you when a webhook is disabled automatically; check this
|
|
11
|
+
* field when you get or list webhooks. Events that occurred while the webhook was disabled are not
|
|
12
|
+
* redelivered. Re-enabling requires the read permission for every restricted event type the webhook
|
|
13
|
+
* subscribes to: `label_spam_read`, `label_blocked_read`, or `label_unauthenticated_read` for the
|
|
14
|
+
* received variants, `message_read` for `message.security.*`, and `calendar_event_read` for
|
|
15
|
+
* `calendar.event.*`. A webhook with no event type filter is checked against all of them.
|
|
14
16
|
*/
|
|
15
17
|
enabled?: boolean;
|
|
16
18
|
}
|
|
@@ -7,7 +7,8 @@ export interface UpdatePodWebhookRequest extends AgentMail.webhooks.UpdateInboxW
|
|
|
7
7
|
/**
|
|
8
8
|
* Inbox IDs to subscribe to the webhook. This only adds to what the webhook receives: on a webhook
|
|
9
9
|
* that covers its whole pod, it changes nothing. To receive only specific inboxes, create a webhook
|
|
10
|
-
* with `inbox_ids` instead.
|
|
10
|
+
* with `inbox_ids` instead. The webhook can list at most 10 inboxes and pods combined after the
|
|
11
|
+
* update.
|
|
11
12
|
*/
|
|
12
13
|
addInboxIds?: AgentMail.InboxIds;
|
|
13
14
|
/** Inbox IDs to unsubscribe from the webhook. */
|
|
@@ -3,8 +3,8 @@ import type * as AgentMail from "../../../index.js";
|
|
|
3
3
|
* When you send a non-empty list, it replaces the webhook's subscribed event types in full (the same
|
|
4
4
|
* "set the list" behavior as create). It is not a merge or diff: include every event type you want after
|
|
5
5
|
* the update. Sending a one-element array means the webhook will only receive that one type afterward.
|
|
6
|
-
* Omit this field
|
|
7
|
-
*
|
|
6
|
+
* Omit this field to leave event types unchanged. An empty array is rejected with a `400`: a webhook
|
|
7
|
+
* always has at least one event type. Subscribing to `message.received.spam`, `message.received.blocked`, or
|
|
8
8
|
* `message.received.unauthenticated` requires the matching label permission on the API key.
|
|
9
9
|
*/
|
|
10
10
|
export type UpdateWebhookEventTypes = AgentMail.EventTypes;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.js";
|
|
2
2
|
export interface UpdateWebhookRequest extends AgentMail.webhooks.UpdatePodWebhookRequest {
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Pod IDs to subscribe to the webhook. The webhook can list at most 10 pods and inboxes combined
|
|
5
|
+
* after the update.
|
|
6
|
+
*/
|
|
4
7
|
addPodIds?: AgentMail.PodIds;
|
|
5
8
|
/** Pod IDs to unsubscribe from the webhook. */
|
|
6
9
|
removePodIds?: AgentMail.PodIds;
|
|
@@ -18,7 +18,11 @@ export interface Webhook {
|
|
|
18
18
|
inboxId?: string;
|
|
19
19
|
/** Secret for webhook signature verification. */
|
|
20
20
|
secret: string;
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Whether the webhook is enabled. It becomes false when you disable it, and also when deliveries to
|
|
23
|
+
* the URL have failed for 5 days, in which case AgentMail sends no notification. Re-enable it with
|
|
24
|
+
* update and `enabled` set to true.
|
|
25
|
+
*/
|
|
22
26
|
enabled: boolean;
|
|
23
27
|
/** Time at which webhook was last updated. */
|
|
24
28
|
updatedAt: Date;
|
|
@@ -10,6 +10,7 @@ import { InboundEnabled } from "./InboundEnabled.js";
|
|
|
10
10
|
import { Status } from "./Status.js";
|
|
11
11
|
import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
|
|
12
12
|
import { TrackingEnabled } from "./TrackingEnabled.js";
|
|
13
|
+
import { TrackingStatus } from "./TrackingStatus.js";
|
|
13
14
|
import { VerificationRecord } from "./VerificationRecord.js";
|
|
14
15
|
export declare const Domain: core.serialization.ObjectSchema<serializers.Domain.Raw, AgentMail.Domain>;
|
|
15
16
|
export declare namespace Domain {
|
|
@@ -23,6 +24,8 @@ export declare namespace Domain {
|
|
|
23
24
|
inbound_enabled?: InboundEnabled.Raw | null;
|
|
24
25
|
subdomains_enabled: SubdomainsEnabled.Raw;
|
|
25
26
|
tracking_enabled: TrackingEnabled.Raw;
|
|
27
|
+
tracking_status?: TrackingStatus.Raw | null;
|
|
28
|
+
tracking_reason?: string | null;
|
|
26
29
|
records: VerificationRecord.Raw[];
|
|
27
30
|
client_id?: ClientId.Raw | null;
|
|
28
31
|
updated_at: string;
|
|
@@ -45,6 +45,7 @@ const InboundEnabled_js_1 = require("./InboundEnabled.js");
|
|
|
45
45
|
const Status_js_1 = require("./Status.js");
|
|
46
46
|
const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
|
|
47
47
|
const TrackingEnabled_js_1 = require("./TrackingEnabled.js");
|
|
48
|
+
const TrackingStatus_js_1 = require("./TrackingStatus.js");
|
|
48
49
|
const VerificationRecord_js_1 = require("./VerificationRecord.js");
|
|
49
50
|
exports.Domain = core.serialization.object({
|
|
50
51
|
podId: core.serialization.property("pod_id", PodId_js_1.PodId.optional()),
|
|
@@ -56,6 +57,8 @@ exports.Domain = core.serialization.object({
|
|
|
56
57
|
inboundEnabled: core.serialization.property("inbound_enabled", InboundEnabled_js_1.InboundEnabled.optional()),
|
|
57
58
|
subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled),
|
|
58
59
|
trackingEnabled: core.serialization.property("tracking_enabled", TrackingEnabled_js_1.TrackingEnabled),
|
|
60
|
+
trackingStatus: core.serialization.property("tracking_status", TrackingStatus_js_1.TrackingStatus.optional()),
|
|
61
|
+
trackingReason: core.serialization.property("tracking_reason", core.serialization.string().optional()),
|
|
59
62
|
records: core.serialization.list(VerificationRecord_js_1.VerificationRecord),
|
|
60
63
|
clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
|
|
61
64
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const RecordType: core.serialization.Schema<serializers.RecordType.Raw, AgentMail.RecordType>;
|
|
5
5
|
export declare namespace RecordType {
|
|
6
|
-
type Raw = "TXT" | "CNAME" | "MX";
|
|
6
|
+
type Raw = "TXT" | "CNAME" | "MX" | "CAA";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.RecordType = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
exports.RecordType = core.serialization.enum_(["TXT", "CNAME", "MX"]);
|
|
39
|
+
exports.RecordType = core.serialization.enum_(["TXT", "CNAME", "MX", "CAA"]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import type * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { VerificationStatus } from "./VerificationStatus.js";
|
|
5
|
+
export declare const TrackingStatus: core.serialization.Schema<serializers.TrackingStatus.Raw, AgentMail.TrackingStatus>;
|
|
6
|
+
export declare namespace TrackingStatus {
|
|
7
|
+
type Raw = VerificationStatus.Raw;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.TrackingStatus = void 0;
|
|
5
|
+
const VerificationStatus_js_1 = require("./VerificationStatus.js");
|
|
6
|
+
exports.TrackingStatus = VerificationStatus_js_1.VerificationStatus;
|
|
@@ -13,6 +13,7 @@ export * from "./RecordType.js";
|
|
|
13
13
|
export * from "./Status.js";
|
|
14
14
|
export * from "./SubdomainsEnabled.js";
|
|
15
15
|
export * from "./TrackingEnabled.js";
|
|
16
|
+
export * from "./TrackingStatus.js";
|
|
16
17
|
export * from "./UpdateDomainRequest.js";
|
|
17
18
|
export * from "./VerificationRecord.js";
|
|
18
19
|
export * from "./VerificationStatus.js";
|
|
@@ -29,6 +29,7 @@ __exportStar(require("./RecordType.js"), exports);
|
|
|
29
29
|
__exportStar(require("./Status.js"), exports);
|
|
30
30
|
__exportStar(require("./SubdomainsEnabled.js"), exports);
|
|
31
31
|
__exportStar(require("./TrackingEnabled.js"), exports);
|
|
32
|
+
__exportStar(require("./TrackingStatus.js"), exports);
|
|
32
33
|
__exportStar(require("./UpdateDomainRequest.js"), exports);
|
|
33
34
|
__exportStar(require("./VerificationRecord.js"), exports);
|
|
34
35
|
__exportStar(require("./VerificationStatus.js"), exports);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
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
|
-
import { Message } from "../../messages/types/Message.js";
|
|
5
4
|
import { ThreadItem } from "../../threads/types/ThreadItem.js";
|
|
6
5
|
import { EventId } from "./EventId.js";
|
|
7
6
|
import { MessageReceivedEventType } from "./MessageReceivedEventType.js";
|
|
7
|
+
import { ReceivedMessage } from "./ReceivedMessage.js";
|
|
8
8
|
export declare const MessageReceivedEvent: core.serialization.ObjectSchema<serializers.MessageReceivedEvent.Raw, AgentMail.MessageReceivedEvent>;
|
|
9
9
|
export declare namespace MessageReceivedEvent {
|
|
10
10
|
interface Raw {
|
|
11
11
|
type: "event";
|
|
12
12
|
event_type: MessageReceivedEventType.Raw;
|
|
13
13
|
event_id: EventId.Raw;
|
|
14
|
-
message:
|
|
14
|
+
message: ReceivedMessage.Raw;
|
|
15
15
|
thread: ThreadItem.Raw;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -36,14 +36,14 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.MessageReceivedEvent = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
const Message_js_1 = require("../../messages/types/Message.js");
|
|
40
39
|
const ThreadItem_js_1 = require("../../threads/types/ThreadItem.js");
|
|
41
40
|
const EventId_js_1 = require("./EventId.js");
|
|
42
41
|
const MessageReceivedEventType_js_1 = require("./MessageReceivedEventType.js");
|
|
42
|
+
const ReceivedMessage_js_1 = require("./ReceivedMessage.js");
|
|
43
43
|
exports.MessageReceivedEvent = core.serialization.object({
|
|
44
44
|
type: core.serialization.stringLiteral("event"),
|
|
45
45
|
eventType: core.serialization.property("event_type", MessageReceivedEventType_js_1.MessageReceivedEventType),
|
|
46
46
|
eventId: core.serialization.property("event_id", EventId_js_1.EventId),
|
|
47
|
-
message:
|
|
47
|
+
message: ReceivedMessage_js_1.ReceivedMessage,
|
|
48
48
|
thread: ThreadItem_js_1.ThreadItem,
|
|
49
49
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { Message } from "../../messages/types/Message.js";
|
|
5
|
+
export declare const ReceivedMessage: core.serialization.ObjectSchema<serializers.ReceivedMessage.Raw, AgentMail.ReceivedMessage>;
|
|
6
|
+
export declare namespace ReceivedMessage {
|
|
7
|
+
interface Raw extends Message.Raw {
|
|
8
|
+
body_url?: string | null;
|
|
9
|
+
body_expires_at?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ReceivedMessage = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const Message_js_1 = require("../../messages/types/Message.js");
|
|
40
|
+
exports.ReceivedMessage = core.serialization
|
|
41
|
+
.object({
|
|
42
|
+
bodyUrl: core.serialization.property("body_url", core.serialization.string().optional()),
|
|
43
|
+
bodyExpiresAt: core.serialization.property("body_expires_at", core.serialization.date().optional()),
|
|
44
|
+
})
|
|
45
|
+
.extend(Message_js_1.Message);
|
|
@@ -28,6 +28,7 @@ export * from "./MessageSecurityReviewEvent.js";
|
|
|
28
28
|
export * from "./MessageSentEvent.js";
|
|
29
29
|
export * from "./Open.js";
|
|
30
30
|
export * from "./PodIds.js";
|
|
31
|
+
export * from "./ReceivedMessage.js";
|
|
31
32
|
export * from "./Recipient.js";
|
|
32
33
|
export * from "./Reject.js";
|
|
33
34
|
export * from "./Send.js";
|
|
@@ -44,6 +44,7 @@ __exportStar(require("./MessageSecurityReviewEvent.js"), exports);
|
|
|
44
44
|
__exportStar(require("./MessageSentEvent.js"), exports);
|
|
45
45
|
__exportStar(require("./Open.js"), exports);
|
|
46
46
|
__exportStar(require("./PodIds.js"), exports);
|
|
47
|
+
__exportStar(require("./ReceivedMessage.js"), exports);
|
|
47
48
|
__exportStar(require("./Recipient.js"), exports);
|
|
48
49
|
__exportStar(require("./Reject.js"), exports);
|
|
49
50
|
__exportStar(require("./Send.js"), exports);
|
|
@@ -5,6 +5,7 @@ import { AgentArmorResult } from "../../agentArmor/types/AgentArmorResult.js";
|
|
|
5
5
|
import { InboxId } from "../../inboxes/types/InboxId.js";
|
|
6
6
|
import { ThreadId } from "../../threads/types/ThreadId.js";
|
|
7
7
|
import { MessageAttachments } from "./MessageAttachments.js";
|
|
8
|
+
import { MessageAuthenticationResults } from "./MessageAuthenticationResults.js";
|
|
8
9
|
import { MessageBcc } from "./MessageBcc.js";
|
|
9
10
|
import { MessageCalendarEventId } from "./MessageCalendarEventId.js";
|
|
10
11
|
import { MessageCc } from "./MessageCc.js";
|
|
@@ -47,6 +48,7 @@ export declare namespace Message {
|
|
|
47
48
|
calendar_event_id?: MessageCalendarEventId.Raw | null;
|
|
48
49
|
references?: MessageReferences.Raw | null;
|
|
49
50
|
headers?: MessageHeaders.Raw | null;
|
|
51
|
+
authentication_results?: MessageAuthenticationResults.Raw | null;
|
|
50
52
|
agent_armor?: AgentArmorResult.Raw | null;
|
|
51
53
|
size: MessageSize.Raw;
|
|
52
54
|
updated_at: MessageUpdatedAt.Raw;
|
|
@@ -40,6 +40,7 @@ const AgentArmorResult_js_1 = require("../../agentArmor/types/AgentArmorResult.j
|
|
|
40
40
|
const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
|
|
41
41
|
const ThreadId_js_1 = require("../../threads/types/ThreadId.js");
|
|
42
42
|
const MessageAttachments_js_1 = require("./MessageAttachments.js");
|
|
43
|
+
const MessageAuthenticationResults_js_1 = require("./MessageAuthenticationResults.js");
|
|
43
44
|
const MessageBcc_js_1 = require("./MessageBcc.js");
|
|
44
45
|
const MessageCalendarEventId_js_1 = require("./MessageCalendarEventId.js");
|
|
45
46
|
const MessageCc_js_1 = require("./MessageCc.js");
|
|
@@ -80,6 +81,7 @@ exports.Message = core.serialization.object({
|
|
|
80
81
|
calendarEventId: core.serialization.property("calendar_event_id", MessageCalendarEventId_js_1.MessageCalendarEventId.optional()),
|
|
81
82
|
references: MessageReferences_js_1.MessageReferences.optional(),
|
|
82
83
|
headers: MessageHeaders_js_1.MessageHeaders.optional(),
|
|
84
|
+
authenticationResults: core.serialization.property("authentication_results", MessageAuthenticationResults_js_1.MessageAuthenticationResults.optional()),
|
|
83
85
|
agentArmor: core.serialization.property("agent_armor", AgentArmorResult_js_1.AgentArmorResult.optional()),
|
|
84
86
|
size: MessageSize_js_1.MessageSize,
|
|
85
87
|
updatedAt: core.serialization.property("updated_at", MessageUpdatedAt_js_1.MessageUpdatedAt),
|
|
@@ -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 MessageAuthenticationDomain: core.serialization.Schema<serializers.MessageAuthenticationDomain.Raw, AgentMail.MessageAuthenticationDomain>;
|
|
5
|
+
export declare namespace MessageAuthenticationDomain {
|
|
6
|
+
type Raw = string;
|
|
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.MessageAuthenticationDomain = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.MessageAuthenticationDomain = core.serialization.string();
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
import { MessageAuthenticationDomain } from "./MessageAuthenticationDomain.js";
|
|
5
|
+
import { MessageAuthenticationVerdict } from "./MessageAuthenticationVerdict.js";
|
|
6
|
+
export declare const MessageAuthenticationResults: core.serialization.ObjectSchema<serializers.MessageAuthenticationResults.Raw, AgentMail.MessageAuthenticationResults>;
|
|
7
|
+
export declare namespace MessageAuthenticationResults {
|
|
8
|
+
interface Raw {
|
|
9
|
+
spf?: MessageAuthenticationVerdict.Raw | null;
|
|
10
|
+
dkim?: MessageAuthenticationVerdict.Raw | null;
|
|
11
|
+
dmarc?: MessageAuthenticationVerdict.Raw | null;
|
|
12
|
+
spf_domain?: MessageAuthenticationDomain.Raw | null;
|
|
13
|
+
dkim_domain?: MessageAuthenticationDomain.Raw | null;
|
|
14
|
+
dmarc_domain?: MessageAuthenticationDomain.Raw | null;
|
|
15
|
+
arc_sealer?: MessageAuthenticationDomain.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.MessageAuthenticationResults = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const MessageAuthenticationDomain_js_1 = require("./MessageAuthenticationDomain.js");
|
|
40
|
+
const MessageAuthenticationVerdict_js_1 = require("./MessageAuthenticationVerdict.js");
|
|
41
|
+
exports.MessageAuthenticationResults = core.serialization.object({
|
|
42
|
+
spf: MessageAuthenticationVerdict_js_1.MessageAuthenticationVerdict.optional(),
|
|
43
|
+
dkim: MessageAuthenticationVerdict_js_1.MessageAuthenticationVerdict.optional(),
|
|
44
|
+
dmarc: MessageAuthenticationVerdict_js_1.MessageAuthenticationVerdict.optional(),
|
|
45
|
+
spfDomain: core.serialization.property("spf_domain", MessageAuthenticationDomain_js_1.MessageAuthenticationDomain.optional()),
|
|
46
|
+
dkimDomain: core.serialization.property("dkim_domain", MessageAuthenticationDomain_js_1.MessageAuthenticationDomain.optional()),
|
|
47
|
+
dmarcDomain: core.serialization.property("dmarc_domain", MessageAuthenticationDomain_js_1.MessageAuthenticationDomain.optional()),
|
|
48
|
+
arcSealer: core.serialization.property("arc_sealer", MessageAuthenticationDomain_js_1.MessageAuthenticationDomain.optional()),
|
|
49
|
+
});
|
|
@@ -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 MessageAuthenticationVerdict: core.serialization.Schema<serializers.MessageAuthenticationVerdict.Raw, AgentMail.MessageAuthenticationVerdict>;
|
|
5
|
+
export declare namespace MessageAuthenticationVerdict {
|
|
6
|
+
type Raw = "pass" | "fail" | "none" | "neutral" | "softfail" | "temperror" | "permerror";
|
|
7
|
+
}
|