@zhin.js/host-http 1.0.16 → 1.0.17

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.
@@ -59,6 +59,8 @@ export type RuntimeConsoleRpcContext = {
59
59
  agents: Readonly<Record<string, unknown>>;
60
60
  workrooms: Readonly<Record<string, unknown>>;
61
61
  revision: string;
62
+ /** Principal bound to the authenticated Console token, never caller supplied. */
63
+ principalId?: string;
62
64
  }>>;
63
65
  setWorkroomCatalog?(workrooms: unknown, expectedRevision: string): Promise<Readonly<{
64
66
  revision: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/host-http",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Minimal HTTP and WebSocket host for Plugin Runtime (no Koa)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -91,6 +91,8 @@ export type RuntimeConsoleRpcContext = {
91
91
  agents: Readonly<Record<string, unknown>>;
92
92
  workrooms: Readonly<Record<string, unknown>>;
93
93
  revision: string;
94
+ /** Principal bound to the authenticated Console token, never caller supplied. */
95
+ principalId?: string;
94
96
  }>>;
95
97
  setWorkroomCatalog?(
96
98
  workrooms: unknown,