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
Download an SD file and parse it into a 2D toolpath preview, without
running it.
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
| Field | Type | Description |
|---|
name | string | "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.
| Field | Type | Description |
|---|
name | string | "files/{path}", where path is the SD-absolute path including slashes. |
size_bytes | uint64 | |
is_directory | bool | |
ListFilesRequest
| Field | Type | Description |
|---|
parent | string | SD directory path, e.g. "/" or "/jobs". |
page_size | int32 | |
page_token | string | |
ListFilesResponse
| Field | Type | Description |
|---|
files | repeated File | |
next_page_token | string | |
| Field | Type | Description |
|---|
local_path | string | Path to a G-code file on the machine running this server. |
| Field | Type | Description |
|---|
name | string | "files/{path}" |
Segment
One line segment of a parsed G-code toolpath (a plan view, not a
simulation: Z and feed rate are ignored).
| Field | Type | Description |
|---|
x0 | float | |
y0 | float | |
x1 | float | |
y1 | float | |
rapid | bool | True for a G0 rapid, false for a G1/G2/G3 cutting move. |
line | uint32 | Index of the source line, so a caller can highlight cut-so-far vs remaining against live job progress. |
| Field | Type | Description |
|---|
segments | repeated Segment | |
min_x | float | |
min_y | float | |
max_x | float | |
max_y | float | |
has_bounds | bool | False when the program produced no motion (empty bounding box). |
UploadFileRequest
| Field | Type | Description |
|---|
dir | string | SD directory to upload into. |
local_path | string | Path to the file on the machine running this server (not caller-streamed bytes: this mirrors the existing local-file-path upload semantics). |
UploadFileResponse
| Field | Type | Description |
|---|
name | string | "files/{path}" of the uploaded file. |