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,274 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../../../core/headers.mjs";
13
+ import * as core from "../../../../../../core/index.mjs";
14
+ import * as environments from "../../../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../../../errors/index.mjs";
17
+ import * as serializers from "../../../../../../serialization/index.mjs";
18
+ import * as AgentMail from "../../../../../index.mjs";
19
+ export class ListsClient {
20
+ constructor(options = {}) {
21
+ this._options = normalizeClientOptionsWithAuth(options);
22
+ }
23
+ /**
24
+ * @param {AgentMail.pods.PodId} pod_id
25
+ * @param {AgentMail.Direction} direction
26
+ * @param {AgentMail.ListType} type
27
+ * @param {AgentMail.CreateListEntryRequest} request
28
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link AgentMail.ValidationError}
31
+ *
32
+ * @example
33
+ * await client.pods.lists.create("pod_id", "send", "allow", {
34
+ * entry: "entry"
35
+ * })
36
+ */
37
+ create(pod_id, direction, type, request, requestOptions) {
38
+ return core.HttpResponsePromise.fromPromise(this.__create(pod_id, direction, type, request, requestOptions));
39
+ }
40
+ __create(pod_id, direction, type, request, requestOptions) {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
43
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
44
+ 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);
45
+ const _response = yield core.fetcher({
46
+ 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)
47
+ .http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}`),
48
+ method: "POST",
49
+ headers: _headers,
50
+ contentType: "application/json",
51
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
52
+ requestType: "json",
53
+ body: serializers.CreateListEntryRequest.jsonOrThrow(request, {
54
+ unrecognizedObjectKeys: "strip",
55
+ omitUndefined: true,
56
+ }),
57
+ 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,
58
+ 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,
59
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
60
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
61
+ logging: this._options.logging,
62
+ });
63
+ if (_response.ok) {
64
+ return {
65
+ data: serializers.PodListEntry.parseOrThrow(_response.body, {
66
+ unrecognizedObjectKeys: "passthrough",
67
+ allowUnrecognizedUnionMembers: true,
68
+ allowUnrecognizedEnumValues: true,
69
+ skipValidation: true,
70
+ breadcrumbsPrefix: ["response"],
71
+ }),
72
+ rawResponse: _response.rawResponse,
73
+ };
74
+ }
75
+ if (_response.error.reason === "status-code") {
76
+ switch (_response.error.statusCode) {
77
+ case 400:
78
+ throw new AgentMail.ValidationError(serializers.ValidationErrorResponse.parseOrThrow(_response.error.body, {
79
+ unrecognizedObjectKeys: "passthrough",
80
+ allowUnrecognizedUnionMembers: true,
81
+ allowUnrecognizedEnumValues: true,
82
+ skipValidation: true,
83
+ breadcrumbsPrefix: ["response"],
84
+ }), _response.rawResponse);
85
+ default:
86
+ throw new errors.AgentMailError({
87
+ statusCode: _response.error.statusCode,
88
+ body: _response.error.body,
89
+ rawResponse: _response.rawResponse,
90
+ });
91
+ }
92
+ }
93
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v0/pods/{pod_id}/lists/{direction}/{type}");
94
+ });
95
+ }
96
+ /**
97
+ * @param {AgentMail.pods.PodId} pod_id
98
+ * @param {AgentMail.Direction} direction
99
+ * @param {AgentMail.ListType} type
100
+ * @param {AgentMail.pods.ListListEntriesRequest} request
101
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
102
+ *
103
+ * @example
104
+ * await client.pods.lists.list("pod_id", "send", "allow")
105
+ */
106
+ list(pod_id, direction, type, request = {}, requestOptions) {
107
+ return core.HttpResponsePromise.fromPromise(this.__list(pod_id, direction, type, request, requestOptions));
108
+ }
109
+ __list(pod_id_1, direction_1, type_1) {
110
+ return __awaiter(this, arguments, void 0, function* (pod_id, direction, type, request = {}, requestOptions) {
111
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
112
+ const { limit, pageToken } = request;
113
+ const _queryParams = {
114
+ limit,
115
+ page_token: pageToken,
116
+ };
117
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
118
+ 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);
119
+ const _response = yield core.fetcher({
120
+ 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)
121
+ .http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}`),
122
+ method: "GET",
123
+ headers: _headers,
124
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
125
+ 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,
126
+ 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,
127
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
128
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
129
+ logging: this._options.logging,
130
+ });
131
+ if (_response.ok) {
132
+ return {
133
+ data: serializers.PodListListEntriesResponse.parseOrThrow(_response.body, {
134
+ unrecognizedObjectKeys: "passthrough",
135
+ allowUnrecognizedUnionMembers: true,
136
+ allowUnrecognizedEnumValues: true,
137
+ skipValidation: true,
138
+ breadcrumbsPrefix: ["response"],
139
+ }),
140
+ rawResponse: _response.rawResponse,
141
+ };
142
+ }
143
+ if (_response.error.reason === "status-code") {
144
+ throw new errors.AgentMailError({
145
+ statusCode: _response.error.statusCode,
146
+ body: _response.error.body,
147
+ rawResponse: _response.rawResponse,
148
+ });
149
+ }
150
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/pods/{pod_id}/lists/{direction}/{type}");
151
+ });
152
+ }
153
+ /**
154
+ * @param {AgentMail.pods.PodId} pod_id
155
+ * @param {AgentMail.Direction} direction
156
+ * @param {AgentMail.ListType} type
157
+ * @param {string} entry - Email address or domain.
158
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
159
+ *
160
+ * @throws {@link AgentMail.NotFoundError}
161
+ *
162
+ * @example
163
+ * await client.pods.lists.get("pod_id", "send", "allow", "entry")
164
+ */
165
+ get(pod_id, direction, type, entry, requestOptions) {
166
+ return core.HttpResponsePromise.fromPromise(this.__get(pod_id, direction, type, entry, requestOptions));
167
+ }
168
+ __get(pod_id, direction, type, entry, requestOptions) {
169
+ return __awaiter(this, void 0, void 0, function* () {
170
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
171
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
172
+ 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);
173
+ const _response = yield core.fetcher({
174
+ 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)
175
+ .http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}/${core.url.encodePathParam(entry)}`),
176
+ method: "GET",
177
+ headers: _headers,
178
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
179
+ 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,
180
+ 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,
181
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
183
+ logging: this._options.logging,
184
+ });
185
+ if (_response.ok) {
186
+ return {
187
+ data: serializers.PodListEntry.parseOrThrow(_response.body, {
188
+ unrecognizedObjectKeys: "passthrough",
189
+ allowUnrecognizedUnionMembers: true,
190
+ allowUnrecognizedEnumValues: true,
191
+ skipValidation: true,
192
+ breadcrumbsPrefix: ["response"],
193
+ }),
194
+ rawResponse: _response.rawResponse,
195
+ };
196
+ }
197
+ if (_response.error.reason === "status-code") {
198
+ switch (_response.error.statusCode) {
199
+ case 404:
200
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
201
+ unrecognizedObjectKeys: "passthrough",
202
+ allowUnrecognizedUnionMembers: true,
203
+ allowUnrecognizedEnumValues: true,
204
+ skipValidation: true,
205
+ breadcrumbsPrefix: ["response"],
206
+ }), _response.rawResponse);
207
+ default:
208
+ throw new errors.AgentMailError({
209
+ statusCode: _response.error.statusCode,
210
+ body: _response.error.body,
211
+ rawResponse: _response.rawResponse,
212
+ });
213
+ }
214
+ }
215
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/pods/{pod_id}/lists/{direction}/{type}/{entry}");
216
+ });
217
+ }
218
+ /**
219
+ * @param {AgentMail.pods.PodId} pod_id
220
+ * @param {AgentMail.Direction} direction
221
+ * @param {AgentMail.ListType} type
222
+ * @param {string} entry - Email address or domain.
223
+ * @param {ListsClient.RequestOptions} requestOptions - Request-specific configuration.
224
+ *
225
+ * @throws {@link AgentMail.NotFoundError}
226
+ *
227
+ * @example
228
+ * await client.pods.lists.delete("pod_id", "send", "allow", "entry")
229
+ */
230
+ delete(pod_id, direction, type, entry, requestOptions) {
231
+ return core.HttpResponsePromise.fromPromise(this.__delete(pod_id, direction, type, entry, requestOptions));
232
+ }
233
+ __delete(pod_id, direction, type, entry, requestOptions) {
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
236
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
237
+ 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);
238
+ const _response = yield core.fetcher({
239
+ 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)
240
+ .http, `/v0/pods/${core.url.encodePathParam(serializers.pods.PodId.jsonOrThrow(pod_id, { omitUndefined: true }))}/lists/${core.url.encodePathParam(serializers.Direction.jsonOrThrow(direction, { omitUndefined: true }))}/${core.url.encodePathParam(serializers.ListType.jsonOrThrow(type, { omitUndefined: true }))}/${core.url.encodePathParam(entry)}`),
241
+ method: "DELETE",
242
+ headers: _headers,
243
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
244
+ 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,
245
+ 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,
246
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
247
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
248
+ logging: this._options.logging,
249
+ });
250
+ if (_response.ok) {
251
+ return { data: undefined, rawResponse: _response.rawResponse };
252
+ }
253
+ if (_response.error.reason === "status-code") {
254
+ switch (_response.error.statusCode) {
255
+ case 404:
256
+ throw new AgentMail.NotFoundError(serializers.ErrorResponse.parseOrThrow(_response.error.body, {
257
+ unrecognizedObjectKeys: "passthrough",
258
+ allowUnrecognizedUnionMembers: true,
259
+ allowUnrecognizedEnumValues: true,
260
+ skipValidation: true,
261
+ breadcrumbsPrefix: ["response"],
262
+ }), _response.rawResponse);
263
+ default:
264
+ throw new errors.AgentMailError({
265
+ statusCode: _response.error.statusCode,
266
+ body: _response.error.body,
267
+ rawResponse: _response.rawResponse,
268
+ });
269
+ }
270
+ }
271
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v0/pods/{pod_id}/lists/{direction}/{type}/{entry}");
272
+ });
273
+ }
274
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface ListListEntriesRequest {
7
+ limit?: AgentMail.Limit;
8
+ pageToken?: AgentMail.PageToken;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { ListListEntriesRequest } from "./ListListEntriesRequest.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./client/index.mjs";
@@ -37,7 +37,7 @@ export class ThreadsClient {
37
37
  __list(pod_id_1) {
38
38
  return __awaiter(this, arguments, void 0, function* (pod_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
  }
@@ -36,7 +36,7 @@ export class ThreadsClient {
36
36
  __list() {
37
37
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
38
38
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
39
- const { limit, pageToken, labels, before, after, ascending, includeSpam } = request;
39
+ const { limit, pageToken, labels, before, after, ascending, includeSpam, includeBlocked } = request;
40
40
  const _queryParams = {
41
41
  limit,
42
42
  page_token: pageToken,
@@ -54,6 +54,7 @@ export class ThreadsClient {
54
54
  : undefined,
55
55
  ascending,
56
56
  include_spam: includeSpam,
57
+ include_blocked: includeBlocked,
57
58
  };
58
59
  const _authRequest = yield this._options.authProvider.getAuthRequest();
59
60
  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
  }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Include blocked in results.
3
+ */
4
+ export type IncludeBlocked = boolean;
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -5,6 +5,7 @@ export * from "./Count.mjs";
5
5
  export * from "./ErrorMessage.mjs";
6
6
  export * from "./ErrorName.mjs";
7
7
  export * from "./ErrorResponse.mjs";
8
+ export * from "./IncludeBlocked.mjs";
8
9
  export * from "./IncludeSpam.mjs";
9
10
  export * from "./Labels.mjs";
10
11
  export * from "./Limit.mjs";
@@ -5,6 +5,7 @@ export * from "./Count.mjs";
5
5
  export * from "./ErrorMessage.mjs";
6
6
  export * from "./ErrorName.mjs";
7
7
  export * from "./ErrorResponse.mjs";
8
+ export * from "./IncludeBlocked.mjs";
8
9
  export * from "./IncludeSpam.mjs";
9
10
  export * from "./Labels.mjs";
10
11
  export * from "./Limit.mjs";
@@ -9,6 +9,8 @@ export * from "./drafts/types/index.mjs";
9
9
  export * as events from "./events/index.mjs";
10
10
  export * from "./events/types/index.mjs";
11
11
  export * as inboxes from "./inboxes/index.mjs";
12
+ export * as lists from "./lists/index.mjs";
13
+ export * from "./lists/types/index.mjs";
12
14
  export * as messages from "./messages/index.mjs";
13
15
  export * from "./messages/types/index.mjs";
14
16
  export * as metrics from "./metrics/index.mjs";
@@ -9,6 +9,8 @@ export * from "./drafts/types/index.mjs";
9
9
  export * as events from "./events/index.mjs";
10
10
  export * from "./events/types/index.mjs";
11
11
  export * as inboxes from "./inboxes/index.mjs";
12
+ export * as lists from "./lists/index.mjs";
13
+ export * from "./lists/types/index.mjs";
12
14
  export * as messages from "./messages/index.mjs";
13
15
  export * from "./messages/types/index.mjs";
14
16
  export * as metrics from "./metrics/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./types/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./types/index.mjs";
@@ -0,0 +1,10 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ 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,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const CreateListEntryRequest = core.serialization.object({
4
+ entry: core.serialization.string(),
5
+ reason: core.serialization.string().optional(),
6
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ 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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const Direction = core.serialization.enum_(["send", "receive"]);
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ 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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const EntryType = core.serialization.enum_(["email", "domain"]);
@@ -0,0 +1,9 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { ListEntryBase } from "./ListEntryBase.mjs";
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,4 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { ListEntryBase } from "./ListEntryBase.mjs";
4
+ export const ListEntry = core.serialization.object({}).extend(ListEntryBase);
@@ -0,0 +1,19 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { OrganizationId } from "../../../types/OrganizationId.mjs";
5
+ import { Direction } from "./Direction.mjs";
6
+ import { EntryType } from "./EntryType.mjs";
7
+ import { ListType } from "./ListType.mjs";
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,15 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { OrganizationId } from "../../../types/OrganizationId.mjs";
4
+ import { Direction } from "./Direction.mjs";
5
+ import { EntryType } from "./EntryType.mjs";
6
+ import { ListType } from "./ListType.mjs";
7
+ export const ListEntryBase = core.serialization.object({
8
+ entry: core.serialization.string(),
9
+ organizationId: core.serialization.property("organization_id", OrganizationId),
10
+ reason: core.serialization.string().optional(),
11
+ direction: Direction,
12
+ listType: core.serialization.property("list_type", ListType),
13
+ entryType: core.serialization.property("entry_type", EntryType),
14
+ createdAt: core.serialization.property("created_at", core.serialization.date()),
15
+ });
@@ -0,0 +1,16 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { Count } from "../../../types/Count.mjs";
5
+ import { Limit } from "../../../types/Limit.mjs";
6
+ import { PageToken } from "../../../types/PageToken.mjs";
7
+ import { ListEntry } from "./ListEntry.mjs";
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,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { Count } from "../../../types/Count.mjs";
4
+ import { Limit } from "../../../types/Limit.mjs";
5
+ import { PageToken } from "../../../types/PageToken.mjs";
6
+ import { ListEntry } from "./ListEntry.mjs";
7
+ export const ListListEntriesResponse = core.serialization.object({
8
+ count: Count,
9
+ limit: Limit.optional(),
10
+ nextPageToken: core.serialization.property("next_page_token", PageToken.optional()),
11
+ entries: core.serialization.list(ListEntry),
12
+ });
@@ -0,0 +1,7 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ 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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ListType = core.serialization.enum_(["allow", "block"]);
@@ -0,0 +1,11 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { ListEntryBase } from "./ListEntryBase.mjs";
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
+ }
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { ListEntryBase } from "./ListEntryBase.mjs";
4
+ export const PodListEntry = core.serialization
5
+ .object({
6
+ podId: core.serialization.property("pod_id", core.serialization.string()),
7
+ inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
8
+ })
9
+ .extend(ListEntryBase);
@@ -0,0 +1,16 @@
1
+ import type * as AgentMail from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
4
+ import { Count } from "../../../types/Count.mjs";
5
+ import { Limit } from "../../../types/Limit.mjs";
6
+ import { PageToken } from "../../../types/PageToken.mjs";
7
+ import { PodListEntry } from "./PodListEntry.mjs";
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,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ import { Count } from "../../../types/Count.mjs";
4
+ import { Limit } from "../../../types/Limit.mjs";
5
+ import { PageToken } from "../../../types/PageToken.mjs";
6
+ import { PodListEntry } from "./PodListEntry.mjs";
7
+ export const PodListListEntriesResponse = core.serialization.object({
8
+ count: Count,
9
+ limit: Limit.optional(),
10
+ nextPageToken: core.serialization.property("next_page_token", PageToken.optional()),
11
+ entries: core.serialization.list(PodListEntry),
12
+ });