Team & organization
These work on the organization your token belongs to.
Invites and members need a team organization on a paid plan. The free plan doesn’t allow them.
Invite a teammate
Section titled “Invite a teammate”yield* Turso.OrganizationInvite("Alice", { email: "alice@example.com", role: "admin",});role is admin, member, or viewer. The default is member. Changing it sends the invite again. Destroying it cancels the invite.
Add an existing user
Section titled “Add an existing user”yield* Turso.OrganizationMember("Bob", { username: "bob", role: "viewer",});Use this when the person already has a Turso account. You can change role later. Destroying it removes them.
Change organization settings
Section titled “Change organization settings”yield* Turso.OrganizationSettings("Org", { requireMfa: true, restoreEnabled: true,});Alchemy only touches the settings you list. Destroying it puts them back the way they were.
overages lets Turso bill you for usage past your plan’s limits. Only turn it on if you mean to.