hiloop-sdk 0.8.6 → 0.8.7

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/client.d.ts CHANGED
@@ -10,6 +10,10 @@ export interface SendOptions {
10
10
  priority?: string;
11
11
  deadlineMinutes?: number;
12
12
  replyToMessageId?: string;
13
+ /** Client-supplied correlation key (e.g. tool_use_id). Unique per session. */
14
+ referenceId?: string;
15
+ /** Resolve a referenceId to a message and set replyToMessageId automatically. */
16
+ replyToReferenceId?: string;
13
17
  }
14
18
  export interface HiloopClientOptions {
15
19
  apiKey: string;
package/dist/client.js CHANGED
@@ -335,6 +335,10 @@ export class HiloopClient {
335
335
  body.deadlineMinutes = opts.deadlineMinutes;
336
336
  if (opts?.replyToMessageId)
337
337
  body.replyToMessageId = opts.replyToMessageId;
338
+ if (opts?.referenceId)
339
+ body.referenceId = opts.referenceId;
340
+ if (opts?.replyToReferenceId)
341
+ body.replyToReferenceId = opts.replyToReferenceId;
338
342
  const data = await this.request("POST", `/agent/sessions/${sessionId}/messages`, { body, agentName: opts?.agentName });
339
343
  return parseSessionMessage(data);
340
344
  }
package/dist/types.d.ts CHANGED
@@ -139,6 +139,7 @@ export interface SessionMessage {
139
139
  priority?: string | null;
140
140
  status?: string | null;
141
141
  deadlineAt?: string | null;
142
+ referenceId?: string | null;
142
143
  replyToMessageId?: string | null;
143
144
  respondedAt?: string | null;
144
145
  viewedAt?: string | null;
package/dist/types.js CHANGED
@@ -100,6 +100,7 @@ export function parseSessionMessage(data) {
100
100
  priority: m.priority ?? null,
101
101
  status: m.status ?? null,
102
102
  deadlineAt: m.deadlineAt ?? null,
103
+ referenceId: m.referenceId ?? null,
103
104
  replyToMessageId: m.replyToMessageId ?? null,
104
105
  respondedAt: m.respondedAt ?? null,
105
106
  viewedAt: m.viewedAt ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hiloop-sdk",
3
- "version": "0.8.6",
3
+ "version": "0.8.7",
4
4
  "description": "TypeScript SDK for Hiloop — zero-trust human-AI agent interaction platform",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",