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,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -2,6 +2,8 @@ export * from "./apiKeys/client/requests/index.js";
|
|
|
2
2
|
export * as apiKeys from "./apiKeys/index.js";
|
|
3
3
|
export * from "./drafts/client/requests/index.js";
|
|
4
4
|
export * as drafts from "./drafts/index.js";
|
|
5
|
+
export * from "./events/client/requests/index.js";
|
|
6
|
+
export * as events from "./events/index.js";
|
|
5
7
|
export * from "./lists/client/requests/index.js";
|
|
6
8
|
export * as lists from "./lists/index.js";
|
|
7
9
|
export * from "./messages/client/requests/index.js";
|
|
@@ -36,11 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.threads = exports.metrics = exports.messages = exports.lists = exports.drafts = exports.apiKeys = void 0;
|
|
39
|
+
exports.threads = exports.metrics = exports.messages = exports.lists = exports.events = exports.drafts = exports.apiKeys = void 0;
|
|
40
40
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
41
41
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
42
42
|
__exportStar(require("./drafts/client/requests/index.js"), exports);
|
|
43
43
|
exports.drafts = __importStar(require("./drafts/index.js"));
|
|
44
|
+
__exportStar(require("./events/client/requests/index.js"), exports);
|
|
45
|
+
exports.events = __importStar(require("./events/index.js"));
|
|
44
46
|
__exportStar(require("./lists/client/requests/index.js"), exports);
|
|
45
47
|
exports.lists = __importStar(require("./lists/index.js"));
|
|
46
48
|
__exportStar(require("./messages/client/requests/index.js"), exports);
|
|
@@ -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
|
|
@@ -121,7 +121,7 @@ class ListsClient {
|
|
|
121
121
|
/**
|
|
122
122
|
* **CLI:**
|
|
123
123
|
* ```bash
|
|
124
|
-
* agentmail inboxes:lists
|
|
124
|
+
* agentmail inboxes:lists get --inbox-id <inbox_id> --direction <direction> --type <type> --entry <entry>
|
|
125
125
|
* ```
|
|
126
126
|
*
|
|
127
127
|
* @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
|
|
@@ -149,7 +149,7 @@ class MessagesClient {
|
|
|
149
149
|
/**
|
|
150
150
|
* **CLI:**
|
|
151
151
|
* ```bash
|
|
152
|
-
* agentmail inboxes:messages
|
|
152
|
+
* agentmail inboxes:messages get --inbox-id <inbox_id> --message-id <message_id>
|
|
153
153
|
* ```
|
|
154
154
|
*
|
|
155
155
|
* @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
|
|
@@ -149,7 +149,7 @@ class ThreadsClient {
|
|
|
149
149
|
/**
|
|
150
150
|
* **CLI:**
|
|
151
151
|
* ```bash
|
|
152
|
-
* agentmail inboxes:threads
|
|
152
|
+
* agentmail inboxes:threads get --inbox-id <inbox_id> --thread-id <thread_id>
|
|
153
153
|
* ```
|
|
154
154
|
*
|
|
155
155
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -13,6 +13,8 @@ export * as drafts from "./drafts/index.js";
|
|
|
13
13
|
export * from "./drafts/types/index.js";
|
|
14
14
|
export * as events from "./events/index.js";
|
|
15
15
|
export * from "./events/types/index.js";
|
|
16
|
+
export * as inboxEvents from "./inboxEvents/index.js";
|
|
17
|
+
export * from "./inboxEvents/types/index.js";
|
|
16
18
|
export * as inboxes from "./inboxes/index.js";
|
|
17
19
|
export * from "./lists/client/requests/index.js";
|
|
18
20
|
export * as lists from "./lists/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.lists = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = exports.agent = void 0;
|
|
39
|
+
exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.lists = exports.inboxes = exports.inboxEvents = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = exports.agent = void 0;
|
|
40
40
|
exports.agent = __importStar(require("./agent/index.js"));
|
|
41
41
|
__exportStar(require("./agent/types/index.js"), exports);
|
|
42
42
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
@@ -52,6 +52,8 @@ exports.drafts = __importStar(require("./drafts/index.js"));
|
|
|
52
52
|
__exportStar(require("./drafts/types/index.js"), exports);
|
|
53
53
|
exports.events = __importStar(require("./events/index.js"));
|
|
54
54
|
__exportStar(require("./events/types/index.js"), exports);
|
|
55
|
+
exports.inboxEvents = __importStar(require("./inboxEvents/index.js"));
|
|
56
|
+
__exportStar(require("./inboxEvents/types/index.js"), exports);
|
|
55
57
|
exports.inboxes = __importStar(require("./inboxes/index.js"));
|
|
56
58
|
__exportStar(require("./lists/client/requests/index.js"), exports);
|
|
57
59
|
exports.lists = __importStar(require("./lists/index.js"));
|
|
@@ -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
|
|
@@ -120,7 +120,7 @@ class ListsClient {
|
|
|
120
120
|
/**
|
|
121
121
|
* **CLI:**
|
|
122
122
|
* ```bash
|
|
123
|
-
* agentmail lists
|
|
123
|
+
* agentmail lists get --direction <direction> --type <type> --entry <entry>
|
|
124
124
|
* ```
|
|
125
125
|
*
|
|
126
126
|
* @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
|
*
|
|
@@ -56,7 +56,12 @@ class OrganizationsClient {
|
|
|
56
56
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Returns the organization for the authenticated API key (usage limits, counts, and billing metadata).
|
|
60
|
+
*
|
|
61
|
+
* **CLI:**
|
|
62
|
+
* ```bash
|
|
63
|
+
* agentmail organizations get
|
|
64
|
+
* ```
|
|
60
65
|
*
|
|
61
66
|
* @param {OrganizationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
67
|
*
|
|
@@ -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
|
|
@@ -133,7 +133,7 @@ class DomainsClient {
|
|
|
133
133
|
/**
|
|
134
134
|
* **CLI:**
|
|
135
135
|
* ```bash
|
|
136
|
-
* agentmail pods:domains
|
|
136
|
+
* agentmail pods:domains get --pod-id <pod_id> --domain-id <domain_id>
|
|
137
137
|
* ```
|
|
138
138
|
*
|
|
139
139
|
* @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
|
|
@@ -146,7 +146,7 @@ class DraftsClient {
|
|
|
146
146
|
/**
|
|
147
147
|
* **CLI:**
|
|
148
148
|
* ```bash
|
|
149
|
-
* agentmail pods:drafts
|
|
149
|
+
* agentmail pods:drafts get --pod-id <pod_id> --draft-id <draft_id>
|
|
150
150
|
* ```
|
|
151
151
|
*
|
|
152
152
|
* @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
|
|
@@ -133,7 +133,7 @@ class InboxesClient {
|
|
|
133
133
|
/**
|
|
134
134
|
* **CLI:**
|
|
135
135
|
* ```bash
|
|
136
|
-
* agentmail pods:inboxes
|
|
136
|
+
* agentmail pods:inboxes get --pod-id <pod_id> --inbox-id <inbox_id>
|
|
137
137
|
* ```
|
|
138
138
|
*
|
|
139
139
|
* @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
|
|
@@ -121,7 +121,7 @@ class ListsClient {
|
|
|
121
121
|
/**
|
|
122
122
|
* **CLI:**
|
|
123
123
|
* ```bash
|
|
124
|
-
* agentmail pods:lists
|
|
124
|
+
* agentmail pods:lists get --pod-id <pod_id> --direction <direction> --type <type> --entry <entry>
|
|
125
125
|
* ```
|
|
126
126
|
*
|
|
127
127
|
* @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
|
|
@@ -149,7 +149,7 @@ class ThreadsClient {
|
|
|
149
149
|
/**
|
|
150
150
|
* **CLI:**
|
|
151
151
|
* ```bash
|
|
152
|
-
* agentmail pods:threads
|
|
152
|
+
* agentmail pods:threads get --pod-id <pod_id> --thread-id <thread_id>
|
|
153
153
|
* ```
|
|
154
154
|
*
|
|
155
155
|
* @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
|
|
@@ -148,7 +148,7 @@ class ThreadsClient {
|
|
|
148
148
|
/**
|
|
149
149
|
* **CLI:**
|
|
150
150
|
* ```bash
|
|
151
|
-
* agentmail threads
|
|
151
|
+
* agentmail threads get --thread-id <thread_id>
|
|
152
152
|
* ```
|
|
153
153
|
*
|
|
154
154
|
* @param {AgentMail.ThreadId} thread_id
|
|
@@ -215,7 +215,7 @@ class ThreadsClient {
|
|
|
215
215
|
/**
|
|
216
216
|
* **CLI:**
|
|
217
217
|
* ```bash
|
|
218
|
-
* agentmail threads
|
|
218
|
+
* agentmail threads get-attachment --thread-id <thread_id> --attachment-id <attachment_id>
|
|
219
219
|
* ```
|
|
220
220
|
*
|
|
221
221
|
* @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.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
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
|
}
|
|
@@ -38,6 +38,8 @@ exports.EventType = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
exports.EventType = core.serialization.enum_([
|
|
40
40
|
"message.received",
|
|
41
|
+
"message.received.spam",
|
|
42
|
+
"message.received.blocked",
|
|
41
43
|
"message.sent",
|
|
42
44
|
"message.delivered",
|
|
43
45
|
"message.bounced",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { Message } from "../../messages/types/Message.js";
|
|
5
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.js";
|
|
6
|
+
import { EventId } from "./EventId.js";
|
|
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,48 @@
|
|
|
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.MessageReceivedBlockedEvent = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const Message_js_1 = require("../../messages/types/Message.js");
|
|
40
|
+
const ThreadItem_js_1 = require("../../threads/types/ThreadItem.js");
|
|
41
|
+
const EventId_js_1 = require("./EventId.js");
|
|
42
|
+
exports.MessageReceivedBlockedEvent = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("event"),
|
|
44
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.received.blocked")),
|
|
45
|
+
eventId: core.serialization.property("event_id", EventId_js_1.EventId),
|
|
46
|
+
message: Message_js_1.Message,
|
|
47
|
+
thread: ThreadItem_js_1.ThreadItem,
|
|
48
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { Message } from "../../messages/types/Message.js";
|
|
5
|
+
import { ThreadItem } from "../../threads/types/ThreadItem.js";
|
|
6
|
+
import { EventId } from "./EventId.js";
|
|
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,48 @@
|
|
|
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.MessageReceivedSpamEvent = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const Message_js_1 = require("../../messages/types/Message.js");
|
|
40
|
+
const ThreadItem_js_1 = require("../../threads/types/ThreadItem.js");
|
|
41
|
+
const EventId_js_1 = require("./EventId.js");
|
|
42
|
+
exports.MessageReceivedSpamEvent = core.serialization.object({
|
|
43
|
+
type: core.serialization.stringLiteral("event"),
|
|
44
|
+
eventType: core.serialization.property("event_type", core.serialization.stringLiteral("message.received.spam")),
|
|
45
|
+
eventId: core.serialization.property("event_id", EventId_js_1.EventId),
|
|
46
|
+
message: Message_js_1.Message,
|
|
47
|
+
thread: ThreadItem_js_1.ThreadItem,
|
|
48
|
+
});
|
|
@@ -9,7 +9,9 @@ export * from "./InboxIds.js";
|
|
|
9
9
|
export * from "./MessageBouncedEvent.js";
|
|
10
10
|
export * from "./MessageComplainedEvent.js";
|
|
11
11
|
export * from "./MessageDeliveredEvent.js";
|
|
12
|
+
export * from "./MessageReceivedBlockedEvent.js";
|
|
12
13
|
export * from "./MessageReceivedEvent.js";
|
|
14
|
+
export * from "./MessageReceivedSpamEvent.js";
|
|
13
15
|
export * from "./MessageRejectedEvent.js";
|
|
14
16
|
export * from "./MessageSentEvent.js";
|
|
15
17
|
export * from "./PodIds.js";
|
|
@@ -25,7 +25,9 @@ __exportStar(require("./InboxIds.js"), exports);
|
|
|
25
25
|
__exportStar(require("./MessageBouncedEvent.js"), exports);
|
|
26
26
|
__exportStar(require("./MessageComplainedEvent.js"), exports);
|
|
27
27
|
__exportStar(require("./MessageDeliveredEvent.js"), exports);
|
|
28
|
+
__exportStar(require("./MessageReceivedBlockedEvent.js"), exports);
|
|
28
29
|
__exportStar(require("./MessageReceivedEvent.js"), exports);
|
|
30
|
+
__exportStar(require("./MessageReceivedSpamEvent.js"), exports);
|
|
29
31
|
__exportStar(require("./MessageRejectedEvent.js"), exports);
|
|
30
32
|
__exportStar(require("./MessageSentEvent.js"), exports);
|
|
31
33
|
__exportStar(require("./PodIds.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { OrganizationId } from "../../../types/OrganizationId.js";
|
|
5
|
+
import { InboxId } from "../../inboxes/types/InboxId.js";
|
|
6
|
+
import { InboxEventId } from "./InboxEventId.js";
|
|
7
|
+
import { InboxEventType } from "./InboxEventType.js";
|
|
8
|
+
export declare const InboxEvent: core.serialization.ObjectSchema<serializers.InboxEvent.Raw, AgentMail.InboxEvent>;
|
|
9
|
+
export declare namespace InboxEvent {
|
|
10
|
+
interface Raw {
|
|
11
|
+
organization_id: OrganizationId.Raw;
|
|
12
|
+
pod_id: string;
|
|
13
|
+
inbox_id: InboxId.Raw;
|
|
14
|
+
event_id: InboxEventId.Raw;
|
|
15
|
+
event_type: InboxEventType.Raw;
|
|
16
|
+
message_id: string;
|
|
17
|
+
label: string;
|
|
18
|
+
event_at: string;
|
|
19
|
+
created_at: string;
|
|
20
|
+
}
|
|
21
|
+
}
|