diff options
Diffstat (limited to 'src/api/schema.peechy')
-rw-r--r-- | src/api/schema.peechy | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/api/schema.peechy b/src/api/schema.peechy index 59cb1edf5..cf954cc4c 100644 --- a/src/api/schema.peechy +++ b/src/api/schema.peechy @@ -362,6 +362,34 @@ message Transform { TransformOptions options = 5; } +message Scan { + string path = 1; + byte[] contents = 2; + Loader loader = 3; +} + +struct ScanResult { + string[] exports; + ScannedImport[] imports; +} + +struct ScannedImport { + string path; + ImportKind kind; +} + +smol ImportKind { + entry_point = 1; + stmt = 2; + require = 3; + dynamic = 4; + require_resolve = 5; + at = 6; + url = 7; + internal = 8; +} + + enum TransformResponseStatus { success = 1; fail = 2; |