{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/genhttp-dev/json-schema/genhttp-dev-lambda-response-schema.json",
  "title": "LambdaResponse",
  "description": "A lambda, as whoever holds its editor key sees it.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/genhttp-dev-v1-openapi.json#/components/schemas/LambdaResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "publicKey": {
      "type": "string",
      "description": "Names its address below the hosting domain. Not a secret; its owner may change it."
    },
    "privateKey": {
      "type": "string",
      "description": "The editor key, which authorizes every call about the lambda. Treat it like a password."
    },
    "tier": {
      "type": "string",
      "description": "`Free`, `Premium` or `Demo`, assigned by the operator. Decides its limits, whether it is kept online while nobody uses it, and whether it may answer at a domain of its own."
    },
    "created": {
      "type": "string",
      "description": "When it was created",
      "format": "date-time"
    },
    "modified": {
      "type": "string",
      "description": "When something about it last changed: a save, a deployment, a setting",
      "format": "date-time"
    },
    "activeVersion": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The version that is online; absent while nothing is",
      "format": "int32"
    },
    "latestVersion": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The newest version saved, which may be ahead of the one online",
      "format": "int32"
    },
    "publicUrl": {
      "type": "string",
      "description": "Its address below the hosting domain, named after its public key: `https://quiz.genhttp.run/`. While it answers at a domain of its own, this address sends its visitors on to the domain."
    },
    "editorPath": {
      "type": "string",
      "description": "Where its editor is on this site: `/editor/{privateKey}`. Holds the editor key."
    },
    "deployedAt": {
      "type": [
        "string",
        "null"
      ],
      "description": "When the version online went online; absent while nothing is",
      "format": "date-time"
    },
    "deployedUntil": {
      "type": [
        "string",
        "null"
      ],
      "description": "When it is taken offline unless it is visited or edited before then - each visit and each edit moves this on. Absent while it is offline, and for a tier that keeps it online.",
      "format": "date-time"
    },
    "keptUntil": {
      "type": [
        "string",
        "null"
      ],
      "description": "When it is deleted unless it is visited or edited before then. Absent for a tier that keeps it.",
      "format": "date-time"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ],
      "description": "The domain of its own it is configured to answer at, whether or not its tier lets it"
    },
    "domainServed": {
      "type": "boolean",
      "description": "Whether it answers at that domain: it has one, and its tier includes it"
    },
    "address": {
      "type": "string",
      "description": "Where to link to it: its domain while that is served, `publicUrl` otherwise"
    },
    "view": {
      "type": "string",
      "description": "How its editor opens for somebody who has not chosen a view of their own: `Full` or `Simple`"
    },
    "gitPath": {
      "type": "string",
      "description": "Where it is cloned with git and pushed to, on this site. The versions are the commits of `main`, the features the other branches. Holds the editor key, like the editor's path."
    }
  }
}