1
0
mirror of https://github.com/bitwarden/server synced 2026-02-18 18:33:29 +00:00
Files
server/util/Seeder/Services/ISeedReader.cs
2026-02-17 07:42:53 +01:00

20 lines
599 B
C#

namespace Bit.Seeder.Services;
/// <summary>
/// Reads seed data files from embedded JSON resources.
/// Seeds are pantry ingredients for Recipes, Steps, and Scenes.
/// </summary>
public interface ISeedReader
{
/// <summary>
/// Reads and deserializes a seed file by name (without extension).
/// Names use dot-separated paths: "ciphers.autofill-testing", "organizations.dunder-mifflin"
/// </summary>
T Read<T>(string seedName);
/// <summary>
/// Lists available seed file names (without extension).
/// </summary>
IReadOnlyList<string> ListAvailable();
}