File size: 906 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | /* oxlint-disable typescript-eslint/no-unsafe-declaration-merging, eslint-plugin-import/namespace -- Event2 class+payload-interface declaration merging is the sanctioned event-declaration idiom. */
import { Event2 } from '#/app/event/event2';
export interface SessionMetaUpdatedPayload {
readonly agentId: string;
readonly sessionId: string;
readonly title?: string;
readonly patch: {
readonly title?: string;
readonly isCustomTitle?: boolean;
readonly lastPrompt?: string;
};
}
export class SessionMetaUpdated extends Event2<{ readonly payload: SessionMetaUpdatedPayload }> {
static override readonly type = 'session.meta.updated';
}
export interface SessionMetaUpdated {
readonly payload: SessionMetaUpdatedPayload;
}
export interface SessionMetaUpdatedEvent {
readonly type: 'session.meta.updated';
readonly title?: string;
readonly patch?: Record<string, unknown>;
}
|