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

Add a GraphQL mutation to allow cross-signing reset

This commit is contained in:
Quentin Gliech
2023-11-22 18:25:47 +01:00
parent 5957112ff6
commit f8d745d308
4 changed files with 147 additions and 0 deletions

View File

@@ -99,6 +99,19 @@ export enum AddUserStatus {
Invalid = "INVALID",
}
/** The input for the `allowUserCrossSigningReset` mutation. */
export type AllowUserCrossSigningResetInput = {
/** The ID of the user to update. */
userId: Scalars["ID"]["input"];
};
/** The payload for the `allowUserCrossSigningReset` mutation. */
export type AllowUserCrossSigningResetPayload = {
__typename?: "AllowUserCrossSigningResetPayload";
/** The user that was updated. */
user?: Maybe<User>;
};
export type Anonymous = Node & {
__typename?: "Anonymous";
id: Scalars["ID"]["output"];
@@ -421,6 +434,8 @@ export type Mutation = {
addEmail: AddEmailPayload;
/** Add a user. This is only available to administrators. */
addUser: AddUserPayload;
/** Temporarily allow user to reset their cross-signing keys. */
allowUserCrossSigningReset: AllowUserCrossSigningResetPayload;
/**
* Create a new arbitrary OAuth 2.0 Session.
*
@@ -459,6 +474,11 @@ export type MutationAddUserArgs = {
input: AddUserInput;
};
/** The mutations root of the GraphQL interface. */
export type MutationAllowUserCrossSigningResetArgs = {
input: AllowUserCrossSigningResetInput;
};
/** The mutations root of the GraphQL interface. */
export type MutationCreateOauth2SessionArgs = {
input: CreateOAuth2SessionInput;