Initial boilerplate scaffold for continuum-schemas

Protobuf data model (Template/PrintJob/MaterialProfile/PrintParameters)
with codegen targets for TypeBox+TS types (packages/ts-types) and
prost-derived Rust structs (packages/rust-types).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-28 16:12:03 +00:00
commit 660855ecd6
21 changed files with 309 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
syntax = "proto3";
package continuum.v1;
message MaterialProfile {
string id = 1;
string name = 2;
string filament_type = 3;
double nozzle_temp_c = 4;
double bed_temp_c = 5;
double density_g_cm3 = 6;
string color_hex = 7;
}
+27
View File
@@ -0,0 +1,27 @@
syntax = "proto3";
package continuum.v1;
import "continuum/v1/template.proto";
enum PrintJobStatus {
PRINT_JOB_STATUS_UNSPECIFIED = 0;
PRINT_JOB_STATUS_QUEUED = 1;
PRINT_JOB_STATUS_PRINTING = 2;
PRINT_JOB_STATUS_PAUSED = 3;
PRINT_JOB_STATUS_COMPLETED = 4;
PRINT_JOB_STATUS_FAILED = 5;
PRINT_JOB_STATUS_CANCELLED = 6;
}
message PrintJob {
string id = 1;
string farm_id = 2;
string printer_id = 3;
string template_id = 4;
PrintJobStatus status = 5;
double progress_percent = 6;
int64 started_at_unix = 7;
int64 completed_at_unix = 8;
string gcode_file_key = 9;
}
+12
View File
@@ -0,0 +1,12 @@
syntax = "proto3";
package continuum.v1;
message PrintParameters {
double layer_height_mm = 1;
int32 infill_percent = 2;
string infill_pattern = 3;
double print_speed_mm_s = 4;
bool supports_enabled = 5;
int32 wall_count = 6;
}
+19
View File
@@ -0,0 +1,19 @@
syntax = "proto3";
package continuum.v1;
import "continuum/v1/material.proto";
import "continuum/v1/print_params.proto";
message Template {
string id = 1;
string name = 2;
string description = 3;
string owner_id = 4;
string model_file_key = 5;
MaterialProfile material = 6;
PrintParameters print_parameters = 7;
int64 created_at_unix = 8;
int64 updated_at_unix = 9;
repeated string tags = 10;
}