iya-sts
    Preparing search index...

    The closed sets an administrator's input is held to: the enums the OpenAPI document declares, enforced at the console, the management API's query strings and its bodies.

    A leaf holding the console's register of enums per page and action, and the one refusal sentence all three doors give.

    Index
    • Checks a console form body against what its control is held to.

      An empty value is absent; case is exact.

      Parameters

      • page: string

        the console path

      • action: string

        the form's action value

      • body: any

        the form body

      Returns ClosedCheck

      ok, or the field, value, accepted values and refusal sentence

    • Checks a query string against the enums an operation's query parameters declare.

      Parameters

      • parameters: QueryParameter[]

        the operation's OpenAPI parameters

      • query: any

        the parsed query string

      Returns ClosedCheck

      ok, or the field, value, accepted values and refusal sentence

    • Checks a query string against everything an operation declares in: query: no name it does not declare, and no value that does not fit its declared type. The sentence names the parameter and never its value.

      Parameters

      • parameters: QueryParameter[]

        the operation's parameters

      • query: any

        the request's parsed query

      Returns QueryShapeCheck

      { ok: true }, or { ok: false, field, problem, sentence } where problem is unknown or type

    • Collects every enum a request schema declares outside anyOf, oneOf and not, following $ref into the components.

      An enum marked x-refused-by-handler is left out.

      Parameters

      • schema: any

        the request schema

      • Optionalcomponents: any

        the document's component schemas

      Returns ClosedField[]

      each enum's path (* for an array's items) and values

    • Lists every registered console control; for the tests.

      Returns { action: string; fields: ClosedField[]; page: string }[]

      the page, action and fields of each

    • Whether one query value fits a parameter's declared type.

      Parameters

      • schema: any

        the parameter's schema

      • raw: any

        the value as express parsed it

      Returns boolean

      true when it fits

    • Returns the enums a console POST to a page with an action is held to.

      Parameters

      • page: string

        the console path

      • action: string

        the form's action value

      Returns ClosedField[]

      the fields

    • Returns a form body with every value of a repeated field, which the ordinary body parser does not keep.

      Parameters

      • req: any

        the request

      • parsed: any

        the parsed body, returned as is when the body is not form-encoded

      Returns any

      the fields, a repeated one as an array

    • Says whether any control on a console page is registered under an action of its own.

      Parameters

      • page: string

        the console path

      Returns boolean

      true when one is

    • Registers the top-level enums a console form posting action to page is held to.

      Parameters

      • page: string

        the console path the form posts to

      • action: string

        the form's action value

      • fields: ClosedField[]

        the enums, as collect() answers them; only flat fields are kept

      Returns void

    • A name the CALLER sent, as a refusal sentence says it: quoted, and percent-encoded where it carries a character markup or a string is made of (2026-11-10). A sentence that repeats "><script> verbatim is harmless in JSON or plain text with nosniff, and still sets off every scanner that looks for its probe in the answer (Qualys QID 150084, 29 times in one scan); %22%3E%3Cscript%3E names the same thing and reflects nothing. An ordinary name is left exactly as it was.

      Parameters

      • name: unknown

        what the caller sent

      Returns string

      the quoted name, at most MAX_NAME_SAID characters before encoding

    • Returns the refusal sentence: the field, the value, and every value the set accepts.

      Parameters

      • field: string

        the field's name

      • value: unknown

        the value given

      • values: unknown[]

        the values the set accepts

      Returns string

      the sentence