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