agentmail 0.5.22 → 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.
Files changed (81) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +20 -0
  3. package/dist/cjs/api/resources/inboxes/client/Client.js +77 -0
  4. package/dist/cjs/api/resources/inboxes/client/requests/SearchInboxesRequest.d.ts +13 -0
  5. package/dist/cjs/api/resources/inboxes/client/requests/SearchInboxesRequest.js +3 -0
  6. package/dist/cjs/api/resources/inboxes/client/requests/index.d.ts +1 -0
  7. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +2 -1
  8. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +11 -5
  9. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.ts +11 -0
  10. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.js +3 -0
  11. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +1 -0
  12. package/dist/cjs/api/resources/inboxes/types/SearchInboxesResponse.d.ts +8 -0
  13. package/dist/cjs/api/resources/inboxes/types/SearchInboxesResponse.js +3 -0
  14. package/dist/cjs/api/resources/inboxes/types/index.d.ts +1 -0
  15. package/dist/cjs/api/resources/inboxes/types/index.js +1 -0
  16. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +22 -0
  17. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +87 -0
  18. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.d.ts +13 -0
  19. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.js +3 -0
  20. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +2 -1
  22. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +11 -5
  23. package/dist/cjs/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.ts +11 -0
  24. package/dist/cjs/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.js +3 -0
  25. package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/threads/client/Client.d.ts +2 -1
  27. package/dist/cjs/api/resources/threads/client/Client.js +11 -5
  28. package/dist/cjs/api/resources/threads/client/requests/GetThreadRequest.d.ts +11 -0
  29. package/dist/cjs/api/resources/threads/client/requests/GetThreadRequest.js +3 -0
  30. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
  31. package/dist/cjs/api/resources/threads/types/Thread.d.ts +7 -1
  32. package/dist/cjs/serialization/resources/inboxes/types/SearchInboxesResponse.d.ts +16 -0
  33. package/dist/cjs/serialization/resources/inboxes/types/SearchInboxesResponse.js +48 -0
  34. package/dist/cjs/serialization/resources/inboxes/types/index.d.ts +1 -0
  35. package/dist/cjs/serialization/resources/inboxes/types/index.js +1 -0
  36. package/dist/cjs/serialization/resources/threads/types/Thread.d.ts +6 -0
  37. package/dist/cjs/serialization/resources/threads/types/Thread.js +6 -0
  38. package/dist/cjs/version.d.ts +1 -1
  39. package/dist/cjs/version.js +1 -1
  40. package/dist/esm/BaseClient.mjs +2 -2
  41. package/dist/esm/api/resources/inboxes/client/Client.d.mts +20 -0
  42. package/dist/esm/api/resources/inboxes/client/Client.mjs +77 -0
  43. package/dist/esm/api/resources/inboxes/client/requests/SearchInboxesRequest.d.mts +13 -0
  44. package/dist/esm/api/resources/inboxes/client/requests/SearchInboxesRequest.mjs +2 -0
  45. package/dist/esm/api/resources/inboxes/client/requests/index.d.mts +1 -0
  46. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +2 -1
  47. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +11 -5
  48. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.d.mts +11 -0
  49. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/GetInboxThreadRequest.mjs +2 -0
  50. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +1 -0
  51. package/dist/esm/api/resources/inboxes/types/SearchInboxesResponse.d.mts +8 -0
  52. package/dist/esm/api/resources/inboxes/types/SearchInboxesResponse.mjs +2 -0
  53. package/dist/esm/api/resources/inboxes/types/index.d.mts +1 -0
  54. package/dist/esm/api/resources/inboxes/types/index.mjs +1 -0
  55. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +22 -0
  56. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +87 -0
  57. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.d.mts +13 -0
  58. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/SearchInboxesRequest.mjs +2 -0
  59. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/index.d.mts +1 -0
  60. package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +2 -1
  61. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +11 -5
  62. package/dist/esm/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.d.mts +11 -0
  63. package/dist/esm/api/resources/pods/resources/threads/client/requests/GetPodThreadRequest.mjs +2 -0
  64. package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +1 -0
  65. package/dist/esm/api/resources/threads/client/Client.d.mts +2 -1
  66. package/dist/esm/api/resources/threads/client/Client.mjs +11 -5
  67. package/dist/esm/api/resources/threads/client/requests/GetThreadRequest.d.mts +11 -0
  68. package/dist/esm/api/resources/threads/client/requests/GetThreadRequest.mjs +2 -0
  69. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
  70. package/dist/esm/api/resources/threads/types/Thread.d.mts +7 -1
  71. package/dist/esm/serialization/resources/inboxes/types/SearchInboxesResponse.d.mts +16 -0
  72. package/dist/esm/serialization/resources/inboxes/types/SearchInboxesResponse.mjs +12 -0
  73. package/dist/esm/serialization/resources/inboxes/types/index.d.mts +1 -0
  74. package/dist/esm/serialization/resources/inboxes/types/index.mjs +1 -0
  75. package/dist/esm/serialization/resources/threads/types/Thread.d.mts +6 -0
  76. package/dist/esm/serialization/resources/threads/types/Thread.mjs +6 -0
  77. package/dist/esm/version.d.mts +1 -1
  78. package/dist/esm/version.mjs +1 -1
  79. package/dist/llms.txt +10 -0
  80. package/package.json +1 -1
  81. package/reference.md +175 -3
@@ -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(thread_id, requestOptions) {
231
- return __awaiter(this, void 0, void 0, function* () {
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
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,2 +1,3 @@
1
+ export type { GetThreadRequest } from "./GetThreadRequest.mjs";
1
2
  export type { ListThreadsRequest } from "./ListThreadsRequest.mjs";
2
3
  export type { SearchThreadsRequest } from "./SearchThreadsRequest.mjs";
@@ -16,6 +16,12 @@ export interface Thread {
16
16
  size: AgentMail.ThreadSize;
17
17
  updatedAt: AgentMail.ThreadUpdatedAt;
18
18
  createdAt: AgentMail.ThreadCreatedAt;
19
- /** Messages in thread. Ordered by `timestamp` ascending. */
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
  }
@@ -0,0 +1,16 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
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";
7
+ import { Inbox } from "./Inbox.mjs";
8
+ export declare const SearchInboxesResponse: core.serialization.ObjectSchema<serializers.inboxes.SearchInboxesResponse.Raw, AgentMail.inboxes.SearchInboxesResponse>;
9
+ export declare namespace SearchInboxesResponse {
10
+ interface Raw {
11
+ count: Count.Raw;
12
+ limit?: Limit.Raw | null;
13
+ next_page_token?: PageToken.Raw | null;
14
+ inboxes: Inbox.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
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";
6
+ import { Inbox } from "./Inbox.mjs";
7
+ export const SearchInboxesResponse = core.serialization.object({
8
+ count: Count,
9
+ limit: Limit.optional(),
10
+ nextPageToken: core.serialization.property("next_page_token", PageToken.optional()),
11
+ inboxes: core.serialization.list(Inbox),
12
+ });
@@ -7,5 +7,6 @@ export * from "./InboxId.mjs";
7
7
  export * from "./ListInboxesResponse.mjs";
8
8
  export * from "./Metadata.mjs";
9
9
  export * from "./MetadataValue.mjs";
10
+ export * from "./SearchInboxesResponse.mjs";
10
11
  export * from "./UpdateInboxRequest.mjs";
11
12
  export * from "./UpdateMetadata.mjs";
@@ -7,5 +7,6 @@ export * from "./InboxId.mjs";
7
7
  export * from "./ListInboxesResponse.mjs";
8
8
  export * from "./Metadata.mjs";
9
9
  export * from "./MetadataValue.mjs";
10
+ export * from "./SearchInboxesResponse.mjs";
10
11
  export * from "./UpdateInboxRequest.mjs";
11
12
  export * from "./UpdateMetadata.mjs";
@@ -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
  });
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.22";
1
+ export declare const SDK_VERSION = "0.5.24";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.5.22";
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.5.22",
3
+ "version": "0.5.24",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -62,6 +62,76 @@ await client.inboxes.list();
62
62
  </dl>
63
63
 
64
64
 
65
+ </dd>
66
+ </dl>
67
+ </details>
68
+
69
+ <details><summary><code>client.inboxes.<a href="/src/api/resources/inboxes/client/Client.ts">search</a>({ ...params }) -> AgentMail.SearchInboxesResponse</code></summary>
70
+ <dl>
71
+ <dd>
72
+
73
+ #### 📝 Description
74
+
75
+ <dl>
76
+ <dd>
77
+
78
+ <dl>
79
+ <dd>
80
+
81
+ Searches inboxes in the organization by address or display name, ranked
82
+ by relevance. Each word in the query matches the start of a word in the
83
+ address or display name, so `sup` matches `support@example.com` but
84
+ `port` does not. An exact address match always ranks first. `limit`
85
+ cannot exceed 100. A page can be empty and still carry a
86
+ `next_page_token`; keep paging until the token is absent.
87
+ </dd>
88
+ </dl>
89
+ </dd>
90
+ </dl>
91
+
92
+ #### 🔌 Usage
93
+
94
+ <dl>
95
+ <dd>
96
+
97
+ <dl>
98
+ <dd>
99
+
100
+ ```typescript
101
+ await client.inboxes.search({
102
+ q: "q"
103
+ });
104
+
105
+ ```
106
+ </dd>
107
+ </dl>
108
+ </dd>
109
+ </dl>
110
+
111
+ #### ⚙️ Parameters
112
+
113
+ <dl>
114
+ <dd>
115
+
116
+ <dl>
117
+ <dd>
118
+
119
+ **request:** `AgentMail.inboxes.SearchInboxesRequest`
120
+
121
+ </dd>
122
+ </dl>
123
+
124
+ <dl>
125
+ <dd>
126
+
127
+ **requestOptions:** `InboxesClient.RequestOptions`
128
+
129
+ </dd>
130
+ </dl>
131
+ </dd>
132
+ </dl>
133
+
134
+
65
135
  </dd>
66
136
  </dl>
67
137
  </details>
@@ -5738,7 +5808,7 @@ await client.inboxes.threads.search("inbox_id", {
5738
5808
  </dl>
5739
5809
  </details>
5740
5810
 
5741
- <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>
5742
5812
  <dl>
5743
5813
  <dd>
5744
5814
 
@@ -5800,6 +5870,14 @@ await client.inboxes.threads.get("inbox_id", "thread_id");
5800
5870
  <dl>
5801
5871
  <dd>
5802
5872
 
5873
+ **request:** `AgentMail.inboxes.GetInboxThreadRequest`
5874
+
5875
+ </dd>
5876
+ </dl>
5877
+
5878
+ <dl>
5879
+ <dd>
5880
+
5803
5881
  **requestOptions:** `ThreadsClient.RequestOptions`
5804
5882
 
5805
5883
  </dd>
@@ -8171,6 +8249,84 @@ await client.pods.inboxes.list("pod_id");
8171
8249
  </dl>
8172
8250
 
8173
8251
 
8252
+ </dd>
8253
+ </dl>
8254
+ </details>
8255
+
8256
+ <details><summary><code>client.pods.inboxes.<a href="/src/api/resources/pods/resources/inboxes/client/Client.ts">search</a>(pod_id, { ...params }) -> AgentMail.SearchInboxesResponse</code></summary>
8257
+ <dl>
8258
+ <dd>
8259
+
8260
+ #### 📝 Description
8261
+
8262
+ <dl>
8263
+ <dd>
8264
+
8265
+ <dl>
8266
+ <dd>
8267
+
8268
+ Searches inboxes in the pod by address or display name, ranked by
8269
+ relevance. Each word in the query matches the start of a word in the
8270
+ address or display name, so `sup` matches `support@example.com` but
8271
+ `port` does not. An exact address match always ranks first. `limit`
8272
+ cannot exceed 100. A page can be empty and still carry a
8273
+ `next_page_token`; keep paging until the token is absent.
8274
+ </dd>
8275
+ </dl>
8276
+ </dd>
8277
+ </dl>
8278
+
8279
+ #### 🔌 Usage
8280
+
8281
+ <dl>
8282
+ <dd>
8283
+
8284
+ <dl>
8285
+ <dd>
8286
+
8287
+ ```typescript
8288
+ await client.pods.inboxes.search("pod_id", {
8289
+ q: "q"
8290
+ });
8291
+
8292
+ ```
8293
+ </dd>
8294
+ </dl>
8295
+ </dd>
8296
+ </dl>
8297
+
8298
+ #### ⚙️ Parameters
8299
+
8300
+ <dl>
8301
+ <dd>
8302
+
8303
+ <dl>
8304
+ <dd>
8305
+
8306
+ **pod_id:** `AgentMail.PodId`
8307
+
8308
+ </dd>
8309
+ </dl>
8310
+
8311
+ <dl>
8312
+ <dd>
8313
+
8314
+ **request:** `AgentMail.pods.SearchInboxesRequest`
8315
+
8316
+ </dd>
8317
+ </dl>
8318
+
8319
+ <dl>
8320
+ <dd>
8321
+
8322
+ **requestOptions:** `InboxesClient.RequestOptions`
8323
+
8324
+ </dd>
8325
+ </dl>
8326
+ </dd>
8327
+ </dl>
8328
+
8329
+
8174
8330
  </dd>
8175
8331
  </dl>
8176
8332
  </details>
@@ -9156,7 +9312,7 @@ await client.pods.threads.search("pod_id", {
9156
9312
  </dl>
9157
9313
  </details>
9158
9314
 
9159
- <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>
9160
9316
  <dl>
9161
9317
  <dd>
9162
9318
 
@@ -9218,6 +9374,14 @@ await client.pods.threads.get("pod_id", "thread_id");
9218
9374
  <dl>
9219
9375
  <dd>
9220
9376
 
9377
+ **request:** `AgentMail.pods.GetPodThreadRequest`
9378
+
9379
+ </dd>
9380
+ </dl>
9381
+
9382
+ <dl>
9383
+ <dd>
9384
+
9221
9385
  **requestOptions:** `ThreadsClient.RequestOptions`
9222
9386
 
9223
9387
  </dd>
@@ -10467,7 +10631,7 @@ await client.threads.search({
10467
10631
  </dl>
10468
10632
  </details>
10469
10633
 
10470
- <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>
10471
10635
  <dl>
10472
10636
  <dd>
10473
10637
 
@@ -10521,6 +10685,14 @@ await client.threads.get("thread_id");
10521
10685
  <dl>
10522
10686
  <dd>
10523
10687
 
10688
+ **request:** `AgentMail.GetThreadRequest`
10689
+
10690
+ </dd>
10691
+ </dl>
10692
+
10693
+ <dl>
10694
+ <dd>
10695
+
10524
10696
  **requestOptions:** `ThreadsClient.RequestOptions`
10525
10697
 
10526
10698
  </dd>