import * as Schema from "effect/Schema";
import { API } from "../client.js";
import * as T from "../traits.js";
const __document = "mutation userInvitationAcceptUserInvitationByTokenAsViewer($token: ID!) {\n  userInvitation {\n    acceptUserInvitationByTokenAsViewer(token: $token) {\n      success\n    }\n  }\n}";
// Input Schema (GraphQL variables)
export const UserInvitationAcceptUserInvitationByTokenAsViewerInput = Schema.Struct({
    token: Schema.String,
}).pipe(T.Http({ method: "POST", path: "/graphql" }), T.GraphQLOp({
    query: __document,
    operationName: "userInvitationAcceptUserInvitationByTokenAsViewer",
    type: "mutation",
}));
// Output Schema (GraphQL selection set)
export const UserInvitationAcceptUserInvitationByTokenAsViewerOutput = Schema.Struct({
    success: Schema.Boolean,
}).pipe(T.ResponsePath("userInvitation.acceptUserInvitationByTokenAsViewer"));
export const userInvitationAcceptUserInvitationByTokenAsViewer = API.make(() => ({
    inputSchema: UserInvitationAcceptUserInvitationByTokenAsViewerInput,
    outputSchema: UserInvitationAcceptUserInvitationByTokenAsViewerOutput,
}));
//# sourceMappingURL=userInvitationAcceptUserInvitationByTokenAsViewer.js.map