Skip to content

Commit 1d16faa

Browse files
Release 0.4.5
1 parent ad993e9 commit 1d16faa

File tree

13 files changed

+17
-47
lines changed

13 files changed

+17
-47
lines changed

.fern/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
}
1414
}
1515
},
16-
"sdkVersion": "0.4.4"
16+
"sdkVersion": "0.4.5"
1717
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "agentmail",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"private": false,
55
"repository": {
66
"type": "git",

src/BaseClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
5151
{
5252
"X-Fern-Language": "JavaScript",
5353
"X-Fern-SDK-Name": "agentmail",
54-
"X-Fern-SDK-Version": "0.4.4",
55-
"User-Agent": "agentmail/0.4.4",
54+
"X-Fern-SDK-Version": "0.4.5",
55+
"User-Agent": "agentmail/0.4.5",
5656
"X-Fern-Runtime": core.RUNTIME.type,
5757
"X-Fern-Runtime-Version": core.RUNTIME.version,
5858
},

src/api/resources/drafts/types/Draft.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type * as AgentMail from "../../../index.js";
44

55
export interface Draft {
66
inboxId: AgentMail.inboxes.InboxId;
7-
threadId: AgentMail.ThreadId;
87
draftId: AgentMail.DraftId;
98
clientId?: AgentMail.DraftClientId;
109
labels: AgentMail.DraftLabels;

src/api/resources/drafts/types/DraftItem.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type * as AgentMail from "../../../index.js";
44

55
export interface DraftItem {
66
inboxId: AgentMail.inboxes.InboxId;
7-
threadId: AgentMail.ThreadId;
87
draftId: AgentMail.DraftId;
98
labels: AgentMail.DraftLabels;
109
to?: AgentMail.DraftTo;

src/api/resources/messages/types/RawMessageResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
import type * as AgentMail from "../../../index.js";
44

55
/**
6-
* Signed URL to download the raw .eml file. Uses CloudFront signing, same as attachments.
6+
* S3 presigned URL to download the raw .eml file.
77
*/
88
export interface RawMessageResponse {
99
/** ID of the message. */
1010
messageId: AgentMail.MessageId;
1111
/** Size of the raw message in bytes. */
1212
size: AgentMail.MessageSize;
13-
/** Pre-signed CloudFront URL to download the raw message. Expires at expires_at. */
13+
/** S3 presigned URL to download the raw message. Expires at expires_at. */
1414
downloadUrl: string;
1515
/** Time at which the download URL expires. */
1616
expiresAt: Date;

src/api/resources/pods/client/Client.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,18 @@ export declare namespace PodsClient {
2525

2626
export class PodsClient {
2727
protected readonly _options: NormalizedClientOptionsWithAuth<PodsClient.Options>;
28-
protected _apiKeys: ApiKeysClient | undefined;
29-
protected _domains: DomainsClient | undefined;
3028
protected _inboxes: InboxesClient | undefined;
3129
protected _threads: ThreadsClient | undefined;
3230
protected _drafts: DraftsClient | undefined;
31+
protected _domains: DomainsClient | undefined;
3332
protected _lists: ListsClient | undefined;
3433
protected _metrics: MetricsClient | undefined;
34+
protected _apiKeys: ApiKeysClient | undefined;
3535

3636
constructor(options: PodsClient.Options = {}) {
3737
this._options = normalizeClientOptionsWithAuth(options);
3838
}
3939

40-
public get apiKeys(): ApiKeysClient {
41-
return (this._apiKeys ??= new ApiKeysClient(this._options));
42-
}
43-
44-
public get domains(): DomainsClient {
45-
return (this._domains ??= new DomainsClient(this._options));
46-
}
47-
4840
public get inboxes(): InboxesClient {
4941
return (this._inboxes ??= new InboxesClient(this._options));
5042
}
@@ -57,6 +49,10 @@ export class PodsClient {
5749
return (this._drafts ??= new DraftsClient(this._options));
5850
}
5951

52+
public get domains(): DomainsClient {
53+
return (this._domains ??= new DomainsClient(this._options));
54+
}
55+
6056
public get lists(): ListsClient {
6157
return (this._lists ??= new ListsClient(this._options));
6258
}
@@ -65,6 +61,10 @@ export class PodsClient {
6561
return (this._metrics ??= new MetricsClient(this._options));
6662
}
6763

64+
public get apiKeys(): ApiKeysClient {
65+
return (this._apiKeys ??= new ApiKeysClient(this._options));
66+
}
67+
6868
/**
6969
* @param {AgentMail.pods.ListPodsRequest} request
7070
* @param {PodsClient.RequestOptions} requestOptions - Request-specific configuration.

src/serialization/resources/drafts/types/Draft.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type * as AgentMail from "../../../../api/index.js";
44
import * as core from "../../../../core/index.js";
55
import type * as serializers from "../../../index.js";
66
import { InboxId } from "../../inboxes/types/InboxId.js";
7-
import { ThreadId } from "../../threads/types/ThreadId.js";
87
import { DraftAttachments } from "./DraftAttachments.js";
98
import { DraftBcc } from "./DraftBcc.js";
109
import { DraftCc } from "./DraftCc.js";
@@ -25,7 +24,6 @@ import { DraftUpdatedAt } from "./DraftUpdatedAt.js";
2524
export const Draft: core.serialization.ObjectSchema<serializers.Draft.Raw, AgentMail.Draft> = core.serialization.object(
2625
{
2726
inboxId: core.serialization.property("inbox_id", InboxId),
28-
threadId: core.serialization.property("thread_id", ThreadId),
2927
draftId: core.serialization.property("draft_id", DraftId),
3028
clientId: core.serialization.property("client_id", DraftClientId.optional()),
3129
labels: DraftLabels,
@@ -50,7 +48,6 @@ export const Draft: core.serialization.ObjectSchema<serializers.Draft.Raw, Agent
5048
export declare namespace Draft {
5149
export interface Raw {
5250
inbox_id: InboxId.Raw;
53-
thread_id: ThreadId.Raw;
5451
draft_id: DraftId.Raw;
5552
client_id?: DraftClientId.Raw | null;
5653
labels: DraftLabels.Raw;

src/serialization/resources/drafts/types/DraftItem.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type * as AgentMail from "../../../../api/index.js";
44
import * as core from "../../../../core/index.js";
55
import type * as serializers from "../../../index.js";
66
import { InboxId } from "../../inboxes/types/InboxId.js";
7-
import { ThreadId } from "../../threads/types/ThreadId.js";
87
import { DraftAttachments } from "./DraftAttachments.js";
98
import { DraftBcc } from "./DraftBcc.js";
109
import { DraftCc } from "./DraftCc.js";
@@ -20,7 +19,6 @@ import { DraftUpdatedAt } from "./DraftUpdatedAt.js";
2019
export const DraftItem: core.serialization.ObjectSchema<serializers.DraftItem.Raw, AgentMail.DraftItem> =
2120
core.serialization.object({
2221
inboxId: core.serialization.property("inbox_id", InboxId),
23-
threadId: core.serialization.property("thread_id", ThreadId),
2422
draftId: core.serialization.property("draft_id", DraftId),
2523
labels: DraftLabels,
2624
to: DraftTo.optional(),
@@ -37,7 +35,6 @@ export const DraftItem: core.serialization.ObjectSchema<serializers.DraftItem.Ra
3735
export declare namespace DraftItem {
3836
export interface Raw {
3937
inbox_id: InboxId.Raw;
40-
thread_id: ThreadId.Raw;
4138
draft_id: DraftId.Raw;
4239
labels: DraftLabels.Raw;
4340
to?: DraftTo.Raw | null;

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const SDK_VERSION = "0.4.4";
1+
export const SDK_VERSION = "0.4.5";

0 commit comments

Comments
 (0)