Client basics
Mountaya is the one type that calls the network. Build one per credential, hand it to everything that needs it, and close it when you are done.
Whoever made the client closes it. In a Flutter app, the State that makes it closes it in dispose.
Each method is named by the API's operation id, and hangs where the API files it:
Path parameters are named as the API names them, itinerary_id:. A query is one query: value, and a body one body: value.
A body takes its fields as named parameters:
A write acts as the member its token was minted for, as Authentication in the SDK shows.
A Data API call narrows its answer to the fields select: names, true selecting a field whole:
The result type comes back whole: a field you did not select is null.
A stream method answers an EventStream, a Stream of frames you read with await for:
The stream reopens on its own. A break out of the loop closes the stream.
A REST or Tile call answers a Response: its data, the status, the headers and the request id.
Quote requestId to support: it is the id the API recorded the request under.