partial: new documentation additions (company admin)

This commit is contained in:
DecDuck
2025-08-09 22:18:34 +10:00
parent 7af29ef0eb
commit ef7a62bf0b
15 changed files with 181 additions and 122 deletions

View File

@ -8,7 +8,8 @@ const DeleteInvite = type({
}).configure(throwingArktype);
/**
* Delete a simple auth invitation
* Deletes a "Simple" invitation
* @returns nothing
*/
export default defineEventHandler<{
body: typeof DeleteInvite.infer;

View File

@ -3,6 +3,9 @@ import { systemConfig } from "~/server/internal/config/sys-conf";
import prisma from "~/server/internal/db/database";
import taskHandler from "~/server/internal/tasks";
/**
* Fetches a "Simple" invitation
*/
export default defineEventHandler(async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [
"auth:simple:invitation:read",

View File

@ -11,6 +11,9 @@ const CreateInvite = SharedRegisterValidator.partial()
})
.configure(throwingArktype);
/**
* Creates a "Simple" invitation
*/
export default defineEventHandler(async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, [
"auth:simple:invitation:new",