Skip to content

Turso.Organization reference

Source: src/Turso/OrganizationInvite.ts

An invitation for someone to join your Turso organization by email. Changing role re-sends the invite with the new role; destroying the resource withdraws a pending invite. Requires a team organization on a paid plan — the Starter plan rejects invites with BadRequest.

yield* Turso.OrganizationInvite("Alice", {
email: "alice@example.com",
role: "admin",
});

Source: src/Turso/OrganizationMember.ts

Adds an existing Turso user to your organization with a role, and keeps that role in sync. Destroying the resource removes the member. Use OrganizationInvite for people who don’t have a Turso account yet. Requires a team organization on a paid plan.

yield* Turso.OrganizationMember("Bob", {
username: "bob",
role: "viewer",
});

Source: src/Turso/OrganizationSettings.ts

Settings of the Turso organization your credentials act on. Only the settings you set are managed; destroying the resource restores the values observed before Alchemy first changed them.

OrganizationSettings: Configuring the Organization

Section titled “OrganizationSettings: Configuring the Organization”
yield* Turso.OrganizationSettings("Org", {
overages: true,
requireMfa: true,
});