agentmail 0.5.15 → 0.5.16
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 -3
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/threads/client/Client.js +6 -11
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +0 -1
- 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 -3
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/threads/client/Client.mjs +6 -11
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +0 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms.txt +2 -4
- package/package.json +1 -1
- package/reference.md +6 -30
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.js +0 -3
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/cjs/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.js +0 -3
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.d.ts +0 -8
- package/dist/cjs/api/resources/threads/client/requests/DeleteThreadRequest.js +0 -3
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- package/dist/esm/api/resources/inboxes/resources/threads/client/requests/DeleteThreadRequest.mjs +0 -2
- package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- package/dist/esm/api/resources/pods/resources/threads/client/requests/DeleteThreadRequest.mjs +0 -2
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.d.mts +0 -8
- package/dist/esm/api/resources/threads/client/requests/DeleteThreadRequest.mjs +0 -2
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.16",
|
|
47
|
+
"User-Agent": "agentmail/0.5.16",
|
|
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);
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -474,7 +474,7 @@ class ThreadsClient {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Permanently deletes a thread and all of its messages.
|
|
478
478
|
*
|
|
479
479
|
* **CLI:**
|
|
480
480
|
* ```bash
|
|
@@ -483,7 +483,6 @@ class ThreadsClient {
|
|
|
483
483
|
*
|
|
484
484
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
485
485
|
* @param {AgentMail.ThreadId} thread_id
|
|
486
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
487
486
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
487
|
*
|
|
489
488
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -491,16 +490,12 @@ class ThreadsClient {
|
|
|
491
490
|
* @example
|
|
492
491
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
493
492
|
*/
|
|
494
|
-
delete(inbox_id, thread_id,
|
|
495
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id,
|
|
493
|
+
delete(inbox_id, thread_id, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id, requestOptions));
|
|
496
495
|
}
|
|
497
|
-
__delete(
|
|
498
|
-
return __awaiter(this,
|
|
496
|
+
__delete(inbox_id, thread_id, requestOptions) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
498
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
500
|
-
const { permanent } = request;
|
|
501
|
-
const _queryParams = {
|
|
502
|
-
permanent,
|
|
503
|
-
};
|
|
504
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
505
500
|
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);
|
|
506
501
|
const _response = yield core.fetcher({
|
|
@@ -508,7 +503,7 @@ class ThreadsClient {
|
|
|
508
503
|
.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 }))}`),
|
|
509
504
|
method: "DELETE",
|
|
510
505
|
headers: _headers,
|
|
511
|
-
queryParameters:
|
|
506
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
512
507
|
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,
|
|
513
508
|
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,
|
|
514
509
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.pods.PodId} pod_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -474,7 +474,7 @@ class ThreadsClient {
|
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
*
|
|
477
|
+
* Permanently deletes a thread and all of its messages.
|
|
478
478
|
*
|
|
479
479
|
* **CLI:**
|
|
480
480
|
* ```bash
|
|
@@ -483,7 +483,6 @@ class ThreadsClient {
|
|
|
483
483
|
*
|
|
484
484
|
* @param {AgentMail.pods.PodId} pod_id
|
|
485
485
|
* @param {AgentMail.ThreadId} thread_id
|
|
486
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
487
486
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
488
487
|
*
|
|
489
488
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -491,16 +490,12 @@ class ThreadsClient {
|
|
|
491
490
|
* @example
|
|
492
491
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
493
492
|
*/
|
|
494
|
-
delete(pod_id, thread_id,
|
|
495
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id,
|
|
493
|
+
delete(pod_id, thread_id, requestOptions) {
|
|
494
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id, requestOptions));
|
|
496
495
|
}
|
|
497
|
-
__delete(
|
|
498
|
-
return __awaiter(this,
|
|
496
|
+
__delete(pod_id, thread_id, requestOptions) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
499
498
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
500
|
-
const { permanent } = request;
|
|
501
|
-
const _queryParams = {
|
|
502
|
-
permanent,
|
|
503
|
-
};
|
|
504
499
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
505
500
|
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);
|
|
506
501
|
const _response = yield core.fetcher({
|
|
@@ -508,7 +503,7 @@ class ThreadsClient {
|
|
|
508
503
|
.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 }))}`),
|
|
509
504
|
method: "DELETE",
|
|
510
505
|
headers: _headers,
|
|
511
|
-
queryParameters:
|
|
506
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
512
507
|
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,
|
|
513
508
|
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,
|
|
514
509
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -102,7 +102,7 @@ export declare class ThreadsClient {
|
|
|
102
102
|
update(thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
103
103
|
private __update;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Permanently deletes a thread and all of its messages.
|
|
106
106
|
*
|
|
107
107
|
* **CLI:**
|
|
108
108
|
* ```bash
|
|
@@ -110,7 +110,6 @@ export declare class ThreadsClient {
|
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @param {AgentMail.ThreadId} thread_id
|
|
113
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
114
113
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
114
|
*
|
|
116
115
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -118,6 +117,6 @@ export declare class ThreadsClient {
|
|
|
118
117
|
* @example
|
|
119
118
|
* await client.threads.delete("thread_id")
|
|
120
119
|
*/
|
|
121
|
-
delete(thread_id: AgentMail.ThreadId,
|
|
120
|
+
delete(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
122
121
|
private __delete;
|
|
123
122
|
}
|
|
@@ -471,7 +471,7 @@ class ThreadsClient {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
474
|
-
*
|
|
474
|
+
* Permanently deletes a thread and all of its messages.
|
|
475
475
|
*
|
|
476
476
|
* **CLI:**
|
|
477
477
|
* ```bash
|
|
@@ -479,7 +479,6 @@ class ThreadsClient {
|
|
|
479
479
|
* ```
|
|
480
480
|
*
|
|
481
481
|
* @param {AgentMail.ThreadId} thread_id
|
|
482
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
483
482
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
484
483
|
*
|
|
485
484
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -487,16 +486,12 @@ class ThreadsClient {
|
|
|
487
486
|
* @example
|
|
488
487
|
* await client.threads.delete("thread_id")
|
|
489
488
|
*/
|
|
490
|
-
delete(thread_id,
|
|
491
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id,
|
|
489
|
+
delete(thread_id, requestOptions) {
|
|
490
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id, requestOptions));
|
|
492
491
|
}
|
|
493
|
-
__delete(
|
|
494
|
-
return __awaiter(this,
|
|
492
|
+
__delete(thread_id, requestOptions) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
494
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
496
|
-
const { permanent } = request;
|
|
497
|
-
const _queryParams = {
|
|
498
|
-
permanent,
|
|
499
|
-
};
|
|
500
495
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
501
496
|
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);
|
|
502
497
|
const _response = yield core.fetcher({
|
|
@@ -504,7 +499,7 @@ class ThreadsClient {
|
|
|
504
499
|
.http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
505
500
|
method: "DELETE",
|
|
506
501
|
headers: _headers,
|
|
507
|
-
queryParameters:
|
|
502
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
508
503
|
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,
|
|
509
504
|
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,
|
|
510
505
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
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.16";
|
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.16",
|
|
10
|
+
"User-Agent": "agentmail/0.5.16",
|
|
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);
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(inbox_id: AgentMail.inboxes.InboxId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -438,7 +438,7 @@ export class ThreadsClient {
|
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* Permanently deletes a thread and all of its messages.
|
|
442
442
|
*
|
|
443
443
|
* **CLI:**
|
|
444
444
|
* ```bash
|
|
@@ -447,7 +447,6 @@ export class ThreadsClient {
|
|
|
447
447
|
*
|
|
448
448
|
* @param {AgentMail.inboxes.InboxId} inbox_id
|
|
449
449
|
* @param {AgentMail.ThreadId} thread_id
|
|
450
|
-
* @param {AgentMail.inboxes.DeleteThreadRequest} request
|
|
451
450
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
452
451
|
*
|
|
453
452
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -455,16 +454,12 @@ export class ThreadsClient {
|
|
|
455
454
|
* @example
|
|
456
455
|
* await client.inboxes.threads.delete("inbox_id", "thread_id")
|
|
457
456
|
*/
|
|
458
|
-
delete(inbox_id, thread_id,
|
|
459
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id,
|
|
457
|
+
delete(inbox_id, thread_id, requestOptions) {
|
|
458
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(inbox_id, thread_id, requestOptions));
|
|
460
459
|
}
|
|
461
|
-
__delete(
|
|
462
|
-
return __awaiter(this,
|
|
460
|
+
__delete(inbox_id, thread_id, requestOptions) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
462
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
464
|
-
const { permanent } = request;
|
|
465
|
-
const _queryParams = {
|
|
466
|
-
permanent,
|
|
467
|
-
};
|
|
468
463
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
469
464
|
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);
|
|
470
465
|
const _response = yield core.fetcher({
|
|
@@ -472,7 +467,7 @@ export class ThreadsClient {
|
|
|
472
467
|
.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 }))}`),
|
|
473
468
|
method: "DELETE",
|
|
474
469
|
headers: _headers,
|
|
475
|
-
queryParameters:
|
|
470
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
476
471
|
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,
|
|
477
472
|
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,
|
|
478
473
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -105,7 +105,7 @@ export declare class ThreadsClient {
|
|
|
105
105
|
update(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
106
106
|
private __update;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* Permanently deletes a thread and all of its messages.
|
|
109
109
|
*
|
|
110
110
|
* **CLI:**
|
|
111
111
|
* ```bash
|
|
@@ -114,7 +114,6 @@ export declare class ThreadsClient {
|
|
|
114
114
|
*
|
|
115
115
|
* @param {AgentMail.pods.PodId} pod_id
|
|
116
116
|
* @param {AgentMail.ThreadId} thread_id
|
|
117
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
118
117
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
118
|
*
|
|
120
119
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -122,6 +121,6 @@ export declare class ThreadsClient {
|
|
|
122
121
|
* @example
|
|
123
122
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
124
123
|
*/
|
|
125
|
-
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId,
|
|
124
|
+
delete(pod_id: AgentMail.pods.PodId, thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
126
125
|
private __delete;
|
|
127
126
|
}
|
|
@@ -438,7 +438,7 @@ export class ThreadsClient {
|
|
|
438
438
|
});
|
|
439
439
|
}
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* Permanently deletes a thread and all of its messages.
|
|
442
442
|
*
|
|
443
443
|
* **CLI:**
|
|
444
444
|
* ```bash
|
|
@@ -447,7 +447,6 @@ export class ThreadsClient {
|
|
|
447
447
|
*
|
|
448
448
|
* @param {AgentMail.pods.PodId} pod_id
|
|
449
449
|
* @param {AgentMail.ThreadId} thread_id
|
|
450
|
-
* @param {AgentMail.pods.DeleteThreadRequest} request
|
|
451
450
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
452
451
|
*
|
|
453
452
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -455,16 +454,12 @@ export class ThreadsClient {
|
|
|
455
454
|
* @example
|
|
456
455
|
* await client.pods.threads.delete("pod_id", "thread_id")
|
|
457
456
|
*/
|
|
458
|
-
delete(pod_id, thread_id,
|
|
459
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id,
|
|
457
|
+
delete(pod_id, thread_id, requestOptions) {
|
|
458
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, thread_id, requestOptions));
|
|
460
459
|
}
|
|
461
|
-
__delete(
|
|
462
|
-
return __awaiter(this,
|
|
460
|
+
__delete(pod_id, thread_id, requestOptions) {
|
|
461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
463
462
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
464
|
-
const { permanent } = request;
|
|
465
|
-
const _queryParams = {
|
|
466
|
-
permanent,
|
|
467
|
-
};
|
|
468
463
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
469
464
|
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);
|
|
470
465
|
const _response = yield core.fetcher({
|
|
@@ -472,7 +467,7 @@ export class ThreadsClient {
|
|
|
472
467
|
.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 }))}`),
|
|
473
468
|
method: "DELETE",
|
|
474
469
|
headers: _headers,
|
|
475
|
-
queryParameters:
|
|
470
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
476
471
|
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,
|
|
477
472
|
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,
|
|
478
473
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -102,7 +102,7 @@ export declare class ThreadsClient {
|
|
|
102
102
|
update(thread_id: AgentMail.ThreadId, request: AgentMail.UpdateThreadRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.UpdateThreadResponse>;
|
|
103
103
|
private __update;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Permanently deletes a thread and all of its messages.
|
|
106
106
|
*
|
|
107
107
|
* **CLI:**
|
|
108
108
|
* ```bash
|
|
@@ -110,7 +110,6 @@ export declare class ThreadsClient {
|
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @param {AgentMail.ThreadId} thread_id
|
|
113
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
114
113
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
114
|
*
|
|
116
115
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -118,6 +117,6 @@ export declare class ThreadsClient {
|
|
|
118
117
|
* @example
|
|
119
118
|
* await client.threads.delete("thread_id")
|
|
120
119
|
*/
|
|
121
|
-
delete(thread_id: AgentMail.ThreadId,
|
|
120
|
+
delete(thread_id: AgentMail.ThreadId, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
122
121
|
private __delete;
|
|
123
122
|
}
|
|
@@ -435,7 +435,7 @@ export class ThreadsClient {
|
|
|
435
435
|
});
|
|
436
436
|
}
|
|
437
437
|
/**
|
|
438
|
-
*
|
|
438
|
+
* Permanently deletes a thread and all of its messages.
|
|
439
439
|
*
|
|
440
440
|
* **CLI:**
|
|
441
441
|
* ```bash
|
|
@@ -443,7 +443,6 @@ export class ThreadsClient {
|
|
|
443
443
|
* ```
|
|
444
444
|
*
|
|
445
445
|
* @param {AgentMail.ThreadId} thread_id
|
|
446
|
-
* @param {AgentMail.DeleteThreadRequest} request
|
|
447
446
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
448
447
|
*
|
|
449
448
|
* @throws {@link AgentMail.NotFoundError}
|
|
@@ -451,16 +450,12 @@ export class ThreadsClient {
|
|
|
451
450
|
* @example
|
|
452
451
|
* await client.threads.delete("thread_id")
|
|
453
452
|
*/
|
|
454
|
-
delete(thread_id,
|
|
455
|
-
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id,
|
|
453
|
+
delete(thread_id, requestOptions) {
|
|
454
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(thread_id, requestOptions));
|
|
456
455
|
}
|
|
457
|
-
__delete(
|
|
458
|
-
return __awaiter(this,
|
|
456
|
+
__delete(thread_id, requestOptions) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
459
458
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
460
|
-
const { permanent } = request;
|
|
461
|
-
const _queryParams = {
|
|
462
|
-
permanent,
|
|
463
|
-
};
|
|
464
459
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
465
460
|
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);
|
|
466
461
|
const _response = yield core.fetcher({
|
|
@@ -468,7 +463,7 @@ export class ThreadsClient {
|
|
|
468
463
|
.http, `/v0/threads/${core.url.encodePathParam(serializers.ThreadId.jsonOrThrow(thread_id, { omitUndefined: true }))}`),
|
|
469
464
|
method: "DELETE",
|
|
470
465
|
headers: _headers,
|
|
471
|
-
queryParameters:
|
|
466
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
472
467
|
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,
|
|
473
468
|
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,
|
|
474
469
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
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.16";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.5.
|
|
1
|
+
export const SDK_VERSION = "0.5.16";
|
package/dist/llms.txt
CHANGED
|
@@ -46,13 +46,14 @@
|
|
|
46
46
|
- [WebSockets](https://docs.agentmail.to/websockets.md): Learn how to use WebSockets for instant email notifications without webhooks or polling.
|
|
47
47
|
- [WebSockets Quickstart](https://docs.agentmail.to/websockets/quickstart.md): Get started with real-time email event streaming
|
|
48
48
|
- [Email Deliverability](https://docs.agentmail.to/email-deliverability.md): Learn the strategies and best practices for maximizing your email deliverability with AgentMail.
|
|
49
|
-
- [Idempotent Requests](https://docs.agentmail.to/idempotency.md): A guide to
|
|
49
|
+
- [Idempotent Requests](https://docs.agentmail.to/idempotency.md): A guide to preventing duplicate resources with client_id and preventing duplicate email sends with the Idempotency-Key header.
|
|
50
50
|
- [Example: Event-Driven Agent](https://docs.agentmail.to/webhook-agent.md): A step-by-step guide to building a sophisticated agent that performs proactive outreach and uses webhooks for inbound message processing.
|
|
51
51
|
- [Auto-Reply Email Agent](https://docs.agentmail.to/documentation/examples/auto-reply-agent.md): Build a simple agent that automatically responds to incoming emails with personalized messages
|
|
52
52
|
- [Smart Email Labeling Agent](https://docs.agentmail.to/documentation/examples/smart-labeling-agent.md): Build an AI-powered agent that automatically classifies and labels incoming emails across multiple dimensions
|
|
53
53
|
- [Sales Agent with WebSocket](https://docs.agentmail.to/sales-agent-websocket.md): A step-by-step guide to building an AI-powered sales agent that uses WebSocket for real-time email processing without polling or webhooks.
|
|
54
54
|
- [Live AgentMail Examples](https://docs.agentmail.to/documentation/examples/live-agent-mail-examples.md)
|
|
55
55
|
- [Frequently Asked Questions (FAQ)](https://docs.agentmail.to/faq.md): Find answers to common questions about AgentMail, from core concepts to best practices and security.
|
|
56
|
+
- [Error Reference](https://docs.agentmail.to/errors.md): Every AgentMail API error code, what it means, and how to fix it.
|
|
56
57
|
- [Email Reply Extraction with Talon](https://docs.agentmail.to/talon-reply-extraction.md): Learn how to use Talon to extract new content from email replies, removing quoted text with 93.8% accuracy.
|
|
57
58
|
- [Join the AgentMail Community](https://docs.agentmail.to/community.md): Connect with the AgentMail team and developers, share what you're building, and get support.
|
|
58
59
|
- [Support](https://docs.agentmail.to/support.md): Get help with AgentMail through our support channels.
|
|
@@ -116,9 +117,6 @@
|
|
|
116
117
|
- API Reference > Inboxes > Messages [Reply To Message](https://docs.agentmail.to/api-reference/inboxes/messages/reply.md)
|
|
117
118
|
- API Reference > Inboxes > Messages [Reply All Message](https://docs.agentmail.to/api-reference/inboxes/messages/reply-all.md)
|
|
118
119
|
- API Reference > Inboxes > Messages [Forward Message](https://docs.agentmail.to/api-reference/inboxes/messages/forward.md)
|
|
119
|
-
- API Reference > Inboxes > Messages [Create Draft Reply](https://docs.agentmail.to/api-reference/inboxes/messages/draft-reply.md)
|
|
120
|
-
- API Reference > Inboxes > Messages [Create Draft Reply All](https://docs.agentmail.to/api-reference/inboxes/messages/draft-reply-all.md)
|
|
121
|
-
- API Reference > Inboxes > Messages [Create Draft Forward](https://docs.agentmail.to/api-reference/inboxes/messages/draft-forward.md)
|
|
122
120
|
- API Reference > Inboxes > Drafts [List Drafts](https://docs.agentmail.to/api-reference/inboxes/drafts/list.md)
|
|
123
121
|
- API Reference > Inboxes > Drafts [Get Draft](https://docs.agentmail.to/api-reference/inboxes/drafts/get.md)
|
|
124
122
|
- API Reference > Inboxes > Drafts [Get Attachment](https://docs.agentmail.to/api-reference/inboxes/drafts/get-attachment.md)
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -4833,7 +4833,7 @@ await client.inboxes.threads.update("inbox_id", "thread_id", {});
|
|
|
4833
4833
|
</dl>
|
|
4834
4834
|
</details>
|
|
4835
4835
|
|
|
4836
|
-
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">delete</a>(inbox_id, thread_id
|
|
4836
|
+
<details><summary><code>client.inboxes.threads.<a href="/src/api/resources/inboxes/resources/threads/client/Client.ts">delete</a>(inbox_id, thread_id) -> void</code></summary>
|
|
4837
4837
|
<dl>
|
|
4838
4838
|
<dd>
|
|
4839
4839
|
|
|
@@ -4845,7 +4845,7 @@ await client.inboxes.threads.update("inbox_id", "thread_id", {});
|
|
|
4845
4845
|
<dl>
|
|
4846
4846
|
<dd>
|
|
4847
4847
|
|
|
4848
|
-
|
|
4848
|
+
Permanently deletes a thread and all of its messages.
|
|
4849
4849
|
|
|
4850
4850
|
**CLI:**
|
|
4851
4851
|
```bash
|
|
@@ -4897,14 +4897,6 @@ await client.inboxes.threads.delete("inbox_id", "thread_id");
|
|
|
4897
4897
|
<dl>
|
|
4898
4898
|
<dd>
|
|
4899
4899
|
|
|
4900
|
-
**request:** `AgentMail.inboxes.DeleteThreadRequest`
|
|
4901
|
-
|
|
4902
|
-
</dd>
|
|
4903
|
-
</dl>
|
|
4904
|
-
|
|
4905
|
-
<dl>
|
|
4906
|
-
<dd>
|
|
4907
|
-
|
|
4908
4900
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
4909
4901
|
|
|
4910
4902
|
</dd>
|
|
@@ -8107,7 +8099,7 @@ await client.pods.threads.update("pod_id", "thread_id", {});
|
|
|
8107
8099
|
</dl>
|
|
8108
8100
|
</details>
|
|
8109
8101
|
|
|
8110
|
-
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">delete</a>(pod_id, thread_id
|
|
8102
|
+
<details><summary><code>client.pods.threads.<a href="/src/api/resources/pods/resources/threads/client/Client.ts">delete</a>(pod_id, thread_id) -> void</code></summary>
|
|
8111
8103
|
<dl>
|
|
8112
8104
|
<dd>
|
|
8113
8105
|
|
|
@@ -8119,7 +8111,7 @@ await client.pods.threads.update("pod_id", "thread_id", {});
|
|
|
8119
8111
|
<dl>
|
|
8120
8112
|
<dd>
|
|
8121
8113
|
|
|
8122
|
-
|
|
8114
|
+
Permanently deletes a thread and all of its messages.
|
|
8123
8115
|
|
|
8124
8116
|
**CLI:**
|
|
8125
8117
|
```bash
|
|
@@ -8171,14 +8163,6 @@ await client.pods.threads.delete("pod_id", "thread_id");
|
|
|
8171
8163
|
<dl>
|
|
8172
8164
|
<dd>
|
|
8173
8165
|
|
|
8174
|
-
**request:** `AgentMail.pods.DeleteThreadRequest`
|
|
8175
|
-
|
|
8176
|
-
</dd>
|
|
8177
|
-
</dl>
|
|
8178
|
-
|
|
8179
|
-
<dl>
|
|
8180
|
-
<dd>
|
|
8181
|
-
|
|
8182
8166
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
8183
8167
|
|
|
8184
8168
|
</dd>
|
|
@@ -8928,7 +8912,7 @@ await client.threads.update("thread_id", {});
|
|
|
8928
8912
|
</dl>
|
|
8929
8913
|
</details>
|
|
8930
8914
|
|
|
8931
|
-
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">delete</a>(thread_id
|
|
8915
|
+
<details><summary><code>client.threads.<a href="/src/api/resources/threads/client/Client.ts">delete</a>(thread_id) -> void</code></summary>
|
|
8932
8916
|
<dl>
|
|
8933
8917
|
<dd>
|
|
8934
8918
|
|
|
@@ -8940,7 +8924,7 @@ await client.threads.update("thread_id", {});
|
|
|
8940
8924
|
<dl>
|
|
8941
8925
|
<dd>
|
|
8942
8926
|
|
|
8943
|
-
|
|
8927
|
+
Permanently deletes a thread and all of its messages.
|
|
8944
8928
|
|
|
8945
8929
|
**CLI:**
|
|
8946
8930
|
```bash
|
|
@@ -8984,14 +8968,6 @@ await client.threads.delete("thread_id");
|
|
|
8984
8968
|
<dl>
|
|
8985
8969
|
<dd>
|
|
8986
8970
|
|
|
8987
|
-
**request:** `AgentMail.DeleteThreadRequest`
|
|
8988
|
-
|
|
8989
|
-
</dd>
|
|
8990
|
-
</dl>
|
|
8991
|
-
|
|
8992
|
-
<dl>
|
|
8993
|
-
<dd>
|
|
8994
|
-
|
|
8995
8971
|
**requestOptions:** `ThreadsClient.RequestOptions`
|
|
8996
8972
|
|
|
8997
8973
|
</dd>
|