Expose Daybreak availability in model discovery (#62499)

## Why

Clients need to distinguish a caller who must enroll in Daybreak from a
model that does not support it. The list of accepted access programs
alone cannot express that distinction.

## What changed

Carry the server-resolved status for each caller and model from the
model catalog into `model/list` as `availableAccessPrograms.daybreakAvailability`.
Update the JSON schemas, TypeScript bindings, and Python SDK to expose
the field.

Rust decoders use `default` for missing or unrecognized statuses. The
Python SDK also defaults missing statuses and preserves new strings
from newer hosts.

## Testing

Cover catalog decoding, app-server response serialization, and Python
SDK round trips with known, missing, and future status values.

GitOrigin-RevId: c1e5ddef68fd19b25e583bb6996a93fd78ab9d18
This commit is contained in:
igorrybalka-oai
2026-11-19 12:28:34 +00:00
committed by copyberry
parent b0ecad9cf9
commit 1826d80eca
31 changed files with 393 additions and 39 deletions
@@ -608,6 +608,7 @@ def generate_v2_all(schema_dir: Path, *, format_output: bool = True) -> None:
_preserve_inline_media_class_names(out_path)
_add_legacy_image_generation_thread_item_alias(out_path)
_preserve_open_enum(out_path, "CodexErrorInfoValue", allow_empty=True)
_preserve_open_enum(out_path, "DaybreakAvailability")
_preserve_reasoning_effort_enum(out_path)
_preserve_thread_source_enum(out_path)
_preserve_open_enum(out_path, "PlanType")