feat(httpapi): bridge project update endpoint (#24398)

This commit is contained in:
Kit Langton
2026-04-25 18:55:49 -04:00
committed by GitHub
parent 27b0877714
commit 58c65874ba
5 changed files with 75 additions and 5 deletions

View File

@@ -91,6 +91,15 @@ export const UpdateInput = z.object({
})
export type UpdateInput = z.infer<typeof UpdateInput>
export const UpdatePayload = Schema.Struct({
name: Schema.optional(Schema.String),
icon: Schema.optional(ProjectIcon),
commands: Schema.optional(ProjectCommands),
})
.annotate({ identifier: "ProjectUpdateInput" })
.pipe(withStatics((s) => ({ zod: zod(s) })))
export type UpdatePayload = Types.DeepMutable<Schema.Schema.Type<typeof UpdatePayload>>
// ---------------------------------------------------------------------------
// Effect service
// ---------------------------------------------------------------------------