@casual-simulation/aux-common 3.10.3 → 3.10.4
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/common/ConnectionInfo.d.ts +8 -2
- package/common/ConnectionInfo.js +3 -2
- package/common/ConnectionInfo.js.map +1 -1
- package/common/PolicyPermissions.d.ts +738 -92
- package/common/PolicyPermissions.js +129 -133
- package/common/PolicyPermissions.js.map +1 -1
- package/common/RemoteActions.js +3 -3
- package/common/RemoteActions.js.map +1 -1
- package/package.json +1 -1
- package/websockets/WebsocketEvents.d.ts +563 -48
- package/websockets/WebsocketEvents.js +73 -77
- package/websockets/WebsocketEvents.js.map +1 -1
|
@@ -13,10 +13,16 @@ export interface ConnectionInfo {
|
|
|
13
13
|
*/
|
|
14
14
|
userId: string | null;
|
|
15
15
|
}
|
|
16
|
-
export declare const connectionInfoSchema: z.ZodObject<{
|
|
16
|
+
export declare const connectionInfoSchema: (() => z.ZodObject<{
|
|
17
17
|
connectionId: z.ZodString;
|
|
18
18
|
sessionId: z.ZodString;
|
|
19
19
|
userId: z.ZodString;
|
|
20
|
-
}, z.core.$strip
|
|
20
|
+
}, z.core.$strip>) & {
|
|
21
|
+
cache: import("es-toolkit").MemoizeCache<any, z.ZodObject<{
|
|
22
|
+
connectionId: z.ZodString;
|
|
23
|
+
sessionId: z.ZodString;
|
|
24
|
+
userId: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
};
|
|
21
27
|
export declare function connectionInfo(userId: string, sessionId: string, connectionId: string): ConnectionInfo;
|
|
22
28
|
//# sourceMappingURL=ConnectionInfo.d.ts.map
|
package/common/ConnectionInfo.js
CHANGED
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
* You should have received a copy of the GNU Affero General Public License
|
|
16
16
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
17
17
|
*/
|
|
18
|
+
import { memoize } from 'es-toolkit';
|
|
18
19
|
import { z } from 'zod';
|
|
19
|
-
export const connectionInfoSchema = z.object({
|
|
20
|
+
export const connectionInfoSchema = memoize(() => z.object({
|
|
20
21
|
connectionId: z.string(),
|
|
21
22
|
sessionId: z.string(),
|
|
22
23
|
userId: z.string(),
|
|
23
|
-
});
|
|
24
|
+
}));
|
|
24
25
|
export function connectionInfo(userId, sessionId, connectionId) {
|
|
25
26
|
return {
|
|
26
27
|
userId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionInfo.js","sourceRoot":"","sources":["ConnectionInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"ConnectionInfo.js","sourceRoot":"","sources":["ConnectionInfo.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAkBxB,MAAM,CAAC,MAAM,oBAAoB,GAAG,OAAO,CAAC,GAAG,EAAE,CAC7C,CAAC,CAAC,MAAM,CAAC;IACL,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CACL,CAAC;AAIF,MAAM,UAAU,cAAc,CAC1B,MAAc,EACd,SAAiB,EACjB,YAAoB;IAEpB,OAAO;QACH,MAAM;QACN,SAAS;QACT,YAAY;KACf,CAAC;AACN,CAAC"}
|