agentmail 0.3.2 → 0.3.4

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 (202) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +17 -12
  4. package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +2 -1
  5. package/dist/cjs/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.ts +1 -0
  6. package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +2 -1
  7. package/dist/cjs/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/index.d.ts +3 -0
  9. package/dist/cjs/api/resources/index.js +4 -1
  10. package/dist/cjs/api/resources/lists/client/Client.d.ts +65 -0
  11. package/dist/cjs/api/resources/lists/client/Client.js +307 -0
  12. package/dist/cjs/api/resources/lists/client/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/lists/client/index.js +17 -0
  14. package/dist/cjs/api/resources/lists/client/requests/ListListEntriesRequest.d.ts +9 -0
  15. package/dist/cjs/api/resources/lists/client/requests/ListListEntriesRequest.js +3 -0
  16. package/dist/cjs/api/resources/lists/client/requests/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/lists/client/requests/index.js +2 -0
  18. package/dist/cjs/api/resources/lists/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/lists/index.js +18 -0
  20. package/dist/cjs/api/resources/lists/types/CreateListEntryRequest.d.ts +6 -0
  21. package/dist/cjs/api/resources/lists/types/CreateListEntryRequest.js +3 -0
  22. package/dist/cjs/api/resources/lists/types/Direction.d.ts +6 -0
  23. package/dist/cjs/api/resources/lists/types/Direction.js +9 -0
  24. package/dist/cjs/api/resources/lists/types/EntryType.d.ts +6 -0
  25. package/dist/cjs/api/resources/lists/types/EntryType.js +9 -0
  26. package/dist/cjs/api/resources/lists/types/ListEntry.d.ts +3 -0
  27. package/dist/cjs/api/resources/lists/types/ListEntry.js +3 -0
  28. package/dist/cjs/api/resources/lists/types/ListEntryBase.d.ts +13 -0
  29. package/dist/cjs/api/resources/lists/types/ListEntryBase.js +3 -0
  30. package/dist/cjs/api/resources/lists/types/ListListEntriesResponse.d.ts +8 -0
  31. package/dist/cjs/api/resources/lists/types/ListListEntriesResponse.js +3 -0
  32. package/dist/cjs/api/resources/lists/types/ListType.d.ts +6 -0
  33. package/dist/cjs/api/resources/lists/types/ListType.js +9 -0
  34. package/dist/cjs/api/resources/lists/types/PodListEntry.d.ts +7 -0
  35. package/dist/cjs/api/resources/lists/types/PodListEntry.js +3 -0
  36. package/dist/cjs/api/resources/lists/types/PodListListEntriesResponse.d.ts +8 -0
  37. package/dist/cjs/api/resources/lists/types/PodListListEntriesResponse.js +3 -0
  38. package/dist/cjs/api/resources/lists/types/index.d.ts +9 -0
  39. package/dist/cjs/api/resources/lists/types/index.js +25 -0
  40. package/dist/cjs/api/resources/pods/client/Client.d.ts +3 -0
  41. package/dist/cjs/api/resources/pods/client/Client.js +7 -2
  42. package/dist/cjs/api/resources/pods/resources/index.d.ts +2 -0
  43. package/dist/cjs/api/resources/pods/resources/index.js +3 -1
  44. package/dist/cjs/api/resources/pods/resources/lists/client/Client.d.ts +69 -0
  45. package/dist/cjs/api/resources/pods/resources/lists/client/Client.js +311 -0
  46. package/dist/cjs/api/resources/pods/resources/lists/client/index.d.ts +1 -0
  47. package/dist/cjs/api/resources/pods/resources/lists/client/index.js +17 -0
  48. package/dist/cjs/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.d.ts +9 -0
  49. package/dist/cjs/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.js +3 -0
  50. package/dist/cjs/api/resources/pods/resources/lists/client/requests/index.d.ts +1 -0
  51. package/dist/cjs/api/resources/pods/resources/lists/client/requests/index.js +2 -0
  52. package/dist/cjs/api/resources/pods/resources/lists/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/pods/resources/lists/index.js +17 -0
  54. package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +2 -1
  55. package/dist/cjs/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
  56. package/dist/cjs/api/resources/threads/client/Client.js +2 -1
  57. package/dist/cjs/api/resources/threads/client/requests/ListThreadsRequest.d.ts +1 -0
  58. package/dist/cjs/api/types/IncludeBlocked.d.ts +4 -0
  59. package/dist/cjs/api/types/IncludeBlocked.js +3 -0
  60. package/dist/cjs/api/types/index.d.ts +1 -0
  61. package/dist/cjs/api/types/index.js +1 -0
  62. package/dist/cjs/serialization/resources/index.d.ts +2 -0
  63. package/dist/cjs/serialization/resources/index.js +3 -1
  64. package/dist/cjs/serialization/resources/lists/index.d.ts +1 -0
  65. package/dist/cjs/serialization/resources/lists/index.js +17 -0
  66. package/dist/cjs/serialization/resources/lists/types/CreateListEntryRequest.d.ts +10 -0
  67. package/dist/cjs/serialization/resources/lists/types/CreateListEntryRequest.js +42 -0
  68. package/dist/cjs/serialization/resources/lists/types/Direction.d.ts +7 -0
  69. package/dist/cjs/serialization/resources/lists/types/Direction.js +39 -0
  70. package/dist/cjs/serialization/resources/lists/types/EntryType.d.ts +7 -0
  71. package/dist/cjs/serialization/resources/lists/types/EntryType.js +39 -0
  72. package/dist/cjs/serialization/resources/lists/types/ListEntry.d.ts +9 -0
  73. package/dist/cjs/serialization/resources/lists/types/ListEntry.js +40 -0
  74. package/dist/cjs/serialization/resources/lists/types/ListEntryBase.d.ts +19 -0
  75. package/dist/cjs/serialization/resources/lists/types/ListEntryBase.js +51 -0
  76. package/dist/cjs/serialization/resources/lists/types/ListListEntriesResponse.d.ts +16 -0
  77. package/dist/cjs/serialization/resources/lists/types/ListListEntriesResponse.js +48 -0
  78. package/dist/cjs/serialization/resources/lists/types/ListType.d.ts +7 -0
  79. package/dist/cjs/serialization/resources/lists/types/ListType.js +39 -0
  80. package/dist/cjs/serialization/resources/lists/types/PodListEntry.d.ts +11 -0
  81. package/dist/cjs/serialization/resources/lists/types/PodListEntry.js +45 -0
  82. package/dist/cjs/serialization/resources/lists/types/PodListListEntriesResponse.d.ts +16 -0
  83. package/dist/cjs/serialization/resources/lists/types/PodListListEntriesResponse.js +48 -0
  84. package/dist/cjs/serialization/resources/lists/types/index.d.ts +9 -0
  85. package/dist/cjs/serialization/resources/lists/types/index.js +25 -0
  86. package/dist/cjs/serialization/types/IncludeBlocked.d.ts +7 -0
  87. package/dist/cjs/serialization/types/IncludeBlocked.js +39 -0
  88. package/dist/cjs/serialization/types/index.d.ts +1 -0
  89. package/dist/cjs/serialization/types/index.js +1 -0
  90. package/dist/cjs/version.d.ts +1 -1
  91. package/dist/cjs/version.js +1 -1
  92. package/dist/cjs/wrapper/Client.d.ts +4 -4
  93. package/dist/cjs/wrapper/Client.js +7 -7
  94. package/dist/cjs/wrapper/mppx.d.ts +8 -0
  95. package/dist/cjs/wrapper/{mpp.js → mppx.js} +5 -5
  96. package/dist/{esm/wrapper/probe402.d.mts → cjs/wrapper/util.d.ts} +1 -0
  97. package/dist/cjs/wrapper/{probe402.js → util.js} +5 -1
  98. package/dist/cjs/wrapper/x402.js +2 -2
  99. package/dist/esm/BaseClient.mjs +2 -2
  100. package/dist/esm/Client.d.mts +3 -0
  101. package/dist/esm/Client.mjs +5 -0
  102. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +2 -1
  103. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +1 -0
  104. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +2 -1
  105. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  106. package/dist/esm/api/resources/index.d.mts +3 -0
  107. package/dist/esm/api/resources/index.mjs +3 -0
  108. package/dist/esm/api/resources/lists/client/Client.d.mts +65 -0
  109. package/dist/esm/api/resources/lists/client/Client.mjs +270 -0
  110. package/dist/esm/api/resources/lists/client/index.d.mts +1 -0
  111. package/dist/esm/api/resources/lists/client/index.mjs +1 -0
  112. package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
  113. package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
  114. package/dist/esm/api/resources/lists/client/requests/index.d.mts +1 -0
  115. package/dist/esm/api/resources/lists/client/requests/index.mjs +1 -0
  116. package/dist/esm/api/resources/lists/index.d.mts +2 -0
  117. package/dist/esm/api/resources/lists/index.mjs +2 -0
  118. package/dist/esm/api/resources/lists/types/CreateListEntryRequest.d.mts +6 -0
  119. package/dist/esm/api/resources/lists/types/CreateListEntryRequest.mjs +2 -0
  120. package/dist/esm/api/resources/lists/types/Direction.d.mts +6 -0
  121. package/dist/esm/api/resources/lists/types/Direction.mjs +6 -0
  122. package/dist/esm/api/resources/lists/types/EntryType.d.mts +6 -0
  123. package/dist/esm/api/resources/lists/types/EntryType.mjs +6 -0
  124. package/dist/esm/api/resources/lists/types/ListEntry.d.mts +3 -0
  125. package/dist/esm/api/resources/lists/types/ListEntry.mjs +2 -0
  126. package/dist/esm/api/resources/lists/types/ListEntryBase.d.mts +13 -0
  127. package/dist/esm/api/resources/lists/types/ListEntryBase.mjs +2 -0
  128. package/dist/esm/api/resources/lists/types/ListListEntriesResponse.d.mts +8 -0
  129. package/dist/esm/api/resources/lists/types/ListListEntriesResponse.mjs +2 -0
  130. package/dist/esm/api/resources/lists/types/ListType.d.mts +6 -0
  131. package/dist/esm/api/resources/lists/types/ListType.mjs +6 -0
  132. package/dist/esm/api/resources/lists/types/PodListEntry.d.mts +7 -0
  133. package/dist/esm/api/resources/lists/types/PodListEntry.mjs +2 -0
  134. package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.d.mts +8 -0
  135. package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.mjs +2 -0
  136. package/dist/esm/api/resources/lists/types/index.d.mts +9 -0
  137. package/dist/esm/api/resources/lists/types/index.mjs +9 -0
  138. package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
  139. package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
  140. package/dist/esm/api/resources/pods/resources/index.d.mts +2 -0
  141. package/dist/esm/api/resources/pods/resources/index.mjs +2 -0
  142. package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +69 -0
  143. package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +274 -0
  144. package/dist/esm/api/resources/pods/resources/lists/client/index.d.mts +1 -0
  145. package/dist/esm/api/resources/pods/resources/lists/client/index.mjs +1 -0
  146. package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
  147. package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
  148. package/dist/esm/api/resources/pods/resources/lists/client/requests/index.d.mts +1 -0
  149. package/dist/esm/api/resources/pods/resources/lists/client/requests/index.mjs +1 -0
  150. package/dist/esm/api/resources/pods/resources/lists/index.d.mts +1 -0
  151. package/dist/esm/api/resources/pods/resources/lists/index.mjs +1 -0
  152. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +2 -1
  153. package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  154. package/dist/esm/api/resources/threads/client/Client.mjs +2 -1
  155. package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  156. package/dist/esm/api/types/IncludeBlocked.d.mts +4 -0
  157. package/dist/esm/api/types/IncludeBlocked.mjs +2 -0
  158. package/dist/esm/api/types/index.d.mts +1 -0
  159. package/dist/esm/api/types/index.mjs +1 -0
  160. package/dist/esm/serialization/resources/index.d.mts +2 -0
  161. package/dist/esm/serialization/resources/index.mjs +2 -0
  162. package/dist/esm/serialization/resources/lists/index.d.mts +1 -0
  163. package/dist/esm/serialization/resources/lists/index.mjs +1 -0
  164. package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.d.mts +10 -0
  165. package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.mjs +6 -0
  166. package/dist/esm/serialization/resources/lists/types/Direction.d.mts +7 -0
  167. package/dist/esm/serialization/resources/lists/types/Direction.mjs +3 -0
  168. package/dist/esm/serialization/resources/lists/types/EntryType.d.mts +7 -0
  169. package/dist/esm/serialization/resources/lists/types/EntryType.mjs +3 -0
  170. package/dist/esm/serialization/resources/lists/types/ListEntry.d.mts +9 -0
  171. package/dist/esm/serialization/resources/lists/types/ListEntry.mjs +4 -0
  172. package/dist/esm/serialization/resources/lists/types/ListEntryBase.d.mts +19 -0
  173. package/dist/esm/serialization/resources/lists/types/ListEntryBase.mjs +15 -0
  174. package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.d.mts +16 -0
  175. package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.mjs +12 -0
  176. package/dist/esm/serialization/resources/lists/types/ListType.d.mts +7 -0
  177. package/dist/esm/serialization/resources/lists/types/ListType.mjs +3 -0
  178. package/dist/esm/serialization/resources/lists/types/PodListEntry.d.mts +11 -0
  179. package/dist/esm/serialization/resources/lists/types/PodListEntry.mjs +9 -0
  180. package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.d.mts +16 -0
  181. package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.mjs +12 -0
  182. package/dist/esm/serialization/resources/lists/types/index.d.mts +9 -0
  183. package/dist/esm/serialization/resources/lists/types/index.mjs +9 -0
  184. package/dist/esm/serialization/types/IncludeBlocked.d.mts +7 -0
  185. package/dist/esm/serialization/types/IncludeBlocked.mjs +3 -0
  186. package/dist/esm/serialization/types/index.d.mts +1 -0
  187. package/dist/esm/serialization/types/index.mjs +1 -0
  188. package/dist/esm/version.d.mts +1 -1
  189. package/dist/esm/version.mjs +1 -1
  190. package/dist/esm/wrapper/Client.d.mts +4 -4
  191. package/dist/esm/wrapper/Client.mjs +7 -7
  192. package/dist/esm/wrapper/mppx.d.mts +8 -0
  193. package/dist/esm/wrapper/{mpp.mjs → mppx.mjs} +4 -4
  194. package/dist/{cjs/wrapper/probe402.d.ts → esm/wrapper/util.d.mts} +1 -0
  195. package/dist/esm/wrapper/{probe402.mjs → util.mjs} +4 -1
  196. package/dist/esm/wrapper/x402.mjs +1 -1
  197. package/dist/llms-full.txt +5436 -3440
  198. package/dist/llms.txt +15 -1
  199. package/package.json +1 -1
  200. package/reference.md +558 -0
  201. package/dist/cjs/wrapper/mpp.d.ts +0 -2
  202. package/dist/esm/wrapper/mpp.d.mts +0 -2
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./requests/index.js"), exports);
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface ListListEntriesRequest {
7
+ limit?: AgentMail.Limit;
8
+ pageToken?: AgentMail.PageToken;
9
+ }
@@ -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 @@
1
+ export type { ListListEntriesRequest } from "./ListListEntriesRequest.js";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client/index.js"), exports);
@@ -73,7 +73,7 @@ class ThreadsClient {
73
73
  __list(pod_id_1) {
74
74
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
75
75
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
76
- const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
76
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
77
77
  const _queryParams = {
78
78
  limit,
79
79
  page_token: pageToken,
@@ -91,6 +91,7 @@ class ThreadsClient {
91
91
  : undefined,
92
92
  ascending,
93
93
  include_spam: includeSpam,
94
+ include_blocked: includeBlocked,
94
95
  };
95
96
  const _authRequest = yield this._options.authProvider.getAuthRequest();
96
97
  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);
@@ -11,4 +11,5 @@ export interface ListThreadsRequest {
11
11
  after?: AgentMail.After;
12
12
  ascending?: AgentMail.Ascending;
13
13
  includeSpam?: AgentMail.IncludeSpam;
14
+ includeBlocked?: AgentMail.IncludeBlocked;
14
15
  }
@@ -72,7 +72,7 @@ class ThreadsClient {
72
72
  __list() {
73
73
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
74
74
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
75
- const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
75
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
76
76
  const _queryParams = {
77
77
  limit,
78
78
  page_token: pageToken,
@@ -90,6 +90,7 @@ class ThreadsClient {
90
90
  : undefined,
91
91
  ascending,
92
92
  include_spam: includeSpam,
93
+ include_blocked: includeBlocked,
93
94
  };
94
95
  const _authRequest = yield this._options.authProvider.getAuthRequest();
95
96
  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);
@@ -11,4 +11,5 @@ export interface ListThreadsRequest {
11
11
  after?: AgentMail.After;
12
12
  ascending?: AgentMail.Ascending;
13
13
  includeSpam?: AgentMail.IncludeSpam;
14
+ includeBlocked?: AgentMail.IncludeBlocked;
14
15
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Include blocked in results.
3
+ */
4
+ export type IncludeBlocked = boolean;
@@ -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 });
@@ -5,6 +5,7 @@ export * from "./Count.js";
5
5
  export * from "./ErrorMessage.js";
6
6
  export * from "./ErrorName.js";
7
7
  export * from "./ErrorResponse.js";
8
+ export * from "./IncludeBlocked.js";
8
9
  export * from "./IncludeSpam.js";
9
10
  export * from "./Labels.js";
10
11
  export * from "./Limit.js";
@@ -21,6 +21,7 @@ __exportStar(require("./Count.js"), exports);
21
21
  __exportStar(require("./ErrorMessage.js"), exports);
22
22
  __exportStar(require("./ErrorName.js"), exports);
23
23
  __exportStar(require("./ErrorResponse.js"), exports);
24
+ __exportStar(require("./IncludeBlocked.js"), exports);
24
25
  __exportStar(require("./IncludeSpam.js"), exports);
25
26
  __exportStar(require("./Labels.js"), exports);
26
27
  __exportStar(require("./Limit.js"), exports);
@@ -9,6 +9,8 @@ export * from "./drafts/types/index.js";
9
9
  export * as events from "./events/index.js";
10
10
  export * from "./events/types/index.js";
11
11
  export * as inboxes from "./inboxes/index.js";
12
+ export * as lists from "./lists/index.js";
13
+ export * from "./lists/types/index.js";
12
14
  export * as messages from "./messages/index.js";
13
15
  export * from "./messages/types/index.js";
14
16
  export * as metrics from "./metrics/index.js";
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
39
+ exports.websockets = exports.webhooks = exports.threads = exports.pods = exports.organizations = exports.metrics = exports.messages = exports.lists = exports.inboxes = exports.events = exports.drafts = exports.domains = exports.attachments = exports.apiKeys = void 0;
40
40
  exports.apiKeys = __importStar(require("./apiKeys/index.js"));
41
41
  __exportStar(require("./apiKeys/types/index.js"), exports);
42
42
  exports.attachments = __importStar(require("./attachments/index.js"));
@@ -48,6 +48,8 @@ __exportStar(require("./drafts/types/index.js"), exports);
48
48
  exports.events = __importStar(require("./events/index.js"));
49
49
  __exportStar(require("./events/types/index.js"), exports);
50
50
  exports.inboxes = __importStar(require("./inboxes/index.js"));
51
+ exports.lists = __importStar(require("./lists/index.js"));
52
+ __exportStar(require("./lists/types/index.js"), exports);
51
53
  exports.messages = __importStar(require("./messages/index.js"));
52
54
  __exportStar(require("./messages/types/index.js"), exports);
53
55
  exports.metrics = __importStar(require("./metrics/index.js"));
@@ -0,0 +1 @@
1
+ export * from "./types/index.js";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,10 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const CreateListEntryRequest: core.serialization.ObjectSchema<serializers.CreateListEntryRequest.Raw, AgentMail.CreateListEntryRequest>;
5
+ export declare namespace CreateListEntryRequest {
6
+ interface Raw {
7
+ entry: string;
8
+ reason?: string | null;
9
+ }
10
+ }
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.CreateListEntryRequest = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.CreateListEntryRequest = core.serialization.object({
40
+ entry: core.serialization.string(),
41
+ reason: core.serialization.string().optional(),
42
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const Direction: core.serialization.Schema<serializers.Direction.Raw, AgentMail.Direction>;
5
+ export declare namespace Direction {
6
+ type Raw = "send" | "receive";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.Direction = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.Direction = core.serialization.enum_(["send", "receive"]);
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const EntryType: core.serialization.Schema<serializers.EntryType.Raw, AgentMail.EntryType>;
5
+ export declare namespace EntryType {
6
+ type Raw = "email" | "domain";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.EntryType = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.EntryType = core.serialization.enum_(["email", "domain"]);
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ListEntryBase } from "./ListEntryBase.js";
5
+ export declare const ListEntry: core.serialization.ObjectSchema<serializers.ListEntry.Raw, AgentMail.ListEntry>;
6
+ export declare namespace ListEntry {
7
+ interface Raw extends ListEntryBase.Raw {
8
+ }
9
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ListEntry = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const ListEntryBase_js_1 = require("./ListEntryBase.js");
40
+ exports.ListEntry = core.serialization.object({}).extend(ListEntryBase_js_1.ListEntryBase);
@@ -0,0 +1,19 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { OrganizationId } from "../../../types/OrganizationId.js";
5
+ import { Direction } from "./Direction.js";
6
+ import { EntryType } from "./EntryType.js";
7
+ import { ListType } from "./ListType.js";
8
+ export declare const ListEntryBase: core.serialization.ObjectSchema<serializers.ListEntryBase.Raw, AgentMail.ListEntryBase>;
9
+ export declare namespace ListEntryBase {
10
+ interface Raw {
11
+ entry: string;
12
+ organization_id: OrganizationId.Raw;
13
+ reason?: string | null;
14
+ direction: Direction.Raw;
15
+ list_type: ListType.Raw;
16
+ entry_type: EntryType.Raw;
17
+ created_at: string;
18
+ }
19
+ }
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ListEntryBase = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const OrganizationId_js_1 = require("../../../types/OrganizationId.js");
40
+ const Direction_js_1 = require("./Direction.js");
41
+ const EntryType_js_1 = require("./EntryType.js");
42
+ const ListType_js_1 = require("./ListType.js");
43
+ exports.ListEntryBase = core.serialization.object({
44
+ entry: core.serialization.string(),
45
+ organizationId: core.serialization.property("organization_id", OrganizationId_js_1.OrganizationId),
46
+ reason: core.serialization.string().optional(),
47
+ direction: Direction_js_1.Direction,
48
+ listType: core.serialization.property("list_type", ListType_js_1.ListType),
49
+ entryType: core.serialization.property("entry_type", EntryType_js_1.EntryType),
50
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
51
+ });
@@ -0,0 +1,16 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { Count } from "../../../types/Count.js";
5
+ import { Limit } from "../../../types/Limit.js";
6
+ import { PageToken } from "../../../types/PageToken.js";
7
+ import { ListEntry } from "./ListEntry.js";
8
+ export declare const ListListEntriesResponse: core.serialization.ObjectSchema<serializers.ListListEntriesResponse.Raw, AgentMail.ListListEntriesResponse>;
9
+ export declare namespace ListListEntriesResponse {
10
+ interface Raw {
11
+ count: Count.Raw;
12
+ limit?: Limit.Raw | null;
13
+ next_page_token?: PageToken.Raw | null;
14
+ entries: ListEntry.Raw[];
15
+ }
16
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ListListEntriesResponse = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const Count_js_1 = require("../../../types/Count.js");
40
+ const Limit_js_1 = require("../../../types/Limit.js");
41
+ const PageToken_js_1 = require("../../../types/PageToken.js");
42
+ const ListEntry_js_1 = require("./ListEntry.js");
43
+ exports.ListListEntriesResponse = core.serialization.object({
44
+ count: Count_js_1.Count,
45
+ limit: Limit_js_1.Limit.optional(),
46
+ nextPageToken: core.serialization.property("next_page_token", PageToken_js_1.PageToken.optional()),
47
+ entries: core.serialization.list(ListEntry_js_1.ListEntry),
48
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const ListType: core.serialization.Schema<serializers.ListType.Raw, AgentMail.ListType>;
5
+ export declare namespace ListType {
6
+ type Raw = "allow" | "block";
7
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ListType = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.ListType = core.serialization.enum_(["allow", "block"]);
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ import { ListEntryBase } from "./ListEntryBase.js";
5
+ export declare const PodListEntry: core.serialization.ObjectSchema<serializers.PodListEntry.Raw, AgentMail.PodListEntry>;
6
+ export declare namespace PodListEntry {
7
+ interface Raw extends ListEntryBase.Raw {
8
+ pod_id: string;
9
+ inbox_id?: string | null;
10
+ }
11
+ }