# Struct fields: units and defaults

Every field of every public struct, with the unit it is given in and its default. The default is what the header names, which is what the struct's `*_defaults` call sets (the library is run to check that they agree). A struct with no `*_defaults` call is zeroed by hand: where its header names another default, the cell gives both, "1 (0 in a zeroed struct)", and the [C reference](../reference.md) says what zero means for it. Where a 0 stands for a value the library works out, the cell says which, as the header does ("0: the file's own, else 30"). A value of "set" is a pointer the defaults fill in.

## sona_error_info

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `code` | `sona_result` | sona_result value | 0 |
| `message` | `const char *` | text (UTF-8), NULL: none | NULL |
| `fix` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_allocator

Declared in `sona.h`; taken by [`sona_lipsync_create`](../reference.md#sona_lipsync_create); held in [`sona_config`](#sona_config) and [`sona_players_config`](#sona_players_config).

| Field | Type | Unit | Default |
|---|---|---|---|
| `alloc` | `void *(*alloc)(void *user, size_t size, size_t align)` | a function (NULL: none) | NULL |
| `free` | `void (*free)(void *user, void *ptr, size_t size)` | a function (NULL: none) | NULL |
| `user` | `void *` | pointer | NULL |

## sona_budget

Declared in `sona.h`; held in [`sona_config`](#sona_config).

| Field | Type | Unit | Default |
|---|---|---|---|
| `total` | `size_t` | bytes | 0: no overall cap |
| `assets` | `size_t` | bytes | 256 MiB (0 in a zeroed struct) |
| `clips` | `size_t` | bytes | 32 MiB (0 in a zeroed struct) |
| `faces` | `size_t` | bytes | 64 MiB (0 in a zeroed struct) |
| `source_cache` | `size_t` | bytes | 64 MiB (0 in a zeroed struct) |
| `gpu_idle` | `size_t` | bytes | 64 MiB (0 in a zeroed struct) |

## sona_jobs

Declared in `sona.h`; held in [`sona_config`](#sona_config).

| Field | Type | Unit | Default |
|---|---|---|---|
| `user` | `void *` | pointer | NULL |
| `workers` | `uint32_t` | count | 0 |
| `run` | `void (*run)(void *user, void (*fn)(void *arg), void *arg)` | a function (NULL: none) | NULL |

## sona_http_request

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `method` | `const char *` | text (UTF-8), NULL: none | NULL |
| `url` | `const char *` | text (UTF-8), NULL: none | NULL |
| `headers` | `const char *const *` | text (UTF-8), NULL: none | NULL |
| `body` | `const void *` | pointer | NULL |
| `body_len` | `size_t` | bytes | 0 |
| `timeout_ms` | `uint32_t` | ms | 0 |

## sona_http

Declared in `sona.h`; taken by [`sona_http_platform`](../reference.md#sona_http_platform).

| Field | Type | Unit | Default |
|---|---|---|---|
| `user` | `void *` | pointer | NULL |
| `send` | `void (*send)(void *user, const sona_http_request *rq, sona_http_reply *reply)` | a function (NULL: none) | NULL |

## sona_source

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `user` | `void *` | pointer | NULL |
| `read` | `void (*read)(void *user, sona_read_kind kind, const char *name, sona_request *re` | a function (NULL: none) | NULL |
| `cancel` | `void (*cancel)(void *user, sona_request *req)` | a function (NULL: none) | NULL |
| `destroy` | `void (*destroy)(void *user)` | a function (NULL: none) | NULL |

## sona_source_desc

Declared in `sona.h`; held in [`sona_config`](#sona_config).

| Field | Type | Unit | Default |
|---|---|---|---|
| `kind` | `sona_source_kind` | sona_source_kind value | 0 |
| `location` | `const char *` | text (UTF-8), NULL: none | NULL |
| `custom` | `const sona_source *` | pointer to sona_source | NULL |

## sona_config

Declared in `sona.h`; taken by [`sona_config_defaults`](../reference.md#sona_config_defaults), [`sona_open`](../reference.md#sona_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `abi` | `uint32_t` | version number | 1 |
| `app_id` | `const char *` | text (UTF-8), NULL: none | NULL |
| `licence` | `const void *` | pointer | NULL |
| `licence_len` | `size_t` | bytes | 0 |
| `sources[SONA_MAX_SOURCES]` | `sona_source_desc` | a sona_source_desc (see its fields) | see its members |
| `source_count` | `uint32_t` | count | 0 |
| `http` | `const sona_http *` | pointer to sona_http | NULL |
| `allocator` | `sona_allocator` | a sona_allocator (see its fields) | see its members |
| `budget` | `sona_budget` | a sona_budget (see its fields) | see its members |
| `worker_threads` | `int32_t` | count | -1 |
| `jobs` | `sona_jobs` | a sona_jobs (see its fields) | see its members |
| `seed` | `uint32_t` | index or id | 0: from the clock |
| `max_avatars` | `uint32_t` | count | 256 |
| `build_budget_ms` | `float` | ms | 6 |
| `face_size` | `uint32_t` | px | 0: auto (512 up to 4 avatars, 256 up to 32, else 128) |
| `flags` | `uint32_t` | bit flags | 0 |
| `log` | `void (*log)(void *user, int level, const char *msg)` | a function (NULL: none) | NULL |
| `log_user` | `void *` | pointer | NULL |
| `check_host` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_abi_info

Declared in `sona.h`; taken by [`sona_abi_query`](../reference.md#sona_abi_query).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `abi` | `uint32_t` | version number | 0 |
| `oldest_abi` | `uint32_t` | version number | 0 |
| `major` | `uint32_t` | version number | 0 |
| `minor` | `uint32_t` | version number | 0 |
| `patch` | `uint32_t` | version number | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_event

Declared in `sona.h`; taken by [`sona_poll_event`](../reference.md#sona_poll_event).

| Field | Type | Unit | Default |
|---|---|---|---|
| `type` | `sona_event_type` | sona_event_type value | 0 |
| `avatar` | `sona_avatar *` | pointer to sona_avatar | NULL |
| `code` | `sona_result` | sona_result value | 0 |
| `message` | `const char *` | text (UTF-8), NULL: none | NULL |
| `fix` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_placement

Declared in `sona.h`; taken by [`sona_avatar_move`](../reference.md#sona_avatar_move); held in [`sona_add_options`](#sona_add_options) and [`sona_interaction_plan`](#sona_interaction_plan).

| Field | Type | Unit | Default |
|---|---|---|---|
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `turn_deg` | `float` | degrees | 0 |
| `scale` | `float` | factor (unitless) | 1 (0 in a zeroed struct) |

## sona_add_options

Declared in `sona.h`; taken by [`sona_add_defaults`](../reference.md#sona_add_defaults), [`sona_avatar_add`](../reference.md#sona_avatar_add), [`sona_avatar_add_base64`](../reference.md#sona_avatar_add_base64), [`sona_avatar_add_state`](../reference.md#sona_avatar_add_state), [`sona_avatar_add_waiting`](../reference.md#sona_avatar_add_waiting), [`sona_xsdk_add_player`](../reference.md#sona_xsdk_add_player).

| Field | Type | Unit | Default |
|---|---|---|---|
| `place` | `sona_placement` | a sona_placement (see its fields) | see its members |
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `loop` | `int` | flag (0 or 1) | 1 |
| `speed` | `float` | factor (1: as made) | 1 |
| `start_at` | `float` | s | 0 |
| `visible` | `int` | flag (0 or 1) | 1 |
| `priority` | `int32_t` | order (higher first) | 0 |

## sona_play_options

Declared in `sona.h`; taken by [`sona_avatar_play`](../reference.md#sona_avatar_play), [`sona_avatar_crossfade`](../reference.md#sona_avatar_crossfade), [`sona_avatar_queue`](../reference.md#sona_avatar_queue), [`sona_avatar_play_stock`](../reference.md#sona_avatar_play_stock).

| Field | Type | Unit | Default |
|---|---|---|---|
| `loop` | `int` | flag (0 or 1) | 1 (0 in a zeroed struct) |
| `speed` | `float` | factor (1: as made) | 1 (0 in a zeroed struct) |
| `from` | `float` | s | 0 |

## sona_capsule

Declared in `sona.h`; taken by [`sona_avatar_capsule`](../reference.md#sona_avatar_capsule).

| Field | Type | Unit | Default |
|---|---|---|---|
| `a[3]` | `float` | m (world units) | 0, 0, 0 |
| `b[3]` | `float` | m (world units) | 0, 0, 0 |
| `radius` | `float` | m (world units) | 0 |

## sona_clip_event

Declared in `sona.h`; taken by [`sona_avatar_clip_events`](../reference.md#sona_avatar_clip_events).

| Field | Type | Unit | Default |
|---|---|---|---|
| `kind` | `uint32_t` | one of the values named in the header | 0 |
| `mark` | `uint32_t` | index or id | 0 |
| `clip` | `int32_t` | index or id (-1: none) | 0 |
| `time` | `float` | s | 0 |

## sona_layer_options

Declared in `sona.h`; taken by [`sona_layer_defaults`](../reference.md#sona_layer_defaults), [`sona_avatar_layer_play`](../reference.md#sona_avatar_layer_play), [`sona_avatar_layer_blend`](../reference.md#sona_avatar_layer_blend), [`sona_avatar_layer_machine`](../reference.md#sona_avatar_layer_machine).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `mode` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `loop` | `int32_t` | flag (0 or 1) | 1 |
| `weight` | `float` | factor (unitless) | 1 |
| `fade_seconds` | `float` | s | 0.2 |
| `speed` | `float` | factor (1: as made) | 1 |
| `from` | `float` | s | 0 |
| `additive_ref` | `float` | s | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `mask` | `const float *` | pointer | NULL |

## sona_layer_info

Declared in `sona.h`; taken by [`sona_avatar_layer_info`](../reference.md#sona_avatar_layer_info).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `mode` | `uint32_t` | count | 0 |
| `state` | `int32_t` | one of the values named in the header | 0 |
| `clip` | `int32_t` | count | 0 |
| `weight` | `float` | factor (unitless) | 0 |
| `time` | `float` | s | 0 |
| `normalized` | `float` | factor (unitless) | 0 |
| `ready` | `int32_t` | flag (0 or 1) | 0 |
| `fading` | `int32_t` | flag (0 or 1) | 0 |

## sona_layer_event

Declared in `sona.h`; taken by [`sona_avatar_layer_events`](../reference.md#sona_avatar_layer_events).

| Field | Type | Unit | Default |
|---|---|---|---|
| `kind` | `uint32_t` | one of the values named in the header | 0 |
| `layer` | `uint32_t` | index or id | 0 |
| `state` | `int32_t` | one of the values named in the header | 0 |
| `from_state` | `int32_t` | one of the values named in the header | 0 |
| `time` | `float` | s | 0 |

## sona_blend_sample

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `x` | `float` | the blend space's own axis units (the parameter the host drives) | 0 |
| `y` | `float` | the blend space's own axis units (the parameter the host drives) | 0 |
| `speed` | `float` | factor (1: as made) | 0: the same as 1 |

## sona_blend_space_desc

Declared in `sona.h`; taken by [`sona_blend_space_defaults`](../reference.md#sona_blend_space_defaults), [`sona_blend_space_create`](../reference.md#sona_blend_space_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `dims` | `uint32_t` | count (1 or 2) | 1 |
| `param_x` | `const char *` | text (UTF-8), NULL: none | NULL |
| `param_y` | `const char *` | text (UTF-8), NULL: none | NULL |
| `samples` | `const sona_blend_sample *` | pointer to sona_blend_sample | NULL |
| `sample_count` | `uint32_t` | count | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `smooth_seconds` | `float` | s | 0.1 |
| `reserved` | `uint32_t` | reserved, zero | 0 |

## sona_state_desc

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `blend` | `sona_blend_space *` | pointer to sona_blend_space | NULL |
| `loop` | `int32_t` | flag (0 or 1) | 0 |
| `speed` | `float` | factor (1: as made) | 0: the same as 1 |

## sona_condition

Declared in `sona.h`; held in [`sona_transition_desc`](#sona_transition_desc).

| Field | Type | Unit | Default |
|---|---|---|---|
| `param` | `const char *` | text (UTF-8), NULL: none | NULL |
| `op` | `uint32_t` | one of the values named in the header | 0 |
| `value` | `float` | the parameter's own units | 0 |

## sona_transition_desc

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `from` | `const char *` | text (UTF-8), NULL: none | NULL |
| `to` | `const char *` | text (UTF-8), NULL: none | NULL |
| `fade_seconds` | `float` | s | 0 |
| `exit_time` | `float` | s | 0 |
| `condition_count` | `uint32_t` | count | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `conditions[SONA_CONDITION_MAX]` | `sona_condition` | a sona_condition (see its fields) | see its members |

## sona_state_machine_desc

Declared in `sona.h`; taken by [`sona_state_machine_defaults`](../reference.md#sona_state_machine_defaults), [`sona_state_machine_create`](../reference.md#sona_state_machine_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 40 |
| `state_count` | `uint32_t` | count | 0 |
| `states` | `const sona_state_desc *` | pointer to sona_state_desc | NULL |
| `transitions` | `const sona_transition_desc *` | pointer to sona_transition_desc | NULL |
| `transition_count` | `uint32_t` | count | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `initial` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_clip_info

Declared in `sona.h`; taken by [`sona_clip_get`](../reference.md#sona_clip_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `key` | `const char *` | text (UTF-8), NULL: none | NULL |
| `id` | `const char *` | text (UTF-8), NULL: none | NULL |
| `seconds` | `float` | s | 0 |
| `prop` | `int` | count | 0 |
| `caption` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_view

Declared in `sona.h`; taken by [`sona_view_defaults`](../reference.md#sona_view_defaults), [`sona_update`](../reference.md#sona_update), [`sona_draw`](../reference.md#sona_draw), [`sona_snapshot`](../reference.md#sona_snapshot), [`sona_item_preview_view`](../reference.md#sona_item_preview_view), [`sona_item_preview_draw`](../reference.md#sona_item_preview_draw), [`sona_camera_preset`](../reference.md#sona_camera_preset), [`sona_camera_fit_crowd`](../reference.md#sona_camera_fit_crowd), [`sona_camera_orbit`](../reference.md#sona_camera_orbit), [`sona_view_matrices`](../reference.md#sona_view_matrices), [`sona_draw_lit`](../reference.md#sona_draw_lit), [`sona_snapshot_lit`](../reference.md#sona_snapshot_lit), [`sona_screen_view_camera`](../reference.md#sona_screen_view_camera), [`sona_view_ray`](../reference.md#sona_view_ray), [`sona_pick_screen`](../reference.md#sona_pick_screen), [`sona_pick_gpu`](../reference.md#sona_pick_gpu), [`sona_pick_gpu_ids`](../reference.md#sona_pick_gpu_ids), [`sona_editor_view`](../reference.md#sona_editor_view), [`sona_xsdk_view`](../reference.md#sona_xsdk_view), [`sona_xsdk_frame`](../reference.md#sona_xsdk_frame), [`sona_xsdk_snapshot`](../reference.md#sona_xsdk_snapshot).

| Field | Type | Unit | Default |
|---|---|---|---|
| `eye[3]` | `double` | m (world units) | 0, 0.894, -3.75 |
| `target[3]` | `double` | m (world units) | 0, 0.894, 0 |
| `fov_deg` | `double` | degrees | 28.65 |
| `near_z` | `double` | m (world units) | 0.05 |
| `far_z` | `double` | m (world units) | 200 |
| `width` | `uint32_t` | px | 1280 |
| `height` | `uint32_t` | px | 720 |

## sona_frame_stats

Declared in `sona.h`; taken by [`sona_update`](../reference.md#sona_update).

| Field | Type | Unit | Default |
|---|---|---|---|
| `ms` | `float` | ms | 0 |
| `cpu_ms` | `float` | ms | 0 |
| `drawn` | `uint32_t` | count | 0 |
| `culled` | `uint32_t` | count | 0 |
| `draw_calls` | `uint32_t` | count | 0 |
| `built` | `uint32_t` | count | 0 |

## sona_scene_stats

Declared in `sona.h`; taken by [`sona_stats`](../reference.md#sona_stats).

| Field | Type | Unit | Default |
|---|---|---|---|
| `fps` | `float` | frames per second | 0 |
| `ms_per_frame` | `float` | ms | 0 |
| `p95_ms` | `float` | ms | 0 |
| `cpu_ms_per_frame` | `float` | ms | 0 |
| `avatars` | `uint32_t` | count | 0 |
| `ready` | `uint32_t` | flag (0 or 1) | 0 |
| `queued` | `uint32_t` | count | 0 |
| `drawn` | `uint32_t` | count | 0 |
| `draw_calls` | `uint32_t` | count | 0 |
| `geometries` | `uint32_t` | count | 0 |
| `textures` | `uint32_t` | count | 0 |
| `gpu_mb` | `float` | MB | 0 |
| `cpu_mb` | `float` | MB | 0 |
| `build_ms_avg` | `float` | ms | 0 |
| `build_ms_max` | `float` | ms | 0 |
| `long_frames` | `uint32_t` | count | 0 |

## sona_lod_options

Declared in `sona.h`; taken by [`sona_lod_defaults`](../reference.md#sona_lod_defaults), [`sona_lod_set`](../reference.md#sona_lod_set), [`sona_lod_get`](../reference.md#sona_lod_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `full_px` | `float` | px | 120 |
| `quarter_px` | `float` | px | 40 |
| `sprite_px` | `float` | px | 48 |
| `fade_seconds` | `float` | s | 0.25 |
| `sprite_angles` | `uint32_t` | count | 8 |
| `sprite_height` | `uint32_t` | px | 64 |
| `max_looks` | `uint32_t` | count | 16384 |
| `bake_ms` | `float` | ms | 4 |

## sona_lod_stats

Declared in `sona.h`; taken by [`sona_lod_stats_get`](../reference.md#sona_lod_stats_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `full` | `uint32_t` | count | 0 |
| `sampled` | `uint32_t` | count | 0 |
| `quarter` | `uint32_t` | count | 0 |
| `sprite` | `uint32_t` | count | 0 |
| `fading` | `uint32_t` | flag (0 or 1) | 0 |
| `looks` | `uint32_t` | count | 0 |
| `bakes` | `uint32_t` | count | 0 |
| `bake_ms` | `float` | ms | 0 |

## sona_texture

Declared in `sona.h`; held in [`sona_shading`](#sona_shading).

| Field | Type | Unit | Default |
|---|---|---|---|
| `key` | `uint32_t` | index or id | 0 |
| `version` | `uint32_t` | version number | 0 |
| `format` | `sona_tex_format` | sona_tex_format value | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `data` | `const void *` | pointer | NULL |
| `bytes` | `size_t` | bytes | 0 |

## sona_material

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `shader_id` | `uint32_t` | index or id | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `params[40]` | `float` | shader constants (unitless; 10 float4) | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `transparency` | `float` | factor (unitless) | 0 |
| `color_tex` | `int32_t` | index or id (-1: neutral white) | 0 |
| `intensity_tex` | `int32_t` | factor (unitless) | 0 |
| `decal_tex` | `int32_t` | index or id (-1: none) | 0 |
| `color_addr` | `uint8_t` | address mode bits (bit 0: U wraps, bit 1: V wraps) | 0 |
| `intensity_addr` | `uint8_t` | address mode bits (bit 0: U wraps, bit 1: V wraps) | 0 |
| `decal_addr` | `uint8_t` | address mode bits (bit 0: U wraps, bit 1: V wraps) | 0 |
| `pad` | `uint8_t` | reserved, zero | 0 |

## sona_mesh

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `item[SONA_ID_CHARS]` | `char` | text (UTF-8) | empty |
| `mask` | `uint32_t` | bit flags | 0 |
| `batch` | `uint32_t` | count | 0 |
| `material` | `uint32_t` | index or id | 0 |
| `pass` | `sona_pass` | sona_pass value | 0 |
| `palette` | `int32_t` | index or id | 0 |
| `vertex_count` | `uint32_t` | count | 0 |
| `index_count` | `uint32_t` | count | 0 |
| `vertices` | `const void *` | pointer | NULL |
| `indices` | `const uint16_t *` | pointer | NULL |
| `key` | `uint32_t` | index or id | 0 |

## sona_prop_palette

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `item[SONA_ID_CHARS]` | `char` | text (UTF-8) | empty |
| `playing` | `int` | flag (0 or 1) | 0 |
| `palette` | `const float *` | pointer | NULL |

## sona_pose_data

Declared in `sona.h`; taken by [`sona_pose`](../reference.md#sona_pose).

| Field | Type | Unit | Default |
|---|---|---|---|
| `build_version` | `uint32_t` | version number | 0 |
| `world[16]` | `float` | 4x4 matrix, row-vector | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `palette` | `const float *` | pointer | NULL |
| `view_joints` | `const float *` | pointer | NULL |
| `mesh_count` | `uint32_t` | count | 0 |
| `meshes` | `const sona_mesh *` | pointer to sona_mesh | NULL |
| `material_count` | `uint32_t` | count | 0 |
| `materials` | `const sona_material *` | pointer to sona_material | NULL |
| `texture_count` | `uint32_t` | count | 0 |
| `textures` | `const sona_texture *` | pointer to sona_texture | NULL |
| `prop_count` | `uint32_t` | count | 0 |
| `props` | `const sona_prop_palette *` | pointer to sona_prop_palette | NULL |
| `expression[5]` | `uint8_t` | expression index per face part | 0, 0, 0, 0, 0 |

## sona_shading

Declared in `sona.h`; taken by [`sona_shading_get`](../reference.md#sona_shading_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `irradiance` | `sona_texture` | a sona_texture (see its fields) | see its members |
| `irradiance_gain` | `float` | radians | 0 |
| `ao_gain` | `float` | factor (unitless) | 0 |
| `bloom_gain` | `float` | factor (unitless) | 0 |
| `shadow_rows[12]` | `float` | light lookup rows (unitless, 3x4) | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `rim[4]` | `float` | rim colour and power (unitless) | 0, 0, 0, 0 |

## sona_device_desc

Declared in `sona.h`; taken by [`sona_renderer_create`](../reference.md#sona_renderer_create), [`sona_renderer_reset`](../reference.md#sona_renderer_reset).

| Field | Type | Unit | Default |
|---|---|---|---|
| `backend` | `sona_backend` | sona_backend value | 0 |
| `u` | `union` | see its members | see its members |
| `frames_in_flight` | `uint32_t` | count | 0: the same as 2 |

## sona_target

Declared in `sona.h`; taken by [`sona_draw`](../reference.md#sona_draw), [`sona_item_preview_draw`](../reference.md#sona_item_preview_draw), [`sona_draw_lit`](../reference.md#sona_draw_lit), [`sona_screen_view_draw`](../reference.md#sona_screen_view_draw), [`sona_editor_draw`](../reference.md#sona_editor_draw), [`sona_editor_draw_avatar`](../reference.md#sona_editor_draw_avatar).

| Field | Type | Unit | Default |
|---|---|---|---|
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `u` | `union` | see its members | see its members |

## sona_draw_options

Declared in `sona.h`; taken by [`sona_draw`](../reference.md#sona_draw), [`sona_snapshot`](../reference.md#sona_snapshot), [`sona_item_preview_draw`](../reference.md#sona_item_preview_draw), [`sona_item_preview_snapshot`](../reference.md#sona_item_preview_snapshot), [`sona_draw_lit`](../reference.md#sona_draw_lit), [`sona_snapshot_lit`](../reference.md#sona_snapshot_lit), [`sona_screen_view_draw`](../reference.md#sona_screen_view_draw), [`sona_screen_view_snapshot`](../reference.md#sona_screen_view_snapshot), [`sona_editor_draw`](../reference.md#sona_editor_draw), [`sona_editor_draw_avatar`](../reference.md#sona_editor_draw_avatar); held in [`sona_render_options`](#sona_render_options).

| Field | Type | Unit | Default |
|---|---|---|---|
| `clear[4]` | `float` | colour, 0 to 1 per channel | 0, 0, 0, 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `credit_corner` | `sona_corner` | sona_corner value | 0 |

## sona_preview_options

Declared in `sona.h`; taken by [`sona_preview_defaults`](../reference.md#sona_preview_defaults), [`sona_item_preview_add`](../reference.md#sona_item_preview_add).

| Field | Type | Unit | Default |
|---|---|---|---|
| `gender` | `uint32_t` | one of the values named in the header | 0: the body the item was made for (male when either) |
| `slot` | `uint32_t` | index or id | 0: from the item |
| `flags` | `uint32_t` | bit flags | 0 |
| `skin` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000 |
| `colours[3]` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000, 0x00000000, 0x00000000 |
| `priority` | `int32_t` | order (higher first) | 0 |
| `time` | `float` | s | -1 |
| `margin` | `float` | factor (unitless) | 1.36 |

## sona_quality

Declared in `sona.h`; taken by [`sona_quality_defaults`](../reference.md#sona_quality_defaults), [`sona_renderer_set_quality`](../reference.md#sona_renderer_set_quality), [`sona_renderer_quality`](../reference.md#sona_renderer_quality).

| Field | Type | Unit | Default |
|---|---|---|---|
| `msaa` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 3 |

## sona_tier_options

Declared in `sona.h`; taken by [`sona_tier_defaults`](../reference.md#sona_tier_defaults), [`sona_tier_apply`](../reference.md#sona_tier_apply).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `tier` | `uint32_t` | one of the SONA_ values named | 0 |
| `target_fps` | `float` | frames per second | 60 |
| `avatars` | `uint32_t` | count | 20 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_picture

Declared in `sona.h`; taken by [`sona_pixel_art`](../reference.md#sona_pixel_art), [`sona_pixel_palette`](../reference.md#sona_pixel_palette), [`sona_sticker`](../reference.md#sona_sticker), [`sona_sheet_page`](../reference.md#sona_sheet_page).

| Field | Type | Unit | Default |
|---|---|---|---|
| `rgba` | `uint8_t *` | pointer | NULL |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |

## sona_pixel_options

Declared in `sona.h`; taken by [`sona_pixel_defaults`](../reference.md#sona_pixel_defaults), [`sona_pixel_art`](../reference.md#sona_pixel_art).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 40 |
| `height` | `uint32_t` | px | 32 |
| `colours` | `uint32_t` | count | 16 |
| `flags` | `uint32_t` | bit flags | 1 |
| `outline` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000 |
| `alpha_cut` | `float` | factor (unitless) | 0.5 |
| `palette` | `const uint32_t *` | pointer | NULL |
| `palette_count` | `uint32_t` | count | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |

## sona_sticker_options

Declared in `sona.h`; taken by [`sona_sticker_defaults`](../reference.md#sona_sticker_defaults), [`sona_sticker`](../reference.md#sona_sticker).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 56 |
| `pixels` | `uint32_t` | px | 512 |
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `time` | `float` | s | -1 |
| `turn_deg` | `float` | degrees | 0 |
| `framing` | `uint32_t` | one of the SONA_ values named | 0 |
| `outline_px` | `float` | px | 10 |
| `outline` | `uint32_t` | colour, 0xAARRGGBB | 0xFFFFFFFF |
| `shadow_px` | `float` | px | 0 |
| `shadow` | `uint32_t` | colour, 0xAARRGGBB | 0x59000000 |
| `padding` | `uint32_t` | reserved, zero | 8 |
| `flags` | `uint32_t` | bit flags | 0 |
| `draw_flags` | `uint32_t` | bit flags | 0 |

## sona_sheet_options

Declared in `sona.h`; taken by [`sona_sheet_defaults`](../reference.md#sona_sheet_defaults), [`sona_sheet_render`](../reference.md#sona_sheet_render).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 80 |
| `frames` | `uint32_t` | count | 8 |
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `from` | `float` | s | 0 |
| `to` | `float` | s | 0 |
| `directions` | `uint32_t` | count | 8 |
| `first_deg` | `float` | degrees | 0 |
| `pitch_deg` | `float` | degrees | 0 |
| `fov_deg` | `float` | degrees | 0: orthographic |
| `px_per_metre` | `float` | m (world units) | 64 |
| `padding` | `uint32_t` | reserved, zero | 2 |
| `max_page` | `uint32_t` | count | 4096 |
| `flags` | `uint32_t` | bit flags | 0 |
| `draw_flags` | `uint32_t` | bit flags | 2 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `pixel` | `const sona_pixel_options *` | pointer to sona_pixel_options | NULL |

## sona_sheet_frame

Declared in `sona.h`; taken by [`sona_sheet_frame_get`](../reference.md#sona_sheet_frame_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `page` | `uint32_t` | index or id | 0 |
| `x` | `uint32_t` | px | 0 |
| `y` | `uint32_t` | px | 0 |
| `w` | `uint32_t` | px | 0 |
| `h` | `uint32_t` | px | 0 |
| `trim_x` | `uint32_t` | px | 0 |
| `trim_y` | `uint32_t` | px | 0 |
| `cell_w` | `uint32_t` | px | 0 |
| `cell_h` | `uint32_t` | px | 0 |
| `pivot_x` | `float` | px | 0 |
| `pivot_y` | `float` | px | 0 |
| `direction` | `uint32_t` | one of the values named in the header | 0 |
| `frame` | `uint32_t` | index or id | 0 |
| `facing_deg` | `float` | degrees | 0 |
| `time` | `float` | s | 0 |
| `duration_ms` | `uint32_t` | s | 0 |
| `alias` | `uint32_t` | index or id | 0 |

## sona_guid

Declared in `sona.h`; taken by [`sona_slot_of`](../reference.md#sona_slot_of), [`sona_guid_parse`](../reference.md#sona_guid_parse), [`sona_guid_format`](../reference.md#sona_guid_format), [`sona_manifest_wear`](../reference.md#sona_manifest_wear), [`sona_catalogue_find_guid`](../reference.md#sona_catalogue_find_guid), [`sona_custom_item_add`](../reference.md#sona_custom_item_add), [`sona_custom_item_remove`](../reference.md#sona_custom_item_remove), [`sona_custom_item_find`](../reference.md#sona_custom_item_find), [`sona_guid_is_custom`](../reference.md#sona_guid_is_custom), [`sona_guid_pair`](../reference.md#sona_guid_pair), [`sona_custom_item_new_id`](../reference.md#sona_custom_item_new_id), [`sona_avatar_missing_items`](../reference.md#sona_avatar_missing_items), [`sona_make_variant`](../reference.md#sona_make_variant), [`sona_outfit_clash`](../reference.md#sona_outfit_clash), [`sona_outfit_conflicts`](../reference.md#sona_outfit_conflicts), [`sona_outfit_set_of`](../reference.md#sona_outfit_set_of), [`sona_filter_item`](../reference.md#sona_filter_item), [`sona_filter_tag_set`](../reference.md#sona_filter_tag_set), [`sona_filter_item_tags`](../reference.md#sona_filter_item_tags), [`sona_filter_allows`](../reference.md#sona_filter_allows), [`sona_filter_check`](../reference.md#sona_filter_check), [`sona_prop_pet`](../reference.md#sona_prop_pet); held in [`sona_asset_ref`](#sona_asset_ref) and [`sona_face_record`](#sona_face_record).

| Field | Type | Unit | Default |
|---|---|---|---|
| `b[16]` | `uint8_t` | bytes | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_asset_ref

Declared in `sona.h`; held in [`sona_manifest`](#sona_manifest).

| Field | Type | Unit | Default |
|---|---|---|---|
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `mask` | `uint16_t` | bytes | 0 |
| `pad` | `uint16_t` | reserved, zero | 0 |
| `colours[3]` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000, 0x00000000, 0x00000000 |

## sona_face_record

Declared in `sona.h`; held in [`sona_manifest`](#sona_manifest).

| Field | Type | Unit | Default |
|---|---|---|---|
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `words[4]` | `uint32_t` | raw words of the manifest | 0, 0, 0, 0 |

## sona_manifest

Declared in `sona.h`; taken by [`sona_manifest_parse`](../reference.md#sona_manifest_parse), [`sona_manifest_write`](../reference.md#sona_manifest_write), [`sona_manifest_wear`](../reference.md#sona_manifest_wear), [`sona_manifest_unwear`](../reference.md#sona_manifest_unwear), [`sona_manifest_undress_all`](../reference.md#sona_manifest_undress_all), [`sona_manifest_set_colour`](../reference.md#sona_manifest_set_colour), [`sona_manifest_set_gender`](../reference.md#sona_manifest_set_gender), [`sona_manifest_set_shape`](../reference.md#sona_manifest_set_shape), [`sona_manifest_ready_for_xbox`](../reference.md#sona_manifest_ready_for_xbox), [`sona_filter_manifest`](../reference.md#sona_filter_manifest).

| Field | Type | Unit | Default |
|---|---|---|---|
| `version` | `uint32_t` | version number | 0 |
| `weight` | `float` | body shape factor (unitless) | 0 |
| `height` | `float` | body shape factor (unitless) | 0 |
| `chin` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `nose` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `ears` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `face[6]` | `sona_face_record` | a sona_face_record (see its fields) | see its members |
| `colours[9]` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 |
| `figure_a` | `sona_asset_ref` | a sona_asset_ref (see its fields) | see its members |
| `figure_b` | `sona_asset_ref` | a sona_asset_ref (see its fields) | see its members |
| `worn[13]` | `sona_asset_ref` | a sona_asset_ref (see its fields) | see its members |
| `required[4]` | `sona_asset_ref` | a sona_asset_ref (see its fields) | see its members |
| `blob5[5]` | `uint8_t` | bytes | 0, 0, 0, 0, 0 |
| `pad_xuid[3]` | `uint8_t` | reserved, zero | 0, 0, 0 |
| `xuid` | `uint64_t` | index or id | 0 |
| `padding[91]` | `uint8_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `gender` | `uint32_t` | one of the values named in the header | 0 |
| `valid` | `int` | flag (0 or 1) | 0 |

## sona_credit

Declared in `sona.h`; taken by [`sona_credit_get`](../reference.md#sona_credit_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `text` | `const char *` | text (UTF-8), NULL: none | NULL |
| `url` | `const char *` | text (UTF-8), NULL: none | NULL |
| `rgba` | `const uint8_t *` | pointer | NULL |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |

## sona_item_info

Declared in `sona.h`; taken by [`sona_catalogue_get`](../reference.md#sona_catalogue_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `guid` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `id[SONA_ID_CHARS]` | `char` | text (UTF-8) | empty |
| `kind` | `uint8_t` | one of the SONA_ values named | 0 |
| `gender` | `uint8_t` | one of the values named in the header | 0 |
| `section` | `uint8_t` | sona_section value | 0 |
| `mask` | `uint32_t` | bit flags | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `route` | `sona_route` | sona_route value | 0 |
| `colour_set` | `uint32_t` | one of the SONA_ values named | 0 |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `game` | `const char *` | text (UTF-8), NULL: none | NULL |
| `type` | `const char *` | text (UTF-8), NULL: none | NULL |
| `family` | `const char *` | text (UTF-8), NULL: none | NULL |
| `description` | `const char *` | text (UTF-8), NULL: none | NULL |
| `subcategory` | `uint16_t` | one of the values named in the header | 0 |
| `colour_choices` | `uint8_t` | count | 0 |
| `texture_type` | `uint8_t` | one of the values named in the header | 0 |
| `shape_type` | `uint8_t` | one of the values named in the header | 0 |
| `pad[3]` | `uint8_t` | reserved, zero | 0, 0, 0 |

## sona_catalogue_query

Declared in `sona.h`; taken by [`sona_catalogue_search`](../reference.md#sona_catalogue_search), [`sona_filter_search`](../reference.md#sona_filter_search).

| Field | Type | Unit | Default |
|---|---|---|---|
| `text` | `const char *` | text (UTF-8), NULL: none | NULL |
| `game` | `const char *` | text (UTF-8), NULL: none | NULL |
| `slots` | `uint32_t` | bit flags | 0: any |
| `section` | `uint32_t` | one of the values named in the header | 0: any |
| `gender` | `uint32_t` | one of the values named in the header | 0: any |
| `require` | `uint32_t` | one of the SONA_ values named | 0 |
| `exclude` | `uint32_t` | one of the SONA_ values named | 0 |
| `offset` | `uint32_t` | m (world units) | 0 |

## sona_custom_item_info

Declared in `sona.h`; taken by [`sona_custom_item_check`](../reference.md#sona_custom_item_check), [`sona_custom_item_get`](../reference.md#sona_custom_item_get), [`sona_custom_item_find`](../reference.md#sona_custom_item_find).

| Field | Type | Unit | Default |
|---|---|---|---|
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `mask` | `uint32_t` | index or id | 0 |
| `body` | `uint32_t` | count | 0 |
| `version` | `uint32_t` | version number | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `template_id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `sha256[32]` | `uint8_t` | bytes | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `template_sha256[32]` | `uint8_t` | bytes | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `surface_count` | `uint32_t` | count | 0 |
| `texture_count` | `uint32_t` | count | 0 |
| `colourway_count` | `uint32_t` | count | 0 |
| `bytes` | `uint32_t` | bytes | 0 |
| `name[196]` | `char` | text (UTF-8) | empty |
| `creator[196]` | `char` | text (UTF-8) | empty |
| `reserved[16]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_paint_image

Declared in `sona.h`; held in [`sona_paint_surface`](#sona_paint_surface).

| Field | Type | Unit | Default |
|---|---|---|---|
| `rgba` | `const uint8_t *` | pointer | NULL |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |

## sona_paint_surface

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `color` | `sona_paint_image` | a sona_paint_image (see its fields) | see its members |
| `regions` | `sona_paint_image` | a sona_paint_image (see its fields) | see its members |
| `decal` | `sona_paint_image` | a sona_paint_image (see its fields) | see its members |

## sona_paint_spec

Declared in `sona.h`; taken by [`sona_custom_item_pack`](../reference.md#sona_custom_item_pack).

| Field | Type | Unit | Default |
|---|---|---|---|
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `template_id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `version` | `uint32_t` | version number | 0: the same as 1 |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `description` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `creator` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `created` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `licence` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `surfaces` | `const sona_paint_surface *` | pointer to sona_paint_surface | NULL |
| `surface_count` | `uint32_t` | count | 0 |
| `colourway_count` | `uint32_t` | count | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_mesh_item_spec

Declared in `sona.h`; taken by [`sona_mesh_item_spec_defaults`](../reference.md#sona_mesh_item_spec_defaults), [`sona_custom_item_pack_mesh`](../reference.md#sona_custom_item_pack_mesh).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 136 |
| `flags` | `uint32_t` | bit flags | 0 |
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `template_id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `version` | `uint32_t` | version number | 0: the same as 1 |
| `reserved0` | `uint32_t` | reserved, zero | 0 |
| `glb` | `const void *` | pointer | NULL |
| `glb_len` | `size_t` | bytes | 0 |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `description` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `creator` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `created` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `licence` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_lipsync_options

Declared in `sona.h`; taken by [`sona_lipsync_defaults`](../reference.md#sona_lipsync_defaults), [`sona_lipsync_create`](../reference.md#sona_lipsync_create), [`sona_lipsync_phonemes`](../reference.md#sona_lipsync_phonemes), [`sona_lipsync_text`](../reference.md#sona_lipsync_text).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `sample_rate` | `uint32_t` | Hz | 48000 |
| `channels` | `uint32_t` | count | 1 |
| `format` | `uint32_t` | one of the SONA_ values named | 0 |
| `hold_seconds` | `float` | s | 0.07 |
| `attack_seconds` | `float` | s | 0.02 |
| `release_seconds` | `float` | s | 0.07 |
| `gate_db` | `float` | dB | -55 |
| `lead_seconds` | `float` | s | 0.04 |
| `flags` | `uint32_t` | bit flags | 0 |
| `reserved[6]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0 |

## sona_lipsync_frame

Declared in `sona.h`; taken by [`sona_lipsync_read`](../reference.md#sona_lipsync_read), [`sona_lipsync_current`](../reference.md#sona_lipsync_current), [`sona_mouth_keys_sample`](../reference.md#sona_mouth_keys_sample).

| Field | Type | Unit | Default |
|---|---|---|---|
| `time` | `double` | s | 0 |
| `mouth` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `open` | `float` | factor (unitless) | 0 |
| `level_db` | `float` | dB | 0 |
| `weights[8]` | `float` | factor (unitless) | 0, 0, 0, 0, 0, 0, 0, 0 |
| `f1` | `float` | Hz | 0 |
| `f2` | `float` | Hz | 0 |
| `reserved[2]` | `uint32_t` | reserved, zero | 0, 0 |

## sona_phoneme

Declared in `sona.h`; taken by [`sona_lipsync_hint`](../reference.md#sona_lipsync_hint), [`sona_lipsync_phonemes`](../reference.md#sona_lipsync_phonemes).

| Field | Type | Unit | Default |
|---|---|---|---|
| `symbol` | `const char *` | text (UTF-8), NULL: none | NULL |
| `start` | `float` | s | 0 |
| `end` | `float` | s | 0 |

## sona_mouth_key

Declared in `sona.h`; taken by [`sona_lipsync_phonemes`](../reference.md#sona_lipsync_phonemes), [`sona_lipsync_text`](../reference.md#sona_lipsync_text), [`sona_mouth_keys_sample`](../reference.md#sona_mouth_keys_sample).

| Field | Type | Unit | Default |
|---|---|---|---|
| `time` | `float` | s | 0 |
| `mouth` | `uint32_t` | one of the values named in the header | 0 |
| `open` | `float` | factor (unitless) | 0 |
| `flags` | `uint32_t` | bit flags | 0 |

## sona_voice_mouth

Declared in `sona.h`; taken by [`sona_voice_mouth_init`](../reference.md#sona_voice_mouth_init), [`sona_voice_mouth_step`](../reference.md#sona_voice_mouth_step), [`sona_avatar_voice`](../reference.md#sona_avatar_voice), [`sona_voice_mouths`](../reference.md#sona_voice_mouths).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `seed` | `uint32_t` | index or id | 0 |
| `word[4]` | `uint32_t` | internal state, do not touch | 0, 0, 0, 0 |
| `value[8]` | `float` | internal state, do not touch | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_headless_options

Declared in `sona.h`; taken by [`sona_headless_defaults`](../reference.md#sona_headless_defaults), [`sona_headless_devices`](../reference.md#sona_headless_devices), [`sona_headless_open`](../reference.md#sona_headless_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `device` | `uint32_t` | sona_device_kind value | 0 |
| `backend` | `sona_backend` | sona_backend value | 0: Vulkan, then GL (EGL, Linux), then D3D11 (Windows) or Metal (Apple) |
| `adapter` | `int32_t` | index or id | -1 |
| `flags` | `uint32_t` | bit flags | 0 |
| `batch_in_flight` | `uint32_t` | count | 8 |
| `wait_seconds` | `float` | s | 60 |
| `reserved[9]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_headless_info

Declared in `sona.h`; taken by [`sona_headless_devices`](../reference.md#sona_headless_devices), [`sona_headless_info_get`](../reference.md#sona_headless_info_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `backend` | `sona_backend` | sona_backend value | 0 |
| `software` | `uint32_t` | flag (0 or 1) | 0 |
| `type` | `uint32_t` | count | 0 |
| `vendor_id` | `uint32_t` | index or id | 0 |
| `device_id` | `uint32_t` | index or id | 0 |
| `name[256]` | `char` | text (UTF-8) | empty |
| `driver[128]` | `char` | text (UTF-8) | empty |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_render_options

Declared in `sona.h`; taken by [`sona_render_defaults`](../reference.md#sona_render_defaults), [`sona_headless_render`](../reference.md#sona_headless_render), [`sona_headless_render_manifest`](../reference.md#sona_headless_render_manifest), [`sona_headless_batch`](../reference.md#sona_headless_batch), [`sona_headless_sequence`](../reference.md#sona_headless_sequence), [`sona_headless_record`](../reference.md#sona_headless_record).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 104 |
| `width` | `uint32_t` | px | 256 |
| `height` | `uint32_t` | px | 256 |
| `preset` | `sona_preset` | sona_preset value | 0 |
| `yaw_deg` | `float` | degrees | 0 |
| `pitch_deg` | `float` | degrees | 0 |
| `zoom` | `float` | factor (unitless) | 1 |
| `turn_deg` | `float` | degrees | 0 |
| `time` | `float` | s | 0 |
| `draw` | `sona_draw_options` | a sona_draw_options (see its fields) | see its members |
| `flags` | `uint32_t` | bit flags | 0 |
| `clip` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_sequence_options

Declared in `sona.h`; taken by [`sona_sequence_defaults`](../reference.md#sona_sequence_defaults), [`sona_headless_sequence`](../reference.md#sona_headless_sequence), [`sona_headless_record`](../reference.md#sona_headless_record).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 52 |
| `frames` | `uint32_t` | count | 0: the clip's length at fps |
| `fps` | `float` | frames per second | 30 |
| `turn_deg` | `float` | degrees | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_video_options

Declared in `sona.h`; taken by [`sona_video_defaults`](../reference.md#sona_video_defaults), [`sona_video_open`](../reference.md#sona_video_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 80 |
| `format` | `sona_video_format` | sona_video_format value | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `fps` | `float` | frames per second | 30 |
| `loops` | `uint32_t` | count (0: forever) | 0 |
| `quality` | `uint32_t` | factor (unitless) | 0: 18 for H.264, 30 for VP9 and AV1 |
| `background` | `uint32_t` | colour, 0xAARRGGBB | 0xFF000000 |
| `flags` | `uint32_t` | bit flags | 0 |
| `colours` | `uint32_t` | count | 0: the same as 256 |
| `ffmpeg` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_vrm_face

Declared in `sona.h`; taken by [`sona_vrm_face_default`](../reference.md#sona_vrm_face_default).

| Field | Type | Unit | Default |
|---|---|---|---|
| `expression` | `uint32_t` | one of the values named in the header | 0 |
| `parts[5]` | `uint8_t` | expression index per face part | 0, 0, 0, 0, 0 |
| `pad[3]` | `uint8_t` | reserved, zero | 0, 0, 0 |

## sona_export_options

Declared in `sona.h`; taken by [`sona_export_defaults`](../reference.md#sona_export_defaults), [`sona_export_avatar`](../reference.md#sona_export_avatar).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 160 |
| `format` | `uint32_t` | one of the SONA_ values named | 1 |
| `flags` | `uint32_t` | bit flags | 0 |
| `bone_names` | `uint32_t` | sona_skeleton_kind value | 0 |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `version` | `const char *` | text (UTF-8), NULL: none | NULL |
| `authors` | `const char *` | text (UTF-8), NULL: none | NULL |
| `copyright` | `const char *` | text (UTF-8), NULL: none | NULL |
| `contact` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `references` | `const char *` | text (UTF-8), NULL: none | NULL |
| `third_party_licences` | `const char *` | text (UTF-8), NULL: none | NULL |
| `licence_url` | `const char *` | text (UTF-8), NULL: none | NULL |
| `other_licence_url` | `const char *` | text (UTF-8), NULL: none | NULL |
| `avatar_permission` | `uint32_t` | one of the SONA_ values named | 0 |
| `commercial_usage` | `uint32_t` | one of the SONA_ values named | 0 |
| `modification` | `uint32_t` | one of the SONA_ values named | 0 |
| `allow` | `uint32_t` | one of the SONA_ values named | 0: nothing allowed, credit required |
| `thumbnail_png` | `const void *` | pointer | NULL |
| `thumbnail_len` | `size_t` | bytes | 0 |
| `faces` | `const sona_vrm_face *` | pointer to sona_vrm_face | NULL |
| `face_count` | `uint32_t` | count | 0 |
| `reserved[7]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0 |

## sona_export_report

Declared in `sona.h`; taken by [`sona_export_avatar`](../reference.md#sona_export_avatar).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `meshes` | `uint32_t` | count | 0 |
| `primitives` | `uint32_t` | count | 0 |
| `vertices` | `uint32_t` | count | 0 |
| `triangles` | `uint32_t` | count | 0 |
| `degenerate` | `uint32_t` | count | 0 |
| `textures` | `uint32_t` | count | 0 |
| `expressions` | `uint32_t` | count | 0 |
| `atlas_cells` | `uint32_t` | count | 0 |
| `baked` | `uint32_t` | count | 0 |
| `bake_error` | `float` | colour levels, 0 to 255 | 0 |
| `ms` | `float` | ms | 0 |

## sona_print_options

Declared in `sona.h`; taken by [`sona_print_defaults`](../reference.md#sona_print_defaults), [`sona_print_avatars`](../reference.md#sona_print_avatars), [`sona_print_triangles`](../reference.md#sona_print_triangles).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `flags` | `uint32_t` | bit flags | 0 |
| `height_mm` | `float` | mm | 120 |
| `mm_per_metre` | `float` | mm per metre (1:12 is 83.33) | 0: from height_mm |
| `min_wall_mm` | `float` | mm | 1.2 |
| `voxel_mm` | `float` | mm | 0: min_wall_mm / 2.5, grown to fit max_voxels |
| `close_mm` | `float` | mm | 0.6 |
| `base_height_mm` | `float` | mm | 3 |
| `base_margin_mm` | `float` | mm | 4 |
| `base_colour` | `uint32_t` | colour, 0xAARRGGBB | 0xFF3C3C3C |
| `max_voxels` | `uint32_t` | count | 24000000 |
| `reserved[5]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0 |

## sona_print_mesh

Declared in `sona.h`; taken by [`sona_print_get`](../reference.md#sona_print_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `vertex_count` | `uint32_t` | count | 0 |
| `triangle_count` | `uint32_t` | count | 0 |
| `shells` | `uint32_t` | count | 0 |
| `volume_mm3` | `float` | mm³ | 0 |
| `area_mm2` | `float` | mm² | 0 |
| `positions` | `const float *` | pointer | NULL |
| `colours` | `const uint32_t *` | pointer | NULL |
| `indices` | `const uint32_t *` | pointer | NULL |
| `lo[3]` | `float` | mm | 0, 0, 0 |
| `hi[3]` | `float` | mm | 0, 0, 0 |
| `mm_per_metre` | `float` | mm per metre | 0 |
| `min_wall_mm` | `float` | mm | 0 |
| `voxel_mm` | `float` | mm | 0 |
| `reserved[3]` | `uint32_t` | reserved, zero | 0, 0, 0 |

## sona_print_report

Declared in `sona.h`; taken by [`sona_print_check`](../reference.md#sona_print_check).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `vertices` | `uint32_t` | count | 0 |
| `triangles` | `uint32_t` | count | 0 |
| `edges` | `uint32_t` | count | 0 |
| `boundary_edges` | `uint32_t` | count | 0 |
| `nonmanifold_edges` | `uint32_t` | count | 0 |
| `flipped_edges` | `uint32_t` | count | 0 |
| `nonmanifold_vertices` | `uint32_t` | count | 0 |
| `degenerate` | `uint32_t` | count | 0 |
| `self_intersections` | `uint32_t` | count | 0 |
| `shells` | `uint32_t` | count | 0 |
| `euler` | `int32_t` | count | 0 |
| `volume_mm3` | `double` | mm³ | 0 |
| `area_mm2` | `double` | mm² | 0 |
| `lo[3]` | `float` | mm | 0, 0, 0 |
| `hi[3]` | `float` | mm | 0, 0, 0 |
| `ok` | `uint32_t` | flag (0 or 1) | 0 |
| `reserved[5]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0 |

## sona_stock_clip

Declared in `sona.h`; taken by [`sona_stock_clip_at`](../reference.md#sona_stock_clip_at), [`sona_stock_clip_get`](../reference.md#sona_stock_clip_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `id` | `uint32_t` | one of the SONA_ values named | 0 |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `family` | `const char *` | text (UTF-8), NULL: none | NULL |
| `asset_id` | `const char *` | text (UTF-8), NULL: none | NULL |
| `caption` | `const char *` | text (UTF-8), NULL: none | NULL |
| `tags` | `uint32_t` | one of the SONA_ values named | 0 |
| `body` | `uint32_t` | one of the values named in the header | 0 |
| `frames` | `uint32_t` | count | 0 |
| `fps` | `float` | frames per second | 0 |
| `seconds` | `float` | s | 0 |
| `same_as` | `uint32_t` | one of the SONA_ values named | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_idle_options

Declared in `sona.h`; taken by [`sona_idle_defaults`](../reference.md#sona_idle_defaults), [`sona_avatar_idle`](../reference.md#sona_avatar_idle), [`sona_avatar_idle_get`](../reference.md#sona_avatar_idle_get), [`sona_idle_sample`](../reference.md#sona_idle_sample).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 32 |
| `parts` | `uint32_t` | one of the SONA_ values named | 15 |
| `seed` | `uint32_t` | index or id | 0: from the ctx seed and the avatar id |
| `amount` | `float` | factor (unitless) | 1 |
| `face_px` | `float` | px | 240 |
| `reserved[3]` | `uint32_t` | reserved, zero | 0, 0, 0 |

## sona_idle_state

Declared in `sona.h`; taken by [`sona_avatar_idle_state`](../reference.md#sona_avatar_idle_state), [`sona_idle_sample`](../reference.md#sona_idle_sample).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `blink` | `float` | factor (unitless) | 0 |
| `gaze[2]` | `float` | degrees | 0, 0 |
| `shift` | `float` | factor (unitless) | 0 |
| `breath` | `float` | factor (unitless) | 0 |
| `reserved[2]` | `uint32_t` | reserved, zero | 0, 0 |

## sona_ik_target

Declared in `sona.h`; taken by [`sona_ik_target_defaults`](../reference.md#sona_ik_target_defaults), [`sona_avatar_ik_target`](../reference.md#sona_avatar_ik_target).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 92 |
| `flags` | `uint32_t` | bit flags | 0 |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 1 |
| `pole[3]` | `float` | m (world units) | 0, 0, 0 |
| `joint` | `int32_t` | one of the SONA_ values named | -1 |
| `weight` | `float` | factor (unitless) | 1 |
| `fade_seconds` | `float` | s | 0.2 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_feet

Declared in `sona.h`; taken by [`sona_ik_feet_defaults`](../reference.md#sona_ik_feet_defaults), [`sona_avatar_ik_feet`](../reference.md#sona_avatar_ik_feet).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 88 |
| `ground` | `uint32_t` | one of the SONA_ values named | 1 |
| `plane[4]` | `float` | plane: normal (unitless) and distance in m | 0, 1, 0, 0 |
| `query` | `sona_ik_ground_fn` | a function (NULL: none) | NULL |
| `user` | `void *` | pointer | NULL |
| `weight` | `float` | factor (unitless) | 1 |
| `max_hips_offset` | `float` | count | 0.45 |
| `max_tilt_deg` | `float` | degrees | 35 |
| `smoothing` | `float` | factor (unitless) | 0.1 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_look

Declared in `sona.h`; taken by [`sona_ik_look_defaults`](../reference.md#sona_ik_look_defaults), [`sona_avatar_ik_look`](../reference.md#sona_avatar_ik_look).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 80 |
| `flags` | `uint32_t` | bit flags | 3 |
| `target[3]` | `float` | m (world units) | 0, 0, 0 |
| `weight` | `float` | factor (unitless) | 1 |
| `max_yaw_deg` | `float` | degrees | 70 |
| `max_up_deg` | `float` | degrees | 35 |
| `max_down_deg` | `float` | degrees | 45 |
| `smoothing` | `float` | factor (unitless) | 0.15 |
| `max_speed_deg` | `float` | degrees per second | 360 |
| `eye_threshold_deg` | `float` | degrees | 10 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_limits

Declared in `sona.h`; taken by [`sona_ik_limits_defaults`](../reference.md#sona_ik_limits_defaults), [`sona_avatar_ik_limits`](../reference.md#sona_avatar_ik_limits).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 72 |
| `flags` | `uint32_t` | bit flags | 0 |
| `elbow_max_deg` | `float` | degrees | 145 |
| `knee_max_deg` | `float` | degrees | 150 |
| `wrist_swing_deg` | `float` | degrees | 75 |
| `wrist_twist_deg` | `float` | degrees | 80 |
| `ankle_swing_deg` | `float` | degrees | 45 |
| `ankle_twist_deg` | `float` | degrees | 30 |
| `soft_reach` | `float` | factor (unitless) | 0.97 |
| `body_margin` | `float` | m (world units) | 0.02 |
| `hip_forward_deg` | `float` | degrees | 120 |
| `hip_back_deg` | `float` | degrees | 25 |
| `hip_out_deg` | `float` | degrees | 45 |
| `hip_in_deg` | `float` | degrees | 25 |
| `shoulder_back_deg` | `float` | degrees | 45 |
| `shoulder_across_deg` | `float` | degrees | 50 |
| `reserved[2]` | `uint32_t` | reserved, zero | 0, 0 |

## sona_ik_status

Declared in `sona.h`; taken by [`sona_avatar_ik_status`](../reference.md#sona_avatar_ik_status).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `active` | `uint32_t` | one of the SONA_ values named | 0 |
| `error[4]` | `float` | m (world units) | 0, 0, 0, 0 |
| `hit[4]` | `uint32_t` | one of the SONA_ values named | 0, 0, 0, 0 |
| `hips_offset` | `float` | m (world units) | 0 |
| `look_yaw_deg` | `float` | degrees | 0 |
| `look_pitch_deg` | `float` | degrees | 0 |
| `eyes[2]` | `uint8_t` | expression index per eye (255: the clip's) | 0, 0 |
| `pad[2]` | `uint8_t` | reserved, zero | 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_foot_lock

Declared in `sona.h`; taken by [`sona_ik_foot_lock_defaults`](../reference.md#sona_ik_foot_lock_defaults), [`sona_avatar_ik_foot_lock`](../reference.md#sona_avatar_ik_foot_lock).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 52 |
| `flags` | `uint32_t` | bit flags | 0 |
| `weight` | `float` | factor (unitless) | 1 |
| `max_slide` | `float` | count | 0.25 |
| `release_seconds` | `float` | s | 0.15 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_spine

Declared in `sona.h`; taken by [`sona_ik_spine_defaults`](../reference.md#sona_ik_spine_defaults), [`sona_avatar_ik_spine`](../reference.md#sona_avatar_ik_spine).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 56 |
| `flags` | `uint32_t` | bit flags | 0 |
| `weight` | `float` | factor (unitless) | 1 |
| `max_bend_deg` | `float` | degrees | 35 |
| `max_twist_deg` | `float` | degrees | 40 |
| `hips_share` | `float` | factor (unitless) | 0.2 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_fingers

Declared in `sona.h`; taken by [`sona_ik_fingers_defaults`](../reference.md#sona_ik_fingers_defaults), [`sona_avatar_ik_fingers`](../reference.md#sona_avatar_ik_fingers).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 72 |
| `flags` | `uint32_t` | bit flags | 0 |
| `curl[5]` | `float` | index or id | 0, 0, 0, 0, 0 |
| `spread` | `float` | factor (unitless, -1 to 1) | 0 |
| `weight` | `float` | factor (unitless) | 1 |
| `fade_seconds` | `float` | s | 0.15 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ik_eyes

Declared in `sona.h`; taken by [`sona_ik_eyes_defaults`](../reference.md#sona_ik_eyes_defaults), [`sona_avatar_ik_eyes`](../reference.md#sona_avatar_ik_eyes).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 52 |
| `flags` | `uint32_t` | bit flags | 0 |
| `max_speed_deg` | `float` | degrees per second | 400 |
| `smoothing` | `float` | factor (unitless) | 0.05 |
| `lead_seconds` | `float` | s | 0.08 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_bone_map

Declared in `sona.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `source` | `const char *` | text (UTF-8), NULL: none | NULL |
| `joint` | `const char *` | text (UTF-8), NULL: none | NULL |

## sona_import_options

Declared in `sona.h`; taken by [`sona_import_defaults`](../reference.md#sona_import_defaults), [`sona_anim_file_load`](../reference.md#sona_anim_file_load), [`sona_anim_file_open`](../reference.md#sona_anim_file_open), [`sona_clip_import`](../reference.md#sona_clip_import).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 96 |
| `format` | `uint32_t` | bytes | 0 |
| `key` | `const char *` | text (UTF-8), NULL: none | NULL |
| `take` | `const char *` | text (UTF-8), NULL: none | NULL |
| `take_index` | `uint32_t` | index or id | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `map` | `const sona_bone_map *` | pointer to sona_bone_map | NULL |
| `map_count` | `uint32_t` | count | 0 |
| `fps` | `float` | frames per second | 0: the file's own, else 30 |
| `start` | `float` | s | 0 |
| `end` | `float` | s | 0 |
| `root_scale` | `float` | factor (unitless) | 0: avatar legs / source legs |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_import_info

Declared in `sona.h`; taken by [`sona_clip_import`](../reference.md#sona_clip_import), [`sona_clip_imported_get`](../reference.md#sona_clip_imported_get), [`sona_clip_imported_find`](../reference.md#sona_clip_imported_find).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `format` | `uint32_t` | count | 0 |
| `naming` | `uint32_t` | count | 0 |
| `bones` | `uint32_t` | count | 0 |
| `takes` | `uint32_t` | count | 0 |
| `mapped` | `uint32_t` | count | 0 |
| `frames` | `uint32_t` | count | 0 |
| `fps` | `float` | frames per second | 0 |
| `seconds` | `float` | s | 0 |
| `root_scale` | `float` | factor (unitless) | 0 |
| `id` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `key[64]` | `char` | text (UTF-8) | empty |
| `take[64]` | `char` | text (UTF-8) | empty |
| `joint_bone[SONA_JOINT_COUNT]` | `int16_t` | index or id (-1: none) | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `reserved[16]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_players_config

Declared in `sona.h`; taken by [`sona_players_defaults`](../reference.md#sona_players_defaults), [`sona_players_open`](../reference.md#sona_players_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 136 |
| `max_players` | `uint32_t` | count | 0: the same as 2048 |
| `refresh_s` | `uint32_t` | s | 0: 600, the lookup's own cache time |
| `per_hour` | `uint32_t` | count (requests an hour) | 0: 60, the lookup's limit per address |
| `in_flight` | `uint32_t` | count | 0: 4, at most 16 |
| `timeout_ms` | `uint32_t` | ms | 0: the same as 15000 |
| `host` | `const char *` | text (UTF-8), NULL: none | NULL |
| `client` | `const char *` | text (UTF-8), NULL: none | NULL |
| `http` | `const sona_http *` | pointer to sona_http | NULL |
| `cache_dir` | `const char *` | text (UTF-8), NULL: none | NULL |
| `placeholder` | `const uint8_t *` | pointer | NULL |
| `clock` | `double (*clock)(void *user)` | a function (NULL: none) | NULL |
| `clock_user` | `void *` | pointer | NULL |
| `allocator` | `sona_allocator` | a sona_allocator (see its fields) | see its members |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_player_look

Declared in `sona.h`; taken by [`sona_players_look`](../reference.md#sona_players_look).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `state` | `sona_player_state` | sona_player_state value | 0 |
| `error` | `sona_result` | sona_result value | 0 |
| `placeholder` | `uint32_t` | flag (0 or 1) | 0 |
| `fetched_at` | `double` | s | 0: never |
| `checked_at` | `double` | s | 0: never |
| `next_check` | `double` | s | 0: none planned (not watched, or final) |
| `manifest[SONA_MANIFEST_BYTES]` | `uint8_t` | bytes | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `version[33]` | `char` | text (UTF-8) | empty |
| `name[95]` | `char` | text (UTF-8) | empty |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_player_event

Declared in `sona.h`; taken by [`sona_players_poll`](../reference.md#sona_players_poll).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `type` | `sona_player_event_type` | sona_player_event_type value | 0 |
| `code` | `sona_result` | sona_result value | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `id[SONA_PLAYER_ID_CHARS]` | `char` | text (UTF-8) | empty |

## sona_players_stats

Declared in `sona.h`; taken by [`sona_players_stats_get`](../reference.md#sona_players_stats_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `players` | `uint32_t` | count | 0 |
| `watched` | `uint32_t` | count | 0 |
| `in_flight` | `uint32_t` | count | 0 |
| `due` | `uint32_t` | count | 0 |
| `requests` | `uint32_t` | count | 0 |
| `changed` | `uint32_t` | flag (0 or 1) | 0 |
| `same` | `uint32_t` | count | 0 |
| `not_modified` | `uint32_t` | count | 0 |
| `gone` | `uint32_t` | count | 0 |
| `failed` | `uint32_t` | count | 0 |
| `from_disk` | `uint32_t` | count | 0 |
| `disk_writes` | `uint32_t` | count | 0 |
| `limited` | `uint32_t` | count | 0 |
| `paused_until` | `double` | s | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_random_options

Declared in `sona.h`; taken by [`sona_random_defaults`](../reference.md#sona_random_defaults), [`sona_make_random`](../reference.md#sona_make_random).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 144 |
| `body` | `uint32_t` | one of the values named in the header | 0: the seed picks (or the base's body) |
| `style` | `uint32_t` | one of the SONA_ values named | 0 |
| `palette` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `require` | `uint32_t` | one of the SONA_ values named | 0 |
| `exclude` | `uint32_t` | one of the SONA_ values named | 0 |
| `skip_sections` | `uint32_t` | bit flags | 0 |
| `skin_count` | `uint32_t` | count | 0 |
| `hair_count` | `uint32_t` | count | 0 |
| `eyes_count` | `uint32_t` | count | 0 |
| `pad` | `uint32_t` | reserved, zero | 0 |
| `game` | `const char *` | text (UTF-8), NULL: none | NULL |
| `text` | `const char *` | text (UTF-8), NULL: none | NULL |
| `base` | `const uint8_t *` | pointer | NULL |
| `skin` | `const uint32_t *` | pointer | NULL |
| `hair` | `const uint32_t * *` | pointer | NULL |
| `eyes` | `const uint32_t * *` | pointer | NULL |
| `available` | `int (*available)(void *user, const sona_guid *item)` | a function (NULL: none) | NULL |
| `available_user` | `void *` | pointer | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_random_report

Declared in `sona.h`; taken by [`sona_make_random`](../reference.md#sona_make_random).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `body` | `uint32_t` | one of the values named in the header | 0 |
| `seed` | `uint32_t` | count | 0 |
| `set` | `int32_t` | index or id (-1: none) | 0 |
| `picked[SONA_SECTION_COUNT]` | `int32_t` | count | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `candidates[SONA_SECTION_COUNT]` | `uint32_t` | count | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_like_options

Declared in `sona.h`; taken by [`sona_like_defaults`](../reference.md#sona_like_defaults), [`sona_make_dress_like`](../reference.md#sona_make_dress_like).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `parts` | `uint32_t` | one of the SONA_ values named | 3 |
| `match` | `uint32_t` | one of the SONA_ values named | 1 |
| `flags` | `uint32_t` | bit flags | 0 |
| `available` | `int (*available)(void *user, const sona_guid *item)` | a function (NULL: none) | NULL |
| `available_user` | `void *` | pointer | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_like_item

Declared in `sona.h`; held in [`sona_like_report`](#sona_like_report).

| Field | Type | Unit | Default |
|---|---|---|---|
| `from` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `to` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `outcome` | `uint32_t` | one of the values named in the header | 0 |
| `section` | `uint32_t` | one of the values named in the header | 0 |

## sona_like_report

Declared in `sona.h`; taken by [`sona_make_dress_like`](../reference.md#sona_make_dress_like).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `count` | `uint32_t` | count | 0 |
| `kept` | `uint32_t` | count | 0 |
| `variants` | `uint32_t` | count | 0 |
| `similar` | `uint32_t` | count | 0 |
| `substitutes` | `uint32_t` | count | 0 |
| `dropped` | `uint32_t` | count | 0 |
| `covered` | `uint32_t` | count | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |
| `items[24]` | `sona_like_item` | a sona_like_item (see its fields) | see its members |

## sona_outfit_set

Declared in `sona.h`; taken by [`sona_outfit_set_get`](../reference.md#sona_outfit_set_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `title` | `uint32_t` | bytes | 0 |
| `game` | `const char *` | text (UTF-8), NULL: none | NULL |
| `name` | `const char *` | text (UTF-8), NULL: none | NULL |
| `count` | `uint32_t` | count | 0 |
| `bodies` | `uint32_t` | one of the values named in the header | 0 |
| `sections` | `uint32_t` | bit flags | 0 |
| `slots` | `uint32_t` | bit flags | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_outfit_issue

Declared in `sona.h`; taken by [`sona_outfit_check`](../reference.md#sona_outfit_check).

| Field | Type | Unit | Default |
|---|---|---|---|
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `severity` | `uint32_t` | one of the SONA_ values named | 0 |
| `slots` | `uint32_t` | bit flags | 0 |
| `field` | `uint32_t` | one of the SONA_ values named | 0 |
| `item` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `other` | `sona_guid` | a sona_guid (see its fields) | see its members |

## sona_outfit_report

Declared in `sona.h`; taken by [`sona_outfit_check`](../reference.md#sona_outfit_check), [`sona_outfit_fix`](../reference.md#sona_outfit_fix).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `issues` | `uint32_t` | count | 0 |
| `errors` | `uint32_t` | count | 0 |
| `warnings` | `uint32_t` | count | 0 |
| `body` | `uint32_t` | one of the values named in the header | 0 |
| `slots` | `uint32_t` | count | 0 |
| `set` | `int32_t` | index or id (-1: none) | 0 |
| `set_items` | `uint32_t` | count | 0 |
| `valid` | `uint32_t` | flag (0 or 1) | 0 |
| `reserved[7]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0 |

## sona_filter_verdict

Declared in `sona.h`; taken by [`sona_filter_check`](../reference.md#sona_filter_check).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `allowed` | `uint32_t` | flag (0 or 1) | 0 |
| `reason` | `uint32_t` | one of the SONA_ values named | 0 |
| `tag` | `int32_t` | index or id (-1: none) | 0 |
| `index` | `int32_t` | index or id | 0 |
| `section` | `uint32_t` | one of the values named in the header | 0 |
| `source` | `uint32_t` | one of the SONA_ values named | 0 |
| `pad` | `uint32_t` | reserved, zero | 0 |
| `tags` | `uint64_t` | bit flags | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_filter_change

Declared in `sona.h`; held in [`sona_filter_report`](#sona_filter_report).

| Field | Type | Unit | Default |
|---|---|---|---|
| `from` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `to` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `action` | `uint32_t` | one of the SONA_ values named | 0 |
| `reason` | `uint32_t` | one of the SONA_ values named | 0 |
| `tag` | `int32_t` | index or id (-1: none) | 0 |
| `section` | `uint32_t` | one of the values named in the header | 0 |

## sona_filter_report

Declared in `sona.h`; taken by [`sona_filter_manifest`](../reference.md#sona_filter_manifest), [`sona_filter_manifest_bytes`](../reference.md#sona_filter_manifest_bytes), [`sona_avatar_filter_report`](../reference.md#sona_avatar_filter_report).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `count` | `uint32_t` | count | 0 |
| `replaced` | `uint32_t` | count | 0 |
| `hidden` | `uint32_t` | flag (0 or 1) | 0 |
| `cache` | `uint32_t` | count | 0 |
| `pad` | `uint32_t` | reserved, zero | 0 |
| `change[SONA_FILTER_CHANGES]` | `sona_filter_change` | a sona_filter_change (see its fields) | see its members |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_state_info

Declared in `sona.h`; taken by [`sona_state_info_get`](../reference.md#sona_state_info_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `version` | `uint32_t` | version number | 0 |
| `has_look` | `uint32_t` | count | 0 |
| `parts` | `uint32_t` | one of the SONA_ values named | 0 |
| `clock` | `double` | s | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_state_status

Declared in `sona.h`; taken by [`sona_avatar_state_status`](../reference.md#sona_avatar_state_status).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `mode` | `uint32_t` | one of the SONA_ values named | 0 |
| `pending` | `uint32_t` | flag (0 or 1) | 0 |
| `missing` | `uint32_t` | one of the SONA_ values named | 0 |
| `applied` | `uint32_t` | count | 0 |
| `reserved[5]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0 |

## sona_net_options

Declared in `sona.h`; taken by [`sona_net_defaults`](../reference.md#sona_net_defaults), [`sona_net_sender_create`](../reference.md#sona_net_sender_create), [`sona_net_receiver_create`](../reference.md#sona_net_receiver_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `tick_hz` | `uint32_t` | Hz | 30 |
| `history` | `uint32_t` | ticks | 64 |
| `full_after` | `uint32_t` | ticks | 30 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_net_look

Declared in `sona.h`; taken by [`sona_net_receiver_look`](../reference.md#sona_net_receiver_look).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `version` | `uint32_t` | version number | 0 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `manifest[SONA_MANIFEST_BYTES]` | `uint8_t` | bytes | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `id[64]` | `char` | text (UTF-8) | empty |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_net_stats

Declared in `sona.h`; taken by [`sona_net_sender_stats`](../reference.md#sona_net_sender_stats), [`sona_net_receiver_stats`](../reference.md#sona_net_receiver_stats).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `packets` | `uint32_t` | count | 0 |
| `bytes` | `uint32_t` | bytes | 0 |
| `full` | `uint32_t` | count | 0 |
| `newest` | `uint32_t` | count | 0 |
| `oldest` | `uint32_t` | count | 0 |
| `last_bytes` | `uint32_t` | bytes | 0 |
| `acked` | `uint32_t` | count | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_record_options

Declared in `sona.h`; taken by [`sona_record_defaults`](../reference.md#sona_record_defaults), [`sona_recorder_create`](../reference.md#sona_recorder_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `tick_hz` | `uint32_t` | Hz | 30 |
| `keyframe_ticks` | `uint32_t` | ticks | 30 |
| `keep_seconds` | `float` | s | 0: everything |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_replay_info

Declared in `sona.h`; taken by [`sona_replay_info_get`](../reference.md#sona_replay_info_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `tracks` | `uint32_t` | count | 0 |
| `tick_hz` | `uint32_t` | count | 0 |
| `first_tick` | `uint32_t` | count | 0 |
| `last_tick` | `uint32_t` | count | 0 |
| `frames` | `uint32_t` | count | 0 |
| `seconds` | `float` | s | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_light

Declared in `sona.h`; held in [`sona_lighting`](#sona_lighting).

| Field | Type | Unit | Default |
|---|---|---|---|
| `direction[3]` | `float` | direction (unitless vector) | 0, 0, 0 |
| `color[3]` | `float` | colour, 0 to 1 per channel | 0, 0, 0 |
| `intensity` | `float` | factor (unitless) | 0 |

## sona_lighting

Declared in `sona.h`; taken by [`sona_lighting_defaults`](../reference.md#sona_lighting_defaults), [`sona_renderer_set_lighting`](../reference.md#sona_renderer_set_lighting), [`sona_renderer_lighting`](../reference.md#sona_renderer_lighting), [`sona_draw_lit`](../reference.md#sona_draw_lit), [`sona_snapshot_lit`](../reference.md#sona_snapshot_lit).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 228 |
| `flags` | `uint32_t` | bit flags | 0 |
| `key` | `sona_light` | a sona_light (see its fields) | see its members |
| `fill` | `sona_light` | a sona_light (see its fields) | see its members |
| `ambient[3]` | `float` | colour, linear, 0 to 1 per channel | 0, 0, 0 |
| `environment` | `float` | factor (unitless) | 1 |
| `specular` | `float` | factor (unitless) | 1 |
| `rim` | `float` | factor (unitless) | 1 |
| `shadow` | `uint32_t` | one of the SONA_ values named | 1 |
| `shadow_size` | `uint32_t` | texels | 2048 |
| `shadow_strength` | `float` | factor (unitless) | 1 |
| `shadow_ambient` | `float` | factor (unitless) | 0.5 |
| `shadow_bias` | `float` | factor (unitless) | 0.03 |
| `shadow_center[3]` | `float` | m (world units) | 0, 0, 0 |
| `shadow_radius` | `float` | m (world units) | 10 |
| `shadow_matrix[16]` | `float` | 4x4 matrix, row-vector | 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 |
| `ground_y` | `float` | m (world units) | 0 |
| `ground_opacity` | `float` | factor (unitless) | 0.6 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_environment

Declared in `sona.h`; taken by [`sona_environment_defaults`](../reference.md#sona_environment_defaults), [`sona_renderer_set_environment`](../reference.md#sona_renderer_set_environment), [`sona_environment_irradiance`](../reference.md#sona_environment_irradiance).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 152 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `sh[27]` | `float` | colour, 0 to 1 per channel | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `cube_size` | `uint32_t` | texels | 0 |
| `cube` | `const float *` | pointer | NULL |
| `skin_red` | `float` | factor (unitless) | 1.2 |
| `reserved[5]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0 |

## sona_host_shadow

Declared in `sona.h`; taken by [`sona_renderer_set_host_shadow`](../reference.md#sona_renderer_set_host_shadow).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `matrix[16]` | `float` | 4x4 matrix, row-vector | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `bias` | `float` | factor (unitless) | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `u` | `union` | see its members | see its members |

## sona_shadow_map

Declared in `sona.h`; taken by [`sona_renderer_shadow_map`](../reference.md#sona_renderer_shadow_map).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `format` | `uint32_t` | one of the values named in the header | 0 |
| `matrix[16]` | `float` | 4x4 matrix, row-vector | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `texel_metres` | `float` | m (world units) | 0 |
| `reserved` | `uint32_t` | reserved, zero | 0 |
| `frame` | `uint64_t` | index or id | 0 |
| `u` | `union` | see its members | see its members |

## sona_style

Declared in `sona.h`; taken by [`sona_style_defaults`](../reference.md#sona_style_defaults), [`sona_avatar_set_style`](../reference.md#sona_avatar_set_style), [`sona_avatar_style`](../reference.md#sona_avatar_style), [`sona_renderer_set_style`](../reference.md#sona_renderer_set_style), [`sona_renderer_style`](../reference.md#sona_renderer_style).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `kind` | `uint32_t` | sona_style_kind value | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `bands` | `uint32_t` | count | 3 |
| `shade` | `float` | factor (unitless) | 0.55 |
| `highlight` | `float` | factor (unitless) | 0.35 |
| `outline_px` | `float` | px | 2 |
| `outline` | `uint32_t` | colour, 0xAARRGGBB | 0xFF141414 |
| `colour` | `uint32_t` | colour, 0xAARRGGBB | 0xFF1E2430 |
| `reserved[3]` | `uint32_t` | reserved, zero | 0, 0, 0 |

## sona_placeholder_options

Declared in `sona.h`; taken by [`sona_placeholder_defaults`](../reference.md#sona_placeholder_defaults), [`sona_placeholder_set`](../reference.md#sona_placeholder_set), [`sona_placeholder_get`](../reference.md#sona_placeholder_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 84 |
| `flags` | `uint32_t` | bit flags | 0 |
| `delay_seconds` | `float` | s | 0 |
| `appear_seconds` | `float` | s | 0.2 |
| `reveal_seconds` | `float` | s | 0.4 |
| `failed_seconds` | `float` | s | 2 |
| `tint[3]` | `float` | colour, 0 to 1 per channel | 0.16, 0.19, 0.25 |
| `failed_tint[3]` | `float` | colour, 0 to 1 per channel | 0.25, 0.15, 0.15 |
| `glow` | `float` | factor (unitless) | 0.5 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_placeholder_info

Declared in `sona.h`; taken by [`sona_avatar_placeholder_info`](../reference.md#sona_avatar_placeholder_info).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `phase` | `uint32_t` | sona_placeholder_phase value | 0 |
| `opacity` | `float` | factor (unitless) | 0 |
| `height` | `float` | m (world units) | 0 |
| `gender` | `uint32_t` | count | 0 |
| `clip` | `uint32_t` | flag (0 or 1) | 0 |
| `seconds` | `float` | s | 0 |
| `sprite` | `uint32_t` | flag (0 or 1) | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_placeholder_stats

Declared in `sona.h`; taken by [`sona_placeholder_stats_get`](../reference.md#sona_placeholder_stats_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `shown` | `uint32_t` | count | 0 |
| `waiting` | `uint32_t` | count | 0 |
| `loading` | `uint32_t` | count | 0 |
| `revealing` | `uint32_t` | count | 0 |
| `failed` | `uint32_t` | count | 0 |
| `sprites` | `uint32_t` | count | 0 |
| `posed` | `uint32_t` | count | 0 |
| `pose_ms` | `float` | ms | 0 |
| `draws` | `uint32_t` | count | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_overlay

Declared in `sona.h`; taken by [`sona_renderer_overlay`](../reference.md#sona_renderer_overlay), [`sona_renderer_underlay`](../reference.md#sona_renderer_underlay).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `stride` | `uint32_t` | px | 0: width * 4 |
| `rgba` | `const uint8_t *` | pointer | NULL |
| `revision` | `uint32_t` | revision number | 0: always uploads |
| `dirty[4]` | `uint32_t` | flag (0 or 1) | 0, 0, 0, 0 |
| `rect[4]` | `float` | px | 0, 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_screen_event

Declared in `sona.h`; taken by [`sona_screen_input`](../reference.md#sona_screen_input).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `type` | `uint32_t` | one of the SONA_ values named | 0 |
| `action` | `uint32_t` | sona_screen_action value | 0 |
| `from` | `uint32_t` | one of the SONA_ values named | 0 |
| `x` | `float` | layout units (a 1280 x 720 screen) | 0 |
| `y` | `float` | layout units (a 1280 x 720 screen) | 0 |
| `pointer` | `uint32_t` | index or id | 0 |
| `reserved[5]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0 |

## sona_screen_theme

Declared in `sona.h`; taken by [`sona_screen_theme_defaults`](../reference.md#sona_screen_theme_defaults), [`sona_screen_set_theme`](../reference.md#sona_screen_set_theme).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 96 |
| `flags` | `uint32_t` | bit flags | 0 |
| `background` | `uint32_t` | colour, 0xAARRGGBB | 0xFF3A4850 |
| `panel` | `uint32_t` | colour, 0xAARRGGBB | 0xFF4B5962 |
| `panel_raised` | `uint32_t` | colour, 0xAARRGGBB | 0xFF3E4A52 |
| `text` | `uint32_t` | colour, 0xAARRGGBB | 0xFFF2F4F5 |
| `text_dim` | `uint32_t` | colour, 0xAARRGGBB | 0xFFB4BEC4 |
| `accent` | `uint32_t` | colour, 0xAARRGGBB | 0xFF6AA91C |
| `accent_text` | `uint32_t` | colour, 0xAARRGGBB | 0xFFFFFFFF |
| `focus` | `uint32_t` | colour, 0xAARRGGBB | 0xFFABEF2E |
| `warning` | `uint32_t` | colour, 0xAARRGGBB | 0xFFFF8A7A |
| `scale` | `float` | factor (unitless) | 1 |
| `corner` | `float` | layout units (a 1280 x 720 screen) | 8 |
| `font` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_screen_node

Declared in `sona.h`; taken by [`sona_screen_nodes`](../reference.md#sona_screen_nodes).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `id` | `uint32_t` | index or id | 0 |
| `parent` | `int32_t` | index or id | 0 |
| `role` | `uint32_t` | one of the SONA_ values named | 0 |
| `state` | `uint32_t` | one of the SONA_ values named | 0 |
| `x` | `float` | px | 0 |
| `y` | `float` | px | 0 |
| `w` | `float` | px | 0 |
| `h` | `float` | px | 0 |
| `text_size` | `float` | px | 0 |
| `value` | `float` | factor (unitless) | 0 |
| `text` | `const char *` | text (UTF-8), NULL: none | NULL |
| `label` | `const char *` | text (UTF-8), NULL: none | NULL |
| `detail` | `const char *` | text (UTF-8), NULL: none | NULL |
| `colour` | `uint32_t` | colour, 0xAARRGGBB | 0x00000000 |
| `view` | `int32_t` | index or id (-1: none) | 0 |
| `action` | `uint32_t` | sona_screen_action value | 0 |
| `index` | `uint32_t` | index or id | 0 |
| `count` | `uint32_t` | count | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_quick_options

Declared in `sona.h`; taken by [`sona_quick_defaults`](../reference.md#sona_quick_defaults), [`sona_quick_open`](../reference.md#sona_quick_open), [`sona_quick_look`](../reference.md#sona_quick_look).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 96 |
| `seed` | `uint32_t` | index or id | 1 |
| `looks` | `uint32_t` | count | 8 |
| `body` | `uint32_t` | one of the values named in the header | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `catalogue` | `const sona_catalogue *` | pointer to sona_catalogue | NULL |
| `filter` | `sona_item_filter_fn` | a function (NULL: none) | NULL |
| `filter_user` | `void *` | pointer | NULL |
| `theme` | `const sona_screen_theme *` | pointer to sona_screen_theme | NULL |
| `title` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_wardrobe_options

Declared in `sona.h`; taken by [`sona_wardrobe_defaults`](../reference.md#sona_wardrobe_defaults), [`sona_wardrobe_open`](../reference.md#sona_wardrobe_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 128 |
| `flags` | `uint32_t` | bit flags | 1 |
| `manifest` | `const uint8_t *` | pointer | NULL |
| `catalogue` | `const sona_catalogue *` | pointer to sona_catalogue | NULL |
| `owned` | `const sona_guid *` | pointer to sona_guid | NULL |
| `owned_count` | `uint32_t` | count | 0 |
| `outfits` | `const uint8_t *` | pointer | NULL |
| `outfit_count` | `uint32_t` | count | 0 |
| `outfit_names` | `const char *const *` | text (UTF-8), NULL: none | NULL |
| `filter` | `sona_item_filter_fn` | a function (NULL: none) | NULL |
| `filter_user` | `void *` | pointer | NULL |
| `theme` | `const sona_screen_theme *` | pointer to sona_screen_theme | NULL |
| `title` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_screen_stats

Declared in `sona.h`; taken by [`sona_screen_stats_get`](../reference.md#sona_screen_stats_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `presses` | `uint32_t` | count | 0 |
| `taps` | `uint32_t` | count | 0 |
| `changes` | `uint32_t` | count | 0 |
| `shuffles` | `uint32_t` | count | 0 |
| `focus_moves` | `uint32_t` | count | 0 |
| `seconds` | `float` | s | 0 |
| `action_presses[SONA_ACT_COUNT]` | `uint32_t` | count | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_pick_options

Declared in `sona.h`; taken by [`sona_pick_defaults`](../reference.md#sona_pick_defaults), [`sona_pick_ray`](../reference.md#sona_pick_ray), [`sona_pick_screen`](../reference.md#sona_pick_screen), [`sona_pick_ray_all`](../reference.md#sona_pick_ray_all), [`sona_avatar_pick`](../reference.md#sona_avatar_pick), [`sona_pick_gpu`](../reference.md#sona_pick_gpu), [`sona_pick_gpu_ids`](../reference.md#sona_pick_gpu_ids).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 56 |
| `flags` | `uint32_t` | bit flags | 0 |
| `max_distance` | `float` | m (world units) | 0: no limit |
| `ignore_count` | `uint32_t` | count | 0 |
| `ignore` | `sona_avatar *const *` | pointer | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_pick_hit

Declared in `sona.h`; taken by [`sona_pick_ray`](../reference.md#sona_pick_ray), [`sona_pick_screen`](../reference.md#sona_pick_screen), [`sona_pick_ray_all`](../reference.md#sona_pick_ray_all), [`sona_avatar_pick`](../reference.md#sona_avatar_pick), [`sona_pick_gpu`](../reference.md#sona_pick_gpu).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `source` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `avatar_id` | `uint32_t` | index or id | 0 |
| `avatar` | `sona_avatar *` | pointer to sona_avatar | NULL |
| `part` | `uint32_t` | one of the SONA_ values named | 0 |
| `section` | `uint32_t` | one of the values named in the header | 0 |
| `mask` | `uint32_t` | bit flags | 0 |
| `item[SONA_ID_CHARS]` | `char` | text (UTF-8) | empty |
| `mesh` | `int32_t` | index or id | 0 |
| `prop` | `int32_t` | index or id | 0 |
| `triangle` | `uint32_t` | index or id | 0 |
| `joint` | `int32_t` | index or id | 0 |
| `region` | `uint32_t` | sona_body_region value | 0 |
| `lod` | `uint32_t` | one of the SONA_ values named | 0 |
| `distance` | `float` | m (world units) | 0 |
| `point[3]` | `float` | m (world units) | 0, 0, 0 |
| `normal[3]` | `float` | direction (unit vector) | 0, 0, 0 |
| `bary[2]` | `float` | s | 0, 0 |
| `uv[2]` | `float` | texture coordinates, 0 to 1 | 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_prop_part

Declared in `sona.h`; taken by [`sona_prop_part_defaults`](../reference.md#sona_prop_part_defaults), [`sona_prop_mesh_create`](../reference.md#sona_prop_mesh_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 120 |
| `flags` | `uint32_t` | bit flags | 0 |
| `vertex_count` | `uint32_t` | count | 0 |
| `index_count` | `uint32_t` | count | 0 |
| `positions` | `const float *` | pointer | NULL |
| `normals` | `const float *` | pointer | NULL |
| `uvs` | `const float *` | pointer | NULL |
| `colours` | `const uint8_t *` | pointer | NULL |
| `indices` | `const uint32_t *` | pointer | NULL |
| `colour` | `uint32_t` | colour, 0xAARRGGBB | 0xFFFFFFFF |
| `texture_width` | `uint32_t` | texels | 0 |
| `texture_height` | `uint32_t` | texels | 0 |
| `texture` | `const uint8_t *` | pointer | NULL |
| `transparency` | `float` | factor (unitless) | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_prop_load_options

Declared in `sona.h`; taken by [`sona_prop_load_defaults`](../reference.md#sona_prop_load_defaults), [`sona_prop_mesh_load`](../reference.md#sona_prop_mesh_load), [`sona_prop_mesh_open`](../reference.md#sona_prop_mesh_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `flags` | `uint32_t` | bit flags | 0 |
| `scale` | `float` | factor (unitless) | 1 |
| `scene` | `int32_t` | index or id | -1 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_prop_mesh_info

Declared in `sona.h`; taken by [`sona_prop_mesh_info_get`](../reference.md#sona_prop_mesh_info_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `parts` | `uint32_t` | count | 0 |
| `vertices` | `uint32_t` | count | 0 |
| `triangles` | `uint32_t` | count | 0 |
| `textures` | `uint32_t` | count | 0 |
| `joints` | `uint32_t` | count | 0 |
| `hand` | `int32_t` | one of the SONA_ values named | 0 |
| `joint` | `int32_t` | one of the SONA_ values named | 0 |
| `lo[3]` | `float` | m (world units) | 0, 0, 0 |
| `hi[3]` | `float` | m (world units) | 0, 0, 0 |
| `seconds` | `float` | s | 0 |
| `item[SONA_ID_CHARS]` | `char` | text (UTF-8) | empty |
| `pad[3]` | `uint8_t` | reserved, zero | 0, 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_prop_data

Declared in `sona.h`; taken by [`sona_prop_mesh_data`](../reference.md#sona_prop_mesh_data).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `mesh_count` | `uint32_t` | count | 0 |
| `meshes` | `const sona_mesh *` | pointer to sona_mesh | NULL |
| `material_count` | `uint32_t` | count | 0 |
| `materials` | `const sona_material *` | pointer to sona_material | NULL |
| `texture_count` | `uint32_t` | count | 0 |
| `textures` | `const sona_texture *` | pointer to sona_texture | NULL |
| `joints` | `uint32_t` | count | 0 |

## sona_prop_attach

Declared in `sona.h`; taken by [`sona_prop_attach_defaults`](../reference.md#sona_prop_attach_defaults), [`sona_avatar_prop_attach`](../reference.md#sona_avatar_prop_attach), [`sona_avatar_prop_set`](../reference.md#sona_avatar_prop_set), [`sona_avatar_prop_get`](../reference.md#sona_avatar_prop_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 140 |
| `flags` | `uint32_t` | bit flags | 0 |
| `joint` | `int32_t` | one of the SONA_ values named | -2 |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 1 |
| `scale` | `float` | factor (unitless) | 1 |
| `hand` | `int32_t` | one of the SONA_ values named | -1 |
| `hand_flags` | `uint32_t` | bit flags | 0 |
| `hand_position[3]` | `float` | m (world units) | 0, 0, 0 |
| `hand_rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 1 |
| `hand_pole[3]` | `float` | m (world units) | 0, 0, 0 |
| `hand_weight` | `float` | factor (unitless) | 1 |
| `fade_seconds` | `float` | s | 0.2 |
| `speed` | `float` | factor (1: as made) | 1 |
| `start_at` | `float` | s | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_prop_frame

Declared in `sona.h`; taken by [`sona_avatar_prop_frame`](../reference.md#sona_avatar_prop_frame).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `joint` | `int32_t` | one of the SONA_ values named | 0 |
| `time` | `float` | s | 0 |
| `world[16]` | `float` | 4x4 matrix, row-vector | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `avatar[16]` | `float` | 4x4 matrix, row-vector | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `hand_error` | `float` | s | 0 |
| `joints` | `uint32_t` | count | 0 |
| `palette` | `const float *` | pointer | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ragdoll_options

Declared in `sona.h`; taken by [`sona_ragdoll_defaults`](../reference.md#sona_ragdoll_defaults), [`sona_avatar_ragdoll`](../reference.md#sona_avatar_ragdoll).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 56 |
| `flags` | `uint32_t` | bit flags | 0 |
| `total_mass` | `float` | kg | 0: from the avatar's height and weight (a body mass index of 22, from 17 at the thinnest to 32 at the heaviest), times the placement's scale cubed |
| `coverage` | `float` | factor (unitless) | 0.9 |
| `limits` | `const sona_ik_limits *` | pointer to sona_ik_limits | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ragdoll_body

Declared in `sona.h`; taken by [`sona_avatar_ragdoll`](../reference.md#sona_avatar_ragdoll).

| Field | Type | Unit | Default |
|---|---|---|---|
| `joint` | `int32_t` | index or id | 0 |
| `parent` | `int32_t` | index or id | 0 |
| `shape` | `uint32_t` | one of the SONA_ values named | 0 |
| `no_collide` | `uint32_t` | bit flags | 0 |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `shape_position[3]` | `float` | m (world units) | 0, 0, 0 |
| `shape_rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `radius` | `float` | m (world units) | 0 |
| `half_height` | `float` | m (world units) | 0: a sphere |
| `half_extents[3]` | `float` | m (world units) | 0, 0, 0 |
| `mass` | `float` | kg | 0 |
| `joint_type` | `uint32_t` | one of the SONA_ values named | 0 |
| `pivot[3]` | `float` | m (world units) | 0, 0, 0 |
| `frame_parent[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `frame_child[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `twist_min` | `float` | radians | 0 |
| `twist_max` | `float` | radians | 0 |
| `swing_y_min` | `float` | radians | 0 |
| `swing_y_max` | `float` | radians | 0 |
| `swing_z_min` | `float` | radians | 0 |
| `swing_z_max` | `float` | radians | 0 |
| `cone_frame[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `cone_y` | `float` | radians | 0 |
| `cone_z` | `float` | radians | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_ragdoll_state

Declared in `sona.h`; taken by [`sona_avatar_ragdoll_state`](../reference.md#sona_avatar_ragdoll_state), [`sona_avatar_ragdoll_drive`](../reference.md#sona_avatar_ragdoll_drive).

| Field | Type | Unit | Default |
|---|---|---|---|
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `velocity[3]` | `float` | m per second | 0, 0, 0 |
| `angular_velocity[3]` | `float` | radians per second | 0, 0, 0 |

## sona_ragdoll_info

Declared in `sona.h`; taken by [`sona_avatar_ragdoll_info`](../reference.md#sona_avatar_ragdoll_info).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `mode` | `uint32_t` | one of the SONA_ values named | 0 |
| `weight` | `float` | factor (unitless) | 0 |
| `blend_left` | `float` | factor (unitless) | 0 |
| `face_up` | `int32_t` | flag (0 or 1) | 0: on its front |
| `hips[3]` | `float` | m (world units) | 0, 0, 0 |
| `lowest` | `float` | m (world units) | 0 |
| `getup_position[3]` | `float` | m (world units) | 0, 0, 0 |
| `getup_turn_deg` | `float` | degrees | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_ragdoll_motor

Declared in `sona.h`; taken by [`sona_avatar_ragdoll_motors`](../reference.md#sona_avatar_ragdoll_motors).

| Field | Type | Unit | Default |
|---|---|---|---|
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `joint_rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `angular_velocity[3]` | `float` | radians per second | 0, 0, 0 |
| `world_position[3]` | `float` | m (world units) | 0, 0, 0 |
| `world_rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `velocity[3]` | `float` | per second | 0, 0, 0 |
| `world_angular_velocity[3]` | `float` | per second | 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_sway

Declared in `sona.h`; taken by [`sona_sway_defaults`](../reference.md#sona_sway_defaults), [`sona_avatar_sway`](../reference.md#sona_avatar_sway).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 60 |
| `parts` | `uint32_t` | one of the SONA_ values named | 7 |
| `quality` | `uint32_t` | one of the SONA_ values named | 1 |
| `stiffness` | `float` | factor (unitless) | 0.5 |
| `damping` | `float` | factor (unitless) | 0.5 |
| `wind_scale` | `float` | factor (unitless) | 1 |
| `min_pixels` | `float` | px | 48 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_sway_world

Declared in `sona.h`; taken by [`sona_sway_world_defaults`](../reference.md#sona_sway_world_defaults), [`sona_sway_world_set`](../reference.md#sona_sway_world_set).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 68 |
| `gravity[3]` | `float` | m per second | 0, -9.81, 0 |
| `wind[3]` | `float` | m per second | 0, 0, 0 |
| `gust` | `float` | factor (unitless) | 0.35 |
| `gust_seconds` | `float` | s | 1.5 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_sway_info

Declared in `sona.h`; taken by [`sona_avatar_sway_info`](../reference.md#sona_avatar_sway_info).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `parts` | `uint32_t` | one of the SONA_ values named | 0 |
| `meshes` | `uint32_t` | count | 0 |
| `chains` | `uint32_t` | count | 0 |
| `nodes` | `uint32_t` | count | 0 |
| `vertices` | `uint32_t` | count | 0 |
| `steps` | `uint32_t` | count | 0 |
| `resting` | `uint32_t` | flag (0 or 1) | 0 |
| `max_offset` | `float` | count | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_seat

Declared in `sona.h`; taken by [`sona_seat_defaults`](../reference.md#sona_seat_defaults); held in [`sona_interaction_desc`](#sona_interaction_desc).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 68 |
| `kind` | `uint32_t` | one of the SONA_ values named | 1 |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `turn_deg` | `float` | degrees | 0 |
| `height` | `float` | m (world units) | 0.45 |
| `depth` | `float` | m (world units) | 0.45 |
| `width` | `float` | m (world units) | 0.5 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_interaction_desc

Declared in `sona.h`; taken by [`sona_interaction_defaults`](../reference.md#sona_interaction_defaults), [`sona_interaction_layout`](../reference.md#sona_interaction_layout), [`sona_interaction_start`](../reference.md#sona_interaction_start).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 160 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `a` | `sona_avatar *` | pointer to sona_avatar | NULL |
| `b` | `sona_avatar * *` | pointer | NULL |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `turn_deg` | `float` | degrees | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `start_seconds` | `float` | s | 0.8 |
| `hold_seconds` | `float` | s | 0 |
| `end_seconds` | `float` | s | 0.6 |
| `seat` | `sona_seat` | a sona_seat (see its fields) | see its members |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_interaction_plan

Declared in `sona.h`; taken by [`sona_interaction_layout`](../reference.md#sona_interaction_layout).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `contacts` | `uint32_t` | count | 0 |
| `place[2]` | `sona_placement` | a sona_placement (see its fields) | see its members |
| `contact[2][3]` | `float` | m (world units) | 0, 0, 0, 0, 0, 0 |
| `spacing` | `float` | m (world units) | 0 |
| `clearance` | `float` | m (world units) | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_interaction_status

Declared in `sona.h`; taken by [`sona_interaction_status_get`](../reference.md#sona_interaction_status_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `phase` | `uint32_t` | one of the SONA_ values named | 0 |
| `phase_seconds` | `float` | s | 0 |
| `progress` | `float` | factor (unitless) | 0 |
| `touching` | `uint32_t` | flag (0 or 1) | 0 |
| `contact_error` | `float` | m (world units) | 0 |
| `clearance` | `float` | m (world units) | 0 |
| `contact[2][3]` | `float` | m (world units) | 0, 0, 0, 0, 0, 0 |
| `ik_hit[2]` | `uint32_t` | bit flags | 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_interaction_event

Declared in `sona.h`; taken by [`sona_interaction_events`](../reference.md#sona_interaction_events).

| Field | Type | Unit | Default |
|---|---|---|---|
| `kind` | `uint32_t` | one of the values named in the header | 0 |
| `phase` | `uint32_t` | one of the values named in the header | 0 |
| `time` | `float` | s | 0 |
| `value` | `float` | the event's own units | 0 |

## sona_emote

Declared in `sona.h`; taken by [`sona_emote_from_text`](../reference.md#sona_emote_from_text), [`sona_avatar_emote`](../reference.md#sona_avatar_emote).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `count` | `uint32_t` | count | 0: nothing matched |
| `clips[SONA_EMOTE_CLIPS]` | `uint32_t` | one of the SONA_ values named | 0, 0, 0, 0 |
| `weights[SONA_EMOTE_CLIPS]` | `float` | factor (unitless) | 0, 0, 0, 0 |
| `speed` | `float` | factor (1: as made) | 0 |
| `confidence` | `float` | factor (unitless) | 0 |
| `expression[5]` | `uint8_t` | expression index per face part (255: the clip's) | 0, 0, 0, 0, 0 |
| `pad[3]` | `uint8_t` | reserved, zero | 0, 0, 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_award_def

Declared in `sona.h`; taken by [`sona_award_def_defaults`](../reference.md#sona_award_def_defaults), [`sona_award_define`](../reference.md#sona_award_define).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 88 |
| `flags` | `uint32_t` | bit flags | 0 |
| `key` | `const char *` | text (UTF-8), NULL: none | NULL |
| `title` | `const char *` | text (UTF-8), NULL: none | NULL |
| `description` | `const char * *` | text (UTF-8), NULL: none | NULL |
| `item` | `sona_guid` | a sona_guid (see its fields) | see its members |
| `developer_key` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_body_options

Declared in `sona_body.h`; taken by [`sona_body_defaults`](../reference.md#sona_body_defaults), [`sona_body_create`](../reference.md#sona_body_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 60 |
| `flags` | `uint32_t` | bit flags | 0 |
| `min_cutoff` | `float` | count | 1.5 |
| `beta` | `float` | factor (unitless) | 0.8 |
| `min_visibility` | `float` | count | 0.5 |
| `lost_seconds` | `float` | s | 0.5 |
| `return_seconds` | `float` | s | 0.4 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_body_input

Declared in `sona_body.h`; taken by [`sona_body_input_defaults`](../reference.md#sona_body_input_defaults), [`sona_body_feed`](../reference.md#sona_body_feed).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `flags` | `uint32_t` | bit flags | 0 |
| `time` | `double` | s | 0 |
| `layout` | `uint32_t` | one of the SONA_ values named | 0 |
| `count` | `uint32_t` | count | 33 |
| `points` | `const float *` | pointer | NULL |
| `visibility` | `const float *` | pointer | NULL |
| `image` | `const float *` | pointer | NULL |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_editor_options

Declared in `sona_editor.h`; taken by [`sona_editor_defaults`](../reference.md#sona_editor_defaults), [`sona_editor_open`](../reference.md#sona_editor_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 136 |
| `mode` | `uint32_t` | one of the SONA_ values named | 0 |
| `width` | `uint32_t` | px | 1280 |
| `height` | `uint32_t` | px | 720 |
| `flags` | `uint32_t` | bit flags | 0 |
| `start` | `const uint8_t *` | pointer | NULL |
| `catalogue` | `const sona_catalogue *` | pointer to sona_catalogue | NULL |
| `seed` | `uint64_t` | index or id | 1 |
| `title` | `const char *` | text (UTF-8), NULL: none | NULL |
| `filter` | `sona_editor_filter_fn` | a function (NULL: none) | NULL |
| `filter_user` | `void *` | pointer | NULL |
| `look` | `sona_editor_look_fn` | a function (NULL: none) | NULL |
| `look_user` | `void *` | pointer | NULL |
| `sound` | `sona_editor_sound_fn` | a function (NULL: none) | NULL |
| `sound_user` | `void *` | pointer | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_editor_theme

Declared in `sona_editor.h`; taken by [`sona_editor_theme_defaults`](../reference.md#sona_editor_theme_defaults), [`sona_editor_open`](../reference.md#sona_editor_open), [`sona_editor_set_theme`](../reference.md#sona_editor_set_theme).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 104 |
| `background` | `uint32_t` | colour, 0xAARRGGBB | 0xFF3A4850 |
| `panel` | `uint32_t` | colour, 0xAARRGGBB | 0xFF4B5962 |
| `raised` | `uint32_t` | colour, 0xAARRGGBB | 0xFF3E4A52 |
| `text` | `uint32_t` | colour, 0xAARRGGBB | 0xFFF2F4F5 |
| `text_dim` | `uint32_t` | colour, 0xAARRGGBB | 0xFFB4BEC4 |
| `accent` | `uint32_t` | colour, 0xAARRGGBB | 0xFF6AA91C |
| `accent_text` | `uint32_t` | colour, 0xAARRGGBB | 0xFFFFFFFF |
| `focus` | `uint32_t` | colour, 0xAARRGGBB | 0xFFABEF2E |
| `shade` | `uint32_t` | colour, 0xAARRGGBB | 0xA0000000 |
| `corner_radius` | `float` | layout units (a 1280 x 720 screen) | 8 |
| `scale` | `float` | factor (unitless) | 0: the shorter side / 720, at least 0.5 |
| `font_px` | `float` | px | 14 |
| `font` | `const void *` | pointer | NULL |
| `font_len` | `size_t` | bytes | 0 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_editor_input

Declared in `sona_editor.h`; taken by [`sona_editor_feed`](../reference.md#sona_editor_feed).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `kind` | `uint32_t` | one of the SONA_ values named | 0 |
| `code` | `uint32_t` | one of the values named in the header | 0 |
| `down` | `int32_t` | flag (0 or 1) | 0 |
| `mods` | `uint32_t` | bit flags | 0 |
| `pointer` | `uint32_t` | index or id | 0 |
| `x` | `float` | px | 0 |
| `y` | `float` | px | 0 |
| `value` | `float` | the control's own units (an axis: -1 to 1) | 0 |

## sona_editor_control

Declared in `sona_editor.h`; taken by [`sona_editor_control_get`](../reference.md#sona_editor_control_get), [`sona_editor_focus_get`](../reference.md#sona_editor_focus_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `id` | `uint32_t` | index or id | 0 |
| `role` | `uint32_t` | one of the SONA_ values named | 0 |
| `flags` | `uint32_t` | bit flags | 0 |
| `rect[4]` | `float` | px | 0, 0, 0, 0 |
| `value` | `float` | the control's own units (between min and max) | 0 |
| `min` | `float` | the control's own units | 0 |
| `max` | `float` | the control's own units | 0 |
| `index` | `uint32_t` | index or id | 0 |
| `count` | `uint32_t` | count | 0 |
| `label[96]` | `char` | text (UTF-8) | empty |
| `value_text[64]` | `char` | text (UTF-8) | empty |
| `hint[96]` | `char` | text (UTF-8) | empty |

## sona_editor_vertex

Declared in `sona_editor.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `x` | `float` | px | 0 |
| `y` | `float` | px | 0 |
| `u` | `float` | factor (unitless) | 0 |
| `v` | `float` | factor (unitless) | 0 |
| `rgba[4]` | `uint8_t` | colour, 0 to 255 per channel | 0, 0, 0, 0 |

## sona_editor_command

Declared in `sona_editor.h`.

| Field | Type | Unit | Default |
|---|---|---|---|
| `texture` | `uint32_t` | one of the SONA_ values named | 0 |
| `first_index` | `uint32_t` | index or id | 0 |
| `index_count` | `uint32_t` | count | 0 |
| `pad` | `uint32_t` | reserved, zero | 0 |
| `clip[4]` | `float` | px | 0, 0, 0, 0 |

## sona_editor_draw_data

Declared in `sona_editor.h`; taken by [`sona_editor_draw_data_get`](../reference.md#sona_editor_draw_data_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `revision` | `uint32_t` | revision number | 0 |
| `vertices` | `const sona_editor_vertex *` | pointer to sona_editor_vertex | NULL |
| `vertex_count` | `uint32_t` | count | 0 |
| `indices` | `const uint32_t *` | pointer | NULL |
| `index_count` | `uint32_t` | count | 0 |
| `commands` | `const sona_editor_command *` | pointer to sona_editor_command | NULL |
| `command_count` | `uint32_t` | count | 0 |
| `avatar_rect[4]` | `float` | px (x, y, w, h) | 0, 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_editor_texture

Declared in `sona_editor.h`; taken by [`sona_editor_texture_get`](../reference.md#sona_editor_texture_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `id` | `uint32_t` | index or id | 0 |
| `width` | `uint32_t` | px | 0 |
| `height` | `uint32_t` | px | 0 |
| `revision` | `uint32_t` | revision number | 0 |
| `dirty[4]` | `uint32_t` | flag (0 or 1) | 0, 0, 0, 0 |
| `dirty_since` | `uint32_t` | revision number | 0 |
| `rgba` | `const uint8_t *` | pointer | NULL |

## sona_npc_options

Declared in `sona_npc.h`; taken by [`sona_npc_defaults`](../reference.md#sona_npc_defaults), [`sona_npc_create`](../reference.md#sona_npc_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 80 |
| `flags` | `uint32_t` | bit flags | 0 |
| `speak` | `sona_npc_speak_fn` | a function (NULL: none) | NULL |
| `speak_user` | `void *` | pointer | NULL |
| `line` | `sona_npc_line_fn` | a function (NULL: none) | NULL |
| `line_user` | `void *` | pointer | NULL |
| `look_seconds` | `float` | s | 2 |
| `idle_emote_seconds` | `float` | s | 8 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_npc_state

Declared in `sona_npc.h`; taken by [`sona_npc_state_get`](../reference.md#sona_npc_state_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `state` | `uint32_t` | one of the SONA_ values named | 0 |
| `line` | `uint32_t` | index or id (0: none) | 0 |
| `queued` | `uint32_t` | count | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_track_options

Declared in `sona_track.h`; taken by [`sona_track_defaults`](../reference.md#sona_track_defaults), [`sona_track_create`](../reference.md#sona_track_create), [`sona_track_set_options`](../reference.md#sona_track_set_options).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 92 |
| `flags` | `uint32_t` | bit flags | 0 |
| `face_min_cutoff` | `float` | Hz | 3 |
| `face_beta` | `float` | factor (unitless) | 2 |
| `head_min_cutoff` | `float` | Hz | 1.2 |
| `head_beta` | `float` | radians | 0.6 |
| `head_gain` | `float` | factor (unitless) | 1 |
| `head_limit_deg[3]` | `float` | degrees | 40, 65, 35 |
| `neck_share` | `float` | factor (unitless) | 0.35 |
| `sensitivity` | `float` | factor (unitless) | 0 |
| `lost_seconds` | `float` | s | 0.5 |
| `return_seconds` | `float` | s | 0.4 |
| `sleep_seconds` | `float` | s | 1.5 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_track_face_input

Declared in `sona_track.h`; taken by [`sona_track_face_input_defaults`](../reference.md#sona_track_face_input_defaults), [`sona_track_face_feed`](../reference.md#sona_track_face_feed).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 64 |
| `flags` | `uint32_t` | bit flags | 0 |
| `time` | `double` | s | 0 |
| `layout` | `uint32_t` | one of the SONA_ values named | 0 |
| `count` | `uint32_t` | count | 52 |
| `weights` | `const float *` | pointer | NULL |
| `head_rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 1 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_track_face_state

Declared in `sona_track.h`; taken by [`sona_track_face_get`](../reference.md#sona_track_face_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `tracking` | `uint32_t` | flag (0 or 1) | 0 |
| `time` | `double` | s | 0 |
| `weight` | `float` | factor (unitless) | 0 |
| `expression[5]` | `uint8_t` | expression index per face part (255: the clip's) | 0, 0, 0, 0, 0 |
| `mood` | `uint8_t` | sona_track_mood value | 0 |
| `pad[2]` | `uint8_t` | reserved, zero | 0, 0 |
| `head[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |
| `weights[SONA_TRACK_BLENDSHAPES]` | `float` | factor (unitless) | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_track_calibration

Declared in `sona_track.h`; taken by [`sona_track_calibrate_end`](../reference.md#sona_track_calibrate_end), [`sona_track_calibration_set`](../reference.md#sona_track_calibration_set), [`sona_track_calibration_get`](../reference.md#sona_track_calibration_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `frames` | `uint32_t` | count | 0: no calibration |
| `neutral[SONA_TRACK_BLENDSHAPES]` | `float` | factor (unitless, 0 to 1 per blendshape) | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 |
| `head[4]` | `float` | quaternion (x, y, z, w), camera space | 0, 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_xr_pose

Declared in `sona_xr.h`; taken by [`sona_xr_openxr_to_world`](../reference.md#sona_xr_openxr_to_world); held in [`sona_xr_input`](#sona_xr_input).

| Field | Type | Unit | Default |
|---|---|---|---|
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `rotation[4]` | `float` | quaternion (x, y, z, w) | 0, 0, 0, 0 |

## sona_xr_options

Declared in `sona_xr.h`; taken by [`sona_xr_defaults`](../reference.md#sona_xr_defaults), [`sona_xr_create`](../reference.md#sona_xr_create).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 48 |
| `flags` | `uint32_t` | bit flags | 0 |
| `user_height` | `float` | m (world units) | 0: from sona_xr_calibrate |
| `step_distance` | `float` | m (world units) | 0.25 |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |

## sona_xr_input

Declared in `sona_xr.h`; taken by [`sona_xr_input_defaults`](../reference.md#sona_xr_input_defaults), [`sona_xr_feed`](../reference.md#sona_xr_feed).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 120 |
| `flags` | `uint32_t` | bit flags | 0 |
| `time` | `double` | s | 0 |
| `head` | `sona_xr_pose` | a sona_xr_pose (see its fields) | see its members |
| `left_hand` | `sona_xr_pose` | a sona_xr_pose (see its fields) | see its members |
| `right_hand` | `sona_xr_pose` | a sona_xr_pose (see its fields) | see its members |
| `floor_y` | `float` | m (world units) | 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_xr_status

Declared in `sona_xr.h`; taken by [`sona_xr_status_get`](../reference.md#sona_xr_status_get).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 0 |
| `tracked` | `uint32_t` | one of the SONA_ values named | 0 |
| `user_height` | `float` | m (world units) | 0 |
| `scale` | `float` | factor (unitless) | 0 |
| `turn_deg` | `float` | degrees | 0 |
| `position[3]` | `float` | m (world units) | 0, 0, 0 |
| `crouch` | `float` | m (world units) | 0 |
| `steps` | `uint32_t` | count | 0 |
| `eye[3]` | `float` | m (world units) | 0, 0, 0 |
| `reserved[4]` | `uint32_t` | reserved, zero | 0, 0, 0, 0 |

## sona_xsdk_config

Declared in `sona_xsdk.h`; taken by [`sona_xsdk_defaults`](../reference.md#sona_xsdk_defaults), [`sona_xsdk_open`](../reference.md#sona_xsdk_open).

| Field | Type | Unit | Default |
|---|---|---|---|
| `size` | `uint32_t` | bytes (sizeof the struct) | 84 |
| `folder` | `const char *` | text (UTF-8), NULL: none | game:/ |
| `tv` | `int` | flag (0 or 1) | 1 |
| `max_avatars` | `uint32_t` | count | 64 |
| `memory_mb` | `uint32_t` | MB | 160 |
| `workers` | `uint32_t` | count | 5 |
| `clear[4]` | `float` | colour, 0 to 1 per channel | 0.1, 0.2, 0.34, 1 |
| `log_level` | `int` | one of the SONA_ values named | 1 |
| `gate` | `const char *` | text (UTF-8), NULL: none | NULL |
| `check_host` | `const char *` | text (UTF-8), NULL: none | NULL |
| `reserved[8]` | `uint32_t` | reserved, zero | 0, 0, 0, 0, 0, 0, 0, 0 |
