1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-24 23:01:05 +03:00

graphql: API to set the user displayname (#1412)

This commit is contained in:
Quentin Gliech
2023-08-03 16:45:59 +02:00
committed by GitHub
parent aa59f73956
commit 1e474518f5
8 changed files with 370 additions and 10 deletions

View File

@@ -323,6 +323,8 @@ export type Mutation = {
removeEmail: RemoveEmailPayload;
/** Send a verification code for an email address */
sendVerificationEmail: SendVerificationEmailPayload;
/** Set the display name of a user */
setDisplayName: SetDisplayNamePayload;
/** Set an email address as primary */
setPrimaryEmail: SetPrimaryEmailPayload;
/** Submit a verification code for an email address */
@@ -359,6 +361,11 @@ export type MutationSendVerificationEmailArgs = {
input: SendVerificationEmailInput;
};
/** The mutations root of the GraphQL interface. */
export type MutationSetDisplayNameArgs = {
input: SetDisplayNameInput;
};
/** The mutations root of the GraphQL interface. */
export type MutationSetPrimaryEmailArgs = {
input: SetPrimaryEmailInput;
@@ -589,6 +596,31 @@ export enum SendVerificationEmailStatus {
Sent = "SENT",
}
/** The input for the `addEmail` mutation */
export type SetDisplayNameInput = {
/** The display name to set. If `None`, the display name will be removed. */
displayName?: InputMaybe<Scalars["String"]["input"]>;
/** The ID of the user to add the email address to */
userId: Scalars["ID"]["input"];
};
/** The payload of the `setDisplayName` mutation */
export type SetDisplayNamePayload = {
__typename?: "SetDisplayNamePayload";
/** Status of the operation */
status: SetDisplayNameStatus;
/** The user that was updated */
user?: Maybe<User>;
};
/** The status of the `setDisplayName` mutation */
export enum SetDisplayNameStatus {
/** The display name is invalid */
Invalid = "INVALID",
/** The display name was set */
Set = "SET",
}
/** The input for the `setPrimaryEmail` mutation */
export type SetPrimaryEmailInput = {
/** The ID of the email address to set as primary */