import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const siteInvitations = await client.siteInvitations.list();siteInvitations.forEach((siteInvitation) => {console.log(siteInvitation);});}run();
{id: '312',email: 'mark.smith@example.com',expired: 'mark.smith@example.com',role: {type: 'role',id: '34'}}