agentmail 0.5.28 → 0.5.29

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.
@@ -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.5.28",
47
- "User-Agent": "agentmail/0.5.28",
46
+ "X-Fern-SDK-Version": "0.5.29",
47
+ "User-Agent": "agentmail/0.5.29",
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);
@@ -6,8 +6,10 @@ export interface AttachmentResponse {
6
6
  contentType?: AgentMail.AttachmentContentType;
7
7
  contentDisposition?: AgentMail.AttachmentContentDisposition;
8
8
  contentId?: AgentMail.AttachmentContentId;
9
- /** URL to download the attachment. */
9
+ /** Signed HTTPS CDN URL to download the attachment bytes. Retrieve a fresh URL when needed rather than storing it permanently. */
10
10
  downloadUrl: string;
11
- /** Time at which the download URL expires. */
11
+ /** Signed HTTPS CDN URL to download extracted plain text, when available. Omitted when no extracted text is available. Expires at the same time as download_url. */
12
+ textUrl?: string;
13
+ /** Time at which download_url and text_url (when present) expire. Retrieve the attachment again to obtain fresh URLs. */
12
14
  expiresAt: Date;
13
15
  }
@@ -1,13 +1,13 @@
1
1
  import type * as AgentMail from "../../../index.js";
2
2
  /**
3
- * S3 presigned URL to download the raw .eml file.
3
+ * CloudFront signed URL to download the raw .eml file.
4
4
  */
5
5
  export interface RawMessageResponse {
6
6
  /** ID of the message. */
7
7
  messageId: AgentMail.MessageId;
8
8
  /** Size of the raw message in bytes. */
9
9
  size: AgentMail.MessageSize;
10
- /** S3 presigned URL to download the raw message. Expires at expires_at. */
10
+ /** CloudFront signed URL to download the raw message. Expires at expires_at. */
11
11
  downloadUrl: string;
12
12
  /** Time at which the download URL expires. */
13
13
  expiresAt: Date;
@@ -5,6 +5,17 @@ export interface Webhook {
5
5
  eventTypes?: AgentMail.EventTypes;
6
6
  podIds?: AgentMail.PodIds;
7
7
  inboxIds?: AgentMail.InboxIds;
8
+ /**
9
+ * ID of the pod the webhook belongs to: the pod it was created in, or the pod of the inbox it
10
+ * belongs to. Absent for an organization webhook and on some inbox webhooks. This is not the
11
+ * list of pods it receives events for; see `pod_ids`.
12
+ */
13
+ podId?: string;
14
+ /**
15
+ * ID of the inbox the webhook belongs to, if it was created for an inbox. This is not the list
16
+ * of inboxes it receives events for; see `inbox_ids`.
17
+ */
18
+ inboxId?: string;
8
19
  /** Secret for webhook signature verification. */
9
20
  secret: string;
10
21
  /** Webhook is enabled. */
@@ -17,6 +17,7 @@ export declare namespace AttachmentResponse {
17
17
  content_disposition?: AttachmentContentDisposition.Raw | null;
18
18
  content_id?: AttachmentContentId.Raw | null;
19
19
  download_url: string;
20
+ text_url?: string | null;
20
21
  expires_at: string;
21
22
  }
22
23
  }
@@ -50,5 +50,6 @@ exports.AttachmentResponse = core.serialization.object({
50
50
  contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition_js_1.AttachmentContentDisposition.optional()),
51
51
  contentId: core.serialization.property("content_id", AttachmentContentId_js_1.AttachmentContentId.optional()),
52
52
  downloadUrl: core.serialization.property("download_url", core.serialization.string()),
53
+ textUrl: core.serialization.property("text_url", core.serialization.string().optional()),
53
54
  expiresAt: core.serialization.property("expires_at", core.serialization.date()),
54
55
  });
@@ -15,6 +15,8 @@ export declare namespace Webhook {
15
15
  event_types?: EventTypes.Raw | null;
16
16
  pod_ids?: PodIds.Raw | null;
17
17
  inbox_ids?: InboxIds.Raw | null;
18
+ pod_id?: string | null;
19
+ inbox_id?: string | null;
18
20
  secret: string;
19
21
  enabled: boolean;
20
22
  updated_at: string;
@@ -48,6 +48,8 @@ exports.Webhook = core.serialization.object({
48
48
  eventTypes: core.serialization.property("event_types", EventTypes_js_1.EventTypes.optional()),
49
49
  podIds: core.serialization.property("pod_ids", PodIds_js_1.PodIds.optional()),
50
50
  inboxIds: core.serialization.property("inbox_ids", InboxIds_js_1.InboxIds.optional()),
51
+ podId: core.serialization.property("pod_id", core.serialization.string().optional()),
52
+ inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
51
53
  secret: core.serialization.string(),
52
54
  enabled: core.serialization.boolean(),
53
55
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.28";
1
+ export declare const SDK_VERSION = "0.5.29";
@@ -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.5.28";
4
+ exports.SDK_VERSION = "0.5.29";
@@ -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.5.28",
10
- "User-Agent": "agentmail/0.5.28",
9
+ "X-Fern-SDK-Version": "0.5.29",
10
+ "User-Agent": "agentmail/0.5.29",
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);
@@ -6,8 +6,10 @@ export interface AttachmentResponse {
6
6
  contentType?: AgentMail.AttachmentContentType;
7
7
  contentDisposition?: AgentMail.AttachmentContentDisposition;
8
8
  contentId?: AgentMail.AttachmentContentId;
9
- /** URL to download the attachment. */
9
+ /** Signed HTTPS CDN URL to download the attachment bytes. Retrieve a fresh URL when needed rather than storing it permanently. */
10
10
  downloadUrl: string;
11
- /** Time at which the download URL expires. */
11
+ /** Signed HTTPS CDN URL to download extracted plain text, when available. Omitted when no extracted text is available. Expires at the same time as download_url. */
12
+ textUrl?: string;
13
+ /** Time at which download_url and text_url (when present) expire. Retrieve the attachment again to obtain fresh URLs. */
12
14
  expiresAt: Date;
13
15
  }
@@ -1,13 +1,13 @@
1
1
  import type * as AgentMail from "../../../index.mjs";
2
2
  /**
3
- * S3 presigned URL to download the raw .eml file.
3
+ * CloudFront signed URL to download the raw .eml file.
4
4
  */
5
5
  export interface RawMessageResponse {
6
6
  /** ID of the message. */
7
7
  messageId: AgentMail.MessageId;
8
8
  /** Size of the raw message in bytes. */
9
9
  size: AgentMail.MessageSize;
10
- /** S3 presigned URL to download the raw message. Expires at expires_at. */
10
+ /** CloudFront signed URL to download the raw message. Expires at expires_at. */
11
11
  downloadUrl: string;
12
12
  /** Time at which the download URL expires. */
13
13
  expiresAt: Date;
@@ -5,6 +5,17 @@ export interface Webhook {
5
5
  eventTypes?: AgentMail.EventTypes;
6
6
  podIds?: AgentMail.PodIds;
7
7
  inboxIds?: AgentMail.InboxIds;
8
+ /**
9
+ * ID of the pod the webhook belongs to: the pod it was created in, or the pod of the inbox it
10
+ * belongs to. Absent for an organization webhook and on some inbox webhooks. This is not the
11
+ * list of pods it receives events for; see `pod_ids`.
12
+ */
13
+ podId?: string;
14
+ /**
15
+ * ID of the inbox the webhook belongs to, if it was created for an inbox. This is not the list
16
+ * of inboxes it receives events for; see `inbox_ids`.
17
+ */
18
+ inboxId?: string;
8
19
  /** Secret for webhook signature verification. */
9
20
  secret: string;
10
21
  /** Webhook is enabled. */
@@ -17,6 +17,7 @@ export declare namespace AttachmentResponse {
17
17
  content_disposition?: AttachmentContentDisposition.Raw | null;
18
18
  content_id?: AttachmentContentId.Raw | null;
19
19
  download_url: string;
20
+ text_url?: string | null;
20
21
  expires_at: string;
21
22
  }
22
23
  }
@@ -14,5 +14,6 @@ export const AttachmentResponse = core.serialization.object({
14
14
  contentDisposition: core.serialization.property("content_disposition", AttachmentContentDisposition.optional()),
15
15
  contentId: core.serialization.property("content_id", AttachmentContentId.optional()),
16
16
  downloadUrl: core.serialization.property("download_url", core.serialization.string()),
17
+ textUrl: core.serialization.property("text_url", core.serialization.string().optional()),
17
18
  expiresAt: core.serialization.property("expires_at", core.serialization.date()),
18
19
  });
@@ -15,6 +15,8 @@ export declare namespace Webhook {
15
15
  event_types?: EventTypes.Raw | null;
16
16
  pod_ids?: PodIds.Raw | null;
17
17
  inbox_ids?: InboxIds.Raw | null;
18
+ pod_id?: string | null;
19
+ inbox_id?: string | null;
18
20
  secret: string;
19
21
  enabled: boolean;
20
22
  updated_at: string;
@@ -12,6 +12,8 @@ export const Webhook = core.serialization.object({
12
12
  eventTypes: core.serialization.property("event_types", EventTypes.optional()),
13
13
  podIds: core.serialization.property("pod_ids", PodIds.optional()),
14
14
  inboxIds: core.serialization.property("inbox_ids", InboxIds.optional()),
15
+ podId: core.serialization.property("pod_id", core.serialization.string().optional()),
16
+ inboxId: core.serialization.property("inbox_id", core.serialization.string().optional()),
15
17
  secret: core.serialization.string(),
16
18
  enabled: core.serialization.boolean(),
17
19
  updatedAt: core.serialization.property("updated_at", core.serialization.date()),
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.5.28";
1
+ export declare const SDK_VERSION = "0.5.29";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.5.28";
1
+ export const SDK_VERSION = "0.5.29";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.5.28",
3
+ "version": "0.5.29",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",