<?xml version="1.0"?>
<doc>
    <assembly>
        <name>Yumina.Games</name>
    </assembly>
    <members>
        <member name="T:Yumina.Games.Character">
            <summary>
            Someone the player talks to. Typical use:
            <code>
            var abigail = yumina.Character("abigail", CardRef.Hub(cardId));
            var turn = await abigail.SayAsync("Got anything for me?",
                inputs: new { hearts = 6, season = "summer" }, period: "y1-summer-3",
                onText: line => bubble.Text = line);
            if (turn.Action is { Accepted: true } a &amp;&amp; a.Id == "give_item")
                abigail.Report(turn, GiveItem(a.Text("item")), "gave a coffee");
            </code>
            The character remembers the save it is in through <see cref="P:Yumina.Games.YuminaClient.Memory"/>.
            </summary>
        </member>
        <member name="P:Yumina.Games.Character.Conversation">
            <summary>The conversation in progress; null starts a new one on the next line.</summary>
        </member>
        <member name="M:Yumina.Games.Character.SayAsync(System.String,System.Object,System.Collections.Generic.IEnumerable{System.Object},System.String,System.Action{System.String},System.Threading.CancellationToken,System.Collections.Generic.IDictionary{System.String,System.String},System.Action{System.String})">
            <summary>
            The player says something (or the game narrates, in [brackets]: "[The player hands you a parsnip.]").
            </summary>
            <param name="inputs">Your manifest's inputs right now: an anonymous object, a dictionary or a JsonValue.</param>
            <param name="allow">What your own rules allow this turn: action ids, or <see cref="T:Yumina.Games.Allow"/> to narrow one
            ("only what this NPC carries"); null allows every action in the manifest.</param>
            <param name="period">The game's current day / week / run, for per-period action limits.</param>
            <param name="onText">Streams the reply: called with the whole line so far, on a background thread.</param>
            <param name="blocked">Why an action is not possible right now, by action id ("She has nothing on her").
            The character declines in its own words instead of promising it.</param>
            <param name="onLine">The whole line once it is final, a few seconds before the turn returns (Yumina still checks
            what the line promised): show it then, and act only on the returned turn. Background thread.</param>
        </member>
        <member name="M:Yumina.Games.Character.Report(Yumina.Games.Turn,System.Boolean,System.String)">
            <summary>
            Tells the character what really happened to the action it asked for on <paramref name="turn"/>,
            on its next line. Report every accepted action — applied or not — or the character may act as
            if a gift it never gave was given, and per-period limits count it as spent.
            Reports wait in this object and ride along with the next line; an accepted action never
            reported (the player quit first) counts as done.
            </summary>
        </member>
        <member name="M:Yumina.Games.Character.EndConversation">
            <summary>The player walked away: the next line opens a new conversation (memory stays).</summary>
        </member>
        <member name="T:Yumina.Games.JsonValue">
            <summary>
            A JSON value: what the game sends in <c>inputs</c> and what comes back in outputs and action
            params. The SDK carries its own tiny JSON so it never fights a game or another mod over
            Newtonsoft.Json versions.
            </summary>
        </member>
        <member name="P:Yumina.Games.JsonValue.Item(System.String)">
            <summary>A field of an object; <see cref="F:Yumina.Games.JsonValue.Null"/> when missing (so lookups chain safely).</summary>
        </member>
        <member name="M:Yumina.Games.JsonValue.From(System.Object)">
            <summary>
            Plain C# values to JSON: null, bool, numbers, string, JsonValue, IDictionary (string keys),
            IEnumerable, and anonymous or plain objects (public properties and fields).
            </summary>
        </member>
        <member name="T:Yumina.Games.MainThreadQueue">
            <summary>
            Hands work from the SDK's background threads (streamed text, finished turns) to your game's
            main thread, where UI and game state may be touched. Post from anywhere; call
            <see cref="M:Yumina.Games.MainThreadQueue.Drain(System.Int32,System.Action{System.Exception})"/> once per frame on the main thread (Unity: <c>Update</c>; MonoGame: <c>Update</c>;
            Godot .NET: <c>_Process</c>, or use <c>CallDeferred</c> instead).
            <code>
            readonly MainThreadQueue main = new MainThreadQueue();
            void Update() => main.Drain();
            var turn = await npc.SayAsync(text, onText: line => main.Post(() => shown = line));
            main.Post(() => Apply(turn));   // or continue on the main thread some other way
            </code>
            </summary>
        </member>
        <member name="M:Yumina.Games.MainThreadQueue.Post(System.Action)">
            <summary>Runs <paramref name="action"/> on the main thread at the next <see cref="M:Yumina.Games.MainThreadQueue.Drain(System.Int32,System.Action{System.Exception})"/>.</summary>
        </member>
        <member name="M:Yumina.Games.MainThreadQueue.Drain(System.Int32,System.Action{System.Exception})">
            <summary>
            Runs what was posted, on the calling (main) thread. One failing action is reported to
            <paramref name="onError"/> and does not stop the rest.
            </summary>
            <param name="max">At most this many per call, so a burst never stalls a frame.</param>
        </member>
        <member name="T:Yumina.Games.OwnKeyApi">
            <summary>
            The player's own AI key, with no Yumina account: turns go straight from the game to an
            OpenAI-compatible chat API (DeepSeek, OpenAI, OpenRouter, Google, Anthropic, a local Ollama…).
            Set <see cref="P:Yumina.Games.YuminaOptions.OwnKey"/>; <see cref="M:Yumina.Games.Character.SayAsync(System.String,System.Object,System.Collections.Generic.IEnumerable{System.Object},System.String,System.Action{System.String},System.Threading.CancellationToken,System.Collections.Generic.IDictionary{System.String,System.String},System.Action{System.String})"/> then runs the turn here,
            with the same manifest, allow / blocked rules and per-period limits, and keeps memory in
            <see cref="P:Yumina.Games.YuminaClient.LocalMemory"/> (store <see cref="M:Yumina.Games.LocalMemory.Export"/> in the save).
            Nothing is billed by Yumina; the player's provider bills them.
            </summary>
        </member>
        <member name="P:Yumina.Games.OwnKeyApi.IsLocal">
            <summary>An API only this PC can reach (localhost, a LAN address: Ollama, LM Studio): turns on it run in the game.</summary>
        </member>
        <member name="P:Yumina.Games.OwnKeyApi.Url">
            <summary>The API's base URL, e.g. https://api.deepseek.com/v1 (…/chat/completions is added).</summary>
        </member>
        <member name="M:Yumina.Games.OwnKeyApi.ListModelsAsync(System.Threading.CancellationToken)">
            <summary>The models the API lists (empty when it doesn't list them).</summary>
        </member>
        <member name="M:Yumina.Games.OwnKeyApi.TestAsync(System.Threading.CancellationToken)">
            <summary>One short call to check the key, the address and the model. Returns the milliseconds it took.</summary>
        </member>
        <member name="T:Yumina.Games.LocalMemory">
            <summary>What characters remember when turns run on the player's own key: kept in the game's save.</summary>
        </member>
        <member name="M:Yumina.Games.LocalMemory.Export">
            <summary>The memory as one string for the save file.</summary>
        </member>
        <member name="M:Yumina.Games.LocalMemory.Import(System.String)">
            <summary>Call when a save is loaded (null or empty for a new game).</summary>
        </member>
        <member name="M:Yumina.Games.LocalMemory.For(System.String,System.Int32)">
            <summary>A character's memories here, newest first, the same shape as <see cref="M:Yumina.Games.YuminaClient.GetMemoriesAsync(System.String,System.Int32,System.Threading.CancellationToken)"/>.</summary>
        </member>
        <member name="T:Yumina.Games.LocalTurn">
            <summary>A turn on the player's own key: the prompt, the call, and the same checks Yumina makes.</summary>
        </member>
        <member name="M:Yumina.Games.LocalTurn.FailedCondition(Yumina.Games.JsonValue,Yumina.Games.JsonValue)">
            <summary>The first of an action's `when` conditions the inputs fail (as Yumina checks them), or null.</summary>
        </member>
        <member name="M:Yumina.Games.LocalTurn.CheckParams(Yumina.Games.JsonValue,Yumina.Games.JsonValue)">
            <summary>Null when the parameters fit the action's spec, otherwise why not.</summary>
        </member>
        <member name="M:Yumina.Games.LocalTurn.ReadJson(System.String)">
            <summary>The JSON object in a reply, tolerating code fences and text around it.</summary>
        </member>
        <member name="T:Yumina.Games.ITokenStore">
            <summary>
            Where the player's refresh token lives between sessions. It is the only long-lived secret the
            SDK keeps (access tokens stay in memory for minutes). Implement this to put it in your own
            settings system; it must survive a restart and belong to this player on this machine only —
            never put it in a save file that gets shared or synced to other players.
            </summary>
        </member>
        <member name="M:Yumina.Games.ITokenStore.Save(System.String)">
            <param name="refreshToken">null or empty: forget it.</param>
        </member>
        <member name="T:Yumina.Games.MemoryTokenStore">
            <summary>Keeps the token in memory only: the player signs in again every launch.</summary>
        </member>
        <member name="T:Yumina.Games.FileTokenStore">
            <summary>
            A file in the player's own folder. On Windows the token is encrypted with DPAPI for the current
            Windows user (copying the file to another account or PC makes it useless); elsewhere it is
            written owner-readable only where the platform allows.
            </summary>
        </member>
        <member name="M:Yumina.Games.FileTokenStore.#ctor(System.String)">
            <param name="path">e.g. Path.Combine(Application.persistentDataPath, "yumina.token").</param>
        </member>
        <member name="M:Yumina.Games.FileTokenStore.ForApp(System.String)">
            <summary>A file under %APPDATA%/Yumina/&lt;app&gt; (or ~/.config/yumina/&lt;app&gt;).</summary>
        </member>
        <member name="T:Yumina.Games.Dpapi">
            <summary>Windows DPAPI (current user) without a dependency; null where it is not available.</summary>
        </member>
        <member name="T:Yumina.Games.YuminaException">
            <summary>A failed call. <see cref="P:Yumina.Games.YuminaException.Code"/> is the API's machine-readable reason.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaException.Status">
            <summary>HTTP status, or 0 when the request never got an answer.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaException.Code">
            <summary>e.g. insufficient_balance, app_in_development, unknown_head, invalid_token, rate_limit_exceeded.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaException.NeedsSignIn">
            <summary>The player must sign in again (no account, revoked, or expired).</summary>
        </member>
        <member name="P:Yumina.Games.YuminaException.NeedsMushies">
            <summary>The player's wallet cannot pay for this reply: show them <see cref="P:Yumina.Games.Account.PlansUrl"/>.</summary>
        </member>
        <member name="T:Yumina.Games.CardRef">
            <summary>Which card a character runs: a published Yumina card, or one the game ships.</summary>
        </member>
        <member name="P:Yumina.Games.CardRef.World">
            <summary>The inline card's JSON (null for a published card).</summary>
        </member>
        <member name="M:Yumina.Games.CardRef.Hub(System.String)">
            <summary>A card published on Yumina for this game (its id from <see cref="M:Yumina.Games.YuminaClient.GetCardsAsync(System.Threading.CancellationToken)"/>).</summary>
        </member>
        <member name="M:Yumina.Games.CardRef.Inline(Yumina.Games.JsonValue)">
            <summary>The game's own card, as a Yumina card JSON object (export it from Studio or build it at runtime).</summary>
        </member>
        <member name="T:Yumina.Games.GameAction">
            <summary>
            What a character asked the game to do this turn. Yumina already checked it against your
            manifest; your game decides and applies it with its own rules, then calls
            <see cref="M:Yumina.Games.Character.Report(Yumina.Games.Turn,System.Boolean,System.String)"/> so the character knows what really happened.
            </summary>
        </member>
        <member name="P:Yumina.Games.GameAction.Accepted">
            <summary>False: the manifest refused it (see <see cref="P:Yumina.Games.GameAction.Code"/>, <see cref="P:Yumina.Games.GameAction.Reason"/>). Never apply a refused action.</summary>
        </member>
        <member name="P:Yumina.Games.GameAction.Code">
            <summary>Why it was refused: "limit", "not_allowed", "invalid_params", "unknown_action", or "said_not_done"
            (the line handed something over without asking the game); null when accepted.
            The character already said its line, so you may want a word of narration ("He pats his empty sleeve.").</summary>
        </member>
        <member name="P:Yumina.Games.GameAction.Said">
            <summary>For "said_not_done": what the line handed over, in its own words ("a bowl of fried rice").</summary>
        </member>
        <member name="T:Yumina.Games.Allow">
            <summary>
            One action your rules allow this turn, narrowed: <c>Allow.Action("give_item").Only("item", carried)</c>
            offers only what the NPC has on them; <c>.Range("gold", 0, purse)</c> caps a number.
            The character is shown only these values, and Yumina refuses any other.
            </summary>
        </member>
        <member name="M:Yumina.Games.Allow.Only(System.String,System.Collections.Generic.IEnumerable{System.String})">
            <summary>A string parameter may only be one of these (within the manifest's own enum, if it has one).</summary>
        </member>
        <member name="M:Yumina.Games.Allow.Range(System.String,System.Nullable{System.Double},System.Nullable{System.Double})">
            <summary>A number parameter stays within min..max this turn (within the manifest's own range).</summary>
        </member>
        <member name="T:Yumina.Games.Turn">
            <summary>One character turn.</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Id">
            <summary>The turn's id: also the memory head after it.</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Text">
            <summary>What the character says, clean (no bookkeeping).</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Choices">
            <summary>Suggested replies the player can pick, in the player's voice.</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Outputs">
            <summary>The manifest's outputs, e.g. Outputs["friendship_delta"].AsNumber().</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Action">
            <summary>The action the character asked for, or null.</summary>
        </member>
        <member name="P:Yumina.Games.Turn.MemoryHead">
            <summary>Keep this in your save file (YuminaClient.Memory does it for you).</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Cost">
            <summary>Mushies this turn cost the player, and their balance after it (null if unknown).</summary>
        </member>
        <member name="P:Yumina.Games.Turn.OwnKey">
            <summary>The player plays on their own AI key (set in their Yumina account): nothing was charged.</summary>
        </member>
        <member name="P:Yumina.Games.Turn.Raw">
            <summary>The turn exactly as the server sent it, for logging and debugging.</summary>
        </member>
        <member name="P:Yumina.Games.Account.PlansUrl">
            <summary>Open this when a turn fails with <see cref="P:Yumina.Games.YuminaException.NeedsMushies"/>.</summary>
        </member>
        <member name="P:Yumina.Games.Model.Tier">
            <summary>free / regular / premium / … as yumina.io's model picker shows them.</summary>
        </member>
        <member name="P:Yumina.Games.CardInfo.Picked">
            <summary>The player added this character for your game on yumina.io (Game Mods); picks come first in the list.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.ClientId">
            <summary>Your game's client id from yumina.io → Developer.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.TokenStore">
            <summary>Where the refresh token is kept. Default: memory only (sign in every launch).</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.Language">
            <summary>Reply language for every character, e.g. "en", "zh-Hans", "ko". Null: the card decides.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.Model">
            <summary>A model id from <see cref="M:Yumina.Games.YuminaClient.GetModelsAsync(System.Threading.CancellationToken)"/>. Null: the player's default.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.Manifest">
            <summary>
            Send this manifest with every turn instead of the one registered on yumina.io. Handy while you
            iterate; register it before you go live (reviewers read the registered one).
            </summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.UserAgent">
            <summary>Shown in Yumina's request logs: "MyGame/1.2".</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.OpenBrowser">
            <summary>Opens a URL in the player's browser. Default: the OS shell. In Unity pass Application.OpenURL.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaOptions.OwnKey">
            <summary>
            The player's own AI key (DeepSeek, OpenAI, OpenRouter…), with no Yumina account: turns run
            in the game against that API. Null: turns run on Yumina. See <see cref="T:Yumina.Games.OwnKeyApi"/>.
            </summary>
        </member>
        <member name="T:Yumina.Games.YuminaClient">
            <summary>
            Yumina for one game: the player's account and the characters they talk to.
            Every method is async and thread-safe; events fire on a background thread, so marshal to your
            engine's main thread before touching UI.
            </summary>
        </member>
        <member name="F:Yumina.Games.YuminaClient.LoopbackPorts">
            <summary>The ports the SDK's loopback redirect listens on (registered for every Yumina app).</summary>
        </member>
        <member name="E:Yumina.Games.YuminaClient.SignedIn">
            <summary>Fires after a sign-in completes.</summary>
        </member>
        <member name="E:Yumina.Games.YuminaClient.SignedOut">
            <summary>Fires when the player signs out, or Yumina no longer accepts the saved sign-in.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaClient.Memory">
            <summary>The memory head of the current save: store it in your save file, restore it on load.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaClient.LocalMemory">
            <summary>What characters remember when <see cref="P:Yumina.Games.YuminaOptions.OwnKey"/> is set: save <see cref="M:Yumina.Games.LocalMemory.Export"/> with the game.</summary>
        </member>
        <member name="P:Yumina.Games.YuminaClient.IsSignedIn">
            <summary>A sign-in is saved (it may still turn out to be revoked on the next call).</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.SignInWithBrowserAsync(System.Threading.CancellationToken)">
            <summary>
            Signs in through the browser on this machine (RFC 8252): opens yumina.io, waits for the
            browser to hand the code back to 127.0.0.1, and keeps the result in the token store.
            Cancel the token to give up (e.g. the player closed your sign-in dialog).
            </summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.StartQrSignInAsync(System.Threading.CancellationToken)">
            <summary>
            Starts "scan to sign in": show <see cref="P:Yumina.Games.QrSignIn.Qr"/> (or the code and URL) and await
            <see cref="M:Yumina.Games.QrSignIn.WaitAsync(System.Threading.CancellationToken)"/>. The player signs in on their phone or any browser. Works
            where no browser can open on this machine: Steam Deck game mode, consoles, VR, a TV.
            </summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.SignOutAsync">
            <summary>Signs out on this machine and revokes the sign-in on Yumina.</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.Call(System.Net.Http.HttpMethod,System.String,Yumina.Games.JsonValue,System.Threading.CancellationToken,System.Int32,System.String)">
            <summary>An authenticated call; a rejected access token is refreshed once.</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.GetModelsAsync(System.Threading.CancellationToken)">
            <summary>The models the player can pick, in yumina.io's order (most used first).</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.GetCardsAsync(System.Threading.CancellationToken)">
            <summary>Characters published on Yumina for your game (by your manifest's game id). The ones this player added on yumina.io come first, with Picked set.</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.GetMemoriesAsync(System.String,System.Int32,System.Threading.CancellationToken)">
            <summary>What a character remembers in the current save, newest first.</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.RequestAsync(System.Net.Http.HttpMethod,System.String,Yumina.Games.JsonValue,System.Threading.CancellationToken)">
            <summary>
            Any gateway call as the signed-in player, for what the typed helpers don't cover:
            <c>RequestAsync(HttpMethod.Get, "/quests")</c>. The path is relative to /api/ai/v1.
            </summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.RawTurnAsync(Yumina.Games.JsonValue,System.Threading.CancellationToken)">
            <summary>
            A turn from a request you built yourself (the HTTP reference's body), not streamed. The
            memory head in the answer also becomes <see cref="P:Yumina.Games.YuminaClient.Memory"/>'s head.
            </summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.Character(System.String,Yumina.Games.CardRef)">
            <summary>A character the player can talk to. Cheap: create one per conversation partner.</summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.TurnAsync(Yumina.Games.JsonValue,System.Action{System.String},System.Threading.CancellationToken,System.Action{System.String})">
            <summary>
            One turn, low level (Character.SayAsync builds the request for you). With onText, the reply
            streams: onText receives the whole line so far, clean, as it grows; onLine the final line, before the turn.
            </summary>
        </member>
        <member name="M:Yumina.Games.YuminaClient.OwnKeyFor(Yumina.Games.JsonValue)">
            <summary>The player's own key, for a turn that carries `ownKey` (see Character.SayAsync).</summary>
        </member>
        <member name="T:Yumina.Games.QrSignIn">
            <summary>"Scan to sign in", started by <see cref="M:Yumina.Games.YuminaClient.StartQrSignInAsync(System.Threading.CancellationToken)"/>.</summary>
        </member>
        <member name="P:Yumina.Games.QrSignIn.UserCode">
            <summary>Show this big: e.g. "ACDE-2345".</summary>
        </member>
        <member name="P:Yumina.Games.QrSignIn.VerificationUri">
            <summary>Where a player types the code by hand, e.g. https://yumina.io/l.</summary>
        </member>
        <member name="P:Yumina.Games.QrSignIn.Url">
            <summary>The URL in the QR code.</summary>
        </member>
        <member name="M:Yumina.Games.QrSignIn.WaitAsync(System.Threading.CancellationToken)">
            <summary>Completes when the player has signed in; throws if they decline or the code expires.</summary>
        </member>
        <member name="T:Yumina.Games.QrCode">
            <summary>A QR code as squares: draw a dark square wherever <see cref="M:Yumina.Games.QrCode.IsDark(System.Int32,System.Int32)"/>, with a light border of 4.</summary>
        </member>
        <member name="M:Yumina.Games.QrCode.ToRgba(System.Int32,System.Int32)">
            <summary>RGBA32 pixels, top row first, ready for a texture (Unity: flip rows for LoadRawTextureData).</summary>
        </member>
        <member name="T:Yumina.Games.SaveMemory">
            <summary>The memory head of one save. One per save, shared by every character in it.</summary>
        </member>
        <member name="E:Yumina.Games.SaveMemory.Changed">
            <summary>Fires after each turn with the new head: write it into your save data.</summary>
        </member>
        <member name="P:Yumina.Games.SaveMemory.Head">
            <summary>Store this in your save file.</summary>
        </member>
        <member name="M:Yumina.Games.SaveMemory.Load(System.String)">
            <summary>Call when the player loads a save (null for a new game).</summary>
        </member>
        <member name="M:Yumina.Games.Sse.ReadAsync(System.IO.Stream,System.Action{System.String,System.String},System.Threading.CancellationToken)">
            <summary>Reads server-sent events, calling back with (event, data) for each.</summary>
        </member>
    </members>
</doc>
