Bone configuration data
Data models
Current version · 2.0.0
Options, session information, installation results, and enums for personal bone profiles. See Bone configuration for operations.
BoneConfigCreationResult
Mode-dependent result of the unified creation entry.
Type
using BoneConfigCreationResult =
std::variant<BoneConfigInstallResult, BoneConfigSession>;auto_terminal holds BoneConfigInstallResult. external holds a movable BoneConfigSession. Use std::get for the selected alternative.
BoneConfigSessionOptions
Options for online creation and terminal preparation. Brace initialization takes side (required), then optional operator_id and service_origin, in that order.
qnbot::BoneConfigSessionOptions options{qnbot::Side::right, "operator-01"};| Field | Type | Default and description |
|---|---|---|
side | Side | Required; Side::left / Side::right |
operator_id | std::string | "default"; non-empty wearer identifier |
service_origin | std::string | SDK default measurement service; normally leave unchanged |
BoneConfigSessionInfo
Read-only session information.
| Field | Type | Description |
|---|---|---|
session_id | std::string | Session identifier |
phone_url | std::string | Temporary phone measurement link for QR or UI presentation; do not log it |
operator_id | std::string | Local wearer identifier |
side | Side | Hand being measured |
expires_at | std::string | Session expiry time |
poll_interval_seconds | std::uint64_t | Minimum polling interval in seconds |
remaining_seconds | std::uint64_t | Remaining seconds when read; not a live countdown |
BoneConfigInstallResult
Result of a successful local save.
| Field | Type | Description |
|---|---|---|
path | std::string | Saved local file path |
operator_id | std::string | Wearer identifier used for installation |
side | Side | Installed hand side |
cleanup_confirmed | bool | Whether remote cleanup was confirmed; false still means the file was saved |
BoneConfigSessionStatus
Measurement status returned by a single poll().
| Value | Meaning |
|---|---|
pending | Waiting for phone measurement |
completed | Measurement complete; call install() to save locally |
BoneConfigOverwritePolicy
Overwrite policy for saving measurement results and exporting saved profiles.
| Value | Meaning |
|---|---|
deny | Reject an existing destination, the default for export |
replace_existing | Default for saving measurements, also available for explicit export replacement |