agentmail 0.3.9 → 0.4.0

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 (39) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/apiKeys/client/Client.js +2 -1
  3. package/dist/cjs/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.ts +1 -0
  4. package/dist/cjs/api/resources/domains/client/Client.js +2 -1
  5. package/dist/cjs/api/resources/domains/client/requests/ListDomainsRequest.d.ts +1 -0
  6. package/dist/cjs/api/resources/inboxes/client/Client.js +2 -1
  7. package/dist/cjs/api/resources/inboxes/client/requests/ListInboxesRequest.d.ts +1 -0
  8. package/dist/cjs/api/resources/inboxes/types/InboxId.d.ts +1 -1
  9. package/dist/cjs/api/resources/pods/client/Client.js +2 -1
  10. package/dist/cjs/api/resources/pods/client/requests/ListPodsRequest.d.ts +1 -0
  11. package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +2 -1
  12. package/dist/cjs/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.d.ts +1 -0
  13. package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +2 -1
  14. package/dist/cjs/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.d.ts +1 -0
  15. package/dist/cjs/api/resources/webhooks/client/Client.js +2 -1
  16. package/dist/cjs/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +1 -0
  17. package/dist/cjs/version.d.ts +1 -1
  18. package/dist/cjs/version.js +1 -1
  19. package/dist/esm/BaseClient.mjs +2 -2
  20. package/dist/esm/api/resources/apiKeys/client/Client.mjs +2 -1
  21. package/dist/esm/api/resources/apiKeys/client/requests/ListApiKeysRequest.d.mts +1 -0
  22. package/dist/esm/api/resources/domains/client/Client.mjs +2 -1
  23. package/dist/esm/api/resources/domains/client/requests/ListDomainsRequest.d.mts +1 -0
  24. package/dist/esm/api/resources/inboxes/client/Client.mjs +2 -1
  25. package/dist/esm/api/resources/inboxes/client/requests/ListInboxesRequest.d.mts +1 -0
  26. package/dist/esm/api/resources/inboxes/types/InboxId.d.mts +1 -1
  27. package/dist/esm/api/resources/pods/client/Client.mjs +2 -1
  28. package/dist/esm/api/resources/pods/client/requests/ListPodsRequest.d.mts +1 -0
  29. package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +2 -1
  30. package/dist/esm/api/resources/pods/resources/domains/client/requests/ListDomainsRequest.d.mts +1 -0
  31. package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +2 -1
  32. package/dist/esm/api/resources/pods/resources/inboxes/client/requests/ListInboxesRequest.d.mts +1 -0
  33. package/dist/esm/api/resources/webhooks/client/Client.mjs +2 -1
  34. package/dist/esm/api/resources/webhooks/client/requests/ListWebhooksRequest.d.mts +1 -0
  35. package/dist/esm/version.d.mts +1 -1
  36. package/dist/esm/version.mjs +1 -1
  37. package/dist/llms-full.txt +343 -0
  38. package/dist/llms.txt +1 -0
  39. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "agentmail",
46
- "X-Fern-SDK-Version": "0.3.9",
47
- "User-Agent": "agentmail/0.3.9",
46
+ "X-Fern-SDK-Version": "0.4.0",
47
+ "User-Agent": "agentmail/0.4.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -69,10 +69,11 @@ class ApiKeysClient {
69
69
  __list() {
70
70
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
71
71
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
72
- const { limit, pageToken } = request;
72
+ const { limit, pageToken, ascending } = request;
73
73
  const _queryParams = {
74
74
  limit,
75
75
  page_token: pageToken,
76
+ ascending,
76
77
  };
77
78
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
79
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.js";
6
6
  export interface ListApiKeysRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -69,10 +69,11 @@ class DomainsClient {
69
69
  __list() {
70
70
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
71
71
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
72
- const { limit, pageToken } = request;
72
+ const { limit, pageToken, ascending } = request;
73
73
  const _queryParams = {
74
74
  limit,
75
75
  page_token: pageToken,
76
+ ascending,
76
77
  };
77
78
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
79
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.js";
6
6
  export interface ListDomainsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -89,10 +89,11 @@ class InboxesClient {
89
89
  __list() {
90
90
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
91
91
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
92
- const { limit, pageToken } = request;
92
+ const { limit, pageToken, ascending } = request;
93
93
  const _queryParams = {
94
94
  limit,
95
95
  page_token: pageToken,
96
+ ascending,
96
97
  };
97
98
  const _authRequest = yield this._options.authProvider.getAuthRequest();
98
99
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.js";
6
6
  export interface ListInboxesRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
- * ID of inbox.
2
+ * The ID of the inbox.
3
3
  */
4
4
  export type InboxId = string;
@@ -94,10 +94,11 @@ class PodsClient {
94
94
  __list() {
95
95
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
96
96
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
97
- const { limit, pageToken } = request;
97
+ const { limit, pageToken, ascending } = request;
98
98
  const _queryParams = {
99
99
  limit,
100
100
  page_token: pageToken,
101
+ ascending,
101
102
  };
102
103
  const _authRequest = yield this._options.authProvider.getAuthRequest();
103
104
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.js";
6
6
  export interface ListPodsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -72,10 +72,11 @@ class DomainsClient {
72
72
  __list(pod_id_1) {
73
73
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
74
74
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
75
- const { limit, pageToken } = request;
75
+ const { limit, pageToken, ascending } = request;
76
76
  const _queryParams = {
77
77
  limit,
78
78
  page_token: pageToken,
79
+ ascending,
79
80
  };
80
81
  const _authRequest = yield this._options.authProvider.getAuthRequest();
81
82
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../../../index.js";
6
6
  export interface ListDomainsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -72,10 +72,11 @@ class InboxesClient {
72
72
  __list(pod_id_1) {
73
73
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
74
74
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
75
- const { limit, pageToken } = request;
75
+ const { limit, pageToken, ascending } = request;
76
76
  const _queryParams = {
77
77
  limit,
78
78
  page_token: pageToken,
79
+ ascending,
79
80
  };
80
81
  const _authRequest = yield this._options.authProvider.getAuthRequest();
81
82
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../../../index.js";
6
6
  export interface ListInboxesRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -69,10 +69,11 @@ class WebhooksClient {
69
69
  __list() {
70
70
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
71
71
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
72
- const { limit, pageToken } = request;
72
+ const { limit, pageToken, ascending } = request;
73
73
  const _queryParams = {
74
74
  limit,
75
75
  page_token: pageToken,
76
+ ascending,
76
77
  };
77
78
  const _authRequest = yield this._options.authProvider.getAuthRequest();
78
79
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.js";
6
6
  export interface ListWebhooksRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.9";
1
+ export declare const SDK_VERSION = "0.4.0";
@@ -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.9";
4
+ exports.SDK_VERSION = "0.4.0";
@@ -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.9",
10
- "User-Agent": "agentmail/0.3.9",
9
+ "X-Fern-SDK-Version": "0.4.0",
10
+ "User-Agent": "agentmail/0.4.0",
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);
@@ -33,10 +33,11 @@ export class ApiKeysClient {
33
33
  __list() {
34
34
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
35
35
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
36
- const { limit, pageToken } = request;
36
+ const { limit, pageToken, ascending } = request;
37
37
  const _queryParams = {
38
38
  limit,
39
39
  page_token: pageToken,
40
+ ascending,
40
41
  };
41
42
  const _authRequest = yield this._options.authProvider.getAuthRequest();
42
43
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.mjs";
6
6
  export interface ListApiKeysRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -33,10 +33,11 @@ export class DomainsClient {
33
33
  __list() {
34
34
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
35
35
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
36
- const { limit, pageToken } = request;
36
+ const { limit, pageToken, ascending } = request;
37
37
  const _queryParams = {
38
38
  limit,
39
39
  page_token: pageToken,
40
+ ascending,
40
41
  };
41
42
  const _authRequest = yield this._options.authProvider.getAuthRequest();
42
43
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.mjs";
6
6
  export interface ListDomainsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -53,10 +53,11 @@ export class InboxesClient {
53
53
  __list() {
54
54
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
55
55
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
56
- const { limit, pageToken } = request;
56
+ const { limit, pageToken, ascending } = request;
57
57
  const _queryParams = {
58
58
  limit,
59
59
  page_token: pageToken,
60
+ ascending,
60
61
  };
61
62
  const _authRequest = yield this._options.authProvider.getAuthRequest();
62
63
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.mjs";
6
6
  export interface ListInboxesRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -1,4 +1,4 @@
1
1
  /**
2
- * ID of inbox.
2
+ * The ID of the inbox.
3
3
  */
4
4
  export type InboxId = string;
@@ -58,10 +58,11 @@ export class PodsClient {
58
58
  __list() {
59
59
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
60
60
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
61
- const { limit, pageToken } = request;
61
+ const { limit, pageToken, ascending } = request;
62
62
  const _queryParams = {
63
63
  limit,
64
64
  page_token: pageToken,
65
+ ascending,
65
66
  };
66
67
  const _authRequest = yield this._options.authProvider.getAuthRequest();
67
68
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.mjs";
6
6
  export interface ListPodsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -36,10 +36,11 @@ export class DomainsClient {
36
36
  __list(pod_id_1) {
37
37
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
38
38
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
39
- const { limit, pageToken } = request;
39
+ const { limit, pageToken, ascending } = request;
40
40
  const _queryParams = {
41
41
  limit,
42
42
  page_token: pageToken,
43
+ ascending,
43
44
  };
44
45
  const _authRequest = yield this._options.authProvider.getAuthRequest();
45
46
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../../../index.mjs";
6
6
  export interface ListDomainsRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -36,10 +36,11 @@ export class InboxesClient {
36
36
  __list(pod_id_1) {
37
37
  return __awaiter(this, arguments, void 0, function* (pod_id, request = {}, requestOptions) {
38
38
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
39
- const { limit, pageToken } = request;
39
+ const { limit, pageToken, ascending } = request;
40
40
  const _queryParams = {
41
41
  limit,
42
42
  page_token: pageToken,
43
+ ascending,
43
44
  };
44
45
  const _authRequest = yield this._options.authProvider.getAuthRequest();
45
46
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../../../index.mjs";
6
6
  export interface ListInboxesRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -33,10 +33,11 @@ export class WebhooksClient {
33
33
  __list() {
34
34
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
35
35
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
36
- const { limit, pageToken } = request;
36
+ const { limit, pageToken, ascending } = request;
37
37
  const _queryParams = {
38
38
  limit,
39
39
  page_token: pageToken,
40
+ ascending,
40
41
  };
41
42
  const _authRequest = yield this._options.authProvider.getAuthRequest();
42
43
  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);
@@ -6,4 +6,5 @@ import type * as AgentMail from "../../../../index.mjs";
6
6
  export interface ListWebhooksRequest {
7
7
  limit?: AgentMail.Limit;
8
8
  pageToken?: AgentMail.PageToken;
9
+ ascending?: AgentMail.Ascending;
9
10
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.3.9";
1
+ export declare const SDK_VERSION = "0.4.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.3.9";
1
+ export const SDK_VERSION = "0.4.0";
@@ -2641,6 +2641,10 @@ Configure IMAP and SMTP to access your AgentMail inboxes using email clients
2641
2641
  or programmatic access.
2642
2642
  -----------------------
2643
2643
 
2644
+ <Callout intent="warn" title="IMAP is Under Development">
2645
+ IMAP support is currently under development and will be available in the coming weeks. The documentation below describes the planned functionality. SMTP is fully available today.
2646
+ </Callout>
2647
+
2644
2648
  AgentMail supports standard IMAP and SMTP protocols, allowing you to connect using traditional email clients or integrate with existing systems that rely on these protocols.
2645
2649
 
2646
2650
  ## What are IMAP and SMTP?
@@ -10305,6 +10309,11 @@ paths:
10305
10309
  required: false
10306
10310
  schema:
10307
10311
  $ref: '#/components/schemas/type_:IncludeBlocked'
10312
+ - name: include_trash
10313
+ in: query
10314
+ required: false
10315
+ schema:
10316
+ $ref: '#/components/schemas/type_:IncludeTrash'
10308
10317
  - name: Authorization
10309
10318
  in: header
10310
10319
  description: Bearer authentication
@@ -10371,6 +10380,10 @@ components:
10371
10380
  type: boolean
10372
10381
  description: Include blocked in results.
10373
10382
  title: IncludeBlocked
10383
+ type_:IncludeTrash:
10384
+ type: boolean
10385
+ description: Include trash in results.
10386
+ title: IncludeTrash
10374
10387
  type_:Count:
10375
10388
  type: integer
10376
10389
  description: Number of items returned.
@@ -11843,6 +11856,11 @@ paths:
11843
11856
  required: false
11844
11857
  schema:
11845
11858
  $ref: '#/components/schemas/type_:IncludeBlocked'
11859
+ - name: include_trash
11860
+ in: query
11861
+ required: false
11862
+ schema:
11863
+ $ref: '#/components/schemas/type_:IncludeTrash'
11846
11864
  - name: Authorization
11847
11865
  in: header
11848
11866
  description: Bearer authentication
@@ -11909,6 +11927,10 @@ components:
11909
11927
  type: boolean
11910
11928
  description: Include blocked in results.
11911
11929
  title: IncludeBlocked
11930
+ type_:IncludeTrash:
11931
+ type: boolean
11932
+ description: Include trash in results.
11933
+ title: IncludeTrash
11912
11934
  type_:Count:
11913
11935
  type: integer
11914
11936
  description: Number of items returned.
@@ -29999,6 +30021,11 @@ paths:
29999
30021
  required: false
30000
30022
  schema:
30001
30023
  $ref: '#/components/schemas/type_:IncludeBlocked'
30024
+ - name: include_trash
30025
+ in: query
30026
+ required: false
30027
+ schema:
30028
+ $ref: '#/components/schemas/type_:IncludeTrash'
30002
30029
  - name: Authorization
30003
30030
  in: header
30004
30031
  description: Bearer authentication
@@ -30065,6 +30092,10 @@ components:
30065
30092
  type: boolean
30066
30093
  description: Include blocked in results.
30067
30094
  title: IncludeBlocked
30095
+ type_:IncludeTrash:
30096
+ type: boolean
30097
+ description: Include trash in results.
30098
+ title: IncludeTrash
30068
30099
  type_:Count:
30069
30100
  type: integer
30070
30101
  description: Number of items returned.
@@ -33049,6 +33080,318 @@ let dataTask = session.dataTask(with: request as URLRequest, completionHandler:
33049
33080
  dataTask.resume()
33050
33081
  ```
33051
33082
 
33083
+ # Get Domain
33084
+
33085
+ GET https://api.agentmail.to/v0/pods/{pod_id}/domains/{domain_id}
33086
+
33087
+ Reference: https://docs.agentmail.to/api-reference/pods/domains/get
33088
+
33089
+ ## OpenAPI Specification
33090
+
33091
+ ```yaml
33092
+ openapi: 3.1.0
33093
+ info:
33094
+ title: api
33095
+ version: 1.0.0
33096
+ paths:
33097
+ /v0/pods/{pod_id}/domains/{domain_id}:
33098
+ get:
33099
+ operationId: get
33100
+ summary: Get Domain
33101
+ tags:
33102
+ - subpackage_pods.subpackage_pods/domains
33103
+ parameters:
33104
+ - name: pod_id
33105
+ in: path
33106
+ required: true
33107
+ schema:
33108
+ $ref: '#/components/schemas/type_pods:PodId'
33109
+ - name: domain_id
33110
+ in: path
33111
+ required: true
33112
+ schema:
33113
+ $ref: '#/components/schemas/type_domains:DomainId'
33114
+ - name: Authorization
33115
+ in: header
33116
+ description: Bearer authentication
33117
+ required: true
33118
+ schema:
33119
+ type: string
33120
+ responses:
33121
+ '200':
33122
+ description: Response with status 200
33123
+ content:
33124
+ application/json:
33125
+ schema:
33126
+ $ref: '#/components/schemas/type_domains:Domain'
33127
+ '404':
33128
+ description: Error response with status 404
33129
+ content:
33130
+ application/json:
33131
+ schema:
33132
+ $ref: '#/components/schemas/type_:ErrorResponse'
33133
+ servers:
33134
+ - url: https://api.agentmail.to
33135
+ - url: https://x402.api.agentmail.to
33136
+ - url: https://mpp.api.agentmail.to
33137
+ - url: https://api.agentmail.eu
33138
+ components:
33139
+ schemas:
33140
+ type_pods:PodId:
33141
+ type: string
33142
+ description: ID of pod.
33143
+ title: PodId
33144
+ type_domains:DomainId:
33145
+ type: string
33146
+ description: The name of the domain. (e.g., " your-domain.com")
33147
+ title: DomainId
33148
+ type_domains:VerificationStatus:
33149
+ type: string
33150
+ enum:
33151
+ - NOT_STARTED
33152
+ - PENDING
33153
+ - INVALID
33154
+ - FAILED
33155
+ - VERIFYING
33156
+ - VERIFIED
33157
+ title: VerificationStatus
33158
+ type_domains:FeedbackEnabled:
33159
+ type: boolean
33160
+ description: Bounce and complaint notifications are sent to your inboxes.
33161
+ title: FeedbackEnabled
33162
+ type_domains:RecordType:
33163
+ type: string
33164
+ enum:
33165
+ - TXT
33166
+ - CNAME
33167
+ - MX
33168
+ title: RecordType
33169
+ type_domains:RecordStatus:
33170
+ type: string
33171
+ enum:
33172
+ - MISSING
33173
+ - INVALID
33174
+ - VALID
33175
+ title: RecordStatus
33176
+ type_domains:VerificationRecord:
33177
+ type: object
33178
+ properties:
33179
+ type:
33180
+ $ref: '#/components/schemas/type_domains:RecordType'
33181
+ description: The type of the DNS record.
33182
+ name:
33183
+ type: string
33184
+ description: The name or host of the record.
33185
+ value:
33186
+ type: string
33187
+ description: The value of the record.
33188
+ status:
33189
+ $ref: '#/components/schemas/type_domains:RecordStatus'
33190
+ description: The verification status of this specific record.
33191
+ priority:
33192
+ type: integer
33193
+ description: The priority of the MX record.
33194
+ required:
33195
+ - type
33196
+ - name
33197
+ - value
33198
+ - status
33199
+ title: VerificationRecord
33200
+ type_domains:ClientId:
33201
+ type: string
33202
+ description: Client ID of domain.
33203
+ title: ClientId
33204
+ type_domains:Domain:
33205
+ type: object
33206
+ properties:
33207
+ pod_id:
33208
+ $ref: '#/components/schemas/type_pods:PodId'
33209
+ domain_id:
33210
+ $ref: '#/components/schemas/type_domains:DomainId'
33211
+ status:
33212
+ $ref: '#/components/schemas/type_domains:VerificationStatus'
33213
+ description: The verification status of the domain.
33214
+ feedback_enabled:
33215
+ $ref: '#/components/schemas/type_domains:FeedbackEnabled'
33216
+ records:
33217
+ type: array
33218
+ items:
33219
+ $ref: '#/components/schemas/type_domains:VerificationRecord'
33220
+ description: A list of DNS records required to verify the domain.
33221
+ client_id:
33222
+ $ref: '#/components/schemas/type_domains:ClientId'
33223
+ updated_at:
33224
+ type: string
33225
+ format: date-time
33226
+ description: Time at which the domain was last updated.
33227
+ created_at:
33228
+ type: string
33229
+ format: date-time
33230
+ description: Time at which the domain was created.
33231
+ required:
33232
+ - domain_id
33233
+ - status
33234
+ - feedback_enabled
33235
+ - records
33236
+ - updated_at
33237
+ - created_at
33238
+ title: Domain
33239
+ type_:ErrorName:
33240
+ type: string
33241
+ description: Name of error.
33242
+ title: ErrorName
33243
+ type_:ErrorMessage:
33244
+ type: string
33245
+ description: Error message.
33246
+ title: ErrorMessage
33247
+ type_:ErrorResponse:
33248
+ type: object
33249
+ properties:
33250
+ name:
33251
+ $ref: '#/components/schemas/type_:ErrorName'
33252
+ message:
33253
+ $ref: '#/components/schemas/type_:ErrorMessage'
33254
+ required:
33255
+ - name
33256
+ - message
33257
+ title: ErrorResponse
33258
+ securitySchemes:
33259
+ Bearer:
33260
+ type: http
33261
+ scheme: bearer
33262
+
33263
+ ```
33264
+
33265
+ ## SDK Code Examples
33266
+
33267
+ ```typescript
33268
+ import { AgentMailClient } from "agentmail";
33269
+
33270
+ async function main() {
33271
+ const client = new AgentMailClient({
33272
+ apiKey: "YOUR_TOKEN_HERE",
33273
+ });
33274
+ await client.pods.domains.get("pod_id", "domain_id");
33275
+ }
33276
+ main();
33277
+
33278
+ ```
33279
+
33280
+ ```python
33281
+ from agentmail import AgentMail
33282
+
33283
+ client = AgentMail(
33284
+ api_key="YOUR_TOKEN_HERE"
33285
+ )
33286
+
33287
+ client.pods.domains.get(
33288
+ pod_id="pod_id",
33289
+ domain_id="domain_id"
33290
+ )
33291
+
33292
+ ```
33293
+
33294
+ ```go
33295
+ package main
33296
+
33297
+ import (
33298
+ "fmt"
33299
+ "net/http"
33300
+ "io"
33301
+ )
33302
+
33303
+ func main() {
33304
+
33305
+ url := "https://api.agentmail.to/v0/pods/pod_id/domains/domain_id"
33306
+
33307
+ req, _ := http.NewRequest("GET", url, nil)
33308
+
33309
+ req.Header.Add("Authorization", "Bearer <api_key>")
33310
+
33311
+ res, _ := http.DefaultClient.Do(req)
33312
+
33313
+ defer res.Body.Close()
33314
+ body, _ := io.ReadAll(res.Body)
33315
+
33316
+ fmt.Println(res)
33317
+ fmt.Println(string(body))
33318
+
33319
+ }
33320
+ ```
33321
+
33322
+ ```ruby
33323
+ require 'uri'
33324
+ require 'net/http'
33325
+
33326
+ url = URI("https://api.agentmail.to/v0/pods/pod_id/domains/domain_id")
33327
+
33328
+ http = Net::HTTP.new(url.host, url.port)
33329
+ http.use_ssl = true
33330
+
33331
+ request = Net::HTTP::Get.new(url)
33332
+ request["Authorization"] = 'Bearer <api_key>'
33333
+
33334
+ response = http.request(request)
33335
+ puts response.read_body
33336
+ ```
33337
+
33338
+ ```java
33339
+ import com.mashape.unirest.http.HttpResponse;
33340
+ import com.mashape.unirest.http.Unirest;
33341
+
33342
+ HttpResponse<String> response = Unirest.get("https://api.agentmail.to/v0/pods/pod_id/domains/domain_id")
33343
+ .header("Authorization", "Bearer <api_key>")
33344
+ .asString();
33345
+ ```
33346
+
33347
+ ```php
33348
+ <?php
33349
+ require_once('vendor/autoload.php');
33350
+
33351
+ $client = new \GuzzleHttp\Client();
33352
+
33353
+ $response = $client->request('GET', 'https://api.agentmail.to/v0/pods/pod_id/domains/domain_id', [
33354
+ 'headers' => [
33355
+ 'Authorization' => 'Bearer <api_key>',
33356
+ ],
33357
+ ]);
33358
+
33359
+ echo $response->getBody();
33360
+ ```
33361
+
33362
+ ```csharp
33363
+ using RestSharp;
33364
+
33365
+ var client = new RestClient("https://api.agentmail.to/v0/pods/pod_id/domains/domain_id");
33366
+ var request = new RestRequest(Method.GET);
33367
+ request.AddHeader("Authorization", "Bearer <api_key>");
33368
+ IRestResponse response = client.Execute(request);
33369
+ ```
33370
+
33371
+ ```swift
33372
+ import Foundation
33373
+
33374
+ let headers = ["Authorization": "Bearer <api_key>"]
33375
+
33376
+ let request = NSMutableURLRequest(url: NSURL(string: "https://api.agentmail.to/v0/pods/pod_id/domains/domain_id")! as URL,
33377
+ cachePolicy: .useProtocolCachePolicy,
33378
+ timeoutInterval: 10.0)
33379
+ request.httpMethod = "GET"
33380
+ request.allHTTPHeaderFields = headers
33381
+
33382
+ let session = URLSession.shared
33383
+ let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
33384
+ if (error != nil) {
33385
+ print(error as Any)
33386
+ } else {
33387
+ let httpResponse = response as? HTTPURLResponse
33388
+ print(httpResponse)
33389
+ }
33390
+ })
33391
+
33392
+ dataTask.resume()
33393
+ ```
33394
+
33052
33395
  # Delete Domain
33053
33396
 
33054
33397
  DELETE https://api.agentmail.to/v0/pods/{pod_id}/domains/{domain_id}
package/dist/llms.txt CHANGED
@@ -122,6 +122,7 @@
122
122
  - API Reference > Pods > Drafts [Get Attachment](https://docs.agentmail.to/api-reference/pods/drafts/get-attachment.mdx)
123
123
  - API Reference > Pods > Domains [List Domains](https://docs.agentmail.to/api-reference/pods/domains/list.mdx)
124
124
  - API Reference > Pods > Domains [Create Domain](https://docs.agentmail.to/api-reference/pods/domains/create.mdx)
125
+ - API Reference > Pods > Domains [Get Domain](https://docs.agentmail.to/api-reference/pods/domains/get.mdx)
125
126
  - API Reference > Pods > Domains [Delete Domain](https://docs.agentmail.to/api-reference/pods/domains/delete.mdx)
126
127
  - API Reference > Pods > Lists [Create List Entry](https://docs.agentmail.to/api-reference/pods/lists/create.mdx)
127
128
  - API Reference > Pods > Lists [List Entries](https://docs.agentmail.to/api-reference/pods/lists/list.mdx)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.3.9",
3
+ "version": "0.4.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",