agentmail 0.3.2 → 0.3.3

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 (185) 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/esm/BaseClient.mjs +2 -2
  93. package/dist/esm/Client.d.mts +3 -0
  94. package/dist/esm/Client.mjs +5 -0
  95. package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +2 -1
  96. package/dist/esm/api/resources/inboxes/resources/messages/client/requests/ListMessagesRequest.d.mts +1 -0
  97. package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +2 -1
  98. package/dist/esm/api/resources/inboxes/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  99. package/dist/esm/api/resources/index.d.mts +3 -0
  100. package/dist/esm/api/resources/index.mjs +3 -0
  101. package/dist/esm/api/resources/lists/client/Client.d.mts +65 -0
  102. package/dist/esm/api/resources/lists/client/Client.mjs +270 -0
  103. package/dist/esm/api/resources/lists/client/index.d.mts +1 -0
  104. package/dist/esm/api/resources/lists/client/index.mjs +1 -0
  105. package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
  106. package/dist/esm/api/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
  107. package/dist/esm/api/resources/lists/client/requests/index.d.mts +1 -0
  108. package/dist/esm/api/resources/lists/client/requests/index.mjs +1 -0
  109. package/dist/esm/api/resources/lists/index.d.mts +2 -0
  110. package/dist/esm/api/resources/lists/index.mjs +2 -0
  111. package/dist/esm/api/resources/lists/types/CreateListEntryRequest.d.mts +6 -0
  112. package/dist/esm/api/resources/lists/types/CreateListEntryRequest.mjs +2 -0
  113. package/dist/esm/api/resources/lists/types/Direction.d.mts +6 -0
  114. package/dist/esm/api/resources/lists/types/Direction.mjs +6 -0
  115. package/dist/esm/api/resources/lists/types/EntryType.d.mts +6 -0
  116. package/dist/esm/api/resources/lists/types/EntryType.mjs +6 -0
  117. package/dist/esm/api/resources/lists/types/ListEntry.d.mts +3 -0
  118. package/dist/esm/api/resources/lists/types/ListEntry.mjs +2 -0
  119. package/dist/esm/api/resources/lists/types/ListEntryBase.d.mts +13 -0
  120. package/dist/esm/api/resources/lists/types/ListEntryBase.mjs +2 -0
  121. package/dist/esm/api/resources/lists/types/ListListEntriesResponse.d.mts +8 -0
  122. package/dist/esm/api/resources/lists/types/ListListEntriesResponse.mjs +2 -0
  123. package/dist/esm/api/resources/lists/types/ListType.d.mts +6 -0
  124. package/dist/esm/api/resources/lists/types/ListType.mjs +6 -0
  125. package/dist/esm/api/resources/lists/types/PodListEntry.d.mts +7 -0
  126. package/dist/esm/api/resources/lists/types/PodListEntry.mjs +2 -0
  127. package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.d.mts +8 -0
  128. package/dist/esm/api/resources/lists/types/PodListListEntriesResponse.mjs +2 -0
  129. package/dist/esm/api/resources/lists/types/index.d.mts +9 -0
  130. package/dist/esm/api/resources/lists/types/index.mjs +9 -0
  131. package/dist/esm/api/resources/pods/client/Client.d.mts +3 -0
  132. package/dist/esm/api/resources/pods/client/Client.mjs +5 -0
  133. package/dist/esm/api/resources/pods/resources/index.d.mts +2 -0
  134. package/dist/esm/api/resources/pods/resources/index.mjs +2 -0
  135. package/dist/esm/api/resources/pods/resources/lists/client/Client.d.mts +69 -0
  136. package/dist/esm/api/resources/pods/resources/lists/client/Client.mjs +274 -0
  137. package/dist/esm/api/resources/pods/resources/lists/client/index.d.mts +1 -0
  138. package/dist/esm/api/resources/pods/resources/lists/client/index.mjs +1 -0
  139. package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.d.mts +9 -0
  140. package/dist/esm/api/resources/pods/resources/lists/client/requests/ListListEntriesRequest.mjs +2 -0
  141. package/dist/esm/api/resources/pods/resources/lists/client/requests/index.d.mts +1 -0
  142. package/dist/esm/api/resources/pods/resources/lists/client/requests/index.mjs +1 -0
  143. package/dist/esm/api/resources/pods/resources/lists/index.d.mts +1 -0
  144. package/dist/esm/api/resources/pods/resources/lists/index.mjs +1 -0
  145. package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +2 -1
  146. package/dist/esm/api/resources/pods/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  147. package/dist/esm/api/resources/threads/client/Client.mjs +2 -1
  148. package/dist/esm/api/resources/threads/client/requests/ListThreadsRequest.d.mts +1 -0
  149. package/dist/esm/api/types/IncludeBlocked.d.mts +4 -0
  150. package/dist/esm/api/types/IncludeBlocked.mjs +2 -0
  151. package/dist/esm/api/types/index.d.mts +1 -0
  152. package/dist/esm/api/types/index.mjs +1 -0
  153. package/dist/esm/serialization/resources/index.d.mts +2 -0
  154. package/dist/esm/serialization/resources/index.mjs +2 -0
  155. package/dist/esm/serialization/resources/lists/index.d.mts +1 -0
  156. package/dist/esm/serialization/resources/lists/index.mjs +1 -0
  157. package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.d.mts +10 -0
  158. package/dist/esm/serialization/resources/lists/types/CreateListEntryRequest.mjs +6 -0
  159. package/dist/esm/serialization/resources/lists/types/Direction.d.mts +7 -0
  160. package/dist/esm/serialization/resources/lists/types/Direction.mjs +3 -0
  161. package/dist/esm/serialization/resources/lists/types/EntryType.d.mts +7 -0
  162. package/dist/esm/serialization/resources/lists/types/EntryType.mjs +3 -0
  163. package/dist/esm/serialization/resources/lists/types/ListEntry.d.mts +9 -0
  164. package/dist/esm/serialization/resources/lists/types/ListEntry.mjs +4 -0
  165. package/dist/esm/serialization/resources/lists/types/ListEntryBase.d.mts +19 -0
  166. package/dist/esm/serialization/resources/lists/types/ListEntryBase.mjs +15 -0
  167. package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.d.mts +16 -0
  168. package/dist/esm/serialization/resources/lists/types/ListListEntriesResponse.mjs +12 -0
  169. package/dist/esm/serialization/resources/lists/types/ListType.d.mts +7 -0
  170. package/dist/esm/serialization/resources/lists/types/ListType.mjs +3 -0
  171. package/dist/esm/serialization/resources/lists/types/PodListEntry.d.mts +11 -0
  172. package/dist/esm/serialization/resources/lists/types/PodListEntry.mjs +9 -0
  173. package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.d.mts +16 -0
  174. package/dist/esm/serialization/resources/lists/types/PodListListEntriesResponse.mjs +12 -0
  175. package/dist/esm/serialization/resources/lists/types/index.d.mts +9 -0
  176. package/dist/esm/serialization/resources/lists/types/index.mjs +9 -0
  177. package/dist/esm/serialization/types/IncludeBlocked.d.mts +7 -0
  178. package/dist/esm/serialization/types/IncludeBlocked.mjs +3 -0
  179. package/dist/esm/serialization/types/index.d.mts +1 -0
  180. package/dist/esm/serialization/types/index.mjs +1 -0
  181. package/dist/esm/version.d.mts +1 -1
  182. package/dist/esm/version.mjs +1 -1
  183. package/dist/llms.txt +7 -1
  184. package/package.json +1 -1
  185. package/reference.md +558 -0
@@ -0,0 +1,45 @@
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.PodListEntry = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ const ListEntryBase_js_1 = require("./ListEntryBase.js");
40
+ exports.PodListEntry = core.serialization
41
+ .object({
42
+ podId: core.serialization.property("pod_id", core.serialization.string()),
43
+ inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
44
+ })
45
+ .extend(ListEntryBase_js_1.ListEntryBase);
@@ -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 { PodListEntry } from "./PodListEntry.js";
8
+ export declare const PodListListEntriesResponse: core.serialization.ObjectSchema<serializers.PodListListEntriesResponse.Raw, AgentMail.PodListListEntriesResponse>;
9
+ export declare namespace PodListListEntriesResponse {
10
+ interface Raw {
11
+ count: Count.Raw;
12
+ limit?: Limit.Raw | null;
13
+ next_page_token?: PageToken.Raw | null;
14
+ entries: PodListEntry.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.PodListListEntriesResponse = 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 PodListEntry_js_1 = require("./PodListEntry.js");
43
+ exports.PodListListEntriesResponse = 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(PodListEntry_js_1.PodListEntry),
48
+ });
@@ -0,0 +1,9 @@
1
+ export * from "./CreateListEntryRequest.js";
2
+ export * from "./Direction.js";
3
+ export * from "./EntryType.js";
4
+ export * from "./ListEntry.js";
5
+ export * from "./ListEntryBase.js";
6
+ export * from "./ListListEntriesResponse.js";
7
+ export * from "./ListType.js";
8
+ export * from "./PodListEntry.js";
9
+ export * from "./PodListListEntriesResponse.js";
@@ -0,0 +1,25 @@
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("./CreateListEntryRequest.js"), exports);
18
+ __exportStar(require("./Direction.js"), exports);
19
+ __exportStar(require("./EntryType.js"), exports);
20
+ __exportStar(require("./ListEntry.js"), exports);
21
+ __exportStar(require("./ListEntryBase.js"), exports);
22
+ __exportStar(require("./ListListEntriesResponse.js"), exports);
23
+ __exportStar(require("./ListType.js"), exports);
24
+ __exportStar(require("./PodListEntry.js"), exports);
25
+ __exportStar(require("./PodListListEntriesResponse.js"), exports);
@@ -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 IncludeBlocked: core.serialization.Schema<serializers.IncludeBlocked.Raw, AgentMail.IncludeBlocked>;
5
+ export declare namespace IncludeBlocked {
6
+ type Raw = boolean;
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.IncludeBlocked = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.IncludeBlocked = core.serialization.boolean();
@@ -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);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.2";
1
+ export declare const SDK_VERSION = "0.3.3";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.3.2";
4
+ exports.SDK_VERSION = "0.3.3";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "agentmail",
9
- "X-Fern-SDK-Version": "0.3.2",
10
- "User-Agent": "agentmail/0.3.2",
9
+ "X-Fern-SDK-Version": "0.3.3",
10
+ "User-Agent": "agentmail/0.3.3",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,6 +2,7 @@ import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
2
2
  import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
3
3
  import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
4
4
  import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
5
+ import { ListsClient } from "./api/resources/lists/client/Client.mjs";
5
6
  import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
6
7
  import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
7
8
  import { PodsClient } from "./api/resources/pods/client/Client.mjs";
@@ -23,6 +24,7 @@ export declare class AgentMailClient {
23
24
  protected _apiKeys: ApiKeysClient | undefined;
24
25
  protected _domains: DomainsClient | undefined;
25
26
  protected _drafts: DraftsClient | undefined;
27
+ protected _lists: ListsClient | undefined;
26
28
  protected _metrics: MetricsClient | undefined;
27
29
  protected _organizations: OrganizationsClient | undefined;
28
30
  protected _threads: ThreadsClient | undefined;
@@ -34,6 +36,7 @@ export declare class AgentMailClient {
34
36
  get apiKeys(): ApiKeysClient;
35
37
  get domains(): DomainsClient;
36
38
  get drafts(): DraftsClient;
39
+ get lists(): ListsClient;
37
40
  get metrics(): MetricsClient;
38
41
  get organizations(): OrganizationsClient;
39
42
  get threads(): ThreadsClient;
@@ -3,6 +3,7 @@ import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
3
3
  import { DomainsClient } from "./api/resources/domains/client/Client.mjs";
4
4
  import { DraftsClient } from "./api/resources/drafts/client/Client.mjs";
5
5
  import { InboxesClient } from "./api/resources/inboxes/client/Client.mjs";
6
+ import { ListsClient } from "./api/resources/lists/client/Client.mjs";
6
7
  import { MetricsClient } from "./api/resources/metrics/client/Client.mjs";
7
8
  import { OrganizationsClient } from "./api/resources/organizations/client/Client.mjs";
8
9
  import { PodsClient } from "./api/resources/pods/client/Client.mjs";
@@ -38,6 +39,10 @@ export class AgentMailClient {
38
39
  var _a;
39
40
  return ((_a = this._drafts) !== null && _a !== void 0 ? _a : (this._drafts = new DraftsClient(this._options)));
40
41
  }
42
+ get lists() {
43
+ var _a;
44
+ return ((_a = this._lists) !== null && _a !== void 0 ? _a : (this._lists = new ListsClient(this._options)));
45
+ }
41
46
  get metrics() {
42
47
  var _a;
43
48
  return ((_a = this._metrics) !== null && _a !== void 0 ? _a : (this._metrics = new MetricsClient(this._options)));
@@ -37,7 +37,7 @@ export class MessagesClient {
37
37
  __list(inbox_id_1) {
38
38
  return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
39
39
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
- const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
40
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
41
41
  const _queryParams = {
42
42
  limit,
43
43
  page_token: pageToken,
@@ -55,6 +55,7 @@ export class MessagesClient {
55
55
  : undefined,
56
56
  ascending,
57
57
  include_spam: includeSpam,
58
+ include_blocked: includeBlocked,
58
59
  };
59
60
  const _authRequest = yield this._options.authProvider.getAuthRequest();
60
61
  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);
@@ -11,4 +11,5 @@ export interface ListMessagesRequest {
11
11
  after?: AgentMail.After;
12
12
  ascending?: AgentMail.Ascending;
13
13
  includeSpam?: AgentMail.IncludeSpam;
14
+ includeBlocked?: AgentMail.IncludeBlocked;
14
15
  }
@@ -37,7 +37,7 @@ export class ThreadsClient {
37
37
  __list(inbox_id_1) {
38
38
  return __awaiter(this, arguments, void 0, function* (inbox_id, request = {}, requestOptions) {
39
39
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
40
- const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
40
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
41
41
  const _queryParams = {
42
42
  limit,
43
43
  page_token: pageToken,
@@ -55,6 +55,7 @@ export class ThreadsClient {
55
55
  : undefined,
56
56
  ascending,
57
57
  include_spam: includeSpam,
58
+ include_blocked: includeBlocked,
58
59
  };
59
60
  const _authRequest = yield this._options.authProvider.getAuthRequest();
60
61
  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);
@@ -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
  }
@@ -12,6 +12,9 @@ export * from "./drafts/types/index.mjs";
12
12
  export * as events from "./events/index.mjs";
13
13
  export * from "./events/types/index.mjs";
14
14
  export * as inboxes from "./inboxes/index.mjs";
15
+ export * from "./lists/client/requests/index.mjs";
16
+ export * as lists from "./lists/index.mjs";
17
+ export * from "./lists/types/index.mjs";
15
18
  export * from "./messages/errors/index.mjs";
16
19
  export * as messages from "./messages/index.mjs";
17
20
  export * from "./messages/types/index.mjs";
@@ -12,6 +12,9 @@ export * from "./drafts/types/index.mjs";
12
12
  export * as events from "./events/index.mjs";
13
13
  export * from "./events/types/index.mjs";
14
14
  export * as inboxes from "./inboxes/index.mjs";
15
+ export * from "./lists/client/requests/index.mjs";
16
+ export * as lists from "./lists/index.mjs";
17
+ export * from "./lists/types/index.mjs";
15
18
  export * from "./messages/errors/index.mjs";
16
19
  export * as messages from "./messages/index.mjs";
17
20
  export * from "./messages/types/index.mjs";
@@ -0,0 +1,65 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as AgentMail from "../../../index.mjs";
5
+ export declare namespace ListsClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ListsClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ListsClient.Options>;
12
+ constructor(options?: ListsClient.Options);
13
+ /**
14
+ * @param {AgentMail.Direction} direction
15
+ * @param {AgentMail.ListType} type
16
+ * @param {AgentMail.CreateListEntryRequest} request
17
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link AgentMail.ValidationError}
20
+ *
21
+ * @example
22
+ * await client.lists.create("send", "allow", {
23
+ * entry: "entry"
24
+ * })
25
+ */
26
+ create(direction: AgentMail.Direction, type: AgentMail.ListType, request: AgentMail.CreateListEntryRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListEntry>;
27
+ private __create;
28
+ /**
29
+ * @param {AgentMail.Direction} direction
30
+ * @param {AgentMail.ListType} type
31
+ * @param {AgentMail.ListListEntriesRequest} request
32
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @example
35
+ * await client.lists.list("send", "allow")
36
+ */
37
+ list(direction: AgentMail.Direction, type: AgentMail.ListType, request?: AgentMail.ListListEntriesRequest, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListListEntriesResponse>;
38
+ private __list;
39
+ /**
40
+ * @param {AgentMail.Direction} direction
41
+ * @param {AgentMail.ListType} type
42
+ * @param {string} entry - Email address or domain.
43
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @throws {@link AgentMail.NotFoundError}
46
+ *
47
+ * @example
48
+ * await client.lists.get("send", "allow", "entry")
49
+ */
50
+ get(direction: AgentMail.Direction, type: AgentMail.ListType, entry: string, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<AgentMail.ListEntry>;
51
+ private __get;
52
+ /**
53
+ * @param {AgentMail.Direction} direction
54
+ * @param {AgentMail.ListType} type
55
+ * @param {string} entry - Email address or domain.
56
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link AgentMail.NotFoundError}
59
+ *
60
+ * @example
61
+ * await client.lists.delete("send", "allow", "entry")
62
+ */
63
+ delete(direction: AgentMail.Direction, type: AgentMail.ListType, entry: string, requestOptions?: ListsClient.RequestOptions): core.HttpResponsePromise<void>;
64
+ private __delete;
65
+ }