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,53 @@
|
|
|
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.InboxEvent = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const OrganizationId_js_1 = require("../../../types/OrganizationId.js");
|
|
40
|
+
const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
|
|
41
|
+
const InboxEventId_js_1 = require("./InboxEventId.js");
|
|
42
|
+
const InboxEventType_js_1 = require("./InboxEventType.js");
|
|
43
|
+
exports.InboxEvent = core.serialization.object({
|
|
44
|
+
organizationId: core.serialization.property("organization_id", OrganizationId_js_1.OrganizationId),
|
|
45
|
+
podId: core.serialization.property("pod_id", core.serialization.string()),
|
|
46
|
+
inboxId: core.serialization.property("inbox_id", InboxId_js_1.InboxId),
|
|
47
|
+
eventId: core.serialization.property("event_id", InboxEventId_js_1.InboxEventId),
|
|
48
|
+
eventType: core.serialization.property("event_type", InboxEventType_js_1.InboxEventType),
|
|
49
|
+
messageId: core.serialization.property("message_id", core.serialization.string()),
|
|
50
|
+
label: core.serialization.string(),
|
|
51
|
+
eventAt: core.serialization.property("event_at", core.serialization.date()),
|
|
52
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
53
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const InboxEventId: core.serialization.Schema<serializers.InboxEventId.Raw, AgentMail.InboxEventId>;
|
|
5
|
+
export declare namespace InboxEventId {
|
|
6
|
+
type Raw = string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InboxEventId = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InboxEventId = core.serialization.string();
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const InboxEventType: core.serialization.Schema<serializers.InboxEventType.Raw, AgentMail.InboxEventType>;
|
|
5
|
+
export declare namespace InboxEventType {
|
|
6
|
+
type Raw = "label_added" | "label_removed";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.InboxEventType = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.InboxEventType = core.serialization.enum_(["label_added", "label_removed"]);
|
|
@@ -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 { Count } from "../../../types/Count.js";
|
|
5
|
+
import { Limit } from "../../../types/Limit.js";
|
|
6
|
+
import { PageToken } from "../../../types/PageToken.js";
|
|
7
|
+
import { InboxEvent } from "./InboxEvent.js";
|
|
8
|
+
export declare const ListInboxEventsResponse: core.serialization.ObjectSchema<serializers.ListInboxEventsResponse.Raw, AgentMail.ListInboxEventsResponse>;
|
|
9
|
+
export declare namespace ListInboxEventsResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
count: Count.Raw;
|
|
12
|
+
limit?: Limit.Raw | null;
|
|
13
|
+
next_page_token?: PageToken.Raw | null;
|
|
14
|
+
events: InboxEvent.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.ListInboxEventsResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const Count_js_1 = require("../../../types/Count.js");
|
|
40
|
+
const Limit_js_1 = require("../../../types/Limit.js");
|
|
41
|
+
const PageToken_js_1 = require("../../../types/PageToken.js");
|
|
42
|
+
const InboxEvent_js_1 = require("./InboxEvent.js");
|
|
43
|
+
exports.ListInboxEventsResponse = core.serialization.object({
|
|
44
|
+
count: Count_js_1.Count,
|
|
45
|
+
limit: Limit_js_1.Limit.optional(),
|
|
46
|
+
nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
|
|
47
|
+
events: core.serialization.list(InboxEvent_js_1.InboxEvent),
|
|
48
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./InboxEvent.js"), exports);
|
|
18
|
+
__exportStar(require("./InboxEventId.js"), exports);
|
|
19
|
+
__exportStar(require("./InboxEventType.js"), exports);
|
|
20
|
+
__exportStar(require("./ListInboxEventsResponse.js"), exports);
|
|
@@ -10,6 +10,8 @@ export * as drafts from "./drafts/index.js";
|
|
|
10
10
|
export * from "./drafts/types/index.js";
|
|
11
11
|
export * as events from "./events/index.js";
|
|
12
12
|
export * from "./events/types/index.js";
|
|
13
|
+
export * as inboxEvents from "./inboxEvents/index.js";
|
|
14
|
+
export * from "./inboxEvents/types/index.js";
|
|
13
15
|
export * as inboxes from "./inboxes/index.js";
|
|
14
16
|
export * as lists from "./lists/index.js";
|
|
15
17
|
export * from "./lists/types/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
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
@@ -49,6 +49,8 @@ exports.drafts = __importStar(require("./drafts/index.js"));
|
|
|
49
49
|
__exportStar(require("./drafts/types/index.js"), exports);
|
|
50
50
|
exports.events = __importStar(require("./events/index.js"));
|
|
51
51
|
__exportStar(require("./events/types/index.js"), exports);
|
|
52
|
+
exports.inboxEvents = __importStar(require("./inboxEvents/index.js"));
|
|
53
|
+
__exportStar(require("./inboxEvents/types/index.js"), exports);
|
|
52
54
|
exports.inboxes = __importStar(require("./inboxes/index.js"));
|
|
53
55
|
exports.lists = __importStar(require("./lists/index.js"));
|
|
54
56
|
__exportStar(require("./lists/types/index.js"), exports);
|
package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.d.ts
CHANGED
|
@@ -5,12 +5,14 @@ import { DomainVerifiedEvent } from "../../../events/types/DomainVerifiedEvent.j
|
|
|
5
5
|
import { MessageBouncedEvent } from "../../../events/types/MessageBouncedEvent.js";
|
|
6
6
|
import { MessageComplainedEvent } from "../../../events/types/MessageComplainedEvent.js";
|
|
7
7
|
import { MessageDeliveredEvent } from "../../../events/types/MessageDeliveredEvent.js";
|
|
8
|
+
import { MessageReceivedBlockedEvent } from "../../../events/types/MessageReceivedBlockedEvent.js";
|
|
8
9
|
import { MessageReceivedEvent } from "../../../events/types/MessageReceivedEvent.js";
|
|
10
|
+
import { MessageReceivedSpamEvent } from "../../../events/types/MessageReceivedSpamEvent.js";
|
|
9
11
|
import { MessageRejectedEvent } from "../../../events/types/MessageRejectedEvent.js";
|
|
10
12
|
import { MessageSentEvent } from "../../../events/types/MessageSentEvent.js";
|
|
11
13
|
import { Error_ } from "../../types/Error_.js";
|
|
12
14
|
import { Subscribed } from "../../types/Subscribed.js";
|
|
13
|
-
export declare const WebsocketsSocketResponse: core.serialization.Schema<serializers.WebsocketsSocketResponse.Raw, AgentMail.Subscribed | AgentMail.MessageReceivedEvent | AgentMail.MessageSentEvent | AgentMail.MessageDeliveredEvent | AgentMail.MessageBouncedEvent | AgentMail.MessageComplainedEvent | AgentMail.MessageRejectedEvent | AgentMail.DomainVerifiedEvent | AgentMail.Error_>;
|
|
15
|
+
export declare const WebsocketsSocketResponse: core.serialization.Schema<serializers.WebsocketsSocketResponse.Raw, AgentMail.Subscribed | AgentMail.MessageReceivedEvent | AgentMail.MessageReceivedSpamEvent | AgentMail.MessageReceivedBlockedEvent | AgentMail.MessageSentEvent | AgentMail.MessageDeliveredEvent | AgentMail.MessageBouncedEvent | AgentMail.MessageComplainedEvent | AgentMail.MessageRejectedEvent | AgentMail.DomainVerifiedEvent | AgentMail.Error_>;
|
|
14
16
|
export declare namespace WebsocketsSocketResponse {
|
|
15
|
-
type Raw = Subscribed.Raw | MessageReceivedEvent.Raw | MessageSentEvent.Raw | MessageDeliveredEvent.Raw | MessageBouncedEvent.Raw | MessageComplainedEvent.Raw | MessageRejectedEvent.Raw | DomainVerifiedEvent.Raw | Error_.Raw;
|
|
17
|
+
type Raw = Subscribed.Raw | MessageReceivedEvent.Raw | MessageReceivedSpamEvent.Raw | MessageReceivedBlockedEvent.Raw | MessageSentEvent.Raw | MessageDeliveredEvent.Raw | MessageBouncedEvent.Raw | MessageComplainedEvent.Raw | MessageRejectedEvent.Raw | DomainVerifiedEvent.Raw | Error_.Raw;
|
|
16
18
|
}
|
package/dist/cjs/serialization/resources/websockets/client/socket/WebsocketsSocketResponse.js
CHANGED
|
@@ -40,7 +40,9 @@ const DomainVerifiedEvent_js_1 = require("../../../events/types/DomainVerifiedEv
|
|
|
40
40
|
const MessageBouncedEvent_js_1 = require("../../../events/types/MessageBouncedEvent.js");
|
|
41
41
|
const MessageComplainedEvent_js_1 = require("../../../events/types/MessageComplainedEvent.js");
|
|
42
42
|
const MessageDeliveredEvent_js_1 = require("../../../events/types/MessageDeliveredEvent.js");
|
|
43
|
+
const MessageReceivedBlockedEvent_js_1 = require("../../../events/types/MessageReceivedBlockedEvent.js");
|
|
43
44
|
const MessageReceivedEvent_js_1 = require("../../../events/types/MessageReceivedEvent.js");
|
|
45
|
+
const MessageReceivedSpamEvent_js_1 = require("../../../events/types/MessageReceivedSpamEvent.js");
|
|
44
46
|
const MessageRejectedEvent_js_1 = require("../../../events/types/MessageRejectedEvent.js");
|
|
45
47
|
const MessageSentEvent_js_1 = require("../../../events/types/MessageSentEvent.js");
|
|
46
48
|
const Error__js_1 = require("../../types/Error_.js");
|
|
@@ -48,6 +50,8 @@ const Subscribed_js_1 = require("../../types/Subscribed.js");
|
|
|
48
50
|
exports.WebsocketsSocketResponse = core.serialization.undiscriminatedUnion([
|
|
49
51
|
Subscribed_js_1.Subscribed,
|
|
50
52
|
MessageReceivedEvent_js_1.MessageReceivedEvent,
|
|
53
|
+
MessageReceivedSpamEvent_js_1.MessageReceivedSpamEvent,
|
|
54
|
+
MessageReceivedBlockedEvent_js_1.MessageReceivedBlockedEvent,
|
|
51
55
|
MessageSentEvent_js_1.MessageSentEvent,
|
|
52
56
|
MessageDeliveredEvent_js_1.MessageDeliveredEvent,
|
|
53
57
|
MessageBouncedEvent_js_1.MessageBouncedEvent,
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.4.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.19";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "agentmail",
|
|
9
|
-
"X-Fern-SDK-Version": "0.4.
|
|
10
|
-
"User-Agent": "agentmail/0.4.
|
|
9
|
+
"X-Fern-SDK-Version": "0.4.19",
|
|
10
|
+
"User-Agent": "agentmail/0.4.19",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const EventType: {
|
|
2
2
|
readonly MessageReceived: "message.received";
|
|
3
|
+
readonly MessageReceivedSpam: "message.received.spam";
|
|
4
|
+
readonly MessageReceivedBlocked: "message.received.blocked";
|
|
3
5
|
readonly MessageSent: "message.sent";
|
|
4
6
|
readonly MessageDelivered: "message.delivered";
|
|
5
7
|
readonly MessageBounced: "message.bounced";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
export const EventType = {
|
|
3
3
|
MessageReceived: "message.received",
|
|
4
|
+
MessageReceivedSpam: "message.received.spam",
|
|
5
|
+
MessageReceivedBlocked: "message.received.blocked",
|
|
4
6
|
MessageSent: "message.sent",
|
|
5
7
|
MessageDelivered: "message.delivered",
|
|
6
8
|
MessageBounced: "message.bounced",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A message was received and matched a block list entry. Requires `label_blocked_read` permission.
|
|
4
|
+
*/
|
|
5
|
+
export interface MessageReceivedBlockedEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.received.blocked";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
message: AgentMail.Message;
|
|
10
|
+
thread: AgentMail.ThreadItem;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* A message was received and classified as spam. Requires `label_spam_read` permission.
|
|
4
|
+
*/
|
|
5
|
+
export interface MessageReceivedSpamEvent {
|
|
6
|
+
type: "event";
|
|
7
|
+
eventType: "message.received.spam";
|
|
8
|
+
eventId: AgentMail.EventId;
|
|
9
|
+
message: AgentMail.Message;
|
|
10
|
+
thread: AgentMail.ThreadItem;
|
|
11
|
+
}
|
|
@@ -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";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
export interface InboxEvent {
|
|
3
|
+
organizationId: AgentMail.OrganizationId;
|
|
4
|
+
/** ID of pod. */
|
|
5
|
+
podId: string;
|
|
6
|
+
inboxId: AgentMail.inboxes.InboxId;
|
|
7
|
+
eventId: AgentMail.InboxEventId;
|
|
8
|
+
eventType: AgentMail.InboxEventType;
|
|
9
|
+
/** ID of message. */
|
|
10
|
+
messageId: string;
|
|
11
|
+
/** Label added or removed. */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Time at which the event occurred. */
|
|
14
|
+
eventAt: Date;
|
|
15
|
+
/** Time at which the event was recorded. */
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../index.mjs";
|
|
2
|
+
export interface ListInboxEventsResponse {
|
|
3
|
+
count: AgentMail.Count;
|
|
4
|
+
limit?: AgentMail.Limit;
|
|
5
|
+
nextPageToken?: AgentMail.PageToken;
|
|
6
|
+
/** Ordered by `event_id` descending. */
|
|
7
|
+
events: AgentMail.InboxEvent[];
|
|
8
|
+
}
|
|
@@ -4,6 +4,7 @@ import * as core from "../../../../core/index.mjs";
|
|
|
4
4
|
import * as AgentMail from "../../../index.mjs";
|
|
5
5
|
import { ApiKeysClient } from "../resources/apiKeys/client/Client.mjs";
|
|
6
6
|
import { DraftsClient } from "../resources/drafts/client/Client.mjs";
|
|
7
|
+
import { EventsClient } from "../resources/events/client/Client.mjs";
|
|
7
8
|
import { ListsClient } from "../resources/lists/client/Client.mjs";
|
|
8
9
|
import { MessagesClient } from "../resources/messages/client/Client.mjs";
|
|
9
10
|
import { MetricsClient } from "../resources/metrics/client/Client.mjs";
|
|
@@ -20,6 +21,7 @@ export declare class InboxesClient {
|
|
|
20
21
|
protected _drafts: DraftsClient | undefined;
|
|
21
22
|
protected _lists: ListsClient | undefined;
|
|
22
23
|
protected _metrics: MetricsClient | undefined;
|
|
24
|
+
protected _events: EventsClient | undefined;
|
|
23
25
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
24
26
|
constructor(options?: InboxesClient.Options);
|
|
25
27
|
get threads(): ThreadsClient;
|
|
@@ -27,6 +29,7 @@ export declare class InboxesClient {
|
|
|
27
29
|
get drafts(): DraftsClient;
|
|
28
30
|
get lists(): ListsClient;
|
|
29
31
|
get metrics(): MetricsClient;
|
|
32
|
+
get events(): EventsClient;
|
|
30
33
|
get apiKeys(): ApiKeysClient;
|
|
31
34
|
/**
|
|
32
35
|
* **CLI:**
|
|
@@ -45,7 +48,7 @@ export declare class InboxesClient {
|
|
|
45
48
|
/**
|
|
46
49
|
* **CLI:**
|
|
47
50
|
* ```bash
|
|
48
|
-
* agentmail inboxes
|
|
51
|
+
* agentmail inboxes get --inbox-id <inbox_id>
|
|
49
52
|
* ```
|
|
50
53
|
*
|
|
51
54
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -18,6 +18,7 @@ import * as serializers from "../../../../serialization/index.mjs";
|
|
|
18
18
|
import * as AgentMail from "../../../index.mjs";
|
|
19
19
|
import { ApiKeysClient } from "../resources/apiKeys/client/Client.mjs";
|
|
20
20
|
import { DraftsClient } from "../resources/drafts/client/Client.mjs";
|
|
21
|
+
import { EventsClient } from "../resources/events/client/Client.mjs";
|
|
21
22
|
import { ListsClient } from "../resources/lists/client/Client.mjs";
|
|
22
23
|
import { MessagesClient } from "../resources/messages/client/Client.mjs";
|
|
23
24
|
import { MetricsClient } from "../resources/metrics/client/Client.mjs";
|
|
@@ -46,6 +47,10 @@ export class InboxesClient {
|
|
|
46
47
|
var _a;
|
|
47
48
|
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
|
|
48
49
|
}
|
|
50
|
+
get events() {
|
|
51
|
+
var _a;
|
|
52
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new EventsClient(this._options)));
|
|
53
|
+
}
|
|
49
54
|
get apiKeys() {
|
|
50
55
|
var _a;
|
|
51
56
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
@@ -113,7 +118,7 @@ export class InboxesClient {
|
|
|
113
118
|
/**
|
|
114
119
|
* **CLI:**
|
|
115
120
|
* ```bash
|
|
116
|
-
* agentmail inboxes
|
|
121
|
+
* agentmail inboxes get --inbox-id <inbox_id>
|
|
117
122
|
* ```
|
|
118
123
|
*
|
|
119
124
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -30,7 +30,7 @@ export declare class DraftsClient {
|
|
|
30
30
|
/**
|
|
31
31
|
* **CLI:**
|
|
32
32
|
* ```bash
|
|
33
|
-
* agentmail inboxes:drafts
|
|
33
|
+
* agentmail inboxes:drafts get --inbox-id <inbox_id> --draft-id <draft_id>
|
|
34
34
|
* ```
|
|
35
35
|
*
|
|
36
36
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
@@ -110,7 +110,7 @@ export class DraftsClient {
|
|
|
110
110
|
/**
|
|
111
111
|
* **CLI:**
|
|
112
112
|
* ```bash
|
|
113
|
-
* agentmail inboxes:drafts
|
|
113
|
+
* agentmail inboxes:drafts get --inbox-id <inbox_id> --draft-id <draft_id>
|
|
114
114
|
* ```
|
|
115
115
|
*
|
|
116
116
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|