agentmail 0.5.23 → 0.5.24
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/inboxes/resources/threads/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +11 -5
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.ts +11 -0
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.js +3 -0
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +11 -5
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.ts +11 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.js +3 -0
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -1
- package/dist/cjs/api/resources/threads/client/Client.js +11 -5
- package/dist/cjs/api/resources/threads/client/requests/GetThreadRequest.d.ts +11 -0
- package/dist/cjs/api/resources/threads/client/requests/GetThreadRequest.js +3 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/types/Thread.d.ts +7 -1
- package/dist/cjs/serialization/resources/threads/types/Thread.d.ts +6 -0
- package/dist/cjs/serialization/resources/threads/types/Thread.js +6 -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/inboxes/resources/threads/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +11 -5
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.mts +11 -0
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.mjs +2 -0
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +11 -5
- package/dist/esm/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.mts +11 -0
- package/dist/esm/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.mjs +2 -0
- package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/client/Client.d.mts +2 -1
- package/dist/esm/api/resources/threads/client/Client.mjs +11 -5
- package/dist/esm/api/resources/threads/client/requests/GetThreadRequest.d.mts +11 -0
- package/dist/esm/api/resources/threads/client/requests/GetThreadRequest.mjs +2 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/types/Thread.d.mts +7 -1
- package/dist/esm/serialization/resources/threads/types/Thread.d.mts +6 -0
- package/dist/esm/serialization/resources/threads/types/Thread.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +10 -0
- package/package.json +1 -1
- package/reference.md +27 -3
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "agentmail",
|
|
46
|
-
"X-Fern-SDK-Version": "0.5.
|
|
47
|
-
"User-Agent": "agentmail/0.5.
|
|
46
|
+
"X-Fern-SDK-Version": "0.5.24",
|
|
47
|
+
"User-Agent": "agentmail/0.5.24",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -60,6 +60,7 @@ export declare class ThreadsClient {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
62
62
|
* @param {AgentMail.ThreadId} thread_id
|
|
63
|
+
* @param {AgentMail.inboxes.GetInboxThreadRequest} request
|
|
63
64
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -67,7 +68,7 @@ export declare class ThreadsClient {
|
|
|
67
68
|
* @example
|
|
68
69
|
* await client.inboxes.threads.get("inbox_id", "thread_id")
|
|
69
70
|
*/
|
|
70
|
-
get(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
|
+
get(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, request?: AgentMail.inboxes.GetInboxThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
72
|
private __get;
|
|
72
73
|
/**
|
|
73
74
|
* **CLI:**
|
|
@@ -254,6 +254,7 @@ class ThreadsClient {
|
|
|
254
254
|
*
|
|
255
255
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
256
256
|
* @param {AgentMail.ThreadId} thread_id
|
|
257
|
+
* @param {AgentMail.inboxes.GetInboxThreadRequest} request
|
|
257
258
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
259
|
*
|
|
259
260
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -261,12 +262,17 @@ class ThreadsClient {
|
|
|
261
262
|
* @example
|
|
262
263
|
* await client.inboxes.threads.get("inbox_id", "thread_id")
|
|
263
264
|
*/
|
|
264
|
-
get(inbox_id, thread_id, requestOptions) {
|
|
265
|
-
return core.HttpResponsePromise.fromPromise(this.__get(inbox_id, thread_id, requestOptions));
|
|
265
|
+
get(inbox_id, thread_id, request = {}, requestOptions) {
|
|
266
|
+
return core.HttpResponsePromise.fromPromise(this.__get(inbox_id, thread_id, request, requestOptions));
|
|
266
267
|
}
|
|
267
|
-
__get(
|
|
268
|
-
return __awaiter(this,
|
|
268
|
+
__get(inbox_id_1, thread_id_1) {
|
|
269
|
+
return __awaiter(this, arguments, void 0, function* (inbox_id, thread_id, request = {}, requestOptions) {
|
|
269
270
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
271
|
+
const { limit, pageToken } = request;
|
|
272
|
+
const _queryParams = {
|
|
273
|
+
limit,
|
|
274
|
+
page_token: pageToken,
|
|
275
|
+
};
|
|
270
276
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
271
277
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
272
278
|
const _response = yield core.fetcher({
|
|
@@ -274,7 +280,7 @@ class ThreadsClient {
|
|
|
274
280
|
.http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
275
281
|
method: "GET",
|
|
276
282
|
headers: _headers,
|
|
277
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
283
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
278
284
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
279
285
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
280
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetInboxThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -60,6 +60,7 @@ export declare class ThreadsClient {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.pods.PodId} pod_id
|
|
62
62
|
* @param {AgentMail.ThreadId} thread_id
|
|
63
|
+
* @param {AgentMail.pods.GetPodThreadRequest} request
|
|
63
64
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -67,7 +68,7 @@ export declare class ThreadsClient {
|
|
|
67
68
|
* @example
|
|
68
69
|
* await client.pods.threads.get("pod_id", "thread_id")
|
|
69
70
|
*/
|
|
70
|
-
get(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
|
+
get(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, request?: AgentMail.pods.GetPodThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
72
|
private __get;
|
|
72
73
|
/**
|
|
73
74
|
* **CLI:**
|
|
@@ -254,6 +254,7 @@ class ThreadsClient {
|
|
|
254
254
|
*
|
|
255
255
|
* @param {AgentMail.pods.PodId} pod_id
|
|
256
256
|
* @param {AgentMail.ThreadId} thread_id
|
|
257
|
+
* @param {AgentMail.pods.GetPodThreadRequest} request
|
|
257
258
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
258
259
|
*
|
|
259
260
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -261,12 +262,17 @@ class ThreadsClient {
|
|
|
261
262
|
* @example
|
|
262
263
|
* await client.pods.threads.get("pod_id", "thread_id")
|
|
263
264
|
*/
|
|
264
|
-
get(pod_id, thread_id, requestOptions) {
|
|
265
|
-
return core.HttpResponsePromise.fromPromise(this.__get(pod_id, thread_id, requestOptions));
|
|
265
|
+
get(pod_id, thread_id, request = {}, requestOptions) {
|
|
266
|
+
return core.HttpResponsePromise.fromPromise(this.__get(pod_id, thread_id, request, requestOptions));
|
|
266
267
|
}
|
|
267
|
-
__get(
|
|
268
|
-
return __awaiter(this,
|
|
268
|
+
__get(pod_id_1, thread_id_1) {
|
|
269
|
+
return __awaiter(this, arguments, void 0, function* (pod_id, thread_id, request = {}, requestOptions) {
|
|
269
270
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
271
|
+
const { limit, pageToken } = request;
|
|
272
|
+
const _queryParams = {
|
|
273
|
+
limit,
|
|
274
|
+
page_token: pageToken,
|
|
275
|
+
};
|
|
270
276
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
271
277
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
272
278
|
const _response = yield core.fetcher({
|
|
@@ -274,7 +280,7 @@ class ThreadsClient {
|
|
|
274
280
|
.http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
275
281
|
method: "GET",
|
|
276
282
|
headers: _headers,
|
|
277
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
283
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
278
284
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
279
285
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
280
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/cjs/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetPodThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -59,6 +59,7 @@ export declare class ThreadsClient {
|
|
|
59
59
|
* ```
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.ThreadId} thread_id
|
|
62
|
+
* @param {AgentMail.GetThreadRequest} request
|
|
62
63
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -66,7 +67,7 @@ export declare class ThreadsClient {
|
|
|
66
67
|
* @example
|
|
67
68
|
* await client.threads.get("thread_id")
|
|
68
69
|
*/
|
|
69
|
-
get(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
70
|
+
get(thread_id: AgentMail.ThreadId, request?: AgentMail.GetThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
70
71
|
private __get;
|
|
71
72
|
/**
|
|
72
73
|
* **CLI:**
|
|
@@ -253,6 +253,7 @@ class ThreadsClient {
|
|
|
253
253
|
* ```
|
|
254
254
|
*
|
|
255
255
|
* @param {AgentMail.ThreadId} thread_id
|
|
256
|
+
* @param {AgentMail.GetThreadRequest} request
|
|
256
257
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
258
|
*
|
|
258
259
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -260,12 +261,17 @@ class ThreadsClient {
|
|
|
260
261
|
* @example
|
|
261
262
|
* await client.threads.get("thread_id")
|
|
262
263
|
*/
|
|
263
|
-
get(thread_id, requestOptions) {
|
|
264
|
-
return core.HttpResponsePromise.fromPromise(this.__get(thread_id, requestOptions));
|
|
264
|
+
get(thread_id, request = {}, requestOptions) {
|
|
265
|
+
return core.HttpResponsePromise.fromPromise(this.__get(thread_id, request, requestOptions));
|
|
265
266
|
}
|
|
266
|
-
__get(
|
|
267
|
-
return __awaiter(this,
|
|
267
|
+
__get(thread_id_1) {
|
|
268
|
+
return __awaiter(this, arguments, void 0, function* (thread_id, request = {}, requestOptions) {
|
|
268
269
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
270
|
+
const { limit, pageToken } = request;
|
|
271
|
+
const _queryParams = {
|
|
272
|
+
limit,
|
|
273
|
+
page_token: pageToken,
|
|
274
|
+
};
|
|
269
275
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
270
276
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
271
277
|
const _response = yield core.fetcher({
|
|
@@ -273,7 +279,7 @@ class ThreadsClient {
|
|
|
273
279
|
.http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
274
280
|
method: "GET",
|
|
275
281
|
headers: _headers,
|
|
276
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
282
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
277
283
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
278
284
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
279
285
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -16,6 +16,12 @@ export interface Thread {
|
|
|
16
16
|
size: AgentMail.ThreadSize;
|
|
17
17
|
updatedAt: AgentMail.ThreadUpdatedAt;
|
|
18
18
|
createdAt: AgentMail.ThreadCreatedAt;
|
|
19
|
-
/**
|
|
19
|
+
/** Number of messages in this response page. */
|
|
20
|
+
count: AgentMail.Count;
|
|
21
|
+
/** Maximum number of messages requested for this page. */
|
|
22
|
+
limit?: AgentMail.Limit;
|
|
23
|
+
/** Token for the next, older page of messages. Omitted when this page completes the thread. */
|
|
24
|
+
nextPageToken?: AgentMail.PageToken;
|
|
25
|
+
/** Messages in this page, ordered by `timestamp` ascending. The first page contains the newest messages; follow `next_page_token` to retrieve older pages. */
|
|
20
26
|
messages: AgentMail.Message[];
|
|
21
27
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
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";
|
|
4
7
|
import { InboxId } from "../../inboxes/types/InboxId.js";
|
|
5
8
|
import { Message } from "../../messages/types/Message.js";
|
|
6
9
|
import { ThreadAttachments } from "./ThreadAttachments.js";
|
|
@@ -37,6 +40,9 @@ export declare namespace Thread {
|
|
|
37
40
|
size: ThreadSize.Raw;
|
|
38
41
|
updated_at: ThreadUpdatedAt.Raw;
|
|
39
42
|
created_at: ThreadCreatedAt.Raw;
|
|
43
|
+
count: Count.Raw;
|
|
44
|
+
limit?: Limit.Raw | null;
|
|
45
|
+
next_page_token?: PageToken.Raw | null;
|
|
40
46
|
messages: Message.Raw[];
|
|
41
47
|
}
|
|
42
48
|
}
|
|
@@ -36,6 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.Thread = void 0;
|
|
38
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");
|
|
39
42
|
const InboxId_js_1 = require("../../inboxes/types/InboxId.js");
|
|
40
43
|
const Message_js_1 = require("../../messages/types/Message.js");
|
|
41
44
|
const ThreadAttachments_js_1 = require("./ThreadAttachments.js");
|
|
@@ -70,5 +73,8 @@ exports.Thread = core.serialization.object({
|
|
|
70
73
|
size: ThreadSize_js_1.ThreadSize,
|
|
71
74
|
updatedAt: core.serialization.property("updated_at", ThreadUpdatedAt_js_1.ThreadUpdatedAt),
|
|
72
75
|
createdAt: core.serialization.property("created_at", ThreadCreatedAt_js_1.ThreadCreatedAt),
|
|
76
|
+
count: Count_js_1.Count,
|
|
77
|
+
limit: Limit_js_1.Limit.optional(),
|
|
78
|
+
nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
|
|
73
79
|
messages: core.serialization.list(Message_js_1.Message),
|
|
74
80
|
});
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.24";
|
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.5.
|
|
10
|
-
"User-Agent": "agentmail/0.5.
|
|
9
|
+
"X-Fern-SDK-Version": "0.5.24",
|
|
10
|
+
"User-Agent": "agentmail/0.5.24",
|
|
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);
|
|
@@ -60,6 +60,7 @@ export declare class ThreadsClient {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
62
62
|
* @param {AgentMail.ThreadId} thread_id
|
|
63
|
+
* @param {AgentMail.inboxes.GetInboxThreadRequest} request
|
|
63
64
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -67,7 +68,7 @@ export declare class ThreadsClient {
|
|
|
67
68
|
* @example
|
|
68
69
|
* await client.inboxes.threads.get("inbox_id", "thread_id")
|
|
69
70
|
*/
|
|
70
|
-
get(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
|
+
get(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, request?: AgentMail.inboxes.GetInboxThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
72
|
private __get;
|
|
72
73
|
/**
|
|
73
74
|
* **CLI:**
|
|
@@ -218,6 +218,7 @@ export class ThreadsClient {
|
|
|
218
218
|
*
|
|
219
219
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
220
220
|
* @param {AgentMail.ThreadId} thread_id
|
|
221
|
+
* @param {AgentMail.inboxes.GetInboxThreadRequest} request
|
|
221
222
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
223
|
*
|
|
223
224
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -225,12 +226,17 @@ export class ThreadsClient {
|
|
|
225
226
|
* @example
|
|
226
227
|
* await client.inboxes.threads.get("inbox_id", "thread_id")
|
|
227
228
|
*/
|
|
228
|
-
get(inbox_id, thread_id, requestOptions) {
|
|
229
|
-
return core.HttpResponsePromise.fromPromise(this.__get(inbox_id, thread_id, requestOptions));
|
|
229
|
+
get(inbox_id, thread_id, request = {}, requestOptions) {
|
|
230
|
+
return core.HttpResponsePromise.fromPromise(this.__get(inbox_id, thread_id, request, requestOptions));
|
|
230
231
|
}
|
|
231
|
-
__get(
|
|
232
|
-
return __awaiter(this,
|
|
232
|
+
__get(inbox_id_1, thread_id_1) {
|
|
233
|
+
return __awaiter(this, arguments, void 0, function* (inbox_id, thread_id, request = {}, requestOptions) {
|
|
233
234
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
235
|
+
const { limit, pageToken } = request;
|
|
236
|
+
const _queryParams = {
|
|
237
|
+
limit,
|
|
238
|
+
page_token: pageToken,
|
|
239
|
+
};
|
|
234
240
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
235
241
|
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);
|
|
236
242
|
const _response = yield core.fetcher({
|
|
@@ -238,7 +244,7 @@ export class ThreadsClient {
|
|
|
238
244
|
.http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
239
245
|
method: "GET",
|
|
240
246
|
headers: _headers,
|
|
241
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
242
248
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
243
249
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
244
250
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/esm/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetInboxThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -60,6 +60,7 @@ export declare class ThreadsClient {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.pods.PodId} pod_id
|
|
62
62
|
* @param {AgentMail.ThreadId} thread_id
|
|
63
|
+
* @param {AgentMail.pods.GetPodThreadRequest} request
|
|
63
64
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
65
|
*
|
|
65
66
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -67,7 +68,7 @@ export declare class ThreadsClient {
|
|
|
67
68
|
* @example
|
|
68
69
|
* await client.pods.threads.get("pod_id", "thread_id")
|
|
69
70
|
*/
|
|
70
|
-
get(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
|
+
get(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, request?: AgentMail.pods.GetPodThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
71
72
|
private __get;
|
|
72
73
|
/**
|
|
73
74
|
* **CLI:**
|
|
@@ -218,6 +218,7 @@ export class ThreadsClient {
|
|
|
218
218
|
*
|
|
219
219
|
* @param {AgentMail.pods.PodId} pod_id
|
|
220
220
|
* @param {AgentMail.ThreadId} thread_id
|
|
221
|
+
* @param {AgentMail.pods.GetPodThreadRequest} request
|
|
221
222
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
222
223
|
*
|
|
223
224
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -225,12 +226,17 @@ export class ThreadsClient {
|
|
|
225
226
|
* @example
|
|
226
227
|
* await client.pods.threads.get("pod_id", "thread_id")
|
|
227
228
|
*/
|
|
228
|
-
get(pod_id, thread_id, requestOptions) {
|
|
229
|
-
return core.HttpResponsePromise.fromPromise(this.__get(pod_id, thread_id, requestOptions));
|
|
229
|
+
get(pod_id, thread_id, request = {}, requestOptions) {
|
|
230
|
+
return core.HttpResponsePromise.fromPromise(this.__get(pod_id, thread_id, request, requestOptions));
|
|
230
231
|
}
|
|
231
|
-
__get(
|
|
232
|
-
return __awaiter(this,
|
|
232
|
+
__get(pod_id_1, thread_id_1) {
|
|
233
|
+
return __awaiter(this, arguments, void 0, function* (pod_id, thread_id, request = {}, requestOptions) {
|
|
233
234
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
235
|
+
const { limit, pageToken } = request;
|
|
236
|
+
const _queryParams = {
|
|
237
|
+
limit,
|
|
238
|
+
page_token: pageToken,
|
|
239
|
+
};
|
|
234
240
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
235
241
|
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);
|
|
236
242
|
const _response = yield core.fetcher({
|
|
@@ -238,7 +244,7 @@ export class ThreadsClient {
|
|
|
238
244
|
.http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
239
245
|
method: "GET",
|
|
240
246
|
headers: _headers,
|
|
241
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
247
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
242
248
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
243
249
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
244
250
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
package/dist/esm/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.mts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetPodThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -59,6 +59,7 @@ export declare class ThreadsClient {
|
|
|
59
59
|
* ```
|
|
60
60
|
*
|
|
61
61
|
* @param {AgentMail.ThreadId} thread_id
|
|
62
|
+
* @param {AgentMail.GetThreadRequest} request
|
|
62
63
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
64
|
*
|
|
64
65
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -66,7 +67,7 @@ export declare class ThreadsClient {
|
|
|
66
67
|
* @example
|
|
67
68
|
* await client.threads.get("thread_id")
|
|
68
69
|
*/
|
|
69
|
-
get(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
70
|
+
get(thread_id: AgentMail.ThreadId, request?: AgentMail.GetThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Thread>;
|
|
70
71
|
private __get;
|
|
71
72
|
/**
|
|
72
73
|
* **CLI:**
|
|
@@ -217,6 +217,7 @@ export class ThreadsClient {
|
|
|
217
217
|
* ```
|
|
218
218
|
*
|
|
219
219
|
* @param {AgentMail.ThreadId} thread_id
|
|
220
|
+
* @param {AgentMail.GetThreadRequest} request
|
|
220
221
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
221
222
|
*
|
|
222
223
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -224,12 +225,17 @@ export class ThreadsClient {
|
|
|
224
225
|
* @example
|
|
225
226
|
* await client.threads.get("thread_id")
|
|
226
227
|
*/
|
|
227
|
-
get(thread_id, requestOptions) {
|
|
228
|
-
return core.HttpResponsePromise.fromPromise(this.__get(thread_id, requestOptions));
|
|
228
|
+
get(thread_id, request = {}, requestOptions) {
|
|
229
|
+
return core.HttpResponsePromise.fromPromise(this.__get(thread_id, request, requestOptions));
|
|
229
230
|
}
|
|
230
|
-
__get(
|
|
231
|
-
return __awaiter(this,
|
|
231
|
+
__get(thread_id_1) {
|
|
232
|
+
return __awaiter(this, arguments, void 0, function* (thread_id, request = {}, requestOptions) {
|
|
232
233
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
234
|
+
const { limit, pageToken } = request;
|
|
235
|
+
const _queryParams = {
|
|
236
|
+
limit,
|
|
237
|
+
page_token: pageToken,
|
|
238
|
+
};
|
|
233
239
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
234
240
|
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);
|
|
235
241
|
const _response = yield core.fetcher({
|
|
@@ -237,7 +243,7 @@ export class ThreadsClient {
|
|
|
237
243
|
.http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
238
244
|
method: "GET",
|
|
239
245
|
headers: _headers,
|
|
240
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
246
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
241
247
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
242
248
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
243
249
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as AgentMail from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {}
|
|
5
|
+
*/
|
|
6
|
+
export interface GetThreadRequest {
|
|
7
|
+
/** Maximum number of messages to return. Cannot exceed 100. */
|
|
8
|
+
limit?: AgentMail.Limit;
|
|
9
|
+
/** Token returned by the previous response for retrieving the next, older page. */
|
|
10
|
+
pageToken?: AgentMail.PageToken;
|
|
11
|
+
}
|
|
@@ -16,6 +16,12 @@ export interface Thread {
|
|
|
16
16
|
size: AgentMail.ThreadSize;
|
|
17
17
|
updatedAt: AgentMail.ThreadUpdatedAt;
|
|
18
18
|
createdAt: AgentMail.ThreadCreatedAt;
|
|
19
|
-
/**
|
|
19
|
+
/** Number of messages in this response page. */
|
|
20
|
+
count: AgentMail.Count;
|
|
21
|
+
/** Maximum number of messages requested for this page. */
|
|
22
|
+
limit?: AgentMail.Limit;
|
|
23
|
+
/** Token for the next, older page of messages. Omitted when this page completes the thread. */
|
|
24
|
+
nextPageToken?: AgentMail.PageToken;
|
|
25
|
+
/** Messages in this page, ordered by `timestamp` ascending. The first page contains the newest messages; follow `next_page_token` to retrieve older pages. */
|
|
20
26
|
messages: AgentMail.Message[];
|
|
21
27
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { Count } from "../../../types/Count.mjs";
|
|
5
|
+
import { Limit } from "../../../types/Limit.mjs";
|
|
6
|
+
import { PageToken } from "../../../types/PageToken.mjs";
|
|
4
7
|
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
5
8
|
import { Message } from "../../messages/types/Message.mjs";
|
|
6
9
|
import { ThreadAttachments } from "./ThreadAttachments.mjs";
|
|
@@ -37,6 +40,9 @@ export declare namespace Thread {
|
|
|
37
40
|
size: ThreadSize.Raw;
|
|
38
41
|
updated_at: ThreadUpdatedAt.Raw;
|
|
39
42
|
created_at: ThreadCreatedAt.Raw;
|
|
43
|
+
count: Count.Raw;
|
|
44
|
+
limit?: Limit.Raw | null;
|
|
45
|
+
next_page_token?: PageToken.Raw | null;
|
|
40
46
|
messages: Message.Raw[];
|
|
41
47
|
}
|
|
42
48
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { Count } from "../../../types/Count.mjs";
|
|
4
|
+
import { Limit } from "../../../types/Limit.mjs";
|
|
5
|
+
import { PageToken } from "../../../types/PageToken.mjs";
|
|
3
6
|
import { InboxId } from "../../inboxes/types/InboxId.mjs";
|
|
4
7
|
import { Message } from "../../messages/types/Message.mjs";
|
|
5
8
|
import { ThreadAttachments } from "./ThreadAttachments.mjs";
|
|
@@ -34,5 +37,8 @@ export const Thread = core.serialization.object({
|
|
|
34
37
|
size: ThreadSize,
|
|
35
38
|
updatedAt: core.serialization.property("updated_at", ThreadUpdatedAt),
|
|
36
39
|
createdAt: core.serialization.property("created_at", ThreadCreatedAt),
|
|
40
|
+
count: Count,
|
|
41
|
+
limit: Limit.optional(),
|
|
42
|
+
nextPageToken: core.serialization.property("next_page_token", PageToken.optional()),
|
|
37
43
|
messages: core.serialization.list(Message),
|
|
38
44
|
});
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.
|
|
1
|
+
export declare const SDK_VERSION = "0.5.24";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.24";
|
package/dist/llms.txt
CHANGED
|
@@ -42,6 +42,7 @@
|
|
|
42
42
|
- [Guide: Multi-Tenancy](https://docs.agentmail.to/multi-tenancy.md): How to use pods, scoped API keys, and webhook filtering to build multi-tenant email on AgentMail.
|
|
43
43
|
- [Using Custom Domains](https://docs.agentmail.to/custom-domains.md): A step-by-step guide to configuring your custom domain with AgentMail for enhanced branding and trust.
|
|
44
44
|
- [Managing Your Domains](https://docs.agentmail.to/managing-domains.md): Learn how to manage your custom domains effectively using AgentMail's API for enhanced deliverability and reputation management.
|
|
45
|
+
- [Google Workspace](https://docs.agentmail.to/google-workspace.md): Configure your Google Workspace domain to route emails for unrecognized addresses to AgentMail.
|
|
45
46
|
- [Webhooks Overview](https://docs.agentmail.to/webhooks-overview.md): Learn how to use Webhooks to build responsive, event-driven email agents with AgentMail.
|
|
46
47
|
- [Webhook Events](https://docs.agentmail.to/events.md)
|
|
47
48
|
- [Webhook Setup Guide](https://docs.agentmail.to/webhook-setup.md): A comprehensive guide to setting up webhooks with ngrok and AgentMail, including account creation, inbox setup, and code examples.
|
|
@@ -98,6 +99,7 @@
|
|
|
98
99
|
- API Reference > Agent [Sign Up](https://docs.agentmail.to/api-reference/agent/sign-up.md)
|
|
99
100
|
- API Reference > Agent [Verify](https://docs.agentmail.to/api-reference/agent/verify.md)
|
|
100
101
|
- API Reference > Inboxes [List Inboxes](https://docs.agentmail.to/api-reference/inboxes/list.md)
|
|
102
|
+
- API Reference > Inboxes [Search Inboxes](https://docs.agentmail.to/api-reference/inboxes/search.md)
|
|
101
103
|
- API Reference > Inboxes [Get Inbox](https://docs.agentmail.to/api-reference/inboxes/get.md)
|
|
102
104
|
- API Reference > Inboxes [Create Inbox](https://docs.agentmail.to/api-reference/inboxes/create.md)
|
|
103
105
|
- API Reference > Inboxes [Update Inbox](https://docs.agentmail.to/api-reference/inboxes/update.md)
|
|
@@ -199,11 +201,19 @@
|
|
|
199
201
|
- API Reference > API Keys [Cancel Browser Enrollment](https://docs.agentmail.to/api-reference/api-keys/cancel-browser-enrollment.md)
|
|
200
202
|
- API Reference > API Keys [List Browser Consents](https://docs.agentmail.to/api-reference/api-keys/list-browser-consents.md)
|
|
201
203
|
- API Reference > API Keys [Delete Browser Consent](https://docs.agentmail.to/api-reference/api-keys/delete-browser-consent.md)
|
|
204
|
+
- API Reference > Providers [List Providers](https://docs.agentmail.to/api-reference/providers/list.md)
|
|
205
|
+
- API Reference > Providers [Search Providers](https://docs.agentmail.to/api-reference/providers/search.md)
|
|
206
|
+
- API Reference > Providers [Get Provider](https://docs.agentmail.to/api-reference/providers/get.md)
|
|
207
|
+
- API Reference > Providers [List Provider Accounts](https://docs.agentmail.to/api-reference/providers/list-accounts.md)
|
|
208
|
+
- API Reference > Providers [Connect Provider](https://docs.agentmail.to/api-reference/providers/connect.md)
|
|
209
|
+
- API Reference > Accounts [List Accounts](https://docs.agentmail.to/api-reference/accounts/list.md)
|
|
210
|
+
- API Reference > Accounts [Get Account](https://docs.agentmail.to/api-reference/accounts/get.md)
|
|
202
211
|
- API Reference > Pods [List Pods](https://docs.agentmail.to/api-reference/pods/list.md)
|
|
203
212
|
- API Reference > Pods [Get Pod](https://docs.agentmail.to/api-reference/pods/get.md)
|
|
204
213
|
- API Reference > Pods [Create Pod](https://docs.agentmail.to/api-reference/pods/create.md)
|
|
205
214
|
- API Reference > Pods [Delete Pod](https://docs.agentmail.to/api-reference/pods/delete.md)
|
|
206
215
|
- API Reference > Pods > Inboxes [List Inboxes](https://docs.agentmail.to/api-reference/pods/inboxes/list.md)
|
|
216
|
+
- API Reference > Pods > Inboxes [Search Inboxes](https://docs.agentmail.to/api-reference/pods/inboxes/search.md)
|
|
207
217
|
- API Reference > Pods > Inboxes [Get Inbox](https://docs.agentmail.to/api-reference/pods/inboxes/get.md)
|
|
208
218
|
- API Reference > Pods > Inboxes [Create Inbox](https://docs.agentmail.to/api-reference/pods/inboxes/create.md)
|
|
209
219
|
- API Reference > Pods > Inboxes [Update Inbox](https://docs.agentmail.to/api-reference/pods/inboxes/update.md)
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -5808,7 +5808,7 @@ await client.inboxes.threads.search("inbox_id", {
|
|
|
5808
5808
|
</dl>
|
|
5809
5809
|
</details>
|
|
5810
5810
|
|
|
5811
|
-
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">get</a>(inbox_id, thread_id) -> AgentMail.Thread</code></summary>
|
|
5811
|
+
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">get</a>(inbox_id, thread_id, { ...params }) -> AgentMail.Thread</code></summary>
|
|
5812
5812
|
<dl>
|
|
5813
5813
|
<dd>
|
|
5814
5814
|
|
|
@@ -5870,6 +5870,14 @@ await client.inboxes.threads.get("inbox_id", "thread_id");
|
|
|
5870
5870
|
<dl>
|
|
5871
5871
|
<dd>
|
|
5872
5872
|
|
|
5873
|
+
**request:** `AgentMail.inboxes.GetInboxThreadRequest`
|
|
5874
|
+
|
|
5875
|
+
</dd>
|
|
5876
|
+
</dl>
|
|
5877
|
+
|
|
5878
|
+
<dl>
|
|
5879
|
+
<dd>
|
|
5880
|
+
|
|
5873
5881
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
5874
5882
|
|
|
5875
5883
|
</dd>
|
|
@@ -9304,7 +9312,7 @@ await client.pods.threads.search("pod_id", {
|
|
|
9304
9312
|
</dl>
|
|
9305
9313
|
</details>
|
|
9306
9314
|
|
|
9307
|
-
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">get</a>(pod_id, thread_id) -> AgentMail.Thread</code></summary>
|
|
9315
|
+
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">get</a>(pod_id, thread_id, { ...params }) -> AgentMail.Thread</code></summary>
|
|
9308
9316
|
<dl>
|
|
9309
9317
|
<dd>
|
|
9310
9318
|
|
|
@@ -9366,6 +9374,14 @@ await client.pods.threads.get("pod_id", "thread_id");
|
|
|
9366
9374
|
<dl>
|
|
9367
9375
|
<dd>
|
|
9368
9376
|
|
|
9377
|
+
**request:** `AgentMail.pods.GetPodThreadRequest`
|
|
9378
|
+
|
|
9379
|
+
</dd>
|
|
9380
|
+
</dl>
|
|
9381
|
+
|
|
9382
|
+
<dl>
|
|
9383
|
+
<dd>
|
|
9384
|
+
|
|
9369
9385
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
9370
9386
|
|
|
9371
9387
|
</dd>
|
|
@@ -10615,7 +10631,7 @@ await client.threads.search({
|
|
|
10615
10631
|
</dl>
|
|
10616
10632
|
</details>
|
|
10617
10633
|
|
|
10618
|
-
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">get</a>(thread_id) -> AgentMail.Thread</code></summary>
|
|
10634
|
+
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">get</a>(thread_id, { ...params }) -> AgentMail.Thread</code></summary>
|
|
10619
10635
|
<dl>
|
|
10620
10636
|
<dd>
|
|
10621
10637
|
|
|
@@ -10669,6 +10685,14 @@ await client.threads.get("thread_id");
|
|
|
10669
10685
|
<dl>
|
|
10670
10686
|
<dd>
|
|
10671
10687
|
|
|
10688
|
+
**request:** `AgentMail.GetThreadRequest`
|
|
10689
|
+
|
|
10690
|
+
</dd>
|
|
10691
|
+
</dl>
|
|
10692
|
+
|
|
10693
|
+
<dl>
|
|
10694
|
+
<dd>
|
|
10695
|
+
|
|
10672
10696
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
10673
10697
|
|
|
10674
10698
|
</dd>
|