You've already forked authentication-service
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user