refactor(sync): make session events schema-first (#24019)

This commit is contained in:
Kit Langton
2026-04-23 12:43:08 -04:00
committed by GitHub
parent 353532b1c1
commit c50d65b4d6
9 changed files with 141 additions and 81 deletions
+16 -16
View File
@@ -1058,31 +1058,31 @@ export type SyncEventSessionUpdated = {
data: {
sessionID: string
info: {
id: string | null
slug: string | null
projectID: string | null
workspaceID: string | null
directory: string | null
parentID: string | null
summary: {
id?: string | null
slug?: string | null
projectID?: string | null
workspaceID?: string | null
directory?: string | null
parentID?: string | null
summary?: {
additions: number
deletions: number
files: number
diffs?: Array<SnapshotFileDiff>
} | null
share?: {
url: string | null
url?: string | null
}
title: string | null
version: string | null
title?: string | null
version?: string | null
time?: {
created: number | null
updated: number | null
compacting: number | null
archived: number | null
created?: number | null
updated?: number | null
compacting?: number | null
archived?: number | null
}
permission: PermissionRuleset | null
revert: {
permission?: PermissionRuleset | null
revert?: {
messageID: string
partID?: string
snapshot?: string