@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
19 lines • 499 B
TypeScript
//#region src/auth/permissions.d.ts
/**
* What the visitor may do in this app, as the platform sees it.
*
* Rendering hints, not enforcement: every data request is authorized again
* server-side, and these may go stale between the two.
*/
type DatasourcePermissions = {
read: boolean;
create: boolean;
update: boolean;
delete: boolean;
};
type Permissions = {
/** Keyed by datasource id. */
datasources: Record<string, DatasourcePermissions>;
};
//#endregion
export { Permissions };