agentmail 0.4.17 → 0.4.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/domains/client/Client.js +1 -1
- package/dist/cjs/api/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/drafts/client/Client.js +1 -1
- package/dist/cjs/api/resources/events/types/EventType.d.ts +2 -0
- package/dist/cjs/api/resources/events/types/EventType.js +2 -0
- package/dist/cjs/api/resources/events/types/MessageReceivedBlockedEvent.d.ts +11 -0
- package/dist/cjs/api/resources/events/types/MessageReceivedBlockedEvent.js +3 -0
- package/dist/cjs/api/resources/events/types/MessageReceivedSpamEvent.d.ts +11 -0
- package/dist/cjs/api/resources/events/types/MessageReceivedSpamEvent.js +3 -0
- package/dist/cjs/api/resources/events/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/events/types/index.js +2 -0
- package/dist/cjs/api/resources/inboxEvents/exports.d.ts +1 -0
- package/dist/cjs/api/resources/inboxEvents/exports.js +18 -0
- package/dist/cjs/api/resources/inboxEvents/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxEvents/index.js +17 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEvent.d.ts +17 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEvent.js +3 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEventId.d.ts +4 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEventId.js +3 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEventType.d.ts +6 -0
- package/dist/cjs/api/resources/inboxEvents/types/InboxEventType.js +9 -0
- package/dist/cjs/api/resources/inboxEvents/types/ListInboxEventsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/inboxEvents/types/ListInboxEventsResponse.js +3 -0
- package/dist/cjs/api/resources/inboxEvents/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/inboxEvents/types/index.js +20 -0
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +4 -1
- package/dist/cjs/api/resources/inboxes/client/Client.js +14 -9
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/events/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/Client.js +136 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/index.js +17 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/requests/ListInboxEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/requests/ListInboxEventsRequest.js +3 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/events/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/inboxes/resources/events/exports.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/events/exports.js +21 -0
- package/dist/cjs/api/resources/inboxes/resources/events/index.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/events/index.js +17 -0
- package/dist/cjs/api/resources/inboxes/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/inboxes/resources/index.js +3 -1
- package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/lists/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +1 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/resources/lists/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/lists/client/Client.js +1 -1
- package/dist/cjs/api/resources/organizations/client/Client.d.ts +6 -1
- package/dist/cjs/api/resources/organizations/client/Client.js +6 -1
- package/dist/cjs/api/resources/pods/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +1 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +1 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/threads/client/Client.js +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/webhooks/client/Client.js +1 -1
- package/dist/cjs/api/resources/websockets/client/Socket.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/EventType.d.ts +1 -1
- package/dist/cjs/serialization/resources/events/types/EventType.js +2 -0
- package/dist/cjs/serialization/resources/events/types/MessageReceivedBlockedEvent.d.ts +16 -0
- package/dist/cjs/serialization/resources/events/types/MessageReceivedBlockedEvent.js +48 -0
- package/dist/cjs/serialization/resources/events/types/MessageReceivedSpamEvent.d.ts +16 -0
- package/dist/cjs/serialization/resources/events/types/MessageReceivedSpamEvent.js +48 -0
- package/dist/cjs/serialization/resources/events/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/events/types/index.js +2 -0
- package/dist/cjs/serialization/resources/inboxEvents/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/inboxEvents/index.js +17 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEvent.d.ts +21 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEvent.js +53 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEventId.d.ts +7 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEventId.js +39 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEventType.d.ts +7 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/InboxEventType.js +39 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/ListInboxEventsResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/ListInboxEventsResponse.js +48 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/index.d.ts +4 -0
- package/dist/cjs/serialization/resources/inboxEvents/types/index.js +20 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts +4 -2
- package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js +4 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/domains/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/domains/client/Client.mjs +1 -1
- package/dist/esm/api/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/drafts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/events/types/EventType.d.mts +2 -0
- package/dist/esm/api/resources/events/types/EventType.mjs +2 -0
- package/dist/esm/api/resources/events/types/MessageReceivedBlockedEvent.d.mts +11 -0
- package/dist/esm/api/resources/events/types/MessageReceivedBlockedEvent.mjs +2 -0
- package/dist/esm/api/resources/events/types/MessageReceivedSpamEvent.d.mts +11 -0
- package/dist/esm/api/resources/events/types/MessageReceivedSpamEvent.mjs +2 -0
- package/dist/esm/api/resources/events/types/index.d.mts +2 -0
- package/dist/esm/api/resources/events/types/index.mjs +2 -0
- package/dist/esm/api/resources/inboxEvents/exports.d.mts +1 -0
- package/dist/esm/api/resources/inboxEvents/exports.mjs +2 -0
- package/dist/esm/api/resources/inboxEvents/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxEvents/index.mjs +1 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEvent.d.mts +17 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEvent.mjs +2 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEventId.d.mts +4 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEventId.mjs +2 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEventType.d.mts +6 -0
- package/dist/esm/api/resources/inboxEvents/types/InboxEventType.mjs +6 -0
- package/dist/esm/api/resources/inboxEvents/types/ListInboxEventsResponse.d.mts +8 -0
- package/dist/esm/api/resources/inboxEvents/types/ListInboxEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/inboxEvents/types/index.d.mts +4 -0
- package/dist/esm/api/resources/inboxEvents/types/index.mjs +4 -0
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +4 -1
- package/dist/esm/api/resources/inboxes/client/Client.mjs +6 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/events/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/Client.mjs +99 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/requests/ListInboxEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/requests/ListInboxEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/events/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/events/exports.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/events/exports.mjs +3 -0
- package/dist/esm/api/resources/inboxes/resources/events/index.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/events/index.mjs +1 -0
- package/dist/esm/api/resources/inboxes/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/inboxes/resources/index.mjs +2 -0
- package/dist/esm/api/resources/inboxes/resources/lists/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/lists/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +1 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/lists/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/lists/client/Client.mjs +1 -1
- package/dist/esm/api/resources/organizations/client/Client.d.mts +6 -1
- package/dist/esm/api/resources/organizations/client/Client.mjs +6 -1
- package/dist/esm/api/resources/pods/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +1 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +1 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/threads/client/Client.mjs +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/webhooks/client/Client.mjs +1 -1
- package/dist/esm/api/resources/websockets/client/Socket.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/EventType.d.mts +1 -1
- package/dist/esm/serialization/resources/events/types/EventType.mjs +2 -0
- package/dist/esm/serialization/resources/events/types/MessageReceivedBlockedEvent.d.mts +16 -0
- package/dist/esm/serialization/resources/events/types/MessageReceivedBlockedEvent.mjs +12 -0
- package/dist/esm/serialization/resources/events/types/MessageReceivedSpamEvent.d.mts +16 -0
- package/dist/esm/serialization/resources/events/types/MessageReceivedSpamEvent.mjs +12 -0
- package/dist/esm/serialization/resources/events/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/events/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/inboxEvents/index.d.mts +1 -0
- package/dist/esm/serialization/resources/inboxEvents/index.mjs +1 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEvent.d.mts +21 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEvent.mjs +17 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEventId.d.mts +7 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEventId.mjs +3 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEventType.d.mts +7 -0
- package/dist/esm/serialization/resources/inboxEvents/types/InboxEventType.mjs +3 -0
- package/dist/esm/serialization/resources/inboxEvents/types/ListInboxEventsResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/inboxEvents/types/ListInboxEventsResponse.mjs +12 -0
- package/dist/esm/serialization/resources/inboxEvents/types/index.d.mts +4 -0
- package/dist/esm/serialization/resources/inboxEvents/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.mts +4 -2
- package/dist/esm/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +1515 -436
- package/dist/llms.txt +11 -1
- package/package.json +12 -1
- package/reference.md +100 -18
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as AgentMail from "../../../../../index.mjs";
|
|
5
|
+
export declare namespace EventsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class EventsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
|
|
12
|
+
constructor(options?: EventsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* List label change events for an inbox. Returns events in reverse chronological order by default. Use for IMAP UID projection or audit logging.
|
|
15
|
+
*
|
|
16
|
+
* **CLI:**
|
|
17
|
+
* ```bash
|
|
18
|
+
* agentmail inboxes:events list --inbox-id <inbox_id>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
22
|
+
* @param {AgentMail.inboxes.ListInboxEventsRequest} request
|
|
23
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
|
+
*
|
|
25
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.inboxes.events.list("inbox_id")
|
|
29
|
+
*/
|
|
30
|
+
list(inbox_id: AgentMail.inboxes.InboxId, request?: AgentMail.inboxes.ListInboxEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListInboxEventsResponse>;
|
|
31
|
+
private __list;
|
|
32
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
14
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
15
|
+
import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
16
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
17
|
+
import * as serializers from "../../../../../../serialization/index.mjs";
|
|
18
|
+
import * as AgentMail from "../../../../../index.mjs";
|
|
19
|
+
export class EventsClient {
|
|
20
|
+
constructor(options = {}) {
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List label change events for an inbox. Returns events in reverse chronological order by default. Use for IMAP UID projection or audit logging.
|
|
25
|
+
*
|
|
26
|
+
* **CLI:**
|
|
27
|
+
* ```bash
|
|
28
|
+
* agentmail inboxes:events list --inbox-id <inbox_id>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
32
|
+
* @param {AgentMail.inboxes.ListInboxEventsRequest} request
|
|
33
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
|
+
*
|
|
35
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.inboxes.events.list("inbox_id")
|
|
39
|
+
*/
|
|
40
|
+
list(inbox_id, request = {}, requestOptions) {
|
|
41
|
+
return core.HttpResponsePromise.fromPromise(this.__list(inbox_id, request, requestOptions));
|
|
42
|
+
}
|
|
43
|
+
__list(inbox_id_1) {
|
|
44
|
+
return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
46
|
+
const { limit, pageToken, ascending } = request;
|
|
47
|
+
const _queryParams = {
|
|
48
|
+
limit,
|
|
49
|
+
page_token: pageToken,
|
|
50
|
+
ascending,
|
|
51
|
+
};
|
|
52
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
53
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
|
+
const _response = yield core.fetcher({
|
|
55
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
|
|
56
|
+
.http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/events`),
|
|
57
|
+
method: "GET",
|
|
58
|
+
headers: _headers,
|
|
59
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
60
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
61
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
62
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
63
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
64
|
+
logging: this._options.logging,
|
|
65
|
+
});
|
|
66
|
+
if (_response.ok) {
|
|
67
|
+
return {
|
|
68
|
+
data: serializers.ListInboxEventsResponse.parseOrThrow(_response.body, {
|
|
69
|
+
unrecognizedObjectKeys: "passthrough",
|
|
70
|
+
allowUnrecognizedUnionMembers: true,
|
|
71
|
+
allowUnrecognizedEnumValues: true,
|
|
72
|
+
skipValidation: true,
|
|
73
|
+
breadcrumbsPrefix: ["response"],
|
|
74
|
+
}),
|
|
75
|
+
rawResponse: _response.rawResponse,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
if (_response.error.reason === "status-code") {
|
|
79
|
+
switch (_response.error.statusCode) {
|
|
80
|
+
case 404:
|
|
81
|
+
throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
|
|
82
|
+
unrecognizedObjectKeys: "passthrough",
|
|
83
|
+
allowUnrecognizedUnionMembers: true,
|
|
84
|
+
allowUnrecognizedEnumValues: true,
|
|
85
|
+
skipValidation: true,
|
|
86
|
+
breadcrumbsPrefix: ["response"],
|
|
87
|
+
}), _response.rawResponse);
|
|
88
|
+
default:
|
|
89
|
+
throw new errors.AgentMailError({
|
|
90
|
+
statusCode: _response.error.statusCode,
|
|
91
|
+
body: _response.error.body,
|
|
92
|
+
rawResponse: _response.rawResponse,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/inboxes/{inbox_id}/events");
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ListInboxEventsRequest } from "./ListInboxEventsRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -2,6 +2,8 @@ export * from "./apiKeys/client/requests/index.mjs";
|
|
|
2
2
|
export * as apiKeys from "./apiKeys/index.mjs";
|
|
3
3
|
export * from "./drafts/client/requests/index.mjs";
|
|
4
4
|
export * as drafts from "./drafts/index.mjs";
|
|
5
|
+
export * from "./events/client/requests/index.mjs";
|
|
6
|
+
export * as events from "./events/index.mjs";
|
|
5
7
|
export * from "./lists/client/requests/index.mjs";
|
|
6
8
|
export * as lists from "./lists/index.mjs";
|
|
7
9
|
export * from "./messages/client/requests/index.mjs";
|
|
@@ -2,6 +2,8 @@ export * from "./apiKeys/client/requests/index.mjs";
|
|
|
2
2
|
export * as apiKeys from "./apiKeys/index.mjs";
|
|
3
3
|
export * from "./drafts/client/requests/index.mjs";
|
|
4
4
|
export * as drafts from "./drafts/index.mjs";
|
|
5
|
+
export * from "./events/client/requests/index.mjs";
|
|
6
|
+
export * as events from "./events/index.mjs";
|
|
5
7
|
export * from "./lists/client/requests/index.mjs";
|
|
6
8
|
export * as lists from "./lists/index.mjs";
|
|
7
9
|
export * from "./messages/client/requests/index.mjs";
|
|
@@ -30,7 +30,7 @@ export declare class ListsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail inboxes:lists
|
|
33
|
+
* agentmail inboxes:lists get --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -85,7 +85,7 @@ export class ListsClient {
|
|
|
85
85
|
/**
|
|
86
86
|
* **CLI:**
|
|
87
87
|
* ```bash
|
|
88
|
-
* agentmail inboxes:lists
|
|
88
|
+
* agentmail inboxes:lists get --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
89
89
|
* ```
|
|
90
90
|
*
|
|
91
91
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -30,7 +30,7 @@ export declare class MessagesClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail inboxes:messages
|
|
33
|
+
* agentmail inboxes:messages get --inbox-id <inbox_id> --message-id <message_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -113,7 +113,7 @@ export class MessagesClient {
|
|
|
113
113
|
/**
|
|
114
114
|
* **CLI:**
|
|
115
115
|
* ```bash
|
|
116
|
-
* agentmail inboxes:messages
|
|
116
|
+
* agentmail inboxes:messages get --inbox-id <inbox_id> --message-id <message_id>
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -30,7 +30,7 @@ export declare class ThreadsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail inboxes:threads
|
|
33
|
+
* agentmail inboxes:threads get --inbox-id <inbox_id> --thread-id <thread_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -113,7 +113,7 @@ export class ThreadsClient {
|
|
|
113
113
|
/**
|
|
114
114
|
* **CLI:**
|
|
115
115
|
* ```bash
|
|
116
|
-
* agentmail inboxes:threads
|
|
116
|
+
* agentmail inboxes:threads get --inbox-id <inbox_id> --thread-id <thread_id>
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -13,6 +13,8 @@ export * as drafts from "./drafts/index.mjs";
|
|
|
13
13
|
export * from "./drafts/types/index.mjs";
|
|
14
14
|
export * as events from "./events/index.mjs";
|
|
15
15
|
export * from "./events/types/index.mjs";
|
|
16
|
+
export * as inboxEvents from "./inboxEvents/index.mjs";
|
|
17
|
+
export * from "./inboxEvents/types/index.mjs";
|
|
16
18
|
export * as inboxes from "./inboxes/index.mjs";
|
|
17
19
|
export * from "./lists/client/requests/index.mjs";
|
|
18
20
|
export * as lists from "./lists/index.mjs";
|
|
@@ -13,6 +13,8 @@ export * as drafts from "./drafts/index.mjs";
|
|
|
13
13
|
export * from "./drafts/types/index.mjs";
|
|
14
14
|
export * as events from "./events/index.mjs";
|
|
15
15
|
export * from "./events/types/index.mjs";
|
|
16
|
+
export * as inboxEvents from "./inboxEvents/index.mjs";
|
|
17
|
+
export * from "./inboxEvents/types/index.mjs";
|
|
16
18
|
export * as inboxes from "./inboxes/index.mjs";
|
|
17
19
|
export * from "./lists/client/requests/index.mjs";
|
|
18
20
|
export * as lists from "./lists/index.mjs";
|
|
@@ -29,7 +29,7 @@ export declare class ListsClient {
|
|
|
29
29
|
/**
|
|
30
30
|
* **CLI:**
|
|
31
31
|
* ```bash
|
|
32
|
-
* agentmail lists
|
|
32
|
+
* agentmail lists get --direction <direction> --type <type> --entry <entry>
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* @param {AgentMail.Direction} direction
|
|
@@ -84,7 +84,7 @@ export class ListsClient {
|
|
|
84
84
|
/**
|
|
85
85
|
* **CLI:**
|
|
86
86
|
* ```bash
|
|
87
|
-
* agentmail lists
|
|
87
|
+
* agentmail lists get --direction <direction> --type <type> --entry <entry>
|
|
88
88
|
* ```
|
|
89
89
|
*
|
|
90
90
|
* @param {AgentMail.Direction} direction
|
|
@@ -11,7 +11,12 @@ export declare class OrganizationsClient {
|
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
12
12
|
constructor(options?: OrganizationsClient.Options);
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Returns the organization for the authenticated API key (usage limits, counts, and billing metadata).
|
|
15
|
+
*
|
|
16
|
+
* **CLI:**
|
|
17
|
+
* ```bash
|
|
18
|
+
* agentmail organizations get
|
|
19
|
+
* ```
|
|
15
20
|
*
|
|
16
21
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
22
|
*
|
|
@@ -20,7 +20,12 @@ export class OrganizationsClient {
|
|
|
20
20
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Returns the organization for the authenticated API key (usage limits, counts, and billing metadata).
|
|
24
|
+
*
|
|
25
|
+
* **CLI:**
|
|
26
|
+
* ```bash
|
|
27
|
+
* agentmail organizations get
|
|
28
|
+
* ```
|
|
24
29
|
*
|
|
25
30
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
31
|
*
|
|
@@ -30,7 +30,7 @@ export declare class DomainsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail pods:domains
|
|
33
|
+
* agentmail pods:domains get --pod-id <pod_id> --domain-id <domain_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -97,7 +97,7 @@ export class DomainsClient {
|
|
|
97
97
|
/**
|
|
98
98
|
* **CLI:**
|
|
99
99
|
* ```bash
|
|
100
|
-
* agentmail pods:domains
|
|
100
|
+
* agentmail pods:domains get --pod-id <pod_id> --domain-id <domain_id>
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
103
103
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -30,7 +30,7 @@ export declare class DraftsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail pods:drafts
|
|
33
|
+
* agentmail pods:drafts get --pod-id <pod_id> --draft-id <draft_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -110,7 +110,7 @@ export class DraftsClient {
|
|
|
110
110
|
/**
|
|
111
111
|
* **CLI:**
|
|
112
112
|
* ```bash
|
|
113
|
-
* agentmail pods:drafts
|
|
113
|
+
* agentmail pods:drafts get --pod-id <pod_id> --draft-id <draft_id>
|
|
114
114
|
* ```
|
|
115
115
|
*
|
|
116
116
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -30,7 +30,7 @@ export declare class InboxesClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail pods:inboxes
|
|
33
|
+
* agentmail pods:inboxes get --pod-id <pod_id> --inbox-id <inbox_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -97,7 +97,7 @@ export class InboxesClient {
|
|
|
97
97
|
/**
|
|
98
98
|
* **CLI:**
|
|
99
99
|
* ```bash
|
|
100
|
-
* agentmail pods:inboxes
|
|
100
|
+
* agentmail pods:inboxes get --pod-id <pod_id> --inbox-id <inbox_id>
|
|
101
101
|
* ```
|
|
102
102
|
*
|
|
103
103
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -30,7 +30,7 @@ export declare class ListsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail pods:lists
|
|
33
|
+
* agentmail pods:lists get --pod-id <pod_id> --direction <direction> --type <type> --entry <entry>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -85,7 +85,7 @@ export class ListsClient {
|
|
|
85
85
|
/**
|
|
86
86
|
* **CLI:**
|
|
87
87
|
* ```bash
|
|
88
|
-
* agentmail pods:lists
|
|
88
|
+
* agentmail pods:lists get --pod-id <pod_id> --direction <direction> --type <type> --entry <entry>
|
|
89
89
|
* ```
|
|
90
90
|
*
|
|
91
91
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -30,7 +30,7 @@ export declare class ThreadsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail pods:threads
|
|
33
|
+
* agentmail pods:threads get --pod-id <pod_id> --thread-id <thread_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -113,7 +113,7 @@ export class ThreadsClient {
|
|
|
113
113
|
/**
|
|
114
114
|
* **CLI:**
|
|
115
115
|
* ```bash
|
|
116
|
-
* agentmail pods:threads
|
|
116
|
+
* agentmail pods:threads get --pod-id <pod_id> --thread-id <thread_id>
|
|
117
117
|
* ```
|
|
118
118
|
*
|
|
119
119
|
* @param {AgentMail.pods.PodId} pod_id
|
|
@@ -29,7 +29,7 @@ export declare class ThreadsClient {
|
|
|
29
29
|
/**
|
|
30
30
|
* **CLI:**
|
|
31
31
|
* ```bash
|
|
32
|
-
* agentmail threads
|
|
32
|
+
* agentmail threads get --thread-id <thread_id>
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
35
|
* @param {AgentMail.ThreadId} thread_id
|
|
@@ -45,7 +45,7 @@ export declare class ThreadsClient {
|
|
|
45
45
|
/**
|
|
46
46
|
* **CLI:**
|
|
47
47
|
* ```bash
|
|
48
|
-
* agentmail threads
|
|
48
|
+
* agentmail threads get-attachment --thread-id <thread_id> --attachment-id <attachment_id>
|
|
49
49
|
* ```
|
|
50
50
|
*
|
|
51
51
|
* @param {AgentMail.ThreadId} thread_id
|
|
@@ -112,7 +112,7 @@ export class ThreadsClient {
|
|
|
112
112
|
/**
|
|
113
113
|
* **CLI:**
|
|
114
114
|
* ```bash
|
|
115
|
-
* agentmail threads
|
|
115
|
+
* agentmail threads get --thread-id <thread_id>
|
|
116
116
|
* ```
|
|
117
117
|
*
|
|
118
118
|
* @param {AgentMail.ThreadId} thread_id
|
|
@@ -179,7 +179,7 @@ export class ThreadsClient {
|
|
|
179
179
|
/**
|
|
180
180
|
* **CLI:**
|
|
181
181
|
* ```bash
|
|
182
|
-
* agentmail threads
|
|
182
|
+
* agentmail threads get-attachment --thread-id <thread_id> --attachment-id <attachment_id>
|
|
183
183
|
* ```
|
|
184
184
|
*
|
|
185
185
|
* @param {AgentMail.ThreadId} thread_id
|
|
@@ -4,7 +4,7 @@ export declare namespace WebsocketsSocket {
|
|
|
4
4
|
interface Args {
|
|
5
5
|
socket: core.ReconnectingWebSocket;
|
|
6
6
|
}
|
|
7
|
-
type Response = AgentMail.Subscribed | AgentMail.MessageReceivedEvent | AgentMail.MessageSentEvent | AgentMail.MessageDeliveredEvent | AgentMail.MessageBouncedEvent | AgentMail.MessageComplainedEvent | AgentMail.MessageRejectedEvent | AgentMail.DomainVerifiedEvent | AgentMail.Error_;
|
|
7
|
+
type Response = AgentMail.Subscribed | AgentMail.MessageReceivedEvent | AgentMail.MessageReceivedSpamEvent | AgentMail.MessageReceivedBlockedEvent | AgentMail.MessageSentEvent | AgentMail.MessageDeliveredEvent | AgentMail.MessageBouncedEvent | AgentMail.MessageComplainedEvent | AgentMail.MessageRejectedEvent | AgentMail.DomainVerifiedEvent | AgentMail.Error_;
|
|
8
8
|
type EventHandlers = {
|
|
9
9
|
open?: () => void;
|
|
10
10
|
message?: (message: Response) => void;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const EventType: core.serialization.Schema<serializers.EventType.Raw, AgentMail.EventType>;
|
|
5
5
|
export declare namespace EventType {
|
|
6
|
-
type Raw = "message.received" | "message.sent" | "message.delivered" | "message.bounced" | "message.complained" | "message.rejected" | "domain.verified";
|
|
6
|
+
type Raw = "message.received" | "message.received.spam" | "message.received.blocked" | "message.sent" | "message.delivered" | "message.bounced" | "message.complained" | "message.rejected" | "domain.verified";
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { Message } from "../../messages/types/Message.mjs";
|
|
5
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.mjs";
|
|
6
|
+
import { EventId } from "./EventId.mjs";
|
|
7
|
+
export declare const MessageReceivedBlockedEvent: core.serialization.ObjectSchema<serializers.MessageReceivedBlockedEvent.Raw, AgentMail.MessageReceivedBlockedEvent>;
|
|
8
|
+
export declare namespace MessageReceivedBlockedEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "event";
|
|
11
|
+
event_type: "message.received.blocked";
|
|
12
|
+
event_id: EventId.Raw;
|
|
13
|
+
message: Message.Raw;
|
|
14
|
+
thread: ThreadItem.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { Message } from "../../messages/types/Message.mjs";
|
|
4
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.mjs";
|
|
5
|
+
import { EventId } from "./EventId.mjs";
|
|
6
|
+
export const MessageReceivedBlockedEvent = core.serialization.object({
|
|
7
|
+
type: core.serialization.stringLiteral("event"),
|
|
8
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.received.blocked")),
|
|
9
|
+
eventId: core.serialization.property("event_id", EventId),
|
|
10
|
+
message: Message,
|
|
11
|
+
thread: ThreadItem,
|
|
12
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { Message } from "../../messages/types/Message.mjs";
|
|
5
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.mjs";
|
|
6
|
+
import { EventId } from "./EventId.mjs";
|
|
7
|
+
export declare const MessageReceivedSpamEvent: core.serialization.ObjectSchema<serializers.MessageReceivedSpamEvent.Raw, AgentMail.MessageReceivedSpamEvent>;
|
|
8
|
+
export declare namespace MessageReceivedSpamEvent {
|
|
9
|
+
interface Raw {
|
|
10
|
+
type: "event";
|
|
11
|
+
event_type: "message.received.spam";
|
|
12
|
+
event_id: EventId.Raw;
|
|
13
|
+
message: Message.Raw;
|
|
14
|
+
thread: ThreadItem.Raw;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { Message } from "../../messages/types/Message.mjs";
|
|
4
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.mjs";
|
|
5
|
+
import { EventId } from "./EventId.mjs";
|
|
6
|
+
export const MessageReceivedSpamEvent = core.serialization.object({
|
|
7
|
+
type: core.serialization.stringLiteral("event"),
|
|
8
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.received.spam")),
|
|
9
|
+
eventId: core.serialization.property("event_id", EventId),
|
|
10
|
+
message: Message,
|
|
11
|
+
thread: ThreadItem,
|
|
12
|
+
});
|
|
@@ -9,7 +9,9 @@ export * from "./InboxIds.mjs";
|
|
|
9
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
10
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
11
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
12
|
+
export * from "./MessageReceivedBlockedEvent.mjs";
|
|
12
13
|
export * from "./MessageReceivedEvent.mjs";
|
|
14
|
+
export * from "./MessageReceivedSpamEvent.mjs";
|
|
13
15
|
export * from "./MessageRejectedEvent.mjs";
|
|
14
16
|
export * from "./MessageSentEvent.mjs";
|
|
15
17
|
export * from "./PodIds.mjs";
|
|
@@ -9,7 +9,9 @@ export * from "./InboxIds.mjs";
|
|
|
9
9
|
export * from "./MessageBouncedEvent.mjs";
|
|
10
10
|
export * from "./MessageComplainedEvent.mjs";
|
|
11
11
|
export * from "./MessageDeliveredEvent.mjs";
|
|
12
|
+
export * from "./MessageReceivedBlockedEvent.mjs";
|
|
12
13
|
export * from "./MessageReceivedEvent.mjs";
|
|
14
|
+
export * from "./MessageReceivedSpamEvent.mjs";
|
|
13
15
|
export * from "./MessageRejectedEvent.mjs";
|
|
14
16
|
export * from "./MessageSentEvent.mjs";
|
|
15
17
|
export * from "./PodIds.mjs";
|