agentmail 0.5.46 → 0.5.48
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/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/inboxes/client/Client.js +2 -1
- 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/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/types/Inbox.d.ts +5 -0
- package/dist/cjs/api/resources/inboxes/types/PauseAt.d.ts +7 -0
- package/dist/cjs/api/resources/inboxes/types/PauseAt.js +3 -0
- package/dist/cjs/api/resources/inboxes/types/UpdateInboxRequest.d.ts +7 -1
- package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
- 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/inboxes/types/CreateInboxRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/CreateInboxRequest.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/Inbox.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/Inbox.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/PauseAt.d.ts +7 -0
- package/dist/cjs/serialization/resources/inboxes/types/PauseAt.js +39 -0
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/UpdateInboxRequest.js +2 -0
- package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/inboxes/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/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/inboxes/client/Client.mjs +2 -1
- 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/inboxes/types/CreateInboxRequest.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/types/Inbox.d.mts +5 -0
- package/dist/esm/api/resources/inboxes/types/PauseAt.d.mts +7 -0
- package/dist/esm/api/resources/inboxes/types/PauseAt.mjs +2 -0
- package/dist/esm/api/resources/inboxes/types/UpdateInboxRequest.d.mts +7 -1
- package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
- 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/inboxes/types/CreateInboxRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/CreateInboxRequest.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/Inbox.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/Inbox.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/PauseAt.d.mts +7 -0
- package/dist/esm/serialization/resources/inboxes/types/PauseAt.mjs +3 -0
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/inboxes/types/UpdateInboxRequest.mjs +2 -0
- package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
- package/dist/esm/serialization/resources/inboxes/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 +29 -28
|
@@ -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.PauseAt = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.PauseAt = core.serialization.date();
|
|
@@ -3,12 +3,14 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
import { DisplayName } from "./DisplayName.js";
|
|
5
5
|
import { InboxStatus } from "./InboxStatus.js";
|
|
6
|
+
import { PauseAt } from "./PauseAt.js";
|
|
6
7
|
import { UpdateMetadata } from "./UpdateMetadata.js";
|
|
7
8
|
export declare const UpdateInboxRequest: core.serialization.ObjectSchema<serializers.inboxes.UpdateInboxRequest.Raw, AgentMail.inboxes.UpdateInboxRequest>;
|
|
8
9
|
export declare namespace UpdateInboxRequest {
|
|
9
10
|
interface Raw {
|
|
10
11
|
display_name?: DisplayName.Raw | null;
|
|
11
12
|
status?: InboxStatus.Raw | null;
|
|
13
|
+
pause_at?: (PauseAt.Raw | null | undefined) | null;
|
|
12
14
|
metadata?: (UpdateMetadata.Raw | null | undefined) | null;
|
|
13
15
|
}
|
|
14
16
|
}
|
|
@@ -38,9 +38,11 @@ exports.UpdateInboxRequest = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
const DisplayName_js_1 = require("./DisplayName.js");
|
|
40
40
|
const InboxStatus_js_1 = require("./InboxStatus.js");
|
|
41
|
+
const PauseAt_js_1 = require("./PauseAt.js");
|
|
41
42
|
const UpdateMetadata_js_1 = require("./UpdateMetadata.js");
|
|
42
43
|
exports.UpdateInboxRequest = core.serialization.object({
|
|
43
44
|
displayName: core.serialization.property("display_name", DisplayName_js_1.DisplayName.optional()),
|
|
44
45
|
status: InboxStatus_js_1.InboxStatus.optional(),
|
|
46
|
+
pauseAt: core.serialization.property("pause_at", PauseAt_js_1.PauseAt.optionalNullable()),
|
|
45
47
|
metadata: UpdateMetadata_js_1.UpdateMetadata.optionalNullable(),
|
|
46
48
|
});
|
|
@@ -10,6 +10,7 @@ export * from "./InboxStatus.js";
|
|
|
10
10
|
export * from "./ListInboxesResponse.js";
|
|
11
11
|
export * from "./Metadata.js";
|
|
12
12
|
export * from "./MetadataValue.js";
|
|
13
|
+
export * from "./PauseAt.js";
|
|
13
14
|
export * from "./SearchInboxesResponse.js";
|
|
14
15
|
export * from "./UpdateInboxRequest.js";
|
|
15
16
|
export * from "./UpdateMetadata.js";
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./InboxStatus.js"), exports);
|
|
|
26
26
|
__exportStar(require("./ListInboxesResponse.js"), exports);
|
|
27
27
|
__exportStar(require("./Metadata.js"), exports);
|
|
28
28
|
__exportStar(require("./MetadataValue.js"), exports);
|
|
29
|
+
__exportStar(require("./PauseAt.js"), exports);
|
|
29
30
|
__exportStar(require("./SearchInboxesResponse.js"), exports);
|
|
30
31
|
__exportStar(require("./UpdateInboxRequest.js"), exports);
|
|
31
32
|
__exportStar(require("./UpdateMetadata.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
|
+
}
|
|
@@ -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.MessageAuthenticationVerdict = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.MessageAuthenticationVerdict = core.serialization.enum_(["pass", "fail", "none", "neutral", "softfail", "temperror", "permerror"]);
|
|
@@ -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";
|
|
@@ -40,6 +41,7 @@ export declare namespace MessageItem {
|
|
|
40
41
|
calendar_event_id?: MessageCalendarEventId.Raw | null;
|
|
41
42
|
references?: MessageReferences.Raw | null;
|
|
42
43
|
headers?: MessageHeaders.Raw | null;
|
|
44
|
+
authentication_results?: MessageAuthenticationResults.Raw | null;
|
|
43
45
|
agent_armor?: AgentArmorResult.Raw | null;
|
|
44
46
|
size: MessageSize.Raw;
|
|
45
47
|
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");
|
|
@@ -73,6 +74,7 @@ exports.MessageItem = core.serialization.object({
|
|
|
73
74
|
calendarEventId: core.serialization.property("calendar_event_id", MessageCalendarEventId_js_1.MessageCalendarEventId.optional()),
|
|
74
75
|
references: MessageReferences_js_1.MessageReferences.optional(),
|
|
75
76
|
headers: MessageHeaders_js_1.MessageHeaders.optional(),
|
|
77
|
+
authenticationResults: core.serialization.property("authentication_results", MessageAuthenticationResults_js_1.MessageAuthenticationResults.optional()),
|
|
76
78
|
agentArmor: core.serialization.property("agent_armor", AgentArmorResult_js_1.AgentArmorResult.optional()),
|
|
77
79
|
size: MessageSize_js_1.MessageSize,
|
|
78
80
|
updatedAt: core.serialization.property("updated_at", MessageUpdatedAt_js_1.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);
|
|
@@ -15,6 +15,8 @@ export declare namespace Organization {
|
|
|
15
15
|
billing_subscription_id?: string | null;
|
|
16
16
|
authentication_id?: string | null;
|
|
17
17
|
authentication_type?: string | null;
|
|
18
|
+
suspended_at?: string | null;
|
|
19
|
+
suspended_reason?: string | null;
|
|
18
20
|
updated_at: string;
|
|
19
21
|
created_at: string;
|
|
20
22
|
}
|
|
@@ -48,6 +48,8 @@ exports.Organization = core.serialization.object({
|
|
|
48
48
|
billingSubscriptionId: core.serialization.property("billing_subscription_id", core.serialization.string().optional()),
|
|
49
49
|
authenticationId: core.serialization.property("authentication_id", core.serialization.string().optional()),
|
|
50
50
|
authenticationType: core.serialization.property("authentication_type", core.serialization.string().optional()),
|
|
51
|
+
suspendedAt: core.serialization.property("suspended_at", core.serialization.date().optional()),
|
|
52
|
+
suspendedReason: core.serialization.property("suspended_reason", core.serialization.string().optional()),
|
|
51
53
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
52
54
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
53
55
|
});
|
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.48";
|
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.48",
|
|
10
|
+
"User-Agent": "agentmail/0.5.48",
|
|
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);
|
|
@@ -15,6 +15,8 @@ export declare class AgentClient {
|
|
|
15
15
|
*
|
|
16
16
|
* A 6-digit OTP is sent to the human's email for verification.
|
|
17
17
|
*
|
|
18
|
+
* The new organization starts with 1 inbox, no custom domains, and 10 emails per day, which can be sent only to `human_email` until the organization is verified.
|
|
19
|
+
*
|
|
18
20
|
* `human_email` is optional. Without it, the inbox can receive email but cannot send to anyone until a human is attached with the attach human endpoint or, for a US-region inbox, claims it in the AgentMail Console with the API key (see [How do I claim my agent's inbox?](https://docs.agentmail.to/knowledge-base/claiming-agent-inbox)). There is also no way to recover the API key, so store it durably. Calling sign-up again without `human_email` creates a new organization, which needs a different `username`: the original username stays with the lost organization's inbox.
|
|
19
21
|
*
|
|
20
22
|
* This endpoint is idempotent. Calling it again with the same `human_email` will rotate the API key and resend the OTP if expired.
|
|
@@ -70,7 +72,7 @@ export declare class AgentClient {
|
|
|
70
72
|
/**
|
|
71
73
|
* Verify an agent organization using the 6-digit OTP sent to the human's email during sign-up.
|
|
72
74
|
*
|
|
73
|
-
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and
|
|
75
|
+
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and the Free plan's entitlements are applied: 3 inboxes and 100 emails per day, at first to at most 3 distinct recipients in the first hour, 5 in the first day, and 10 in the first week.
|
|
74
76
|
*
|
|
75
77
|
* The OTP expires after 24 hours and allows a maximum of 10 attempts. If the OTP expired, call the attach human endpoint with the same `human_email` to get a new one without rotating the API key. Once all 10 attempts are used, even the correct OTP is rejected, and attach human keeps returning the same OTP until it expires, so wait for it to expire before asking for a new one. An organization that signed up without a `human_email` has no OTP until a human is attached. If you run into any difficulties receiving the OTP code, you can also create an account on [console.agentmail.to](https://console.agentmail.to) using the human email address you provided to verify your account.
|
|
76
78
|
*
|
|
@@ -25,6 +25,8 @@ export class AgentClient {
|
|
|
25
25
|
*
|
|
26
26
|
* A 6-digit OTP is sent to the human's email for verification.
|
|
27
27
|
*
|
|
28
|
+
* The new organization starts with 1 inbox, no custom domains, and 10 emails per day, which can be sent only to `human_email` until the organization is verified.
|
|
29
|
+
*
|
|
28
30
|
* `human_email` is optional. Without it, the inbox can receive email but cannot send to anyone until a human is attached with the attach human endpoint or, for a US-region inbox, claims it in the AgentMail Console with the API key (see [How do I claim my agent's inbox?](https://docs.agentmail.to/knowledge-base/claiming-agent-inbox)). There is also no way to recover the API key, so store it durably. Calling sign-up again without `human_email` creates a new organization, which needs a different `username`: the original username stays with the lost organization's inbox.
|
|
29
31
|
*
|
|
30
32
|
* This endpoint is idempotent. Calling it again with the same `human_email` will rotate the API key and resend the OTP if expired.
|
|
@@ -201,7 +203,7 @@ export class AgentClient {
|
|
|
201
203
|
/**
|
|
202
204
|
* Verify an agent organization using the 6-digit OTP sent to the human's email during sign-up.
|
|
203
205
|
*
|
|
204
|
-
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and
|
|
206
|
+
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and the Free plan's entitlements are applied: 3 inboxes and 100 emails per day, at first to at most 3 distinct recipients in the first hour, 5 in the first day, and 10 in the first week.
|
|
205
207
|
*
|
|
206
208
|
* The OTP expires after 24 hours and allows a maximum of 10 attempts. If the OTP expired, call the attach human endpoint with the same `human_email` to get a new one without rotating the API key. Once all 10 attempts are used, even the correct OTP is rejected, and attach human keeps returning the same OTP until it expires, so wait for it to expire before asking for a new one. An organization that signed up without a `human_email` has no OTP until a human is attached. If you run into any difficulties receiving the OTP code, you can also create an account on [console.agentmail.to](https://console.agentmail.to) using the human email address you provided to verify your account.
|
|
207
209
|
*
|
|
@@ -110,12 +110,12 @@ export interface ApiKeyPermissions {
|
|
|
110
110
|
calendarEventUpdate?: boolean;
|
|
111
111
|
/** Delete calendar events. */
|
|
112
112
|
calendarEventDelete?: boolean;
|
|
113
|
-
/**
|
|
113
|
+
/** Reserved; not released yet. */
|
|
114
114
|
fileRead?: boolean;
|
|
115
|
-
/**
|
|
115
|
+
/** Reserved; not released yet. */
|
|
116
116
|
fileCreate?: boolean;
|
|
117
|
-
/**
|
|
117
|
+
/** Reserved; not released yet. */
|
|
118
118
|
fileUpdate?: boolean;
|
|
119
|
-
/**
|
|
119
|
+
/** Reserved; not released yet. */
|
|
120
120
|
fileDelete?: boolean;
|
|
121
121
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* IANA time zone name, for example `America/New_York`, `Europe/London` or `UTC`. Requests accept
|
|
3
|
+
* any capitalization and IANA aliases such as `US/Eastern`. The calendar stores and returns the
|
|
4
|
+
* canonical name, which for some zones is an older spelling: `Asia/Kolkata` is returned as
|
|
5
|
+
* `Asia/Calcutta`. Abbreviations such as `PST` and Windows names such as `Pacific Standard Time`
|
|
6
|
+
* are rejected.
|
|
5
7
|
*/
|
|
6
8
|
export type IanaTimezone = string;
|
|
@@ -4,17 +4,24 @@ export interface Domain {
|
|
|
4
4
|
domainId: AgentMail.DomainId;
|
|
5
5
|
domain: AgentMail.DomainName;
|
|
6
6
|
status: AgentMail.Status;
|
|
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 `
|
|
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), `ses_not_verified_for_sending`, and `tracking_certificate_failed` (the certificate for the open tracking `link.` subdomain was refused; fix CAA or DNS, then turn tracking off and back on). Absent when VERIFIED. */
|
|
8
8
|
reason?: string;
|
|
9
9
|
feedbackEnabled: AgentMail.FeedbackEnabled;
|
|
10
10
|
/** Absent on domains created before this field existed; those receive email. */
|
|
11
11
|
inboundEnabled?: AgentMail.InboundEnabled;
|
|
12
12
|
subdomainsEnabled: AgentMail.SubdomainsEnabled;
|
|
13
13
|
trackingEnabled: AgentMail.TrackingEnabled;
|
|
14
|
+
/** Present when `tracking_enabled` is true. */
|
|
15
|
+
trackingStatus?: AgentMail.TrackingStatus;
|
|
16
|
+
/** Why open tracking is not (yet) VERIFIED, when known. `dns_records_missing` / `dns_records_invalid` point at the `link.<domain>` CNAME. `caa_blocked` means the domain's CAA records leave Amazon out: add the `CAA` record listed in `records`, and AgentMail retries the certificate on its own within a few minutes. `certificate_failed` means the certificate was refused; fix the DNS, then turn tracking off and back on. Absent when `tracking_status` is VERIFIED. */
|
|
17
|
+
trackingReason?: string;
|
|
14
18
|
/**
|
|
15
|
-
* A list of DNS records
|
|
16
|
-
*
|
|
17
|
-
*
|
|
19
|
+
* A list of DNS records for the domain. Includes the apex MX record unless
|
|
20
|
+
* `inbound_enabled` is false, and a wildcard MX record (`*.<domain>`) when
|
|
21
|
+
* `subdomains_enabled` is true. When `tracking_enabled` is true it also lists
|
|
22
|
+
* the `link.<domain>` CNAME and, if the domain's CAA records restrict
|
|
23
|
+
* issuance, a `CAA` record. Those two are for open tracking only: they
|
|
24
|
+
* feed `tracking_status` and do not affect `status`.
|
|
18
25
|
*/
|
|
19
26
|
records: AgentMail.VerificationRecord[];
|
|
20
27
|
clientId?: AgentMail.ClientId;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Serve open tracking pixels from this domain. Adds a
|
|
3
|
-
*
|
|
4
|
-
* `
|
|
2
|
+
* Serve open tracking pixels from this domain. Adds a `link.<domain>` CNAME
|
|
3
|
+
* record to `records`. Open tracking reports its readiness in `tracking_status`
|
|
4
|
+
* and never changes the domain's `status`. Sends with `track_opens` are accepted
|
|
5
|
+
* once `tracking_status` is `VERIFIED`.
|
|
5
6
|
*/
|
|
6
7
|
export type TrackingEnabled = boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Whether open tracking is ready on this domain, independent of the domain's
|
|
4
|
+
* `status`. `PENDING`: the `link.<domain>` CNAME is not published yet.
|
|
5
|
+
* `INVALID`: the CNAME is wrong, or the domain's CAA records do not allow
|
|
6
|
+
* Amazon to issue its certificate. `VERIFYING`: the certificate is being
|
|
7
|
+
* issued. `VERIFIED`: `track_opens` can be used. `FAILED`: the certificate was
|
|
8
|
+
* refused; turn tracking off and back on to request a new one.
|
|
9
|
+
*/
|
|
10
|
+
export type TrackingStatus = AgentMail.VerificationStatus;
|
|
@@ -5,7 +5,8 @@ import type * as AgentMail from "../../../index.mjs";
|
|
|
5
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
7
|
* newly required MX record (the apex MX, or the wildcard `*.<domain>`) is
|
|
8
|
-
* published and verified.
|
|
8
|
+
* published and verified. Enabling `tracking_enabled` leaves `status` as it is
|
|
9
|
+
* and starts `tracking_status` at `PENDING`.
|
|
9
10
|
*/
|
|
10
11
|
export interface UpdateDomainRequest {
|
|
11
12
|
feedbackEnabled?: AgentMail.FeedbackEnabled;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../index.mjs";
|
|
2
2
|
export interface VerificationRecord {
|
|
3
|
-
/** The type of the DNS record. */
|
|
3
|
+
/** The type of the DNS record. A `CAA` record is listed only when open tracking is on and the domain's CAA records restrict which certificate authorities may issue for it: add it next to the existing CAA records, not in place of them. */
|
|
4
4
|
type: AgentMail.RecordType;
|
|
5
5
|
/** The name or host of the record. */
|
|
6
6
|
name: string;
|
|
@@ -13,6 +13,7 @@ export * from "./RecordType.mjs";
|
|
|
13
13
|
export * from "./Status.mjs";
|
|
14
14
|
export * from "./SubdomainsEnabled.mjs";
|
|
15
15
|
export * from "./TrackingEnabled.mjs";
|
|
16
|
+
export * from "./TrackingStatus.mjs";
|
|
16
17
|
export * from "./UpdateDomainRequest.mjs";
|
|
17
18
|
export * from "./VerificationRecord.mjs";
|
|
18
19
|
export * from "./VerificationStatus.mjs";
|
|
@@ -13,6 +13,7 @@ export * from "./RecordType.mjs";
|
|
|
13
13
|
export * from "./Status.mjs";
|
|
14
14
|
export * from "./SubdomainsEnabled.mjs";
|
|
15
15
|
export * from "./TrackingEnabled.mjs";
|
|
16
|
+
export * from "./TrackingStatus.mjs";
|
|
16
17
|
export * from "./UpdateDomainRequest.mjs";
|
|
17
18
|
export * from "./VerificationRecord.mjs";
|
|
18
19
|
export * from "./VerificationStatus.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ID of event.
|
|
2
|
+
* ID of the event. It is the same on every retry and redelivery of the event and on every webhook
|
|
3
|
+
* or WebSocket subscription that receives it, so use it to deduplicate. The format varies by event
|
|
4
|
+
* type; treat it as an opaque string.
|
|
3
5
|
*/
|
|
4
6
|
export type EventId = string;
|