@indexnetwork/protocol 66.0.0-rc.663.1 → 66.0.0-rc.665.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/CHANGELOG.md +1 -0
- package/dist/platform/database/entities.d.ts +10 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- `OpportunityCard` gains `priorOpportunity` (an earlier accepted opportunity, or a pending one the viewer already said yes to) and `peerChat` (the viewer's existing direct chat with the counterpart), two separate facts. The card presenter gets the prior opportunity and no longer words a known contact as new. Types `PriorOpportunity` and `PeerChat` are exported.
|
|
17
17
|
- `OpportunityCardsDatabase` and `OpportunityControllerDatabase` require `findPriorOpportunities(viewerId, peerIds, excludeOpportunityIds?)` and `findPeerChats(viewerId, peerIds)`, both batched and read-only.
|
|
18
18
|
- `OpportunityDetection.source` gains `'introducer'`, stamped on opportunities a third party opens.
|
|
19
|
+
- `OpportunityActor.via`: a participant reached through the member who introduced them, with no network. `OpportunityActor.networkId` is now optional; an actor carries one of the two. This is how an introduction reaches someone outside Index: one hop through a person, never through a network.
|
|
19
20
|
- Protocol agent requests to OpenRouter carry `HTTP-Referer` and `X-Title` headers, so their spend is attributed apart from the hosted agent's, and a `trace` and `metadata` (`service: "protocol"`, `operation`) named by the agent key (for example `intentInferrer` or `chat`).
|
|
20
21
|
|
|
21
22
|
### Fixed
|
|
@@ -86,8 +86,17 @@ export interface OpportunityDetection {
|
|
|
86
86
|
enrichedFrom?: string[];
|
|
87
87
|
}
|
|
88
88
|
/** A participant (user + network) involved in an opportunity. */
|
|
89
|
+
/**
|
|
90
|
+
* One participant on an opportunity and what anchors them to it. Discovery
|
|
91
|
+
* anchors every participant on a network they share. An introduction to
|
|
92
|
+
* someone outside every network anchors that person `via` the member who
|
|
93
|
+
* introduced them instead: reach through a person, one hop, never a network.
|
|
94
|
+
*/
|
|
89
95
|
export interface OpportunityActor {
|
|
90
|
-
|
|
96
|
+
/** The network this participant was matched in. Absent when anchored `via` an introducer. */
|
|
97
|
+
networkId?: Id<'networks'>;
|
|
98
|
+
/** The introducer this participant is reached through, when no network anchors them. */
|
|
99
|
+
via?: Id<'users'>;
|
|
91
100
|
userId: Id<'users'>;
|
|
92
101
|
intent?: Id<'intents'>;
|
|
93
102
|
role: string;
|