{
 "components": {
  "schemas": {
   "ActivateIn": {
    "properties": {
     "confirm": {
      "description": "The program's slug, typed by the person activating",
      "maxLength": 64,
      "title": "Confirm",
      "type": "string"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 500,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "required": [
     "confirm"
    ],
    "title": "ActivateIn",
    "type": "object"
   },
   "AnswerIn": {
    "additionalProperties": false,
    "properties": {
     "answer": {
      "description": "ok, or missed: it should have been flagged.",
      "pattern": "^(ok|missed)$",
      "title": "Answer",
      "type": "string"
     },
     "item_version": {
      "anyOf": [
       {
        "minimum": 1.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "The spot check's version you saw; a stale one is 409.",
      "title": "Item Version"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Internal, like a review note.",
      "title": "Note"
     },
     "open_review": {
      "default": false,
      "description": "For missed: also send the clip to a normal review (needs review.override). The review, not the spot check, can then change its pay.",
      "title": "Open Review",
      "type": "boolean"
     },
     "reason_code": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "For missed: a reject or partial reason of GET /v1/review/reasons.",
      "title": "Reason Code"
     }
    },
    "required": [
     "answer"
    ],
    "title": "AnswerIn",
    "type": "object"
   },
   "ApprovalIn": {
    "properties": {
     "sha256": {
      "maxLength": 64,
      "title": "Sha256",
      "type": "string"
     }
    },
    "required": [
     "sha256"
    ],
    "title": "ApprovalIn",
    "type": "object"
   },
   "AssignIn": {
    "properties": {
     "assignee": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "A username, or null to unassign.",
      "title": "Assignee"
     },
     "item_ids": {
      "items": {
       "type": "string"
      },
      "maxItems": 500,
      "minItems": 1,
      "title": "Item Ids",
      "type": "array"
     }
    },
    "required": [
     "item_ids"
    ],
    "title": "AssignIn",
    "type": "object"
   },
   "BackfillIn": {
    "properties": {
     "program": {
      "anyOf": [
       {
        "maxLength": 48,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Program"
     },
     "redo": {
      "default": false,
      "description": "Also runs already backed up to this destination.",
      "title": "Redo",
      "type": "boolean"
     },
     "since": {
      "description": "Back up runs that finished at or after this time (ISO 8601).",
      "maxLength": 40,
      "title": "Since",
      "type": "string"
     },
     "until": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Until"
     }
    },
    "required": [
     "since"
    ],
    "title": "BackfillIn",
    "type": "object"
   },
   "BadgeIn": {
    "properties": {
     "branch": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Branch"
     },
     "label": {
      "default": "truehands",
      "pattern": "^[A-Za-z0-9 ._-]{1,24}$",
      "title": "Label",
      "type": "string"
     },
     "program": {
      "maxLength": 48,
      "minLength": 1,
      "title": "Program",
      "type": "string"
     },
     "show_age": {
      "default": false,
      "title": "Show Age",
      "type": "boolean"
     }
    },
    "required": [
     "program"
    ],
    "title": "BadgeIn",
    "type": "object"
   },
   "BatchIn": {
    "properties": {
     "window_end": {
      "maxLength": 40,
      "title": "Window End",
      "type": "string"
     },
     "window_start": {
      "maxLength": 40,
      "title": "Window Start",
      "type": "string"
     }
    },
    "required": [
     "window_start",
     "window_end"
    ],
    "title": "BatchIn",
    "type": "object"
   },
   "Batching": {
    "properties": {
     "max_clips": {
      "default": 300,
      "maximum": 5000.0,
      "minimum": 1.0,
      "title": "Max Clips",
      "type": "integer"
     },
     "max_wait_s": {
      "default": 1800,
      "maximum": 604800.0,
      "minimum": 10.0,
      "title": "Max Wait S",
      "type": "integer"
     },
     "mode": {
      "default": "rolling",
      "enum": [
       "rolling",
       "on_schedule"
      ],
      "title": "Mode",
      "type": "string"
     },
     "quiet_s": {
      "default": 300,
      "maximum": 86400.0,
      "minimum": 1.0,
      "title": "Quiet S",
      "type": "integer"
     }
    },
    "title": "Batching",
    "type": "object"
   },
   "BatchingPatch": {
    "properties": {
     "max_clips": {
      "anyOf": [
       {
        "maximum": 5000.0,
        "minimum": 1.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Clips"
     },
     "max_wait_s": {
      "anyOf": [
       {
        "maximum": 604800.0,
        "minimum": 10.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Wait S"
     },
     "mode": {
      "anyOf": [
       {
        "enum": [
         "rolling",
         "on_schedule"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Mode"
     },
     "quiet_s": {
      "anyOf": [
       {
        "maximum": 86400.0,
        "minimum": 1.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Quiet S"
     }
    },
    "title": "BatchingPatch",
    "type": "object"
   },
   "BriefIn": {
    "description": "A custom order brief, as the store takes it.",
    "properties": {
     "audio": {
      "default": false,
      "title": "Audio",
      "type": "boolean"
     },
     "budget_cents_per_hour": {
      "anyOf": [
       {
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Budget Cents Per Hour"
     },
     "cameras": {
      "items": {
       "enum": [
        "head_mounted",
        "chest",
        "handheld_phone",
        "other"
       ],
       "type": "string"
      },
      "title": "Cameras",
      "type": "array"
     },
     "contributor_instructions": {
      "default": "",
      "description": "Shown to the people recording, in every task of the order.",
      "maxLength": 8000,
      "title": "Contributor Instructions",
      "type": "string"
     },
     "countries": {
      "description": "Two-letter country codes.",
      "items": {
       "type": "string"
      },
      "maxItems": 100,
      "title": "Countries",
      "type": "array"
     },
     "deadline": {
      "anyOf": [
       {
        "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Deadline"
     },
     "exclusivity": {
      "default": "exclusive",
      "enum": [
       "exclusive",
       "non_exclusive"
      ],
      "title": "Exclusivity",
      "type": "string"
     },
     "max_clip_seconds": {
      "anyOf": [
       {
        "maximum": 3600.0,
        "minimum": 10.0,
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Max Clip Seconds"
     },
     "min_clip_seconds": {
      "anyOf": [
       {
        "maximum": 3600.0,
        "minimum": 5.0,
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Min Clip Seconds"
     },
     "min_fps": {
      "default": 24,
      "maximum": 240.0,
      "minimum": 10.0,
      "title": "Min Fps",
      "type": "integer"
     },
     "min_resolution": {
      "default": "720p",
      "enum": [
       "480p",
       "720p",
       "1080p",
       "1440p",
       "4k"
      ],
      "title": "Min Resolution",
      "type": "string"
     },
     "notes": {
      "default": "",
      "description": "For Truehands only; never shown to the people recording.",
      "maxLength": 8000,
      "title": "Notes",
      "type": "string"
     },
     "sensor_log_required": {
      "default": false,
      "title": "Sensor Log Required",
      "type": "boolean"
     },
     "settings": {
      "items": {
       "enum": [
        "home",
        "workshop",
        "outdoors",
        "office",
        "kitchen",
        "other"
       ],
       "type": "string"
      },
      "title": "Settings",
      "type": "array"
     },
     "tasks": {
      "items": {
       "$ref": "#/components/schemas/TaskIn"
      },
      "maxItems": 50,
      "minItems": 1,
      "title": "Tasks",
      "type": "array"
     },
     "title": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Title",
      "type": "string"
     }
    },
    "required": [
     "title",
     "tasks"
    ],
    "title": "BriefIn",
    "type": "object"
   },
   "BulkHoldIn": {
    "properties": {
     "contributor_ids": {
      "anyOf": [
       {
        "items": {
         "maxLength": 64,
         "minLength": 1,
         "type": "string"
        },
        "maxItems": 200,
        "minItems": 1,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contributor Ids"
     },
     "note": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Note",
      "type": "string"
     },
     "reason_code": {
      "enum": [
       "suspected_copying",
       "public_footage",
       "sensor_tampering",
       "device_ring",
       "duplicate_resubmission",
       "identity_check",
       "other"
      ],
      "title": "Reason Code",
      "type": "string"
     },
     "ring_id": {
      "anyOf": [
       {
        "maxLength": 16,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Ring Id"
     }
    },
    "required": [
     "reason_code",
     "note"
    ],
    "title": "BulkHoldIn",
    "type": "object"
   },
   "BulkIn": {
    "properties": {
     "client_id": {
      "pattern": "^[A-Za-z0-9_-]{8,64}$",
      "title": "Client Id",
      "type": "string"
     },
     "decision": {
      "pattern": "^(accept|partial|reject)$",
      "title": "Decision",
      "type": "string"
     },
     "dry_run": {
      "default": false,
      "title": "Dry Run",
      "type": "boolean"
     },
     "item_ids": {
      "items": {
       "type": "string"
      },
      "maxItems": 200,
      "minItems": 1,
      "title": "Item Ids",
      "type": "array"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "reason_code": {
      "maxLength": 40,
      "minLength": 1,
      "title": "Reason Code",
      "type": "string"
     }
    },
    "required": [
     "item_ids",
     "decision",
     "reason_code",
     "client_id"
    ],
    "title": "BulkIn",
    "type": "object"
   },
   "ClipIn": {
    "properties": {
     "claimed_task": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Claimed Task",
      "type": "string"
     },
     "clip_id": {
      "title": "Clip Id",
      "type": "string"
     },
     "contributor_id": {
      "title": "Contributor Id",
      "type": "string"
     },
     "device_id": {
      "title": "Device Id",
      "type": "string"
     },
     "imu_upload": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Imu Upload"
     },
     "submitted_at": {
      "title": "Submitted At",
      "type": "string"
     },
     "upload": {
      "title": "Upload",
      "type": "string"
     }
    },
    "required": [
     "clip_id",
     "upload",
     "contributor_id",
     "device_id",
     "claimed_task",
     "submitted_at"
    ],
    "title": "ClipIn",
    "type": "object"
   },
   "ConfirmIn": {
    "properties": {
     "agree": {
      "title": "Agree",
      "type": "boolean"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "required": [
     "agree"
    ],
    "title": "ConfirmIn",
    "type": "object"
   },
   "CustomRoleIn": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "name": {
      "maxLength": 48,
      "minLength": 1,
      "title": "Name",
      "type": "string"
     },
     "permissions": {
      "description": "Grantable permission names (GET /v1/team/roles).",
      "items": {
       "type": "string"
      },
      "maxItems": 200,
      "title": "Permissions",
      "type": "array"
     }
    },
    "required": [
     "name",
     "permissions"
    ],
    "title": "CustomRoleIn",
    "type": "object"
   },
   "CustomRolePatch": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "name": {
      "anyOf": [
       {
        "maxLength": 48,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 200,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Permissions"
     }
    },
    "title": "CustomRolePatch",
    "type": "object"
   },
   "DecisionIn": {
    "properties": {
     "client_id": {
      "description": "A fresh id per decision, reused on retry.",
      "pattern": "^[A-Za-z0-9_-]{8,64}$",
      "title": "Client Id",
      "type": "string"
     },
     "decision": {
      "pattern": "^(accept|partial|reject)$",
      "title": "Decision",
      "type": "string"
     },
     "excluded_segments": {
      "anyOf": [
       {
        "items": {
         "items": {
          "type": "number"
         },
         "type": "array"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Seconds to leave unpaid, as [start_s, end_s] pairs (partial only, at most 50). Omitted: the engine's idle runs.",
      "title": "Excluded Segments"
     },
     "item_version": {
      "description": "The item version you saw; a stale one is refused with 409.",
      "minimum": 1.0,
      "title": "Item Version",
      "type": "integer"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "reason_code": {
      "maxLength": 40,
      "minLength": 1,
      "title": "Reason Code",
      "type": "string"
     },
     "time_on_clip_ms": {
      "anyOf": [
       {
        "maximum": 86400000.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Time On Clip Ms"
     }
    },
    "required": [
     "decision",
     "reason_code",
     "item_version",
     "client_id"
    ],
    "title": "DecisionIn",
    "type": "object"
   },
   "DefaultRuleIn": {
    "properties": {
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Programs"
     },
     "role": {
      "maxLength": 32,
      "minLength": 1,
      "title": "Role",
      "type": "string"
     }
    },
    "required": [
     "role"
    ],
    "title": "DefaultRuleIn",
    "type": "object"
   },
   "DestinationIn": {
    "properties": {
     "access_key_id": {
      "maxLength": 128,
      "title": "Access Key Id",
      "type": "string"
     },
     "bucket": {
      "maxLength": 222,
      "title": "Bucket",
      "type": "string"
     },
     "enabled": {
      "default": true,
      "title": "Enabled",
      "type": "boolean"
     },
     "endpoint_url": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endpoint Url"
     },
     "include": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/IncludeIn"
       },
       {
        "type": "null"
       }
      ],
      "description": "Results are always included; evidence defaults to true, footage to false."
     },
     "name": {
      "maxLength": 80,
      "title": "Name",
      "type": "string"
     },
     "prefix": {
      "default": "",
      "maxLength": 200,
      "title": "Prefix",
      "type": "string"
     },
     "provider": {
      "pattern": "^(aws_s3|cloudflare_r2|gcs|minio|s3_compatible)$",
      "title": "Provider",
      "type": "string"
     },
     "region": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "secret_access_key": {
      "description": "Write-only; responses show its last four characters.",
      "maxLength": 256,
      "title": "Secret Access Key",
      "type": "string"
     }
    },
    "required": [
     "name",
     "provider",
     "bucket",
     "access_key_id",
     "secret_access_key"
    ],
    "title": "DestinationIn",
    "type": "object"
   },
   "DestinationPatch": {
    "properties": {
     "access_key_id": {
      "anyOf": [
       {
        "maxLength": 128,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Access Key Id"
     },
     "bucket": {
      "anyOf": [
       {
        "maxLength": 222,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Bucket"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "endpoint_url": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Endpoint Url"
     },
     "include": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/IncludeIn"
       },
       {
        "type": "null"
       }
      ]
     },
     "name": {
      "anyOf": [
       {
        "maxLength": 80,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "prefix": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Prefix"
     },
     "provider": {
      "anyOf": [
       {
        "pattern": "^(aws_s3|cloudflare_r2|gcs|minio|s3_compatible)$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Provider"
     },
     "region": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Region"
     },
     "secret_access_key": {
      "anyOf": [
       {
        "maxLength": 256,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Secret Access Key"
     }
    },
    "title": "DestinationPatch",
    "type": "object"
   },
   "DraftIn": {
    "properties": {
     "meta": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ]
      },
      "description": "Where it came from: repo, branch, commit, pr, ci_url",
      "title": "Meta",
      "type": "object"
     },
     "policy": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "description": "The policy as an object instead of text",
      "title": "Policy"
     },
     "source": {
      "anyOf": [
       {
        "maxLength": 262144,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Policy text, YAML or JSON",
      "title": "Source"
     }
    },
    "title": "DraftIn",
    "type": "object"
   },
   "DrawIn": {
    "additionalProperties": false,
    "properties": {
     "percent": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "description": "Or a share of the eligible accepted clips, more than 0 and at most 100 (rounded up, at least one clip).",
      "title": "Percent"
     },
     "seed": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Lowercase hex. Omitted: a random one, returned and stored so the draw can be repeated.",
      "title": "Seed"
     },
     "size": {
      "anyOf": [
       {
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "How many clips, 1-500. Send this or percent.",
      "title": "Size"
     },
     "stratify": {
      "default": true,
      "description": "Split the draw across programs in proportion to their accepted clips.",
      "title": "Stratify",
      "type": "boolean"
     }
    },
    "title": "DrawIn",
    "type": "object"
   },
   "EndpointIn": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "events": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 40,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Events"
     },
     "format": {
      "default": "standard",
      "pattern": "^(standard|slack)$",
      "title": "Format",
      "type": "string"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 50,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Programs"
     },
     "url": {
      "maxLength": 2000,
      "title": "Url",
      "type": "string"
     }
    },
    "required": [
     "url"
    ],
    "title": "EndpointIn",
    "type": "object"
   },
   "EndpointPatch": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "events": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 40,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Events"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 50,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Programs"
     },
     "url": {
      "anyOf": [
       {
        "maxLength": 2000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Url"
     }
    },
    "title": "EndpointPatch",
    "type": "object"
   },
   "EraseIn": {
    "properties": {
     "confirm": {
      "anyOf": [
       {
        "maxLength": 64,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "The contributor id typed again; needed unless dry_run",
      "title": "Confirm"
     },
     "dry_run": {
      "default": false,
      "title": "Dry Run",
      "type": "boolean"
     }
    },
    "title": "EraseIn",
    "type": "object"
   },
   "Error": {
    "properties": {
     "error": {
      "properties": {
       "code": {
        "description": "Stable machine-readable code, e.g. codec_not_allowed",
        "type": "string"
       },
       "message": {
        "type": "string"
       }
      },
      "required": [
       "code",
       "message"
      ],
      "type": "object"
     }
    },
    "required": [
     "error"
    ],
    "type": "object"
   },
   "ExportIn": {
    "properties": {
     "dry_run": {
      "default": false,
      "title": "Dry Run",
      "type": "boolean"
     },
     "format": {
      "default": "jsonl",
      "pattern": "^(jsonl|csv|parquet)$",
      "title": "Format",
      "type": "string"
     },
     "program": {
      "maxLength": 48,
      "title": "Program",
      "type": "string"
     },
     "runs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Runs"
     },
     "statuses": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 4,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Statuses"
     },
     "submitted_from": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Submitted From"
     },
     "submitted_to": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Submitted To"
     }
    },
    "required": [
     "program"
    ],
    "title": "ExportIn",
    "type": "object"
   },
   "HTTPValidationError": {
    "properties": {
     "detail": {
      "items": {
       "$ref": "#/components/schemas/ValidationError"
      },
      "title": "Detail",
      "type": "array"
     }
    },
    "title": "HTTPValidationError",
    "type": "object"
   },
   "HandoffIn": {
    "properties": {
     "code": {
      "maxLength": 128,
      "minLength": 20,
      "title": "Code",
      "type": "string"
     }
    },
    "required": [
     "code"
    ],
    "title": "HandoffIn",
    "type": "object"
   },
   "HoldIn": {
    "properties": {
     "note": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Note",
      "type": "string"
     },
     "reason_code": {
      "enum": [
       "suspected_copying",
       "public_footage",
       "sensor_tampering",
       "device_ring",
       "duplicate_resubmission",
       "identity_check",
       "other"
      ],
      "title": "Reason Code",
      "type": "string"
     }
    },
    "required": [
     "reason_code",
     "note"
    ],
    "title": "HoldIn",
    "type": "object"
   },
   "InboxIn": {
    "properties": {
     "clips": {
      "items": {
       "$ref": "#/components/schemas/ClipIn"
      },
      "maxItems": 500,
      "minItems": 1,
      "title": "Clips",
      "type": "array"
     }
    },
    "required": [
     "clips"
    ],
    "title": "InboxIn",
    "type": "object"
   },
   "IncludeIn": {
    "properties": {
     "evidence": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Evidence"
     },
     "footage": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Footage"
     }
    },
    "title": "IncludeIn",
    "type": "object"
   },
   "InviteIn": {
    "properties": {
     "email": {
      "anyOf": [
       {
        "maxLength": 254,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "note": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the person to these programs (slugs or ids). Leave out for every program. Not for owners or admins.",
      "title": "Programs"
     },
     "role": {
      "maxLength": 32,
      "title": "Role",
      "type": "string"
     }
    },
    "required": [
     "role"
    ],
    "title": "InviteIn",
    "type": "object"
   },
   "KeyPairIn": {
    "properties": {
     "expires_in_days": {
      "anyOf": [
       {
        "maximum": 365.0,
        "minimum": 1.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "Expires In Days"
     },
     "label": {
      "maxLength": 64,
      "minLength": 1,
      "title": "Label",
      "type": "string"
     },
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the key pair to these permissions (and what they imply), from those you hold that a key may use. Leave out for a key with all of your permissions, now and as they change.",
      "title": "Permissions"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the key pair to these programs (slugs or ids), from those you may see. Leave out for every program you may see, now and as that changes.",
      "title": "Programs"
     }
    },
    "required": [
     "label"
    ],
    "title": "KeyPairIn",
    "type": "object"
   },
   "MappingIn": {
    "properties": {
     "default": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/DefaultRuleIn"
       },
       {
        "type": "null"
       }
      ]
     },
     "enabled": {
      "title": "Enabled",
      "type": "boolean"
     },
     "rules": {
      "items": {
       "$ref": "#/components/schemas/RuleIn"
      },
      "maxItems": 100,
      "title": "Rules",
      "type": "array"
     }
    },
    "required": [
     "enabled",
     "rules"
    ],
    "title": "MappingIn",
    "type": "object"
   },
   "MemberPatch": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "maxLength": 120,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the member to these programs (slugs or ids); null for every program. Left out: unchanged. Owners and admins cannot be limited.",
      "title": "Programs"
     },
     "role": {
      "anyOf": [
       {
        "maxLength": 32,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Role"
     }
    },
    "title": "MemberPatch",
    "type": "object"
   },
   "NextIn": {
    "properties": {
     "kind": {
      "default": "review",
      "description": "review: clips held for a decision; spot_check: spot checks of a pilot.",
      "pattern": "^(review|spot_check)$",
      "title": "Kind",
      "type": "string"
     },
     "program": {
      "anyOf": [
       {
        "maxLength": 48,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Program"
     },
     "run": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Run"
     }
    },
    "title": "NextIn",
    "type": "object"
   },
   "NoteIn": {
    "properties": {
     "note": {
      "anyOf": [
       {
        "maxLength": 2000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "title": "NoteIn",
    "type": "object"
   },
   "PasswordChangeIn": {
    "properties": {
     "current_password": {
      "maxLength": 128,
      "minLength": 1,
      "title": "Current Password",
      "type": "string"
     },
     "new_password": {
      "maxLength": 256,
      "minLength": 1,
      "title": "New Password",
      "type": "string"
     }
    },
    "required": [
     "current_password",
     "new_password"
    ],
    "title": "PasswordChangeIn",
    "type": "object"
   },
   "PilotIn": {
    "additionalProperties": false,
    "properties": {
     "contact_name": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "The customer's contact for the pilot.",
      "title": "Contact Name"
     },
     "criteria": {
      "description": "Success criteria agreed before the start, one line each.",
      "items": {
       "type": "string"
      },
      "maxItems": 10,
      "title": "Criteria",
      "type": "array"
     },
     "end_date": {
      "description": "Last UTC day (inclusive), YYYY-MM-DD.",
      "title": "End Date",
      "type": "string"
     },
     "kind": {
      "default": "pilot",
      "description": "pilot (the console's name), or evaluation for a periodic report after the pilot.",
      "pattern": "^(pilot|evaluation)$",
      "title": "Kind",
      "type": "string"
     },
     "name": {
      "maxLength": 200,
      "title": "Name",
      "type": "string"
     },
     "programs": {
      "description": "Program slugs.",
      "items": {
       "type": "string"
      },
      "maxItems": 20,
      "minItems": 1,
      "title": "Programs",
      "type": "array"
     },
     "start_date": {
      "description": "First UTC day, YYYY-MM-DD.",
      "title": "Start Date",
      "type": "string"
     }
    },
    "required": [
     "name",
     "programs",
     "start_date",
     "end_date"
    ],
    "title": "PilotIn",
    "type": "object"
   },
   "PilotPatch": {
    "additionalProperties": false,
    "properties": {
     "contact_name": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Contact Name"
     },
     "criteria": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 10,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Criteria"
     },
     "end_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "End Date"
     },
     "kind": {
      "anyOf": [
       {
        "pattern": "^(pilot|evaluation)$",
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Kind"
     },
     "name": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 20,
        "minItems": 1,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Programs"
     },
     "start_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Start Date"
     }
    },
    "title": "PilotPatch",
    "type": "object"
   },
   "PolicyIn": {
    "properties": {
     "policy": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "description": "The policy as an object instead of text",
      "title": "Policy"
     },
     "source": {
      "anyOf": [
       {
        "maxLength": 262144,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Policy text, YAML or JSON",
      "title": "Source"
     }
    },
    "title": "PolicyIn",
    "type": "object"
   },
   "PreviewIn": {
    "properties": {
     "decision": {
      "pattern": "^(accept|partial|reject)$",
      "title": "Decision",
      "type": "string"
     },
     "excluded_segments": {
      "anyOf": [
       {
        "items": {
         "items": {
          "type": "number"
         },
         "type": "array"
        },
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Excluded Segments"
     }
    },
    "required": [
     "decision"
    ],
    "title": "PreviewIn",
    "type": "object"
   },
   "PriorityIn": {
    "properties": {
     "priority": {
      "enum": [
       "high",
       "normal",
       "low"
      ],
      "title": "Priority",
      "type": "string"
     }
    },
    "required": [
     "priority"
    ],
    "title": "PriorityIn",
    "type": "object"
   },
   "ProgramIn": {
    "properties": {
     "capture_app": {
      "default": "",
      "maxLength": 80,
      "title": "Capture App",
      "type": "string"
     },
     "max_clip_seconds": {
      "default": 3600.0,
      "exclusiveMinimum": 0.0,
      "maximum": 3600.0,
      "title": "Max Clip Seconds",
      "type": "number"
     },
     "name": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Name",
      "type": "string"
     },
     "pay_rate_usd_per_hour": {
      "exclusiveMinimum": 0.0,
      "maximum": 1000.0,
      "title": "Pay Rate Usd Per Hour",
      "type": "number"
     },
     "slug": {
      "title": "Slug",
      "type": "string"
     },
     "tasks": {
      "items": {
       "type": "string"
      },
      "maxItems": 200,
      "minItems": 1,
      "title": "Tasks",
      "type": "array"
     }
    },
    "required": [
     "slug",
     "name",
     "tasks",
     "pay_rate_usd_per_hour"
    ],
    "title": "ProgramIn",
    "type": "object"
   },
   "PromoteIn": {
    "properties": {
     "reason": {
      "maxLength": 1000,
      "title": "Reason",
      "type": "string"
     }
    },
    "required": [
     "reason"
    ],
    "title": "PromoteIn",
    "type": "object"
   },
   "PurchaseIn": {
    "properties": {
     "slice": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/SliceIn"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "title": "PurchaseIn",
    "type": "object"
   },
   "ReasonIn": {
    "properties": {
     "reason": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Reason"
     }
    },
    "title": "ReasonIn",
    "type": "object"
   },
   "ReopenIn": {
    "properties": {
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Why, 10-1000 characters. Internal.",
      "title": "Note"
     }
    },
    "title": "ReopenIn",
    "type": "object"
   },
   "ReportIn": {
    "properties": {
     "clip_id": {
      "maxLength": 64,
      "minLength": 1,
      "title": "Clip Id",
      "type": "string"
     },
     "reason": {
      "maxLength": 2000,
      "minLength": 3,
      "title": "Reason",
      "type": "string"
     }
    },
    "required": [
     "clip_id",
     "reason"
    ],
    "title": "ReportIn",
    "type": "object"
   },
   "RequireIn": {
    "properties": {
     "required": {
      "title": "Required",
      "type": "boolean"
     }
    },
    "required": [
     "required"
    ],
    "title": "RequireIn",
    "type": "object"
   },
   "RerunIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "reason": {
      "maxLength": 1000,
      "title": "Reason",
      "type": "string"
     },
     "source": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Source"
     }
    },
    "required": [
     "reason"
    ],
    "title": "RerunIn",
    "type": "object"
   },
   "RetentionIn": {
    "properties": {
     "media_retention_days": {
      "title": "Media Retention Days",
      "type": "integer"
     }
    },
    "required": [
     "media_retention_days"
    ],
    "title": "RetentionIn",
    "type": "object"
   },
   "RevertIn": {
    "properties": {
     "note": {
      "anyOf": [
       {
        "maxLength": 1000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     }
    },
    "title": "RevertIn",
    "type": "object"
   },
   "RuleIn": {
    "properties": {
     "group": {
      "maxLength": 256,
      "minLength": 1,
      "title": "Group",
      "type": "string"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "title": "Programs"
     },
     "role": {
      "maxLength": 32,
      "minLength": 1,
      "title": "Role",
      "type": "string"
     }
    },
    "required": [
     "group",
     "role"
    ],
    "title": "RuleIn",
    "type": "object"
   },
   "RunBackupIn": {
    "properties": {
     "destination_id": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Destination Id"
     }
    },
    "title": "RunBackupIn",
    "type": "object"
   },
   "RunIn": {
    "properties": {
     "clips": {
      "items": {
       "$ref": "#/components/schemas/ClipIn"
      },
      "maxItems": 5000,
      "minItems": 1,
      "title": "Clips",
      "type": "array"
     },
     "meta": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ]
      },
      "description": "Where the run came from: repo, branch, commit, ci_provider, ci_url, pr, actor, trigger",
      "title": "Meta",
      "type": "object"
     },
     "name": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Name",
      "type": "string"
     },
     "program": {
      "title": "Program",
      "type": "string"
     },
     "source": {
      "default": "api",
      "pattern": "^(api|cli|console|ci|automation)$",
      "title": "Source",
      "type": "string"
     },
     "tag": {
      "anyOf": [
       {
        "maxLength": 40,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tag"
     }
    },
    "required": [
     "program",
     "name",
     "clips"
    ],
    "title": "RunIn",
    "type": "object"
   },
   "ScheduleIn": {
    "properties": {
     "action": {
      "enum": [
       "flush_watcher",
       "sweep"
      ],
      "title": "Action",
      "type": "string"
     },
     "cron": {
      "maxLength": 120,
      "title": "Cron",
      "type": "string"
     },
     "enabled": {
      "default": true,
      "title": "Enabled",
      "type": "boolean"
     },
     "name": {
      "maxLength": 48,
      "title": "Name",
      "type": "string"
     },
     "params": {
      "additionalProperties": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "title": "Params",
      "type": "object"
     },
     "tz": {
      "default": "UTC",
      "maxLength": 64,
      "title": "Tz",
      "type": "string"
     }
    },
    "required": [
     "name",
     "cron",
     "action"
    ],
    "title": "ScheduleIn",
    "type": "object"
   },
   "SchedulePatch": {
    "properties": {
     "cron": {
      "anyOf": [
       {
        "maxLength": 120,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Cron"
     },
     "enabled": {
      "anyOf": [
       {
        "type": "boolean"
       },
       {
        "type": "null"
       }
      ],
      "title": "Enabled"
     },
     "params": {
      "anyOf": [
       {
        "additionalProperties": {
         "anyOf": [
          {
           "type": "string"
          },
          {
           "type": "integer"
          }
         ]
        },
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "title": "Params"
     },
     "tz": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Tz"
     }
    },
    "title": "SchedulePatch",
    "type": "object"
   },
   "SendIn": {
    "properties": {
     "destination_id": {
      "description": "One of the organisation's backup destinations (GET /v1/backups/destinations).",
      "maxLength": 64,
      "minLength": 1,
      "title": "Destination Id",
      "type": "string"
     }
    },
    "required": [
     "destination_id"
    ],
    "title": "SendIn",
    "type": "object"
   },
   "ServiceAccountIn": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "name": {
      "maxLength": 120,
      "minLength": 1,
      "title": "Name",
      "type": "string"
     },
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the service account's key pair to these permissions (and what they imply). Leave out for everything the ci role may do.",
      "title": "Permissions"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the service account to these programs (slugs or ids). Leave out for every program.",
      "title": "Programs"
     },
     "username": {
      "maxLength": 64,
      "minLength": 1,
      "title": "Username",
      "type": "string"
     }
    },
    "required": [
     "username",
     "name"
    ],
    "title": "ServiceAccountIn",
    "type": "object"
   },
   "ServiceAccountPatch": {
    "properties": {
     "description": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Description"
     },
     "name": {
      "anyOf": [
       {
        "maxLength": 120,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the service account to these programs (slugs or ids); null for every program. Left out: unchanged.",
      "title": "Programs"
     }
    },
    "title": "ServiceAccountPatch",
    "type": "object"
   },
   "ServiceKeyIn": {
    "properties": {
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the new key pair to these permissions. Leave out for everything the ci role may do.",
      "title": "Permissions"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "Limit the new key pair to these programs. Leave out for every program the service account may see.",
      "title": "Programs"
     }
    },
    "title": "ServiceKeyIn",
    "type": "object"
   },
   "SessionIn": {
    "properties": {
     "access_key": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Access Key"
     },
     "password": {
      "anyOf": [
       {
        "maxLength": 128,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Password"
     },
     "username": {
      "maxLength": 64,
      "minLength": 1,
      "title": "Username",
      "type": "string"
     }
    },
    "required": [
     "username"
    ],
    "title": "SessionIn",
    "type": "object"
   },
   "SettingsIn": {
    "additionalProperties": false,
    "properties": {
     "manual_review_usd_per_hour": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Manual Review Usd Per Hour"
     },
     "truehands_usd_per_hour": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Truehands Usd Per Hour"
     }
    },
    "title": "SettingsIn",
    "type": "object"
   },
   "SimulateIn": {
    "properties": {
     "policy": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "description": "The policy as an object instead of text",
      "title": "Policy"
     },
     "runs": {
      "anyOf": [
       {
        "additionalProperties": true,
        "type": "object"
       },
       {
        "type": "null"
       }
      ],
      "description": "{\"last\": 10} (at most 20) or {\"run_ids\": [...]} (at most 20)",
      "title": "Runs"
     },
     "source": {
      "anyOf": [
       {
        "maxLength": 262144,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Policy text, YAML or JSON",
      "title": "Source"
     },
     "version": {
      "anyOf": [
       {
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "description": "A stored version, instead of source or policy",
      "title": "Version"
     }
    },
    "title": "SimulateIn",
    "type": "object"
   },
   "SliceIn": {
    "properties": {
     "hours": {
      "anyOf": [
       {
        "exclusiveMinimum": 0.0,
        "type": "number"
       },
       {
        "type": "null"
       }
      ],
      "title": "Hours"
     },
     "tasks": {
      "items": {
       "type": "string"
      },
      "maxItems": 50,
      "title": "Tasks",
      "type": "array"
     }
    },
    "title": "SliceIn",
    "type": "object"
   },
   "SsoConfigIn": {
    "properties": {
     "allowed_domains": {
      "items": {
       "type": "string"
      },
      "maxItems": 20,
      "title": "Allowed Domains",
      "type": "array"
     },
     "client_id": {
      "maxLength": 255,
      "minLength": 1,
      "title": "Client Id",
      "type": "string"
     },
     "client_secret": {
      "anyOf": [
       {
        "maxLength": 2000,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Leave out to keep the one stored. Never returned.",
      "title": "Client Secret"
     },
     "email_claim": {
      "anyOf": [
       {
        "maxLength": 100,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email Claim"
     },
     "enabled": {
      "default": false,
      "title": "Enabled",
      "type": "boolean"
     },
     "groups_claim": {
      "anyOf": [
       {
        "maxLength": 100,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Groups Claim"
     },
     "issuer": {
      "maxLength": 300,
      "minLength": 1,
      "title": "Issuer",
      "type": "string"
     },
     "slug": {
      "description": "The organisation's sign-in name: people may type it instead of their work email.",
      "maxLength": 48,
      "minLength": 1,
      "title": "Slug",
      "type": "string"
     }
    },
    "required": [
     "slug",
     "issuer",
     "client_id",
     "allowed_domains"
    ],
    "title": "SsoConfigIn",
    "type": "object"
   },
   "SsoTestIn": {
    "properties": {
     "issuer": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "Test this issuer instead of the saved one.",
      "title": "Issuer"
     }
    },
    "title": "SsoTestIn",
    "type": "object"
   },
   "StartIn": {
    "properties": {
     "email": {
      "anyOf": [
       {
        "maxLength": 254,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Email"
     },
     "invite_token": {
      "anyOf": [
       {
        "maxLength": 256,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Invite Token"
     },
     "org": {
      "anyOf": [
       {
        "maxLength": 48,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Org"
     },
     "return_to": {
      "anyOf": [
       {
        "maxLength": 300,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Return To"
     }
    },
    "title": "StartIn",
    "type": "object"
   },
   "StepUpIn": {
    "properties": {
     "password": {
      "maxLength": 128,
      "minLength": 1,
      "title": "Password",
      "type": "string"
     }
    },
    "required": [
     "password"
    ],
    "title": "StepUpIn",
    "type": "object"
   },
   "TagsIn": {
    "properties": {
     "add": {
      "items": {
       "type": "string"
      },
      "maxItems": 50,
      "title": "Add",
      "type": "array"
     },
     "remove": {
      "items": {
       "type": "string"
      },
      "maxItems": 50,
      "title": "Remove",
      "type": "array"
     }
    },
    "title": "TagsIn",
    "type": "object"
   },
   "TaskIn": {
    "properties": {
     "description": {
      "default": "",
      "maxLength": 4000,
      "title": "Description",
      "type": "string"
     },
     "examples": {
      "description": "Links to example videos or photos.",
      "items": {
       "type": "string"
      },
      "maxItems": 20,
      "title": "Examples",
      "type": "array"
     },
     "hours": {
      "exclusiveMinimum": 0.0,
      "maximum": 100000.0,
      "title": "Hours",
      "type": "number"
     },
     "name": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Name",
      "type": "string"
     }
    },
    "required": [
     "name",
     "hours"
    ],
    "title": "TaskIn",
    "type": "object"
   },
   "TasksIn": {
    "properties": {
     "tasks": {
      "description": "Tasks to add, each 1-200 characters. A task the program already has is left as it is.",
      "items": {
       "type": "string"
      },
      "maxItems": 200,
      "minItems": 1,
      "title": "Tasks",
      "type": "array"
     }
    },
    "required": [
     "tasks"
    ],
    "title": "TasksIn",
    "type": "object"
   },
   "ValidationError": {
    "properties": {
     "ctx": {
      "title": "Context",
      "type": "object"
     },
     "input": {
      "title": "Input"
     },
     "loc": {
      "items": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "integer"
        }
       ]
      },
      "title": "Location",
      "type": "array"
     },
     "msg": {
      "title": "Message",
      "type": "string"
     },
     "type": {
      "title": "Error Type",
      "type": "string"
     }
    },
    "required": [
     "loc",
     "msg",
     "type"
    ],
    "title": "ValidationError",
    "type": "object"
   },
   "ViewIn": {
    "properties": {
     "name": {
      "maxLength": 200,
      "title": "Name",
      "type": "string"
     },
     "page": {
      "default": "runs",
      "title": "Page",
      "type": "string"
     },
     "query": {
      "additionalProperties": true,
      "title": "Query",
      "type": "object"
     },
     "scope": {
      "default": "personal",
      "title": "Scope",
      "type": "string"
     }
    },
    "required": [
     "name"
    ],
    "title": "ViewIn",
    "type": "object"
   },
   "VoidIn": {
    "properties": {
     "reason": {
      "maxLength": 200,
      "minLength": 1,
      "title": "Reason",
      "type": "string"
     }
    },
    "required": [
     "reason"
    ],
    "title": "VoidIn",
    "type": "object"
   },
   "WatchIn": {
    "properties": {
     "note": {
      "anyOf": [
       {
        "maxLength": 500,
        "minLength": 1,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Note"
     },
     "on": {
      "title": "On",
      "type": "boolean"
     }
    },
    "required": [
     "on"
    ],
    "title": "WatchIn",
    "type": "object"
   },
   "WatcherIn": {
    "properties": {
     "batching": {
      "$ref": "#/components/schemas/Batching"
     },
     "file_settle_s": {
      "default": 30,
      "description": "local only: a file must be unchanged this long",
      "maximum": 3600.0,
      "minimum": 0.0,
      "title": "File Settle S",
      "type": "integer"
     },
     "kind": {
      "enum": [
       "local",
       "api"
      ],
      "title": "Kind",
      "type": "string"
     },
     "name": {
      "maxLength": 48,
      "title": "Name",
      "type": "string"
     },
     "priority": {
      "default": "high",
      "enum": [
       "high",
       "normal",
       "low"
      ],
      "title": "Priority",
      "type": "string"
     },
     "program": {
      "maxLength": 48,
      "title": "Program",
      "type": "string"
     },
     "template": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "local only; default {contributor_id}/{device_id}/{task}/{clip_id}",
      "title": "Template"
     }
    },
    "required": [
     "name",
     "program",
     "kind"
    ],
    "title": "WatcherIn",
    "type": "object"
   },
   "WatcherPatch": {
    "properties": {
     "batching": {
      "anyOf": [
       {
        "$ref": "#/components/schemas/BatchingPatch"
       },
       {
        "type": "null"
       }
      ]
     },
     "file_settle_s": {
      "anyOf": [
       {
        "maximum": 3600.0,
        "minimum": 0.0,
        "type": "integer"
       },
       {
        "type": "null"
       }
      ],
      "title": "File Settle S"
     },
     "priority": {
      "anyOf": [
       {
        "enum": [
         "high",
         "normal",
         "low"
        ],
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Priority"
     },
     "template": {
      "anyOf": [
       {
        "maxLength": 200,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Template"
     }
    },
    "title": "WatcherPatch",
    "type": "object"
   },
   "truehands__server__routes__contributors_risk__ReleaseIn": {
    "properties": {
     "note": {
      "maxLength": 500,
      "minLength": 1,
      "title": "Note",
      "type": "string"
     }
    },
    "required": [
     "note"
    ],
    "title": "ReleaseIn",
    "type": "object"
   },
   "truehands__server__routes__keys__KeyLimitsIn": {
    "description": "Send a field to change it; null removes that limit. A field left out stays as it is.",
    "properties": {
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "The permissions the key pair is limited to (and what they imply), or null for all of its user's.",
      "title": "Permissions"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "The programs (slugs or ids) the key pair is limited to, or null for every program its user may see.",
      "title": "Programs"
     }
    },
    "title": "KeyLimitsIn",
    "type": "object"
   },
   "truehands__server__routes__policies__ReleaseIn": {
    "properties": {
     "reason": {
      "maxLength": 500,
      "minLength": 10,
      "title": "Reason",
      "type": "string"
     }
    },
    "required": [
     "reason"
    ],
    "title": "ReleaseIn",
    "type": "object"
   },
   "truehands__server__routes__store__AcceptIn": {
    "properties": {
     "version": {
      "maxLength": 64,
      "minLength": 1,
      "title": "Version",
      "type": "string"
     }
    },
    "required": [
     "version"
    ],
    "title": "AcceptIn",
    "type": "object"
   },
   "truehands__server__routes__store__LinkIn": {
    "properties": {
     "billing_email": {
      "anyOf": [
       {
        "maxLength": 254,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Billing Email"
     },
     "link_code": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "description": "A one-hour code from the owner of an existing store buyer, to connect that buyer instead of creating one.",
      "title": "Link Code"
     },
     "store_terms_version": {
      "description": "The Store Terms version shown to the admin and accepted (GET /v1/store/agreements/store_terms/text).",
      "maxLength": 64,
      "minLength": 1,
      "title": "Store Terms Version",
      "type": "string"
     }
    },
    "required": [
     "store_terms_version"
    ],
    "title": "LinkIn",
    "type": "object"
   },
   "truehands__server__routes__team_admin__AcceptIn": {
    "properties": {
     "name": {
      "anyOf": [
       {
        "maxLength": 120,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Name"
     },
     "password": {
      "maxLength": 256,
      "minLength": 1,
      "title": "Password",
      "type": "string"
     },
     "token": {
      "maxLength": 256,
      "minLength": 1,
      "title": "Token",
      "type": "string"
     },
     "username": {
      "anyOf": [
       {
        "maxLength": 64,
        "type": "string"
       },
       {
        "type": "null"
       }
      ],
      "title": "Username"
     }
    },
    "required": [
     "token",
     "password"
    ],
    "title": "AcceptIn",
    "type": "object"
   },
   "truehands__server__routes__team_admin__KeyLimitsIn": {
    "description": "Send a field to change it; null removes that limit. A field left out stays as it is.",
    "properties": {
     "permissions": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "The permissions the key pair is limited to (and what they imply), or null for everything the ci role may do.",
      "title": "Permissions"
     },
     "programs": {
      "anyOf": [
       {
        "items": {
         "type": "string"
        },
        "maxItems": 100,
        "type": "array"
       },
       {
        "type": "null"
       }
      ],
      "description": "The programs (slugs or ids) the key pair is limited to, or null for every program the service account may see.",
      "title": "Programs"
     }
    },
    "title": "KeyLimitsIn",
    "type": "object"
   },
   "truehands__server__routes__team_admin__LinkIn": {
    "properties": {
     "token": {
      "maxLength": 256,
      "minLength": 1,
      "title": "Token",
      "type": "string"
     }
    },
    "required": [
     "token"
    ],
    "title": "LinkIn",
    "type": "object"
   }
  },
  "securitySchemes": {
   "basicAuth": {
    "scheme": "basic",
    "type": "http"
   },
   "scimToken": {
    "scheme": "bearer",
    "type": "http"
   },
   "sessionToken": {
    "scheme": "bearer",
    "type": "http"
   }
  }
 },
 "info": {
  "description": "Truehands Cloud API. Scripts use HTTP Basic with a key pair: the TH-Key (thk_...) as the user and the TH-Secret-Key (ths_...) as the password; a username and access key still work but are deprecated. The console uses a bearer session token from POST /v1/session.",
  "license": {
   "identifier": "LicenseRef-Proprietary",
   "name": "Proprietary"
  },
  "title": "Truehands API",
  "version": "0.4.0"
 },
 "openapi": "3.1.0",
 "paths": {
  "/install.sh": {
   "get": {
    "description": "Install or upgrade the CLI. No credentials. The script downloads /v1/ci/cli.pyz from this server's public\naddress, checks it against the SHA-256 written into the script, and installs it under ~/.truehands with a\n`truehands` command in ~/.local/bin (TRUEHANDS_HOME and TRUEHANDS_BIN_DIR change these). Never cached.",
    "operationId": "install_sh_install_sh_get",
    "responses": {
     "200": {
      "content": {
       "text/x-shellscript": {}
      },
      "description": "A POSIX sh installer: `curl -fsSL https://SERVER/install.sh | sh`."
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Install Sh",
    "tags": [
     "CI"
    ]
   }
  },
  "/scim/v2/Groups": {
   "get": {
    "description": "Groups, filtered (displayName, externalId, id, members.value) and paged.",
    "operationId": "scim_list_groups_scim_v2_Groups_get",
    "parameters": [
     {
      "in": "query",
      "name": "filter",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 1000,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Filter"
      }
     },
     {
      "in": "query",
      "name": "startIndex",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Startindex"
      }
     },
     {
      "in": "query",
      "name": "count",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Count"
      }
     },
     {
      "in": "query",
      "name": "attributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Attributes"
      }
     },
     {
      "in": "query",
      "name": "excludedAttributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Excludedattributes"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim List Groups",
    "tags": [
     "SCIM"
    ]
   },
   "post": {
    "description": "Create a group, optionally with members. 409 uniqueness when the name is taken.",
    "operationId": "scim_create_group_scim_v2_Groups_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Create Group",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/Groups/{group_id}": {
   "delete": {
    "description": "Delete a group. Its members' roles are recomputed without it.",
    "operationId": "scim_delete_group_scim_v2_Groups__group_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "group_id",
      "required": true,
      "schema": {
       "title": "Group Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Delete Group",
    "tags": [
     "SCIM"
    ]
   },
   "get": {
    "operationId": "scim_get_group_scim_v2_Groups__group_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "group_id",
      "required": true,
      "schema": {
       "title": "Group Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "attributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Attributes"
      }
     },
     {
      "in": "query",
      "name": "excludedAttributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Excludedattributes"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Get Group",
    "tags": [
     "SCIM"
    ]
   },
   "patch": {
    "description": "Add or remove members (members[value eq \"...\"] or a members list) and rename the group, as Okta and\nMicrosoft Entra ID send it. Answers 204, like Entra expects; send ?attributes= to get the group back.",
    "operationId": "scim_patch_group_scim_v2_Groups__group_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "group_id",
      "required": true,
      "schema": {
       "title": "Group Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Patch Group",
    "tags": [
     "SCIM"
    ]
   },
   "put": {
    "description": "Replace a group's name, external id and members.",
    "operationId": "scim_replace_group_scim_v2_Groups__group_id__put",
    "parameters": [
     {
      "in": "path",
      "name": "group_id",
      "required": true,
      "schema": {
       "title": "Group Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Replace Group",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/ResourceTypes": {
   "get": {
    "operationId": "scim_resource_types_scim_v2_ResourceTypes_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Resource Types",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/ResourceTypes/{type_id}": {
   "get": {
    "operationId": "scim_resource_type_scim_v2_ResourceTypes__type_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "type_id",
      "required": true,
      "schema": {
       "title": "Type Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Resource Type",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/Schemas": {
   "get": {
    "operationId": "scim_schemas_scim_v2_Schemas_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Schemas",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/Schemas/{schema_id}": {
   "get": {
    "operationId": "scim_schema_scim_v2_Schemas__schema_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "schema_id",
      "required": true,
      "schema": {
       "title": "Schema Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Schema",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/ServiceProviderConfig": {
   "get": {
    "operationId": "scim_config_scim_v2_ServiceProviderConfig_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Config",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/Users": {
   "get": {
    "description": "Users provisioned by SCIM, filtered (userName, externalId, emails.value, displayName, id, active; eq, ne,\nco, sw, ew, pr, joined by and) and paged (startIndex from 1, count up to 200).",
    "operationId": "scim_list_users_scim_v2_Users_get",
    "parameters": [
     {
      "in": "query",
      "name": "filter",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 1000,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Filter"
      }
     },
     {
      "in": "query",
      "name": "startIndex",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Startindex"
      }
     },
     {
      "in": "query",
      "name": "count",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Count"
      }
     },
     {
      "in": "query",
      "name": "attributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Attributes"
      }
     },
     {
      "in": "query",
      "name": "excludedAttributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Excludedattributes"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim List Users",
    "tags": [
     "SCIM"
    ]
   },
   "post": {
    "description": "Create a user (a person with no password, who signs in with single sign-on), or link the member who has\nthis email and is not linked yet. 409 uniqueness when the userName is taken or the email is an owner's.",
    "operationId": "scim_create_user_scim_v2_Users_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Create User",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/scim/v2/Users/{user_id}": {
   "delete": {
    "description": "Deactivate the member (their sessions end, and their key pairs and access key are revoked for good) and\nforget them for SCIM. Never a hard delete: their runs and audit rows stay.",
    "operationId": "scim_delete_user_scim_v2_Users__user_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "user_id",
      "required": true,
      "schema": {
       "title": "User Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Delete User",
    "tags": [
     "SCIM"
    ]
   },
   "get": {
    "operationId": "scim_get_user_scim_v2_Users__user_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "user_id",
      "required": true,
      "schema": {
       "title": "User Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "attributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Attributes"
      }
     },
     {
      "in": "query",
      "name": "excludedAttributes",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Excludedattributes"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Get User",
    "tags": [
     "SCIM"
    ]
   },
   "patch": {
    "description": "Add, replace or remove attributes, as Okta and Microsoft Entra ID send them (active: false deactivates\nand revokes the member's keys).",
    "operationId": "scim_patch_user_scim_v2_Users__user_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "user_id",
      "required": true,
      "schema": {
       "title": "User Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Patch User",
    "tags": [
     "SCIM"
    ]
   },
   "put": {
    "description": "Replace a user's attributes (userName, externalId, name, displayName, emails, active).",
    "operationId": "scim_replace_user_scim_v2_Users__user_id__put",
    "parameters": [
     {
      "in": "path",
      "name": "user_id",
      "required": true,
      "schema": {
       "title": "User Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "type": "object"
       }
      },
      "application/scim+json": {
       "schema": {
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [
     {
      "scimToken": []
     }
    ],
    "summary": "Scim Replace User",
    "tags": [
     "SCIM"
    ]
   }
  },
  "/v1/access-key": {
   "post": {
    "deprecated": true,
    "description": "Deprecated: rotate your legacy access key (used with your username). Create key pairs under /v1/me/keys\ninstead. Your key pairs are not touched.",
    "operationId": "rotate_key_v1_access_key_post",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Rotate Key",
    "tags": [
     "Auth"
    ]
   }
  },
  "/v1/analytics/clips": {
   "get": {
    "description": "The clips behind any overview number, worst first, with totals that match the tile. With no segment\nthe payable total equals the payable tile; status=flagged matches the blocked tile; open_review=true\nmatches the backlog tile. Rows carry console paths, never media links.",
    "operationId": "get_clips_v1_analytics_clips_get",
    "parameters": [
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "maximum": 100000,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     },
     {
      "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
      "in": "query",
      "name": "range",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(7d|30d|90d)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
       "title": "Range"
      }
     },
     {
      "description": "First UTC day, YYYY-MM-DD.",
      "in": "query",
      "name": "from",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "First UTC day, YYYY-MM-DD.",
       "title": "From"
      }
     },
     {
      "description": "Last UTC day (inclusive), YYYY-MM-DD.",
      "in": "query",
      "name": "to",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Last UTC day (inclusive), YYYY-MM-DD.",
       "title": "To"
      }
     },
     {
      "description": "Program slug; repeat for up to 10 programs.",
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "default": [],
       "description": "Program slug; repeat for up to 10 programs.",
       "items": {
        "type": "string"
       },
       "title": "Program",
       "type": "array"
      }
     },
     {
      "in": "query",
      "name": "source",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(api|cli|console|ci|automation)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "in": "query",
      "name": "tag",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "description": "Matches the run's meta.branch.",
      "in": "query",
      "name": "branch",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Matches the run's meta.branch.",
       "title": "Branch"
      }
     },
     {
      "in": "query",
      "name": "interval",
      "required": false,
      "schema": {
       "default": "auto",
       "pattern": "^(auto|day|week|month)$",
       "title": "Interval",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|review|reject|flagged)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "description": "Reason code; implies flagged clips.",
      "in": "query",
      "name": "code",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-z_]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Reason code; implies flagged clips.",
       "title": "Code"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[A-Za-z0-9_-]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "description": "A label from series.labels: narrows to that bucket of the range.",
      "in": "query",
      "name": "bucket",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^\\d{4}-\\d{2}(-\\d{2})?$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "A label from series.labels: narrows to that bucket of the range.",
       "title": "Bucket"
      }
     },
     {
      "description": "Clips waiting for review now; ignores the date range.",
      "in": "query",
      "name": "open_review",
      "required": false,
      "schema": {
       "default": false,
       "description": "Clips waiting for review now; ignores the date range.",
       "title": "Open Review",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Clips",
    "tags": [
     "Analytics"
    ]
   }
  },
  "/v1/analytics/export": {
   "get": {
    "description": "Download a CSV of clips, contributors, programs or reasons for the filters. Every export is recorded\nin the audit log with its filters and row count.",
    "operationId": "export_v1_analytics_export_get",
    "parameters": [
     {
      "in": "query",
      "name": "kind",
      "required": true,
      "schema": {
       "pattern": "^(clips|contributors|programs|reasons)$",
       "title": "Kind",
       "type": "string"
      }
     },
     {
      "description": "Order of the contributor rows: blocked $, flagged share or rejects (all descending).",
      "in": "query",
      "name": "sort",
      "required": false,
      "schema": {
       "default": "blocked_usd",
       "description": "Order of the contributor rows: blocked $, flagged share or rejects (all descending).",
       "pattern": "^(blocked_usd|flagged_share|rejects)$",
       "title": "Sort",
       "type": "string"
      }
     },
     {
      "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
      "in": "query",
      "name": "range",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(7d|30d|90d)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
       "title": "Range"
      }
     },
     {
      "description": "First UTC day, YYYY-MM-DD.",
      "in": "query",
      "name": "from",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "First UTC day, YYYY-MM-DD.",
       "title": "From"
      }
     },
     {
      "description": "Last UTC day (inclusive), YYYY-MM-DD.",
      "in": "query",
      "name": "to",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Last UTC day (inclusive), YYYY-MM-DD.",
       "title": "To"
      }
     },
     {
      "description": "Program slug; repeat for up to 10 programs.",
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "default": [],
       "description": "Program slug; repeat for up to 10 programs.",
       "items": {
        "type": "string"
       },
       "title": "Program",
       "type": "array"
      }
     },
     {
      "in": "query",
      "name": "source",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(api|cli|console|ci|automation)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "in": "query",
      "name": "tag",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "description": "Matches the run's meta.branch.",
      "in": "query",
      "name": "branch",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Matches the run's meta.branch.",
       "title": "Branch"
      }
     },
     {
      "in": "query",
      "name": "interval",
      "required": false,
      "schema": {
       "default": "auto",
       "pattern": "^(auto|day|week|month)$",
       "title": "Interval",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|review|reject|flagged)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "description": "Reason code; implies flagged clips.",
      "in": "query",
      "name": "code",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-z_]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Reason code; implies flagged clips.",
       "title": "Code"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[A-Za-z0-9_-]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "description": "A label from series.labels: narrows to that bucket of the range.",
      "in": "query",
      "name": "bucket",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^\\d{4}-\\d{2}(-\\d{2})?$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "A label from series.labels: narrows to that bucket of the range.",
       "title": "Bucket"
      }
     },
     {
      "description": "Clips waiting for review now; ignores the date range.",
      "in": "query",
      "name": "open_review",
      "required": false,
      "schema": {
       "default": false,
       "description": "Clips waiting for review now; ignores the date range.",
       "title": "Open Review",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "text/csv": {
        "schema": {
         "type": "string"
        }
       }
      },
      "description": "CSV file (formula-safe cells, at most 50,000 rows; X-Truehands-Truncated: true when capped)"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Export",
    "tags": [
     "Analytics"
    ]
   }
  },
  "/v1/analytics/overview": {
   "get": {
    "description": "KPIs with deltas and sparklines, trends by verdict, flags by reason, backlog, money, top contributors,\nprogram comparison and the live strip, for finished runs in the range. Re-runs count once.",
    "operationId": "get_overview_v1_analytics_overview_get",
    "parameters": [
     {
      "description": "Order of the contributor rows: blocked $, flagged share or rejects (all descending).",
      "in": "query",
      "name": "sort",
      "required": false,
      "schema": {
       "default": "blocked_usd",
       "description": "Order of the contributor rows: blocked $, flagged share or rejects (all descending).",
       "pattern": "^(blocked_usd|flagged_share|rejects)$",
       "title": "Sort",
       "type": "string"
      }
     },
     {
      "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
      "in": "query",
      "name": "range",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(7d|30d|90d)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Rolling window ending now. Default 30d. Ignored when from/to are set.",
       "title": "Range"
      }
     },
     {
      "description": "First UTC day, YYYY-MM-DD.",
      "in": "query",
      "name": "from",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "First UTC day, YYYY-MM-DD.",
       "title": "From"
      }
     },
     {
      "description": "Last UTC day (inclusive), YYYY-MM-DD.",
      "in": "query",
      "name": "to",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 10,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Last UTC day (inclusive), YYYY-MM-DD.",
       "title": "To"
      }
     },
     {
      "description": "Program slug; repeat for up to 10 programs.",
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "default": [],
       "description": "Program slug; repeat for up to 10 programs.",
       "items": {
        "type": "string"
       },
       "title": "Program",
       "type": "array"
      }
     },
     {
      "in": "query",
      "name": "source",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(api|cli|console|ci|automation)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "in": "query",
      "name": "tag",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "description": "Matches the run's meta.branch.",
      "in": "query",
      "name": "branch",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Matches the run's meta.branch.",
       "title": "Branch"
      }
     },
     {
      "in": "query",
      "name": "interval",
      "required": false,
      "schema": {
       "default": "auto",
       "pattern": "^(auto|day|week|month)$",
       "title": "Interval",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Overview",
    "tags": [
     "Analytics"
    ]
   }
  },
  "/v1/analytics/settings": {
   "get": {
    "description": "The cost assumptions behind \"Est. saved\". Manual review has no default: it stays empty until an owner\nor admin enters the organisation's own rate.",
    "operationId": "get_settings_v1_analytics_settings_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Settings",
    "tags": [
     "Analytics"
    ]
   },
   "put": {
    "description": "Set the manual review and Truehands rates ($/h, more than 0 and at most 500). Owners and admins signed in\nto the console only, because the result is a money figure shown to buyers.",
    "operationId": "put_settings_v1_analytics_settings_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SettingsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Put Settings",
    "tags": [
     "Analytics"
    ]
   }
  },
  "/v1/audit-log": {
   "get": {
    "description": "Newest first. Page with `before` = the previous page's `next_before`.",
    "operationId": "audit_log_v1_audit_log_get",
    "parameters": [
     {
      "in": "query",
      "name": "action",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Action"
      }
     },
     {
      "in": "query",
      "name": "actor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Actor"
      }
     },
     {
      "in": "query",
      "name": "target",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Target"
      }
     },
     {
      "in": "query",
      "name": "via",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(key|session|key_session|link|system|sso|scim)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Via"
      }
     },
     {
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Since"
      }
     },
     {
      "in": "query",
      "name": "until",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Until"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "before",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "minimum": 1,
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "title": "Before"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Audit Log",
    "tags": [
     "Audit log"
    ]
   }
  },
  "/v1/audit-log/export": {
   "get": {
    "description": "The filtered audit log as CSV or JSON lines, newest first, up to 100,000 rows. The export is audited.",
    "operationId": "export_audit_log_v1_audit_log_export_get",
    "parameters": [
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "csv",
       "pattern": "^(csv|jsonl)$",
       "title": "Format",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "action",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Action"
      }
     },
     {
      "in": "query",
      "name": "actor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Actor"
      }
     },
     {
      "in": "query",
      "name": "target",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Target"
      }
     },
     {
      "in": "query",
      "name": "via",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(key|session|key_session|link|system|sso|scim)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Via"
      }
     },
     {
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Since"
      }
     },
     {
      "in": "query",
      "name": "until",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Until"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/x-ndjson": {},
       "text/csv": {}
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Export Audit Log",
    "tags": [
     "Audit log"
    ]
   }
  },
  "/v1/backups/destinations": {
   "get": {
    "description": "The organisation's backup destinations, with their last backup and any error.",
    "operationId": "list_destinations_v1_backups_destinations_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Destinations",
    "tags": [
     "Backups"
    ]
   },
   "post": {
    "description": "Add a bucket to back runs up to. Needs an owner or admin signed in with a password confirmed in the last\nten minutes. The secret access key is sealed and never shown again (only its last four characters).",
    "operationId": "create_destination_v1_backups_destinations_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DestinationIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Destination",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/backups/destinations/{dest_id}": {
   "delete": {
    "description": "Delete a destination and its job history. What it already wrote stays in the bucket. Needs a password\nconfirmed in the last ten minutes.",
    "operationId": "delete_destination_v1_backups_destinations__dest_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "dest_id",
      "required": true,
      "schema": {
       "title": "Dest Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Destination",
    "tags": [
     "Backups"
    ]
   },
   "get": {
    "operationId": "get_destination_v1_backups_destinations__dest_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "dest_id",
      "required": true,
      "schema": {
       "title": "Dest Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Destination",
    "tags": [
     "Backups"
    ]
   },
   "patch": {
    "description": "Change a destination. Its name, evidence, turning footage off and turning it on or off need backups.edit;\nnew credentials, a new provider, bucket, prefix, region or endpoint (where the data goes) and turning footage\non need backups.manage, with a password confirmed in the last ten minutes. Leave secret_access_key out to\nkeep it.",
    "operationId": "patch_destination_v1_backups_destinations__dest_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "dest_id",
      "required": true,
      "schema": {
       "title": "Dest Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DestinationPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Patch Destination",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/backups/destinations/{dest_id}/backfill": {
   "post": {
    "description": "Back up runs that finished done since `since` (at most 500 a call, oldest first; has_more and next_since\nsay where to go on). Runs already backed up to this destination are skipped unless redo is true.",
    "operationId": "backfill_v1_backups_destinations__dest_id__backfill_post",
    "parameters": [
     {
      "in": "path",
      "name": "dest_id",
      "required": true,
      "schema": {
       "title": "Dest Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BackfillIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "202": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Backfill",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/backups/destinations/{dest_id}/test": {
   "post": {
    "description": "Write a small object under the destination's prefix and delete it again. Returns which steps worked and,\nwhen one did not, a code and a plain message.",
    "operationId": "test_destination_v1_backups_destinations__dest_id__test_post",
    "parameters": [
     {
      "in": "path",
      "name": "dest_id",
      "required": true,
      "schema": {
       "title": "Dest Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Test Destination",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/backups/jobs": {
   "get": {
    "description": "Backup jobs, newest first: status, attempts, objects, bytes and a sanitized error.",
    "operationId": "list_jobs_v1_backups_jobs_get",
    "parameters": [
     {
      "in": "query",
      "name": "destination",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Destination"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(queued|running|done|failed)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Jobs",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/badges/{token}.svg": {
   "get": {
    "description": "A README status badge. No credentials: the token is an HMAC bound to the badge id.",
    "operationId": "badge_v1_badges__token__svg_get",
    "parameters": [
     {
      "in": "path",
      "name": "token",
      "required": true,
      "schema": {
       "title": "Token",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "image/svg+xml": {}
      },
      "description": "A status badge"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Badge",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/ci/badges": {
   "get": {
    "operationId": "list_badges_v1_ci_badges_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Badges",
    "tags": [
     "CI"
    ]
   },
   "post": {
    "description": "A status badge for a README. It shows one word (passing, failing, audited, running...) for the newest run\nof the program, and of the branch if given; no counts, no names, and no page becomes public.",
    "operationId": "create_badge_v1_ci_badges_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BadgeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Badge",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/ci/badges/{badge_id}": {
   "delete": {
    "description": "Revoke a badge. Its URL keeps answering, with 'revoked'.",
    "operationId": "revoke_badge_v1_ci_badges__badge_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "badge_id",
      "required": true,
      "schema": {
       "title": "Badge Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke Badge",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/ci/cli.pyz": {
   "get": {
    "description": "Download the CLI. No credentials: it holds only the CLI's Python files, is built the same way every\ntime, and its SHA-256 is in X-Truehands-CLI-SHA256 (and on the Integrations page) for pinning.",
    "operationId": "cli_pyz_v1_ci_cli_pyz_get",
    "responses": {
     "200": {
      "content": {
       "application/octet-stream": {}
      },
      "description": "The truehands CLI as one zipapp: `python3 truehands.pyz --help`."
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Cli Pyz",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/ci/pipelines": {
   "get": {
    "description": "Every pipeline that reports in, from runs whose meta names a CI provider, grouped by program, provider\nand repository, with its last run, recent health and whether it missed its usual schedule.",
    "operationId": "list_pipelines_v1_ci_pipelines_get",
    "parameters": [
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "days",
      "required": false,
      "schema": {
       "default": 30,
       "maximum": 90,
       "minimum": 1,
       "title": "Days",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Pipelines",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/ci/templates": {
   "get": {
    "description": "Copy-ready CI files for one provider, filled with this server's address and the program. Never a key:\nthe secrets to add are listed separately.",
    "operationId": "templates_v1_ci_templates_get",
    "parameters": [
     {
      "in": "query",
      "name": "provider",
      "required": true,
      "schema": {
       "maxLength": 20,
       "title": "Provider",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Templates",
    "tags": [
     "CI"
    ]
   }
  },
  "/v1/compare": {
   "get": {
    "description": "What changed between two finished runs. Clips pair by upload (same file), then by video stream hash.",
    "operationId": "compare_v1_compare_get",
    "parameters": [
     {
      "in": "query",
      "name": "base",
      "required": true,
      "schema": {
       "maxLength": 64,
       "title": "Base",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "target",
      "required": true,
      "schema": {
       "maxLength": 64,
       "title": "Target",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Compare",
    "tags": [
     "Compare"
    ]
   }
  },
  "/v1/compare/clips": {
   "get": {
    "operationId": "compare_clips_v1_compare_clips_get",
    "parameters": [
     {
      "in": "query",
      "name": "base",
      "required": true,
      "schema": {
       "maxLength": 64,
       "title": "Base",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "target",
      "required": true,
      "schema": {
       "maxLength": 64,
       "title": "Target",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "change",
      "required": false,
      "schema": {
       "default": "changed",
       "pattern": "^(worse|better|reasons_changed|unchanged|only_base|only_target|changed|all)$",
       "title": "Change",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "from",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|review|reject)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "From"
      }
     },
     {
      "in": "query",
      "name": "to",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|review|reject)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "To"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "pattern": "^(json|csv)$",
       "title": "Format",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Compare Clips",
    "tags": [
     "Compare"
    ]
   }
  },
  "/v1/contributor-rings": {
   "get": {
    "description": "Groups of contributors linked by copied footage, re-submitted files or a shared device, with at least one\ncopier. Sorted by the dollars payable to their copiers.",
    "operationId": "list_rings_v1_contributor_rings_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Rings",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors": {
   "get": {
    "description": "The organisation's contributors ranked by risk-v1 (org-wide, all-time). Program and date filters narrow\nthe totals, never the score. `format=csv` exports every matching row (notes are never exported).",
    "operationId": "list_contributors_v1_contributors_get",
    "parameters": [
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[A-Za-z0-9_-]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "band",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "high",
          "medium",
          "low"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Band"
      }
     },
     {
      "in": "query",
      "name": "held",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Held"
      }
     },
     {
      "in": "query",
      "name": "watch",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Watch"
      }
     },
     {
      "in": "query",
      "name": "linked",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "type": "null"
        }
       ],
       "title": "Linked"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[A-Za-z0-9_-]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Since"
      }
     },
     {
      "in": "query",
      "name": "until",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Until"
      }
     },
     {
      "in": "query",
      "name": "sort",
      "required": false,
      "schema": {
       "default": "score",
       "enum": [
        "score",
        "payable_usd",
        "clips",
        "submitted_s",
        "flagged_share",
        "last_seen",
        "contributor_id"
       ],
       "title": "Sort",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "dir",
      "required": false,
      "schema": {
       "default": "desc",
       "enum": [
        "asc",
        "desc"
       ],
       "title": "Dir",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "enum": [
        "json",
        "csv"
       ],
       "title": "Format",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Contributors",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}": {
   "get": {
    "description": "One contributor across every run: score with the reasons for it, totals, history, devices and links.",
    "operationId": "get_contributor_v1_contributors__contributor_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Contributor",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/clips": {
   "get": {
    "description": "Every clip this contributor submitted, across runs. A clip audited again in a later run is listed in both,\nand only the latest counts (the others are `superseded`).",
    "operationId": "contributor_clips_v1_contributors__contributor_id__clips_get",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "enum": [
          "accept",
          "partial",
          "review",
          "reject",
          "flagged"
         ],
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[A-Za-z0-9_-]{1,64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "reason",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-z_]{1,48}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Reason"
      }
     },
     {
      "in": "query",
      "name": "include_superseded",
      "required": false,
      "schema": {
       "default": true,
       "title": "Include Superseded",
       "type": "boolean"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "enum": [
        "json",
        "csv"
       ],
       "title": "Format",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Contributor Clips",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/erase": {
   "post": {
    "description": "Erase one contributor's data for a data-subject request (erasure.py): their footage, frames and\ncopy-detection memory are deleted; their ids become a random token in every record, so totals still add up;\nnotes about them go. Owners only, signed in with a password confirmed in the last ten minutes; written to\nthe audit log. A request limited to some programs may erase only a contributor whose every clip is in them.\n`dry_run` returns the receipt of what would change, changing nothing. Answers the receipt.",
    "operationId": "erase_contributor_v1_contributors__contributor_id__erase_post",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EraseIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Erase Contributor",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/hold": {
   "post": {
    "description": "Hold a contributor's payouts org-wide. Verdicts and payable time do not change. Holding again returns the\nexisting hold (200, created: false).",
    "operationId": "hold_v1_contributors__contributor_id__hold_post",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/HoldIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Hold",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/release": {
   "post": {
    "description": "Release a hold. Only an owner or admin signed in to the console can, and every release needs a note.",
    "operationId": "release_v1_contributors__contributor_id__release_post",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__contributors_risk__ReleaseIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Release",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/timeline": {
   "get": {
    "description": "Watch, hold, release and export events for this contributor from the audit log, newest first.",
    "operationId": "contributor_timeline_v1_contributors__contributor_id__timeline_get",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Contributor Timeline",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/contributors/{contributor_id}/watch": {
   "put": {
    "description": "Put a contributor on the watchlist (or take them off). Watching changes nothing but attention.",
    "operationId": "set_watch_v1_contributors__contributor_id__watch_put",
    "parameters": [
     {
      "in": "path",
      "name": "contributor_id",
      "required": true,
      "schema": {
       "title": "Contributor Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WatchIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Set Watch",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/delivery/summary": {
   "get": {
    "operationId": "summary_v1_delivery_summary_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Summary",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/events": {
   "get": {
    "description": "The org's events in order (per-org sequence). Poll with after=<last sequence> instead of receiving\nwebhooks, for example from behind a firewall. tail=true returns the newest `limit` events instead.",
    "operationId": "list_events_v1_events_get",
    "parameters": [
     {
      "in": "query",
      "name": "after",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "After",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "type",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-z_]{1,40}(\\.[a-z_]{1,40}){0,2}(\\.\\*)?$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "tail",
      "required": false,
      "schema": {
       "default": false,
       "title": "Tail",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Events",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/exports": {
   "get": {
    "operationId": "list_exports_v1_exports_get",
    "parameters": [
     {
      "in": "query",
      "name": "kind",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(manifest|payout)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Exports",
    "tags": [
     "Delivery"
    ]
   },
   "post": {
    "description": "Build a manifest of a program's clips (default: accepted and partial) as JSONL, CSV or Parquet, with a\nsidecar listing every file's sha256. dry_run returns counts and a sample and writes nothing.",
    "operationId": "create_export_v1_exports_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ExportIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "202": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Export",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/exports/{export_id}": {
   "delete": {
    "operationId": "delete_export_v1_exports__export_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "export_id",
      "required": true,
      "schema": {
       "title": "Export Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Export",
    "tags": [
     "Delivery"
    ]
   },
   "get": {
    "operationId": "get_export_v1_exports__export_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "export_id",
      "required": true,
      "schema": {
       "title": "Export Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Export",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/exports/{export_id}/download": {
   "get": {
    "description": "A one-hour signed link to one file of the export (302, or {url} with redirect=false). Audited.",
    "operationId": "download_export_v1_exports__export_id__download_get",
    "parameters": [
     {
      "in": "path",
      "name": "export_id",
      "required": true,
      "schema": {
       "title": "Export Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "file",
      "required": true,
      "schema": {
       "maxLength": 300,
       "title": "File",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "redirect",
      "required": false,
      "schema": {
       "default": true,
       "title": "Redirect",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Download Export",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/healthz": {
   "get": {
    "operationId": "healthz_v1_healthz_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Healthz",
    "tags": [
     "Health"
    ]
   }
  },
  "/v1/holds": {
   "get": {
    "description": "Active payout holds with the dollars in scope: the check before payroll. History is in the audit log.",
    "operationId": "list_holds_v1_holds_get",
    "parameters": [
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "enum": [
        "json",
        "csv"
       ],
       "title": "Format",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Holds",
    "tags": [
     "Contributors"
    ]
   },
   "post": {
    "description": "Hold up to 200 contributors, or the copiers of one ring (sources are the victims, so they are not held).",
    "operationId": "bulk_hold_v1_holds_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkHoldIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Bulk Hold",
    "tags": [
     "Contributors"
    ]
   }
  },
  "/v1/library/index": {
   "get": {
    "description": "The organisation's memory: what is in it, how often it catches copies, and the most re-used originals.",
    "operationId": "library_index_v1_library_index_get",
    "parameters": [
     {
      "in": "query",
      "name": "weeks",
      "required": false,
      "schema": {
       "default": 12,
       "maximum": 52,
       "minimum": 1,
       "title": "Weeks",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Library Index",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/library/index/runs": {
   "get": {
    "description": "Runs whose clips are in memory, newest first.",
    "operationId": "library_index_runs_v1_library_index_runs_get",
    "parameters": [
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 25,
       "maximum": 100,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Library Index Runs",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/library/index/runs/{run_id}": {
   "delete": {
    "description": "Remove a run from memory: later runs are no longer compared with it. Its past verdicts stay. Owners and\nadmins signed in to the console only; recorded in the audit log.",
    "operationId": "remove_index_run_v1_library_index_runs__run_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Remove Index Run",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/library/sets": {
   "get": {
    "description": "Reference footage every clip is compared with. Today: the public set curated by Truehands (read-only).",
    "operationId": "library_sets_v1_library_sets_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Library Sets",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/links/accept": {
   "post": {
    "description": "Accept an invite (creates the account) or a password link (sets the password and ends old sessions),\nthen sign in with the new password.",
    "operationId": "accept_link_v1_links_accept_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__team_admin__AcceptIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Accept Link",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/links/preview": {
   "post": {
    "description": "What an invite or password link is for, before the person sets a password.",
    "operationId": "preview_link_v1_links_preview_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__team_admin__LinkIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Preview Link",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/me": {
   "get": {
    "operationId": "me_v1_me_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Me",
    "tags": [
     "Auth"
    ]
   }
  },
  "/v1/me/keys": {
   "get": {
    "description": "Your active key pairs (not revoked, not expired), newest first. Never a secret: `hint` is the last four\ncharacters of the TH-Secret-Key.",
    "operationId": "my_keys_v1_me_keys_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "My Keys",
    "tags": [
     "Keys"
    ]
   },
   "post": {
    "description": "Make a key pair for scripts and CI. th_secret_key is shown once and never stored. Needs a person signed in\nto the console with a password confirmed in the last ten minutes (403 step_up_required otherwise); keys and\nsessions opened with one get 403 humans_only and service accounts 403 service_account_forbidden. At most\nten active pairs per user (409 too_many_keys). `permissions` limits the pair (422 invalid_scope for a\npermission you do not hold, or one a key cannot use); `programs` limits it to some of the programs you may\nsee (422 invalid_programs).",
    "operationId": "create_my_key_v1_me_keys_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/KeyPairIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create My Key",
    "tags": [
     "Keys"
    ]
   }
  },
  "/v1/me/keys/{key_id}": {
   "delete": {
    "description": "Revoke one of your key pairs at once; scripts using it get 401. Needs a person signed in with a password.",
    "operationId": "revoke_my_key_v1_me_keys__key_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "key_id",
      "required": true,
      "schema": {
       "title": "Key Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke My Key",
    "tags": [
     "Keys"
    ]
   },
   "patch": {
    "description": "Change one of your key pair's limits: `permissions` and `programs`, each a list or null for no limit; a\nfield left out stays as it is. Narrowing needs a person signed in with a password; widening (adding to a\nlist, or removing a limit) needs keys.create and a password confirmed in the last ten minutes, like making\na key (403 step_up_required). A key never edits a key (403 humans_only). The same checks as making a key\napply: 422 invalid_scope or invalid_programs. Sessions opened with the key get the new limits at once.\nRecorded in the audit log with the limits before and after.",
    "operationId": "edit_my_key_v1_me_keys__key_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "key_id",
      "required": true,
      "schema": {
       "title": "Key Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__keys__KeyLimitsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Edit My Key",
    "tags": [
     "Keys"
    ]
   }
  },
  "/v1/me/password": {
   "post": {
    "description": "Change your password. Ends your other sessions. Refused (409 sso_required) when your organisation requires\nsingle sign-on and you are not an owner.",
    "operationId": "change_password_v1_me_password_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PasswordChangeIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Change Password",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/media/{token}": {
   "get": {
    "operationId": "media_v1_media__token__get",
    "parameters": [
     {
      "in": "path",
      "name": "token",
      "required": true,
      "schema": {
       "title": "Token",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Media",
    "tags": [
     "Media"
    ]
   }
  },
  "/v1/org/retention": {
   "get": {
    "description": "How many days footage is kept after it was last used (its upload, or the end of the latest run that used\nit). Uploaded videos and sensor logs, evidence frames, working copies and reports are deleted then; runs,\nverdicts, reasons, review decisions, payouts and the audit log are kept. `max_days` is the server's value,\nwhich is also what an organisation gets unless its owner shortened it.",
    "operationId": "get_retention_v1_org_retention_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Retention",
    "tags": [
     "Organisation"
    ]
   },
   "put": {
    "description": "Shorten (or restore, up to the server's value) how long this organisation's footage is kept. Owners only,\nsigned in to the console with a password confirmed in the last ten minutes; recorded in the audit log.\nFootage already past the new value is deleted at the next sweep (within about ten minutes).",
    "operationId": "put_retention_v1_org_retention_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RetentionIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Put Retention",
    "tags": [
     "Organisation"
    ]
   }
  },
  "/v1/payout-batches": {
   "get": {
    "operationId": "list_batches_v1_payout_batches_get",
    "parameters": [
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "state",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(ready|approved|void)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "State"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Batches",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/payout-batches/{batch_id}": {
   "get": {
    "description": "The batch, recomputed in memory: stale=true when verdicts in the window changed since it was hashed.",
    "operationId": "get_batch_v1_payout_batches__batch_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "batch_id",
      "required": true,
      "schema": {
       "title": "Batch Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Batch",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/payout-batches/{batch_id}/approvals": {
   "post": {
    "description": "Approve the exact sha256 you reviewed. Needs an owner or admin signed in to the console; the second\napproval, by a different person, locks the clips and writes the payout files.",
    "operationId": "approve_batch_v1_payout_batches__batch_id__approvals_post",
    "parameters": [
     {
      "in": "path",
      "name": "batch_id",
      "required": true,
      "schema": {
       "title": "Batch Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ApprovalIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Approve Batch",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/payout-batches/{batch_id}/items": {
   "get": {
    "operationId": "batch_items_v1_payout_batches__batch_id__items_get",
    "parameters": [
     {
      "in": "path",
      "name": "batch_id",
      "required": true,
      "schema": {
       "title": "Batch Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "in": "query",
      "name": "bucket",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(paid|held_review|held_run|held_contributor|blocked|already_paid)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Bucket"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 200,
       "maximum": 1000,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Batch Items",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/payout-batches/{batch_id}/recompute": {
   "post": {
    "operationId": "recompute_batch_v1_payout_batches__batch_id__recompute_post",
    "parameters": [
     {
      "in": "path",
      "name": "batch_id",
      "required": true,
      "schema": {
       "title": "Batch Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Recompute Batch",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/payout-batches/{batch_id}/void": {
   "post": {
    "operationId": "void_batch_v1_payout_batches__batch_id__void_post",
    "parameters": [
     {
      "in": "path",
      "name": "batch_id",
      "required": true,
      "schema": {
       "title": "Batch Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/VoidIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Void Batch",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/pilots": {
   "get": {
    "description": "Pilots of your organisation whose every program you may see, newest period first, with spot-check counts.",
    "operationId": "list_pilots_v1_pilots_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Pilots",
    "tags": [
     "Pilots"
    ]
   },
   "post": {
    "description": "Set up a pilot: a name, programs, start and end dates (UTC, inclusive), the success criteria agreed before\nthe start and the customer's contact. Owners and admins signed in to the console.",
    "operationId": "create_pilot_v1_pilots_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PilotIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Pilot",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}": {
   "delete": {
    "description": "Delete a pilot. Its open spot checks leave the review queue; answers stay in the audit trail.",
    "operationId": "delete_pilot_v1_pilots__pilot_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Pilot",
    "tags": [
     "Pilots"
    ]
   },
   "get": {
    "description": "One pilot with its spot-check draws.",
    "operationId": "get_pilot_v1_pilots__pilot_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Pilot",
    "tags": [
     "Pilots"
    ]
   },
   "patch": {
    "description": "Change a pilot. Its programs cannot change once it has spot checks. Changing the success criteria after the\nstart date is recorded, and the report says so.",
    "operationId": "update_pilot_v1_pilots__pilot_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PilotPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Update Pilot",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}/report": {
   "get": {
    "description": "The report, computed now: footage audited, findings by reason, pay the verdicts would have blocked or held,\nreview outcomes with the share of flags confirmed, spot checks with the miss rate (Wilson 95% intervals),\nmanual review time, examples and notes on what the numbers cannot say.",
    "operationId": "pilot_report_v1_pilots__pilot_id__report_get",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Pilot Report",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}/report.html": {
   "get": {
    "description": "The report as a printable HTML file (audited).",
    "operationId": "pilot_export_v1_pilots__pilot_id__report_html_get",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     },
     {
      "description": "Send as an attachment instead of inline.",
      "in": "query",
      "name": "download",
      "required": false,
      "schema": {
       "default": false,
       "description": "Send as an attachment instead of inline.",
       "title": "Download",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "text/html": {
        "schema": {
         "type": "string"
        }
       }
      },
      "description": "One standalone HTML file: no scripts or outside requests, evidence frames embedded, laid out to print to PDF on A4 or Letter."
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Pilot Export",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}/spot-checks": {
   "get": {
    "description": "The pilot's spot checks (open first), its draws with their seeds, and the reasons a miss can give.",
    "operationId": "list_spot_checks_v1_pilots__pilot_id__spot_checks_get",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "answer",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(open|ok|missed|cancelled)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Answer"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Spot Checks",
    "tags": [
     "Pilots"
    ]
   },
   "post": {
    "description": "Draw a random sample of the clips the engine accepted in the pilot into the review queue as spot checks,\nnever a clip the pilot sampled before. Returns the draw: its seed, how many clips were eligible, a sha256 of\ntheir list and how many were picked from each program.",
    "operationId": "draw_spot_checks_v1_pilots__pilot_id__spot_checks_post",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DrawIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Draw Spot Checks",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}/spot-checks/{item_id}/answer": {
   "post": {
    "description": "Answer a spot check: ok, or missed with a reason and a note. The clip's verdict and pay do not change. With\nopen_review a miss also sends the clip to a normal review, which can.",
    "operationId": "answer_spot_check_v1_pilots__pilot_id__spot_checks__item_id__answer_post",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AnswerIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Answer Spot Check",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/pilots/{pilot_id}/spot-checks/{item_id}/undo": {
   "post": {
    "description": "Take back your own answer within two minutes. The spot check is open again and yours to answer.",
    "operationId": "undo_spot_check_v1_pilots__pilot_id__spot_checks__item_id__undo_post",
    "parameters": [
     {
      "in": "path",
      "name": "pilot_id",
      "required": true,
      "schema": {
       "title": "Pilot Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Undo Spot Check",
    "tags": [
     "Pilots"
    ]
   }
  },
  "/v1/policies": {
   "get": {
    "description": "Every program with its active policy, versions waiting for approval and recent gate results.",
    "operationId": "list_policies_v1_policies_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Policies",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/policy-schema": {
   "get": {
    "description": "Reason codes and their allowed consequences, thresholds with their engine limits, gate metrics.",
    "operationId": "policy_schema_v1_policy_schema_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Policy Schema",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs": {
   "get": {
    "description": "Your organisation's programs; a member or key limited to some programs sees only those.",
    "operationId": "list_programs_v1_programs_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Programs",
    "tags": [
     "Programs"
    ]
   },
   "post": {
    "operationId": "create_program_v1_programs_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ProgramIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Program",
    "tags": [
     "Programs"
    ]
   }
  },
  "/v1/programs/{slug}": {
   "get": {
    "operationId": "get_program_v1_programs__slug__get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Program",
    "tags": [
     "Programs"
    ]
   }
  },
  "/v1/programs/{slug}/payout-batches": {
   "post": {
    "description": "Compute a payout batch for clips submitted in [window_start, window_end), freeze the rate and hash it.\nIt needs two approvals by different people before any payout file exists.",
    "operationId": "create_batch_v1_programs__slug__payout_batches_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BatchIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Batch",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/programs/{slug}/policies": {
   "get": {
    "description": "A program's policy versions, newest first, each judged against the active one.",
    "operationId": "list_versions_v1_programs__slug__policies_get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Versions",
    "tags": [
     "Policies"
    ]
   },
   "post": {
    "description": "Store a policy as a draft. Pushing a policy that is already stored returns that version (200), so a CI\njob can push on every commit. Nothing takes effect until a person activates it.",
    "operationId": "create_draft_v1_programs__slug__policies_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DraftIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Draft",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/active": {
   "get": {
    "description": "The policy in force for new runs (version 0 is the Truehands default).",
    "operationId": "get_active_v1_programs__slug__policies_active_get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Active",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/simulate": {
   "post": {
    "description": "Re-decide recent finished runs of this program with a candidate policy, against the active one.\nSynchronous and bounded: at most 20 runs and 50,000 clips. Reads only stored findings, never media.",
    "operationId": "simulate_v1_programs__slug__policies_simulate_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SimulateIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Simulate",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/validate": {
   "post": {
    "description": "Lint a policy and show what it would change against the active one. Never writes anything.",
    "operationId": "validate_policy_v1_programs__slug__policies_validate_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PolicyIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Validate Policy",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/{version}": {
   "get": {
    "operationId": "get_version_v1_programs__slug__policies__version__get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "version",
      "required": true,
      "schema": {
       "title": "Version",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Version",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/{version}/activate": {
   "post": {
    "description": "Make a version the program's active policy. Only a person signed in to the console, as owner or admin.\nTightening takes effect at once; loosening needs a simulation against the active version from the last\n7 days and two different people (the first approval leaves the version pending).",
    "operationId": "activate_v1_programs__slug__policies__version__activate_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "version",
      "required": true,
      "schema": {
       "title": "Version",
       "type": "integer"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ActivateIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Activate",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/policies/{version}/diff": {
   "get": {
    "description": "What changes from `against` (the active version, or a version number) to this version.",
    "operationId": "diff_version_v1_programs__slug__policies__version__diff_get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "version",
      "required": true,
      "schema": {
       "title": "Version",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "against",
      "required": false,
      "schema": {
       "default": "active",
       "pattern": "^(active|\\d{1,9})$",
       "title": "Against",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Diff Version",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/programs/{slug}/tasks": {
   "post": {
    "description": "Add tasks to a program, after the ones it has. Additive only: existing tasks never change or disappear,\na task the program already has is left as it is (so a retry adds nothing twice), and runs already made keep\nthe task list they were made with. At most 200 tasks per program (422 too_many_tasks). Returns the program\nwith `added`, the tasks this call added. Needs programs.manage; audited.",
    "operationId": "add_tasks_v1_programs__slug__tasks_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TasksIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Add Tasks",
    "tags": [
     "Programs"
    ]
   }
  },
  "/v1/queue": {
   "get": {
    "description": "Your organisation's run queue: meters, limits, and each queued or running run with position and ETA.",
    "operationId": "queue_v1_queue_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Queue",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/readyz": {
   "get": {
    "description": "Readiness for load balancers: no authentication and no tenant data. 503 lists what is failing.",
    "operationId": "readyz_v1_readyz_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Readyz",
    "tags": [
     "Health"
    ]
   }
  },
  "/v1/review/assign": {
   "post": {
    "operationId": "review_assign_v1_review_assign_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AssignIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Assign",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/bulk": {
   "post": {
    "description": "One decision on up to 200 items in one transaction. dry_run returns the same answer and writes nothing.",
    "operationId": "review_bulk_v1_review_bulk_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BulkIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Bulk",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/decisions": {
   "get": {
    "description": "The decisions ledger. format=csv downloads up to 50,000 rows. Notes only with include_notes=1, which needs\nreview.notes (a person signed in to the console).",
    "operationId": "review_decisions_v1_review_decisions_get",
    "parameters": [
     {
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Since"
      }
     },
     {
      "in": "query",
      "name": "until",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Until"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "reviewer",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Reviewer"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "in": "query",
      "name": "decision",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|reject)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Decision"
      }
     },
     {
      "in": "query",
      "name": "state",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(final|pending_second|overturned|reverted)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "State"
      }
     },
     {
      "in": "query",
      "name": "reason",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Reason"
      }
     },
     {
      "in": "query",
      "name": "bulk_id",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Bulk Id"
      }
     },
     {
      "in": "query",
      "name": "include_notes",
      "required": false,
      "schema": {
       "default": false,
       "title": "Include Notes",
       "type": "boolean"
      }
     },
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "pattern": "^(json|csv)$",
       "title": "Format",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Decisions",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/decisions/{decision_id}/confirm": {
   "post": {
    "description": "Second person: agree to make the decision final, or disagree (with a note) to reopen the item.",
    "operationId": "review_confirm_v1_review_decisions__decision_id__confirm_post",
    "parameters": [
     {
      "in": "path",
      "name": "decision_id",
      "required": true,
      "schema": {
       "title": "Decision Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ConfirmIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Confirm",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/decisions/{decision_id}/revert": {
   "post": {
    "description": "Undo: the reviewer within 2 minutes, or an owner or admin at any time with a note.",
    "operationId": "review_revert_v1_review_decisions__decision_id__revert_post",
    "parameters": [
     {
      "in": "path",
      "name": "decision_id",
      "required": true,
      "schema": {
       "title": "Decision Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/RevertIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Revert",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items": {
   "get": {
    "operationId": "review_items_v1_review_items_get",
    "parameters": [
     {
      "description": "spot: open spot checks of pilots; spot_done: answered ones.",
      "in": "query",
      "name": "tab",
      "required": false,
      "schema": {
       "default": "open",
       "description": "spot: open spot checks of pilots; spot_done: answered ones.",
       "pattern": "^(mine|unassigned|open|second|decided|cancelled|spot|spot_done)$",
       "title": "Tab",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "reason",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Reason"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "in": "query",
      "name": "sla",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(breached|due_soon|on_track)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sla"
      }
     },
     {
      "in": "query",
      "name": "sort",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(due|pay|age|clip|recent)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sort"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Items",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items/{item_id}": {
   "get": {
    "description": "One item with its idle runs, the clip's decisions, a contributor card and the next item to prefetch.",
    "operationId": "review_item_v1_review_items__item_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Item",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items/{item_id}/claim": {
   "post": {
    "description": "Take or renew a 10-minute lease on an item.",
    "operationId": "review_claim_v1_review_items__item_id__claim_post",
    "parameters": [
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Claim",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items/{item_id}/decisions": {
   "post": {
    "description": "Accept, pay in part or reject one clip. The server computes payable seconds. Paying for a clip with a\nreject-level finding waits for a second person (pending_second). A retried client_id returns the original.",
    "operationId": "review_decide_v1_review_items__item_id__decisions_post",
    "parameters": [
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/DecisionIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Decide",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items/{item_id}/preview": {
   "post": {
    "description": "What a decision would pay, computed by the server. Writes nothing.",
    "operationId": "review_preview_v1_review_items__item_id__preview_post",
    "parameters": [
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PreviewIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Preview",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/items/{item_id}/release": {
   "post": {
    "operationId": "review_release_v1_review_items__item_id__release_post",
    "parameters": [
     {
      "in": "path",
      "name": "item_id",
      "required": true,
      "schema": {
       "title": "Item Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Release",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/next": {
   "post": {
    "description": "Claim the next item to review: assigned to you first, then by SLA and pay at stake. 204 when the queue\nis empty. kind=spot_check claims the next spot check instead.",
    "operationId": "review_next_v1_review_next_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/NextIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Next",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/reasons": {
   "get": {
    "description": "The fixed reasons a reviewer picks from, grouped by decision, with their 1-9 keys.",
    "operationId": "review_reasons_v1_review_reasons_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Reasons",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/reviewers": {
   "get": {
    "description": "People who can be assigned review work: owners, admins and reviewers in your organisation.",
    "operationId": "review_reviewers_v1_review_reviewers_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Reviewers",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/stats": {
   "get": {
    "description": "Reviewer throughput and how often reviewers upheld each engine flag. Reviewers see only their own row.",
    "operationId": "review_stats_v1_review_stats_get",
    "parameters": [
     {
      "in": "query",
      "name": "days",
      "required": false,
      "schema": {
       "default": 30,
       "title": "Days",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Stats",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/review/summary": {
   "get": {
    "description": "Backlog at a glance: open, mine, unassigned, waiting for a second reviewer, SLA and pay held.",
    "operationId": "review_summary_v1_review_summary_get",
    "parameters": [
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Review Summary",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/runs": {
   "get": {
    "operationId": "list_runs_v1_runs_get",
    "parameters": [
     {
      "description": "queued|running|done|failed|cancelled",
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "queued|running|done|failed|cancelled",
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "source",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Source"
      }
     },
     {
      "in": "query",
      "name": "branch",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Branch"
      }
     },
     {
      "in": "query",
      "name": "tag",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Tag"
      }
     },
     {
      "description": "comma-separated, any of (at most 10)",
      "in": "query",
      "name": "tags",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 500,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "comma-separated, any of (at most 10)",
       "title": "Tags"
      }
     },
     {
      "description": "name, tag or run id; an exact clip, contributor, device or upload id (dl://...) also finds runs holding it",
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "name, tag or run id; an exact clip, contributor, device or upload id (dl://...) also finds runs holding it",
       "title": "Q"
      }
     },
     {
      "description": "12h, 7d or ISO 8601 (UTC)",
      "in": "query",
      "name": "since",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "12h, 7d or ISO 8601 (UTC)",
       "title": "Since"
      }
     },
     {
      "description": "12h, 7d or ISO 8601 (UTC)",
      "in": "query",
      "name": "until",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "12h, 7d or ISO 8601 (UTC)",
       "title": "Until"
      }
     },
     {
      "description": "flagged|reject|review|partial|clean",
      "in": "query",
      "name": "has",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "flagged|reject|review|partial|clean",
       "title": "Has"
      }
     },
     {
      "description": "1: runs you started",
      "in": "query",
      "name": "mine",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "1: runs you started",
       "title": "Mine"
      }
     },
     {
      "in": "query",
      "name": "started_by",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Started By"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "description": "only|exclude",
      "in": "query",
      "name": "rerun",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "only|exclude",
       "title": "Rerun"
      }
     },
     {
      "description": "a run id: its root and every re-run",
      "in": "query",
      "name": "lineage",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "a run id: its root and every re-run",
       "title": "Lineage"
      }
     },
     {
      "description": "0-1: paid time flagged at least this share",
      "in": "query",
      "name": "min_flagged",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "0-1: paid time flagged at least this share",
       "title": "Min Flagged"
      }
     },
     {
      "description": "created|flagged|clips|duration, - for descending",
      "in": "query",
      "name": "sort",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "created|flagged|clips|duration, - for descending",
       "title": "Sort"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 25,
       "maximum": 100,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Runs",
    "tags": [
     "Runs"
    ]
   },
   "post": {
    "description": "Queue a run. With an Idempotency-Key header, a retried request (a CI job re-run, a crashed watcher)\nreturns the run it already created instead of auditing and billing the same footage twice.",
    "operationId": "create_run_v1_runs_post",
    "parameters": [
     {
      "in": "header",
      "name": "idempotency-key",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 128,
         "pattern": "^[A-Za-z0-9_.:-]{8,128}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Idempotency-Key"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RunIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Run",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}": {
   "get": {
    "operationId": "get_run_v1_runs__run_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Run",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/archive": {
   "get": {
    "description": "A signed link, valid for five minutes, to a zip of this done run with the backup layout and manifest.json\n(ZIP_STORED, built while it downloads). Results and evidence need runs.view; footage=1 needs\nfootage.download, is written to the audit log, and answers 410 media_deleted once the run's footage is gone.\n302 to the link, or {url, expires_in} with redirect=false.",
    "operationId": "archive_v1_runs__run_id__archive_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "footage",
      "required": false,
      "schema": {
       "default": 0,
       "maximum": 1,
       "minimum": 0,
       "title": "Footage",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "evidence",
      "required": false,
      "schema": {
       "default": 1,
       "maximum": 1,
       "minimum": 0,
       "title": "Evidence",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "redirect",
      "required": false,
      "schema": {
       "default": true,
       "title": "Redirect",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Archive",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/runs/{run_id}/attempts": {
   "get": {
    "operationId": "run_attempts_v1_runs__run_id__attempts_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Attempts",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/backup": {
   "post": {
    "description": "Back this done run up now, to every enabled destination or to `destination_id`. A backup already queued\nfor it is reused (and goes now if it was waiting to retry).",
    "operationId": "backup_run_v1_runs__run_id__backup_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/RunBackupIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "202": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Backup Run",
    "tags": [
     "Backups"
    ]
   }
  },
  "/v1/runs/{run_id}/baseline": {
   "get": {
    "description": "The run to compare this one with: its parent for a re-run, else the newest earlier finished run of the\nsame program (same branch first).",
    "operationId": "baseline_v1_runs__run_id__baseline_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Baseline",
    "tags": [
     "Compare"
    ]
   }
  },
  "/v1/runs/{run_id}/cancel": {
   "post": {
    "operationId": "cancel_run_v1_runs__run_id__cancel_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Cancel Run",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/clips": {
   "get": {
    "description": "The run's clips. Without `limit`, every clip, the most severe first (as before). With `limit`, a page of\nat most that many in clip id order and `next_cursor`, the cursor of the next page (null at the end); pages\nstay stable while verdicts change. With `detail=true`, each clip also carries the task, reasons with their\nevidence, `measure`, `idle` (with `segments`), `active_seconds`, `imu`, `faces` and `has_features`.",
    "operationId": "list_run_clips_v1_runs__run_id__clips_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(flagged|accept|partial|review|reject|pending)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "description": "true: each clip carries its detail as GET /v1/runs/{run_id}/clips/{clip_id} returns it, without the signed media links, the log lines and prev/next/position.",
      "in": "query",
      "name": "detail",
      "required": false,
      "schema": {
       "default": false,
       "description": "true: each clip carries its detail as GET /v1/runs/{run_id}/clips/{clip_id} returns it, without the signed media links, the log lines and prev/next/position.",
       "title": "Detail",
       "type": "boolean"
      }
     },
     {
      "description": "A page of at most this many clips, in clip id order, with next_cursor. Without it, every clip, the most severe first.",
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maximum": 500,
         "minimum": 1,
         "type": "integer"
        },
        {
         "type": "null"
        }
       ],
       "description": "A page of at most this many clips, in clip id order, with next_cursor. Without it, every clip, the most severe first.",
       "title": "Limit"
      }
     },
     {
      "description": "The next_cursor of the previous page (needs limit).",
      "in": "query",
      "name": "cursor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "The next_cursor of the previous page (needs limit).",
       "title": "Cursor"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Run Clips",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}": {
   "get": {
    "operationId": "get_run_clip_v1_runs__run_id__clips__clip_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Run Clip",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/cross-run": {
   "get": {
    "description": "The earlier clip this one matches, with evidence frames and both videos (signed links).",
    "operationId": "clip_cross_run_v1_runs__run_id__clips__clip_id__cross_run_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Clip Cross Run",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/decision": {
   "get": {
    "description": "How the policy decided one clip: every rule that looked at it, observed value against threshold, and\nwhat the Truehands default would have said.",
    "operationId": "clip_decision_v1_runs__run_id__clips__clip_id__decision_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Clip Decision",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/features": {
   "get": {
    "description": "The engine's frame embeddings of one clip, at 2 fps, from the organisation's feature cache: an .npz with\n`embeddings` (float16, [n, 512], unit length), `t` (float32 timestamps in seconds) and `model` (a 0-d string\narray naming the model). Numbers only, no pixels. 404 for an unknown clip (or one outside your programs),\n404 no_features for a clip the engine never analysed (refused at intake), 409 run_not_done before the run\nends without them, and 410 features_expired once the cache entry is gone (a contributor's erasure, the\norganisation's purge). Needs runs.view.",
    "operationId": "clip_features_v1_runs__run_id__clips__clip_id__features_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/octet-stream": {
        "schema": {
         "format": "binary",
         "type": "string"
        }
       }
      },
      "description": "An .npz file: `embeddings` (float16, [n, 512]), `t` (float32 seconds) and `model` (a 0-d string array naming the model)."
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Clip Features",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/history": {
   "get": {
    "description": "The contributor's record across your organisation's counted runs, their device, and every other run\nholding this same file.",
    "operationId": "clip_history_v1_runs__run_id__clips__clip_id__history_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Clip History",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/reopen": {
   "post": {
    "description": "Send a decided clip back to the review queue.",
    "operationId": "reopen_clip_v1_runs__run_id__clips__clip_id__reopen_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReopenIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Reopen Clip",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/runs/{run_id}/clips/{clip_id}/review-history": {
   "get": {
    "description": "The engine verdict, then every reopen, decision, confirmation, overturn and revert on the clip.",
    "operationId": "clip_history_v1_runs__run_id__clips__clip_id__review_history_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Clip History",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/runs/{run_id}/cross-run": {
   "get": {
    "description": "What this run was compared with in the organisation's memory, and the clips seen before.",
    "operationId": "run_cross_run_v1_runs__run_id__cross_run_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Cross Run",
    "tags": [
     "Cross-run memory"
    ]
   }
  },
  "/v1/runs/{run_id}/events": {
   "get": {
    "description": "Follow a run live: verdicts as the engine decides them, footage-weighted progress, ETA and the engine\nlog. Needs runs.view. Built for `truehands watch` and the console's Run page.",
    "operationId": "run_events_v1_runs__run_id__events_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "description": "Log cursor (run_logs seq); default 0",
      "in": "query",
      "name": "after",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Log cursor (run_logs seq); default 0",
       "title": "After"
      }
     },
     {
      "description": "Also send every engine log line as `log` events",
      "in": "query",
      "name": "log",
      "required": false,
      "schema": {
       "default": false,
       "description": "Also send every engine log line as `log` events",
       "title": "Log",
       "type": "boolean"
      }
     },
     {
      "description": "Resume cursor; wins over ?after=",
      "in": "header",
      "name": "last-event-id",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "Resume cursor; wins over ?after=",
       "title": "Last-Event-Id"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "text/event-stream": {
        "schema": {
         "type": "string"
        }
       }
      },
      "description": "Server-Sent Events: `snapshot`, then `clip`, `progress` and (with log=1) `log` events, then `done`. Connections close after 15 minutes; reconnect with Last-Event-ID."
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Events",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/gates": {
   "get": {
    "description": "The run's quality gate: overall result, each gate's observed value and threshold, and the payout hold.\nWorks with an access key, for any CI system.",
    "operationId": "run_gates_v1_runs__run_id__gates_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Gates",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/runs/{run_id}/logs": {
   "get": {
    "operationId": "run_logs_v1_runs__run_id__logs_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "after",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "After",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 500,
       "maximum": 2000,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Logs",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/overlap": {
   "get": {
    "description": "Clips of this run already audited in an earlier run that counts for payouts (same file or same video\nstream). Information only: it never changes a verdict.",
    "operationId": "overlap_v1_runs__run_id__overlap_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Overlap",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/payout-hold/release": {
   "post": {
    "description": "Release a run's payout hold after a person has checked it. Verdicts are left as they are.",
    "operationId": "release_hold_v1_runs__run_id__payout_hold_release_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__policies__ReleaseIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Release Hold",
    "tags": [
     "Policies"
    ]
   }
  },
  "/v1/runs/{run_id}/priority": {
   "post": {
    "description": "Reorder a queued run within your organisation's queue.",
    "operationId": "set_priority_v1_runs__run_id__priority_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PriorityIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Set Priority",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/promote": {
   "post": {
    "description": "Make a finished re-run the one that counts for payouts; every other run of its lineage stops counting.\nOwners and admins only, signed in to the console.",
    "operationId": "promote_v1_runs__run_id__promote_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PromoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Promote",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/rerun": {
   "post": {
    "description": "Audit the same clips again with the current engine, reference library and policy. Free, and not in\npayouts until a person promotes it.",
    "operationId": "rerun_v1_runs__run_id__rerun_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RerunIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Rerun",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/retry": {
   "post": {
    "description": "Queue a failed run again under the same id, keeping its attempt history. Done runs give 409.",
    "operationId": "retry_run_v1_runs__run_id__retry_post",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Retry Run",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/runs/{run_id}/review": {
   "get": {
    "description": "Whether people have finished reviewing a run, and whether its payout can go ahead. CI can poll this.",
    "operationId": "run_review_v1_runs__run_id__review_get",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Review",
    "tags": [
     "Review"
    ]
   }
  },
  "/v1/runs/{run_id}/tags": {
   "put": {
    "description": "Add and remove run tags (at most 20 per run). Removing the run's original `tag` clears it.",
    "operationId": "set_tags_v1_runs__run_id__tags_put",
    "parameters": [
     {
      "in": "path",
      "name": "run_id",
      "required": true,
      "schema": {
       "title": "Run Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/TagsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Set Tags",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/schedules": {
   "get": {
    "operationId": "list_schedules_v1_schedules_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Schedules",
    "tags": [
     "Automation"
    ]
   },
   "post": {
    "description": "A cron schedule in a time zone that flushes a watcher, or sweeps a program: re-audits the clips of the\nlast window_days (1-31) as one low-priority run, to catch copies across batches. Sweeps are not billed.",
    "operationId": "create_schedule_v1_schedules_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ScheduleIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Schedule",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/schedules/preview": {
   "get": {
    "description": "Describe a cron expression and show its next five fire times in the zone, or 422 with invalid_cron,\ninterval_too_short or unknown_tz.",
    "operationId": "preview_schedule_v1_schedules_preview_get",
    "parameters": [
     {
      "in": "query",
      "name": "cron",
      "required": true,
      "schema": {
       "maxLength": 120,
       "title": "Cron",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "tz",
      "required": false,
      "schema": {
       "default": "UTC",
       "maxLength": 64,
       "title": "Tz",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Preview Schedule",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/schedules/{ref}": {
   "delete": {
    "operationId": "delete_schedule_v1_schedules__ref__delete",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Schedule",
    "tags": [
     "Automation"
    ]
   },
   "get": {
    "operationId": "get_schedule_v1_schedules__ref__get",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Schedule",
    "tags": [
     "Automation"
    ]
   },
   "patch": {
    "operationId": "patch_schedule_v1_schedules__ref__patch",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SchedulePatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Patch Schedule",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/schedules/{ref}/run": {
   "post": {
    "description": "Fire a schedule now. The current minute is its slot, so pressing Run now twice makes one run.",
    "operationId": "run_schedule_v1_schedules__ref__run_post",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Run Schedule",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/session": {
   "delete": {
    "operationId": "sign_out_v1_session_delete",
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Sign Out",
    "tags": [
     "Auth"
    ]
   },
   "post": {
    "description": "Open a console session with a password (a person) or a key (view-only for human actions): a username and\nits access key (deprecated), or a TH-Key as `username` and its TH-Secret-Key as `access_key`.",
    "operationId": "sign_in_v1_session_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SessionIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Sign In",
    "tags": [
     "Auth"
    ]
   }
  },
  "/v1/session/step-up": {
   "post": {
    "description": "Confirm your password again; sensitive actions accept it for ten minutes. When your organisation requires\nsingle sign-on and you are not an owner, confirm at your identity provider instead (POST /v1/sso/step-up):\n403 sso_required.",
    "operationId": "step_up_v1_session_step_up_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StepUpIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Step Up",
    "tags": [
     "Auth"
    ]
   }
  },
  "/v1/sso": {
   "get": {
    "description": "The organisation's single sign-on settings, mapping rules and SCIM status, with the redirect URI to\nregister at the identity provider. The client secret is never returned: `client_secret.set` says whether one\nis stored and `hint` shows its last four characters.",
    "operationId": "get_settings_v1_sso_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Settings",
    "tags": [
     "Single sign-on"
    ]
   },
   "put": {
    "description": "Save the identity provider: issuer, client id and secret (sealed with the server's secrets key, never\nreturned), the email domains that may sign in, the claims that carry the email and the groups, and the\nsign-in name. Listing a domain blocks no other organisation: only a domain verified with a DNS TXT record\n(POST /v1/sso/domains/{domain}/verify) routes sign-ins by email, and removing a domain drops its\nverification. Changing the issuer unlinks every member from the old one (they link again at their next\nsign-in, by verified email; owners link from Settings). Turning it off while single sign-on is required is\nrefused. Needs sso.manage; audited without the secret.",
    "operationId": "save_settings_v1_sso_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SsoConfigIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Save Settings",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/callback": {
   "get": {
    "description": "Where the identity provider sends the browser back: the redirect URI is the server's public URL followed by\n/v1/sso/callback, exactly. Checks the state against this browser's th_sso cookie (once), trades the code for\ntokens with the PKCE verifier and the client secret, verifies the ID token, and sends the browser to the\nconsole's /sso/finish with a one-time code, or with an error code the console explains.",
    "operationId": "callback_v1_sso_callback_get",
    "parameters": [
     {
      "in": "query",
      "name": "code",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 4096,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Code"
      }
     },
     {
      "in": "query",
      "name": "state",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "State"
      }
     },
     {
      "in": "query",
      "name": "error",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 200,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Error"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Callback",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/domains/{domain}/verify": {
   "post": {
    "description": "Prove the organisation owns one of its allowed email domains: Truehands looks up the TXT record\n`_truehands.<domain>` and expects the value `truehands-verification=<token>` that GET /v1/sso shows for it.\nA verified domain routes Continue with SSO by email to this organisation, and no other organisation can verify\nit (409 domain_taken). 422 domain_not_verified when the record is missing or wrong, 502 dns_unavailable when\nDNS cannot answer. The domain stays verified until it is removed from the allowed domains. Needs sso.manage;\naudited, failures too.",
    "operationId": "verify_domain_v1_sso_domains__domain__verify_post",
    "parameters": [
     {
      "in": "path",
      "name": "domain",
      "required": true,
      "schema": {
       "title": "Domain",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Verify Domain",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/link": {
   "post": {
    "description": "Link your own account to your identity provider account, so you can sign in with single sign-on. This is\nhow owners link: they are never linked by email. Needs a person's session confirmed in the last ten minutes.",
    "operationId": "link_identity_v1_sso_link_post",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Link Identity",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/mapping": {
   "put": {
    "description": "The ordered group mapping rules: each gives the members of one group (its name or id, as the identity\nprovider sends it) a role and programs. The first matching rule wins; `default` applies when no group\nmatches, and without it such a sign-in is refused. A rule gives a person's role other than owner, or a\ncustom role, and never a permission you do not hold; a change to rules that give admin needs team.make_admin\n(403 step_up_required asks for your password). Rules that would change your own role or programs are refused\n(409 would_change_your_role). With `enabled`, the rules apply at once to every managed member whose groups\nare known, and every change is audited; turning it off stops managing every member. Needs sso.manage.",
    "operationId": "save_mapping_v1_sso_mapping_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MappingIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Save Mapping",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/require": {
   "put": {
    "description": "Require single sign-on: password sign-in is then refused for every member but owners (owners keep their\npassword, so a broken identity provider cannot lock the organisation out), password sessions of other\nmembers end, their unused password links are revoked, and their invites are accepted through single\nsign-on. Key pairs and service accounts keep working. Turning it on needs single sign-on on, a connection\ntest that passes now, and that you are an owner or signed in with single sign-on, so you are not locked out\nyourself (409 otherwise). Needs sso.manage; audited.",
    "operationId": "set_required_v1_sso_require_put",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/RequireIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Set Required",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/scim-token": {
   "delete": {
    "description": "Revoke the SCIM token: provisioning stops until a new one is made. Needs sso.manage; audited.",
    "operationId": "revoke_scim_token_v1_sso_scim_token_delete",
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke Scim Token",
    "tags": [
     "Single sign-on"
    ]
   },
   "post": {
    "description": "Make the organisation's SCIM token, or rotate it: the old one stops at once. `token` is shown once; only\nits SHA-256 and last four characters are stored. Paste it with the SCIM base URL into your identity\nprovider. Needs sso.manage; audited.",
    "operationId": "make_scim_token_v1_sso_scim_token_post",
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Make Scim Token",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/session": {
   "post": {
    "description": "Trade the one-time code /v1/sso/callback put in the console's URL fragment for a console session (method\nsso). The code works once, within two minutes, and only in the browser that signed in (the th_sso cookie).\nThe session is a person's: it passes human-only checks like a password session, and counts as a fresh\nconfirmation for ten minutes.",
    "operationId": "open_sso_session_v1_sso_session_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/HandoffIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Open Sso Session",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/start": {
   "post": {
    "description": "Begin a single sign-on: send a work `email` (its domain picks the organisation, if an organisation verified\nthat domain), the organisation's sign-in name as `org` (always works), or an `invite_token` to accept an\ninvite with single sign-on. Answers the identity provider's authorization URL to send the browser to, and sets\nthe th_sso cookie that binds the sign-in to this browser. 404 domain_not_routed when no organisation verified\nthe email's domain (send the sign-in name instead), 404 sso_not_found when no organisation signs in that\nway.",
    "operationId": "start_v1_sso_start_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StartIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "security": [],
    "summary": "Start",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/step-up": {
   "post": {
    "description": "Confirm it is you at your identity provider, for actions that need a recent confirmation: the provider is\nasked to sign you in again (prompt=login, max_age=0) and the ID token must say you did (auth_time). Answers\nthe URL to open; the console opens it in a small window and retries the action when it reports back. Needs a\nperson's session and an account linked to the identity provider (409 sso_not_linked).",
    "operationId": "step_up_v1_sso_step_up_post",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Step Up",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/sso/test": {
   "post": {
    "description": "Fetch the discovery document (<issuer>/.well-known/openid-configuration) and the signing keys now, through\nthe same address guard as webhooks, and report what was found. `ok` is false with the failing step's detail\nwhen something is wrong. Testing the saved issuer records the result. Needs sso.manage.",
    "operationId": "test_connection_v1_sso_test_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/SsoTestIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Test Connection",
    "tags": [
     "Single sign-on"
    ]
   }
  },
  "/v1/status": {
   "get": {
    "description": "Health of the parts that run your audits, and your organisation's last 24 hours.",
    "operationId": "status_v1_status_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Status",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/store/agreements": {
   "get": {
    "description": "The Store Terms and the Dataset Licence in effect at the store, each with `accepted_at` (null: this\norganisation has not accepted that version yet; ordering needs both).",
    "operationId": "agreements_v1_store_agreements_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Agreements",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/agreements/dataset_licence/accept": {
   "post": {
    "description": "Accept the Dataset Licence for the organisation, which ordering and buying need. Needs store.order.\nAudited.",
    "operationId": "accept_licence_v1_store_agreements_dataset_licence_accept_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__store__AcceptIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Accept Licence",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/agreements/store_terms/accept": {
   "post": {
    "description": "Accept a new version of the Store Terms for the organisation. Needs store.manage. Audited.",
    "operationId": "accept_terms_v1_store_agreements_store_terms_accept_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__store__AcceptIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Accept Terms",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/agreements/{kind}/text": {
   "get": {
    "description": "The version in effect, with its text (Markdown), as the store publishes it: read it before accepting.",
    "operationId": "agreement_text_v1_store_agreements__kind__text_get",
    "parameters": [
     {
      "in": "path",
      "name": "kind",
      "required": true,
      "schema": {
       "enum": [
        "store_terms",
        "dataset_licence"
       ],
       "title": "Kind",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Agreement Text",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/catalog": {
   "get": {
    "description": "The datasets listed in the store: tasks, hours, clips, settings, countries, cameras, licence tier and\nprice.",
    "operationId": "catalog_v1_store_catalog_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Catalog",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/catalog/{slug}": {
   "get": {
    "description": "One listed dataset, with its hours by task and its sample previews.",
    "operationId": "dataset_v1_store_catalog__slug__get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Dataset",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/catalog/{slug}/previews/{n}": {
   "get": {
    "description": "A sample frame of a dataset: low resolution, faces blurred.",
    "operationId": "preview_v1_store_catalog__slug__previews__n__get",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "n",
      "required": true,
      "schema": {
       "title": "N",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       },
       "image/jpeg": {}
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Preview",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/catalog/{slug}/purchase": {
   "post": {
    "description": "Buy the dataset or a slice. It needs the current Store Terms and Dataset Licence accepted; the order is\ncreated accepted at the listed price and its delivery is built once the payment arrives. Needs store.order.\nAudited.",
    "operationId": "purchase_v1_store_catalog__slug__purchase_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PurchaseIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Purchase",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/catalog/{slug}/quote": {
   "post": {
    "description": "The price of the dataset, or of a slice of it (some tasks, some hours): `price_cents`, `currency`,\n`hours`, `clips`. Changes nothing.",
    "operationId": "quote_v1_store_catalog__slug__quote_post",
    "parameters": [
     {
      "in": "path",
      "name": "slug",
      "required": true,
      "schema": {
       "title": "Slug",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PurchaseIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Quote",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries": {
   "get": {
    "description": "The organisation's deliveries (each drop of an order), newest first.",
    "operationId": "deliveries_v1_store_deliveries_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Deliveries",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}": {
   "get": {
    "description": "One delivery with its clips (dataset-scoped ids, task, seconds, withdrawn or not, deletion confirmed or\nnot), `report_until`, and `sends`: its copies to the organisation's backup destinations.",
    "operationId": "delivery_v1_store_deliveries__delivery_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delivery",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}/clips/{clip_id}/deletion-confirmed": {
   "post": {
    "description": "Confirm the organisation deleted a clip Truehands withdrew (store.delivery.clip_withdrawn), and every copy\nof it. Needs store.order. Audited.",
    "operationId": "confirm_deletion_v1_store_deliveries__delivery_id__clips__clip_id__deletion_confirmed_post",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "clip_id",
      "required": true,
      "schema": {
       "title": "Clip Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Confirm Deletion",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}/download": {
   "get": {
    "description": "A signed link, valid for five minutes, to the delivery's package as a tar, streamed from the store as it\ndownloads. 302 to the link, or {url, expires_in, filename} with redirect=false. Audited as\nstore.delivery_downloaded; the store records the download under your name.",
    "operationId": "download_v1_store_deliveries__delivery_id__download_get",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "redirect",
      "required": false,
      "schema": {
       "default": true,
       "title": "Redirect",
       "type": "boolean"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Download",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}/reports": {
   "post": {
    "description": "Report a clip that breaks the brief, with a reason, within 14 days of its drop. Truehands decides: the\nclip is withdrawn and credited or replaced, or the report is rejected. Needs store.order. Audited.",
    "operationId": "report_clip_v1_store_deliveries__delivery_id__reports_post",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReportIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Report Clip",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}/send-to-backup": {
   "post": {
    "description": "Copy the delivery's tar to one of the organisation's backup destinations, streamed from the store into the\nbucket at <prefix>/store/deliveries/<id>.tar, with <id>.json beside it (bytes, sha256). It runs in the\nbackground: follow it in GET .../sends. Needs store.view and backups.run. Audited.",
    "operationId": "send_to_backup_v1_store_deliveries__delivery_id__send_to_backup_post",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/SendIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "202": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Send To Backup",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/deliveries/{delivery_id}/sends": {
   "get": {
    "description": "The delivery's copies to backup destinations, newest first: status, location, bytes, sha256, error.",
    "operationId": "delivery_sends_v1_store_deliveries__delivery_id__sends_get",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delivery Sends",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/download/{token}": {
   "get": {
    "description": "The tar behind a signed link from GET /v1/store/deliveries/{id}/download, streamed from the store chunk by\nchunk (nothing is buffered or stored here).",
    "operationId": "download_file_v1_store_download__token__get",
    "parameters": [
     {
      "in": "path",
      "name": "token",
      "required": true,
      "schema": {
       "title": "Token",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       },
       "application/x-tar": {}
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Download File",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/events": {
   "post": {
    "description": "Where the Truehands Store sends events for connected organisations (its STORE_PLATFORM_EVENTS_URL),\nsigned with the platform secret: X-Truehands-Timestamp within five minutes, a nonce not seen before,\nX-Truehands-Signature. Each is published once to the organisation's event log as store.<type> (webhooks and\nSlack). 404 not_linked for an organisation that is not connected, which the store does not retry.",
    "operationId": "store_events_v1_store_events_post",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Store Events",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/link": {
   "delete": {
    "description": "Disconnect: the link ends, so the store stops sending this organisation's events and the dashboard can no\nlonger order. The store keeps the buyer, its orders and deliveries, and its members on the store website keep\ntheir access. Needs store.manage. Audited as store.disconnected.",
    "operationId": "disconnect_v1_store_link_delete",
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Disconnect",
    "tags": [
     "Store"
    ]
   },
   "get": {
    "description": "Whether the Truehands Store is set up on this server and the organisation connected to it: `enabled`,\n`connected`, `store_url` (the store's public address) and `link` (`buyer_id`, `org_name`, `terms_version`,\n`linked_at`, `linked_by`, `last_event_at`). 404 store_off when the store is not set up.",
    "operationId": "get_link_v1_store_link_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Link",
    "tags": [
     "Store"
    ]
   },
   "post": {
    "description": "Connect the organisation to the Truehands Store, accepting the Store Terms version you were shown on its\nbehalf (recorded by the store with your name and address). The store creates a buyer for the organisation,\nor links the store buyer whose owner gave you a link code. Needs store.manage: a person, password confirmed\nin the last ten minutes. Audited as store.connected.",
    "operationId": "connect_v1_store_link_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__store__LinkIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Connect",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders": {
   "get": {
    "description": "The organisation's orders, newest first (at most 200), with status, totals and progress.",
    "operationId": "orders_v1_store_orders_get",
    "parameters": [
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(draft|submitted|quoted|accepted|collecting|paused|completed|closed|declined|cancelled)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Orders",
    "tags": [
     "Store"
    ]
   },
   "post": {
    "description": "A custom order brief, saved as a draft. Submit it to ask Truehands for a quote. Needs store.order.\nAudited.",
    "operationId": "create_order_v1_store_orders_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BriefIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}": {
   "get": {
    "description": "One order with its brief, tasks (target and accepted hours), quote and payments.",
    "operationId": "order_v1_store_orders__order_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Order",
    "tags": [
     "Store"
    ]
   },
   "patch": {
    "description": "Replace the brief of a draft. Needs store.order. Audited.",
    "operationId": "edit_order_v1_store_orders__order_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/BriefIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Edit Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/accept": {
   "post": {
    "description": "Accept the quote: the order becomes binding and the deposit is invoiced. Needs store.order. Audited.",
    "operationId": "accept_quote_v1_store_orders__order_id__accept_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Accept Quote",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/cancel": {
   "post": {
    "description": "Cancel a draft, a submitted or quoted order, or an accepted one before collecting starts (a collecting\norder is cancelled by Truehands). Needs store.order. Audited.",
    "operationId": "cancel_order_v1_store_orders__order_id__cancel_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Cancel Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/close": {
   "post": {
    "description": "Close a collecting or paused order early: you pay for what was accepted, and the last drop is built.\nNeeds store.order. Audited.",
    "operationId": "close_order_v1_store_orders__order_id__close_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Close Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/decline": {
   "post": {
    "description": "Decline the quote, with an optional note for Truehands. Needs store.order. Audited.",
    "operationId": "decline_quote_v1_store_orders__order_id__decline_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Decline Quote",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/pause": {
   "post": {
    "description": "Pause collecting: the order's gigs stop taking new recordings. Needs store.order. Audited.",
    "operationId": "pause_order_v1_store_orders__order_id__pause_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Pause Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/progress": {
   "get": {
    "description": "Accepted hours against the target, in total and per task.",
    "operationId": "order_progress_v1_store_orders__order_id__progress_get",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Order Progress",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/resume": {
   "post": {
    "description": "Resume a paused order. Needs store.order. Audited.",
    "operationId": "resume_order_v1_store_orders__order_id__resume_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/NoteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Resume Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/submit": {
   "post": {
    "description": "Send the brief to Truehands for a quote. Needs store.order and the current Store Terms and Dataset Licence\naccepted (403 agreement_required otherwise). Audited.",
    "operationId": "submit_order_v1_store_orders__order_id__submit_post",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Submit Order",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/orders/{order_id}/timeline": {
   "get": {
    "description": "Every status change, drop, download, report and takedown of the order, with who and when.",
    "operationId": "order_timeline_v1_store_orders__order_id__timeline_get",
    "parameters": [
     {
      "in": "path",
      "name": "order_id",
      "required": true,
      "schema": {
       "title": "Order Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Order Timeline",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/payments": {
   "get": {
    "description": "Deposits, drop invoices and purchases, with their status and payment links.",
    "operationId": "payments_v1_store_payments_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Payments",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/store/reports": {
   "get": {
    "description": "The organisation's clip reports and Truehands' decisions.",
    "operationId": "reports_v1_store_reports_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Reports",
    "tags": [
     "Store"
    ]
   }
  },
  "/v1/tags": {
   "get": {
    "description": "Tags used on your organisation's runs, most used first; `q` matches the start of a tag.",
    "operationId": "list_tags_v1_tags_get",
    "parameters": [
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 40,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 20,
       "maximum": 50,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Tags",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/team/invites": {
   "get": {
    "operationId": "list_invites_v1_team_invites_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Invites",
    "tags": [
     "Team"
    ]
   },
   "post": {
    "description": "A one-time invite link (7 days) for a built-in person role or one of the organisation's custom roles. No\nemail is sent: copy the link to the person. Shown once. Inviting an admin or owner needs a fresh password;\nonly owners invite owners. `programs` limits the person to some programs (not for owners or admins).",
    "operationId": "create_invite_v1_team_invites_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InviteIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Invite",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/invites/{invite_id}": {
   "delete": {
    "operationId": "revoke_invite_v1_team_invites__invite_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "invite_id",
      "required": true,
      "schema": {
       "title": "Invite Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke Invite",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/keys": {
   "get": {
    "description": "Every active key pair in the organisation, people's and service accounts', newest first, with whose it is,\nand the suspended pairs of members single sign-on deactivated for want of a matching rule (`suspended`: true;\nrefused until a rule matches again, and revocable here). `member` narrows to one member id. `scope` is the\nkey's limit, or null. Deprecated legacy access keys are shown on members instead.",
    "operationId": "team_keys_v1_team_keys_get",
    "parameters": [
     {
      "in": "query",
      "name": "member",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Member"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Team Keys",
    "tags": [
     "Keys"
    ]
   }
  },
  "/v1/team/keys/{key_id}": {
   "delete": {
    "description": "Revoke any member's or service account's key pair at once. Owners' keys can be revoked only by an owner.",
    "operationId": "revoke_team_key_v1_team_keys__key_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "key_id",
      "required": true,
      "schema": {
       "title": "Key Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke Team Key",
    "tags": [
     "Keys"
    ]
   },
   "patch": {
    "description": "Narrow any member's or service account's key pair: fewer permissions or fewer programs, never more\n(403 forbidden for a change that widens it; its owner can widen their own key, and an owner or admin a\nservice account's under PATCH /v1/team/service-accounts/{id}/keys/{key_id}). Narrowing is less than\nrevoking, so it needs what revoking needs: team.revoke_key, signed in with a password; owners' keys only by\nan owner. Recorded in the audit log with the limits before and after.",
    "operationId": "narrow_team_key_v1_team_keys__key_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "key_id",
      "required": true,
      "schema": {
       "title": "Key Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__keys__KeyLimitsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Narrow Team Key",
    "tags": [
     "Keys"
    ]
   }
  },
  "/v1/team/members": {
   "get": {
    "operationId": "list_members_v1_team_members_get",
    "parameters": [
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(active|deactivated)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "kind",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(person|service)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Kind"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Members",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}": {
   "patch": {
    "description": "Change a member's role (built-in or custom), name or programs. Granting admin or owner, or changing an\nowner, needs a fresh password. Nobody changes their own account or gives a role holding a permission they\nlack. `programs` limits a person to some programs (null: every program); it needs no more than changing their\nrole, owners and admins cannot be limited (making someone an admin clears their list), and a service\naccount's programs are set under PATCH /v1/team/service-accounts/{id}. Changes apply from the member's next\nrequest, and every one is in the audit log.",
    "operationId": "update_member_v1_team_members__member_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/MemberPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Update Member",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/deactivate": {
   "post": {
    "description": "Deactivate a member: their key, sessions and links stop at once. Their runs and audit rows stay.",
    "operationId": "deactivate_member_v1_team_members__member_id__deactivate_post",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Deactivate Member",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/key": {
   "delete": {
    "description": "Revoke all of a member's keys at once: every key pair and the legacy access key. Scripts using them get\n401. To revoke a single key pair, use DELETE /v1/team/keys/{key_id}.",
    "operationId": "revoke_member_key_v1_team_members__member_id__key_delete",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Revoke Member Key",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/password-link": {
   "post": {
    "description": "A one-time link (24 h) for a member to set their password. Shown once. Owners can make one for anyone,\nadmins for members who are not owners or admins; never for a service account or yourself.",
    "operationId": "password_link_v1_team_members__member_id__password_link_post",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Password Link",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/permissions": {
   "get": {
    "description": "What a member may do now: their role's permissions and the programs they may see (null: every program),\nand what each of their active key pairs may do and see (its scope and programs, intersected with the\nmember's). Limited to some programs, they and their keys do not hold the whole_org permissions.",
    "operationId": "member_permissions_v1_team_members__member_id__permissions_get",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Member Permissions",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/reactivate": {
   "post": {
    "description": "Reactivate a member. They have no session or password link until one is made, and no key unless single\nsign-on deactivated them for want of a matching rule: those keys were suspended, not revoked, and work again\n(detach such a member first; revoke their keys under Team & keys to end them instead).",
    "operationId": "reactivate_member_v1_team_members__member_id__reactivate_post",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Reactivate Member",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/members/{member_id}/sso-detach": {
   "post": {
    "description": "Stop the identity provider managing a member's role and programs: they keep both as they are now, keep\nsigning in with single sign-on, and an owner or admin changes them by hand from then on. The same rules as a\nrole change apply (only owners touch owners; nobody detaches themselves). Needs team.change_role; audited.",
    "operationId": "detach_member_v1_team_members__member_id__sso_detach_post",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Detach Member",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/roles": {
   "get": {
    "description": "What each role may do, as the server enforces it, generated from the permission catalog: the built-in\nroles, then your organisation's custom roles. Every member may read it.",
    "operationId": "roles_v1_team_roles_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Roles",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/roles/custom": {
   "get": {
    "description": "Your organisation's custom roles with how many members and pending invites hold each.",
    "operationId": "list_custom_roles_v1_team_roles_custom_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Custom Roles",
    "tags": [
     "Team"
    ]
   },
   "post": {
    "description": "A role of your organisation's own, from grantable permissions (what they imply is added). Needs an owner or\nadmin with a password confirmed in the last ten minutes; nobody grants a permission they do not hold.\nRecorded in the audit log.",
    "operationId": "create_custom_role_v1_team_roles_custom_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CustomRoleIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Custom Role",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/roles/custom/{role_id}": {
   "delete": {
    "description": "Delete a custom role. While members (active or deactivated) or pending invites hold it, name a\n`replacement` role for them (not owner; admin needs the right to make admins), or reassign them first\n(409 role_in_use).",
    "operationId": "delete_custom_role_v1_team_roles_custom__role_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "role_id",
      "required": true,
      "schema": {
       "title": "Role Id",
       "type": "string"
      }
     },
     {
      "description": "The role to give the members and pending invites that hold this one. Needed while anyone holds it.",
      "in": "query",
      "name": "replacement",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 32,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "description": "The role to give the members and pending invites that hold this one. Needed while anyone holds it.",
       "title": "Replacement"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Custom Role",
    "tags": [
     "Team"
    ]
   },
   "patch": {
    "description": "Rename a custom role, change its description, or replace its permissions. Members holding it get the new\npermissions at their next request; keys limited to a permission the role lost lose it too.",
    "operationId": "update_custom_role_v1_team_roles_custom__role_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "role_id",
      "required": true,
      "schema": {
       "title": "Role Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/CustomRolePatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Update Custom Role",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/service-accounts": {
   "post": {
    "description": "A CI identity (role ci): a key pair, no password, no console. th_secret_key is shown once.\n`access_key` is a deprecated legacy key for older consoles (used with the username). `permissions` limits the\nkey pair to some of what the ci role may do.",
    "operationId": "create_service_account_v1_team_service_accounts_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ServiceAccountIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Service Account",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/service-accounts/{member_id}": {
   "patch": {
    "description": "Rename a service account, change its description, or limit it to some programs (`programs`, null for\nevery program; left out, unchanged). Its key pairs see the intersection of their own programs and these.\nNeeds service_accounts.manage with a password confirmed in the last ten minutes; audited.",
    "operationId": "update_service_account_v1_team_service_accounts__member_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ServiceAccountPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Update Service Account",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/service-accounts/{member_id}/key": {
   "post": {
    "description": "Rotate a service account's key pair: its old key pairs and access key stop at once, and a new pair is\nreturned (th_secret_key is shown once). `permissions` limits the new pair. `access_key` is a deprecated\nlegacy key for older consoles.",
    "operationId": "rotate_service_key_v1_team_service_accounts__member_id__key_post",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/ServiceKeyIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Rotate Service Key",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/team/service-accounts/{member_id}/keys/{key_id}": {
   "patch": {
    "description": "Change a service account's key pair limits, narrowing or widening: `permissions` (from what the ci role\nmay do and you hold) and `programs` (from the service account's own), each a list or null for no limit; a\nfield left out stays as it is. Needs service_accounts.manage with a password confirmed in the last ten\nminutes. Recorded in the audit log with the limits before and after.",
    "operationId": "edit_service_key_v1_team_service_accounts__member_id__keys__key_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "member_id",
      "required": true,
      "schema": {
       "title": "Member Id",
       "type": "string"
      }
     },
     {
      "in": "path",
      "name": "key_id",
      "required": true,
      "schema": {
       "title": "Key Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/truehands__server__routes__team_admin__KeyLimitsIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Edit Service Key",
    "tags": [
     "Team"
    ]
   }
  },
  "/v1/uploads": {
   "get": {
    "description": "Your organisation's uploads, newest first. A member or key limited to some programs sees the uploads it\nholds (its own, and those whose bytes it sent again) and those used by runs of its programs, also when\nlooking up an exact `sha256`: the CLI then sends the file, and the server answers with the existing upload.",
    "operationId": "list_uploads_v1_uploads_get",
    "parameters": [
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "q",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 100,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Q"
      }
     },
     {
      "in": "query",
      "name": "sha256",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-f0-9]{64}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Sha256"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Uploads",
    "tags": [
     "Uploads"
    ]
   },
   "post": {
    "operationId": "create_upload_v1_uploads_post",
    "requestBody": {
     "content": {
      "multipart/form-data": {
       "schema": {
        "properties": {
         "custom_id": {
          "pattern": "^[A-Za-z0-9_-]{1,64}$",
          "type": "string"
         },
         "file": {
          "description": ".mp4 or .mov video, or a .csv motion-sensor log",
          "format": "binary",
          "type": "string"
         }
        },
        "required": [
         "file"
        ],
        "type": "object"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Upload",
    "tags": [
     "Uploads"
    ]
   }
  },
  "/v1/uploads/{ref}": {
   "get": {
    "operationId": "get_upload_v1_uploads__ref__get",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Upload",
    "tags": [
     "Uploads"
    ]
   }
  },
  "/v1/usage": {
   "get": {
    "description": "Billable audited hours by day; a member or key limited to some programs sees those programs' hours.",
    "operationId": "usage_v1_usage_get",
    "parameters": [
     {
      "in": "query",
      "name": "days",
      "required": false,
      "schema": {
       "default": 30,
       "maximum": 366,
       "minimum": 1,
       "title": "Days",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Usage",
    "tags": [
     "Usage"
    ]
   }
  },
  "/v1/verdicts": {
   "get": {
    "description": "The latest verdict of every clip of finished runs, ordered by the org's ledger sequence. `after` is both\nthe page cursor and 'changed since': a clip whose verdict changes moves to the end with a new sequence.",
    "operationId": "list_verdicts_v1_verdicts_get",
    "parameters": [
     {
      "in": "query",
      "name": "program",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 48,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Program"
      }
     },
     {
      "in": "query",
      "name": "run",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Run"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(accept|partial|review|reject)(,(accept|partial|review|reject)){0,3}$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "contributor",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "maxLength": 64,
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Contributor"
      }
     },
     {
      "in": "query",
      "name": "after",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "After",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 100,
       "maximum": 500,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "format",
      "required": false,
      "schema": {
       "default": "json",
       "pattern": "^(json|jsonl|csv)$",
       "title": "Format",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Verdicts",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/views": {
   "get": {
    "description": "Your personal saved views plus your organisation's shared ones.",
    "operationId": "list_views_v1_views_get",
    "parameters": [
     {
      "in": "query",
      "name": "page",
      "required": false,
      "schema": {
       "default": "runs",
       "pattern": "^runs$",
       "title": "Page",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Views",
    "tags": [
     "Runs"
    ]
   },
   "post": {
    "operationId": "create_view_v1_views_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ViewIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create View",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/views/{view_id}": {
   "delete": {
    "operationId": "delete_view_v1_views__view_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "view_id",
      "required": true,
      "schema": {
       "title": "View Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete View",
    "tags": [
     "Runs"
    ]
   }
  },
  "/v1/watchers": {
   "get": {
    "operationId": "list_watchers_v1_watchers_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Watchers",
    "tags": [
     "Automation"
    ]
   },
   "post": {
    "description": "A watcher batches footage into runs on its own. `local` reads a server-owned inbox folder (rsync, SFTP);\n`api` takes rows of your dl:// uploads at POST /v1/watchers/{id}/clips.",
    "operationId": "create_watcher_v1_watchers_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WatcherIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Watcher",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}": {
   "delete": {
    "description": "Remove a watcher. Its ledger, batches and runs are kept; files in its inbox are left where they are.",
    "operationId": "delete_watcher_v1_watchers__ref__delete",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Watcher",
    "tags": [
     "Automation"
    ]
   },
   "get": {
    "operationId": "get_watcher_v1_watchers__ref__get",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Watcher",
    "tags": [
     "Automation"
    ]
   },
   "patch": {
    "operationId": "patch_watcher_v1_watchers__ref__patch",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/WatcherPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Patch Watcher",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/batches": {
   "get": {
    "operationId": "watcher_batches_v1_watchers__ref__batches_get",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 25,
       "maximum": 100,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Watcher Batches",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/clips": {
   "post": {
    "description": "API inbox: 1-500 rows naming your dl:// uploads. Each row is batched, a duplicate (already sent),\nskipped (these bytes were already audited for the program) or rejected with a reason code.",
    "operationId": "post_clips_v1_watchers__ref__clips_post",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/InboxIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Post Clips",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/flush": {
   "post": {
    "description": "Close the open batch now and start its run. `run` is null when nothing was waiting, or when the queue is\nfull (the batch then waits as `closing` and is sent when the queue drains).",
    "operationId": "flush_watcher_v1_watchers__ref__flush_post",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/ReasonIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Flush Watcher",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/objects": {
   "get": {
    "description": "The watcher's ledger: every object it saw, once per version, and what became of it.",
    "operationId": "watcher_objects_v1_watchers__ref__objects_get",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "status",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(batched|rejected|skipped|error|seen)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Status"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 200,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     },
     {
      "in": "query",
      "name": "offset",
      "required": false,
      "schema": {
       "default": 0,
       "minimum": 0,
       "title": "Offset",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Watcher Objects",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/pause": {
   "post": {
    "operationId": "pause_watcher_v1_watchers__ref__pause_post",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/ReasonIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Pause Watcher",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/watchers/{ref}/resume": {
   "post": {
    "operationId": "resume_watcher_v1_watchers__ref__resume_post",
    "parameters": [
     {
      "in": "path",
      "name": "ref",
      "required": true,
      "schema": {
       "title": "Ref",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "anyOf": [
         {
          "$ref": "#/components/schemas/ReasonIn"
         },
         {
          "type": "null"
         }
        ],
        "title": "Body"
       }
      }
     }
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Resume Watcher",
    "tags": [
     "Automation"
    ]
   }
  },
  "/v1/webhook-deliveries/{delivery_id}": {
   "get": {
    "description": "One delivery with every attempt, the request (signature header left out) and response snippets.",
    "operationId": "get_delivery_v1_webhook_deliveries__delivery_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Delivery",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-deliveries/{delivery_id}/resend": {
   "post": {
    "description": "Queue the same event again (same webhook-id, so receivers can dedupe).",
    "operationId": "resend_v1_webhook_deliveries__delivery_id__resend_post",
    "parameters": [
     {
      "in": "path",
      "name": "delivery_id",
      "required": true,
      "schema": {
       "title": "Delivery Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Resend",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-endpoints": {
   "get": {
    "operationId": "list_endpoints_v1_webhook_endpoints_get",
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Endpoints",
    "tags": [
     "Delivery"
    ]
   },
   "post": {
    "description": "Add an endpoint. Standard endpoints get a signing secret, shown once in this response only.",
    "operationId": "create_endpoint_v1_webhook_endpoints_post",
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EndpointIn"
       }
      }
     },
     "required": true
    },
    "responses": {
     "201": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Create Endpoint",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-endpoints/{endpoint_id}": {
   "delete": {
    "operationId": "delete_endpoint_v1_webhook_endpoints__endpoint_id__delete",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Delete Endpoint",
    "tags": [
     "Delivery"
    ]
   },
   "get": {
    "operationId": "get_endpoint_v1_webhook_endpoints__endpoint_id__get",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Get Endpoint",
    "tags": [
     "Delivery"
    ]
   },
   "patch": {
    "description": "Change filters, the description or enabled state. Changing the URL needs a person signed in to the\nconsole: a leaked key must not be able to point an endpoint somewhere else.",
    "operationId": "patch_endpoint_v1_webhook_endpoints__endpoint_id__patch",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/EndpointPatch"
       }
      }
     },
     "required": true
    },
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Patch Endpoint",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-endpoints/{endpoint_id}/deliveries": {
   "get": {
    "operationId": "list_deliveries_v1_webhook_endpoints__endpoint_id__deliveries_get",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     },
     {
      "in": "query",
      "name": "state",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^(pending|succeeded|failed|cancelled|skipped)$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "State"
      }
     },
     {
      "in": "query",
      "name": "type",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "pattern": "^[a-z_]{1,40}(\\.[a-z_]{1,40}){0,2}(\\.\\*)?$",
         "type": "string"
        },
        {
         "type": "null"
        }
       ],
       "title": "Type"
      }
     },
     {
      "in": "query",
      "name": "before",
      "required": false,
      "schema": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "title": "Before"
      }
     },
     {
      "in": "query",
      "name": "limit",
      "required": false,
      "schema": {
       "default": 50,
       "maximum": 100,
       "minimum": 1,
       "title": "Limit",
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "List Deliveries",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-endpoints/{endpoint_id}/rotate-secret": {
   "post": {
    "description": "A new signing secret. For 24 hours deliveries carry signatures from both, so receivers can switch.",
    "operationId": "rotate_secret_v1_webhook_endpoints__endpoint_id__rotate_secret_post",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Rotate Secret",
    "tags": [
     "Delivery"
    ]
   }
  },
  "/v1/webhook-endpoints/{endpoint_id}/test": {
   "post": {
    "description": "Send a webhook.test event to this endpoint now and return the attempt.",
    "operationId": "test_endpoint_v1_webhook_endpoints__endpoint_id__test_post",
    "parameters": [
     {
      "in": "path",
      "name": "endpoint_id",
      "required": true,
      "schema": {
       "title": "Endpoint Id",
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "content": {
       "application/json": {
        "schema": {}
       }
      },
      "description": "Successful Response"
     },
     "422": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/HTTPValidationError"
        }
       }
      },
      "description": "Validation Error"
     },
     "4XX": {
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Error"
        }
       }
      },
      "description": "Error"
     }
    },
    "summary": "Test Endpoint",
    "tags": [
     "Delivery"
    ]
   }
  }
 },
 "security": [
  {
   "basicAuth": []
  },
  {
   "sessionToken": []
  }
 ],
 "servers": [
  {
   "description": "This Truehands Cloud server",
   "url": "/"
  }
 ]
}
