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
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.5.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
46
|
+
"X-Fern-SDK-Version": "0.5.48",
|
|
47
|
+
"User-Agent": "agentmail/0.5.48",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -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
|
*
|
|
@@ -61,6 +61,8 @@ class AgentClient {
|
|
|
61
61
|
*
|
|
62
62
|
* A 6-digit OTP is sent to the human's email for verification.
|
|
63
63
|
*
|
|
64
|
+
* 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.
|
|
65
|
+
*
|
|
64
66
|
* `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.
|
|
65
67
|
*
|
|
66
68
|
* This endpoint is idempotent. Calling it again with the same `human_email` will rotate the API key and resend the OTP if expired.
|
|
@@ -237,7 +239,7 @@ class AgentClient {
|
|
|
237
239
|
/**
|
|
238
240
|
* Verify an agent organization using the 6-digit OTP sent to the human's email during sign-up.
|
|
239
241
|
*
|
|
240
|
-
* On success, the organization is upgraded from `agent_unverified` to `agent_verified`, the send allowlist is removed, and
|
|
242
|
+
* 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.
|
|
241
243
|
*
|
|
242
244
|
* 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.
|
|
243
245
|
*
|
|
@@ -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.js";
|
|
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.js";
|
|
|
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.js";
|
|
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.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,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;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The received message. The body (`text`, `html`, `extracted_text`, and `extracted_html`) is included
|
|
4
|
+
* inline only when it is small enough. Webhooks omit it when the stored body is larger than 64 KiB;
|
|
5
|
+
* WebSocket events also omit it when the serialized event would be larger than 30 KiB. When the body
|
|
6
|
+
* is omitted, `body_url` and `body_expires_at` are set instead.
|
|
7
|
+
*/
|
|
8
|
+
export interface ReceivedMessage extends AgentMail.Message {
|
|
9
|
+
/**
|
|
10
|
+
* Pre-signed URL that downloads the stored body as a JSON object including `text`, `html`,
|
|
11
|
+
* `extracted_text`, and `extracted_html`. Present only when the body is omitted from the event.
|
|
12
|
+
* Valid until `body_expires_at`, one hour after the event was built. The body stays available
|
|
13
|
+
* through the get message endpoint after the URL expires.
|
|
14
|
+
*/
|
|
15
|
+
bodyUrl?: string;
|
|
16
|
+
/** Time at which `body_url` expires. Present only with `body_url`. */
|
|
17
|
+
bodyExpiresAt?: Date;
|
|
18
|
+
}
|
|
@@ -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);
|
|
@@ -117,7 +117,8 @@ export declare class InboxesClient {
|
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* To pause an inbox, set `status` to `paused`; set it back to `active` to
|
|
120
|
-
* resume.
|
|
120
|
+
* resume. To pause it later, set `pause_at`. See
|
|
121
|
+
* [Pausing an inbox](/inboxes#pausing-an-inbox).
|
|
121
122
|
*
|
|
122
123
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
123
124
|
* @param {AgentMail.inboxes.UpdateInboxRequest} request
|
|
@@ -404,7 +404,8 @@ class InboxesClient {
|
|
|
404
404
|
* ```
|
|
405
405
|
*
|
|
406
406
|
* To pause an inbox, set `status` to `paused`; set it back to `active` to
|
|
407
|
-
* resume.
|
|
407
|
+
* resume. To pause it later, set `pause_at`. See
|
|
408
|
+
* [Pausing an inbox](/inboxes#pausing-an-inbox).
|
|
408
409
|
*
|
|
409
410
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
410
411
|
* @param {AgentMail.inboxes.UpdateInboxRequest} request
|
|
@@ -17,9 +17,8 @@ export declare class CalendarClient {
|
|
|
17
17
|
* created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
|
|
18
18
|
* make an update conditional.
|
|
19
19
|
*
|
|
20
|
-
* Requires the `calendar_read` permission. Calendar is
|
|
21
|
-
* but not yet in EU production (`api.agentmail.eu`)
|
|
22
|
-
* Labs receive a `403`.
|
|
20
|
+
* Requires the `calendar_read` permission. Calendar is available in US production
|
|
21
|
+
* (`api.agentmail.to`) but not yet in EU production (`api.agentmail.eu`), which returns `403`.
|
|
23
22
|
*
|
|
24
23
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
25
24
|
* @param {AgentMail.inboxes.GetCalendarRequest} request
|
|
@@ -44,8 +43,8 @@ export declare class CalendarClient {
|
|
|
44
43
|
* calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
|
|
45
44
|
* update applies to the calendar as it is.
|
|
46
45
|
*
|
|
47
|
-
* Calendar is
|
|
48
|
-
*
|
|
46
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
47
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
49
48
|
*
|
|
50
49
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
51
50
|
* @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
|
|
@@ -77,8 +76,8 @@ export declare class CalendarClient {
|
|
|
77
76
|
* The list is always read in the region that serves the request, so it can trail a change made
|
|
78
77
|
* moments earlier by a few seconds. Requires the `calendar_event_read` permission.
|
|
79
78
|
*
|
|
80
|
-
* Calendar is
|
|
81
|
-
*
|
|
79
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
80
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
82
81
|
*
|
|
83
82
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
84
83
|
* @param {AgentMail.inboxes.ListCalendarEventsRequest} request
|
|
@@ -115,8 +114,8 @@ export declare class CalendarClient {
|
|
|
115
114
|
* moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
|
|
116
115
|
* away. Requires the `calendar_event_read` permission.
|
|
117
116
|
*
|
|
118
|
-
* Calendar is
|
|
119
|
-
*
|
|
117
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
118
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
120
119
|
*
|
|
121
120
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
122
121
|
* @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
|
|
@@ -158,8 +157,8 @@ export declare class CalendarClient {
|
|
|
158
157
|
* The event's `etag` is the value to send in `If-Match` to make a later update or delete
|
|
159
158
|
* conditional. Requires the `calendar_event_create` permission.
|
|
160
159
|
*
|
|
161
|
-
* Calendar is
|
|
162
|
-
*
|
|
160
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
161
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
163
162
|
*
|
|
164
163
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
165
164
|
* @param {AgentMail.CreateCalendarEventRequest} request
|
|
@@ -220,8 +219,8 @@ export declare class CalendarClient {
|
|
|
220
219
|
* reads back as it ran, even if a later change to the series no longer produces it. Requires
|
|
221
220
|
* the `calendar_event_read` permission.
|
|
222
221
|
*
|
|
223
|
-
* Calendar is
|
|
224
|
-
*
|
|
222
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
223
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
225
224
|
*
|
|
226
225
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
227
226
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -269,8 +268,8 @@ export declare class CalendarClient {
|
|
|
269
268
|
* send limits, charged before the change is saved; an over-limit request returns `429`
|
|
270
269
|
* `rate_limit_exceeded` and changes nothing.
|
|
271
270
|
*
|
|
272
|
-
* Calendar is
|
|
273
|
-
*
|
|
271
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
272
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
274
273
|
*
|
|
275
274
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
276
275
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -327,8 +326,8 @@ export declare class CalendarClient {
|
|
|
327
326
|
* send limits, charged before the delete; an over-limit request returns `429`
|
|
328
327
|
* `rate_limit_exceeded` and deletes nothing.
|
|
329
328
|
*
|
|
330
|
-
* Calendar is
|
|
331
|
-
*
|
|
329
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
330
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
332
331
|
*
|
|
333
332
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
334
333
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -368,8 +367,8 @@ export declare class CalendarClient {
|
|
|
368
367
|
* trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
|
|
369
368
|
* your own change right away. Requires the `calendar_event_read` permission.
|
|
370
369
|
*
|
|
371
|
-
* Calendar is
|
|
372
|
-
*
|
|
370
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
371
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
373
372
|
*
|
|
374
373
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
375
374
|
* @param {string} event_id - UUID of the recurring event.
|
|
@@ -407,8 +406,8 @@ export declare class CalendarClient {
|
|
|
407
406
|
* charged before the response is saved; an over-limit request returns `429`
|
|
408
407
|
* `rate_limit_exceeded` and changes nothing.
|
|
409
408
|
*
|
|
410
|
-
* Calendar is
|
|
411
|
-
*
|
|
409
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
410
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
412
411
|
*
|
|
413
412
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
414
413
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -74,9 +74,8 @@ class CalendarClient {
|
|
|
74
74
|
* created. Its `etag` (also the `ETag` response header) is the value to send in `If-Match` to
|
|
75
75
|
* make an update conditional.
|
|
76
76
|
*
|
|
77
|
-
* Requires the `calendar_read` permission. Calendar is
|
|
78
|
-
* but not yet in EU production (`api.agentmail.eu`)
|
|
79
|
-
* Labs receive a `403`.
|
|
77
|
+
* Requires the `calendar_read` permission. Calendar is available in US production
|
|
78
|
+
* (`api.agentmail.to`) but not yet in EU production (`api.agentmail.eu`), which returns `403`.
|
|
80
79
|
*
|
|
81
80
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
82
81
|
* @param {AgentMail.inboxes.GetCalendarRequest} request
|
|
@@ -177,8 +176,8 @@ class CalendarClient {
|
|
|
177
176
|
* calendar's current `etag` in `If-Match`: a stale value returns `412`. Without `If-Match` the
|
|
178
177
|
* update applies to the calendar as it is.
|
|
179
178
|
*
|
|
180
|
-
* Calendar is
|
|
181
|
-
*
|
|
179
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
180
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
182
181
|
*
|
|
183
182
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
184
183
|
* @param {AgentMail.inboxes.UpdateCalendarRequestWrapper} request
|
|
@@ -308,8 +307,8 @@ class CalendarClient {
|
|
|
308
307
|
* The list is always read in the region that serves the request, so it can trail a change made
|
|
309
308
|
* moments earlier by a few seconds. Requires the `calendar_event_read` permission.
|
|
310
309
|
*
|
|
311
|
-
* Calendar is
|
|
312
|
-
*
|
|
310
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
311
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
313
312
|
*
|
|
314
313
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
315
314
|
* @param {AgentMail.inboxes.ListCalendarEventsRequest} request
|
|
@@ -418,8 +417,8 @@ class CalendarClient {
|
|
|
418
417
|
* moments earlier by a few seconds. Pass `consistency=primary` to read your own change right
|
|
419
418
|
* away. Requires the `calendar_event_read` permission.
|
|
420
419
|
*
|
|
421
|
-
* Calendar is
|
|
422
|
-
*
|
|
420
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
421
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
423
422
|
*
|
|
424
423
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
425
424
|
* @param {AgentMail.inboxes.GetCalendarAgendaRequest} request
|
|
@@ -552,8 +551,8 @@ class CalendarClient {
|
|
|
552
551
|
* The event's `etag` is the value to send in `If-Match` to make a later update or delete
|
|
553
552
|
* conditional. Requires the `calendar_event_create` permission.
|
|
554
553
|
*
|
|
555
|
-
* Calendar is
|
|
556
|
-
*
|
|
554
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
555
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
557
556
|
*
|
|
558
557
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
559
558
|
* @param {AgentMail.CreateCalendarEventRequest} request
|
|
@@ -711,8 +710,8 @@ class CalendarClient {
|
|
|
711
710
|
* reads back as it ran, even if a later change to the series no longer produces it. Requires
|
|
712
711
|
* the `calendar_event_read` permission.
|
|
713
712
|
*
|
|
714
|
-
* Calendar is
|
|
715
|
-
*
|
|
713
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
714
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
716
715
|
*
|
|
717
716
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
718
717
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -844,8 +843,8 @@ class CalendarClient {
|
|
|
844
843
|
* send limits, charged before the change is saved; an over-limit request returns `429`
|
|
845
844
|
* `rate_limit_exceeded` and changes nothing.
|
|
846
845
|
*
|
|
847
|
-
* Calendar is
|
|
848
|
-
*
|
|
846
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
847
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
849
848
|
*
|
|
850
849
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
851
850
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -1024,8 +1023,8 @@ class CalendarClient {
|
|
|
1024
1023
|
* send limits, charged before the delete; an over-limit request returns `429`
|
|
1025
1024
|
* `rate_limit_exceeded` and deletes nothing.
|
|
1026
1025
|
*
|
|
1027
|
-
* Calendar is
|
|
1028
|
-
*
|
|
1026
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
1027
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
1029
1028
|
*
|
|
1030
1029
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1031
1030
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -1174,8 +1173,8 @@ class CalendarClient {
|
|
|
1174
1173
|
* trail a change made moments earlier by a few seconds; pass `consistency=primary` to read
|
|
1175
1174
|
* your own change right away. Requires the `calendar_event_read` permission.
|
|
1176
1175
|
*
|
|
1177
|
-
* Calendar is
|
|
1178
|
-
*
|
|
1176
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
1177
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
1179
1178
|
*
|
|
1180
1179
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1181
1180
|
* @param {string} event_id - UUID of the recurring event.
|
|
@@ -1312,8 +1311,8 @@ class CalendarClient {
|
|
|
1312
1311
|
* charged before the response is saved; an over-limit request returns `429`
|
|
1313
1312
|
* `rate_limit_exceeded` and changes nothing.
|
|
1314
1313
|
*
|
|
1315
|
-
* Calendar is
|
|
1316
|
-
*
|
|
1314
|
+
* Calendar is available in US production (`api.agentmail.to`) but not yet in EU production
|
|
1315
|
+
* (`api.agentmail.eu`), which returns `403`.
|
|
1317
1316
|
*
|
|
1318
1317
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
1319
1318
|
* @param {AgentMail.CalendarEventId} event_id
|
|
@@ -12,6 +12,8 @@ export interface CreateInboxRequest {
|
|
|
12
12
|
clientId?: AgentMail.inboxes.ClientId;
|
|
13
13
|
/** Set `paused` to create the inbox paused. */
|
|
14
14
|
status?: AgentMail.inboxes.InboxStatus;
|
|
15
|
+
/** Schedule the inbox to pause at this time, for example when a fixed term ends. */
|
|
16
|
+
pauseAt?: AgentMail.inboxes.PauseAt;
|
|
15
17
|
/** Custom metadata to attach to the inbox. */
|
|
16
18
|
metadata?: AgentMail.inboxes.Metadata;
|
|
17
19
|
}
|
|
@@ -11,6 +11,11 @@ export interface Inbox {
|
|
|
11
11
|
* receives normally.
|
|
12
12
|
*/
|
|
13
13
|
status?: AgentMail.inboxes.InboxStatus;
|
|
14
|
+
/**
|
|
15
|
+
* When the inbox is scheduled to pause. Omitted when no pause is
|
|
16
|
+
* scheduled, and cleared once the pause happens.
|
|
17
|
+
*/
|
|
18
|
+
pauseAt?: AgentMail.inboxes.PauseAt;
|
|
14
19
|
/** Custom metadata attached to the inbox. */
|
|
15
20
|
metadata?: AgentMail.inboxes.Metadata;
|
|
16
21
|
/** Time at which inbox was last updated. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When the inbox pauses itself. Within about five minutes after this time,
|
|
3
|
+
* the inbox becomes paused exactly as if `status` had been set to `paused`,
|
|
4
|
+
* and `pause_at` is cleared. Must be in the future; returned in UTC. A
|
|
5
|
+
* manual pause or resume does not change it.
|
|
6
|
+
*/
|
|
7
|
+
export type PauseAt = Date;
|
|
@@ -7,13 +7,19 @@ export interface UpdateInboxRequest {
|
|
|
7
7
|
* resume.
|
|
8
8
|
*/
|
|
9
9
|
status?: AgentMail.inboxes.InboxStatus;
|
|
10
|
+
/**
|
|
11
|
+
* Schedule a pause, or move one already scheduled. Send null to cancel
|
|
12
|
+
* it. Only an organization- or pod-scoped API key can change it; an
|
|
13
|
+
* inbox-scoped key gets `403`.
|
|
14
|
+
*/
|
|
15
|
+
pauseAt?: AgentMail.inboxes.PauseAt | null;
|
|
10
16
|
/**
|
|
11
17
|
* Metadata to merge into the inbox's existing metadata. Keys you include
|
|
12
18
|
* are added or overwritten; keys you omit are left unchanged. To remove a
|
|
13
19
|
* single key, send it with a null value. To clear all metadata, send
|
|
14
20
|
* `metadata` as null. Sending an empty object is rejected; use null to
|
|
15
21
|
* clear. Each update must include at least one of `display_name`,
|
|
16
|
-
* `status`, or `metadata`.
|
|
22
|
+
* `status`, `pause_at`, or `metadata`.
|
|
17
23
|
*/
|
|
18
24
|
metadata?: AgentMail.inboxes.UpdateMetadata | null;
|
|
19
25
|
}
|
|
@@ -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);
|
|
@@ -24,6 +24,7 @@ export interface Message {
|
|
|
24
24
|
calendarEventId?: AgentMail.MessageCalendarEventId;
|
|
25
25
|
references?: AgentMail.MessageReferences;
|
|
26
26
|
headers?: AgentMail.MessageHeaders;
|
|
27
|
+
authenticationResults?: AgentMail.MessageAuthenticationResults;
|
|
27
28
|
agentArmor?: AgentMail.AgentArmorResult;
|
|
28
29
|
size: AgentMail.MessageSize;
|
|
29
30
|
updatedAt: AgentMail.MessageUpdatedAt;
|