@hadoku/rooms-protocol 0.45.7 → 0.45.9

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.
@@ -25,9 +25,11 @@
25
25
  * the moment the key does, and everything keyed on the id — a remembered seat,
26
26
  * a restored name, the same-presenter leader takeover — silently stops
27
27
  * recognising the person. That is the same failure that detached every
28
- * tierlist ballot in watchparty (#144), one layer up. `accountId` is the
29
- * input; `friendKey` remains accepted ONLY so a consumer that has not yet
30
- * resolved userIds keeps working, and loses rotation-stability while it does.
28
+ * tierlist ballot in watchparty (#144), one layer up. `accountId` is the ONLY
29
+ * account-tier input. The deprecated `friendKey` input was removed (hadoku_site
30
+ * IDENTITY_MODEL R7/R12, fleet-manager identity-model G9c): a consumer that
31
+ * still has only a key resolves the userId first, or passes the edge-stamped
32
+ * `X-User-Id`, which the edge proves.
31
33
  * dev:<digest> device — derived from a browser-persisted id. Survives a
32
34
  * reload and a reconnect; not a new browser.
33
35
  * eph:<socketId> ephemeral— anon with no usable storage. Dies with the socket.
@@ -124,7 +126,6 @@ export declare function isUsableDeviceId(deviceId: unknown): deviceId is string;
124
126
  */
125
127
  export declare function resolveParticipantTier(input: {
126
128
  accountId?: string | null;
127
- friendKey?: string | null;
128
129
  deviceId?: string | null;
129
130
  }): ParticipantIdTier;
130
131
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"participantId.d.ts","sourceRoot":"","sources":["../src/participantId.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2DG;AAEH,gFAAgF;AAChF,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEnE,6DAA6D;AAC7D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,CA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;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,IAAI,MAAM,CAEzE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,OAAO,GAAG,SAAS,IAAI,MAAM,CAEzE;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,MAAM,CAEtE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,GAAG,iBAAiB,CAIpB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CAExF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAG3D;AAED,uDAAuD;AACvD,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGpD"}
@@ -25,9 +25,11 @@
25
25
  * the moment the key does, and everything keyed on the id — a remembered seat,
26
26
  * a restored name, the same-presenter leader takeover — silently stops
27
27
  * recognising the person. That is the same failure that detached every
28
- * tierlist ballot in watchparty (#144), one layer up. `accountId` is the
29
- * input; `friendKey` remains accepted ONLY so a consumer that has not yet
30
- * resolved userIds keeps working, and loses rotation-stability while it does.
28
+ * tierlist ballot in watchparty (#144), one layer up. `accountId` is the ONLY
29
+ * account-tier input. The deprecated `friendKey` input was removed (hadoku_site
30
+ * IDENTITY_MODEL R7/R12, fleet-manager identity-model G9c): a consumer that
31
+ * still has only a key resolves the userId first, or passes the edge-stamped
32
+ * `X-User-Id`, which the edge proves.
31
33
  * dev:<digest> device — derived from a browser-persisted id. Survives a
32
34
  * reload and a reconnect; not a new browser.
33
35
  * eph:<socketId> ephemeral— anon with no usable storage. Dies with the socket.
@@ -164,8 +166,6 @@ export function isUsableDeviceId(deviceId) {
164
166
  export function resolveParticipantTier(input) {
165
167
  if (isUsableAccountId(input.accountId))
166
168
  return 'account';
167
- if (isUsableFriendKey(input.friendKey))
168
- return 'account';
169
169
  if (isUsableDeviceId(input.deviceId))
170
170
  return 'device';
171
171
  return 'ephemeral';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hadoku/rooms-protocol",
3
- "version": "0.45.7",
3
+ "version": "0.45.9",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Room, identity and seating protocol — the wire contract shared by rooms-server and rooms-client.",