agentmail 0.3.2 → 0.3.4
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/Client.d.ts +3 -0
- package/dist/cjs/Client.js +17 -12
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +2 -1
- package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -0
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +2 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/lists/client/Client.d.ts +65 -0
- package/dist/cjs/api/resources/lists/client/Client.js +307 -0
- package/dist/cjs/api/resources/lists/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/lists/client/index.js +17 -0
- package/dist/cjs/api/resources/lists/client/requests/ListListEntriesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/lists/client/requests/ListListEntriesRequest.js +3 -0
- package/dist/cjs/api/resources/lists/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/lists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/lists/index.d.ts +2 -0
- package/dist/cjs/api/resources/lists/index.js +18 -0
- package/dist/cjs/api/resources/lists/types/CreateListEntryRequest.d.ts +6 -0
- package/dist/cjs/api/resources/lists/types/CreateListEntryRequest.js +3 -0
- package/dist/cjs/api/resources/lists/types/Direction.d.ts +6 -0
- package/dist/cjs/api/resources/lists/types/Direction.js +9 -0
- package/dist/cjs/api/resources/lists/types/EntryType.d.ts +6 -0
- package/dist/cjs/api/resources/lists/types/EntryType.js +9 -0
- package/dist/cjs/api/resources/lists/types/ListEntry.d.ts +3 -0
- package/dist/cjs/api/resources/lists/types/ListEntry.js +3 -0
- package/dist/cjs/api/resources/lists/types/ListEntryBase.d.ts +13 -0
- package/dist/cjs/api/resources/lists/types/ListEntryBase.js +3 -0
- package/dist/cjs/api/resources/lists/types/ListListEntriesResponse.d.ts +8 -0
- package/dist/cjs/api/resources/lists/types/ListListEntriesResponse.js +3 -0
- package/dist/cjs/api/resources/lists/types/ListType.d.ts +6 -0
- package/dist/cjs/api/resources/lists/types/ListType.js +9 -0
- package/dist/cjs/api/resources/lists/types/PodListEntry.d.ts +7 -0
- package/dist/cjs/api/resources/lists/types/PodListEntry.js +3 -0
- package/dist/cjs/api/resources/lists/types/PodListListEntriesResponse.d.ts +8 -0
- package/dist/cjs/api/resources/lists/types/PodListListEntriesResponse.js +3 -0
- package/dist/cjs/api/resources/lists/types/index.d.ts +9 -0
- package/dist/cjs/api/resources/lists/types/index.js +25 -0
- package/dist/cjs/api/resources/pods/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/pods/client/Client.js +7 -2
- package/dist/cjs/api/resources/pods/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/pods/resources/index.js +3 -1
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +311 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/index.js +17 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.js +3 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/lists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pods/resources/lists/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/lists/index.js +17 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +2 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
- package/dist/cjs/api/resources/threads/client/Client.js +2 -1
- package/dist/cjs/api/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
- package/dist/cjs/api/types/IncludeBlocked.d.ts +4 -0
- package/dist/cjs/api/types/IncludeBlocked.js +3 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/lists/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/lists/index.js +17 -0
- package/dist/cjs/serialization/resources/lists/types/CreateListEntryRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/lists/types/CreateListEntryRequest.js +42 -0
- package/dist/cjs/serialization/resources/lists/types/Direction.d.ts +7 -0
- package/dist/cjs/serialization/resources/lists/types/Direction.js +39 -0
- package/dist/cjs/serialization/resources/lists/types/EntryType.d.ts +7 -0
- package/dist/cjs/serialization/resources/lists/types/EntryType.js +39 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntry.d.ts +9 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntry.js +40 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntryBase.d.ts +19 -0
- package/dist/cjs/serialization/resources/lists/types/ListEntryBase.js +51 -0
- package/dist/cjs/serialization/resources/lists/types/ListListEntriesResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/lists/types/ListListEntriesResponse.js +48 -0
- package/dist/cjs/serialization/resources/lists/types/ListType.d.ts +7 -0
- package/dist/cjs/serialization/resources/lists/types/ListType.js +39 -0
- package/dist/cjs/serialization/resources/lists/types/PodListEntry.d.ts +11 -0
- package/dist/cjs/serialization/resources/lists/types/PodListEntry.js +45 -0
- package/dist/cjs/serialization/resources/lists/types/PodListListEntriesResponse.d.ts +16 -0
- package/dist/cjs/serialization/resources/lists/types/PodListListEntriesResponse.js +48 -0
- package/dist/cjs/serialization/resources/lists/types/index.d.ts +9 -0
- package/dist/cjs/serialization/resources/lists/types/index.js +25 -0
- package/dist/cjs/serialization/types/IncludeBlocked.d.ts +7 -0
- package/dist/cjs/serialization/types/IncludeBlocked.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +1 -0
- package/dist/cjs/serialization/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/Client.d.ts +4 -4
- package/dist/cjs/wrapper/Client.js +7 -7
- package/dist/cjs/wrapper/mppx.d.ts +8 -0
- package/dist/cjs/wrapper/{mpp.js → mppx.js} +5 -5
- package/dist/{esm/wrapper/probe402.d.mts → cjs/wrapper/util.d.ts} +1 -0
- package/dist/cjs/wrapper/{probe402.js → util.js} +5 -1
- package/dist/cjs/wrapper/x402.js +2 -2
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +2 -1
- package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +1 -0
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +2 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/lists/client/Client.d.mts +65 -0
- package/dist/esm/api/resources/lists/client/Client.mjs +270 -0
- package/dist/esm/api/resources/lists/client/index.d.mts +1 -0
- package/dist/esm/api/resources/lists/client/index.mjs +1 -0
- package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
- package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
- package/dist/esm/api/resources/lists/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/lists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/lists/index.d.mts +2 -0
- package/dist/esm/api/resources/lists/index.mjs +2 -0
- package/dist/esm/api/resources/lists/types/CreateListEntryRequest.d.mts +6 -0
- package/dist/esm/api/resources/lists/types/CreateListEntryRequest.mjs +2 -0
- package/dist/esm/api/resources/lists/types/Direction.d.mts +6 -0
- package/dist/esm/api/resources/lists/types/Direction.mjs +6 -0
- package/dist/esm/api/resources/lists/types/EntryType.d.mts +6 -0
- package/dist/esm/api/resources/lists/types/EntryType.mjs +6 -0
- package/dist/esm/api/resources/lists/types/ListEntry.d.mts +3 -0
- package/dist/esm/api/resources/lists/types/ListEntry.mjs +2 -0
- package/dist/esm/api/resources/lists/types/ListEntryBase.d.mts +13 -0
- package/dist/esm/api/resources/lists/types/ListEntryBase.mjs +2 -0
- package/dist/esm/api/resources/lists/types/ListListEntriesResponse.d.mts +8 -0
- package/dist/esm/api/resources/lists/types/ListListEntriesResponse.mjs +2 -0
- package/dist/esm/api/resources/lists/types/ListType.d.mts +6 -0
- package/dist/esm/api/resources/lists/types/ListType.mjs +6 -0
- package/dist/esm/api/resources/lists/types/PodListEntry.d.mts +7 -0
- package/dist/esm/api/resources/lists/types/PodListEntry.mjs +2 -0
- package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.d.mts +8 -0
- package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.mjs +2 -0
- package/dist/esm/api/resources/lists/types/index.d.mts +9 -0
- package/dist/esm/api/resources/lists/types/index.mjs +9 -0
- package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
- package/dist/esm/api/resources/pods/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/pods/resources/index.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +274 -0
- package/dist/esm/api/resources/pods/resources/lists/client/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/lists/client/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
- package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/lists/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/lists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/lists/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/lists/index.mjs +1 -0
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +2 -1
- package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +2 -1
- package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
- package/dist/esm/api/types/IncludeBlocked.d.mts +4 -0
- package/dist/esm/api/types/IncludeBlocked.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -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/lists/index.d.mts +1 -0
- package/dist/esm/serialization/resources/lists/index.mjs +1 -0
- package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.mjs +6 -0
- package/dist/esm/serialization/resources/lists/types/Direction.d.mts +7 -0
- package/dist/esm/serialization/resources/lists/types/Direction.mjs +3 -0
- package/dist/esm/serialization/resources/lists/types/EntryType.d.mts +7 -0
- package/dist/esm/serialization/resources/lists/types/EntryType.mjs +3 -0
- package/dist/esm/serialization/resources/lists/types/ListEntry.d.mts +9 -0
- package/dist/esm/serialization/resources/lists/types/ListEntry.mjs +4 -0
- package/dist/esm/serialization/resources/lists/types/ListEntryBase.d.mts +19 -0
- package/dist/esm/serialization/resources/lists/types/ListEntryBase.mjs +15 -0
- package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.mjs +12 -0
- package/dist/esm/serialization/resources/lists/types/ListType.d.mts +7 -0
- package/dist/esm/serialization/resources/lists/types/ListType.mjs +3 -0
- package/dist/esm/serialization/resources/lists/types/PodListEntry.d.mts +11 -0
- package/dist/esm/serialization/resources/lists/types/PodListEntry.mjs +9 -0
- package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.d.mts +16 -0
- package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.mjs +12 -0
- package/dist/esm/serialization/resources/lists/types/index.d.mts +9 -0
- package/dist/esm/serialization/resources/lists/types/index.mjs +9 -0
- package/dist/esm/serialization/types/IncludeBlocked.d.mts +7 -0
- package/dist/esm/serialization/types/IncludeBlocked.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +1 -0
- package/dist/esm/serialization/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/Client.d.mts +4 -4
- package/dist/esm/wrapper/Client.mjs +7 -7
- package/dist/esm/wrapper/mppx.d.mts +8 -0
- package/dist/esm/wrapper/{mpp.mjs → mppx.mjs} +4 -4
- package/dist/{cjs/wrapper/probe402.d.ts → esm/wrapper/util.d.mts} +1 -0
- package/dist/esm/wrapper/{probe402.mjs → util.mjs} +4 -1
- package/dist/esm/wrapper/x402.mjs +1 -1
- package/dist/llms-full.txt +5436 -3440
- package/dist/llms.txt +15 -1
- package/package.json +1 -1
- package/reference.md +558 -0
- package/dist/cjs/wrapper/mpp.d.ts +0 -2
- package/dist/esm/wrapper/mpp.d.mts +0 -2
|
@@ -0,0 +1,45 @@
|
|
|
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.PodListEntry = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const ListEntryBase_js_1 = require("./ListEntryBase.js");
|
|
40
|
+
exports.PodListEntry = core.serialization
|
|
41
|
+
.object({
|
|
42
|
+
podId: core.serialization.property("pod_id", core.serialization.string()),
|
|
43
|
+
inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
|
|
44
|
+
})
|
|
45
|
+
.extend(ListEntryBase_js_1.ListEntryBase);
|
|
@@ -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 { PodListEntry } from "./PodListEntry.js";
|
|
8
|
+
export declare const PodListListEntriesResponse: core.serialization.ObjectSchema<serializers.PodListListEntriesResponse.Raw, AgentMail.PodListListEntriesResponse>;
|
|
9
|
+
export declare namespace PodListListEntriesResponse {
|
|
10
|
+
interface Raw {
|
|
11
|
+
count: Count.Raw;
|
|
12
|
+
limit?: Limit.Raw | null;
|
|
13
|
+
next_page_token?: PageToken.Raw | null;
|
|
14
|
+
entries: PodListEntry.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.PodListListEntriesResponse = 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 PodListEntry_js_1 = require("./PodListEntry.js");
|
|
43
|
+
exports.PodListListEntriesResponse = 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
|
+
entries: core.serialization.list(PodListEntry_js_1.PodListEntry),
|
|
48
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from "./CreateListEntryRequest.js";
|
|
2
|
+
export * from "./Direction.js";
|
|
3
|
+
export * from "./EntryType.js";
|
|
4
|
+
export * from "./ListEntry.js";
|
|
5
|
+
export * from "./ListEntryBase.js";
|
|
6
|
+
export * from "./ListListEntriesResponse.js";
|
|
7
|
+
export * from "./ListType.js";
|
|
8
|
+
export * from "./PodListEntry.js";
|
|
9
|
+
export * from "./PodListListEntriesResponse.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
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("./CreateListEntryRequest.js"), exports);
|
|
18
|
+
__exportStar(require("./Direction.js"), exports);
|
|
19
|
+
__exportStar(require("./EntryType.js"), exports);
|
|
20
|
+
__exportStar(require("./ListEntry.js"), exports);
|
|
21
|
+
__exportStar(require("./ListEntryBase.js"), exports);
|
|
22
|
+
__exportStar(require("./ListListEntriesResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./ListType.js"), exports);
|
|
24
|
+
__exportStar(require("./PodListEntry.js"), exports);
|
|
25
|
+
__exportStar(require("./PodListListEntriesResponse.js"), exports);
|
|
@@ -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 IncludeBlocked: core.serialization.Schema<serializers.IncludeBlocked.Raw, AgentMail.IncludeBlocked>;
|
|
5
|
+
export declare namespace IncludeBlocked {
|
|
6
|
+
type Raw = boolean;
|
|
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.IncludeBlocked = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.IncludeBlocked = core.serialization.boolean();
|
|
@@ -5,6 +5,7 @@ export * from "./Count.js";
|
|
|
5
5
|
export * from "./ErrorMessage.js";
|
|
6
6
|
export * from "./ErrorName.js";
|
|
7
7
|
export * from "./ErrorResponse.js";
|
|
8
|
+
export * from "./IncludeBlocked.js";
|
|
8
9
|
export * from "./IncludeSpam.js";
|
|
9
10
|
export * from "./Labels.js";
|
|
10
11
|
export * from "./Limit.js";
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./Count.js"), exports);
|
|
|
21
21
|
__exportStar(require("./ErrorMessage.js"), exports);
|
|
22
22
|
__exportStar(require("./ErrorName.js"), exports);
|
|
23
23
|
__exportStar(require("./ErrorResponse.js"), exports);
|
|
24
|
+
__exportStar(require("./IncludeBlocked.js"), exports);
|
|
24
25
|
__exportStar(require("./IncludeSpam.js"), exports);
|
|
25
26
|
__exportStar(require("./Labels.js"), exports);
|
|
26
27
|
__exportStar(require("./Limit.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.3.
|
|
1
|
+
export declare const SDK_VERSION = "0.3.4";
|
package/dist/cjs/version.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import type { x402Client } from "@x402/fetch";
|
|
2
|
-
import type { Mppx } from "mppx/client";
|
|
3
2
|
import { Supplier } from "../core/index.js";
|
|
4
3
|
import { AgentMailClient as FernAgentMailClient } from "../Client.js";
|
|
5
4
|
import { WebsocketsClient } from "./WebsocketsClient.js";
|
|
5
|
+
import { type MppxClient } from "./mppx.js";
|
|
6
6
|
type SharedOptions = Omit<FernAgentMailClient.Options, "apiKey">;
|
|
7
7
|
export declare namespace AgentMailClient {
|
|
8
8
|
type Options = SharedOptions & ({
|
|
9
9
|
x402: x402Client;
|
|
10
|
-
|
|
10
|
+
mppx?: never;
|
|
11
11
|
apiKey?: never;
|
|
12
12
|
} | {
|
|
13
|
-
|
|
13
|
+
mppx: MppxClient;
|
|
14
14
|
x402?: never;
|
|
15
15
|
apiKey?: never;
|
|
16
16
|
} | {
|
|
17
17
|
apiKey?: Supplier<string>;
|
|
18
18
|
x402?: never;
|
|
19
|
-
|
|
19
|
+
mppx?: never;
|
|
20
20
|
});
|
|
21
21
|
type RequestOptions = FernAgentMailClient.RequestOptions;
|
|
22
22
|
}
|
|
@@ -60,7 +60,7 @@ const environments_js_1 = require("../environments.js");
|
|
|
60
60
|
const Client_js_1 = require("../Client.js");
|
|
61
61
|
const WebsocketsClient_js_1 = require("./WebsocketsClient.js");
|
|
62
62
|
const x402_js_1 = require("./x402.js");
|
|
63
|
-
const
|
|
63
|
+
const mppx_js_1 = require("./mppx.js");
|
|
64
64
|
class AgentMailClient extends Client_js_1.AgentMailClient {
|
|
65
65
|
get websockets() {
|
|
66
66
|
var _a;
|
|
@@ -72,8 +72,8 @@ class AgentMailClient extends Client_js_1.AgentMailClient {
|
|
|
72
72
|
let wrappedFetch;
|
|
73
73
|
const fernOptions = Object.assign(Object.assign({}, rest), { authProvider: new NoOpAuthProvider_js_1.NoOpAuthProvider(), fetch: (input, init) => __awaiter(this, void 0, void 0, function* () {
|
|
74
74
|
if (!wrappedFetch) {
|
|
75
|
-
const
|
|
76
|
-
wrappedFetch =
|
|
75
|
+
const { wrapFetchWithPayment } = yield Promise.resolve().then(() => __importStar(require("@x402/fetch")));
|
|
76
|
+
wrappedFetch = wrapFetchWithPayment(fetch, x402);
|
|
77
77
|
}
|
|
78
78
|
return wrappedFetch(input, init);
|
|
79
79
|
}) });
|
|
@@ -83,14 +83,14 @@ class AgentMailClient extends Client_js_1.AgentMailClient {
|
|
|
83
83
|
super(fernOptions);
|
|
84
84
|
this._getPaymentCredentials = (wsUrl) => (0, x402_js_1.getPaymentCredentials)(wsUrl, x402);
|
|
85
85
|
}
|
|
86
|
-
else if (options.
|
|
87
|
-
const {
|
|
88
|
-
const fernOptions = Object.assign(Object.assign({}, rest), { authProvider: new NoOpAuthProvider_js_1.NoOpAuthProvider(), fetch:
|
|
86
|
+
else if (options.mppx) {
|
|
87
|
+
const { mppx } = options, rest = __rest(options, ["mppx"]);
|
|
88
|
+
const fernOptions = Object.assign(Object.assign({}, rest), { authProvider: new NoOpAuthProvider_js_1.NoOpAuthProvider(), fetch: mppx.fetch });
|
|
89
89
|
if (!fernOptions.environment && !fernOptions.baseUrl) {
|
|
90
90
|
fernOptions.environment = environments_js_1.AgentMailEnvironment.ProdMpp;
|
|
91
91
|
}
|
|
92
92
|
super(fernOptions);
|
|
93
|
-
this._getPaymentCredentials = (wsUrl) => (0,
|
|
93
|
+
this._getPaymentCredentials = (wsUrl) => (0, mppx_js_1.getPaymentCredentials)(wsUrl, mppx);
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
96
96
|
let fernOptions = options;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface MppxClient {
|
|
2
|
+
fetch: typeof globalThis.fetch;
|
|
3
|
+
transport: {
|
|
4
|
+
setCredential(request: Request, credential: string): Request;
|
|
5
|
+
};
|
|
6
|
+
createCredential(response: Response): Promise<string>;
|
|
7
|
+
}
|
|
8
|
+
export declare function getPaymentCredentials(wsUrl: string, mppx: MppxClient): Promise<Record<string, string>>;
|
|
@@ -10,12 +10,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.getPaymentCredentials = getPaymentCredentials;
|
|
13
|
-
const
|
|
14
|
-
function getPaymentCredentials(wsUrl,
|
|
13
|
+
const util_js_1 = require("./util.js");
|
|
14
|
+
function getPaymentCredentials(wsUrl, mppx) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
-
const response = yield (0,
|
|
17
|
-
const credential = yield
|
|
18
|
-
const signed =
|
|
16
|
+
const response = yield (0, util_js_1.probe402)(wsUrl);
|
|
17
|
+
const credential = yield mppx.createCredential(response);
|
|
18
|
+
const signed = mppx.transport.setCredential(new Request((0, util_js_1.wsToHttp)(wsUrl)), credential);
|
|
19
19
|
const headers = {};
|
|
20
20
|
signed.headers.forEach((value, key) => {
|
|
21
21
|
headers[key] = value;
|
|
@@ -9,10 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.wsToHttp = wsToHttp;
|
|
12
13
|
exports.probe402 = probe402;
|
|
14
|
+
function wsToHttp(wsUrl) {
|
|
15
|
+
return wsUrl.replace(/^wss:\/\//, "https://").replace(/^ws:\/\//, "http://");
|
|
16
|
+
}
|
|
13
17
|
function probe402(wsUrl) {
|
|
14
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15
|
-
const httpUrl = wsUrl
|
|
19
|
+
const httpUrl = wsToHttp(wsUrl);
|
|
16
20
|
const response = yield fetch(httpUrl);
|
|
17
21
|
if (response.status !== 402) {
|
|
18
22
|
throw new Error(`Expected 402 from ${httpUrl} but got ${response.status}`);
|
package/dist/cjs/wrapper/x402.js
CHANGED
|
@@ -43,12 +43,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
};
|
|
44
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
45
45
|
exports.getPaymentCredentials = getPaymentCredentials;
|
|
46
|
-
const
|
|
46
|
+
const util_js_1 = require("./util.js");
|
|
47
47
|
function getPaymentCredentials(wsUrl, client) {
|
|
48
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
49
49
|
const { x402HTTPClient } = yield Promise.resolve().then(() => __importStar(require("@x402/fetch")));
|
|
50
50
|
const httpClient = new x402HTTPClient(client);
|
|
51
|
-
const response = yield (0,
|
|
51
|
+
const response = yield (0, util_js_1.probe402)(wsUrl);
|
|
52
52
|
let body;
|
|
53
53
|
try {
|
|
54
54
|
body = JSON.parse(yield response.text());
|
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.3.
|
|
10
|
-
"User-Agent": "agentmail/0.3.
|
|
9
|
+
"X-Fern-SDK-Version": "0.3.4",
|
|
10
|
+
"User-Agent": "agentmail/0.3.4",
|
|
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);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -2,6 +2,7 @@ import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
|
2
2
|
import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
3
3
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
4
4
|
import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
|
|
5
|
+
import { ListsClient } from "./api/resources/lists/client/Client.mjs";
|
|
5
6
|
import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
|
|
6
7
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
7
8
|
import { PodsClient } from "./api/resources/pods/client/Client.mjs";
|
|
@@ -23,6 +24,7 @@ export declare class AgentMailClient {
|
|
|
23
24
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
24
25
|
protected _domains: DomainsClient | undefined;
|
|
25
26
|
protected _drafts: DraftsClient | undefined;
|
|
27
|
+
protected _lists: ListsClient | undefined;
|
|
26
28
|
protected _metrics: MetricsClient | undefined;
|
|
27
29
|
protected _organizations: OrganizationsClient | undefined;
|
|
28
30
|
protected _threads: ThreadsClient | undefined;
|
|
@@ -34,6 +36,7 @@ export declare class AgentMailClient {
|
|
|
34
36
|
get apiKeys(): ApiKeysClient;
|
|
35
37
|
get domains(): DomainsClient;
|
|
36
38
|
get drafts(): DraftsClient;
|
|
39
|
+
get lists(): ListsClient;
|
|
37
40
|
get metrics(): MetricsClient;
|
|
38
41
|
get organizations(): OrganizationsClient;
|
|
39
42
|
get threads(): ThreadsClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -3,6 +3,7 @@ import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
|
3
3
|
import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
|
|
4
4
|
import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
|
|
5
5
|
import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
|
|
6
|
+
import { ListsClient } from "./api/resources/lists/client/Client.mjs";
|
|
6
7
|
import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
|
|
7
8
|
import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
|
|
8
9
|
import { PodsClient } from "./api/resources/pods/client/Client.mjs";
|
|
@@ -38,6 +39,10 @@ export class AgentMailClient {
|
|
|
38
39
|
var _a;
|
|
39
40
|
return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new DraftsClient(this._options)));
|
|
40
41
|
}
|
|
42
|
+
get lists() {
|
|
43
|
+
var _a;
|
|
44
|
+
return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new ListsClient(this._options)));
|
|
45
|
+
}
|
|
41
46
|
get metrics() {
|
|
42
47
|
var _a;
|
|
43
48
|
return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
|
|
@@ -37,7 +37,7 @@ export class MessagesClient {
|
|
|
37
37
|
__list(inbox_id_1) {
|
|
38
38
|
return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
40
|
-
const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
|
|
40
|
+
const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
|
|
41
41
|
const _queryParams = {
|
|
42
42
|
limit,
|
|
43
43
|
page_token: pageToken,
|
|
@@ -55,6 +55,7 @@ export class MessagesClient {
|
|
|
55
55
|
: undefined,
|
|
56
56
|
ascending,
|
|
57
57
|
include_spam: includeSpam,
|
|
58
|
+
include_blocked: includeBlocked,
|
|
58
59
|
};
|
|
59
60
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
60
61
|
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);
|
|
@@ -37,7 +37,7 @@ export class ThreadsClient {
|
|
|
37
37
|
__list(inbox_id_1) {
|
|
38
38
|
return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
|
|
39
39
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
40
|
-
const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
|
|
40
|
+
const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
|
|
41
41
|
const _queryParams = {
|
|
42
42
|
limit,
|
|
43
43
|
page_token: pageToken,
|
|
@@ -55,6 +55,7 @@ export class ThreadsClient {
|
|
|
55
55
|
: undefined,
|
|
56
56
|
ascending,
|
|
57
57
|
include_spam: includeSpam,
|
|
58
|
+
include_blocked: includeBlocked,
|
|
58
59
|
};
|
|
59
60
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
60
61
|
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);
|
|
@@ -12,6 +12,9 @@ export * from "./drafts/types/index.mjs";
|
|
|
12
12
|
export * as events from "./events/index.mjs";
|
|
13
13
|
export * from "./events/types/index.mjs";
|
|
14
14
|
export * as inboxes from "./inboxes/index.mjs";
|
|
15
|
+
export * from "./lists/client/requests/index.mjs";
|
|
16
|
+
export * as lists from "./lists/index.mjs";
|
|
17
|
+
export * from "./lists/types/index.mjs";
|
|
15
18
|
export * from "./messages/errors/index.mjs";
|
|
16
19
|
export * as messages from "./messages/index.mjs";
|
|
17
20
|
export * from "./messages/types/index.mjs";
|
|
@@ -12,6 +12,9 @@ export * from "./drafts/types/index.mjs";
|
|
|
12
12
|
export * as events from "./events/index.mjs";
|
|
13
13
|
export * from "./events/types/index.mjs";
|
|
14
14
|
export * as inboxes from "./inboxes/index.mjs";
|
|
15
|
+
export * from "./lists/client/requests/index.mjs";
|
|
16
|
+
export * as lists from "./lists/index.mjs";
|
|
17
|
+
export * from "./lists/types/index.mjs";
|
|
15
18
|
export * from "./messages/errors/index.mjs";
|
|
16
19
|
export * as messages from "./messages/index.mjs";
|
|
17
20
|
export * from "./messages/types/index.mjs";
|
|
@@ -0,0 +1,65 @@
|
|
|
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 ListsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class ListsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ListsClient.Options>;
|
|
12
|
+
constructor(options?: ListsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {AgentMail.Direction} direction
|
|
15
|
+
* @param {AgentMail.ListType} type
|
|
16
|
+
* @param {AgentMail.CreateListEntryRequest} request
|
|
17
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link AgentMail.ValidationError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.lists.create("send", "allow", {
|
|
23
|
+
* entry: "entry"
|
|
24
|
+
* })
|
|
25
|
+
*/
|
|
26
|
+
create(direction: AgentMail.Direction, type: AgentMail.ListType, request: AgentMail.CreateListEntryRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListEntry>;
|
|
27
|
+
private __create;
|
|
28
|
+
/**
|
|
29
|
+
* @param {AgentMail.Direction} direction
|
|
30
|
+
* @param {AgentMail.ListType} type
|
|
31
|
+
* @param {AgentMail.ListListEntriesRequest} request
|
|
32
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.lists.list("send", "allow")
|
|
36
|
+
*/
|
|
37
|
+
list(direction: AgentMail.Direction, type: AgentMail.ListType, request?: AgentMail.ListListEntriesRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListListEntriesResponse>;
|
|
38
|
+
private __list;
|
|
39
|
+
/**
|
|
40
|
+
* @param {AgentMail.Direction} direction
|
|
41
|
+
* @param {AgentMail.ListType} type
|
|
42
|
+
* @param {string} entry - Email address or domain.
|
|
43
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
|
+
*
|
|
45
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* await client.lists.get("send", "allow", "entry")
|
|
49
|
+
*/
|
|
50
|
+
get(direction: AgentMail.Direction, type: AgentMail.ListType, entry: string, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListEntry>;
|
|
51
|
+
private __get;
|
|
52
|
+
/**
|
|
53
|
+
* @param {AgentMail.Direction} direction
|
|
54
|
+
* @param {AgentMail.ListType} type
|
|
55
|
+
* @param {string} entry - Email address or domain.
|
|
56
|
+
* @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link AgentMail.NotFoundError}
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.lists.delete("send", "allow", "entry")
|
|
62
|
+
*/
|
|
63
|
+
delete(direction: AgentMail.Direction, type: AgentMail.ListType, entry: string, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
64
|
+
private __delete;
|
|
65
|
+
}
|