agentmail 0.2.3 → 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/dist/cjs/BaseClient.js +2 -2
- 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/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.mjs +2 -2
- 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/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 +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.4",
|
|
47
|
+
"User-Agent": "agentmail/0.2.4",
|
|
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);
|
|
@@ -4,8 +4,8 @@ export interface Thread {
|
|
|
4
4
|
threadId: AgentMail.ThreadId;
|
|
5
5
|
labels: AgentMail.ThreadLabels;
|
|
6
6
|
timestamp: AgentMail.ThreadTimestamp;
|
|
7
|
-
receivedTimestamp
|
|
8
|
-
sentTimestamp
|
|
7
|
+
receivedTimestamp?: AgentMail.ThreadReceivedTimestamp;
|
|
8
|
+
sentTimestamp?: AgentMail.ThreadSentTimestamp;
|
|
9
9
|
senders: AgentMail.ThreadSenders;
|
|
10
10
|
recipients: AgentMail.ThreadRecipients;
|
|
11
11
|
subject?: AgentMail.ThreadSubject;
|
|
@@ -4,8 +4,8 @@ export interface ThreadItem {
|
|
|
4
4
|
threadId: AgentMail.ThreadId;
|
|
5
5
|
labels: AgentMail.ThreadLabels;
|
|
6
6
|
timestamp: AgentMail.ThreadTimestamp;
|
|
7
|
-
receivedTimestamp
|
|
8
|
-
sentTimestamp
|
|
7
|
+
receivedTimestamp?: AgentMail.ThreadReceivedTimestamp;
|
|
8
|
+
sentTimestamp?: AgentMail.ThreadSentTimestamp;
|
|
9
9
|
senders: AgentMail.ThreadSenders;
|
|
10
10
|
recipients: AgentMail.ThreadRecipients;
|
|
11
11
|
subject?: AgentMail.ThreadSubject;
|
|
@@ -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;
|
|
@@ -58,8 +58,8 @@ exports.Thread = core.serialization.object({
|
|
|
58
58
|
threadId: core.serialization.property("thread_id", ThreadId_js_1.ThreadId),
|
|
59
59
|
labels: ThreadLabels_js_1.ThreadLabels,
|
|
60
60
|
timestamp: ThreadTimestamp_js_1.ThreadTimestamp,
|
|
61
|
-
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp_js_1.ThreadReceivedTimestamp),
|
|
62
|
-
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp_js_1.ThreadSentTimestamp),
|
|
61
|
+
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp_js_1.ThreadReceivedTimestamp.optional()),
|
|
62
|
+
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp_js_1.ThreadSentTimestamp.optional()),
|
|
63
63
|
senders: ThreadSenders_js_1.ThreadSenders,
|
|
64
64
|
recipients: ThreadRecipients_js_1.ThreadRecipients,
|
|
65
65
|
subject: ThreadSubject_js_1.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;
|
|
@@ -57,8 +57,8 @@ exports.ThreadItem = core.serialization.object({
|
|
|
57
57
|
threadId: core.serialization.property("thread_id", ThreadId_js_1.ThreadId),
|
|
58
58
|
labels: ThreadLabels_js_1.ThreadLabels,
|
|
59
59
|
timestamp: ThreadTimestamp_js_1.ThreadTimestamp,
|
|
60
|
-
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp_js_1.ThreadReceivedTimestamp),
|
|
61
|
-
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp_js_1.ThreadSentTimestamp),
|
|
60
|
+
receivedTimestamp: core.serialization.property("received_timestamp", ThreadReceivedTimestamp_js_1.ThreadReceivedTimestamp.optional()),
|
|
61
|
+
sentTimestamp: core.serialization.property("sent_timestamp", ThreadSentTimestamp_js_1.ThreadSentTimestamp.optional()),
|
|
62
62
|
senders: ThreadSenders_js_1.ThreadSenders,
|
|
63
63
|
recipients: ThreadRecipients_js_1.ThreadRecipients,
|
|
64
64
|
subject: ThreadSubject_js_1.ThreadSubject.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.4";
|
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.4",
|
|
10
|
+
"User-Agent": "agentmail/0.2.4",
|
|
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);
|
|
@@ -4,8 +4,8 @@ export interface Thread {
|
|
|
4
4
|
threadId: AgentMail.ThreadId;
|
|
5
5
|
labels: AgentMail.ThreadLabels;
|
|
6
6
|
timestamp: AgentMail.ThreadTimestamp;
|
|
7
|
-
receivedTimestamp
|
|
8
|
-
sentTimestamp
|
|
7
|
+
receivedTimestamp?: AgentMail.ThreadReceivedTimestamp;
|
|
8
|
+
sentTimestamp?: AgentMail.ThreadSentTimestamp;
|
|
9
9
|
senders: AgentMail.ThreadSenders;
|
|
10
10
|
recipients: AgentMail.ThreadRecipients;
|
|
11
11
|
subject?: AgentMail.ThreadSubject;
|
|
@@ -4,8 +4,8 @@ export interface ThreadItem {
|
|
|
4
4
|
threadId: AgentMail.ThreadId;
|
|
5
5
|
labels: AgentMail.ThreadLabels;
|
|
6
6
|
timestamp: AgentMail.ThreadTimestamp;
|
|
7
|
-
receivedTimestamp
|
|
8
|
-
sentTimestamp
|
|
7
|
+
receivedTimestamp?: AgentMail.ThreadReceivedTimestamp;
|
|
8
|
+
sentTimestamp?: AgentMail.ThreadSentTimestamp;
|
|
9
9
|
senders: AgentMail.ThreadSenders;
|
|
10
10
|
recipients: AgentMail.ThreadRecipients;
|
|
11
11
|
subject?: AgentMail.ThreadSubject;
|
|
@@ -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: [])
|