agentmail 0.2.9 → 0.2.10
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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/drafts/types/CreateDraftRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/drafts/types/CreateDraftRequest.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/drafts/types/CreateDraftRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/drafts/types/CreateDraftRequest.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -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.2.
|
|
47
|
-
"User-Agent": "agentmail/0.2.
|
|
46
|
+
"X-Fern-SDK-Version": "0.2.10",
|
|
47
|
+
"User-Agent": "agentmail/0.2.10",
|
|
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);
|
|
@@ -8,6 +8,8 @@ export interface CreateDraftRequest {
|
|
|
8
8
|
subject?: AgentMail.DraftSubject;
|
|
9
9
|
text?: AgentMail.DraftText;
|
|
10
10
|
html?: AgentMail.DraftHtml;
|
|
11
|
+
/** Attachments to include in draft. */
|
|
12
|
+
attachments?: AgentMail.SendAttachment[];
|
|
11
13
|
inReplyTo?: AgentMail.DraftInReplyTo;
|
|
12
14
|
sendAt?: AgentMail.DraftSendAt;
|
|
13
15
|
clientId?: AgentMail.DraftClientId;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.js";
|
|
2
2
|
import * as core from "../../../../core/index.js";
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
|
+
import { SendAttachment } from "../../attachments/types/SendAttachment.js";
|
|
4
5
|
import { DraftBcc } from "./DraftBcc.js";
|
|
5
6
|
import { DraftCc } from "./DraftCc.js";
|
|
6
7
|
import { DraftClientId } from "./DraftClientId.js";
|
|
@@ -23,6 +24,7 @@ export declare namespace CreateDraftRequest {
|
|
|
23
24
|
subject?: DraftSubject.Raw | null;
|
|
24
25
|
text?: DraftText.Raw | null;
|
|
25
26
|
html?: DraftHtml.Raw | null;
|
|
27
|
+
attachments?: SendAttachment.Raw[] | null;
|
|
26
28
|
in_reply_to?: DraftInReplyTo.Raw | null;
|
|
27
29
|
send_at?: DraftSendAt.Raw | null;
|
|
28
30
|
client_id?: DraftClientId.Raw | null;
|
|
@@ -36,6 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.CreateDraftRequest = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
const SendAttachment_js_1 = require("../../attachments/types/SendAttachment.js");
|
|
39
40
|
const DraftBcc_js_1 = require("./DraftBcc.js");
|
|
40
41
|
const DraftCc_js_1 = require("./DraftCc.js");
|
|
41
42
|
const DraftClientId_js_1 = require("./DraftClientId.js");
|
|
@@ -56,6 +57,7 @@ exports.CreateDraftRequest = core.serialization.object({
|
|
|
56
57
|
subject: DraftSubject_js_1.DraftSubject.optional(),
|
|
57
58
|
text: DraftText_js_1.DraftText.optional(),
|
|
58
59
|
html: DraftHtml_js_1.DraftHtml.optional(),
|
|
60
|
+
attachments: core.serialization.list(SendAttachment_js_1.SendAttachment).optional(),
|
|
59
61
|
inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo_js_1.DraftInReplyTo.optional()),
|
|
60
62
|
sendAt: core.serialization.property("send_at", DraftSendAt_js_1.DraftSendAt.optional()),
|
|
61
63
|
clientId: core.serialization.property("client_id", DraftClientId_js_1.DraftClientId.optional()),
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.10";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -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.2.
|
|
10
|
-
"User-Agent": "agentmail/0.2.
|
|
9
|
+
"X-Fern-SDK-Version": "0.2.10",
|
|
10
|
+
"User-Agent": "agentmail/0.2.10",
|
|
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);
|
|
@@ -8,6 +8,8 @@ export interface CreateDraftRequest {
|
|
|
8
8
|
subject?: AgentMail.DraftSubject;
|
|
9
9
|
text?: AgentMail.DraftText;
|
|
10
10
|
html?: AgentMail.DraftHtml;
|
|
11
|
+
/** Attachments to include in draft. */
|
|
12
|
+
attachments?: AgentMail.SendAttachment[];
|
|
11
13
|
inReplyTo?: AgentMail.DraftInReplyTo;
|
|
12
14
|
sendAt?: AgentMail.DraftSendAt;
|
|
13
15
|
clientId?: AgentMail.DraftClientId;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as AgentMail from "../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
|
+
import { SendAttachment } from "../../attachments/types/SendAttachment.mjs";
|
|
4
5
|
import { DraftBcc } from "./DraftBcc.mjs";
|
|
5
6
|
import { DraftCc } from "./DraftCc.mjs";
|
|
6
7
|
import { DraftClientId } from "./DraftClientId.mjs";
|
|
@@ -23,6 +24,7 @@ export declare namespace CreateDraftRequest {
|
|
|
23
24
|
subject?: DraftSubject.Raw | null;
|
|
24
25
|
text?: DraftText.Raw | null;
|
|
25
26
|
html?: DraftHtml.Raw | null;
|
|
27
|
+
attachments?: SendAttachment.Raw[] | null;
|
|
26
28
|
in_reply_to?: DraftInReplyTo.Raw | null;
|
|
27
29
|
send_at?: DraftSendAt.Raw | null;
|
|
28
30
|
client_id?: DraftClientId.Raw | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
+
import { SendAttachment } from "../../attachments/types/SendAttachment.mjs";
|
|
3
4
|
import { DraftBcc } from "./DraftBcc.mjs";
|
|
4
5
|
import { DraftCc } from "./DraftCc.mjs";
|
|
5
6
|
import { DraftClientId } from "./DraftClientId.mjs";
|
|
@@ -20,6 +21,7 @@ export const CreateDraftRequest = core.serialization.object({
|
|
|
20
21
|
subject: DraftSubject.optional(),
|
|
21
22
|
text: DraftText.optional(),
|
|
22
23
|
html: DraftHtml.optional(),
|
|
24
|
+
attachments: core.serialization.list(SendAttachment).optional(),
|
|
23
25
|
inReplyTo: core.serialization.property("in_reply_to", DraftInReplyTo.optional()),
|
|
24
26
|
sendAt: core.serialization.property("send_at", DraftSendAt.optional()),
|
|
25
27
|
clientId: core.serialization.property("client_id", DraftClientId.optional()),
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.10";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.2.
|
|
1
|
+
export const SDK_VERSION = "0.2.10";
|