agentmail 0.5.8 → 0.5.10

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 (196) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -2
  3. package/dist/cjs/api/resources/domains/client/Client.js +1 -2
  4. package/dist/cjs/api/resources/domains/types/CreateDomainRequest.d.ts +2 -1
  5. package/dist/cjs/api/resources/domains/types/Domain.d.ts +5 -1
  6. package/dist/cjs/api/resources/domains/types/DomainItem.d.ts +1 -0
  7. package/dist/cjs/api/resources/domains/types/SubdomainsEnabled.d.ts +5 -0
  8. package/dist/cjs/api/resources/domains/types/SubdomainsEnabled.js +3 -0
  9. package/dist/cjs/api/resources/domains/types/UpdateDomainRequest.d.ts +7 -0
  10. package/dist/cjs/api/resources/domains/types/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/domains/types/index.js +1 -0
  12. package/dist/cjs/api/resources/inboxes/client/Client.d.ts +1 -0
  13. package/dist/cjs/api/resources/inboxes/client/Client.js +9 -0
  14. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +26 -0
  15. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +101 -1
  16. package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +6 -0
  17. package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/SearchMessagesRequest.d.ts +14 -0
  18. package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/SearchMessagesRequest.js +3 -0
  19. package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/index.d.ts +1 -0
  20. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +25 -0
  21. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +100 -1
  22. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +6 -0
  23. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/SearchThreadsRequest.d.ts +14 -0
  24. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/SearchThreadsRequest.js +3 -0
  25. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/inboxes/types/CreateInboxRequest.d.ts +5 -1
  27. package/dist/cjs/api/resources/messages/types/SearchMessageHighlights.d.ts +15 -0
  28. package/dist/cjs/api/resources/messages/types/SearchMessageHighlights.js +3 -0
  29. package/dist/cjs/api/resources/messages/types/SearchMessageItem.d.ts +5 -0
  30. package/dist/cjs/api/resources/messages/types/SearchMessageItem.js +3 -0
  31. package/dist/cjs/api/resources/messages/types/SearchMessagesResponse.d.ts +8 -0
  32. package/dist/cjs/api/resources/messages/types/SearchMessagesResponse.js +3 -0
  33. package/dist/cjs/api/resources/messages/types/index.d.ts +3 -0
  34. package/dist/cjs/api/resources/messages/types/index.js +3 -0
  35. package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -2
  36. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +1 -2
  37. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -0
  38. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +9 -0
  39. package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +25 -0
  40. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +100 -1
  41. package/dist/cjs/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.ts +6 -0
  42. package/dist/cjs/api/resources/pods/resources/threads/client/requests/SearchThreadsRequest.d.ts +14 -0
  43. package/dist/cjs/api/resources/pods/resources/threads/client/requests/SearchThreadsRequest.js +3 -0
  44. package/dist/cjs/api/resources/pods/resources/threads/client/requests/index.d.ts +1 -0
  45. package/dist/cjs/api/resources/threads/client/Client.d.ts +26 -0
  46. package/dist/cjs/api/resources/threads/client/Client.js +101 -1
  47. package/dist/cjs/api/resources/threads/client/requests/ListThreadsRequest.d.ts +6 -0
  48. package/dist/cjs/api/resources/threads/client/requests/SearchThreadsRequest.d.ts +14 -0
  49. package/dist/cjs/api/resources/threads/client/requests/SearchThreadsRequest.js +3 -0
  50. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/threads/types/SearchThreadHighlights.d.ts +15 -0
  52. package/dist/cjs/api/resources/threads/types/SearchThreadHighlights.js +3 -0
  53. package/dist/cjs/api/resources/threads/types/SearchThreadItem.d.ts +5 -0
  54. package/dist/cjs/api/resources/threads/types/SearchThreadItem.js +3 -0
  55. package/dist/cjs/api/resources/threads/types/SearchThreadsResponse.d.ts +8 -0
  56. package/dist/cjs/api/resources/threads/types/SearchThreadsResponse.js +3 -0
  57. package/dist/cjs/api/resources/threads/types/index.d.ts +3 -0
  58. package/dist/cjs/api/resources/threads/types/index.js +3 -0
  59. package/dist/cjs/api/types/Query.d.ts +5 -0
  60. package/dist/cjs/api/types/Query.js +3 -0
  61. package/dist/cjs/api/types/index.d.ts +1 -0
  62. package/dist/cjs/api/types/index.js +1 -0
  63. package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.d.ts +3 -1
  64. package/dist/cjs/serialization/resources/domains/types/CreateDomainRequest.js +3 -1
  65. package/dist/cjs/serialization/resources/domains/types/Domain.d.ts +2 -0
  66. package/dist/cjs/serialization/resources/domains/types/Domain.js +2 -0
  67. package/dist/cjs/serialization/resources/domains/types/DomainItem.d.ts +2 -0
  68. package/dist/cjs/serialization/resources/domains/types/DomainItem.js +2 -0
  69. package/dist/cjs/serialization/resources/domains/types/SubdomainsEnabled.d.ts +7 -0
  70. package/dist/cjs/serialization/resources/domains/types/SubdomainsEnabled.js +39 -0
  71. package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.d.ts +2 -0
  72. package/dist/cjs/serialization/resources/domains/types/UpdateDomainRequest.js +2 -0
  73. package/dist/cjs/serialization/resources/domains/types/index.d.ts +1 -0
  74. package/dist/cjs/serialization/resources/domains/types/index.js +1 -0
  75. package/dist/cjs/serialization/resources/messages/types/SearchMessageHighlights.d.ts +12 -0
  76. package/dist/cjs/serialization/resources/messages/types/SearchMessageHighlights.js +44 -0
  77. package/dist/cjs/serialization/resources/messages/types/SearchMessageItem.d.ts +11 -0
  78. package/dist/cjs/serialization/resources/messages/types/SearchMessageItem.js +45 -0
  79. package/dist/cjs/serialization/resources/messages/types/SearchMessagesResponse.d.ts +16 -0
  80. package/dist/cjs/serialization/resources/messages/types/SearchMessagesResponse.js +48 -0
  81. package/dist/cjs/serialization/resources/messages/types/index.d.ts +3 -0
  82. package/dist/cjs/serialization/resources/messages/types/index.js +3 -0
  83. package/dist/cjs/serialization/resources/threads/types/SearchThreadHighlights.d.ts +12 -0
  84. package/dist/cjs/serialization/resources/threads/types/SearchThreadHighlights.js +44 -0
  85. package/dist/cjs/serialization/resources/threads/types/SearchThreadItem.d.ts +11 -0
  86. package/dist/cjs/serialization/resources/threads/types/SearchThreadItem.js +45 -0
  87. package/dist/cjs/serialization/resources/threads/types/SearchThreadsResponse.d.ts +16 -0
  88. package/dist/cjs/serialization/resources/threads/types/SearchThreadsResponse.js +48 -0
  89. package/dist/cjs/serialization/resources/threads/types/index.d.ts +3 -0
  90. package/dist/cjs/serialization/resources/threads/types/index.js +3 -0
  91. package/dist/cjs/serialization/types/Query.d.ts +7 -0
  92. package/dist/cjs/serialization/types/Query.js +39 -0
  93. package/dist/cjs/serialization/types/index.d.ts +1 -0
  94. package/dist/cjs/serialization/types/index.js +1 -0
  95. package/dist/cjs/version.d.ts +1 -1
  96. package/dist/cjs/version.js +1 -1
  97. package/dist/esm/BaseClient.mjs +2 -2
  98. package/dist/esm/api/resources/domains/client/Client.d.mts +1 -2
  99. package/dist/esm/api/resources/domains/client/Client.mjs +1 -2
  100. package/dist/esm/api/resources/domains/types/CreateDomainRequest.d.mts +2 -1
  101. package/dist/esm/api/resources/domains/types/Domain.d.mts +5 -1
  102. package/dist/esm/api/resources/domains/types/DomainItem.d.mts +1 -0
  103. package/dist/esm/api/resources/domains/types/SubdomainsEnabled.d.mts +5 -0
  104. package/dist/esm/api/resources/domains/types/SubdomainsEnabled.mjs +2 -0
  105. package/dist/esm/api/resources/domains/types/UpdateDomainRequest.d.mts +7 -0
  106. package/dist/esm/api/resources/domains/types/index.d.mts +1 -0
  107. package/dist/esm/api/resources/domains/types/index.mjs +1 -0
  108. package/dist/esm/api/resources/inboxes/client/Client.d.mts +1 -0
  109. package/dist/esm/api/resources/inboxes/client/Client.mjs +9 -0
  110. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +26 -0
  111. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +101 -1
  112. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +6 -0
  113. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/SearchMessagesRequest.d.mts +14 -0
  114. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/SearchMessagesRequest.mjs +2 -0
  115. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/index.d.mts +1 -0
  116. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +25 -0
  117. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +100 -1
  118. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +6 -0
  119. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/SearchThreadsRequest.d.mts +14 -0
  120. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/SearchThreadsRequest.mjs +2 -0
  121. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/index.d.mts +1 -0
  122. package/dist/esm/api/resources/inboxes/types/CreateInboxRequest.d.mts +5 -1
  123. package/dist/esm/api/resources/messages/types/SearchMessageHighlights.d.mts +15 -0
  124. package/dist/esm/api/resources/messages/types/SearchMessageHighlights.mjs +2 -0
  125. package/dist/esm/api/resources/messages/types/SearchMessageItem.d.mts +5 -0
  126. package/dist/esm/api/resources/messages/types/SearchMessageItem.mjs +2 -0
  127. package/dist/esm/api/resources/messages/types/SearchMessagesResponse.d.mts +8 -0
  128. package/dist/esm/api/resources/messages/types/SearchMessagesResponse.mjs +2 -0
  129. package/dist/esm/api/resources/messages/types/index.d.mts +3 -0
  130. package/dist/esm/api/resources/messages/types/index.mjs +3 -0
  131. package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -2
  132. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +1 -2
  133. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -0
  134. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +9 -0
  135. package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +25 -0
  136. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +100 -1
  137. package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.mts +6 -0
  138. package/dist/esm/api/resources/pods/resources/threads/client/requests/SearchThreadsRequest.d.mts +14 -0
  139. package/dist/esm/api/resources/pods/resources/threads/client/requests/SearchThreadsRequest.mjs +2 -0
  140. package/dist/esm/api/resources/pods/resources/threads/client/requests/index.d.mts +1 -0
  141. package/dist/esm/api/resources/threads/client/Client.d.mts +26 -0
  142. package/dist/esm/api/resources/threads/client/Client.mjs +101 -1
  143. package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +6 -0
  144. package/dist/esm/api/resources/threads/client/requests/SearchThreadsRequest.d.mts +14 -0
  145. package/dist/esm/api/resources/threads/client/requests/SearchThreadsRequest.mjs +2 -0
  146. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -0
  147. package/dist/esm/api/resources/threads/types/SearchThreadHighlights.d.mts +15 -0
  148. package/dist/esm/api/resources/threads/types/SearchThreadHighlights.mjs +2 -0
  149. package/dist/esm/api/resources/threads/types/SearchThreadItem.d.mts +5 -0
  150. package/dist/esm/api/resources/threads/types/SearchThreadItem.mjs +2 -0
  151. package/dist/esm/api/resources/threads/types/SearchThreadsResponse.d.mts +8 -0
  152. package/dist/esm/api/resources/threads/types/SearchThreadsResponse.mjs +2 -0
  153. package/dist/esm/api/resources/threads/types/index.d.mts +3 -0
  154. package/dist/esm/api/resources/threads/types/index.mjs +3 -0
  155. package/dist/esm/api/types/Query.d.mts +5 -0
  156. package/dist/esm/api/types/Query.mjs +2 -0
  157. package/dist/esm/api/types/index.d.mts +1 -0
  158. package/dist/esm/api/types/index.mjs +1 -0
  159. package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.d.mts +3 -1
  160. package/dist/esm/serialization/resources/domains/types/CreateDomainRequest.mjs +3 -1
  161. package/dist/esm/serialization/resources/domains/types/Domain.d.mts +2 -0
  162. package/dist/esm/serialization/resources/domains/types/Domain.mjs +2 -0
  163. package/dist/esm/serialization/resources/domains/types/DomainItem.d.mts +2 -0
  164. package/dist/esm/serialization/resources/domains/types/DomainItem.mjs +2 -0
  165. package/dist/esm/serialization/resources/domains/types/SubdomainsEnabled.d.mts +7 -0
  166. package/dist/esm/serialization/resources/domains/types/SubdomainsEnabled.mjs +3 -0
  167. package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.d.mts +2 -0
  168. package/dist/esm/serialization/resources/domains/types/UpdateDomainRequest.mjs +2 -0
  169. package/dist/esm/serialization/resources/domains/types/index.d.mts +1 -0
  170. package/dist/esm/serialization/resources/domains/types/index.mjs +1 -0
  171. package/dist/esm/serialization/resources/messages/types/SearchMessageHighlights.d.mts +12 -0
  172. package/dist/esm/serialization/resources/messages/types/SearchMessageHighlights.mjs +8 -0
  173. package/dist/esm/serialization/resources/messages/types/SearchMessageItem.d.mts +11 -0
  174. package/dist/esm/serialization/resources/messages/types/SearchMessageItem.mjs +9 -0
  175. package/dist/esm/serialization/resources/messages/types/SearchMessagesResponse.d.mts +16 -0
  176. package/dist/esm/serialization/resources/messages/types/SearchMessagesResponse.mjs +12 -0
  177. package/dist/esm/serialization/resources/messages/types/index.d.mts +3 -0
  178. package/dist/esm/serialization/resources/messages/types/index.mjs +3 -0
  179. package/dist/esm/serialization/resources/threads/types/SearchThreadHighlights.d.mts +12 -0
  180. package/dist/esm/serialization/resources/threads/types/SearchThreadHighlights.mjs +8 -0
  181. package/dist/esm/serialization/resources/threads/types/SearchThreadItem.d.mts +11 -0
  182. package/dist/esm/serialization/resources/threads/types/SearchThreadItem.mjs +9 -0
  183. package/dist/esm/serialization/resources/threads/types/SearchThreadsResponse.d.mts +16 -0
  184. package/dist/esm/serialization/resources/threads/types/SearchThreadsResponse.mjs +12 -0
  185. package/dist/esm/serialization/resources/threads/types/index.d.mts +3 -0
  186. package/dist/esm/serialization/resources/threads/types/index.mjs +3 -0
  187. package/dist/esm/serialization/types/Query.d.mts +7 -0
  188. package/dist/esm/serialization/types/Query.mjs +3 -0
  189. package/dist/esm/serialization/types/index.d.mts +1 -0
  190. package/dist/esm/serialization/types/index.mjs +1 -0
  191. package/dist/esm/version.d.mts +1 -1
  192. package/dist/esm/version.mjs +1 -1
  193. package/dist/llms-full.txt +10309 -2931
  194. package/dist/llms.txt +5 -0
  195. package/package.json +1 -1
  196. package/reference.md +321 -4
@@ -5,7 +5,11 @@ export interface Domain {
5
5
  domain: AgentMail.DomainName;
6
6
  status: AgentMail.Status;
7
7
  feedbackEnabled: AgentMail.FeedbackEnabled;
8
- /** A list of DNS records required to verify the domain. */
8
+ subdomainsEnabled: AgentMail.SubdomainsEnabled;
9
+ /**
10
+ * A list of DNS records required to verify the domain. Includes a
11
+ * wildcard MX record (`*.<domain>`) when `subdomains_enabled` is true.
12
+ */
9
13
  records: AgentMail.VerificationRecord[];
10
14
  clientId?: AgentMail.ClientId;
11
15
  /** Time at which the domain was last updated. */
@@ -4,6 +4,7 @@ export interface DomainItem {
4
4
  domainId: AgentMail.DomainId;
5
5
  domain: AgentMail.DomainName;
6
6
  feedbackEnabled: AgentMail.FeedbackEnabled;
7
+ subdomainsEnabled: AgentMail.SubdomainsEnabled;
7
8
  clientId?: AgentMail.ClientId;
8
9
  /** Time at which the domain was last updated. */
9
10
  updatedAt: Date;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Allow inboxes on any subdomain of this domain. Adds a required wildcard MX
3
+ * record (`*.<domain>`) to `records`.
4
+ */
5
+ export type SubdomainsEnabled = boolean;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,4 +1,11 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
+ /**
3
+ * Provide at least one of `feedback_enabled` or `subdomains_enabled`. Omitted
4
+ * fields are left unchanged; an empty body is rejected. Enabling
5
+ * `subdomains_enabled` on a verified domain returns it to `PENDING` until the
6
+ * newly-required wildcard MX record (`*.<domain>`) is published and verified.
7
+ */
2
8
  export interface UpdateDomainRequest {
3
9
  feedbackEnabled?: AgentMail.FeedbackEnabled;
10
+ subdomainsEnabled?: AgentMail.SubdomainsEnabled;
4
11
  }
@@ -9,6 +9,7 @@ export * from "./ListDomainsResponse.mjs";
9
9
  export * from "./RecordStatus.mjs";
10
10
  export * from "./RecordType.mjs";
11
11
  export * from "./Status.mjs";
12
+ export * from "./SubdomainsEnabled.mjs";
12
13
  export * from "./UpdateDomainRequest.mjs";
13
14
  export * from "./VerificationRecord.mjs";
14
15
  export * from "./VerificationStatus.mjs";
@@ -9,6 +9,7 @@ export * from "./ListDomainsResponse.mjs";
9
9
  export * from "./RecordStatus.mjs";
10
10
  export * from "./RecordType.mjs";
11
11
  export * from "./Status.mjs";
12
+ export * from "./SubdomainsEnabled.mjs";
12
13
  export * from "./UpdateDomainRequest.mjs";
13
14
  export * from "./VerificationRecord.mjs";
14
15
  export * from "./VerificationStatus.mjs";
@@ -71,6 +71,7 @@ export declare class InboxesClient {
71
71
  * @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
72
72
  *
73
73
  * @throws {@link AgentMail.ValidationError}
74
+ * @throws {@link AgentMail.UnprocessableError}
74
75
  *
75
76
  * @example
76
77
  * await client.inboxes.create(undefined)
@@ -192,6 +192,7 @@ export class InboxesClient {
192
192
  * @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
193
193
  *
194
194
  * @throws {@link AgentMail.ValidationError}
195
+ * @throws {@link AgentMail.UnprocessableError}
195
196
  *
196
197
  * @example
197
198
  * await client.inboxes.create(undefined)
@@ -244,6 +245,14 @@ export class InboxesClient {
244
245
  skipValidation: true,
245
246
  breadcrumbsPrefix: ["response"],
246
247
  }), _response.rawResponse);
248
+ case 422:
249
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
250
+ unrecognizedObjectKeys: "passthrough",
251
+ allowUnrecognizedUnionMembers: true,
252
+ allowUnrecognizedEnumValues: true,
253
+ skipValidation: true,
254
+ breadcrumbsPrefix: ["response"],
255
+ }), _response.rawResponse);
247
256
  default:
248
257
  throw new errors.AgentMailError({
249
258
  statusCode: _response.error.statusCode,
@@ -11,6 +11,12 @@ export declare class MessagesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<MessagesClient.Options>;
12
12
  constructor(options?: MessagesClient.Options);
13
13
  /**
14
+ * Lists messages in the inbox, most recent first. Pass `from`, `to`, or
15
+ * `subject` to filter by substring. Filtered requests are served by
16
+ * search, which caps `limit` at 100. For relevance-ranked full-text
17
+ * search across sender, recipients, subject, and message body, use
18
+ * `Search Messages`.
19
+ *
14
20
  * **CLI:**
15
21
  * ```bash
16
22
  * agentmail inboxes:messages list --inbox-id <inbox_id>
@@ -27,6 +33,26 @@ export declare class MessagesClient {
27
33
  */
28
34
  list(inbox_id: AgentMail.inboxes.InboxId, request?: AgentMail.inboxes.ListMessagesRequest, requestOptions?: MessagesClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListMessagesResponse>;
29
35
  private __list;
36
+ /**
37
+ * Full-text search across messages in the inbox, ranked by relevance. The
38
+ * query is matched against the sender, recipients, and subject (substring)
39
+ * and the message body (tokenized full text). Spam, trash, blocked, and
40
+ * unauthenticated messages are always excluded. `limit` cannot exceed 100.
41
+ *
42
+ * @param {AgentMail.inboxes.InboxId} inbox_id
43
+ * @param {AgentMail.inboxes.SearchMessagesRequest} request
44
+ * @param {MessagesClient.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @throws {@link AgentMail.ValidationError}
47
+ * @throws {@link AgentMail.NotFoundError}
48
+ *
49
+ * @example
50
+ * await client.inboxes.messages.search("inbox_id", {
51
+ * q: "q"
52
+ * })
53
+ */
54
+ search(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.inboxes.SearchMessagesRequest, requestOptions?: MessagesClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchMessagesResponse>;
55
+ private __search;
30
56
  /**
31
57
  * **CLI:**
32
58
  * ```bash
@@ -22,6 +22,12 @@ export class MessagesClient {
22
22
  this._options = normalizeClientOptionsWithAuth(options);
23
23
  }
24
24
  /**
25
+ * Lists messages in the inbox, most recent first. Pass `from`, `to`, or
26
+ * `subject` to filter by substring. Filtered requests are served by
27
+ * search, which caps `limit` at 100. For relevance-ranked full-text
28
+ * search across sender, recipients, subject, and message body, use
29
+ * `Search Messages`.
30
+ *
25
31
  * **CLI:**
26
32
  * ```bash
27
33
  * agentmail inboxes:messages list --inbox-id <inbox_id>
@@ -42,7 +48,7 @@ export class MessagesClient {
42
48
  __list(inbox_id_1) {
43
49
  return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
44
50
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
45
- const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, } = request;
51
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, from: from_, to, subject, } = request;
46
52
  const _queryParams = {
47
53
  limit,
48
54
  page_token: pageToken,
@@ -63,6 +69,9 @@ export class MessagesClient {
63
69
  include_blocked: includeBlocked,
64
70
  include_unauthenticated: includeUnauthenticated,
65
71
  include_trash: includeTrash,
72
+ from: from_ != null ? toJson(from_) : undefined,
73
+ to: to != null ? toJson(to) : undefined,
74
+ subject: subject != null ? toJson(subject) : undefined,
66
75
  };
67
76
  const _authRequest = yield this._options.authProvider.getAuthRequest();
68
77
  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);
@@ -111,6 +120,97 @@ export class MessagesClient {
111
120
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/inboxes/{inbox_id}/messages");
112
121
  });
113
122
  }
123
+ /**
124
+ * Full-text search across messages in the inbox, ranked by relevance. The
125
+ * query is matched against the sender, recipients, and subject (substring)
126
+ * and the message body (tokenized full text). Spam, trash, blocked, and
127
+ * unauthenticated messages are always excluded. `limit` cannot exceed 100.
128
+ *
129
+ * @param {AgentMail.inboxes.InboxId} inbox_id
130
+ * @param {AgentMail.inboxes.SearchMessagesRequest} request
131
+ * @param {MessagesClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link AgentMail.ValidationError}
134
+ * @throws {@link AgentMail.NotFoundError}
135
+ *
136
+ * @example
137
+ * await client.inboxes.messages.search("inbox_id", {
138
+ * q: "q"
139
+ * })
140
+ */
141
+ search(inbox_id, request, requestOptions) {
142
+ return core.HttpResponsePromise.fromPromise(this.__search(inbox_id, request, requestOptions));
143
+ }
144
+ __search(inbox_id, request, requestOptions) {
145
+ return __awaiter(this, void 0, void 0, function* () {
146
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
147
+ const { q, limit, pageToken, before, after } = request;
148
+ const _queryParams = {
149
+ q,
150
+ limit,
151
+ page_token: pageToken,
152
+ before: before != null
153
+ ? serializers.Before.jsonOrThrow(before, { unrecognizedObjectKeys: "strip", omitUndefined: true })
154
+ : undefined,
155
+ after: after != null
156
+ ? serializers.After.jsonOrThrow(after, { unrecognizedObjectKeys: "strip", omitUndefined: true })
157
+ : undefined,
158
+ };
159
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
160
+ 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);
161
+ const _response = yield core.fetcher({
162
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
163
+ .http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/messages/search`),
164
+ method: "GET",
165
+ headers: _headers,
166
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
167
+ 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,
168
+ 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,
169
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
170
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
171
+ logging: this._options.logging,
172
+ });
173
+ if (_response.ok) {
174
+ return {
175
+ data: serializers.SearchMessagesResponse.parseOrThrow(_response.body, {
176
+ unrecognizedObjectKeys: "passthrough",
177
+ allowUnrecognizedUnionMembers: true,
178
+ allowUnrecognizedEnumValues: true,
179
+ skipValidation: true,
180
+ breadcrumbsPrefix: ["response"],
181
+ }),
182
+ rawResponse: _response.rawResponse,
183
+ };
184
+ }
185
+ if (_response.error.reason === "status-code") {
186
+ switch (_response.error.statusCode) {
187
+ case 400:
188
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
189
+ unrecognizedObjectKeys: "passthrough",
190
+ allowUnrecognizedUnionMembers: true,
191
+ allowUnrecognizedEnumValues: true,
192
+ skipValidation: true,
193
+ breadcrumbsPrefix: ["response"],
194
+ }), _response.rawResponse);
195
+ case 404:
196
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
197
+ unrecognizedObjectKeys: "passthrough",
198
+ allowUnrecognizedUnionMembers: true,
199
+ allowUnrecognizedEnumValues: true,
200
+ skipValidation: true,
201
+ breadcrumbsPrefix: ["response"],
202
+ }), _response.rawResponse);
203
+ default:
204
+ throw new errors.AgentMailError({
205
+ statusCode: _response.error.statusCode,
206
+ body: _response.error.body,
207
+ rawResponse: _response.rawResponse,
208
+ });
209
+ }
210
+ }
211
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/inboxes/{inbox_id}/messages/search");
212
+ });
213
+ }
114
214
  /**
115
215
  * **CLI:**
116
216
  * ```bash
@@ -14,4 +14,10 @@ export interface ListMessagesRequest {
14
14
  includeBlocked?: AgentMail.IncludeBlocked;
15
15
  includeUnauthenticated?: AgentMail.IncludeUnauthenticated;
16
16
  includeTrash?: AgentMail.IncludeTrash;
17
+ /** Filter to messages whose sender contains this value (substring match). Repeatable; all values must match. */
18
+ from?: string[];
19
+ /** Filter to messages whose recipients (to, cc, or bcc) contain this value (substring match). Repeatable; all values must match. */
20
+ to?: string[];
21
+ /** Filter to messages whose subject contains this value (substring match). Repeatable; all values must match. */
22
+ subject?: string[];
17
23
  }
@@ -0,0 +1,14 @@
1
+ import type * as AgentMail from "../../../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * q: "q"
6
+ * }
7
+ */
8
+ export interface SearchMessagesRequest {
9
+ q: AgentMail.Query;
10
+ limit?: AgentMail.Limit;
11
+ pageToken?: AgentMail.PageToken;
12
+ before?: AgentMail.Before;
13
+ after?: AgentMail.After;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1 +1,2 @@
1
1
  export type { ListMessagesRequest } from "./ListMessagesRequest.mjs";
2
+ export type { SearchMessagesRequest } from "./SearchMessagesRequest.mjs";
@@ -11,6 +11,11 @@ export declare class ThreadsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ThreadsClient.Options>;
12
12
  constructor(options?: ThreadsClient.Options);
13
13
  /**
14
+ * Lists threads in the inbox, most recent first. Pass `senders`,
15
+ * `recipients`, or `subject` to filter by substring. Filtered requests are
16
+ * served by search, which caps `limit` at 100. For relevance-ranked
17
+ * full-text search, use `Search Threads`.
18
+ *
14
19
  * **CLI:**
15
20
  * ```bash
16
21
  * agentmail inboxes:threads list --inbox-id <inbox_id>
@@ -27,6 +32,26 @@ export declare class ThreadsClient {
27
32
  */
28
33
  list(inbox_id: AgentMail.inboxes.InboxId, request?: AgentMail.inboxes.ListThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListThreadsResponse>;
29
34
  private __list;
35
+ /**
36
+ * Full-text search across threads in the inbox, ranked by relevance. The
37
+ * query is matched against senders, recipients, and subject (substring)
38
+ * and the message body (tokenized full text). Spam, trash, blocked, and
39
+ * unauthenticated threads are always excluded. `limit` cannot exceed 100.
40
+ *
41
+ * @param {AgentMail.inboxes.InboxId} inbox_id
42
+ * @param {AgentMail.inboxes.SearchThreadsRequest} request
43
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link AgentMail.ValidationError}
46
+ * @throws {@link AgentMail.NotFoundError}
47
+ *
48
+ * @example
49
+ * await client.inboxes.threads.search("inbox_id", {
50
+ * q: "q"
51
+ * })
52
+ */
53
+ search(inbox_id: AgentMail.inboxes.InboxId, request: AgentMail.inboxes.SearchThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchThreadsResponse>;
54
+ private __search;
30
55
  /**
31
56
  * **CLI:**
32
57
  * ```bash
@@ -22,6 +22,11 @@ export class ThreadsClient {
22
22
  this._options = normalizeClientOptionsWithAuth(options);
23
23
  }
24
24
  /**
25
+ * Lists threads in the inbox, most recent first. Pass `senders`,
26
+ * `recipients`, or `subject` to filter by substring. Filtered requests are
27
+ * served by search, which caps `limit` at 100. For relevance-ranked
28
+ * full-text search, use `Search Threads`.
29
+ *
25
30
  * **CLI:**
26
31
  * ```bash
27
32
  * agentmail inboxes:threads list --inbox-id <inbox_id>
@@ -42,7 +47,7 @@ export class ThreadsClient {
42
47
  __list(inbox_id_1) {
43
48
  return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
44
49
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
45
- const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, } = request;
50
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, senders, recipients, subject, } = request;
46
51
  const _queryParams = {
47
52
  limit,
48
53
  page_token: pageToken,
@@ -63,6 +68,9 @@ export class ThreadsClient {
63
68
  include_blocked: includeBlocked,
64
69
  include_unauthenticated: includeUnauthenticated,
65
70
  include_trash: includeTrash,
71
+ senders: senders != null ? toJson(senders) : undefined,
72
+ recipients: recipients != null ? toJson(recipients) : undefined,
73
+ subject: subject != null ? toJson(subject) : undefined,
66
74
  };
67
75
  const _authRequest = yield this._options.authProvider.getAuthRequest();
68
76
  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);
@@ -111,6 +119,97 @@ export class ThreadsClient {
111
119
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/inboxes/{inbox_id}/threads");
112
120
  });
113
121
  }
122
+ /**
123
+ * Full-text search across threads in the inbox, ranked by relevance. The
124
+ * query is matched against senders, recipients, and subject (substring)
125
+ * and the message body (tokenized full text). Spam, trash, blocked, and
126
+ * unauthenticated threads are always excluded. `limit` cannot exceed 100.
127
+ *
128
+ * @param {AgentMail.inboxes.InboxId} inbox_id
129
+ * @param {AgentMail.inboxes.SearchThreadsRequest} request
130
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link AgentMail.ValidationError}
133
+ * @throws {@link AgentMail.NotFoundError}
134
+ *
135
+ * @example
136
+ * await client.inboxes.threads.search("inbox_id", {
137
+ * q: "q"
138
+ * })
139
+ */
140
+ search(inbox_id, request, requestOptions) {
141
+ return core.HttpResponsePromise.fromPromise(this.__search(inbox_id, request, requestOptions));
142
+ }
143
+ __search(inbox_id, request, requestOptions) {
144
+ return __awaiter(this, void 0, void 0, function* () {
145
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
146
+ const { q, limit, pageToken, before, after } = request;
147
+ const _queryParams = {
148
+ q,
149
+ limit,
150
+ page_token: pageToken,
151
+ before: before != null
152
+ ? serializers.Before.jsonOrThrow(before, { unrecognizedObjectKeys: "strip", omitUndefined: true })
153
+ : undefined,
154
+ after: after != null
155
+ ? serializers.After.jsonOrThrow(after, { unrecognizedObjectKeys: "strip", omitUndefined: true })
156
+ : undefined,
157
+ };
158
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
159
+ 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);
160
+ const _response = yield core.fetcher({
161
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.AgentMailEnvironment.Prod)
162
+ .http, `/v0/inboxes/${core.url.encodePathParam(serializers.inboxes.InboxId.jsonOrThrow(inbox_id, { omitUndefined: true }))}/threads/search`),
163
+ method: "GET",
164
+ headers: _headers,
165
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
166
+ 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,
167
+ 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,
168
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
169
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
170
+ logging: this._options.logging,
171
+ });
172
+ if (_response.ok) {
173
+ return {
174
+ data: serializers.SearchThreadsResponse.parseOrThrow(_response.body, {
175
+ unrecognizedObjectKeys: "passthrough",
176
+ allowUnrecognizedUnionMembers: true,
177
+ allowUnrecognizedEnumValues: true,
178
+ skipValidation: true,
179
+ breadcrumbsPrefix: ["response"],
180
+ }),
181
+ rawResponse: _response.rawResponse,
182
+ };
183
+ }
184
+ if (_response.error.reason === "status-code") {
185
+ switch (_response.error.statusCode) {
186
+ case 400:
187
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
188
+ unrecognizedObjectKeys: "passthrough",
189
+ allowUnrecognizedUnionMembers: true,
190
+ allowUnrecognizedEnumValues: true,
191
+ skipValidation: true,
192
+ breadcrumbsPrefix: ["response"],
193
+ }), _response.rawResponse);
194
+ case 404:
195
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ skipValidation: true,
200
+ breadcrumbsPrefix: ["response"],
201
+ }), _response.rawResponse);
202
+ default:
203
+ throw new errors.AgentMailError({
204
+ statusCode: _response.error.statusCode,
205
+ body: _response.error.body,
206
+ rawResponse: _response.rawResponse,
207
+ });
208
+ }
209
+ }
210
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/inboxes/{inbox_id}/threads/search");
211
+ });
212
+ }
114
213
  /**
115
214
  * **CLI:**
116
215
  * ```bash
@@ -14,4 +14,10 @@ export interface ListThreadsRequest {
14
14
  includeBlocked?: AgentMail.IncludeBlocked;
15
15
  includeUnauthenticated?: AgentMail.IncludeUnauthenticated;
16
16
  includeTrash?: AgentMail.IncludeTrash;
17
+ /** Filter to threads whose senders contain this value (substring match). Repeatable; all values must match. */
18
+ senders?: string[];
19
+ /** Filter to threads whose recipients contain this value (substring match). Repeatable; all values must match. */
20
+ recipients?: string[];
21
+ /** Filter to threads whose subject contains this value (substring match). Repeatable; all values must match. */
22
+ subject?: string[];
17
23
  }
@@ -0,0 +1,14 @@
1
+ import type * as AgentMail from "../../../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * q: "q"
6
+ * }
7
+ */
8
+ export interface SearchThreadsRequest {
9
+ q: AgentMail.Query;
10
+ limit?: AgentMail.Limit;
11
+ pageToken?: AgentMail.PageToken;
12
+ before?: AgentMail.Before;
13
+ after?: AgentMail.After;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,2 +1,3 @@
1
1
  export type { DeleteThreadRequest } from "./DeleteThreadRequest.mjs";
2
2
  export type { ListThreadsRequest } from "./ListThreadsRequest.mjs";
3
+ export type { SearchThreadsRequest } from "./SearchThreadsRequest.mjs";
@@ -2,7 +2,11 @@ import type * as AgentMail from "../../../index.mjs";
2
2
  export interface CreateInboxRequest {
3
3
  /** Username of address. Randomly generated if not specified. */
4
4
  username?: string;
5
- /** Domain of address. Must be verified domain. Defaults to `agentmail.to`. */
5
+ /**
6
+ * Domain of address. Must be a verified domain, or any subdomain of a
7
+ * verified domain that has subdomains enabled (e.g., `bot.example.com`).
8
+ * Defaults to `agentmail.to`.
9
+ */
6
10
  domain?: string;
7
11
  displayName?: AgentMail.inboxes.DisplayName;
8
12
  clientId?: AgentMail.inboxes.ClientId;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Matched fragments per field on a message search result, with matched terms
3
+ * wrapped in `**`. A field key is present only when the query matched that
4
+ * field, so the present keys also tell you which fields produced the hit.
5
+ */
6
+ export interface SearchMessageHighlights {
7
+ /** Matched fragments from the sender address. */
8
+ from?: string[];
9
+ /** Matched fragments from the recipient addresses (to, cc, or bcc). */
10
+ recipients?: string[];
11
+ /** Matched fragments from the subject. */
12
+ subject?: string[];
13
+ /** Matched fragments from the message body. */
14
+ text?: string[];
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ export interface SearchMessageItem extends AgentMail.MessageItem {
3
+ /** Matched fragments per field. Present only when the query matched an indexed field. */
4
+ highlights?: AgentMail.SearchMessageHighlights;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,8 @@
1
+ import type * as AgentMail from "../../../index.mjs";
2
+ export interface SearchMessagesResponse {
3
+ count: AgentMail.Count;
4
+ limit?: AgentMail.Limit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ /** Ordered by relevance, best match first. */
7
+ messages: AgentMail.SearchMessageItem[];
8
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -28,6 +28,9 @@ export * from "./RawMessageResponse.mjs";
28
28
  export * from "./ReplyAll.mjs";
29
29
  export * from "./ReplyAllMessageRequest.mjs";
30
30
  export * from "./ReplyToMessageRequest.mjs";
31
+ export * from "./SearchMessageHighlights.mjs";
32
+ export * from "./SearchMessageItem.mjs";
33
+ export * from "./SearchMessagesResponse.mjs";
31
34
  export * from "./SendMessageAttachments.mjs";
32
35
  export * from "./SendMessageBcc.mjs";
33
36
  export * from "./SendMessageCc.mjs";
@@ -28,6 +28,9 @@ export * from "./RawMessageResponse.mjs";
28
28
  export * from "./ReplyAll.mjs";
29
29
  export * from "./ReplyAllMessageRequest.mjs";
30
30
  export * from "./ReplyToMessageRequest.mjs";
31
+ export * from "./SearchMessageHighlights.mjs";
32
+ export * from "./SearchMessageItem.mjs";
33
+ export * from "./SearchMessagesResponse.mjs";
31
34
  export * from "./SendMessageAttachments.mjs";
32
35
  export * from "./SendMessageBcc.mjs";
33
36
  export * from "./SendMessageCc.mjs";
@@ -68,8 +68,7 @@ export declare class DomainsClient {
68
68
  *
69
69
  * @example
70
70
  * await client.pods.domains.create("pod_id", {
71
- * domain: "domain",
72
- * feedbackEnabled: true
71
+ * domain: "domain"
73
72
  * })
74
73
  */
75
74
  create(pod_id: AgentMail.pods.PodId, request: AgentMail.CreateDomainRequest, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<AgentMail.Domain>;
@@ -229,8 +229,7 @@ export class DomainsClient {
229
229
  *
230
230
  * @example
231
231
  * await client.pods.domains.create("pod_id", {
232
- * domain: "domain",
233
- * feedbackEnabled: true
232
+ * domain: "domain"
234
233
  * })
235
234
  */
236
235
  create(pod_id, request, requestOptions) {
@@ -55,6 +55,7 @@ export declare class InboxesClient {
55
55
  * @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
56
56
  *
57
57
  * @throws {@link AgentMail.ValidationError}
58
+ * @throws {@link AgentMail.UnprocessableError}
58
59
  *
59
60
  * @example
60
61
  * await client.pods.inboxes.create("pod_id", {})