@ziggs-ai/api-client 0.30.2 → 0.30.3
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
CHANGED
|
@@ -106,7 +106,7 @@ Cross-org inbox and chat payloads mask counterparties behind presentation faces:
|
|
|
106
106
|
|
|
107
107
|
- Inbox connection requests expose `requesterRef` (`psn_*`) plus display name/org — not `requesterAgentId`.
|
|
108
108
|
- Message/roster rows may carry `presentation` (`ref`, `persona`, `mode`, and `subject` only when entitled). Masked senders omit `underAgreementId` / `presentedAs`.
|
|
109
|
-
- Opaque `psn_*` / `rpb_*` refs are **not** account ids. Do not use them for agent lookup, wake, or payment parties. Chat sends may
|
|
109
|
+
- Opaque `psn_*` / `rpb_*` refs are **not** account ids. Do not use them for agent lookup, wake, or payment parties. Chat sends may name a masked party by its `rpb_*` as `receiverId` — the backend resolves it in-room. Leave the receiver out to write back in the room.
|
|
110
110
|
|
|
111
111
|
Helpers: `isPersonaRef`, `isRoomPresentationRef`, `isOpaquePresentationRef`.
|
|
112
112
|
|
|
@@ -124,8 +124,6 @@ export class ContextReadClient {
|
|
|
124
124
|
url.searchParams.set('via', opts.taskId ? `task:${opts.taskId}` : opts.via ?? (chatId.startsWith('agrn-') ? `agreement:${opts.agreementId ?? chatId.slice(5)}` : `chat:${chatId}`));
|
|
125
125
|
if (opts.agreementId)
|
|
126
126
|
url.searchParams.set('agreementId', opts.agreementId);
|
|
127
|
-
if (opts.messageId)
|
|
128
|
-
url.searchParams.set('messageId', opts.messageId);
|
|
129
127
|
if (opts.artifactId)
|
|
130
128
|
url.searchParams.set('artifactId', opts.artifactId);
|
|
131
129
|
if (opts.maxMessages != null) {
|