agentmail 0.2.1 → 0.2.4
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/README.md +10 -1
- package/dist/cjs/BaseClient.d.ts +7 -7
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +1 -2
- package/dist/cjs/api/errors/IsTakenError.js +5 -1
- package/dist/cjs/api/errors/NotFoundError.js +5 -1
- package/dist/cjs/api/errors/ValidationError.js +5 -1
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/apiKeys/client/Client.js +8 -52
- package/dist/cjs/api/resources/domains/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/domains/client/Client.js +11 -97
- package/dist/cjs/api/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/drafts/client/Client.js +20 -49
- package/dist/cjs/api/resources/inboxes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/client/Client.js +10 -82
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/drafts/client/Client.js +24 -109
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/messages/client/Client.js +27 -142
- package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/metrics/client/Client.js +16 -22
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/inboxes/resources/threads/client/Client.js +23 -82
- package/dist/cjs/api/resources/messages/errors/MessageRejectedError.js +5 -1
- package/dist/cjs/api/resources/metrics/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/metrics/client/Client.js +16 -22
- package/dist/cjs/api/resources/organizations/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/organizations/client/Client.js +2 -15
- package/dist/cjs/api/resources/pods/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/client/Client.js +9 -67
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/domains/client/Client.js +8 -52
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/drafts/client/Client.js +20 -49
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/inboxes/client/Client.js +9 -67
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/pods/resources/threads/client/Client.js +22 -67
- package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/threads/client/Client.js +22 -67
- package/dist/cjs/api/resources/threads/types/Thread.d.ts +2 -2
- package/dist/cjs/api/resources/threads/types/ThreadItem.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -2
- package/dist/cjs/api/resources/webhooks/client/Client.js +9 -67
- package/dist/cjs/api/resources/websockets/client/Client.d.ts +2 -3
- package/dist/cjs/api/resources/websockets/client/Client.js +3 -4
- package/dist/cjs/auth/BearerAuthProvider.d.ts +14 -8
- package/dist/cjs/auth/BearerAuthProvider.js +16 -6
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +6 -7
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +6 -3
- package/dist/cjs/core/fetcher/Fetcher.js +2 -1
- package/dist/cjs/core/fetcher/getResponseBody.js +18 -4
- package/dist/cjs/core/fetcher/signals.d.ts +1 -1
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/runtime/runtime.js +11 -10
- package/dist/cjs/core/schemas/builders/object/object.js +34 -3
- package/dist/cjs/core/websocket/ws.d.ts +1 -1
- package/dist/cjs/errors/AgentMailError.js +5 -1
- package/dist/cjs/errors/AgentMailTimeoutError.js +5 -1
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
- package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
- package/dist/cjs/serialization/resources/threads/types/Thread.d.ts +2 -2
- package/dist/cjs/serialization/resources/threads/types/Thread.js +2 -2
- package/dist/cjs/serialization/resources/threads/types/ThreadItem.d.ts +2 -2
- package/dist/cjs/serialization/resources/threads/types/ThreadItem.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +7 -7
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +1 -2
- package/dist/esm/api/errors/IsTakenError.mjs +5 -1
- package/dist/esm/api/errors/NotFoundError.mjs +5 -1
- package/dist/esm/api/errors/ValidationError.mjs +5 -1
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +8 -52
- package/dist/esm/api/resources/domains/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/domains/client/Client.mjs +11 -97
- package/dist/esm/api/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/drafts/client/Client.mjs +20 -49
- package/dist/esm/api/resources/inboxes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/client/Client.mjs +10 -82
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/drafts/client/Client.mjs +24 -109
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/messages/client/Client.mjs +27 -142
- package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/metrics/client/Client.mjs +16 -22
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/inboxes/resources/threads/client/Client.mjs +23 -82
- package/dist/esm/api/resources/messages/errors/MessageRejectedError.mjs +5 -1
- package/dist/esm/api/resources/metrics/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/metrics/client/Client.mjs +16 -22
- package/dist/esm/api/resources/organizations/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/organizations/client/Client.mjs +2 -15
- package/dist/esm/api/resources/pods/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/client/Client.mjs +9 -67
- package/dist/esm/api/resources/pods/resources/domains/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/domains/client/Client.mjs +8 -52
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/drafts/client/Client.mjs +20 -49
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/inboxes/client/Client.mjs +9 -67
- package/dist/esm/api/resources/pods/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/pods/resources/threads/client/Client.mjs +22 -67
- package/dist/esm/api/resources/threads/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/threads/client/Client.mjs +22 -67
- package/dist/esm/api/resources/threads/types/Thread.d.mts +2 -2
- package/dist/esm/api/resources/threads/types/ThreadItem.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -2
- package/dist/esm/api/resources/webhooks/client/Client.mjs +9 -67
- package/dist/esm/api/resources/websockets/client/Client.d.mts +2 -3
- package/dist/esm/api/resources/websockets/client/Client.mjs +3 -4
- package/dist/esm/auth/BearerAuthProvider.d.mts +14 -8
- package/dist/esm/auth/BearerAuthProvider.mjs +16 -6
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +6 -7
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +6 -3
- package/dist/esm/core/fetcher/Fetcher.mjs +2 -1
- package/dist/esm/core/fetcher/getResponseBody.mjs +18 -4
- package/dist/esm/core/fetcher/signals.d.mts +1 -1
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/runtime/runtime.mjs +11 -10
- package/dist/esm/core/schemas/builders/object/object.mjs +34 -3
- package/dist/esm/core/websocket/ws.d.mts +1 -1
- package/dist/esm/errors/AgentMailError.mjs +5 -1
- package/dist/esm/errors/AgentMailTimeoutError.mjs +5 -1
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
- package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
- package/dist/esm/serialization/resources/threads/types/Thread.d.mts +2 -2
- package/dist/esm/serialization/resources/threads/types/Thread.mjs +2 -2
- package/dist/esm/serialization/resources/threads/types/ThreadItem.d.mts +2 -2
- package/dist/esm/serialization/resources/threads/types/ThreadItem.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/llms-full.txt +16 -16
- package/package.json +6 -3
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +0 -4
- package/dist/cjs/core/fetcher/ResponseWithBody.js +0 -6
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +0 -4
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +0 -3
|
@@ -3,7 +3,11 @@ import { toJson } from "../core/json.mjs";
|
|
|
3
3
|
export class AgentMailError extends Error {
|
|
4
4
|
constructor({ message, statusCode, body, rawResponse, }) {
|
|
5
5
|
super(buildMessage({ message, statusCode, body }));
|
|
6
|
-
Object.setPrototypeOf(this,
|
|
6
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
7
|
+
if (Error.captureStackTrace) {
|
|
8
|
+
Error.captureStackTrace(this, this.constructor);
|
|
9
|
+
}
|
|
10
|
+
this.name = this.constructor.name;
|
|
7
11
|
this.statusCode = statusCode;
|
|
8
12
|
this.body = body;
|
|
9
13
|
this.rawResponse = rawResponse;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
export class AgentMailTimeoutError extends Error {
|
|
3
3
|
constructor(message) {
|
|
4
4
|
super(message);
|
|
5
|
-
Object.setPrototypeOf(this,
|
|
5
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
6
|
+
if (Error.captureStackTrace) {
|
|
7
|
+
Error.captureStackTrace(this, this.constructor);
|
|
8
|
+
}
|
|
9
|
+
this.name = this.constructor.name;
|
|
6
10
|
}
|
|
7
11
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as errors from "./index.mjs";
|
|
3
|
+
export function handleNonStatusCodeError(error, rawResponse, method, path) {
|
|
4
|
+
switch (error.reason) {
|
|
5
|
+
case "non-json":
|
|
6
|
+
throw new errors.AgentMailError({
|
|
7
|
+
statusCode: error.statusCode,
|
|
8
|
+
body: error.rawBody,
|
|
9
|
+
rawResponse: rawResponse,
|
|
10
|
+
});
|
|
11
|
+
case "body-is-null":
|
|
12
|
+
throw new errors.AgentMailError({
|
|
13
|
+
statusCode: error.statusCode,
|
|
14
|
+
rawResponse: rawResponse,
|
|
15
|
+
});
|
|
16
|
+
case "timeout":
|
|
17
|
+
throw new errors.AgentMailTimeoutError(`Timeout exceeded when calling ${method} ${path}.`);
|
|
18
|
+
case "unknown":
|
|
19
|
+
throw new errors.AgentMailError({
|
|
20
|
+
message: error.errorMessage,
|
|
21
|
+
rawResponse: rawResponse,
|
|
22
|
+
});
|
|
23
|
+
default:
|
|
24
|
+
throw new errors.AgentMailError({
|
|
25
|
+
message: "Unknown error",
|
|
26
|
+
rawResponse: rawResponse,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -25,8 +25,8 @@ export declare namespace Thread {
|
|
|
25
25
|
thread_id: ThreadId.Raw;
|
|
26
26
|
labels: ThreadLabels.Raw;
|
|
27
27
|
timestamp: ThreadTimestamp.Raw;
|
|
28
|
-
received_timestamp
|
|
29
|
-
sent_timestamp
|
|
28
|
+
received_timestamp?: ThreadReceivedTimestamp.Raw | null;
|
|
29
|
+
sent_timestamp?: ThreadSentTimestamp.Raw | null;
|
|
30
30
|
senders: ThreadSenders.Raw;
|
|
31
31
|
recipients: ThreadRecipients.Raw;
|
|
32
32
|
subject?: ThreadSubject.Raw | null;
|
|
@@ -22,8 +22,8 @@ export const Thread = core.serialization.object({
|
|
|
22
22
|
threadId: core.serialization.property("thread_id", ThreadId),
|
|
23
23
|
labels: ThreadLabels,
|
|
24
24
|
timestamp: ThreadTimestamp,
|
|
25
|
-
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp),
|
|
26
|
-
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp),
|
|
25
|
+
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp.optional()),
|
|
26
|
+
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp.optional()),
|
|
27
27
|
senders: ThreadSenders,
|
|
28
28
|
recipients: ThreadRecipients,
|
|
29
29
|
subject: ThreadSubject.optional(),
|
|
@@ -24,8 +24,8 @@ export declare namespace ThreadItem {
|
|
|
24
24
|
thread_id: ThreadId.Raw;
|
|
25
25
|
labels: ThreadLabels.Raw;
|
|
26
26
|
timestamp: ThreadTimestamp.Raw;
|
|
27
|
-
received_timestamp
|
|
28
|
-
sent_timestamp
|
|
27
|
+
received_timestamp?: ThreadReceivedTimestamp.Raw | null;
|
|
28
|
+
sent_timestamp?: ThreadSentTimestamp.Raw | null;
|
|
29
29
|
senders: ThreadSenders.Raw;
|
|
30
30
|
recipients: ThreadRecipients.Raw;
|
|
31
31
|
subject?: ThreadSubject.Raw | null;
|
|
@@ -21,8 +21,8 @@ export const ThreadItem = core.serialization.object({
|
|
|
21
21
|
threadId: core.serialization.property("thread_id", ThreadId),
|
|
22
22
|
labels: ThreadLabels,
|
|
23
23
|
timestamp: ThreadTimestamp,
|
|
24
|
-
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp),
|
|
25
|
-
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp),
|
|
24
|
+
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp.optional()),
|
|
25
|
+
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp.optional()),
|
|
26
26
|
senders: ThreadSenders,
|
|
27
27
|
recipients: ThreadRecipients,
|
|
28
28
|
subject: ThreadSubject.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.4";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.2.
|
|
1
|
+
export const SDK_VERSION = "0.2.4";
|
package/dist/llms-full.txt
CHANGED
|
@@ -8429,8 +8429,8 @@ async function main() {
|
|
|
8429
8429
|
apiKey: "YOUR_TOKEN_HERE",
|
|
8430
8430
|
});
|
|
8431
8431
|
await client.inboxes.create({
|
|
8432
|
-
displayName: "Support
|
|
8433
|
-
clientId: "
|
|
8432
|
+
displayName: "Customer Support Inbox",
|
|
8433
|
+
clientId: "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
8434
8434
|
});
|
|
8435
8435
|
}
|
|
8436
8436
|
main();
|
|
@@ -8446,8 +8446,8 @@ client = AgentMail(
|
|
|
8446
8446
|
)
|
|
8447
8447
|
|
|
8448
8448
|
client.inboxes.create(
|
|
8449
|
-
display_name="Support
|
|
8450
|
-
client_id="
|
|
8449
|
+
display_name="Customer Support Inbox",
|
|
8450
|
+
client_id="1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f"
|
|
8451
8451
|
)
|
|
8452
8452
|
|
|
8453
8453
|
```
|
|
@@ -8466,7 +8466,7 @@ func main() {
|
|
|
8466
8466
|
|
|
8467
8467
|
url := "https://api.agentmail.to/v0/inboxes"
|
|
8468
8468
|
|
|
8469
|
-
payload := strings.NewReader("{\n \"display_name\": \"Support
|
|
8469
|
+
payload := strings.NewReader("{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}")
|
|
8470
8470
|
|
|
8471
8471
|
req, _ := http.NewRequest("POST", url, payload)
|
|
8472
8472
|
|
|
@@ -8496,7 +8496,7 @@ http.use_ssl = true
|
|
|
8496
8496
|
request = Net::HTTP::Post.new(url)
|
|
8497
8497
|
request["Authorization"] = 'Bearer <api_key>'
|
|
8498
8498
|
request["Content-Type"] = 'application/json'
|
|
8499
|
-
request.body = "{\n \"display_name\": \"Support
|
|
8499
|
+
request.body = "{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}"
|
|
8500
8500
|
|
|
8501
8501
|
response = http.request(request)
|
|
8502
8502
|
puts response.read_body
|
|
@@ -8506,7 +8506,7 @@ puts response.read_body
|
|
|
8506
8506
|
HttpResponse<String> response = Unirest.post("https://api.agentmail.to/v0/inboxes")
|
|
8507
8507
|
.header("Authorization", "Bearer <api_key>")
|
|
8508
8508
|
.header("Content-Type", "application/json")
|
|
8509
|
-
.body("{\n \"display_name\": \"Support
|
|
8509
|
+
.body("{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}")
|
|
8510
8510
|
.asString();
|
|
8511
8511
|
```
|
|
8512
8512
|
|
|
@@ -8517,10 +8517,10 @@ $client = new \GuzzleHttp\Client();
|
|
|
8517
8517
|
|
|
8518
8518
|
$response = $client->request('POST', 'https://api.agentmail.to/v0/inboxes', [
|
|
8519
8519
|
'body' => '{
|
|
8520
|
-
"display_name": "Support
|
|
8521
|
-
"client_id": "
|
|
8522
|
-
"pod_id": "
|
|
8523
|
-
"inbox_id": "
|
|
8520
|
+
"display_name": "Customer Support Inbox",
|
|
8521
|
+
"client_id": "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
8522
|
+
"pod_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
8523
|
+
"inbox_id": "support@example.com"
|
|
8524
8524
|
}',
|
|
8525
8525
|
'headers' => [
|
|
8526
8526
|
'Authorization' => 'Bearer <api_key>',
|
|
@@ -8536,7 +8536,7 @@ var client = new RestClient("https://api.agentmail.to/v0/inboxes");
|
|
|
8536
8536
|
var request = new RestRequest(Method.POST);
|
|
8537
8537
|
request.AddHeader("Authorization", "Bearer <api_key>");
|
|
8538
8538
|
request.AddHeader("Content-Type", "application/json");
|
|
8539
|
-
request.AddParameter("application/json", "{\n \"display_name\": \"Support
|
|
8539
|
+
request.AddParameter("application/json", "{\n \"display_name\": \"Customer Support Inbox\",\n \"client_id\": \"1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f\",\n \"pod_id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"inbox_id\": \"support@example.com\"\n}", ParameterType.RequestBody);
|
|
8540
8540
|
IRestResponse response = client.Execute(request);
|
|
8541
8541
|
```
|
|
8542
8542
|
|
|
@@ -8548,10 +8548,10 @@ let headers = [
|
|
|
8548
8548
|
"Content-Type": "application/json"
|
|
8549
8549
|
]
|
|
8550
8550
|
let parameters = [
|
|
8551
|
-
"display_name": "Support
|
|
8552
|
-
"client_id": "
|
|
8553
|
-
"pod_id": "
|
|
8554
|
-
"inbox_id": "
|
|
8551
|
+
"display_name": "Customer Support Inbox",
|
|
8552
|
+
"client_id": "1c6e9f4a-8b2d-4f3a-9d7e-2a1b3c4d5e6f",
|
|
8553
|
+
"pod_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
|
|
8554
|
+
"inbox_id": "support@example.com"
|
|
8555
8555
|
] as [String : Any]
|
|
8556
8556
|
|
|
8557
8557
|
let postData = JSONSerialization.data(withJSONObject: parameters, options: [])
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentmail",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"private": false,
|
|
5
|
-
"repository":
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/agentmail-to/agentmail-node.git"
|
|
8
|
+
},
|
|
6
9
|
"type": "commonjs",
|
|
7
10
|
"main": "./dist/cjs/index.js",
|
|
8
11
|
"module": "./dist/esm/index.mjs",
|
|
@@ -65,7 +68,7 @@
|
|
|
65
68
|
"msw": "2.11.2",
|
|
66
69
|
"@types/node": "^18.19.70",
|
|
67
70
|
"typescript": "~5.7.2",
|
|
68
|
-
"@biomejs/biome": "2.3.
|
|
71
|
+
"@biomejs/biome": "2.3.11"
|
|
69
72
|
},
|
|
70
73
|
"browser": {
|
|
71
74
|
"fs": false,
|