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
@@ -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>;
@@ -265,8 +265,7 @@ class DomainsClient {
265
265
  *
266
266
  * @example
267
267
  * await client.pods.domains.create("pod_id", {
268
- * domain: "domain",
269
- * feedbackEnabled: true
268
+ * domain: "domain"
270
269
  * })
271
270
  */
272
271
  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", {})
@@ -209,6 +209,7 @@ class InboxesClient {
209
209
  * @param {InboxesClient.RequestOptions} requestOptions - Request-specific configuration.
210
210
  *
211
211
  * @throws {@link AgentMail.ValidationError}
212
+ * @throws {@link AgentMail.UnprocessableError}
212
213
  *
213
214
  * @example
214
215
  * await client.pods.inboxes.create("pod_id", {})
@@ -261,6 +262,14 @@ class InboxesClient {
261
262
  skipValidation: true,
262
263
  breadcrumbsPrefix: ["response"],
263
264
  }), _response.rawResponse);
265
+ case 422:
266
+ throw new AgentMail.UnprocessableError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
267
+ unrecognizedObjectKeys: "passthrough",
268
+ allowUnrecognizedUnionMembers: true,
269
+ allowUnrecognizedEnumValues: true,
270
+ skipValidation: true,
271
+ breadcrumbsPrefix: ["response"],
272
+ }), _response.rawResponse);
264
273
  default:
265
274
  throw new errors.AgentMailError({
266
275
  statusCode: _response.error.statusCode,
@@ -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 pod, 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 pods:threads list --pod-id <pod_id>
@@ -27,6 +32,26 @@ export declare class ThreadsClient {
27
32
  */
28
33
  list(pod_id: AgentMail.pods.PodId, request?: AgentMail.pods.ListThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListThreadsResponse>;
29
34
  private __list;
35
+ /**
36
+ * Full-text search across threads in the pod, 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.pods.PodId} pod_id
42
+ * @param {AgentMail.pods.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.pods.threads.search("pod_id", {
50
+ * q: "q"
51
+ * })
52
+ */
53
+ search(pod_id: AgentMail.pods.PodId, request: AgentMail.pods.SearchThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchThreadsResponse>;
54
+ private __search;
30
55
  /**
31
56
  * **CLI:**
32
57
  * ```bash
@@ -58,6 +58,11 @@ class ThreadsClient {
58
58
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
+ * Lists threads in the pod, most recent first. Pass `senders`,
62
+ * `recipients`, or `subject` to filter by substring. Filtered requests are
63
+ * served by search, which caps `limit` at 100. For relevance-ranked
64
+ * full-text search, use `Search Threads`.
65
+ *
61
66
  * **CLI:**
62
67
  * ```bash
63
68
  * agentmail pods:threads list --pod-id <pod_id>
@@ -78,7 +83,7 @@ class ThreadsClient {
78
83
  __list(pod_id_1) {
79
84
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
80
85
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
81
- const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, } = request;
86
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, senders, recipients, subject, } = request;
82
87
  const _queryParams = {
83
88
  limit,
84
89
  page_token: pageToken,
@@ -99,6 +104,9 @@ class ThreadsClient {
99
104
  include_blocked: includeBlocked,
100
105
  include_unauthenticated: includeUnauthenticated,
101
106
  include_trash: includeTrash,
107
+ senders: senders != null ? (0, json_js_1.toJson)(senders) : undefined,
108
+ recipients: recipients != null ? (0, json_js_1.toJson)(recipients) : undefined,
109
+ subject: subject != null ? (0, json_js_1.toJson)(subject) : undefined,
102
110
  };
103
111
  const _authRequest = yield this._options.authProvider.getAuthRequest();
104
112
  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);
@@ -147,6 +155,97 @@ class ThreadsClient {
147
155
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/pods/{pod_id}/threads");
148
156
  });
149
157
  }
158
+ /**
159
+ * Full-text search across threads in the pod, ranked by relevance. The
160
+ * query is matched against senders, recipients, and subject (substring)
161
+ * and the message body (tokenized full text). Spam, trash, blocked, and
162
+ * unauthenticated threads are always excluded. `limit` cannot exceed 100.
163
+ *
164
+ * @param {AgentMail.pods.PodId} pod_id
165
+ * @param {AgentMail.pods.SearchThreadsRequest} request
166
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
167
+ *
168
+ * @throws {@link AgentMail.ValidationError}
169
+ * @throws {@link AgentMail.NotFoundError}
170
+ *
171
+ * @example
172
+ * await client.pods.threads.search("pod_id", {
173
+ * q: "q"
174
+ * })
175
+ */
176
+ search(pod_id, request, requestOptions) {
177
+ return core.HttpResponsePromise.fromPromise(this.__search(pod_id, request, requestOptions));
178
+ }
179
+ __search(pod_id, request, requestOptions) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
182
+ const { q, limit, pageToken, before, after } = request;
183
+ const _queryParams = {
184
+ q,
185
+ limit,
186
+ page_token: pageToken,
187
+ before: before != null
188
+ ? serializers.Before.jsonOrThrow(before, { unrecognizedObjectKeys: "strip", omitUndefined: true })
189
+ : undefined,
190
+ after: after != null
191
+ ? serializers.After.jsonOrThrow(after, { unrecognizedObjectKeys: "strip", omitUndefined: true })
192
+ : undefined,
193
+ };
194
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
195
+ 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);
196
+ const _response = yield core.fetcher({
197
+ 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)
198
+ .http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/threads/search`),
199
+ method: "GET",
200
+ headers: _headers,
201
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
202
+ 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,
203
+ 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,
204
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
205
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
206
+ logging: this._options.logging,
207
+ });
208
+ if (_response.ok) {
209
+ return {
210
+ data: serializers.SearchThreadsResponse.parseOrThrow(_response.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ skipValidation: true,
215
+ breadcrumbsPrefix: ["response"],
216
+ }),
217
+ rawResponse: _response.rawResponse,
218
+ };
219
+ }
220
+ if (_response.error.reason === "status-code") {
221
+ switch (_response.error.statusCode) {
222
+ case 400:
223
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
224
+ unrecognizedObjectKeys: "passthrough",
225
+ allowUnrecognizedUnionMembers: true,
226
+ allowUnrecognizedEnumValues: true,
227
+ skipValidation: true,
228
+ breadcrumbsPrefix: ["response"],
229
+ }), _response.rawResponse);
230
+ case 404:
231
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
232
+ unrecognizedObjectKeys: "passthrough",
233
+ allowUnrecognizedUnionMembers: true,
234
+ allowUnrecognizedEnumValues: true,
235
+ skipValidation: true,
236
+ breadcrumbsPrefix: ["response"],
237
+ }), _response.rawResponse);
238
+ default:
239
+ throw new errors.AgentMailError({
240
+ statusCode: _response.error.statusCode,
241
+ body: _response.error.body,
242
+ rawResponse: _response.rawResponse,
243
+ });
244
+ }
245
+ }
246
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/pods/{pod_id}/threads/search");
247
+ });
248
+ }
150
249
  /**
151
250
  * **CLI:**
152
251
  * ```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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export type { DeleteThreadRequest } from "./DeleteThreadRequest.js";
2
2
  export type { ListThreadsRequest } from "./ListThreadsRequest.js";
3
+ export type { SearchThreadsRequest } from "./SearchThreadsRequest.js";
@@ -11,6 +11,12 @@ export declare class ThreadsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ThreadsClient.Options>;
12
12
  constructor(options?: ThreadsClient.Options);
13
13
  /**
14
+ * Lists threads, most recent first. Pass `senders`, `recipients`, 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 senders, recipients, subject, and message body, use
18
+ * `Search Threads`.
19
+ *
14
20
  * **CLI:**
15
21
  * ```bash
16
22
  * agentmail threads list
@@ -26,6 +32,26 @@ export declare class ThreadsClient {
26
32
  */
27
33
  list(request?: AgentMail.ListThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListThreadsResponse>;
28
34
  private __list;
35
+ /**
36
+ * Full-text search across threads in the organization, ranked by
37
+ * relevance. The query is matched against senders, recipients, and
38
+ * subject (substring) and the message body (tokenized full text). Spam,
39
+ * trash, blocked, and unauthenticated threads are always excluded.
40
+ * `limit` cannot exceed 100.
41
+ *
42
+ * @param {AgentMail.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.threads.search({
50
+ * q: "q"
51
+ * })
52
+ */
53
+ search(request: AgentMail.SearchThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<AgentMail.SearchThreadsResponse>;
54
+ private __search;
29
55
  /**
30
56
  * **CLI:**
31
57
  * ```bash
@@ -58,6 +58,12 @@ class ThreadsClient {
58
58
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
59
59
  }
60
60
  /**
61
+ * Lists threads, most recent first. Pass `senders`, `recipients`, or
62
+ * `subject` to filter by substring. Filtered requests are served by
63
+ * search, which caps `limit` at 100. For relevance-ranked full-text
64
+ * search across senders, recipients, subject, and message body, use
65
+ * `Search Threads`.
66
+ *
61
67
  * **CLI:**
62
68
  * ```bash
63
69
  * agentmail threads list
@@ -77,7 +83,7 @@ class ThreadsClient {
77
83
  __list() {
78
84
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
79
85
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
80
- const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, } = request;
86
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked, includeUnauthenticated, includeTrash, senders, recipients, subject, } = request;
81
87
  const _queryParams = {
82
88
  limit,
83
89
  page_token: pageToken,
@@ -98,6 +104,9 @@ class ThreadsClient {
98
104
  include_blocked: includeBlocked,
99
105
  include_unauthenticated: includeUnauthenticated,
100
106
  include_trash: includeTrash,
107
+ senders: senders != null ? (0, json_js_1.toJson)(senders) : undefined,
108
+ recipients: recipients != null ? (0, json_js_1.toJson)(recipients) : undefined,
109
+ subject: subject != null ? (0, json_js_1.toJson)(subject) : undefined,
101
110
  };
102
111
  const _authRequest = yield this._options.authProvider.getAuthRequest();
103
112
  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);
@@ -146,6 +155,97 @@ class ThreadsClient {
146
155
  return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/threads");
147
156
  });
148
157
  }
158
+ /**
159
+ * Full-text search across threads in the organization, ranked by
160
+ * relevance. The query is matched against senders, recipients, and
161
+ * subject (substring) and the message body (tokenized full text). Spam,
162
+ * trash, blocked, and unauthenticated threads are always excluded.
163
+ * `limit` cannot exceed 100.
164
+ *
165
+ * @param {AgentMail.SearchThreadsRequest} request
166
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
167
+ *
168
+ * @throws {@link AgentMail.ValidationError}
169
+ * @throws {@link AgentMail.NotFoundError}
170
+ *
171
+ * @example
172
+ * await client.threads.search({
173
+ * q: "q"
174
+ * })
175
+ */
176
+ search(request, requestOptions) {
177
+ return core.HttpResponsePromise.fromPromise(this.__search(request, requestOptions));
178
+ }
179
+ __search(request, requestOptions) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
182
+ const { q, limit, pageToken, before, after } = request;
183
+ const _queryParams = {
184
+ q,
185
+ limit,
186
+ page_token: pageToken,
187
+ before: before != null
188
+ ? serializers.Before.jsonOrThrow(before, { unrecognizedObjectKeys: "strip", omitUndefined: true })
189
+ : undefined,
190
+ after: after != null
191
+ ? serializers.After.jsonOrThrow(after, { unrecognizedObjectKeys: "strip", omitUndefined: true })
192
+ : undefined,
193
+ };
194
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
195
+ 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);
196
+ const _response = yield core.fetcher({
197
+ 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)
198
+ .http, "/v0/threads/search"),
199
+ method: "GET",
200
+ headers: _headers,
201
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
202
+ 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,
203
+ 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,
204
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
205
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
206
+ logging: this._options.logging,
207
+ });
208
+ if (_response.ok) {
209
+ return {
210
+ data: serializers.SearchThreadsResponse.parseOrThrow(_response.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ skipValidation: true,
215
+ breadcrumbsPrefix: ["response"],
216
+ }),
217
+ rawResponse: _response.rawResponse,
218
+ };
219
+ }
220
+ if (_response.error.reason === "status-code") {
221
+ switch (_response.error.statusCode) {
222
+ case 400:
223
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
224
+ unrecognizedObjectKeys: "passthrough",
225
+ allowUnrecognizedUnionMembers: true,
226
+ allowUnrecognizedEnumValues: true,
227
+ skipValidation: true,
228
+ breadcrumbsPrefix: ["response"],
229
+ }), _response.rawResponse);
230
+ case 404:
231
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
232
+ unrecognizedObjectKeys: "passthrough",
233
+ allowUnrecognizedUnionMembers: true,
234
+ allowUnrecognizedEnumValues: true,
235
+ skipValidation: true,
236
+ breadcrumbsPrefix: ["response"],
237
+ }), _response.rawResponse);
238
+ default:
239
+ throw new errors.AgentMailError({
240
+ statusCode: _response.error.statusCode,
241
+ body: _response.error.body,
242
+ rawResponse: _response.rawResponse,
243
+ });
244
+ }
245
+ }
246
+ return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v0/threads/search");
247
+ });
248
+ }
149
249
  /**
150
250
  * **CLI:**
151
251
  * ```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.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export type { DeleteThreadRequest } from "./DeleteThreadRequest.js";
2
2
  export type { ListThreadsRequest } from "./ListThreadsRequest.js";
3
+ export type { SearchThreadsRequest } from "./SearchThreadsRequest.js";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Matched fragments per field on a thread 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 SearchThreadHighlights {
7
+ /** Matched fragments from a sender address in the thread. */
8
+ from?: string[];
9
+ /** Matched fragments from a recipient address in the thread (to, cc, or bcc). */
10
+ recipients?: string[];
11
+ /** Matched fragments from the subject. */
12
+ subject?: string[];
13
+ /** Matched fragments from a message body in the thread. */
14
+ text?: string[];
15
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface SearchThreadItem extends AgentMail.ThreadItem {
3
+ /** Matched fragments per field. Present only when the query matched an indexed field. */
4
+ highlights?: AgentMail.SearchThreadHighlights;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import type * as AgentMail from "../../../index.js";
2
+ export interface SearchThreadsResponse {
3
+ count: AgentMail.Count;
4
+ limit?: AgentMail.Limit;
5
+ nextPageToken?: AgentMail.PageToken;
6
+ /** Ordered by relevance, best match first. */
7
+ threads: AgentMail.SearchThreadItem[];
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,7 @@
1
1
  export * from "./ListThreadsResponse.js";
2
+ export * from "./SearchThreadHighlights.js";
3
+ export * from "./SearchThreadItem.js";
4
+ export * from "./SearchThreadsResponse.js";
2
5
  export * from "./Thread.js";
3
6
  export * from "./ThreadAttachments.js";
4
7
  export * from "./ThreadCreatedAt.js";
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ListThreadsResponse.js"), exports);
18
+ __exportStar(require("./SearchThreadHighlights.js"), exports);
19
+ __exportStar(require("./SearchThreadItem.js"), exports);
20
+ __exportStar(require("./SearchThreadsResponse.js"), exports);
18
21
  __exportStar(require("./Thread.js"), exports);
19
22
  __exportStar(require("./ThreadAttachments.js"), exports);
20
23
  __exportStar(require("./ThreadCreatedAt.js"), exports);
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Full-text search query. Matched against the sender, recipients, and
3
+ * subject (substring) and the message body (tokenized full text).
4
+ */
5
+ export type Query = string;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -13,4 +13,5 @@ export * from "./Labels.js";
13
13
  export * from "./Limit.js";
14
14
  export * from "./OrganizationId.js";
15
15
  export * from "./PageToken.js";
16
+ export * from "./Query.js";
16
17
  export * from "./ValidationErrorResponse.js";
@@ -29,4 +29,5 @@ __exportStar(require("./Labels.js"), exports);
29
29
  __exportStar(require("./Limit.js"), exports);
30
30
  __exportStar(require("./OrganizationId.js"), exports);
31
31
  __exportStar(require("./PageToken.js"), exports);
32
+ __exportStar(require("./Query.js"), exports);
32
33
  __exportStar(require("./ValidationErrorResponse.js"), exports);
@@ -3,10 +3,12 @@ import * as core from "../../../../core/index.js";
3
3
  import type * as serializers from "../../../index.js";
4
4
  import { DomainName } from "./DomainName.js";
5
5
  import { FeedbackEnabled } from "./FeedbackEnabled.js";
6
+ import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
6
7
  export declare const CreateDomainRequest: core.serialization.ObjectSchema<serializers.CreateDomainRequest.Raw, AgentMail.CreateDomainRequest>;
7
8
  export declare namespace CreateDomainRequest {
8
9
  interface Raw {
9
10
  domain: DomainName.Raw;
10
- feedback_enabled: FeedbackEnabled.Raw;
11
+ feedback_enabled?: FeedbackEnabled.Raw | null;
12
+ subdomains_enabled?: SubdomainsEnabled.Raw | null;
11
13
  }
12
14
  }
@@ -38,7 +38,9 @@ exports.CreateDomainRequest = void 0;
38
38
  const core = __importStar(require("../../../../core/index.js"));
39
39
  const DomainName_js_1 = require("./DomainName.js");
40
40
  const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
41
+ const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
41
42
  exports.CreateDomainRequest = core.serialization.object({
42
43
  domain: DomainName_js_1.DomainName,
43
- feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
44
+ feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled.optional()),
45
+ subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled.optional()),
44
46
  });
@@ -7,6 +7,7 @@ import { DomainId } from "./DomainId.js";
7
7
  import { DomainName } from "./DomainName.js";
8
8
  import { FeedbackEnabled } from "./FeedbackEnabled.js";
9
9
  import { Status } from "./Status.js";
10
+ import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
10
11
  import { VerificationRecord } from "./VerificationRecord.js";
11
12
  export declare const Domain: core.serialization.ObjectSchema<serializers.Domain.Raw, AgentMail.Domain>;
12
13
  export declare namespace Domain {
@@ -16,6 +17,7 @@ export declare namespace Domain {
16
17
  domain: DomainName.Raw;
17
18
  status: Status.Raw;
18
19
  feedback_enabled: FeedbackEnabled.Raw;
20
+ subdomains_enabled: SubdomainsEnabled.Raw;
19
21
  records: VerificationRecord.Raw[];
20
22
  client_id?: ClientId.Raw | null;
21
23
  updated_at: string;
@@ -42,6 +42,7 @@ const DomainId_js_1 = require("./DomainId.js");
42
42
  const DomainName_js_1 = require("./DomainName.js");
43
43
  const FeedbackEnabled_js_1 = require("./FeedbackEnabled.js");
44
44
  const Status_js_1 = require("./Status.js");
45
+ const SubdomainsEnabled_js_1 = require("./SubdomainsEnabled.js");
45
46
  const VerificationRecord_js_1 = require("./VerificationRecord.js");
46
47
  exports.Domain = core.serialization.object({
47
48
  podId: core.serialization.property("pod_id", PodId_js_1.PodId.optional()),
@@ -49,6 +50,7 @@ exports.Domain = core.serialization.object({
49
50
  domain: DomainName_js_1.DomainName,
50
51
  status: Status_js_1.Status,
51
52
  feedbackEnabled: core.serialization.property("feedback_enabled", FeedbackEnabled_js_1.FeedbackEnabled),
53
+ subdomainsEnabled: core.serialization.property("subdomains_enabled", SubdomainsEnabled_js_1.SubdomainsEnabled),
52
54
  records: core.serialization.list(VerificationRecord_js_1.VerificationRecord),
53
55
  clientId: core.serialization.property("client_id", ClientId_js_1.ClientId.optional()),
54
56
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -6,6 +6,7 @@ import { ClientId } from "./ClientId.js";
6
6
  import { DomainId } from "./DomainId.js";
7
7
  import { DomainName } from "./DomainName.js";
8
8
  import { FeedbackEnabled } from "./FeedbackEnabled.js";
9
+ import { SubdomainsEnabled } from "./SubdomainsEnabled.js";
9
10
  export declare const DomainItem: core.serialization.ObjectSchema<serializers.DomainItem.Raw, AgentMail.DomainItem>;
10
11
  export declare namespace DomainItem {
11
12
  interface Raw {
@@ -13,6 +14,7 @@ export declare namespace DomainItem {
13
14
  domain_id: DomainId.Raw;
14
15
  domain: DomainName.Raw;
15
16
  feedback_enabled: FeedbackEnabled.Raw;
17
+ subdomains_enabled: SubdomainsEnabled.Raw;
16
18
  client_id?: ClientId.Raw | null;
17
19
  updated_at: string;
18
20
  created_at: string;