Expand description
SDK/platform/app-version telemetry fields attached to API requests.
Constants§
- SDK_ID
- Identifies this SDK to the backend, sent as
sdk.
Functions§
- apply
- Inject telemetry fields into a request body map, clamped to the server caps.
- apply_
device - Inject the Phase-3 device dimensions (
os_version,arch,cpu_cores,memory) — activate / validate / keyless only; deactivate identifies a device, it doesn’t describe one.device_classis NEVER sent from this SDK: the server only honors it from iOS SDKs and derives desktop classes from the OS token itself. Both values are pre-validated against the server’s shape rules, so no clamping — a value that doesn’t fit is omitted, not truncated. - platform
- Compile-time platform string (parity with Swift currentPlatform()).
- sdk_
version - SDK version baked at compile time.