How to create role (user-permission) from bootstrap function

When I want to deploy strapi app I want to create ReadOnly role and assign custom permission to it.
Someone have a working example?

strapi.db.query('plugin::users-permissions.role').create({
          ????? some data with permissions ???
})
System Information
  • Strapi Version: 4.12.0
  • Operating System: docker on mac
  • Database: postgress
  • Node Version:
  • NPM Version:
  • Yarn Version:

It is impossible to find documentation on this!
I have figured this line but no matter what i pass I get undefined back:

strapi.plugins['users-permissions'].services.role.createRole()

Thanks, my approach is a bit different:

strapi.db.query('plugin::users-permissions.role').create({
				data: {
					name: 'Admin',
					type: 'admin',
					description: 'Has access to almost everything',
				}
			})