add MiUserProfile.defaultCWPriority property and API

This commit is contained in:
Hazelnoot 2025-02-01 23:15:02 -05:00
parent 74407bc8ee
commit c8f8a61a00
7 changed files with 45 additions and 3 deletions

View file

@ -250,6 +250,11 @@ export const paramDef = {
items: { type: 'string' },
},
defaultCW: { type: 'string', nullable: true },
defaultCWPriority: {
type: 'string',
enum: ['default', 'parent', 'defaultParent', 'parentDefault'],
nullable: false,
},
},
} as const;
@ -510,6 +515,9 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
profileUpdates.defaultCW = defaultCW;
}
if (ps.defaultCWPriority !== undefined) {
profileUpdates.defaultCWPriority = ps.defaultCWPriority;
}
//#region emojis/tags