Skip to main content

FilesService (gRPC)

Generated content. This page is produced by cargo run --bin gen_docs (src-tauri/src/bin/gen_docs/) reading proto/maslow/v1/*.proto's compiled FileDescriptorSet, via prost-reflect, re-run on every docs-site build. Do not hand-edit it: fix the generator or the source it reads instead.

Full name: maslow.v1.FilesService

Methods​

ListFiles​

DeleteFile​

UploadFile​

ParseSdToolpath​

Download an SD file and parse it into a 2D toolpath preview, without running it.

LoadLocalToolpath​

Parse a local G-code file into a 2D toolpath preview.

Types​

Every message and enum reachable from this service's requests and responses, including shared types defined in common.proto.

DeleteFileRequest​

FieldTypeDescription
namestring"files/{path}"

DeleteFileResponse​

No fields.

File​

One entry of an SD card directory listing. Field set may be refined once the underlying firmware JSON (currently passed through largely untyped) is parsed strictly rather than forwarded as-is.

FieldTypeDescription
namestring"files/{path}", where path is the SD-absolute path including slashes.
size_bytesuint64
is_directorybool

ListFilesRequest​

FieldTypeDescription
parentstringSD directory path, e.g. "/" or "/jobs".
page_sizeint32
page_tokenstring

ListFilesResponse​

FieldTypeDescription
filesrepeated File
next_page_tokenstring

LoadLocalToolpathRequest​

FieldTypeDescription
local_pathstringPath to a G-code file on the machine running this server.

ParseSdToolpathRequest​

FieldTypeDescription
namestring"files/{path}"

Segment​

One line segment of a parsed G-code toolpath (a plan view, not a simulation: Z and feed rate are ignored).

FieldTypeDescription
x0float
y0float
x1float
y1float
rapidboolTrue for a G0 rapid, false for a G1/G2/G3 cutting move.
lineuint32Index of the source line, so a caller can highlight cut-so-far vs remaining against live job progress.

Toolpath​

FieldTypeDescription
segmentsrepeated Segment
min_xfloat
min_yfloat
max_xfloat
max_yfloat
has_boundsboolFalse when the program produced no motion (empty bounding box).

UploadFileRequest​

FieldTypeDescription
dirstringSD directory to upload into.
local_pathstringPath to the file on the machine running this server (not caller-streamed bytes: this mirrors the existing local-file-path upload semantics).

UploadFileResponse​

FieldTypeDescription
namestring"files/{path}" of the uploaded file.