Package com.kingsrook.qqq.middleware.javalin.specs.invoke


package com.kingsrook.qqq.middleware.javalin.specs.invoke
  • Class
    Description
    The AI tool kernel's data access through the UI API: every query, count, get, search and widget render is a /qqq/v1 operation, invoked in-process (UiApiInvoker) with the human user's own credentials and the invoker's client channel (assistant/).
    The credentials a caller's request carried, to forward on in-process UI API calls so they authenticate exactly as the caller did: whatever the authentication module (session cookies for OAuth2/OIDC, Auth0, table-based, mock; Authorization or x-api-key headers for API keys and bearer tokens).
    JVM-local, in-memory session tokens accepted only from loopback requests.
    Invokes UI API (`/qqq/v1`) operations from inside the server, with a given user's session, with exactly the semantics of an HTTP client: the call is a loopback HTTP request to the running server, so it passes through the same session setup, permission checks, filters, logging and error mapping as a request from the UI.
    One invocable UI API operation, as described by its endpoint spec: method, path template (relative to the version base path), whether it needs a session, and the full OpenAPI operation (parameters, request body and responses) for building tool definitions.
    One in-process call to a UI API operation (see UiApiInvoker).
    One file part.
    The result of an in-process UI API call: exactly what an HTTP client of the UI API would have received.
    A streaming UI API response.