agentmail 0.0.51 → 0.0.52

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 (31) hide show
  1. package/dist/cjs/Client.js +2 -2
  2. package/dist/cjs/api/resources/webhooks/resources/events/types/Bounce.d.ts +15 -0
  3. package/dist/cjs/api/resources/webhooks/resources/events/types/Bounce.js +5 -0
  4. package/dist/cjs/api/resources/webhooks/resources/events/types/MessageBouncedPayload.d.ts +9 -0
  5. package/dist/cjs/api/resources/webhooks/resources/events/types/MessageBouncedPayload.js +5 -0
  6. package/dist/cjs/api/resources/webhooks/resources/events/types/Recipient.d.ts +9 -0
  7. package/dist/cjs/api/resources/webhooks/resources/events/types/Recipient.js +5 -0
  8. package/dist/cjs/api/resources/webhooks/resources/events/types/Timestamp.d.ts +7 -0
  9. package/dist/cjs/api/resources/webhooks/resources/events/types/Timestamp.js +5 -0
  10. package/dist/cjs/api/resources/webhooks/resources/events/types/index.d.ts +4 -0
  11. package/dist/cjs/api/resources/webhooks/resources/events/types/index.js +4 -0
  12. package/dist/cjs/api/resources/webhooks/types/EventType.d.ts +2 -1
  13. package/dist/cjs/api/resources/webhooks/types/EventType.js +1 -0
  14. package/dist/cjs/version.d.ts +1 -1
  15. package/dist/cjs/version.js +1 -1
  16. package/dist/esm/Client.mjs +2 -2
  17. package/dist/esm/api/resources/webhooks/resources/events/types/Bounce.d.mts +15 -0
  18. package/dist/esm/api/resources/webhooks/resources/events/types/Bounce.mjs +4 -0
  19. package/dist/esm/api/resources/webhooks/resources/events/types/MessageBouncedPayload.d.mts +9 -0
  20. package/dist/esm/api/resources/webhooks/resources/events/types/MessageBouncedPayload.mjs +4 -0
  21. package/dist/esm/api/resources/webhooks/resources/events/types/Recipient.d.mts +9 -0
  22. package/dist/esm/api/resources/webhooks/resources/events/types/Recipient.mjs +4 -0
  23. package/dist/esm/api/resources/webhooks/resources/events/types/Timestamp.d.mts +7 -0
  24. package/dist/esm/api/resources/webhooks/resources/events/types/Timestamp.mjs +4 -0
  25. package/dist/esm/api/resources/webhooks/resources/events/types/index.d.mts +4 -0
  26. package/dist/esm/api/resources/webhooks/resources/events/types/index.mjs +4 -0
  27. package/dist/esm/api/resources/webhooks/types/EventType.d.mts +2 -1
  28. package/dist/esm/api/resources/webhooks/types/EventType.mjs +1 -0
  29. package/dist/esm/version.d.mts +1 -1
  30. package/dist/esm/version.mjs +1 -1
  31. package/package.json +1 -1
@@ -51,8 +51,8 @@ class AgentMailClient {
51
51
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "agentmail",
54
- "X-Fern-SDK-Version": "0.0.51",
55
- "User-Agent": "agentmail/0.0.51",
54
+ "X-Fern-SDK-Version": "0.0.52",
55
+ "User-Agent": "agentmail/0.0.52",
56
56
  "X-Fern-Runtime": core.RUNTIME.type,
57
57
  "X-Fern-Runtime-Version": core.RUNTIME.version,
58
58
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AgentMail from "../../../../../index.js";
5
+ export interface Bounce {
6
+ inbox_id: AgentMail.inboxes.InboxId;
7
+ message_id: AgentMail.MessageId;
8
+ timestamp: AgentMail.webhooks.Timestamp;
9
+ /** Bounce type. */
10
+ type: string;
11
+ /** Bounce sub-type. */
12
+ sub_type: string;
13
+ /** Bounced recipients. */
14
+ recipients: AgentMail.webhooks.Recipient[];
15
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AgentMail from "../../../../../index.js";
5
+ export interface MessageBouncedPayload {
6
+ event_type: AgentMail.webhooks.EventType;
7
+ event_id: AgentMail.webhooks.EventId;
8
+ bounce: AgentMail.webhooks.Bounce;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Recipient {
5
+ /** Recipient address. */
6
+ address: string;
7
+ /** Recipient status. */
8
+ status: string;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Timestamp of event.
6
+ */
7
+ export type Timestamp = string;
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,8 @@
1
1
  export * from "./EventId.js";
2
+ export * from "./Timestamp.js";
3
+ export * from "./Recipient.js";
4
+ export * from "./Bounce.js";
5
+ export * from "./MessageBouncedPayload.js";
2
6
  export * from "./MessageReceivedPayload.js";
3
7
  export * from "./SvixId.js";
4
8
  export * from "./SvixTimestamp.js";
@@ -15,6 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./EventId.js"), exports);
18
+ __exportStar(require("./Timestamp.js"), exports);
19
+ __exportStar(require("./Recipient.js"), exports);
20
+ __exportStar(require("./Bounce.js"), exports);
21
+ __exportStar(require("./MessageBouncedPayload.js"), exports);
18
22
  __exportStar(require("./MessageReceivedPayload.js"), exports);
19
23
  __exportStar(require("./SvixId.js"), exports);
20
24
  __exportStar(require("./SvixTimestamp.js"), exports);
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type EventType = "message.received";
4
+ export type EventType = "message.received" | "message.bounced";
5
5
  export declare const EventType: {
6
6
  readonly MessageReceived: "message.received";
7
+ readonly MessageBounced: "message.bounced";
7
8
  };
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.EventType = void 0;
7
7
  exports.EventType = {
8
8
  MessageReceived: "message.received",
9
+ MessageBounced: "message.bounced",
9
10
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.51";
1
+ export declare const SDK_VERSION = "0.0.52";
@@ -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.0.51";
4
+ exports.SDK_VERSION = "0.0.52";
@@ -15,8 +15,8 @@ export class AgentMailClient {
15
15
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
16
16
  "X-Fern-Language": "JavaScript",
17
17
  "X-Fern-SDK-Name": "agentmail",
18
- "X-Fern-SDK-Version": "0.0.51",
19
- "User-Agent": "agentmail/0.0.51",
18
+ "X-Fern-SDK-Version": "0.0.52",
19
+ "User-Agent": "agentmail/0.0.52",
20
20
  "X-Fern-Runtime": core.RUNTIME.type,
21
21
  "X-Fern-Runtime-Version": core.RUNTIME.version,
22
22
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AgentMail from "../../../../../index.mjs";
5
+ export interface Bounce {
6
+ inbox_id: AgentMail.inboxes.InboxId;
7
+ message_id: AgentMail.MessageId;
8
+ timestamp: AgentMail.webhooks.Timestamp;
9
+ /** Bounce type. */
10
+ type: string;
11
+ /** Bounce sub-type. */
12
+ sub_type: string;
13
+ /** Bounced recipients. */
14
+ recipients: AgentMail.webhooks.Recipient[];
15
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as AgentMail from "../../../../../index.mjs";
5
+ export interface MessageBouncedPayload {
6
+ event_type: AgentMail.webhooks.EventType;
7
+ event_id: AgentMail.webhooks.EventId;
8
+ bounce: AgentMail.webhooks.Bounce;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Recipient {
5
+ /** Recipient address. */
6
+ address: string;
7
+ /** Recipient status. */
8
+ status: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Timestamp of event.
6
+ */
7
+ export type Timestamp = string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export {};
@@ -1,4 +1,8 @@
1
1
  export * from "./EventId.mjs";
2
+ export * from "./Timestamp.mjs";
3
+ export * from "./Recipient.mjs";
4
+ export * from "./Bounce.mjs";
5
+ export * from "./MessageBouncedPayload.mjs";
2
6
  export * from "./MessageReceivedPayload.mjs";
3
7
  export * from "./SvixId.mjs";
4
8
  export * from "./SvixTimestamp.mjs";
@@ -1,4 +1,8 @@
1
1
  export * from "./EventId.mjs";
2
+ export * from "./Timestamp.mjs";
3
+ export * from "./Recipient.mjs";
4
+ export * from "./Bounce.mjs";
5
+ export * from "./MessageBouncedPayload.mjs";
2
6
  export * from "./MessageReceivedPayload.mjs";
3
7
  export * from "./SvixId.mjs";
4
8
  export * from "./SvixTimestamp.mjs";
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type EventType = "message.received";
4
+ export type EventType = "message.received" | "message.bounced";
5
5
  export declare const EventType: {
6
6
  readonly MessageReceived: "message.received";
7
+ readonly MessageBounced: "message.bounced";
7
8
  };
@@ -3,4 +3,5 @@
3
3
  */
4
4
  export const EventType = {
5
5
  MessageReceived: "message.received",
6
+ MessageBounced: "message.bounced",
6
7
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.51";
1
+ export declare const SDK_VERSION = "0.0.52";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.0.51";
1
+ export const SDK_VERSION = "0.0.52";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentmail",
3
- "version": "0.0.51",
3
+ "version": "0.0.52",
4
4
  "private": false,
5
5
  "repository": "github:agentmail-to/agentmail-node",
6
6
  "type": "commonjs",