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 core Intent and 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_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

op

card_id

card_ids

moves

to

to_bottom

face_down

position

deck

zone

x

y

seed

delta

value

text

token_id

source_card_id

print_card_id