yasuki_web.schemas.IntentEnvelope#
- class IntentEnvelope(*, op, card_id=None, card_ids=None, moves=None, to=None, to_bottom=False, face_down=False, position=None, deck=None, zone=None, x=None, y=None, seed=None, delta=None, value=None, text=None, token_id=None, source_card_id=None, print_card_id=None)[source]#
A game intent on the wire: an op plus whichever targets that op needs. The same shape the action log persists (see
encode_intent); the server maps it to a coreIntentand applies it authoritatively. Nested key targets (to/deck/zone) are validated structurally when decoded; a malformed one is rejected as a bad intent, not a protocol error.Methods
Attributes
model_configConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
opcard_idcard_idsmovestoto_bottomface_downpositiondeckzonexyseeddeltavaluetexttoken_idsource_card_idprint_card_id