package bots import ( "context" "atlas9.dev/c/core" "atlas9.dev/c/core/iam" ) type Bot struct { ID core.ID Tenant core.ID Name string } var ( Cap_Bots_Write = iam.NewCap("Bots_Write") Cap_Bots_Read = iam.NewCap("Bots_Read") ) type BotStore interface { Save(ctx context.Context, bot *Bot) error Get(ctx context.Context, tenant core.ID, id core.ID, out *Bot) error List(ctx context.Context, tenant core.ID, page core.PageReq, out *core.Page[Bot]) error Delete(ctx context.Context, tenant core.ID, id core.ID) error }