Skip to main content

Module card

Module card 

Source
Expand description

Browser fill with vault: "<card id>" (or "card", the default card): one question for the person, then every card field the form has is filled (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §6).

The host says which fields of the form look like parts of a card and how each takes its text (card_form); the person is asked once, naming the card and the parts; then each field is filled through the same vault_fill as a single field, which checks it again. The answer lists the parts filled and the parts the form wanted that were left, by name; a value is in no answer, error or record. A card that has expired is asked about every time: no “Always” is offered for it and none already given counts.

Modules§

typed 🔒
Browser request_value with kind card: no card is saved for this form, so the person types the whole card in the agent’s question, and every card field the form has is filled from it (docs/specs/SPEC_VAULT_CARD_ENTRIES_FULL_CARD_DATA_AND_AUTOFILL_2026_11_08.md §5 item 3).

Structs§

CardField 🔒
A field of the form the host matched to a part of a card.
CardForm 🔒
What the host found of a card form: where it is, and the fields it matched to a card’s parts.
Outcome 🔒
What the fill did, by part name: never a value.
Question 🔒
What the person is asked: the card named (or none), and the cards they may pick from when they may.
Settled 🔒
The card the fill is for once the person has answered, and how they answered.

Constants§

MAIN_SLOTS 🔒
The slots that make a form a card form: a ZIP or a name alone is a single-field fill’s.

Functions§

answer 🔒
card_question 🔒
fill_all 🔒
fill_card 🔒
fill_field 🔒
What fills one field: the host is told the text, or the month or year to choose, and the field it was approved for.
parse_fields 🔒
part_names 🔒
The parts the form asks for, by name, once each (“number, expiry, security code”).
picks 🔒
Whether the person may pick the card: none was named, or they have more than one.
read_form 🔒
Asks the host for the card form the field ref_ is in, or says why there is none.
settle 🔒
Asks the person, unless this card is granted on this site and current: the card they chose (the named one when they chose none), or the response that ends the call.
stand_in 🔒
What a use record names when no card was chosen (a refusal, a no, no answer): never a card of the person’s.
whole_card 🔒
Takes the call when vault names a whole card, None for any other fill.
why_nothing 🔒
Why nothing was filled, by part name: never a value.
without_card 🔒
An error with no part of the card in it: a page’s or a parser’s message can quote what it was given.