@voidly/agent-sdk 1.8.0 → 1.8.1
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/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,7 @@ interface DecryptedMessage {
|
|
|
32
32
|
to: string;
|
|
33
33
|
content: string;
|
|
34
34
|
contentType: string;
|
|
35
|
+
messageType: string;
|
|
35
36
|
threadId: string | null;
|
|
36
37
|
replyTo: string | null;
|
|
37
38
|
signatureValid: boolean;
|
|
@@ -127,6 +128,7 @@ declare class VoidlyAgent {
|
|
|
127
128
|
from?: string;
|
|
128
129
|
threadId?: string;
|
|
129
130
|
contentType?: string;
|
|
131
|
+
messageType?: string;
|
|
130
132
|
unreadOnly?: boolean;
|
|
131
133
|
}): Promise<DecryptedMessage[]>;
|
|
132
134
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ interface DecryptedMessage {
|
|
|
32
32
|
to: string;
|
|
33
33
|
content: string;
|
|
34
34
|
contentType: string;
|
|
35
|
+
messageType: string;
|
|
35
36
|
threadId: string | null;
|
|
36
37
|
replyTo: string | null;
|
|
37
38
|
signatureValid: boolean;
|
|
@@ -127,6 +128,7 @@ declare class VoidlyAgent {
|
|
|
127
128
|
from?: string;
|
|
128
129
|
threadId?: string;
|
|
129
130
|
contentType?: string;
|
|
131
|
+
messageType?: string;
|
|
130
132
|
unreadOnly?: boolean;
|
|
131
133
|
}): Promise<DecryptedMessage[]>;
|
|
132
134
|
/**
|
package/dist/index.js
CHANGED
|
@@ -2478,6 +2478,7 @@ var VoidlyAgent = class _VoidlyAgent {
|
|
|
2478
2478
|
if (options.from) params.set("from", options.from);
|
|
2479
2479
|
if (options.threadId) params.set("thread_id", options.threadId);
|
|
2480
2480
|
if (options.contentType) params.set("content_type", options.contentType);
|
|
2481
|
+
if (options.messageType) params.set("message_type", options.messageType);
|
|
2481
2482
|
if (options.unreadOnly) params.set("unread", "true");
|
|
2482
2483
|
const res = await fetch(`${this.baseUrl}/v1/agent/receive/raw?${params}`, {
|
|
2483
2484
|
headers: { "X-Agent-Key": this.apiKey }
|
|
@@ -2520,6 +2521,7 @@ var VoidlyAgent = class _VoidlyAgent {
|
|
|
2520
2521
|
to: msg.to,
|
|
2521
2522
|
content: (0, import_tweetnacl_util.encodeUTF8)(plaintext),
|
|
2522
2523
|
contentType: msg.content_type,
|
|
2524
|
+
messageType: msg.message_type || "text",
|
|
2523
2525
|
threadId: msg.thread_id,
|
|
2524
2526
|
replyTo: msg.reply_to,
|
|
2525
2527
|
signatureValid,
|
package/dist/index.mjs
CHANGED
|
@@ -2468,6 +2468,7 @@ var VoidlyAgent = class _VoidlyAgent {
|
|
|
2468
2468
|
if (options.from) params.set("from", options.from);
|
|
2469
2469
|
if (options.threadId) params.set("thread_id", options.threadId);
|
|
2470
2470
|
if (options.contentType) params.set("content_type", options.contentType);
|
|
2471
|
+
if (options.messageType) params.set("message_type", options.messageType);
|
|
2471
2472
|
if (options.unreadOnly) params.set("unread", "true");
|
|
2472
2473
|
const res = await fetch(`${this.baseUrl}/v1/agent/receive/raw?${params}`, {
|
|
2473
2474
|
headers: { "X-Agent-Key": this.apiKey }
|
|
@@ -2510,6 +2511,7 @@ var VoidlyAgent = class _VoidlyAgent {
|
|
|
2510
2511
|
to: msg.to,
|
|
2511
2512
|
content: (0, import_tweetnacl_util.encodeUTF8)(plaintext),
|
|
2512
2513
|
contentType: msg.content_type,
|
|
2514
|
+
messageType: msg.message_type || "text",
|
|
2513
2515
|
threadId: msg.thread_id,
|
|
2514
2516
|
replyTo: msg.reply_to,
|
|
2515
2517
|
signatureValid,
|