Hierarchical Permissions
Owner includes writer and reader, writer includes reader - making permission management intuitive and flexible.
Install the SDK using your preferred package manager:
npm add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescriptpnpm add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescriptbun add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescriptyarn add https://gitpkg.now.sh/MeetKai/mk1-sdks/typescriptimport { SDK } from "@meetkai/mka1";
const sdk = new SDK({
bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await sdk.userManagement.checkUserPermission({
user: "alice@example.com",
permission: "reader",
resource: "budget-2024",
});
console.log(result);
}
run();The API uses a three-level hierarchical permission system:
Explore the comprehensive documentation: