{
  "openapi": "3.1.0",
  "info": {
    "title": "faas-ch control API",
    "description": "Manages functions on faas-ch: their settings, their code, their logs and their triggers. Every route under `/v1` takes a Biscuit token in an `Authorization: Bearer` header, which names the tenant the request acts for. Functions are invoked on another address, at the `invoke_path` of each function.",
    "license": {
      "name": "Apache-2.0",
      "identifier": "Apache-2.0"
    },
    "version": "0.1.0"
  },
  "paths": {
    "/healthz": {
      "get": {
        "tags": [
          "health"
        ],
        "summary": "Tells whether the platform is up.",
        "description": "Answers as soon as the platform serves requests. Needs no token.",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "The platform is up.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          }
        }
      }
    },
    "/v1/functions": {
      "get": {
        "tags": [
          "functions"
        ],
        "summary": "Lists the functions of the tenant.",
        "description": "Oldest first. A token restricted to some functions cannot list.\n\nRequires a token allowed for the `function:read` operation.",
        "operationId": "listFunctions",
        "responses": {
          "200": {
            "description": "The functions of the tenant.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FunctionList"
                }
              }
            }
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:read"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "functions"
        ],
        "summary": "Creates a function.",
        "description": "The function is created without code, in the `created` status: deploy its code\nwith `PUT /v1/functions/{function_id}/code` to make it invocable.\n\nRequires a token allowed for the `function:write` operation.",
        "operationId": "createFunction",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFunction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The function was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            }
          },
          "400": {
            "description": "The body is not a valid JSON object, or a field is unknown, given twice, or invalid. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "The tenant already has a function with this name.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 64 KiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "The body is not `application/json`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:write"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}": {
      "get": {
        "tags": [
          "functions"
        ],
        "summary": "Gets a function.",
        "description": "Requires a token allowed for the `function:read` operation.",
        "operationId": "getFunction",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The function.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            }
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:read"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "functions"
        ],
        "summary": "Deletes a function.",
        "description": "Stops its instances, and removes its code, its saved state, its logs, its triggers\nand their runs. A deletion that fails half-way can be sent again.\n\nRequires a token allowed for the `function:write` operation.",
        "operationId": "deleteFunction",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The function was deleted."
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "The function is being deployed or deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:write"
            ]
          }
        ]
      },
      "patch": {
        "tags": [
          "functions"
        ],
        "summary": "Changes the settings of a function.",
        "description": "A field left out keeps its value. Changes apply to the next invocations, except\n`memory_mb`, which applies at the next code deploy.\n\nRequires a token allowed for the `function:write` operation.",
        "operationId": "updateFunction",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFunction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The function, changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            }
          },
          "400": {
            "description": "The body is not a valid JSON object, or a field is unknown, given twice, or invalid. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "The tenant already has a function with this name.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 64 KiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "The body is not `application/json`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:write"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}/code": {
      "put": {
        "tags": [
          "functions"
        ],
        "summary": "Deploys the code of a function.",
        "description": "The body is a gzip tarball of a Node.js package: `package.json` at the root of the\narchive, and the dependencies it needs in `node_modules` (the platform runs no\ninstall step). At most 64 MiB compressed, 512 MiB and 50000 entries unpacked.\nThe package is started with `node .` and must listen within 60 s, on all\ninterfaces, on the port given in the `PORT` environment variable.\n\nThe call is synchronous: the platform starts the function, waits until it listens,\nand saves its started state, which every instance begins from. Meanwhile the function is in the `deploying` status and cannot be\ninvoked. A deploy replaces the previous one: `revision` is incremented and the\nrunning instances are stopped. It answers 200 with the function in the `ready`\nstatus, or 422 with the code `deploy_failed` when the function did not come up:\nthe `detail` then quotes what the function printed, and the function is in the\n`failed` status, with the same text as its `error`. An archive that is refused\n(422 with the code `invalid_archive`) leaves the function as it was, except that\nits instances are stopped.\n\nA 500 is a failure of the platform, not of what was sent. Before the code is\nreplaced, it leaves the function as it was. After, the function is `failed`. In\nboth cases the same archive can be deployed again, unless the function's `error`\nsays that files of an interrupted deploy could not be removed: that one waits for\nthe platform's operator.\n\nRequires a token allowed for the `function:write` operation.",
        "operationId": "deployFunctionCode",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "requestBody": {
          "description": "A gzip tarball of the Node.js package.",
          "content": {
            "application/gzip": {
              "schema": {
                "$ref": "#/components/schemas/CodeArchive"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The function is `ready`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Function"
                }
              }
            }
          },
          "400": {
            "description": "The body is empty, or could not be read to its end. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "The function is being deployed or deleted.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "The archive is larger than 64 MiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "The body is not `application/gzip`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "With the code `invalid_archive`, the archive was refused, and the `detail` says why: for instance it is not a gzip tarball, it is cut short, it unpacks to more than the limits, it has no `package.json` at its root, or one of its entries is refused (a path that leaves the package, an entry placed under a symbolic link of the archive, a symbolic link without a target or with one longer than 1024 bytes, entries that conflict, a path or a path component that is too long, a NUL byte in a name, a type other than file, directory and symbolic link, or anything else that keeps an entry from being stored). A symbolic link is kept as it is, wherever it leads: it is only followed inside the function's own file system. With the code `deploy_failed`: the function did not come up, and is now `failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform has no capacity left to start the function, or its database is unreachable.",
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "format": "int32",
                  "minimum": 0
                },
                "description": "Seconds to wait before a retry, when the platform has no capacity left."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "function:write"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}/logs": {
      "get": {
        "tags": [
          "functions"
        ],
        "summary": "Reads the logs of a function.",
        "description": "The logs are what the function wrote to its standard output and error. They come\nin sections, oldest first: the start of the last deploy, which has the function's\nstart-up output, then the last instances, running or stopped (the newest 8),\nnumbered from 1 at each deploy. Each section starts with a line that names its\ninstance and gives its start time:\n`--- deploy boot, started 2026-11-22T17:25:00.123Z ---` or\n`--- instance 3, started 2026-11-22T17:25:05.123Z ---`.\n\nBesides the function's output, a section can hold lines that start with `faas:`,\nwritten by the platform (the end of the function process, with its exit status),\nand system messages if the instance itself fails. A deploy\nstarts the logs anew. `lines` keeps the end of the whole.\n\nRequires a token allowed for the `logs:read` operation.",
        "operationId": "getFunctionLogs",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          },
          {
            "name": "lines",
            "in": "query",
            "description": "Number of lines to return, from the end of the logs.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 200,
              "maximum": 2000,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The end of the logs.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "`lines` is not an integer between 1 and 2000. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "logs:read"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}/triggers": {
      "get": {
        "tags": [
          "triggers"
        ],
        "summary": "Lists the triggers of a function.",
        "description": "Requires a token allowed for the `trigger:read` operation.",
        "operationId": "listTriggers",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The triggers of the function, oldest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerList"
                }
              }
            }
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:read"
            ]
          }
        ]
      },
      "post": {
        "tags": [
          "triggers"
        ],
        "summary": "Creates a trigger.",
        "description": "A cron trigger invokes the function at each occurrence of its schedule with a\nCloudEvent in structured mode: `POST /` with the `application/cloudevents+json`\ncontent type, an event of type `com.github.davlgd.faas-ch.cron.fired` whose `data`\nholds `trigger_id`, `schedule`, `timezone` and `scheduled_at`. It takes effect at\nonce. Occurrences missed while the platform was down are not replayed.\n\nRequires a token allowed for the `trigger:write` operation.",
        "operationId": "createTrigger",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTrigger"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "description": "The trigger was created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trigger"
                }
              }
            }
          },
          "400": {
            "description": "The body is not a valid JSON object, or a field is unknown, given twice, or invalid. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 64 KiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "The body is not `application/json`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:write"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}/triggers/{trigger_id}": {
      "get": {
        "tags": [
          "triggers"
        ],
        "summary": "Gets a trigger.",
        "description": "Requires a token allowed for the `trigger:read` operation.",
        "operationId": "getTrigger",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          },
          {
            "name": "trigger_id",
            "in": "path",
            "description": "Identifier of the trigger.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TriggerId"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The trigger.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trigger"
                }
              }
            }
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function, or the function no such trigger.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:read"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "triggers"
        ],
        "summary": "Deletes a trigger, and its runs.",
        "description": "Requires a token allowed for the `trigger:write` operation.",
        "operationId": "deleteTrigger",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          },
          {
            "name": "trigger_id",
            "in": "path",
            "description": "Identifier of the trigger.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TriggerId"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The trigger was deleted."
          },
          "400": {
            "description": "A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function, or the function no such trigger.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:write"
            ]
          }
        ]
      },
      "patch": {
        "tags": [
          "triggers"
        ],
        "summary": "Changes a trigger.",
        "description": "A field left out keeps its value. The change takes effect at once: the next\noccurrence is counted from now.\n\nRequires a token allowed for the `trigger:write` operation.",
        "operationId": "updateTrigger",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          },
          {
            "name": "trigger_id",
            "in": "path",
            "description": "Identifier of the trigger.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TriggerId"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTrigger"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "The trigger, changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Trigger"
                }
              }
            }
          },
          "400": {
            "description": "The body is not a valid JSON object, or a field is unknown, given twice, or invalid. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function, or the function no such trigger.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "The body is larger than 64 KiB.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "The body is not `application/json`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:write"
            ]
          }
        ]
      }
    },
    "/v1/functions/{function_id}/triggers/{trigger_id}/runs": {
      "get": {
        "tags": [
          "triggers"
        ],
        "summary": "Lists the runs of a trigger.",
        "description": "Latest first. The platform keeps the newest 100 runs of a trigger.\n\nRequires a token allowed for the `trigger:read` operation.",
        "operationId": "listTriggerRuns",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "description": "Identifier of the function.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FunctionId"
            }
          },
          {
            "name": "trigger_id",
            "in": "path",
            "description": "Identifier of the trigger.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/TriggerId"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of runs to return.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 20,
              "maximum": 100,
              "minimum": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The newest runs of the trigger, latest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TriggerRunList"
                }
              }
            }
          },
          "400": {
            "description": "`limit` is not an integer between 1 and 100. A query parameter is unknown or given twice, or the query string is malformed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "No token, or not a valid Biscuit of this platform (`unauthenticated`); or an expired one (`token_expired`).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "The token is restricted to other operations or to other functions: the `detail` says which.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "The tenant has no such function, or the function no such trigger.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "The platform failed.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "The platform cannot serve the request for now: its database is unreachable.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "biscuit": [
              "trigger:read"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CodeArchive": {
        "type": "string",
        "format": "binary",
        "description": "A gzip tarball of a Node.js package."
      },
      "CreateFunction": {
        "type": "object",
        "description": "The settings of a new function: the body of its creation.",
        "required": [
          "name"
        ],
        "properties": {
          "idle_timeout_seconds": {
            "type": "integer",
            "format": "int32",
            "description": "Time an instance stays up without an invocation, in seconds.",
            "default": 60,
            "maximum": 3600,
            "minimum": 1
          },
          "max_concurrency": {
            "type": "integer",
            "format": "int32",
            "description": "Most invocations one instance serves at once.",
            "default": 100,
            "maximum": 1000,
            "minimum": 1
          },
          "max_instances": {
            "type": "integer",
            "format": "int32",
            "description": "Most instances running at once.",
            "default": 2,
            "maximum": 64,
            "minimum": 1
          },
          "memory_mb": {
            "type": "integer",
            "format": "int32",
            "description": "Memory of an instance, in MiB.",
            "default": 256,
            "maximum": 4096,
            "minimum": 128
          },
          "name": {
            "type": "string",
            "description": "Name of the function, unique among the tenant's functions: 1 to 64 characters\namong letters, digits, `-` and `_`.",
            "examples": [
              "hello"
            ],
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "public": {
            "type": "boolean",
            "description": "Whether the function can be invoked without a token.",
            "default": false
          },
          "timeout_seconds": {
            "type": "integer",
            "format": "int32",
            "description": "Time an invocation may take, in seconds, from the request to the end of the\nresponse.",
            "default": 60,
            "maximum": 3600,
            "minimum": 1
          }
        },
        "additionalProperties": false
      },
      "CreateTrigger": {
        "type": "object",
        "description": "A new trigger: the body of its creation.",
        "required": [
          "schedule"
        ],
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "Whether the trigger fires.",
            "default": true
          },
          "kind": {
            "$ref": "#/components/schemas/TriggerKind",
            "description": "What fires the trigger. Only `cron` exists.",
            "default": "cron"
          },
          "schedule": {
            "type": "string",
            "description": "Cron expression with five fields: minute, hour, day of month, month, day of week.",
            "examples": [
              "*/5 * * * *"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "IANA name of the time zone the schedule is read in.",
            "default": "UTC",
            "examples": [
              "Europe/Paris"
            ]
          }
        },
        "additionalProperties": false
      },
      "Function": {
        "type": "object",
        "description": "A function, as the API shows it: without its tenant, with where to invoke it.",
        "required": [
          "id",
          "name",
          "memory_mb",
          "timeout_seconds",
          "max_instances",
          "max_concurrency",
          "idle_timeout_seconds",
          "public",
          "status",
          "revision",
          "invoke_path",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the last deploy failed, when `status` is `failed`."
          },
          "id": {
            "$ref": "#/components/schemas/FunctionId"
          },
          "idle_timeout_seconds": {
            "type": "integer",
            "format": "int32",
            "description": "Time an instance stays up without an invocation, in seconds.",
            "examples": [
              60
            ]
          },
          "invoke_path": {
            "type": "string",
            "description": "Path of the function on the invocation address.",
            "examples": [
              "/function_3f2b8c1e-6d4a-4f0b-9c57-0a1e2d3c4b5a"
            ]
          },
          "max_concurrency": {
            "type": "integer",
            "format": "int32",
            "description": "Most invocations one instance serves at once.",
            "examples": [
              100
            ]
          },
          "max_instances": {
            "type": "integer",
            "format": "int32",
            "description": "Most instances running at once.",
            "examples": [
              2
            ]
          },
          "memory_mb": {
            "type": "integer",
            "format": "int32",
            "description": "Memory of an instance, in MiB. A change applies at the next code deploy: the\ninstances start from the state saved at deploy time, with the memory of that time.",
            "examples": [
              256
            ]
          },
          "name": {
            "type": "string",
            "description": "Name of the function, unique among the tenant's functions.",
            "examples": [
              "hello"
            ]
          },
          "public": {
            "type": "boolean",
            "description": "Whether the function can be invoked without a token."
          },
          "revision": {
            "type": "integer",
            "format": "int32",
            "description": "Number of code deploys so far, failed ones included.",
            "examples": [
              1
            ]
          },
          "status": {
            "$ref": "#/components/schemas/FunctionStatus"
          },
          "timeout_seconds": {
            "type": "integer",
            "format": "int32",
            "description": "Time an invocation may take, in seconds, from the request to the end of the\nresponse.",
            "examples": [
              60
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "FunctionId": {
        "type": "string",
        "description": "Identifier of a function: `function_` followed by a UUIDv4.",
        "examples": [
          "function_3f2b8c1e-6d4a-4f0b-9c57-0a1e2d3c4b5a"
        ],
        "pattern": "^function_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
      },
      "FunctionList": {
        "type": "object",
        "description": "The functions of the tenant.",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Function"
            }
          }
        }
      },
      "FunctionStatus": {
        "type": "string",
        "description": "Where a function stands between its creation and being invocable.",
        "enum": [
          "created",
          "deploying",
          "ready",
          "failed"
        ]
      },
      "Health": {
        "type": "object",
        "description": "The platform's health.",
        "required": [
          "status"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "Always `ok`: the platform answers.",
            "examples": [
              "ok"
            ]
          }
        }
      },
      "Problem": {
        "type": "object",
        "description": "An RFC 9457 problem document.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ProblemCode",
            "description": "What happened, for a program."
          },
          "detail": {
            "type": "string",
            "description": "What happened and what to do next, for a human."
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "The HTTP status code.",
            "minimum": 0
          },
          "title": {
            "type": "string",
            "description": "The reason phrase of the HTTP status."
          },
          "type": {
            "type": "string",
            "description": "Always `about:blank`: the problem is identified by `code`."
          }
        },
        "examples": [
          {
            "code": "not_found",
            "detail": "function not found",
            "status": 404,
            "title": "Not Found",
            "type": "about:blank"
          }
        ]
      },
      "ProblemCode": {
        "type": "string",
        "description": "What went wrong, for programs: stable, unlike `detail`. The codes, with the status they come with:\n- `invalid_request`, 400: the request is malformed, or a value is out of bounds\n- `unauthenticated`, 401: no token, or a token that is not a valid Biscuit of this platform\n- `token_expired`, 401: the token has expired\n- `forbidden`, 403: the token's checks refuse this request\n- `not_found`, 404: no such resource for this tenant, or no such route\n- `method_not_allowed`, 405: the route does not take this method\n- `conflict`, 409: the request conflicts with the state of the resource\n- `not_deployed`, 409: the function has no code yet\n- `deploy_failed`, 422 on a deploy: the function did not come up; 409 on an invocation: its last deploy failed\n- `payload_too_large`, 413: the body is larger than the documented limit\n- `unsupported_media_type`, 415: the body is not of the documented media type\n- `invalid_archive`, 422: the code archive was refused\n- `too_many_requests`, 429: the function is at its limit of instances and of concurrency\n- `internal`, 500: the platform failed\n- `bad_gateway`, 502: the function instance failed while serving the request\n- `unavailable`, 503: the function, or the platform, cannot serve the request for now\n- `timeout`, 504: the function did not answer within its timeout",
        "enum": [
          "invalid_request",
          "unauthenticated",
          "token_expired",
          "forbidden",
          "not_found",
          "method_not_allowed",
          "conflict",
          "not_deployed",
          "deploy_failed",
          "payload_too_large",
          "unsupported_media_type",
          "invalid_archive",
          "too_many_requests",
          "internal",
          "bad_gateway",
          "unavailable",
          "timeout"
        ]
      },
      "RunOutcome": {
        "type": "string",
        "description": "How a run of a trigger ended.",
        "enum": [
          "succeeded",
          "failed",
          "error"
        ]
      },
      "Trigger": {
        "type": "object",
        "description": "A trigger, as the API shows it: with when it fires next.",
        "required": [
          "id",
          "function_id",
          "kind",
          "schedule",
          "timezone",
          "enabled",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "enabled": {
            "type": "boolean",
            "description": "Whether the trigger fires."
          },
          "function_id": {
            "$ref": "#/components/schemas/FunctionId"
          },
          "id": {
            "$ref": "#/components/schemas/TriggerId"
          },
          "kind": {
            "$ref": "#/components/schemas/TriggerKind"
          },
          "next_fire_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When the trigger fires next, if it is enabled."
          },
          "schedule": {
            "type": "string",
            "description": "Cron expression with five fields: minute, hour, day of month, month, day of week.",
            "examples": [
              "*/5 * * * *"
            ]
          },
          "timezone": {
            "type": "string",
            "description": "IANA name of the time zone the schedule is read in.",
            "examples": [
              "Europe/Paris"
            ]
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "TriggerId": {
        "type": "string",
        "description": "Identifier of a trigger: `trigger_` followed by a UUIDv4.",
        "examples": [
          "trigger_3f2b8c1e-6d4a-4f0b-9c57-0a1e2d3c4b5a"
        ],
        "pattern": "^trigger_[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
      },
      "TriggerKind": {
        "type": "string",
        "description": "What fires a trigger.",
        "enum": [
          "cron"
        ]
      },
      "TriggerList": {
        "type": "object",
        "description": "The triggers of a function.",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trigger"
            }
          }
        }
      },
      "TriggerRun": {
        "type": "object",
        "description": "One firing of a trigger.",
        "required": [
          "scheduled_at",
          "started_at",
          "duration_ms",
          "outcome"
        ],
        "properties": {
          "duration_ms": {
            "type": "integer",
            "format": "int64",
            "description": "How long the invocation took, in milliseconds, instance start included.",
            "examples": [
              93
            ]
          },
          "error": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why the function gave no answer, when `outcome` is `error`."
          },
          "http_status": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The status the function answered with, if it answered.",
            "examples": [
              200
            ]
          },
          "outcome": {
            "$ref": "#/components/schemas/RunOutcome",
            "description": "How the run ended."
          },
          "scheduled_at": {
            "type": "string",
            "format": "date-time",
            "description": "The occurrence of the schedule this run is for."
          },
          "started_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the platform started the invocation."
          }
        }
      },
      "TriggerRunList": {
        "type": "object",
        "description": "The newest runs of a trigger.",
        "required": [
          "items"
        ],
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TriggerRun"
            }
          }
        }
      },
      "UpdateFunction": {
        "type": "object",
        "description": "A change of settings: a field left out keeps its value.",
        "properties": {
          "idle_timeout_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Time an instance stays up without an invocation, in seconds.",
            "maximum": 3600,
            "minimum": 1
          },
          "max_concurrency": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Most invocations one instance serves at once.",
            "maximum": 1000,
            "minimum": 1
          },
          "max_instances": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Most instances running at once.",
            "maximum": 64,
            "minimum": 1
          },
          "memory_mb": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Memory of an instance, in MiB. Applies at the next code deploy.",
            "maximum": 4096,
            "minimum": 128
          },
          "name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the function, unique among the tenant's functions.",
            "examples": [
              "hello"
            ],
            "maxLength": 64,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]+$"
          },
          "public": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the function can be invoked without a token."
          },
          "timeout_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "Time an invocation may take, in seconds.",
            "maximum": 3600,
            "minimum": 1
          }
        },
        "additionalProperties": false
      },
      "UpdateTrigger": {
        "type": "object",
        "description": "A change to a trigger: a field left out keeps its value.",
        "properties": {
          "enabled": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether the trigger fires."
          },
          "schedule": {
            "type": [
              "string",
              "null"
            ],
            "description": "Cron expression with five fields.",
            "examples": [
              "0 9 * * 1-5"
            ]
          },
          "timezone": {
            "type": [
              "string",
              "null"
            ],
            "description": "IANA name of the time zone the schedule is read in.",
            "examples": [
              "Europe/Paris"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "biscuit": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "Biscuit",
        "description": "A Biscuit token in base64, signed by the platform's root key. Its authority block names the tenant: `tenant(\"tenant_<uuidv4>\")`. It may carry checks that restrict it by function, by operation and by expiry, added when it is minted or later by attenuation. Operations:\n- `function:read`: read functions and their settings\n- `function:write`: create, change, deploy and delete functions\n- `function:invoke`: invoke functions\n- `trigger:read`: read triggers and their runs\n- `trigger:write`: create, change and delete triggers\n- `logs:read`: read the logs of functions"
      }
    }
  },
  "tags": [
    {
      "name": "health",
      "description": "Whether the platform is up."
    },
    {
      "name": "functions",
      "description": "Functions: settings, code deploys and logs."
    },
    {
      "name": "triggers",
      "description": "Triggers of a function, and their runs."
    }
  ],
  "externalDocs": {
    "url": "https://faas.davlgd.com/guide/",
    "description": "Guide"
  }
}
