feat(project): support project metadata updates

This commit is contained in:
Brendan Allan 2026-07-21 19:02:33 +08:00
commit 9afd059fa1
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
13 changed files with 111 additions and 2 deletions

View file

@ -56,5 +56,12 @@ export const Info = Schema.Struct({
}).annotate({ identifier: "Project" })
export interface Info extends Schema.Schema.Type<typeof Info> {}
export const UpdateInput = Schema.Struct({
name: optional(Schema.String),
icon: optional(Icon),
commands: optional(Commands),
}).annotate({ identifier: "Project.UpdateInput" })
export interface UpdateInput extends Schema.Schema.Type<typeof UpdateInput> {}
const Updated = ephemeral({ type: "project.updated", schema: Info.fields })
export const Event = { Updated, Definitions: inventory(Updated) }