{
  "components": {
    "schemas": {
      "AIModel": {
        "properties": {
          "credits": {
            "type": "integer"
          },
          "description": {
            "type": "string"
          },
          "example": {
            "type": "boolean"
          },
          "id": {
            "type": "string"
          },
          "inputs": {
            "items": {
              "$ref": "#/components/schemas/AIModelInput"
            },
            "type": "array"
          },
          "key": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "image",
              "video",
              "audio",
              "3d",
              "text"
            ],
            "type": "string"
          },
          "live": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "picture": {
            "description": "picture names the model's picture, served at /v1/models/{model}/picture/{picture}; empty when it has none.",
            "type": "string"
          },
          "settings": {
            "items": {
              "$ref": "#/components/schemas/AIModelSetting"
            },
            "type": "array"
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AIModelText"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "credits",
          "description",
          "example",
          "id",
          "inputs",
          "key",
          "kind",
          "live",
          "name",
          "picture",
          "settings",
          "text"
        ],
        "type": "object"
      },
      "AIModelChoice": {
        "properties": {
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        },
        "required": [
          "label",
          "value"
        ],
        "type": "object"
      },
      "AIModelInput": {
        "properties": {
          "hint": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "max": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "required": {
            "type": "boolean"
          },
          "several": {
            "description": "several says the input takes a list, of at most max items.",
            "type": "boolean"
          },
          "type": {
            "enum": [
              "text",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "required": [
          "hint",
          "label",
          "max",
          "name",
          "required",
          "several",
          "type"
        ],
        "type": "object"
      },
      "AIModelPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/AIModel"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "AIModelSetting": {
        "properties": {
          "choices": {
            "items": {
              "$ref": "#/components/schemas/AIModelChoice"
            },
            "type": "array"
          },
          "control": {
            "enum": [
              "choice",
              "number",
              "toggle",
              "text"
            ],
            "type": "string"
          },
          "default": {
            "type": "string"
          },
          "hint": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "max": {
            "type": "number"
          },
          "maxLength": {
            "type": "integer"
          },
          "min": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "optional": {
            "type": "boolean"
          },
          "step": {
            "type": "number"
          }
        },
        "required": [
          "choices",
          "control",
          "default",
          "hint",
          "label",
          "max",
          "maxLength",
          "min",
          "name",
          "optional",
          "step"
        ],
        "type": "object"
      },
      "AIModelText": {
        "properties": {
          "contextTokens": {
            "type": "integer"
          },
          "fixedForm": {
            "type": "boolean"
          }
        },
        "required": [
          "contextTokens",
          "fixedForm"
        ],
        "type": "object"
      },
      "AddSpaceNodesRequest": {
        "properties": {
          "connections": {
            "description": "connections to make in the same step, between these nodes and nodes that are there.",
            "items": {
              "$ref": "#/components/schemas/SpaceConnectionWords"
            },
            "type": "array"
          },
          "nodes": {
            "description": "The nodes to add. A node is placed after what this request wires into it, in whatever order they are given.",
            "items": {
              "$ref": "#/components/schemas/SpaceAddNode"
            },
            "type": "array"
          }
        },
        "required": [
          "nodes"
        ],
        "type": "object"
      },
      "AddSpaceResultRequest": {
        "properties": {
          "fileId": {
            "description": "A ready file of the organization's Library.",
            "type": "string"
          },
          "nodeId": {
            "description": "The node the file becomes a result of.",
            "type": "string"
          },
          "slot": {
            "description": "The output of the node it is for. Leave it out for a node with one output.",
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "nodeId"
        ],
        "type": "object"
      },
      "ApproveSpaceRunRequest": {
        "properties": {
          "approvedCredits": {
            "description": "The new ceiling, no lower than the one before.",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "approvedCredits"
        ],
        "type": "object"
      },
      "BeginLibraryUploadRequest": {
        "properties": {
          "folderId": {
            "description": "The folder the file goes into, if any.",
            "type": "string"
          },
          "name": {
            "description": "The file's name with its extension, which says what kind of file it is.",
            "type": "string"
          },
          "sizeBytes": {
            "description": "How large the file is, in bytes. The upload is refused when what arrives is another size.",
            "type": "integer"
          },
          "spaceId": {
            "description": "The space the file is added from, if any.",
            "type": "string"
          }
        },
        "required": [
          "name",
          "sizeBytes"
        ],
        "type": "object"
      },
      "ChangeSpaceTemplateRequest": {
        "properties": {
          "coverFileId": {
            "description": "Another picture of the Library for its cover; an empty text takes the cover away. Left out, it stays.",
            "type": [
              "string",
              "null"
            ]
          },
          "description": {
            "description": "A new description. Left out, it stays.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "description": "A new name. Left out, the name stays.",
            "type": [
              "string",
              "null"
            ]
          },
          "withResults": {
            "description": "Whether spaces started from it may bring its results. Left out, it stays.",
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "ConnectSpaceNodesRequest": {
        "properties": {
          "connections": {
            "items": {
              "$ref": "#/components/schemas/SpaceConnectionWords"
            },
            "type": "array"
          }
        },
        "required": [
          "connections"
        ],
        "type": "object"
      },
      "CreateLibraryFolderRequest": {
        "properties": {
          "name": {
            "description": "The folder's name.",
            "type": "string"
          },
          "parentId": {
            "description": "The folder the new one goes inside. Leave it out for the top.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "CreateSpaceRequest": {
        "properties": {
          "name": {
            "description": "The space's name, at most 120 characters. A space from a template may leave it out, and is then called after\nthe template.",
            "type": "string"
          },
          "templateId": {
            "description": "One of the organization's templates to start from. Leave it out for an empty space.",
            "type": "string"
          },
          "withResults": {
            "description": "Bring the results the template's space showed, which only a template saved with its results offers.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "Creation": {
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "fileIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "reason": {
            "description": "reason is why it failed, when it did.",
            "type": "string"
          },
          "recipe": {
            "$ref": "#/components/schemas/MakeValues"
          },
          "runId": {
            "type": "string"
          },
          "state": {
            "enum": [
              "making",
              "made",
              "failed"
            ],
            "type": "string"
          },
          "text": {
            "description": "text is what a request to a text model answered; empty for the others.",
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "fileIds",
          "id",
          "reason",
          "recipe",
          "runId",
          "state",
          "text"
        ],
        "type": "object"
      },
      "CreationPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Creation"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          },
          "spaceId": {
            "description": "spaceId is the person's makes space, whose channel says when what is in it changes; empty before their\nfirst make.",
            "type": "string"
          }
        },
        "required": [
          "items",
          "meta",
          "spaceId"
        ],
        "type": "object"
      },
      "DuplicateSpaceRequest": {
        "properties": {
          "at": {
            "description": "The change number to copy the design at. Left out, it is copied as it is now.",
            "type": "integer"
          },
          "name": {
            "description": "The new space's name. Left out, it is called after the space it comes from.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorBody": {
        "properties": {
          "code": {
            "example": "revision_conflict",
            "type": "string"
          },
          "fields": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "type": "object"
          },
          "message": {
            "example": "The resource has changed.",
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "type": "object"
      },
      "EstimateSpaceRunRequest": {
        "properties": {
          "groupId": {
            "description": "The group to run, for group.",
            "type": "string"
          },
          "item": {
            "description": "For iterator: which item to make, counted from 0, in the list's order. The first when left out.",
            "minimum": 0,
            "type": "integer"
          },
          "kind": {
            "description": "What to run: all is the whole space; nodes is the nodes in nodeIds and what they need before them; group is\neverything inside the group in groupId; iterator makes one item of a list through every node that runs once for\neach of its items: repeat names the repeat, and item which.",
            "enum": [
              "all",
              "nodes",
              "group",
              "iterator"
            ],
            "type": "string"
          },
          "missing": {
            "description": "Make only what is missing: what was never made, failed, or is out of date. A result that is up to date is\nkept, though its node is named. Left out, the named nodes are made again for new results; what they need is\nmade only where it is not up to date, either way.",
            "type": "boolean"
          },
          "nodeIds": {
            "description": "The nodes to run, for nodes.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "repeat": {
            "description": "For iterator: the repeat to make one item of, by the ID a node's runsFor in the outline and the run state's\nrepeats give it, such as each:node_… for a list node or a combine.",
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "FileOrigin": {
        "properties": {
          "batchRunId": {
            "type": "string"
          },
          "chargedCredits": {
            "type": "integer"
          },
          "fileId": {
            "type": "string"
          },
          "inMake": {
            "description": "inMake says it was made from the Make panel, so it leads to the model's page, not to a canvas.",
            "type": "boolean"
          },
          "jobId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelKey": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeKind": {
            "type": "string"
          },
          "nodeName": {
            "type": "string"
          },
          "prompt": {
            "description": "prompt is the text that went into the job's prompt input, or else its first text input.",
            "type": "string"
          },
          "resultId": {
            "type": "string"
          },
          "spaceId": {
            "type": "string"
          },
          "takes": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "batchRunId",
          "chargedCredits",
          "fileId",
          "inMake",
          "jobId",
          "nodeId",
          "nodeKind",
          "nodeName",
          "prompt",
          "resultId",
          "spaceId",
          "takes"
        ],
        "type": "object"
      },
      "FileOriginPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/FileOrigin"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "LibraryFile": {
        "properties": {
          "addedBy": {
            "$ref": "#/components/schemas/LibraryFilePerson"
          },
          "audio": {
            "$ref": "#/components/schemas/LibraryFileAudio"
          },
          "contentType": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "failure": {
            "description": "failure says why the file failed or was blocked, in words for the person.",
            "type": "string"
          },
          "folderId": {
            "type": [
              "string",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "image": {
            "$ref": "#/components/schemas/LibraryFileImage"
          },
          "kind": {
            "enum": [
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          },
          "links": {
            "$ref": "#/components/schemas/LibraryFileLinks"
          },
          "model": {
            "$ref": "#/components/schemas/LibraryFileModel"
          },
          "name": {
            "type": "string"
          },
          "origin": {
            "enum": [
              "uploaded",
              "generated"
            ],
            "type": "string"
          },
          "purgeAfter": {
            "type": [
              "string",
              "null"
            ]
          },
          "sizeBytes": {
            "type": "integer"
          },
          "spaceId": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "enum": [
              "uploading",
              "processing",
              "ready",
              "failed",
              "blocked"
            ],
            "type": "string"
          },
          "tags": {
            "description": "tags are the file's tags, lowercased, in the order they were added.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "trashedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "video": {
            "$ref": "#/components/schemas/LibraryFileVideo"
          }
        },
        "required": [
          "addedBy",
          "contentType",
          "createdAt",
          "failure",
          "folderId",
          "id",
          "kind",
          "name",
          "origin",
          "purgeAfter",
          "sizeBytes",
          "spaceId",
          "status",
          "tags",
          "trashedAt"
        ],
        "type": "object"
      },
      "LibraryFileAudio": {
        "properties": {
          "durationMs": {
            "type": "integer"
          },
          "peaks": {
            "description": "peaks draw the waveform: numbers between 0 and 1.",
            "items": {
              "type": "number"
            },
            "type": "array"
          }
        },
        "required": [
          "durationMs",
          "peaks"
        ],
        "type": "object"
      },
      "LibraryFileIDsRequest": {
        "properties": {
          "ids": {
            "description": "The files, up to 100.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "LibraryFileImage": {
        "properties": {
          "animated": {
            "type": "boolean"
          },
          "height": {
            "type": "integer"
          },
          "placeholder": {
            "description": "placeholder is a tiny blurred preview as a data URL, shown until the thumbnail arrives.",
            "type": "string"
          },
          "width": {
            "type": "integer"
          }
        },
        "required": [
          "animated",
          "height",
          "placeholder",
          "width"
        ],
        "type": "object"
      },
      "LibraryFileLinks": {
        "properties": {
          "download": {
            "type": "string"
          },
          "large": {
            "type": "string"
          },
          "original": {
            "type": "string"
          },
          "strip": {
            "description": "A video's frames side by side (stripFrames of them), for scrubbing along it.",
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          }
        },
        "required": [
          "download"
        ],
        "type": "object"
      },
      "LibraryFileModel": {
        "properties": {
          "format": {
            "type": "string"
          }
        },
        "required": [
          "format"
        ],
        "type": "object"
      },
      "LibraryFilePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LibraryFile"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "LibraryFilePerson": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "LibraryFileVideo": {
        "properties": {
          "durationMs": {
            "type": "integer"
          },
          "fps": {
            "type": "number"
          },
          "hasAudio": {
            "type": "boolean"
          },
          "height": {
            "type": "integer"
          },
          "placeholder": {
            "type": "string"
          },
          "stripFrames": {
            "description": "How many frames the strip in links holds; 0 when it has none.",
            "type": "integer"
          },
          "width": {
            "type": "integer"
          }
        },
        "required": [
          "durationMs",
          "fps",
          "hasAudio",
          "height",
          "placeholder",
          "stripFrames",
          "width"
        ],
        "type": "object"
      },
      "LibraryFolder": {
        "properties": {
          "covers": {
            "items": {
              "$ref": "#/components/schemas/LibraryFolderCover"
            },
            "type": "array"
          },
          "createdAt": {
            "type": "string"
          },
          "files": {
            "type": "integer"
          },
          "folders": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "parentId": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "covers",
          "createdAt",
          "files",
          "folders",
          "id",
          "name",
          "parentId"
        ],
        "type": "object"
      },
      "LibraryFolderCover": {
        "properties": {
          "fileId": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "image",
              "video"
            ],
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "placeholder": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "kind",
          "name",
          "placeholder",
          "thumbnail"
        ],
        "type": "object"
      },
      "LibraryFolderPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LibraryFolder"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "LibraryKindCount": {
        "properties": {
          "files": {
            "type": "integer"
          },
          "kind": {
            "enum": [
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "required": [
          "files",
          "kind"
        ],
        "type": "object"
      },
      "LibraryReference": {
        "properties": {
          "accent": {
            "type": "string"
          },
          "colors": {
            "description": "The colours of a palette or a brand kit, each as #RRGGBB.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "createdAt": {
            "type": "string"
          },
          "description": {
            "description": "What it is, in words: how a character or a place looks, a style as a prompt, how a brand speaks, what an agent is for.",
            "type": "string"
          },
          "fonts": {
            "description": "The names of a brand kit's typefaces, the one for headings first.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "gender": {
            "description": "A character's gender, where it is said.",
            "enum": [
              "not_specified",
              "male",
              "female",
              "non_binary"
            ],
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identityId": {
            "description": "Who made it.",
            "type": "string"
          },
          "instructions": {
            "description": "What the assistant is told first when it works as this agent.",
            "type": "string"
          },
          "kind": {
            "enum": [
              "character",
              "element",
              "style",
              "color",
              "location",
              "brand_kit",
              "agent",
              "voice"
            ],
            "type": "string"
          },
          "language": {
            "type": "string"
          },
          "name": {
            "description": "What people call it: unique among the organization's references of its kind, whatever its case.",
            "type": "string"
          },
          "pictures": {
            "description": "Its Library pictures, in its own order, as signed thumbnails. A picture that has gone from the Library is left out.",
            "items": {
              "$ref": "#/components/schemas/LibraryReferencePicture"
            },
            "type": "array"
          },
          "samples": {
            "description": "A voice's recordings, each a Library sound with what it says, and its language and accent; its gender is gender.\nA voice is listed only to the person who made it.",
            "items": {
              "$ref": "#/components/schemas/LibraryVoiceSample"
            },
            "type": "array"
          },
          "type": {
            "description": "What kind of thing an element is, in a word or two.",
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "accent",
          "colors",
          "createdAt",
          "description",
          "fonts",
          "gender",
          "id",
          "identityId",
          "instructions",
          "kind",
          "language",
          "name",
          "pictures",
          "samples",
          "type",
          "updatedAt"
        ],
        "type": "object"
      },
      "LibraryReferencePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LibraryReference"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "LibraryReferencePicture": {
        "properties": {
          "fileId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "placeholder": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          }
        },
        "required": [
          "fileId",
          "name",
          "placeholder",
          "thumbnail"
        ],
        "type": "object"
      },
      "LibraryTag": {
        "properties": {
          "files": {
            "type": "integer"
          },
          "tag": {
            "type": "string"
          }
        },
        "required": [
          "files",
          "tag"
        ],
        "type": "object"
      },
      "LibraryTagPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/LibraryTag"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "LibraryUpload": {
        "properties": {
          "file": {
            "$ref": "#/components/schemas/LibraryFile"
          },
          "upload": {
            "$ref": "#/components/schemas/LibraryUploadTarget"
          }
        },
        "required": [
          "file",
          "upload"
        ],
        "type": "object"
      },
      "LibraryUploadTarget": {
        "properties": {
          "expiresAt": {
            "type": "string"
          },
          "headers": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "url": {
            "type": "string"
          }
        },
        "required": [
          "expiresAt",
          "headers",
          "url"
        ],
        "type": "object"
      },
      "LibraryUsage": {
        "properties": {
          "bytes": {
            "type": "integer"
          },
          "files": {
            "type": "integer"
          },
          "kinds": {
            "description": "kinds counts the files of each kind outside the trash, one entry for every kind.",
            "items": {
              "$ref": "#/components/schemas/LibraryKindCount"
            },
            "type": "array"
          }
        },
        "required": [
          "bytes",
          "files",
          "kinds"
        ],
        "type": "object"
      },
      "LibraryVoiceSample": {
        "properties": {
          "soundId": {
            "type": "string"
          },
          "words": {
            "type": "string"
          }
        },
        "required": [
          "soundId",
          "words"
        ],
        "type": "object"
      },
      "Made": {
        "properties": {
          "nodeId": {
            "type": "string"
          },
          "runId": {
            "type": "string"
          },
          "spaceId": {
            "type": "string"
          }
        },
        "required": [
          "nodeId",
          "runId",
          "spaceId"
        ],
        "type": "object"
      },
      "MadeFile": {
        "properties": {
          "batchRunId": {
            "type": "string"
          },
          "chargedCredits": {
            "type": "integer"
          },
          "fileId": {
            "type": "string"
          },
          "jobId": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelKey": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeKind": {
            "type": "string"
          },
          "nodeName": {
            "type": "string"
          },
          "prompt": {
            "description": "prompt is the text that went into the job's prompt input, or else its first text input.",
            "type": "string"
          },
          "resultId": {
            "type": "string"
          },
          "spaceId": {
            "type": "string"
          }
        },
        "required": [
          "batchRunId",
          "chargedCredits",
          "fileId",
          "jobId",
          "nodeId",
          "nodeKind",
          "nodeName",
          "prompt",
          "resultId",
          "spaceId"
        ],
        "type": "object"
      },
      "MadeFilePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/MadeFile"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "MakePrice": {
        "properties": {
          "available": {
            "type": "integer"
          },
          "covered": {
            "type": "boolean"
          },
          "credits": {
            "type": "integer"
          },
          "hasPlan": {
            "type": "boolean"
          },
          "incomplete": {
            "description": "incomplete says part of the price rests on what is not known before the make, such as a clip's length: the\ncredits are then the least it costs.",
            "type": "boolean"
          },
          "results": {
            "type": "integer"
          },
          "withinDailyCap": {
            "description": "withinDailyCap says the organization may still spend this much today.",
            "type": "boolean"
          }
        },
        "required": [
          "available",
          "covered",
          "credits",
          "hasPlan",
          "incomplete",
          "results",
          "withinDailyCap"
        ],
        "type": "object"
      },
      "MakeValues": {
        "properties": {
          "approvedCredits": {
            "description": "Start only at this exact displayed price. Omitted by callers that accept the current price.",
            "minimum": 0,
            "type": "integer"
          },
          "count": {
            "maximum": 4,
            "minimum": 1,
            "type": "integer"
          },
          "files": {
            "additionalProperties": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "description": "Library files for the model's inputs that take files, by the input's name, in order.",
            "type": "object"
          },
          "inputs": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "What is typed into the model's text inputs other than the prompt, by the input's name.",
            "type": "object"
          },
          "modelKey": {
            "type": "string"
          },
          "prompt": {
            "maxLength": 20000,
            "type": "string"
          },
          "recipe": {
            "description": "The page a make is from, such as a studio's, by its key: its makes keep to themselves and list on their own.\nLeft out for the Make page.",
            "maxLength": 64,
            "type": "string"
          },
          "runId": {
            "description": "Reuse the same run ID when retrying a start whose response was lost.",
            "type": "string"
          },
          "settings": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The model's settings by name, each as text: \"16:9\", \"8\", \"true\". One left out is the model's default.",
            "type": "object"
          },
          "toolKey": {
            "description": "The tool a make runs in place of a model, by its key.",
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "count",
          "modelKey"
        ],
        "type": "object"
      },
      "Me": {
        "properties": {
          "avatarUrl": {
            "type": [
              "string",
              "null"
            ]
          },
          "displayName": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "platformRole": {
            "type": "string"
          },
          "restricted": {
            "type": "boolean"
          },
          "terms": {
            "description": "terms is the version of the terms of use in force, and TermsAccepted whether the person has accepted it. The\napp asks for it before anything else.",
            "type": "string"
          },
          "termsAccepted": {
            "type": "boolean"
          }
        },
        "required": [
          "avatarUrl",
          "displayName",
          "email",
          "id",
          "platformRole",
          "restricted",
          "terms",
          "termsAccepted"
        ],
        "type": "object"
      },
      "MoveLibraryFilesRequest": {
        "properties": {
          "folderId": {
            "description": "The folder the files go into. Leave it out to take them out of every folder.",
            "type": "string"
          },
          "ids": {
            "description": "The files to move, up to 100.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "NameSpaceCheckpointRequest": {
        "properties": {
          "name": {
            "description": "The name of the point.",
            "type": "string"
          },
          "seq": {
            "description": "The change number the name is given to.",
            "type": "integer"
          }
        },
        "required": [
          "name",
          "seq"
        ],
        "type": "object"
      },
      "PaginatedMeta": {
        "properties": {
          "count": {
            "minimum": 0,
            "type": "integer"
          },
          "page": {
            "minimum": 1,
            "type": "integer"
          },
          "pages": {
            "minimum": 1,
            "type": "integer"
          },
          "perPage": {
            "maximum": 500,
            "minimum": 1,
            "type": "integer"
          },
          "total": {
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "count",
          "page",
          "pages",
          "perPage",
          "total"
        ],
        "type": "object"
      },
      "RenameLibraryFileRequest": {
        "properties": {
          "name": {
            "description": "The file's new name.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "RenameLibraryFolderRequest": {
        "properties": {
          "name": {
            "description": "The folder's new name.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "RenameSpaceCheckpointRequest": {
        "properties": {
          "name": {
            "description": "The point's new name.",
            "type": "string"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "RestoreSpaceRequest": {
        "properties": {
          "id": {
            "description": "A new ID you make for the step: step_ and a UUIDv7 as a TypeID. A restore sent twice is applied once.",
            "type": "string"
          },
          "since": {
            "description": "The number of the last change you have seen.",
            "type": "integer"
          },
          "to": {
            "description": "The change number to set the design back to: the space becomes what it was right after that change.",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "since",
          "to"
        ],
        "type": "object"
      },
      "SaveSpaceTemplateRequest": {
        "properties": {
          "coverFileId": {
            "description": "A picture of the organization's Library to show for it.",
            "type": "string"
          },
          "description": {
            "description": "A line or two on what it is for.",
            "type": "string"
          },
          "name": {
            "description": "The template's name.",
            "type": "string"
          },
          "spaceId": {
            "description": "The space to save, as it is now.",
            "type": "string"
          },
          "withResults": {
            "description": "Let the spaces started from it bring the results the space shows. Each person starting from it still chooses.",
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "spaceId"
        ],
        "type": "object"
      },
      "Space": {
        "properties": {
          "changedBy": {
            "$ref": "#/components/schemas/SpacePerson"
          },
          "createdAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nodes": {
            "type": "integer"
          },
          "purgeAfter": {
            "type": [
              "string",
              "null"
            ]
          },
          "seq": {
            "type": "integer"
          },
          "trashedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "changedBy",
          "createdAt",
          "id",
          "name",
          "nodes",
          "purgeAfter",
          "seq",
          "trashedAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "SpaceActiveJob": {
        "properties": {
          "id": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "nodeId",
          "slot",
          "status"
        ],
        "type": "object"
      },
      "SpaceAddNode": {
        "properties": {
          "columns": {
            "description": "A list's columns after its first, in order, up to five: a list with columns is a table, each item a row, and each\ncolumn gives its own list on a handle of its own. Changing a list, they take the place of the columns it has, so\nan empty list of columns takes them all away; left out, they stay as they are.",
            "items": {
              "$ref": "#/components/schemas/SpaceColumnWords"
            },
            "type": "array"
          },
          "files": {
            "description": "Library files picked for a generator's inputs that take files, by the input's name, in order: a picture to\nedit, a first frame, references, such as {\"references\": [\"file_…\"]}. Given for an input, they take the place of\nthe files picked for it; an empty list takes them away. The models list says which inputs take files.",
            "type": "object"
          },
          "in": {
            "description": "The group it goes into: a ref of this request, or a group's ID.",
            "type": "string"
          },
          "inputs": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "What is typed into a generator's other text inputs, by the input's name.",
            "type": "object"
          },
          "items": {
            "description": "A list's items, in order: the first column. Changing a list, they take the place of the items it has.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "description": "What the node is. The node kinds list says which there are.",
            "enum": [
              "text",
              "file",
              "reference",
              "list",
              "split",
              "pick",
              "join",
              "reroute",
              "combine_lists",
              "collect",
              "results",
              "unpack",
              "filter",
              "take",
              "sort",
              "group_by",
              "image",
              "video",
              "audio",
              "3d",
              "text_generator",
              "tool",
              "group",
              "note",
              "label",
              "branch"
            ],
            "type": "string"
          },
          "model": {
            "description": "A generator's model, by its key, such as veo-3-1, or by its ID. The models list says which there are.",
            "type": "string"
          },
          "name": {
            "description": "What a person calls it. Left out, it is called after its model or its kind.",
            "type": "string"
          },
          "prompt": {
            "description": "What goes into a generator's prompt.",
            "type": [
              "string",
              "null"
            ]
          },
          "ref": {
            "description": "A name of your own for the node in this request, to wire and to group by. The answer gives its ID under it.",
            "type": "string"
          },
          "settings": {
            "description": "settings by name, each a text, a number, or true or false. The node kinds list says what a kind has, and the\nmodels list what a model has.",
            "type": "object"
          },
          "text": {
            "description": "What a text, a note or a label says. A name in braces in a text, such as {animal}, becomes an input.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "description": "What a list's first column holds, as a column says what it holds: text, number, boolean, or a picture, clip,\nsound, 3D model or document by a Library file's ID in each item. Left out, a new list holds text. It is the\nlist's type setting, and changes only while the list is empty.",
            "enum": [
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          },
          "x": {
            "description": "Where it goes on the canvas, from the corner of its group or else the canvas's. Left out, the server places\nit: to the right of what is wired into it, and on top of nothing.",
            "type": [
              "number",
              "null"
            ]
          },
          "y": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "SpaceChange": {
        "properties": {
          "added": {
            "$ref": "#/components/schemas/SpaceNode"
          },
          "at": {
            "type": "string"
          },
          "by": {
            "type": "string"
          },
          "changed": {
            "$ref": "#/components/schemas/SpaceNodeChanged"
          },
          "edge": {
            "$ref": "#/components/schemas/SpaceEdge"
          },
          "edgeId": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "node.added",
              "node.removed",
              "node.moved",
              "node.resized",
              "node.renamed",
              "node.changed",
              "edge.added",
              "edge.removed",
              "space.renamed"
            ],
            "type": "string"
          },
          "moved": {
            "$ref": "#/components/schemas/SpaceNodeMoved"
          },
          "nodeId": {
            "type": "string"
          },
          "removed": {
            "$ref": "#/components/schemas/SpaceNodeRemoved"
          },
          "renamed": {
            "$ref": "#/components/schemas/SpaceRenamed"
          },
          "resized": {
            "$ref": "#/components/schemas/SpaceNodeResized"
          },
          "seq": {
            "type": "integer"
          },
          "stepId": {
            "type": "string"
          }
        },
        "required": [
          "at",
          "by",
          "id",
          "kind",
          "seq",
          "stepId"
        ],
        "type": "object"
      },
      "SpaceChangeRequest": {
        "properties": {
          "edge": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpaceEdge"
              }
            ],
            "description": "The whole new connection, with an ID you make."
          },
          "edgeId": {
            "description": "The connection to remove.",
            "type": "string"
          },
          "kind": {
            "description": "What changes, which says which other fields to send: node.added takes node; node.removed takes nodeId;\nnode.moved takes nodeId and place; node.resized takes nodeId and size; node.renamed takes nodeId and name;\nnode.changed takes nodeId, path and value; edge.added takes edge; edge.removed takes edgeId; space.renamed\ntakes name.",
            "enum": [
              "node.added",
              "node.removed",
              "node.moved",
              "node.resized",
              "node.renamed",
              "node.changed",
              "edge.added",
              "edge.removed",
              "space.renamed"
            ],
            "type": "string"
          },
          "name": {
            "description": "The new name of the node or of the space.",
            "type": "string"
          },
          "node": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpaceNode"
              }
            ],
            "description": "The whole new node, with an ID you make."
          },
          "nodeId": {
            "description": "The node that changes.",
            "type": "string"
          },
          "path": {
            "description": "The property of the node that changes, by its path in the node's data.",
            "type": "string"
          },
          "place": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpaceNodePlace"
              }
            ],
            "description": "Where the node goes."
          },
          "size": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpaceNodeSize"
              }
            ],
            "description": "The node's new size."
          },
          "value": {
            "description": "The property's new value: a text, a number, true or false. Null or left out takes the property off.",
            "type": "object"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "SpaceChangesAfter": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceChange"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          },
          "reload": {
            "type": "boolean"
          },
          "seq": {
            "type": "integer"
          }
        },
        "required": [
          "items",
          "meta",
          "reload",
          "seq"
        ],
        "type": "object"
      },
      "SpaceCheckpoint": {
        "properties": {
          "by": {
            "$ref": "#/components/schemas/SpacePerson"
          },
          "createdAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "seq": {
            "type": "integer"
          }
        },
        "required": [
          "by",
          "createdAt",
          "id",
          "name",
          "seq"
        ],
        "type": "object"
      },
      "SpaceCheckpointPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceCheckpoint"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceCollectState": {
        "properties": {
          "groups": {
            "items": {
              "additionalProperties": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "type": "object"
            },
            "type": "array"
          },
          "iteratorId": {
            "description": "iteratorId is the repeat the collect runs under: each:\u003cthe list's node\u003e, or each:\u003cnode\u003e:\u003chandle\u003e.",
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          }
        },
        "required": [
          "groups",
          "iteratorId",
          "nodeId"
        ],
        "type": "object"
      },
      "SpaceColumnWords": {
        "properties": {
          "cells": {
            "description": "What each item holds in it, in the items' order: a text, a number, true or false, or a Library file's ID. Left\nout, what the items hold in it stays.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "description": "What it is called, on its handle.",
            "type": "string"
          },
          "type": {
            "description": "What it holds. Left out, a new column holds text and a column that is there keeps what it holds.",
            "enum": [
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "SpaceConnectionWords": {
        "properties": {
          "from": {
            "description": "The node it comes from: a ref of this request, or a node's ID.",
            "type": "string"
          },
          "input": {
            "description": "The handle it arrives at. Leave it out where only one could take it.",
            "type": "string"
          },
          "output": {
            "description": "The handle it leaves by. Leave it out where the node gives one thing.",
            "type": "string"
          },
          "to": {
            "description": "The node it goes into: a ref of this request, or a node's ID.",
            "type": "string"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "SpaceDesign": {
        "properties": {
          "edges": {
            "items": {
              "$ref": "#/components/schemas/SpaceEdge"
            },
            "type": "array"
          },
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/SpaceNode"
            },
            "type": "array"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/SpaceProblem"
            },
            "type": "array"
          },
          "seq": {
            "type": "integer"
          },
          "trashedAt": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "edges",
          "id",
          "name",
          "nodes",
          "problems",
          "seq",
          "trashedAt"
        ],
        "type": "object"
      },
      "SpaceDifference": {
        "properties": {
          "added": {
            "items": {
              "$ref": "#/components/schemas/SpaceNode"
            },
            "type": "array"
          },
          "changed": {
            "items": {
              "$ref": "#/components/schemas/SpaceNodeDifference"
            },
            "type": "array"
          },
          "changes": {
            "type": "integer"
          },
          "changesByOthers": {
            "type": "integer"
          },
          "edgesAdded": {
            "items": {
              "$ref": "#/components/schemas/SpaceEdge"
            },
            "type": "array"
          },
          "edgesRemoved": {
            "items": {
              "$ref": "#/components/schemas/SpaceEdge"
            },
            "type": "array"
          },
          "from": {
            "type": "integer"
          },
          "removed": {
            "items": {
              "$ref": "#/components/schemas/SpaceNode"
            },
            "type": "array"
          },
          "renamed": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpaceRenamed"
              },
              {
                "type": "null"
              }
            ]
          },
          "to": {
            "type": "integer"
          }
        },
        "required": [
          "added",
          "changed",
          "changes",
          "changesByOthers",
          "edgesAdded",
          "edgesRemoved",
          "from",
          "removed",
          "renamed",
          "to"
        ],
        "type": "object"
      },
      "SpaceEdge": {
        "properties": {
          "id": {
            "description": "The connection's ID. For a new one you make it: edge_ and a UUIDv7 as a TypeID.",
            "type": "string"
          },
          "position": {
            "description": "Its place among the connections into one input that takes several: they are read in the order of this text.",
            "type": "string"
          },
          "sourceNodeId": {
            "description": "The node the connection comes from.",
            "type": "string"
          },
          "sourcePort": {
            "description": "The output of that node it comes from, by name.",
            "type": "string"
          },
          "targetNodeId": {
            "description": "The node the connection goes into.",
            "type": "string"
          },
          "targetPort": {
            "description": "The input of that node it goes into, by name.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "position",
          "sourceNodeId",
          "sourcePort",
          "targetNodeId",
          "targetPort"
        ],
        "type": "object"
      },
      "SpaceHistory": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceHistoryStep"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceHistoryStep": {
        "properties": {
          "at": {
            "type": "string"
          },
          "by": {
            "$ref": "#/components/schemas/SpacePerson"
          },
          "changes": {
            "type": "integer"
          },
          "firstSeq": {
            "type": "integer"
          },
          "kind": {
            "enum": [
              "step",
              "undo",
              "restore"
            ],
            "type": "string"
          },
          "lastSeq": {
            "type": "integer"
          },
          "lines": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "restores": {
            "type": [
              "integer",
              "null"
            ]
          },
          "stepId": {
            "type": "string"
          },
          "through": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SpaceStepThrough"
                  }
                ],
                "description": "What the person acted through when it was not their own session, such as an API key; null when it was."
              },
              {
                "type": "null"
              }
            ]
          },
          "undoes": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "at",
          "by",
          "changes",
          "firstSeq",
          "kind",
          "lastSeq",
          "lines",
          "restores",
          "stepId",
          "through",
          "undoes"
        ],
        "type": "object"
      },
      "SpaceIDsRequest": {
        "properties": {
          "ids": {
            "description": "The spaces.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "SpaceJob": {
        "properties": {
          "chargedCredits": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "createdAt": {
            "type": "string"
          },
          "credits": {
            "type": "integer"
          },
          "deferred": {
            "type": "boolean"
          },
          "dependencies": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "error": {
            "type": "string"
          },
          "expectedSeconds": {
            "type": "integer"
          },
          "finishedAt": {
            "type": "string"
          },
          "heldCredits": {
            "type": "integer"
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "generation",
              "media"
            ],
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeName": {
            "type": "string"
          },
          "ordinal": {
            "type": "integer"
          },
          "runId": {
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "startedAt": {
            "type": "string"
          },
          "status": {
            "enum": [
              "waiting",
              "ready",
              "running",
              "needs_credits",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "chargedCredits",
          "count",
          "createdAt",
          "credits",
          "deferred",
          "dependencies",
          "heldCredits",
          "id",
          "kind",
          "nodeId",
          "nodeName",
          "ordinal",
          "runId",
          "slot",
          "status"
        ],
        "type": "object"
      },
      "SpaceJobPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceJob"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceNode": {
        "properties": {
          "data": {
            "additionalProperties": {},
            "description": "The properties of its kind, each by its path, as a text, a number or a yes or no: text for a text node;\nmodelId, count, settings.resolution and inputs.prompt.text for a generator; type, items.a1.position and\nitems.a1.value for a list.",
            "type": "object"
          },
          "height": {
            "description": "The node's height, or null for the size its kind has.",
            "type": [
              "number",
              "null"
            ]
          },
          "id": {
            "description": "The node's ID. For a new node you make it: node_ and a UUIDv7 as a TypeID.",
            "type": "string"
          },
          "kind": {
            "description": "What the node is. It cannot change afterwards.",
            "enum": [
              "text",
              "file",
              "reference",
              "list",
              "split",
              "pick",
              "join",
              "reroute",
              "combine_lists",
              "collect",
              "results",
              "unpack",
              "filter",
              "take",
              "sort",
              "group_by",
              "image",
              "video",
              "audio",
              "3d",
              "text_generator",
              "tool",
              "group",
              "note",
              "label",
              "branch"
            ],
            "type": "string"
          },
          "name": {
            "description": "The name a person gave the node, or empty for its kind's own.",
            "type": "string"
          },
          "parentId": {
            "description": "The group the node is inside, or null when it is on the canvas itself.",
            "type": [
              "string",
              "null"
            ]
          },
          "width": {
            "description": "The node's width, or null for the size its kind has.",
            "type": [
              "number",
              "null"
            ]
          },
          "x": {
            "description": "How far right the node's left edge is, from its group's corner or else the canvas's.",
            "type": "number"
          },
          "y": {
            "description": "How far down the node's top edge is, from its group's corner or else the canvas's.",
            "type": "number"
          }
        },
        "required": [
          "data",
          "height",
          "id",
          "kind",
          "name",
          "parentId",
          "width",
          "x",
          "y"
        ],
        "type": "object"
      },
      "SpaceNodeChanged": {
        "properties": {
          "from": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          },
          "path": {
            "type": "string"
          },
          "to": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "from",
          "path",
          "to"
        ],
        "type": "object"
      },
      "SpaceNodeDifference": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "moved": {
            "$ref": "#/components/schemas/SpaceNodeMoved"
          },
          "name": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "properties": {
            "items": {
              "$ref": "#/components/schemas/SpaceNodeChanged"
            },
            "type": "array"
          },
          "renamed": {
            "$ref": "#/components/schemas/SpaceRenamed"
          },
          "resized": {
            "$ref": "#/components/schemas/SpaceNodeResized"
          }
        },
        "required": [
          "kind",
          "name",
          "nodeId",
          "properties"
        ],
        "type": "object"
      },
      "SpaceNodeFailure": {
        "properties": {
          "error": {
            "description": "error is why it could not be made, in words for people; empty where nothing was said.",
            "type": "string"
          },
          "jobId": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          }
        },
        "required": [
          "error",
          "jobId",
          "nodeId"
        ],
        "type": "object"
      },
      "SpaceNodeKind": {
        "properties": {
          "about": {
            "description": "What it does.",
            "type": "string"
          },
          "height": {
            "type": "number"
          },
          "inputs": {
            "description": "The handles a new node of the kind takes values on.",
            "items": {
              "$ref": "#/components/schemas/SpacePort"
            },
            "type": "array"
          },
          "kind": {
            "enum": [
              "text",
              "file",
              "reference",
              "list",
              "split",
              "pick",
              "join",
              "reroute",
              "combine_lists",
              "collect",
              "results",
              "unpack",
              "filter",
              "take",
              "sort",
              "group_by",
              "image",
              "video",
              "audio",
              "3d",
              "text_generator",
              "tool",
              "group",
              "note",
              "label",
              "branch"
            ],
            "type": "string"
          },
          "modelPorts": {
            "description": "Whether a node of the kind takes what its model lists. Its inputs are then known once a model is chosen.",
            "type": "boolean"
          },
          "name": {
            "description": "What the canvas calls it.",
            "type": "string"
          },
          "outputs": {
            "description": "The handles a new node of the kind gives values on.",
            "items": {
              "$ref": "#/components/schemas/SpacePort"
            },
            "type": "array"
          },
          "section": {
            "description": "Where it stands among the others, as Add on the canvas groups them.",
            "enum": [
              "make",
              "media",
              "lists",
              "media_steps",
              "canvas"
            ],
            "type": "string"
          },
          "settings": {
            "description": "What is set on a node of the kind. A generator also takes its model's own settings, as settings.\u003cname\u003e, and\nwhat is typed into one of the model's text inputs, as inputs.\u003cname\u003e.text.",
            "items": {
              "$ref": "#/components/schemas/SpaceNodeKindSetting"
            },
            "type": "array"
          },
          "tool": {
            "description": "The key of the tool a tool node of this entry runs: tool nodes are listed once for each tool.",
            "type": "string"
          },
          "use": {
            "description": "How a node of the kind is built by words: what goes into its handles and comes out, which settings matter, and\nwhat a newcomer gets wrong.",
            "type": "string"
          },
          "width": {
            "description": "The room a node of the kind takes on the canvas until someone sizes it.",
            "type": "number"
          }
        },
        "required": [
          "about",
          "height",
          "inputs",
          "kind",
          "modelPorts",
          "name",
          "outputs",
          "section",
          "settings",
          "use",
          "width"
        ],
        "type": "object"
      },
      "SpaceNodeKindPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceNodeKind"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceNodeKindSetting": {
        "properties": {
          "about": {
            "description": "What it is for.",
            "type": "string"
          },
          "choices": {
            "description": "What a choice is chosen from.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "default": {
            "description": "What it starts as, as text. Empty where it starts with nothing.",
            "type": "string"
          },
          "name": {
            "description": "The setting's name: its path in the node's data.",
            "type": "string"
          },
          "type": {
            "description": "What it holds. A file holds the ID of a Library file, and a model the ID of a model.",
            "enum": [
              "text",
              "number",
              "yes_no",
              "choice",
              "file",
              "model",
              "reference"
            ],
            "type": "string"
          }
        },
        "required": [
          "about",
          "choices",
          "default",
          "name",
          "type"
        ],
        "type": "object"
      },
      "SpaceNodeMoved": {
        "properties": {
          "from": {
            "$ref": "#/components/schemas/SpaceNodePlace"
          },
          "to": {
            "$ref": "#/components/schemas/SpaceNodePlace"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "SpaceNodePlace": {
        "properties": {
          "parentId": {
            "description": "The group the node is inside. Null or left out puts it on the canvas itself.",
            "type": [
              "string",
              "null"
            ]
          },
          "x": {
            "description": "How far right the node's left edge is, from its group's corner or else the canvas's.",
            "type": "number"
          },
          "y": {
            "description": "How far down the node's top edge is, from its group's corner or else the canvas's.",
            "type": "number"
          }
        },
        "required": [
          "x",
          "y"
        ],
        "type": "object"
      },
      "SpaceNodeRemoved": {
        "properties": {
          "edges": {
            "items": {
              "$ref": "#/components/schemas/SpaceEdge"
            },
            "type": "array"
          },
          "node": {
            "$ref": "#/components/schemas/SpaceNode"
          }
        },
        "required": [
          "edges",
          "node"
        ],
        "type": "object"
      },
      "SpaceNodeResized": {
        "properties": {
          "from": {
            "$ref": "#/components/schemas/SpaceNodeSize"
          },
          "to": {
            "$ref": "#/components/schemas/SpaceNodeSize"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "SpaceNodeSize": {
        "properties": {
          "height": {
            "description": "The height. Null or left out gives the node the height its kind has.",
            "type": [
              "number",
              "null"
            ]
          },
          "width": {
            "description": "The width. Null or left out gives the node the width its kind has.",
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "SpaceNodeWords": {
        "properties": {
          "columns": {
            "description": "A list's columns after its first, in order, up to five: a list with columns is a table, each item a row, and each\ncolumn gives its own list on a handle of its own. Changing a list, they take the place of the columns it has, so\nan empty list of columns takes them all away; left out, they stay as they are.",
            "items": {
              "$ref": "#/components/schemas/SpaceColumnWords"
            },
            "type": "array"
          },
          "files": {
            "description": "Library files picked for a generator's inputs that take files, by the input's name, in order: a picture to\nedit, a first frame, references, such as {\"references\": [\"file_…\"]}. Given for an input, they take the place of\nthe files picked for it; an empty list takes them away. The models list says which inputs take files.",
            "type": "object"
          },
          "inputs": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "What is typed into a generator's other text inputs, by the input's name.",
            "type": "object"
          },
          "items": {
            "description": "A list's items, in order: the first column. Changing a list, they take the place of the items it has.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "model": {
            "description": "A generator's model, by its key, such as veo-3-1, or by its ID. The models list says which there are.",
            "type": "string"
          },
          "name": {
            "description": "What a person calls it. Left out, it is called after its model or its kind.",
            "type": "string"
          },
          "prompt": {
            "description": "What goes into a generator's prompt.",
            "type": [
              "string",
              "null"
            ]
          },
          "settings": {
            "description": "settings by name, each a text, a number, or true or false. The node kinds list says what a kind has, and the\nmodels list what a model has.",
            "type": "object"
          },
          "text": {
            "description": "What a text, a note or a label says. A name in braces in a text, such as {animal}, becomes an input.",
            "type": [
              "string",
              "null"
            ]
          },
          "type": {
            "description": "What a list's first column holds, as a column says what it holds: text, number, boolean, or a picture, clip,\nsound, 3D model or document by a Library file's ID in each item. Left out, a new list holds text. It is the\nlist's type setting, and changes only while the list is empty.",
            "enum": [
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          },
          "x": {
            "description": "Where it goes on the canvas, from the corner of its group or else the canvas's. Left out, the server places\nit: to the right of what is wired into it, and on top of nothing.",
            "type": [
              "number",
              "null"
            ]
          },
          "y": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "type": "object"
      },
      "SpaceOutline": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineNode"
            },
            "type": "array"
          },
          "seq": {
            "description": "The number of the space's last change: send it as since with the next step.",
            "type": "integer"
          }
        },
        "required": [
          "id",
          "name",
          "nodes",
          "seq"
        ],
        "type": "object"
      },
      "SpaceOutlineInput": {
        "properties": {
          "fileIds": {
            "description": "The Library files picked for it, on a generator, in their order.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "from": {
            "description": "Where its wires come from, in their order.",
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineSource"
            },
            "type": "array"
          },
          "label": {
            "description": "What the canvas calls it.",
            "type": "string"
          },
          "list": {
            "description": "Whether it carries a list. An input that takes a list accepts several connections.",
            "type": "boolean"
          },
          "max": {
            "description": "The most items a list input takes, or 0 for no limit of its own.",
            "type": "integer"
          },
          "name": {
            "description": "The handle's name, which a connection names it by.",
            "type": "string"
          },
          "required": {
            "description": "Whether a run needs it to hold something.",
            "type": "boolean"
          },
          "text": {
            "description": "What is typed into it, on a generator.",
            "type": "string"
          },
          "type": {
            "description": "What it carries. Empty for a handle that takes or gives whatever is connected.",
            "enum": [
              "",
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "required": [
          "fileIds",
          "from",
          "label",
          "list",
          "max",
          "name",
          "required",
          "text",
          "type"
        ],
        "type": "object"
      },
      "SpaceOutlineModel": {
        "properties": {
          "id": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "key",
          "name"
        ],
        "type": "object"
      },
      "SpaceOutlineNode": {
        "properties": {
          "id": {
            "type": "string"
          },
          "inputs": {
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineInput"
            },
            "type": "array"
          },
          "items": {
            "description": "A list's items in order.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "kind": {
            "enum": [
              "text",
              "file",
              "reference",
              "list",
              "split",
              "pick",
              "join",
              "reroute",
              "combine_lists",
              "collect",
              "results",
              "unpack",
              "filter",
              "take",
              "sort",
              "group_by",
              "image",
              "video",
              "audio",
              "3d",
              "text_generator",
              "tool",
              "group",
              "note",
              "label",
              "branch"
            ],
            "type": "string"
          },
          "locked": {
            "description": "Whether a run keeps that result instead of making a new one.",
            "type": "boolean"
          },
          "model": {
            "anyOf": [
              {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SpaceOutlineModel"
                  }
                ],
                "description": "The model a generator runs, or null: for a node that is no generator, and for one whose model is not chosen."
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "description": "What a person called it, or empty.",
            "type": "string"
          },
          "notes": {
            "description": "What runs, yet is likely not what was meant, such as a list that arrives whole in every run beside the rows it\nbelongs to. Nothing stops a run for it.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "outputs": {
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineOutput"
            },
            "type": "array"
          },
          "parentId": {
            "description": "The group it is inside, or null.",
            "type": [
              "string",
              "null"
            ]
          },
          "problems": {
            "description": "What is wrong with it. A node with a problem cannot run.",
            "items": {
              "$ref": "#/components/schemas/SpaceProblem"
            },
            "type": "array"
          },
          "resultId": {
            "description": "The result a generator shows and gives, or null while it has made nothing.",
            "type": [
              "string",
              "null"
            ]
          },
          "runsFor": {
            "description": "The lists it runs once for each item of, outermost first. Empty where it runs once.",
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineRunsFor"
            },
            "type": "array"
          },
          "settings": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "What is set on it, each by its name and as text. The model, a list's items and what a generator's inputs hold\nhave places of their own here.",
            "type": "object"
          },
          "title": {
            "description": "What it is called on the canvas: its name, else its model's, else its kind's.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "inputs",
          "items",
          "kind",
          "locked",
          "model",
          "name",
          "notes",
          "outputs",
          "parentId",
          "problems",
          "resultId",
          "runsFor",
          "settings",
          "title"
        ],
        "type": "object"
      },
      "SpaceOutlineOutput": {
        "properties": {
          "label": {
            "type": "string"
          },
          "list": {
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "to": {
            "description": "How many wires leave it.",
            "type": "integer"
          },
          "type": {
            "description": "What it carries, as far as that is known. Empty while it is not.",
            "enum": [
              "",
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "required": [
          "label",
          "list",
          "name",
          "to",
          "type"
        ],
        "type": "object"
      },
      "SpaceOutlineRunsFor": {
        "properties": {
          "nodeId": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "repeatId": {
            "type": "string"
          }
        },
        "required": [
          "nodeId",
          "port",
          "repeatId"
        ],
        "type": "object"
      },
      "SpaceOutlineSource": {
        "properties": {
          "arrives": {
            "description": "How a list comes in: item, one of its items for each run of the node, each run its own; list, the whole list in\nevery run. Left out for one value.",
            "enum": [
              "item",
              "list"
            ],
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "port": {
            "description": "The handle on that node, by name.",
            "type": "string"
          }
        },
        "required": [
          "nodeId",
          "port"
        ],
        "type": "object"
      },
      "SpacePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/Space"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpacePerson": {
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "type": "object"
      },
      "SpacePort": {
        "properties": {
          "label": {
            "description": "What the canvas calls it.",
            "type": "string"
          },
          "list": {
            "description": "Whether it carries a list. An input that takes a list accepts several connections.",
            "type": "boolean"
          },
          "max": {
            "description": "The most items a list input takes, or 0 for no limit of its own.",
            "type": "integer"
          },
          "name": {
            "description": "The handle's name, which a connection names it by.",
            "type": "string"
          },
          "required": {
            "description": "Whether a run needs it to hold something.",
            "type": "boolean"
          },
          "type": {
            "description": "What it carries. Empty for a handle that takes or gives whatever is connected.",
            "enum": [
              "",
              "text",
              "number",
              "boolean",
              "image",
              "video",
              "audio",
              "3d",
              "document"
            ],
            "type": "string"
          }
        },
        "required": [
          "label",
          "list",
          "max",
          "name",
          "required",
          "type"
        ],
        "type": "object"
      },
      "SpacePreview": {
        "properties": {
          "edges": {
            "items": {
              "$ref": "#/components/schemas/SpacePreviewEdge"
            },
            "type": "array"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/SpacePreviewNode"
            },
            "type": "array"
          },
          "spaceId": {
            "type": "string"
          }
        },
        "required": [
          "edges",
          "nodes",
          "spaceId"
        ],
        "type": "object"
      },
      "SpacePreviewEdge": {
        "properties": {
          "sourceNodeId": {
            "type": "string"
          },
          "targetNodeId": {
            "type": "string"
          }
        },
        "required": [
          "sourceNodeId",
          "targetNodeId"
        ],
        "type": "object"
      },
      "SpacePreviewNode": {
        "properties": {
          "height": {
            "type": [
              "number",
              "null"
            ]
          },
          "id": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "width": {
            "type": [
              "number",
              "null"
            ]
          },
          "x": {
            "type": "number"
          },
          "y": {
            "type": "number"
          }
        },
        "required": [
          "height",
          "id",
          "kind",
          "thumbnail",
          "width",
          "x",
          "y"
        ],
        "type": "object"
      },
      "SpacePreviewPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpacePreview"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceProblem": {
        "properties": {
          "code": {
            "enum": [
              "type_mismatch",
              "input_gone",
              "output_gone",
              "list_into_one",
              "repeats_meet",
              "input_missing",
              "model_missing",
              "model_retired",
              "setting_gone",
              "file_unusable",
              "file_pending",
              "reference_gone",
              "too_many_connections",
              "lists_differ",
              "pick_beyond_list",
              "no_sound",
              "too_many_items",
              "combine_too_long",
              "too_many_runs",
              "wired_setting"
            ],
            "type": "string"
          },
          "edgeIds": {
            "description": "edgeIds lists the saved connections involved in this problem.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "fix": {
            "enum": [
              "",
              "disconnect",
              "combine_lists",
              "choose_model",
              "choose_file",
              "choose_reference",
              "reset_setting"
            ],
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "port": {
            "type": "string"
          },
          "reason": {
            "type": "string"
          }
        },
        "required": [
          "code",
          "fix",
          "nodeId",
          "port",
          "reason"
        ],
        "type": "object"
      },
      "SpaceRecipe": {
        "properties": {
          "steps": {
            "items": {
              "$ref": "#/components/schemas/SpaceRecipeStep"
            },
            "type": "array"
          },
          "truncated": {
            "description": "truncated says the chain goes on past the steps shown.",
            "type": "boolean"
          }
        },
        "required": [
          "steps",
          "truncated"
        ],
        "type": "object"
      },
      "SpaceRecipeInput": {
        "properties": {
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "resultIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "type": {
            "type": "string"
          }
        },
        "required": [
          "items",
          "resultIds",
          "type"
        ],
        "type": "object"
      },
      "SpaceRecipeJob": {
        "properties": {
          "chargedCredits": {
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "finishedAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "inputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/SpaceRecipeInput"
            },
            "type": "object"
          },
          "kind": {
            "enum": [
              "generation",
              "media"
            ],
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelKey": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "nodeKind": {
            "type": "string"
          },
          "nodeName": {
            "type": "string"
          },
          "options": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "runId": {
            "type": "string"
          },
          "settings": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "startedAt": {
            "type": "string"
          },
          "status": {
            "enum": [
              "waiting",
              "ready",
              "running",
              "needs_credits",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          }
        },
        "required": [
          "chargedCredits",
          "count",
          "id",
          "inputs",
          "kind",
          "nodeId",
          "nodeKind",
          "nodeName",
          "options",
          "runId",
          "settings",
          "status"
        ],
        "type": "object"
      },
      "SpaceRecipeStep": {
        "properties": {
          "job": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SpaceRecipeJob"
              }
            ],
            "description": "job is what made the result. A result a person added has none, and ends the trace."
          },
          "result": {
            "$ref": "#/components/schemas/SpaceResult"
          }
        },
        "required": [
          "result"
        ],
        "type": "object"
      },
      "SpaceRenamed": {
        "properties": {
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "to"
        ],
        "type": "object"
      },
      "SpaceRepeat": {
        "properties": {
          "iteratorId": {
            "description": "iteratorId names the repeat, each:\u003csource\u003e or each:\u003csource\u003e:\u003cport\u003e: no ID of a stored thing.",
            "type": "string"
          },
          "nodeIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "port": {
            "type": "string"
          },
          "sourceId": {
            "type": "string"
          }
        },
        "required": [
          "iteratorId",
          "nodeIds",
          "port",
          "sourceId"
        ],
        "type": "object"
      },
      "SpaceResult": {
        "properties": {
          "createdAt": {
            "type": "string"
          },
          "data": {
            "additionalProperties": {},
            "description": "What the tool said beside its file, such as a board's colours or a scene's times.",
            "type": "object"
          },
          "fileId": {
            "type": "string"
          },
          "fingerprint": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identityId": {
            "type": "string"
          },
          "items": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "jobId": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "file",
              "text",
              "list"
            ],
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "organizationId": {
            "type": "string"
          },
          "origin": {
            "enum": [
              "generated",
              "added"
            ],
            "type": "string"
          },
          "position": {
            "type": "integer"
          },
          "slot": {
            "type": "string"
          },
          "spaceId": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "fingerprint",
          "id",
          "kind",
          "nodeId",
          "organizationId",
          "origin",
          "position",
          "slot",
          "spaceId"
        ],
        "type": "object"
      },
      "SpaceResultPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceResult"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceRun": {
        "properties": {
          "approvedCredits": {
            "type": "integer"
          },
          "cancelRequested": {
            "type": "boolean"
          },
          "createdAt": {
            "type": "string"
          },
          "finishedAt": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "identityId": {
            "type": "string"
          },
          "incomplete": {
            "type": "boolean"
          },
          "needsApproval": {
            "type": "boolean"
          },
          "requiredCredits": {
            "type": "integer"
          },
          "seq": {
            "type": "integer"
          },
          "spaceId": {
            "type": "string"
          },
          "spentCredits": {
            "type": "integer"
          },
          "status": {
            "enum": [
              "running",
              "paused",
              "succeeded",
              "failed",
              "cancelled"
            ],
            "type": "string"
          },
          "target": {
            "$ref": "#/components/schemas/SpaceRunTarget"
          }
        },
        "required": [
          "approvedCredits",
          "cancelRequested",
          "createdAt",
          "id",
          "identityId",
          "incomplete",
          "needsApproval",
          "requiredCredits",
          "seq",
          "spaceId",
          "spentCredits",
          "status",
          "target"
        ],
        "type": "object"
      },
      "SpaceRunDetails": {
        "properties": {
          "jobs": {
            "$ref": "#/components/schemas/SpaceJobPage"
          },
          "run": {
            "$ref": "#/components/schemas/SpaceRun"
          }
        },
        "required": [
          "jobs",
          "run"
        ],
        "type": "object"
      },
      "SpaceRunEstimate": {
        "properties": {
          "available": {
            "type": "integer"
          },
          "covered": {
            "type": "boolean"
          },
          "credits": {
            "type": "integer"
          },
          "dailyCap": {
            "type": "integer"
          },
          "expectedSeconds": {
            "type": "integer"
          },
          "hasPlan": {
            "type": "boolean"
          },
          "incomplete": {
            "type": "boolean"
          },
          "jobs": {
            "type": "integer"
          },
          "needsConfirmation": {
            "type": "boolean"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/SpaceRunNodeEstimate"
            },
            "type": "array"
          },
          "results": {
            "type": "integer"
          },
          "runAgain": {
            "type": "boolean"
          },
          "seq": {
            "type": "integer"
          },
          "usedToday": {
            "type": "integer"
          },
          "withinDailyCap": {
            "type": "boolean"
          }
        },
        "required": [
          "available",
          "covered",
          "credits",
          "dailyCap",
          "hasPlan",
          "incomplete",
          "jobs",
          "needsConfirmation",
          "nodes",
          "results",
          "runAgain",
          "seq",
          "usedToday",
          "withinDailyCap"
        ],
        "type": "object"
      },
      "SpaceRunNodeEstimate": {
        "properties": {
          "allowed": {
            "type": "boolean"
          },
          "credits": {
            "type": "integer"
          },
          "expectedSeconds": {
            "type": "integer"
          },
          "incomplete": {
            "type": "boolean"
          },
          "jobs": {
            "type": "integer"
          },
          "nodeId": {
            "type": "string"
          },
          "results": {
            "type": "integer"
          }
        },
        "required": [
          "allowed",
          "credits",
          "incomplete",
          "jobs",
          "nodeId",
          "results"
        ],
        "type": "object"
      },
      "SpaceRunNodeState": {
        "properties": {
          "incomplete": {
            "type": "boolean"
          },
          "iterators": {
            "description": "iterators is the repeats the node runs under, outermost first: the lists it runs once for each item of.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "locked": {
            "type": "boolean"
          },
          "nodeId": {
            "type": "string"
          },
          "problems": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "slots": {
            "items": {
              "$ref": "#/components/schemas/SpaceRunSlotState"
            },
            "type": "array"
          }
        },
        "required": [
          "incomplete",
          "iterators",
          "locked",
          "nodeId",
          "problems",
          "slots"
        ],
        "type": "object"
      },
      "SpaceRunPage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceRun"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceRunSlotState": {
        "properties": {
          "current": {
            "type": "boolean"
          },
          "fingerprint": {
            "type": "string"
          },
          "kept": {
            "type": "integer"
          },
          "pickedId": {
            "type": "string"
          },
          "positions": {
            "additionalProperties": {
              "type": "integer"
            },
            "description": "positions is which item of each repeat the slot is for, by iterator, counted from 0: what lets every node\nof a repeat show the same item together.",
            "type": "object"
          },
          "reason": {
            "type": "string"
          },
          "slot": {
            "type": "string"
          },
          "stack": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "status": {
            "enum": [
              "empty",
              "current",
              "stale",
              "locked",
              "manual"
            ],
            "type": "string"
          }
        },
        "required": [
          "current",
          "kept",
          "positions",
          "slot",
          "stack",
          "status"
        ],
        "type": "object"
      },
      "SpaceRunState": {
        "properties": {
          "collects": {
            "description": "collects is every collect that gathers for each item of a list, with what each of its runs gathers.",
            "items": {
              "$ref": "#/components/schemas/SpaceCollectState"
            },
            "type": "array"
          },
          "failures": {
            "description": "failures is the nodes whose last making could not be made, each with why. A node that was made again since,\nor is being made, is not among them.",
            "items": {
              "$ref": "#/components/schemas/SpaceNodeFailure"
            },
            "type": "array"
          },
          "jobs": {
            "items": {
              "$ref": "#/components/schemas/SpaceActiveJob"
            },
            "type": "array"
          },
          "nodes": {
            "items": {
              "$ref": "#/components/schemas/SpaceRunNodeState"
            },
            "type": "array"
          },
          "repeats": {
            "description": "repeats is every repeat of the space with the nodes it covers, whatever their kind: what the canvas tints.",
            "items": {
              "$ref": "#/components/schemas/SpaceRepeat"
            },
            "type": "array"
          },
          "seq": {
            "type": "integer"
          }
        },
        "required": [
          "collects",
          "failures",
          "jobs",
          "nodes",
          "repeats",
          "seq"
        ],
        "type": "object"
      },
      "SpaceRunTarget": {
        "properties": {
          "groupId": {
            "type": "string"
          },
          "item": {
            "description": "The item of the repeat a try made, counted from 0.",
            "type": "integer"
          },
          "kind": {
            "enum": [
              "all",
              "nodes",
              "group",
              "iterator",
              "import"
            ],
            "type": "string"
          },
          "missing": {
            "description": "The click made only what was missing.",
            "type": "boolean"
          },
          "nodeIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "repeat": {
            "description": "For iterator: the repeat one item of which was made.",
            "type": "string"
          },
          "templateId": {
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "type": "object"
      },
      "SpaceStepRequest": {
        "properties": {
          "changes": {
            "description": "The changes, applied in order, all or none.",
            "items": {
              "$ref": "#/components/schemas/SpaceChangeRequest"
            },
            "type": "array"
          },
          "id": {
            "description": "A new ID you make for the step: step_ and a UUIDv7 as a TypeID. A step sent twice is applied once.",
            "type": "string"
          },
          "since": {
            "description": "The number of the last change you have seen: seq of the space as you read it. The answer says what others\nchanged since.",
            "type": "integer"
          }
        },
        "required": [
          "changes",
          "id",
          "since"
        ],
        "type": "object"
      },
      "SpaceStepResult": {
        "properties": {
          "accepted": {
            "items": {
              "$ref": "#/components/schemas/SpaceChange"
            },
            "type": "array"
          },
          "others": {
            "items": {
              "$ref": "#/components/schemas/SpaceChange"
            },
            "type": "array"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/SpaceProblem"
            },
            "type": "array"
          },
          "reload": {
            "type": "boolean"
          },
          "seq": {
            "type": "integer"
          }
        },
        "required": [
          "accepted",
          "others",
          "problems",
          "reload",
          "seq"
        ],
        "type": "object"
      },
      "SpaceStepThrough": {
        "properties": {
          "kind": {
            "description": "What it is: an API key, an app the person signed in to, or the assistant working for them.",
            "enum": [
              "api_key",
              "connection",
              "assistant"
            ],
            "type": "string"
          },
          "name": {
            "description": "What it was called when the step was made.",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "name"
        ],
        "type": "object"
      },
      "SpaceTemplate": {
        "properties": {
          "broken": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "cover": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpaceTemplateCover"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverFileId": {
            "type": [
              "string",
              "null"
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "imported": {
            "description": "imported says it came from an exported file, so there is no space to update it from.",
            "type": "boolean"
          },
          "name": {
            "type": "string"
          },
          "nodes": {
            "type": "integer"
          },
          "savedBy": {
            "$ref": "#/components/schemas/SpacePerson"
          },
          "seq": {
            "type": "integer"
          },
          "shareCode": {
            "description": "shareCode is what the template's link carries, for anyone to see it and use it; null while it is not shared.",
            "type": [
              "string",
              "null"
            ]
          },
          "spaceId": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "withResults": {
            "type": "boolean"
          }
        },
        "required": [
          "broken",
          "cover",
          "coverFileId",
          "createdAt",
          "description",
          "id",
          "imported",
          "name",
          "nodes",
          "savedBy",
          "seq",
          "shareCode",
          "spaceId",
          "updatedAt",
          "withResults"
        ],
        "type": "object"
      },
      "SpaceTemplateCover": {
        "properties": {
          "animated": {
            "type": "boolean"
          },
          "large": {
            "type": "string"
          },
          "original": {
            "description": "original is an animated picture itself, such as a GIF, which plays where its previews stand still; empty for\na picture that does not move.",
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          }
        },
        "required": [
          "animated",
          "large",
          "original",
          "thumbnail"
        ],
        "type": "object"
      },
      "SpaceTemplatePage": {
        "properties": {
          "items": {
            "items": {
              "$ref": "#/components/schemas/SpaceTemplate"
            },
            "type": "array"
          },
          "meta": {
            "$ref": "#/components/schemas/PaginatedMeta"
          }
        },
        "required": [
          "items",
          "meta"
        ],
        "type": "object"
      },
      "SpaceUndoResult": {
        "properties": {
          "accepted": {
            "items": {
              "$ref": "#/components/schemas/SpaceChange"
            },
            "type": "array"
          },
          "others": {
            "items": {
              "$ref": "#/components/schemas/SpaceChange"
            },
            "type": "array"
          },
          "problems": {
            "items": {
              "$ref": "#/components/schemas/SpaceProblem"
            },
            "type": "array"
          },
          "reload": {
            "type": "boolean"
          },
          "seq": {
            "type": "integer"
          },
          "skipped": {
            "items": {
              "$ref": "#/components/schemas/SpaceUndoSkipped"
            },
            "type": "array"
          }
        },
        "required": [
          "accepted",
          "others",
          "problems",
          "reload",
          "seq",
          "skipped"
        ],
        "type": "object"
      },
      "SpaceUndoSkipped": {
        "properties": {
          "by": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SpacePerson"
              },
              {
                "type": "null"
              }
            ]
          },
          "code": {
            "enum": [
              "changed_since",
              "used_by_others",
              "gone",
              "refused"
            ],
            "type": "string"
          },
          "edgeId": {
            "type": "string"
          },
          "nodeId": {
            "type": "string"
          },
          "path": {
            "type": "string"
          }
        },
        "required": [
          "by",
          "code",
          "path"
        ],
        "type": "object"
      },
      "SpaceWorded": {
        "properties": {
          "connections": {
            "description": "The connections that were made.",
            "items": {
              "$ref": "#/components/schemas/SpaceEdge"
            },
            "type": "array"
          },
          "nodes": {
            "description": "The nodes that were added or changed, as the outline says them, in the order they were asked for.",
            "items": {
              "$ref": "#/components/schemas/SpaceOutlineNode"
            },
            "type": "array"
          },
          "problems": {
            "description": "What is wrong with the space as it is now. A node with a problem cannot run.",
            "items": {
              "$ref": "#/components/schemas/SpaceProblem"
            },
            "type": "array"
          },
          "refs": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "The IDs of the nodes that were added, by the refs the request gave them.",
            "type": "object"
          },
          "seq": {
            "description": "The number of the space's last change now.",
            "type": "integer"
          }
        },
        "required": [
          "connections",
          "nodes",
          "problems",
          "refs",
          "seq"
        ],
        "type": "object"
      },
      "StartSpaceRunRequest": {
        "properties": {
          "approvedCredits": {
            "description": "The most credits the run may spend: the credits of the estimate you read. When the run would cost more by\nnow, nothing starts and the answer is the new estimate.",
            "minimum": 0,
            "type": "integer"
          },
          "exactCredits": {
            "description": "exactCredits asks to see a new estimate if the displayed price changed in either direction.",
            "type": "boolean"
          },
          "id": {
            "description": "A new ID you make for the run: run_ and a UUIDv7 as a TypeID. Send the same one again when you retry, and the\nrun starts once.",
            "type": "string"
          },
          "target": {
            "allOf": [
              {
                "$ref": "#/components/schemas/EstimateSpaceRunRequest"
              }
            ],
            "description": "What to run, exactly as it was estimated."
          }
        },
        "required": [
          "approvedCredits",
          "id",
          "target"
        ],
        "type": "object"
      },
      "TagLibraryFilesRequest": {
        "properties": {
          "add": {
            "description": "Tags to put on every one of the files.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "ids": {
            "description": "The files to tag, up to 100.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "remove": {
            "description": "Tags to take off every one of the files.",
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ids"
        ],
        "type": "object"
      },
      "UndoSpaceStepRequest": {
        "properties": {
          "id": {
            "description": "A new ID you make for the step the undo becomes: step_ and a UUIDv7 as a TypeID.",
            "type": "string"
          },
          "since": {
            "description": "The number of the last change you have seen.",
            "type": "integer"
          },
          "through": {
            "description": "What the changes to undo were made through, in place of a step: the ID of one turn of the assistant takes back\nwhat that turn changed and nothing else.",
            "type": "string"
          },
          "undoes": {
            "description": "The step to undo. To redo, name the step an undo made. Leave it out when through is given.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "since"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "key": {
        "description": "An API key, sent with every request as `Authorization: Bearer hm_…`.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "The part of the Hypermake API that an API key reaches: spaces, runs, results, templates, the Library and the model catalogue.\n\nMake a key in the app, under Organization, API keys, and send it with every request as `Authorization: Bearer hm_…`. A key acts as the person who made it, in the one organization it was made for, and can do no more than they can.\n\nEvery operation says the level of key it needs: `read` sees, `write` changes spaces and files, and `run` starts and stops runs, which spend the organization's credits. An error answers with a `code`, a `message` for people, and the `fields` that need attention. Lists are paged with `page` and `perPage`.\n\nA key may ask a limited number of times a minute, 600 unless the service or the organization's plan says otherwise. Every answer says where the key stands in `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset`. Past the limit the answer is `429` with the code `too_many_requests`, and `Retry-After` says how many seconds to wait.\n\nSome requests take an ID you make yourself, so that sending one twice does it once: the kind, an underscore and a UUIDv7 in TypeID's letters, such as `run_01jd…`.",
    "title": "Hypermake API",
    "version": "1"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/me": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getMe",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "The signed-in person",
        "tags": [
          "identity"
        ],
        "x-level": "read"
      }
    },
    "/v1/models": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listAIModels",
        "parameters": [
          {
            "description": "Only these kinds",
            "in": "query",
            "name": "kind",
            "schema": {
              "items": {
                "enum": [
                  "image",
                  "video",
                  "audio",
                  "3d",
                  "text"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only models whose name contains this",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the models run by these keys, up to 50",
            "in": "query",
            "name": "key",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AIModelPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "The models people can choose: the live ones, and each kind's example even before it is live",
        "tags": [
          "ai"
        ],
        "x-level": "read"
      }
    },
    "/v1/models/{model}/picture/{picture}": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getAIModelPicture",
        "parameters": [
          {
            "description": "Model ID",
            "in": "path",
            "name": "model",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The picture's name, from the model",
            "in": "path",
            "name": "picture",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "type": "file"
                }
              },
              "image/png": {
                "schema": {
                  "type": "file"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "image/jpeg": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              },
              "image/png": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A model's picture. Its address changes with the picture, so a browser may keep it",
        "tags": [
          "ai"
        ],
        "x-level": "read"
      }
    },
    "/v1/node-kinds": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceNodeKinds",
        "parameters": [
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceNodeKindPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Every kind of node there is: what it does, what is set on it, and the handles it starts with",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/library/files": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listLibraryFiles",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only these kinds",
            "in": "query",
            "name": "kind",
            "schema": {
              "items": {
                "enum": [
                  "image",
                  "video",
                  "audio",
                  "3d",
                  "document"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only uploaded or generated files",
            "in": "query",
            "name": "origin",
            "schema": {
              "items": {
                "enum": [
                  "uploaded",
                  "generated"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only files whose name contains this",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only files whose name or one of whose tags contains this",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the files directly in this folder, or none for those in no folder",
            "in": "query",
            "name": "folder",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only files carrying every one of these tags",
            "in": "query",
            "name": "tag",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only files that came from this space",
            "in": "query",
            "name": "space",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only files this person added",
            "in": "query",
            "name": "addedBy",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The trash instead of the files",
            "in": "query",
            "name": "trashed",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Only these files",
            "in": "query",
            "name": "id",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Order",
            "in": "query",
            "name": "sort",
            "schema": {
              "enum": [
                "newest",
                "name",
                "size"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFilePage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of an organization's files",
        "tags": [
          "library"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "beginLibraryUpload",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BeginLibraryUploadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryUpload"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Begin an upload: the file is created and a signed link for its bytes is returned",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/move": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "moveLibraryFiles",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MoveLibraryFilesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Move up to 100 files into a folder, or out of every folder, all or none",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/restore": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "restoreLibraryFiles",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LibraryFileIDsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Restore up to 100 files from the trash, all or none",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/tags": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "tagLibraryFiles",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TagLibraryFilesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Remove and add tags on up to 100 files, all or none",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/trash": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "trashLibraryFiles",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LibraryFileIDsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Move up to 100 files to the trash, all or none",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/{file}": {
      "delete": {
        "description": "Needs a key that may write.",
        "operationId": "deleteLibraryFile",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "File ID",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Remove for good a file that is in the trash, or an upload that was cancelled or failed",
        "tags": [
          "library"
        ],
        "x-level": "write"
      },
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getLibraryFile",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "File ID",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFile"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "One file",
        "tags": [
          "library"
        ],
        "x-level": "read"
      },
      "patch": {
        "description": "Needs a key that may write.",
        "operationId": "renameLibraryFile",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "File ID",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameLibraryFileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFile"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Rename a file",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/files/{file}/complete": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "completeLibraryUpload",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "File ID",
            "in": "path",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFile"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "The upload is done: the file is checked and waits to be read",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/folders": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listLibraryFolders",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only the folders inside this one, or none for those at the top",
            "in": "query",
            "name": "parent",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Order",
            "in": "query",
            "name": "sort",
            "schema": {
              "enum": [
                "name",
                "newest"
              ],
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFolderPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of an organization's folders, by name",
        "tags": [
          "library"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "createLibraryFolder",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLibraryFolderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFolder"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Make a folder, at the top or inside another",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/folders/{folder}": {
      "delete": {
        "description": "Needs a key that may write.",
        "operationId": "deleteLibraryFolder",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Folder ID",
            "in": "path",
            "name": "folder",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Delete a folder and the folders inside it; their files stay in the Library, in no folder",
        "tags": [
          "library"
        ],
        "x-level": "write"
      },
      "patch": {
        "description": "Needs a key that may write.",
        "operationId": "renameLibraryFolder",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Folder ID",
            "in": "path",
            "name": "folder",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameLibraryFolderRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryFolder"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Rename a folder",
        "tags": [
          "library"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/library/references": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listLibraryReferences",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only these kinds",
            "in": "query",
            "name": "kind",
            "schema": {
              "items": {
                "enum": [
                  "character",
                  "element",
                  "style",
                  "color",
                  "location",
                  "brand_kit",
                  "agent",
                  "voice"
                ],
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Only the references whose name holds these words",
            "in": "query",
            "name": "q",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only these references",
            "in": "query",
            "name": "id",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryReferencePage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of an organization's references, the newest first: its characters, elements, styles, palettes, locations, brand kits and agents",
        "tags": [
          "library"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/library/references/{reference}": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getLibraryReference",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Reference ID",
            "in": "path",
            "name": "reference",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryReference"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "One reference, with its pictures",
        "tags": [
          "library"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/library/tags": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listLibraryTags",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only tags that start with this",
            "in": "query",
            "name": "prefix",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryTagPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of an organization's tags, the most used first",
        "tags": [
          "library"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/library/usage": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getLibraryUsage",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LibraryUsage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "How much an organization keeps in its Library",
        "tags": [
          "library"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/makes": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listMakes",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The model's key; left out when tool is given",
            "in": "query",
            "name": "model",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The tool's key, in place of a model's",
            "in": "query",
            "name": "tool",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The page's recipe whose makes are listed; left out for the Make page's own",
            "in": "query",
            "name": "recipe",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreationPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "What the person made with a model from the Make panel, newest first",
        "tags": [
          "make"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may run. Runs spend the organization's credits.",
        "operationId": "startMake",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakeValues"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Made"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Make with a model, as the Make panel does",
        "tags": [
          "make"
        ],
        "x-level": "run"
      }
    },
    "/v1/organizations/{org}/makes/price": {
      "post": {
        "description": "Needs a key that may read.",
        "operationId": "priceMake",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MakeValues"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MakePrice"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "What a make would make and cost, before anything is made",
        "tags": [
          "make"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/runs/made-from": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listMadeFromFile",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Library file ID",
            "in": "query",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MadeFilePage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "What jobs made from a Library file, newest first: one step down the reverse trace",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/runs/origins": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listFileOrigins",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Library file IDs, up to 100",
            "in": "query",
            "name": "file",
            "required": true,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileOriginPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Where Library files came from: the node, model and prompt that made each, and the other takes of its click",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/runs/recipe": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getFileRecipe",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Library file ID",
            "in": "query",
            "name": "file",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRecipe"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "How a Library file was made, when a run made it or a person set it as a result",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaces",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Only spaces whose name contains this",
            "in": "query",
            "name": "name",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The trash instead of the spaces",
            "in": "query",
            "name": "trashed",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpacePage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of an organization's spaces, the last changed first, or of its trash",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "createSpace",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSpaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Create a space, empty or from one of the organization's templates",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/previews": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpacePreviews",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The spaces, at most 50",
            "in": "query",
            "name": "id",
            "required": true,
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpacePreviewPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Spaces drawn small for their cards: their nodes, connections and pictures, in the order asked",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/restore": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "restoreSpaces",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceIDsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Take spaces out of the trash",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/templates": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceTemplates",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceTemplatePage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A page of the organization's templates, newest first, with what no longer works in each",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "saveSpaceTemplate",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveSpaceTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceTemplate"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Save a space as a template: a frozen copy of its design as it is now",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/templates/{template}": {
      "delete": {
        "description": "Needs a key that may write.",
        "operationId": "removeSpaceTemplate",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Template ID",
            "in": "path",
            "name": "template",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Remove a template. Spaces made from it stay",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      },
      "patch": {
        "description": "Needs a key that may write.",
        "operationId": "changeSpaceTemplate",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Template ID",
            "in": "path",
            "name": "template",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeSpaceTemplateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceTemplate"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Change a template's name, description, cover, or whether it offers its results",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/templates/{template}/update": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "updateSpaceTemplate",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Template ID",
            "in": "path",
            "name": "template",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceTemplate"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Take the copy of a template's space again, as it is now",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/trash": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "trashSpaces",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceIDsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Move spaces into the trash, where they are kept for thirty days",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}": {
      "delete": {
        "description": "Needs a key that may write.",
        "operationId": "deleteSpace",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Remove a space that is in the trash for good, with its history",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      },
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpace",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A change number: the design as it was after that change, to look at, without problems",
            "in": "query",
            "name": "at",
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceDesign"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A space as it is now: its nodes, its connections, the number of its last change, and its problems",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/changes": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceChangesAfter",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Last change number before the first page; keep it fixed across pages",
            "in": "query",
            "name": "after",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceChangesAfter"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "The changes after a number, to catch up. Too far behind, the answer says to read the design again",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "applySpaceStep",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceStepResult"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Apply the changes of one action. The step is accepted whole or refused whole, and applied once however often it is sent",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/checkpoints": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceCheckpoints",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceCheckpointPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "The named points of a space's history, the latest point first",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "nameSpaceCheckpoint",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NameSpaceCheckpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceCheckpoint"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Give a name to a point of a space's history",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/checkpoints/{checkpoint}": {
      "delete": {
        "description": "Needs a key that may write.",
        "operationId": "removeSpaceCheckpoint",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Checkpoint ID",
            "in": "path",
            "name": "checkpoint",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Remove a checkpoint. The point it named stays in the history",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      },
      "patch": {
        "description": "Needs a key that may write.",
        "operationId": "renameSpaceCheckpoint",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Checkpoint ID",
            "in": "path",
            "name": "checkpoint",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RenameSpaceCheckpointRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceCheckpoint"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Give a checkpoint another name. The point stays",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/connections": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "connectSpaceNodes",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectSpaceNodesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceWorded"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Connect nodes that are there, by their IDs and the names of their handles. A connection that cannot be is refused in words: the types differ, the input has its one wire, it would close a loop",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/difference": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpaceDifference",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The change number to compare from",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "description": "The change number to compare to",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceDifference"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "What changed from one point of a space's history to another, and how many changes lie between them",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/duplicate": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "duplicateSpace",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicateSpaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Make a new space from this one, from now or from a point of its history",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/history": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceHistory",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "A node's ID: only the steps that changed that node, each with what it did to it",
            "in": "query",
            "name": "node",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Steps per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceHistory"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A space's history a page at a time: the steps people made, newest first, each in words",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/jobs": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceJobs",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Node ID",
            "in": "query",
            "name": "node",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Run ID",
            "in": "query",
            "name": "run",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Job states",
            "in": "query",
            "name": "state",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceJobPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "List a node's jobs or the jobs of a run",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/nodes": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "addSpaceNodes",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSpaceNodesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceWorded"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Add nodes and connections by what they should be. The server makes the IDs, starts each node as its kind starts and places it. It is one step of the history",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/nodes/{node}": {
      "patch": {
        "description": "Needs a key that may write.",
        "operationId": "changeSpaceNode",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Node ID",
            "in": "path",
            "name": "node",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceNodeWords"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceWorded"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Change a node by the words it could have been added by. What is left out stays as it is",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/outline": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpaceOutline",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceOutline"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "A space described compactly: each node with what it holds, takes and gives, in the order the work flows. Read it before changing a space",
        "tags": [
          "spaces"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/restore": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "restoreSpace",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RestoreSpaceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceStepResult"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Set the whole design to a point of its history, as one step that can itself be undone",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/results": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceResults",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Node ID. With neither a node nor result IDs, every result of the space",
            "in": "query",
            "name": "node",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Result IDs, up to 500",
            "in": "query",
            "name": "id",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number, starting at 1",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceResultPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "List a node's results or look up results by ID",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "addSpaceResult",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddSpaceResultRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceResult"
                }
              }
            },
            "description": "Created"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Add a Library file as a node's result",
        "tags": [
          "runs"
        ],
        "x-level": "write"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/results/{result}/recipe": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpaceResultRecipe",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Result ID",
            "in": "path",
            "name": "result",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRecipe"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "How a result was made, step by step back to where it began",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/runs": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "listSpaceRuns",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Identity ID",
            "in": "query",
            "name": "person",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Run states",
            "in": "query",
            "name": "state",
            "schema": {
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          {
            "description": "Page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Items per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRunPage"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "List a space's runs, newest first",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      },
      "post": {
        "description": "Needs a key that may run. Runs spend the organization's credits.",
        "operationId": "startSpaceRun",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartSpaceRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRun"
                }
              }
            },
            "description": "Created"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRunEstimate"
                }
              }
            },
            "description": "The estimate exceeds the ceiling or differs from the exact price shown"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Start a run using a client-generated run ID and approved credit ceiling",
        "tags": [
          "runs"
        ],
        "x-level": "run"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/runs/estimate": {
      "post": {
        "description": "Needs a key that may read.",
        "operationId": "estimateSpaceRun",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EstimateSpaceRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRunEstimate"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Estimate the work and credit ceiling for a space, group or selection",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/runs/{run}": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpaceRun",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Run ID",
            "in": "path",
            "name": "run",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Job page number",
            "in": "query",
            "name": "page",
            "schema": {
              "default": 1,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "description": "Jobs per page",
            "in": "query",
            "name": "perPage",
            "schema": {
              "default": 30,
              "maximum": 500,
              "minimum": 1,
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRunDetails"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Get a run and a page of its jobs",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/runs/{run}/approve": {
      "post": {
        "description": "Needs a key that may run. Runs spend the organization's credits.",
        "operationId": "approveSpaceRun",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Run ID",
            "in": "path",
            "name": "run",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApproveSpaceRunRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRun"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Approve a new spending ceiling for a run",
        "tags": [
          "runs"
        ],
        "x-level": "run"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/runs/{run}/cancel": {
      "post": {
        "description": "Needs a key that may run. Runs spend the organization's credits.",
        "operationId": "cancelSpaceRun",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Run ID",
            "in": "path",
            "name": "run",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRun"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Cancel jobs that have not started",
        "tags": [
          "runs"
        ],
        "x-level": "run"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/state": {
      "get": {
        "description": "Needs a key that may read.",
        "operationId": "getSpaceRunState",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceRunState"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Get execution state for the current space revision",
        "tags": [
          "runs"
        ],
        "x-level": "read"
      }
    },
    "/v1/organizations/{org}/spaces/{space}/undo": {
      "post": {
        "description": "Needs a key that may write.",
        "operationId": "undoSpaceStep",
        "parameters": [
          {
            "description": "Organization ID",
            "in": "path",
            "name": "org",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Space ID",
            "in": "path",
            "name": "space",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UndoSpaceStepRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceUndoResult"
                }
              }
            },
            "description": "OK"
          },
          "default": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBody"
                }
              }
            },
            "description": "An error: its code, a message for people, and the fields that need attention."
          }
        },
        "summary": "Undo a step, or what one turn of the assistant changed, with care: what someone changed since is left alone and said. A redo is the undo of an undo",
        "tags": [
          "spaces"
        ],
        "x-level": "write"
      }
    }
  },
  "security": [
    {
      "key": []
    }
  ],
  "tags": [
    {
      "name": "ai"
    },
    {
      "name": "identity"
    },
    {
      "name": "library"
    },
    {
      "name": "make"
    },
    {
      "name": "runs"
    },
    {
      "name": "spaces"
    }
  ]
}