mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-16 03:16:29 +00:00
feat(sessions): add explicit per-session title locks (#2072)
* feat(sessions): add explicit per-session title locks * fix(sessions): preserve title locks across rename entry points
This commit is contained in:
@@ -376,13 +376,17 @@ export const SessionServiceTierRequestSchema = z.object({
|
||||
export type SessionServiceTierRequest = z.infer<typeof SessionServiceTierRequestSchema>
|
||||
|
||||
export const RenameSessionRequestSchema = z.object({
|
||||
name: z.string().min(1).max(255)
|
||||
name: z.string().min(1).max(255).optional(),
|
||||
titleLocked: z.boolean().optional()
|
||||
}).refine(value => value.name !== undefined || value.titleLocked !== undefined, {
|
||||
message: 'name or titleLocked is required'
|
||||
})
|
||||
|
||||
export type RenameSessionRequest = z.infer<typeof RenameSessionRequestSchema>
|
||||
|
||||
export const UpdateSessionSummaryRequestSchema = z.object({
|
||||
text: z.string().trim().min(1).max(255)
|
||||
text: z.string().trim().min(1).max(255),
|
||||
titleLocked: z.boolean().optional()
|
||||
})
|
||||
|
||||
export type UpdateSessionSummaryRequest = z.infer<typeof UpdateSessionSummaryRequestSchema>
|
||||
|
||||
Reference in New Issue
Block a user