Move query matching before publication (#17121)

- new channel EVENT_STREAM_CHANNEL based on event stream id
- on event, perform the matching and publish only to the right streams
- store a list of active streams per workspace
- store the user id along with the queries for each stream

Bonus:
- remove onSubscriptionMatch
This commit is contained in:
Thomas Trompette
2026-01-14 13:29:12 +01:00
committed by GitHub
parent 3ecfb24939
commit ec87b29286
18 changed files with 441 additions and 334 deletions
@@ -22,6 +22,14 @@ export type AuthContext = {
};
};
export type SerializableAuthContext = {
userId?: string;
userWorkspaceId?: string;
workspaceMemberId?: string;
apiKeyId?: string;
applicationId?: string;
};
export enum JwtTokenTypeEnum {
ACCESS = 'ACCESS',
REFRESH = 'REFRESH',