iya-sts
    Preparing search index...

    Class export=

    The GNAP model: the request schemas and validators built from it and the holding of what the endpoints answer.

    Index
    SAFE: string = MODEL.safePattern

    The pattern every string that states none carries: no C0 control character and no DEL.

    • Every error code the model declares, with the document defining it.

      Returns Json[]

      [{ code, cite, own? }]

    • Whether a JSON value is one of the types a member may take.

      Parameters

      • value: unknown

        the value

      • types: string[]

        from the model

      Returns boolean

      true when it is

    • The gaps this process recorded, newest last, at most a hundred.

      Returns string[]

      a copy

    • Holds an answer to its member set, and records what does not fit under STS-GNAP-0910. The answer is not touched.

      Parameters

      • id: string

        the member set's id

      • body: unknown

        the answer about to be sent

      • where: string

        the endpoint, for the log line

      Returns string[]

      the problems, empty when the answer is the model's

    • Records an error code the model does not declare under STS-GNAP-0911. The response is not touched.

      Parameters

      • code: string

        the GNAP error code about to be sent

      • where: string

        the endpoint, for the log line

      Returns boolean

      true when the model does not declare it

    • One member set: an answer, a discovery document or an object in one.

      Parameters

      • id: string

        the set's id in the model

      Returns Json

      { id, cite, members, list }

    • One set of parameters' validator, built once.

      Parameters

      • id: string

        the set's id in the model: as, continue, manage, interaction-id, approve-query, api-approve, api-code

      Returns any

      the zod object

    • One registry: a list of values, or a table of names to the members each carries.

      Parameters

      • id: string

        the registry's id in the model

      Returns any

      a copy of its values

    • A schema with every cap named by the model replaced by its number.

      Parameters

      • value: any

        a schema, or a part of one

      Returns any

      the resolved copy

    • Every request document's JSON Schema, by name, caps resolved.

      Returns Json

      { grantRequest, continuation, ... }

    • What a value carries that its member set does not allow — a member a closed set does not name, a member of a type or a value the set does not allow, a required member missing — and the same of every object it nests that the model names a set for. Empty when it is the model's.

      Parameters

      • id: string

        the member set's id

      • value: Json

        the answer, or the object nested in one

      • Optionalwhere: string

        the path of the value, for the sentence

      Returns string[]

      one sentence per problem