{
  "openapi": "3.1.0",
  "info": {
    "title": "Datumwell API",
    "version": "0.6.0",
    "description": "One Datumwell API token for RoboRouter model inference (Dream-1, Poke-Aurora, DM0.5 and WALL-OSS-1.0) and Annotation video action timelines. The products share USD credits. Reuse the original inference request_key or Annotation job UUID on retry to avoid duplicate charges. Inference returns predicted actions for the caller to review. By default, each user can submit up to 10 jobs concurrently. All API tokens on the account share this limit across services. Each accepted batch item uses one slot, including while waiting to run. For higher concurrency or faster processing, [contact Datumwell](https://datumwell.io/en/docs#contact-api). Standalone 3D Hand Pose extracts hand keypoints for single or batch uploads at $3 per original video hour."
  },
  "servers": [
    {
      "url": "https://datumwell.io/api/v1"
    }
  ],
  "paths": {
    "/gateway/authorize": {
      "post": {
        "operationId": "authorizeSimulationGateway",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "gateway:invoke",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "model": {
                      "const": "rr/poke-aurora"
                    },
                    "mode": {
                      "const": "simulation"
                    },
                    "hardware_profile": {
                      "$ref": "#/components/schemas/Profile"
                    },
                    "execution_location": {
                      "const": "local_gateway"
                    },
                    "provider_credentials_location": {
                      "const": "local"
                    },
                    "validation_level": {
                      "const": "simulation_contract_only"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string",
                    "enum": [
                      "rr/dream-1",
                      "rr/poke-aurora"
                    ]
                  },
                  "hardware_profile_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "hardware_profile_revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "mode": {
                    "type": "string",
                    "const": "simulation"
                  }
                },
                "required": [
                  "model",
                  "hardware_profile_id",
                  "hardware_profile_revision",
                  "mode"
                ],
                "additionalProperties": false
              }
            }
          }
        },
        "description": "Checked before session creation and every inference. Only the published UR5e simulation profile and its immutable revision are accepted. Does not grant provider access or real-hardware execution."
      }
    },
    "/models": {
      "get": {
        "operationId": "listModels",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "models:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pricing": {
                            "type": "object",
                            "properties": {
                              "currency": {
                                "const": "USD"
                              },
                              "unit": {
                                "enum": [
                                  "request",
                                  "video",
                                  "action_token",
                                  "token",
                                  "video_hour"
                                ]
                              },
                              "rate_version": {
                                "type": "string"
                              },
                              "max_charge_microusd": {
                                "type": "string"
                              },
                              "cost_microusd": {
                                "type": "string"
                              },
                              "cost_microusd_per_action_token": {
                                "type": "string"
                              },
                              "max_action_tokens": {
                                "type": "integer"
                              },
                              "input_microusd_per_million_tokens": {
                                "type": "string"
                              },
                              "output_microusd_per_million_tokens": {
                                "type": "string"
                              },
                              "max_input_tokens": {
                                "type": "integer"
                              },
                              "max_output_tokens": {
                                "type": "integer"
                              },
                              "cost_microusd_per_video_hour": {
                                "type": "string"
                              },
                              "max_duration_seconds": {
                                "type": "integer"
                              },
                              "failure_charge_coefficient": {
                                "type": "number",
                                "const": 0.5
                              },
                              "failed_cost_microusd_per_video_hour": {
                                "type": "string"
                              }
                            },
                            "examples": [
                              {
                                "currency": "USD",
                                "rate_version": "usd-api-v2",
                                "unit": "action_token",
                                "cost_microusd_per_action_token": "40",
                                "max_action_tokens": 512,
                                "max_charge_microusd": "20480"
                              }
                            ]
                          },
                          "id": {
                            "enum": [
                              "rr/dream-1",
                              "rr/poke-aurora",
                              "rr/dm05",
                              "rr/wall-oss-1.0"
                            ]
                          },
                          "display_name": {
                            "type": "string"
                          },
                          "provider": {
                            "type": "string"
                          },
                          "availability": {
                            "const": "hosted_inference"
                          },
                          "validation_level": {
                            "enum": [
                              "unverified",
                              "simulation_example",
                              "protocol_smoke"
                            ]
                          },
                          "source": {
                            "type": "string",
                            "format": "uri"
                          }
                        }
                      }
                    },
                    "hand_pose": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "const": "rr/hand-pose"
                        },
                        "endpoint": {
                          "const": "/api/v1/hand-pose/jobs"
                        },
                        "upload_endpoint": {
                          "const": "/api/v1/hand-pose/jobs/{id}/upload-session"
                        },
                        "batch_endpoint": {
                          "const": "/api/v1/hand-pose/batches"
                        },
                        "max_video_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "max_duration_seconds": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pricing": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "const": "USD"
                            },
                            "unit": {
                              "const": "video_hour"
                            },
                            "rate_version": {
                              "type": "string"
                            },
                            "cost_microusd_per_video_hour": {
                              "type": "string"
                            },
                            "max_duration_seconds": {
                              "type": "integer",
                              "minimum": 1
                            },
                            "max_charge_microusd": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    "annotation": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "const": "rr/annotation"
                        },
                        "endpoint": {
                          "const": "/api/v1/annotations"
                        },
                        "upload_endpoint": {
                          "const": "/api/v1/annotations/{id}/upload-session"
                        },
                        "complete_endpoint": {
                          "const": "/api/v1/annotations/{id}/upload-complete"
                        },
                        "process_endpoint": {
                          "const": "/api/v1/annotations/{id}/process"
                        },
                        "max_video_bytes": {
                          "const": 50000000
                        },
                        "pricing": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "const": "USD"
                            },
                            "unit": {
                              "enum": [
                                "request",
                                "video",
                                "action_token",
                                "token",
                                "video_hour"
                              ]
                            },
                            "rate_version": {
                              "type": "string"
                            },
                            "max_charge_microusd": {
                              "type": "string"
                            },
                            "cost_microusd": {
                              "type": "string"
                            },
                            "cost_microusd_per_action_token": {
                              "type": "string"
                            },
                            "max_action_tokens": {
                              "type": "integer"
                            },
                            "input_microusd_per_million_tokens": {
                              "type": "string"
                            },
                            "output_microusd_per_million_tokens": {
                              "type": "string"
                            },
                            "max_input_tokens": {
                              "type": "integer"
                            },
                            "max_output_tokens": {
                              "type": "integer"
                            },
                            "cost_microusd_per_video_hour": {
                              "type": "string"
                            },
                            "max_duration_seconds": {
                              "type": "integer"
                            },
                            "failure_charge_coefficient": {
                              "type": "number",
                              "const": 0.5
                            },
                            "failed_cost_microusd_per_video_hour": {
                              "type": "string"
                            }
                          },
                          "examples": [
                            {
                              "currency": "USD",
                              "rate_version": "usd-annotation-duration-v3",
                              "unit": "video_hour",
                              "cost_microusd_per_video_hour": "6000000",
                              "failure_charge_coefficient": 0.5,
                              "failed_cost_microusd_per_video_hour": "3000000"
                            }
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/projects": {
      "get": {
        "operationId": "getBoundProject",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "profiles:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "workspace_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "name": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/hardware-profiles": {
      "get": {
        "operationId": "listAllowedProfiles",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "profiles:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Profile"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/hardware-profiles/{profile_id}": {
      "parameters": [
        {
          "name": "profile_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readAllowedProfile",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "profiles:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/hardware-profiles/{profile_id}/revisions": {
      "parameters": [
        {
          "name": "profile_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "createAllowedProfileRevision",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "profiles:write",
        "responses": {
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "payload",
                  "expected_revision"
                ],
                "properties": {
                  "payload": {
                    "$ref": "#/components/schemas/ProfileInput"
                  },
                  "expected_revision": {
                    "type": "integer",
                    "minimum": 1
                  }
                }
              }
            }
          }
        },
        "description": "The profile must be in the token allowlist. expected_revision prevents overwriting concurrent changes; replay after a successful write returns 409. Revisions are immutable and remain unverified."
      }
    },
    "/traces": {
      "get": {
        "operationId": "listTraces",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "traces:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "enum": [
                              "reserved",
                              "sending",
                              "uncertain",
                              "succeeded",
                              "failed"
                            ]
                          },
                          "held_microusd": {
                            "type": "string"
                          },
                          "charged_microusd": {
                            "type": "string"
                          },
                          "rate_version": {
                            "type": "string"
                          },
                          "usage": {
                            "type": "object",
                            "properties": {
                              "action_tokens": {
                                "type": "integer",
                                "minimum": 1
                              }
                            }
                          },
                          "error_code": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "result_available": {
                            "type": "boolean"
                          },
                          "duplicate": {
                            "type": "boolean"
                          },
                          "execution": {
                            "const": "upstream_evaluation"
                          },
                          "environment": {
                            "enum": [
                              "sandbox",
                              "production"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/inference": {
      "post": {
        "operationId": "createManagedPrediction",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "inference:invoke",
        "responses": {
          "200": {
            "description": "Existing receipt"
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "reserved",
                        "sending",
                        "uncertain",
                        "succeeded",
                        "failed"
                      ]
                    },
                    "held_microusd": {
                      "type": "string"
                    },
                    "charged_microusd": {
                      "type": "string"
                    },
                    "rate_version": {
                      "type": "string"
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "action_tokens": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "result_available": {
                      "type": "boolean"
                    },
                    "duplicate": {
                      "type": "boolean"
                    },
                    "execution": {
                      "const": "upstream_evaluation"
                    },
                    "environment": {
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "In progress or uncertain; reconcile, never resend with a new key"
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "One account token supports Dream-1, Poke-Aurora, DM0.5 and WALL-OSS-1.0. For rr/wall-oss-1.0 (Franka), provide one synchronized 480×360 RGB JPEG each for front and right_wrist and state [x,y,z,qx,qy,qz,qw,gripper] in the robot base frame, in metres, with a unit quaternion and gripper from 0 (open) to 1 (closed). Omit eef. The result contains 32 absolute targets at 15 Hz. For rr/dm05 use the Mirror (DOS-W1) profile: three 448×448 RGB JPEG frames, one each for cam_high, cam_left_wrist and cam_right_wrist, and a left-first 14-value joint/gripper state in DexOS native units. Omit eef for DM0.5. Production pricing is $0.04 per 1,000 action tokens, one per returned action step. Maximum reservation $0.02048; unused credits are released on settlement. Hardware templates resolve automatically when profile ID/revision are omitted. 2 MiB limit, RGB JPEG data URLs only. Atomic credit reservation, no inference retries. Reusing a request_key returns its receipt without resending or replaying actions. POST returns no actions; read the result explicitly. Not continuous control.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "request_key": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "model": {
                    "type": "string",
                    "enum": [
                      "rr/dream-1",
                      "rr/poke-aurora",
                      "rr/dm05",
                      "rr/wall-oss-1.0"
                    ]
                  },
                  "hardware_profile_id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "hardware_profile_revision": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "mode": {
                    "default": "simulation",
                    "type": "string",
                    "const": "simulation"
                  },
                  "observation": {
                    "type": "object",
                    "properties": {
                      "instruction": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 4096
                      },
                      "state": {
                        "minItems": 8,
                        "maxItems": 14,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      },
                      "images": {
                        "minItems": 1,
                        "maxItems": 3,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "role": {
                              "type": "string",
                              "maxLength": 30
                            },
                            "frames": {
                              "minItems": 1,
                              "maxItems": 9,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "maxLength": 400000
                              }
                            }
                          },
                          "required": [
                            "role",
                            "frames"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "eef": {
                        "type": "object",
                        "properties": {
                          "right": {
                            "type": "object",
                            "properties": {
                              "position": {
                                "minItems": 3,
                                "maxItems": 3,
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "rotation_6d": {
                                "minItems": 6,
                                "maxItems": 6,
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              }
                            },
                            "required": [
                              "position",
                              "rotation_6d"
                            ],
                            "additionalProperties": false
                          },
                          "left": {
                            "type": "object",
                            "properties": {
                              "position": {
                                "minItems": 3,
                                "maxItems": 3,
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              },
                              "rotation_6d": {
                                "minItems": 6,
                                "maxItems": 6,
                                "type": "array",
                                "items": {
                                  "type": "number"
                                }
                              }
                            },
                            "required": [
                              "position",
                              "rotation_6d"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "required": [
                          "right",
                          "left"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "instruction",
                      "state",
                      "images"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "request_key",
                  "model",
                  "mode",
                  "observation"
                ],
                "additionalProperties": false
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listManagedPredictions",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "inference:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "status": {
                            "enum": [
                              "reserved",
                              "sending",
                              "uncertain",
                              "succeeded",
                              "failed"
                            ]
                          },
                          "held_microusd": {
                            "type": "string"
                          },
                          "charged_microusd": {
                            "type": "string"
                          },
                          "rate_version": {
                            "type": "string"
                          },
                          "usage": {
                            "type": "object",
                            "properties": {
                              "action_tokens": {
                                "type": "integer",
                                "minimum": 1
                              }
                            }
                          },
                          "error_code": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "result_available": {
                            "type": "boolean"
                          },
                          "duplicate": {
                            "type": "boolean"
                          },
                          "execution": {
                            "const": "upstream_evaluation"
                          },
                          "environment": {
                            "enum": [
                              "sandbox",
                              "production"
                            ]
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/inference/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readManagedPrediction",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "inference:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "reserved",
                        "sending",
                        "uncertain",
                        "succeeded",
                        "failed"
                      ]
                    },
                    "held_microusd": {
                      "type": "string"
                    },
                    "charged_microusd": {
                      "type": "string"
                    },
                    "rate_version": {
                      "type": "string"
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "action_tokens": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "result_available": {
                      "type": "boolean"
                    },
                    "duplicate": {
                      "type": "boolean"
                    },
                    "execution": {
                      "const": "upstream_evaluation"
                    },
                    "environment": {
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/inference/{id}/result": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHistoricalActions",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "inference:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "reserved",
                        "sending",
                        "uncertain",
                        "succeeded",
                        "failed"
                      ]
                    },
                    "held_microusd": {
                      "type": "string"
                    },
                    "charged_microusd": {
                      "type": "string"
                    },
                    "rate_version": {
                      "type": "string"
                    },
                    "usage": {
                      "type": "object",
                      "properties": {
                        "action_tokens": {
                          "type": "integer",
                          "minimum": 1
                        }
                      }
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "result_available": {
                      "type": "boolean"
                    },
                    "duplicate": {
                      "type": "boolean"
                    },
                    "execution": {
                      "const": "upstream_evaluation"
                    },
                    "environment": {
                      "enum": [
                        "sandbox",
                        "production"
                      ]
                    },
                    "actions": {
                      "type": "object",
                      "properties": {
                        "values": {
                          "type": "array",
                          "items": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            }
                          }
                        }
                      }
                    },
                    "historical": {
                      "const": true
                    },
                    "do_not_auto_execute": {
                      "const": true
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. Account concurrency rejections include Retry-After; keep request_key.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: rejected before any hold or upstream call; no queue. Other 503 errors may be ambiguous: check original request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Explicit historical action retrieval. Does not execute or resend inference. Repeated retrieval must never cause automatic action replay."
      }
    },
    "/annotations": {
      "get": {
        "operationId": "listVideoAnnotations",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/AnnotationJob"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "List the 30 most recent jobs with summary and coarse segments. Fetch an individual job for result.hands (result.v4 on older jobs)."
      }
    },
    "/annotations/{request_key}": {
      "parameters": [
        {
          "name": "request_key",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID."
        }
      ],
      "get": {
        "operationId": "readVideoAnnotation",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationJob"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/annotations/{id}/pose3d": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "get": {
        "operationId": "readAnnotationPosePage",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "type": "object",
                  "properties": {
                    "source_sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "width": {
                      "type": "number",
                      "const": 960
                    },
                    "height": {
                      "type": "number",
                      "const": 540
                    },
                    "coordinates": {
                      "type": "object",
                      "properties": {
                        "joints2d": {
                          "type": "string"
                        },
                        "joints3d": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "joints2d",
                        "joints3d"
                      ],
                      "additionalProperties": false
                    },
                    "tracking": {
                      "type": "object",
                      "properties": {
                        "scope": {
                          "type": "string",
                          "const": "egocentric_single_wearer"
                        },
                        "version": {
                          "type": "string",
                          "enum": [
                            "hand-tracking-v1",
                            "hand-tracking-v2"
                          ]
                        }
                      },
                      "required": [
                        "scope",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    "version": {
                      "type": "string",
                      "const": "datumwell-hand-pose-v2"
                    },
                    "target_fps": {
                      "type": "number",
                      "const": 15
                    },
                    "offset": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "next_offset": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "total_frames": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "frames": {
                      "maxItems": 100,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "frame_id": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "timestamp": {
                            "type": "number",
                            "minimum": 0
                          },
                          "hands": {
                            "maxItems": 2,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "track_id": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "detected_is_right": {
                                  "type": "boolean"
                                },
                                "is_right": {
                                  "type": "boolean"
                                },
                                "score": {
                                  "type": "number"
                                },
                                "bbox": {
                                  "minItems": 4,
                                  "maxItems": 4,
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                },
                                "joints2d": {
                                  "minItems": 21,
                                  "maxItems": 21,
                                  "type": "array",
                                  "items": {
                                    "minItems": 2,
                                    "maxItems": 2,
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "joints3d": {
                                  "minItems": 21,
                                  "maxItems": 21,
                                  "type": "array",
                                  "items": {
                                    "minItems": 3,
                                    "maxItems": 3,
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  }
                                }
                              },
                              "required": [
                                "track_id",
                                "detected_is_right",
                                "is_right",
                                "score",
                                "bbox",
                                "joints2d",
                                "joints3d"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "frame_id",
                          "timestamp",
                          "hands"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "source_sha256",
                    "width",
                    "height",
                    "coordinates",
                    "tracking",
                    "version",
                    "target_fps",
                    "offset",
                    "next_offset",
                    "total_frames",
                    "frames"
                  ],
                  "additionalProperties": false
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 1801
            },
            "description": "Use next_offset from the preceding page."
          }
        ],
        "description": "Read persisted full-task hand tracks. track_id is stable within this task and across pages/retries/seeks; detected_is_right is the original prediction, is_right is the track-stabilized identity. Missing observations remain empty. This is single-wearer association and duplicate suppression, not a correction of joint geometry or multi-person tracking."
      }
    },
    "/annotations/{id}/upload": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "get": {
        "operationId": "readAnnotationUpload",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationUpload"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ]
      }
    },
    "/annotations/{id}/upload-session": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "post": {
        "operationId": "createAnnotationUpload",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationUpload"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Request a short-lived TOS POST form for an MP4, MOV or WebM video up to 50,000,000 bytes. If you receive 429 annotation_upload_limit, complete or cancel an idle upload before creating another. Each side is limited to 4096 pixels, with at most 8,294,400 total pixels. Original uploads can use 29.97 fps or variable frame rates. Send the returned fields followed by the file field to the storage URL without the project token.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "filename",
                  "size_bytes",
                  "sha256"
                ],
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "pose3d": {
                          "const": true
                        }
                      },
                      "required": [
                        "pose3d"
                      ]
                    },
                    "then": {
                      "required": [
                        "pose3d_scope"
                      ]
                    }
                  }
                ],
                "properties": {
                  "filename": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 50000000
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "language": {
                    "enum": [
                      "en",
                      "zh"
                    ],
                    "default": "en"
                  },
                  "pose3d": {
                    "type": "boolean",
                    "default": false,
                    "description": "Optional 3D hand Pose; requires pose3d_scope and source duration at most 120 seconds. The selected success rate is $9/video-hour."
                  },
                  "pose3d_scope": {
                    "const": "egocentric_single_wearer",
                    "description": "Explicit declaration: first-person video showing only one camera wearer’s two hands. Multi-person/third-person tracking is not supported."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/annotations/{id}/upload-complete": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "post": {
        "operationId": "completeAnnotationUpload",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationUpload"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Upload confirmation stores the object and does not start annotation. Submit POST /annotations/{id}/process once before polling, even if processing_mode is automatic. Source integrity is checked before any model call or credit reservation.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "generation"
                ],
                "properties": {
                  "generation": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/annotations/{id}/process": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "post": {
        "operationId": "advanceVideoAnnotation",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationJob"
                }
              }
            }
          },
          "202": {
            "description": "Work remains. Poll GET with the original UUID when processing_mode is automatic. During rollout, otherwise continue with POST /process.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationJob"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Submit the original Annotation job UUID once after confirming the upload. If processing returns 503 service_capacity_exceeded or 503 capacity_busy, wait for Retry-After and retry the original job UUID. Neither response starts upstream work or creates a new credit hold. When processing_mode is automatic, the server processes the remaining stages and clients poll GET. A 202 without processing_mode still uses per-stage POSTs during rollout. After an ambiguous response or timeout, check that job before retrying. During media preparation the receipt stays uploading and preparation.verified_frames counts prepared frames on the internal 30 fps grid. Result seconds are on the original video track, starting at its first displayed frame. The source track duration determines the credit hold and settlement. Translation resumes from saved recognition results. Settlement occurs once after bilingual completion. New jobs expose recovery.automatic=true and retry interrupted or unconfirmed stages automatically for at most two recovery rounds after the initial run, without a new cumulative processing-duration cutoff. Status stays processing with recovery.retrying=true while awaiting recovery. Poll the original UUID. Successful checkpoints and the original hold are reused; lost-response stages may be sent again without a second customer charge. Exhaustion ends as failed with annotation_retry_exhausted under the existing failure billing rules."
      }
    },
    "/annotations/{id}/recover": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "post": {
        "operationId": "recoverVideoAnnotation",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationJob"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Legacy-only explicit opt-in recovery for an inactive uncertain staged job without recovery.automatic=true or 3D Pose, after a 10-minute safety window. Acknowledge that a lost upstream call may already have executed. Preserve the original job UUID, media, attempts, successful checkpoints and credit reservation; no new customer reservation is created. Reuse recovery_key for idempotent recovery retries. At most two recoveries per job; busy, missing-media, exhausted or already-settled jobs require review. After recovery, POST /process once and poll the original UUID. Ordinary status reads and /process never opt in to resending uncertain calls. Uncertain jobs are retained rather than automatically expired or refunded, but leave inactive upload admission after the safety window.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "recovery_key",
                  "acknowledge_possible_duplicate_upstream"
                ],
                "properties": {
                  "recovery_key": {
                    "type": "string",
                    "format": "uuid"
                  },
                  "acknowledge_possible_duplicate_upstream": {
                    "const": true
                  }
                }
              }
            }
          }
        }
      }
    },
    "/annotations/{id}/cancel": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "post": {
        "operationId": "cancelVideoAnnotation",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnnotationJob"
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Cancel an idle unfinished job and release its credit hold."
      }
    },
    "/annotations/{id}/result": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          },
          "description": "The original Annotation job UUID. Reuse it for each stage and retry."
        }
      ],
      "get": {
        "operationId": "readAnnotationResultPage",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "offset": {
                      "type": "integer"
                    },
                    "next_offset": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "segments": {
                      "$schema": "https://json-schema.org/draft/2020-12/schema",
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "start_seconds": {
                            "type": "number"
                          },
                          "end_seconds": {
                            "type": "number"
                          },
                          "label": {
                            "type": "string"
                          },
                          "description": {
                            "type": "string"
                          },
                          "objects": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            }
                          }
                        },
                        "required": [
                          "start_seconds",
                          "end_seconds",
                          "label",
                          "description",
                          "objects"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "hands": {
                      "$schema": "https://json-schema.org/draft/2020-12/schema",
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "string",
                          "const": "hands_actions_v2"
                        },
                        "duration_sec": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "input_fps": {
                          "type": "number",
                          "const": 30
                        },
                        "segments": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "start_s": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "end_s": {
                                "type": [
                                  "number",
                                  "null"
                                ]
                              },
                              "description": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "description_zh": {
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "left": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start_s": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "end_s": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "action": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "action_zh": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "start_s",
                                    "end_s",
                                    "action",
                                    "action_zh"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "right": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "start_s": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "end_s": {
                                      "type": [
                                        "number",
                                        "null"
                                      ]
                                    },
                                    "action": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "action_zh": {
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "start_s",
                                    "end_s",
                                    "action",
                                    "action_zh"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "index",
                              "start_s",
                              "end_s",
                              "description",
                              "description_zh",
                              "left",
                              "right"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "audit": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              },
                              "segment": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              },
                              "hand": {
                                "type": "string",
                                "enum": [
                                  "left",
                                  "right"
                                ]
                              },
                              "event": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "kind",
                              "segment"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "measurement_complete": {
                          "type": "boolean"
                        },
                        "translation_summary": {
                          "type": "object",
                          "properties": {
                            "ok": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "ok"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "version",
                        "duration_sec",
                        "input_fps",
                        "segments",
                        "audit",
                        "measurement_complete",
                        "translation_summary"
                      ],
                      "additionalProperties": false
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0
            }
          }
        ],
        "description": "Retrieve a page of a completed staged result. Follow next_offset and append segments and audit entries in order."
      }
    },
    "/annotation-batches": {
      "post": {
        "operationId": "createAnnotationBatch",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "batch_id",
                    "items"
                  ],
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "job_id",
                          "admission"
                        ],
                        "properties": {
                          "job_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "admission": {
                            "enum": [
                              "accepted",
                              "not_accepted"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "status_url": {
                            "type": "string"
                          },
                          "annotation_url": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Submit 1–10 confirmed standard or 3D Pose video uploads. Each accepted video counts against the account limit even while waiting for processing capacity and keeps its original UUID. Replay an ambiguous submit with the same Idempotency-Key and body.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "required": [
                        "job_id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "job_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/annotation-batches/{batch_id}": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readAnnotationBatch",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid"
                    },
                    "poll_after_seconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Read batch progress and follow next_cursor to page through items."
      }
    },
    "/annotation-batches/{batch_id}/items": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "appendAnnotationBatch",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "batch_id",
                    "items"
                  ],
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "job_id",
                          "admission"
                        ],
                        "properties": {
                          "job_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "admission": {
                            "enum": [
                              "accepted",
                              "not_accepted"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "status_url": {
                            "type": "string"
                          },
                          "annotation_url": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "description": "Submit more confirmed uploads as account slots become available.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "required": [
                        "job_id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "job_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/annotation-batches/{batch_id}/items/{job_id}": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        },
        {
          "name": "job_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readAnnotationBatchItem",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:read",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/AnnotationJob"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "phase": {
                          "type": "string"
                        },
                        "poll_after_seconds": {
                          "type": "integer"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Poll a single batch item. Use the corresponding Annotation result and Pose endpoints to read all pages."
      }
    },
    "/annotation-batches/{batch_id}/cancel": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "closeAnnotationBatch",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "x-required-scope": "annotation:write",
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "closed": {
                      "type": "boolean"
                    },
                    "cancelled": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Rate or account concurrency limit. For account_concurrency_exceeded, wait at least Retry-After seconds, add jitter, and cap retries. Reuse the original Annotation job UUID.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for account concurrency rejections; delay in seconds."
              }
            }
          },
          "503": {
            "description": "service_capacity_exceeded / capacity_busy: this attempt starts no processing and places no new credit hold. Honor Retry-After with jitter and bounded retries using the original Annotation job UUID. For other 503 responses or network timeouts, check the original job status before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Present for capacity rejections; delay in seconds."
              }
            }
          }
        },
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion; a different project is rejected."
          }
        ],
        "description": "Close the batch to new items and cancel pending items that have not started."
      }
    },
    "/hand-pose/jobs/{id}": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHandPoseJob",
        "description": "Read the original job UUID using a token belonging to the same project.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:read",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "poll_after_seconds": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "pose3d_state": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "service": {
                      "const": "rr/hand-pose"
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "processing_mode": {
                      "const": "automatic"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pose3d": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v2"
                                },
                                "target_fps": {
                                  "type": "number",
                                  "const": 15
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "target_fps",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v3"
                                },
                                "output_timeline": {
                                  "type": "string",
                                  "const": "source_frames"
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "output_timeline",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "billing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "currency": {
                          "const": "USD"
                        },
                        "environment": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "sandbox",
                            "production",
                            null
                          ]
                        },
                        "rate_version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "held_microusd": {
                          "type": "string"
                        },
                        "charged_microusd": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/upload-session": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "createHandPoseUpload",
        "description": "Create a resumable upload session with a saved job UUID for up to 600 seconds and 600,000,000 bytes. PUT each numbered part to its storage URL using the returned headers and exact byte count. Send the token only to the API origin. Repeat this request with the original metadata to refresh upload URLs and read received_parts.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status",
                    "upload"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "source_verified": {
                      "type": "boolean"
                    },
                    "storage_backend": {
                      "const": "tos"
                    },
                    "transport": {
                      "const": "tos-multipart-v1"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "size_bytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 600000000
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "pose3d_scope": {
                      "const": "egocentric_single_wearer",
                      "description": "First-person footage of just one camera wearer's hands."
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "upload": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "generation": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "part_size_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "part_count": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "size_bytes": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "url": {
                                "type": "string",
                                "format": "uri"
                              },
                              "headers": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "received_parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "size_bytes": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "etag": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "session_expires_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status",
                    "upload"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "source_verified": {
                      "type": "boolean"
                    },
                    "storage_backend": {
                      "const": "tos"
                    },
                    "transport": {
                      "const": "tos-multipart-v1"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "size_bytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 600000000
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "pose3d_scope": {
                      "const": "egocentric_single_wearer",
                      "description": "First-person footage of just one camera wearer's hands."
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "upload": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "generation": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "part_size_bytes": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "part_count": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "size_bytes": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "url": {
                                "type": "string",
                                "format": "uri"
                              },
                              "headers": {
                                "type": "object",
                                "additionalProperties": {
                                  "type": "string"
                                }
                              }
                            }
                          }
                        },
                        "received_parts": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "size_bytes": {
                                "type": "integer",
                                "minimum": 1
                              },
                              "etag": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "expires_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "session_expires_at": {
                          "type": "string",
                          "format": "date-time"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "filename",
                  "size_bytes",
                  "sha256",
                  "scope"
                ],
                "additionalProperties": false,
                "properties": {
                  "filename": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "size_bytes": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 600000000
                  },
                  "sha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "scope": {
                    "const": "egocentric_single_wearer",
                    "description": "First-person footage of just one camera wearer's hands."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/upload": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHandPoseUpload",
        "description": "Read the upload status using the original job UUID.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:read",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "source_verified": {
                      "type": "boolean"
                    },
                    "storage_backend": {
                      "const": "tos"
                    },
                    "transport": {
                      "const": "tos-multipart-v1"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 160
                    },
                    "size_bytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 600000000
                    },
                    "sha256": {
                      "type": "string",
                      "pattern": "^[a-f0-9]{64}$"
                    },
                    "pose3d_scope": {
                      "const": "egocentric_single_wearer",
                      "description": "First-person footage of just one camera wearer's hands."
                    },
                    "expires_at": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "generation": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "received_parts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "number": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "size_bytes": {
                            "type": "integer",
                            "minimum": 1
                          },
                          "etag": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/upload-complete": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "completeHandPoseUpload",
        "description": "Confirm the uploaded source using the returned generation. Submit processing separately.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "source_state",
                    "source_verified"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "source_state": {
                      "const": "ready"
                    },
                    "source_verified": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "generation"
                ],
                "additionalProperties": false,
                "properties": {
                  "generation": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/process": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "processHandPoseJob",
        "description": "Submit a confirmed upload for keypoint processing. Poll the original job UUID. Sandbox credits are settled once by the server-measured original video duration.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "poll_after_seconds": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "pose3d_state": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "service": {
                      "const": "rr/hand-pose"
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "processing_mode": {
                      "const": "automatic"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pose3d": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v2"
                                },
                                "target_fps": {
                                  "type": "number",
                                  "const": 15
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "target_fps",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v3"
                                },
                                "output_timeline": {
                                  "type": "string",
                                  "const": "source_frames"
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "output_timeline",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "billing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "currency": {
                          "const": "USD"
                        },
                        "environment": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "sandbox",
                            "production",
                            null
                          ]
                        },
                        "rate_version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "held_microusd": {
                          "type": "string"
                        },
                        "charged_microusd": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "poll_after_seconds": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "pose3d_state": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "service": {
                      "const": "rr/hand-pose"
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "processing_mode": {
                      "const": "automatic"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pose3d": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v2"
                                },
                                "target_fps": {
                                  "type": "number",
                                  "const": 15
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "target_fps",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v3"
                                },
                                "output_timeline": {
                                  "type": "string",
                                  "const": "source_frames"
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "output_timeline",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "billing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "currency": {
                          "const": "USD"
                        },
                        "environment": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "sandbox",
                            "production",
                            null
                          ]
                        },
                        "rate_version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "held_microusd": {
                          "type": "string"
                        },
                        "charged_microusd": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/cancel": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "cancelHandPoseJob",
        "description": "Cancel an idle unfinished job and release any reserved credits.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "id",
                    "status"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "status": {
                      "enum": [
                        "uploading",
                        "processing",
                        "completed",
                        "failed",
                        "cancelled",
                        "uncertain"
                      ]
                    },
                    "error_code": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "duration_seconds": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "minimum": 0
                    },
                    "poll_after_seconds": {
                      "type": "integer",
                      "minimum": 1
                    },
                    "pose3d_state": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "service": {
                      "const": "rr/hand-pose"
                    },
                    "source_state": {
                      "type": "string"
                    },
                    "processing_mode": {
                      "const": "automatic"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pose3d": {
                          "$schema": "https://json-schema.org/draft/2020-12/schema",
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v2"
                                },
                                "target_fps": {
                                  "type": "number",
                                  "const": 15
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "target_fps",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "source_sha256": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                },
                                "width": {
                                  "type": "number",
                                  "const": 960
                                },
                                "height": {
                                  "type": "number",
                                  "const": 540
                                },
                                "coordinates": {
                                  "type": "object",
                                  "properties": {
                                    "joints2d": {
                                      "type": "string"
                                    },
                                    "joints3d": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                },
                                "tracking": {
                                  "type": "object",
                                  "properties": {
                                    "scope": {
                                      "type": "string",
                                      "const": "egocentric_single_wearer"
                                    },
                                    "version": {
                                      "type": "string",
                                      "enum": [
                                        "hand-tracking-v1",
                                        "hand-tracking-v2"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "scope",
                                    "version"
                                  ],
                                  "additionalProperties": false
                                },
                                "version": {
                                  "type": "string",
                                  "const": "datumwell-hand-pose-v3"
                                },
                                "output_timeline": {
                                  "type": "string",
                                  "const": "source_frames"
                                },
                                "frames": {
                                  "type": "integer",
                                  "exclusiveMinimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "hands": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "result_endpoint": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "source_sha256",
                                "width",
                                "height",
                                "coordinates",
                                "tracking",
                                "version",
                                "output_timeline",
                                "frames",
                                "hands",
                                "result_endpoint"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      }
                    },
                    "billing": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "currency": {
                          "const": "USD"
                        },
                        "environment": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "enum": [
                            "sandbox",
                            "production",
                            null
                          ]
                        },
                        "rate_version": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "held_microusd": {
                          "type": "string"
                        },
                        "charged_microusd": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/jobs/{id}/result": {
      "parameters": [
        {
          "name": "id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHandPoseResult",
        "description": "Read one page of completed hand tracks and follow next_offset until null. v3 results include every source frame at its actual presentation timestamp in seconds relative to the first displayed frame, including variable-frame-rate input. A frame with no available keypoints has an empty hands array. Each page contains up to 100 frames. v3 summary frames and hands count all returned rows and hands. track_id is local to the job.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:read",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 72000,
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$schema": "https://json-schema.org/draft/2020-12/schema",
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "source_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "width": {
                          "type": "number",
                          "const": 960
                        },
                        "height": {
                          "type": "number",
                          "const": 540
                        },
                        "coordinates": {
                          "type": "object",
                          "properties": {
                            "joints2d": {
                              "type": "string"
                            },
                            "joints3d": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "joints2d",
                            "joints3d"
                          ],
                          "additionalProperties": false
                        },
                        "tracking": {
                          "type": "object",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "const": "egocentric_single_wearer"
                            },
                            "version": {
                              "type": "string",
                              "enum": [
                                "hand-tracking-v1",
                                "hand-tracking-v2"
                              ]
                            }
                          },
                          "required": [
                            "scope",
                            "version"
                          ],
                          "additionalProperties": false
                        },
                        "version": {
                          "type": "string",
                          "const": "datumwell-hand-pose-v2"
                        },
                        "target_fps": {
                          "type": "number",
                          "const": 15
                        },
                        "offset": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "next_offset": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "total_frames": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "frames": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "frame_id": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "timestamp": {
                                "type": "number",
                                "minimum": 0
                              },
                              "hands": {
                                "maxItems": 2,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "track_id": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "detected_is_right": {
                                      "type": "boolean"
                                    },
                                    "is_right": {
                                      "type": "boolean"
                                    },
                                    "score": {
                                      "type": "number"
                                    },
                                    "bbox": {
                                      "minItems": 4,
                                      "maxItems": 4,
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      }
                                    },
                                    "joints2d": {
                                      "minItems": 21,
                                      "maxItems": 21,
                                      "type": "array",
                                      "items": {
                                        "minItems": 2,
                                        "maxItems": 2,
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        }
                                      }
                                    },
                                    "joints3d": {
                                      "minItems": 21,
                                      "maxItems": 21,
                                      "type": "array",
                                      "items": {
                                        "minItems": 3,
                                        "maxItems": 3,
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "track_id",
                                    "detected_is_right",
                                    "is_right",
                                    "score",
                                    "bbox",
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "frame_id",
                              "timestamp",
                              "hands"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "source_sha256",
                        "width",
                        "height",
                        "coordinates",
                        "tracking",
                        "version",
                        "target_fps",
                        "offset",
                        "next_offset",
                        "total_frames",
                        "frames"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "source_sha256": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        },
                        "width": {
                          "type": "number",
                          "const": 960
                        },
                        "height": {
                          "type": "number",
                          "const": 540
                        },
                        "coordinates": {
                          "type": "object",
                          "properties": {
                            "joints2d": {
                              "type": "string"
                            },
                            "joints3d": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "joints2d",
                            "joints3d"
                          ],
                          "additionalProperties": false
                        },
                        "tracking": {
                          "type": "object",
                          "properties": {
                            "scope": {
                              "type": "string",
                              "const": "egocentric_single_wearer"
                            },
                            "version": {
                              "type": "string",
                              "enum": [
                                "hand-tracking-v1",
                                "hand-tracking-v2"
                              ]
                            }
                          },
                          "required": [
                            "scope",
                            "version"
                          ],
                          "additionalProperties": false
                        },
                        "version": {
                          "type": "string",
                          "const": "datumwell-hand-pose-v3"
                        },
                        "output_timeline": {
                          "type": "string",
                          "const": "source_frames"
                        },
                        "offset": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "next_offset": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "total_frames": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "frames": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "frame_id": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "timestamp": {
                                "type": "number",
                                "minimum": 0
                              },
                              "hands": {
                                "maxItems": 2,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "track_id": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "detected_is_right": {
                                      "type": "boolean"
                                    },
                                    "is_right": {
                                      "type": "boolean"
                                    },
                                    "score": {
                                      "type": "number"
                                    },
                                    "bbox": {
                                      "minItems": 4,
                                      "maxItems": 4,
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      }
                                    },
                                    "joints2d": {
                                      "minItems": 21,
                                      "maxItems": 21,
                                      "type": "array",
                                      "items": {
                                        "minItems": 2,
                                        "maxItems": 2,
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        }
                                      }
                                    },
                                    "joints3d": {
                                      "minItems": 21,
                                      "maxItems": 21,
                                      "type": "array",
                                      "items": {
                                        "minItems": 3,
                                        "maxItems": 3,
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        }
                                      }
                                    }
                                  },
                                  "required": [
                                    "track_id",
                                    "detected_is_right",
                                    "is_right",
                                    "score",
                                    "bbox",
                                    "joints2d",
                                    "joints3d"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "frame_id",
                              "timestamp",
                              "hands"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "source_sha256",
                        "width",
                        "height",
                        "coordinates",
                        "tracking",
                        "version",
                        "output_timeline",
                        "offset",
                        "next_offset",
                        "total_frames",
                        "frames"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/batches": {
      "post": {
        "operationId": "createHandPoseBatch",
        "description": "Submit 1–10 confirmed uploads. Inspect admission for each video. Replay an ambiguous request with the same Idempotency-Key and body. When batch_id is null, a new submission uses this endpoint with a fresh key and the original job UUIDs.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "batch_id",
                    "items"
                  ],
                  "properties": {
                    "batch_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "job_id",
                          "admission"
                        ],
                        "properties": {
                          "job_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "admission": {
                            "enum": [
                              "accepted",
                              "not_accepted"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "status_url": {
                            "type": "string"
                          },
                          "hand_pose_url": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "const": "account_concurrency_exceeded"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "No items were accepted, or the request conflicts with a saved submission.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "batch_id",
                        "items"
                      ],
                      "properties": {
                        "batch_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "job_id",
                              "admission"
                            ],
                            "properties": {
                              "job_id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "admission": {
                                "enum": [
                                  "accepted",
                                  "not_accepted"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "status_url": {
                                "type": "string"
                              },
                              "hand_pose_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "const": "account_concurrency_exceeded"
                            }
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Capacity refused every input, or this token reached its request limit.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "batch_id",
                        "items"
                      ],
                      "properties": {
                        "batch_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "job_id",
                              "admission"
                            ],
                            "properties": {
                              "job_id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "admission": {
                                "enum": [
                                  "accepted",
                                  "not_accepted"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "status_url": {
                                "type": "string"
                              },
                              "hand_pose_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "const": "account_concurrency_exceeded"
                            }
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "required": [
                        "job_id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "job_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hand-pose/batches/{batch_id}": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHandPoseBatch",
        "description": "Read the batch summary and follow next_cursor to page through videos.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:read",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "counts": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "integer"
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "job_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "phase": {
                            "type": "string"
                          },
                          "pose_state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "updated_at": {
                            "type": "string",
                            "format": "date-time"
                          },
                          "status_url": {
                            "type": "string"
                          },
                          "hand_pose_url": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "next_cursor": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid"
                    },
                    "poll_after_seconds": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/batches/{batch_id}/items": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "appendHandPoseBatch",
        "description": "Add confirmed uploads or submit unaccepted items by original job UUID when capacity becomes available. Honor Retry-After and use a fresh Idempotency-Key for the new submission.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "batch_id",
                    "items"
                  ],
                  "properties": {
                    "batch_id": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "format": "uuid"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "job_id",
                          "admission"
                        ],
                        "properties": {
                          "job_id": {
                            "type": "string",
                            "format": "uuid"
                          },
                          "admission": {
                            "enum": [
                              "accepted",
                              "not_accepted"
                            ]
                          },
                          "code": {
                            "type": "string"
                          },
                          "status_url": {
                            "type": "string"
                          },
                          "hand_pose_url": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "error": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "const": "account_concurrency_exceeded"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "No items were accepted, or the request conflicts with a saved submission.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "batch_id",
                        "items"
                      ],
                      "properties": {
                        "batch_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "job_id",
                              "admission"
                            ],
                            "properties": {
                              "job_id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "admission": {
                                "enum": [
                                  "accepted",
                                  "not_accepted"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "status_url": {
                                "type": "string"
                              },
                              "hand_pose_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "const": "account_concurrency_exceeded"
                            }
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Capacity refused every input, or this token reached its request limit.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "type": "object",
                      "required": [
                        "batch_id",
                        "items"
                      ],
                      "properties": {
                        "batch_id": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "uuid"
                        },
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "required": [
                              "job_id",
                              "admission"
                            ],
                            "properties": {
                              "job_id": {
                                "type": "string",
                                "format": "uuid"
                              },
                              "admission": {
                                "enum": [
                                  "accepted",
                                  "not_accepted"
                                ]
                              },
                              "code": {
                                "type": "string"
                              },
                              "status_url": {
                                "type": "string"
                              },
                              "hand_pose_url": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "error": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "const": "account_concurrency_exceeded"
                            }
                          }
                        }
                      }
                    },
                    {
                      "$ref": "#/components/schemas/Error"
                    }
                  ]
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "items"
                ],
                "additionalProperties": false,
                "properties": {
                  "items": {
                    "type": "array",
                    "minItems": 1,
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "required": [
                        "job_id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "job_id": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/hand-pose/batches/{batch_id}/items/{job_id}": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        },
        {
          "name": "job_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "get": {
        "operationId": "readHandPoseBatchItem",
        "description": "Read one batch item. After completion, read its Pose result pages using the original job UUID.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:read",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "type": "object",
                      "required": [
                        "id",
                        "status"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "status": {
                          "enum": [
                            "uploading",
                            "processing",
                            "completed",
                            "failed",
                            "cancelled",
                            "uncertain"
                          ]
                        },
                        "error_code": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "duration_seconds": {
                          "type": [
                            "number",
                            "null"
                          ],
                          "minimum": 0
                        },
                        "poll_after_seconds": {
                          "type": "integer",
                          "minimum": 1
                        },
                        "pose3d_state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "service": {
                          "const": "rr/hand-pose"
                        },
                        "source_state": {
                          "type": "string"
                        },
                        "processing_mode": {
                          "const": "automatic"
                        },
                        "result": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "pose3d": {
                              "$schema": "https://json-schema.org/draft/2020-12/schema",
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "source_sha256": {
                                      "type": "string",
                                      "pattern": "^[a-f0-9]{64}$"
                                    },
                                    "width": {
                                      "type": "number",
                                      "const": 960
                                    },
                                    "height": {
                                      "type": "number",
                                      "const": 540
                                    },
                                    "coordinates": {
                                      "type": "object",
                                      "properties": {
                                        "joints2d": {
                                          "type": "string"
                                        },
                                        "joints3d": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "joints2d",
                                        "joints3d"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "tracking": {
                                      "type": "object",
                                      "properties": {
                                        "scope": {
                                          "type": "string",
                                          "const": "egocentric_single_wearer"
                                        },
                                        "version": {
                                          "type": "string",
                                          "enum": [
                                            "hand-tracking-v1",
                                            "hand-tracking-v2"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "scope",
                                        "version"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "version": {
                                      "type": "string",
                                      "const": "datumwell-hand-pose-v2"
                                    },
                                    "target_fps": {
                                      "type": "number",
                                      "const": 15
                                    },
                                    "frames": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "hands": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "result_endpoint": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "source_sha256",
                                    "width",
                                    "height",
                                    "coordinates",
                                    "tracking",
                                    "version",
                                    "target_fps",
                                    "frames",
                                    "hands",
                                    "result_endpoint"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "source_sha256": {
                                      "type": "string",
                                      "pattern": "^[a-f0-9]{64}$"
                                    },
                                    "width": {
                                      "type": "number",
                                      "const": 960
                                    },
                                    "height": {
                                      "type": "number",
                                      "const": 540
                                    },
                                    "coordinates": {
                                      "type": "object",
                                      "properties": {
                                        "joints2d": {
                                          "type": "string"
                                        },
                                        "joints3d": {
                                          "type": "string"
                                        }
                                      },
                                      "required": [
                                        "joints2d",
                                        "joints3d"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "tracking": {
                                      "type": "object",
                                      "properties": {
                                        "scope": {
                                          "type": "string",
                                          "const": "egocentric_single_wearer"
                                        },
                                        "version": {
                                          "type": "string",
                                          "enum": [
                                            "hand-tracking-v1",
                                            "hand-tracking-v2"
                                          ]
                                        }
                                      },
                                      "required": [
                                        "scope",
                                        "version"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "version": {
                                      "type": "string",
                                      "const": "datumwell-hand-pose-v3"
                                    },
                                    "output_timeline": {
                                      "type": "string",
                                      "const": "source_frames"
                                    },
                                    "frames": {
                                      "type": "integer",
                                      "exclusiveMinimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "hands": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    },
                                    "result_endpoint": {
                                      "type": "string"
                                    }
                                  },
                                  "required": [
                                    "source_sha256",
                                    "width",
                                    "height",
                                    "coordinates",
                                    "tracking",
                                    "version",
                                    "output_timeline",
                                    "frames",
                                    "hands",
                                    "result_endpoint"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          }
                        },
                        "billing": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "currency": {
                              "const": "USD"
                            },
                            "environment": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "sandbox",
                                "production",
                                null
                              ]
                            },
                            "rate_version": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "held_microusd": {
                              "type": "string"
                            },
                            "charged_microusd": {
                              "type": "string"
                            }
                          }
                        }
                      }
                    },
                    {
                      "type": "object",
                      "properties": {
                        "phase": {
                          "type": "string"
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    },
    "/hand-pose/batches/{batch_id}/cancel": {
      "parameters": [
        {
          "name": "batch_id",
          "in": "path",
          "required": true,
          "schema": {
            "type": "string",
            "format": "uuid"
          }
        }
      ],
      "post": {
        "operationId": "closeHandPoseBatch",
        "description": "Close the batch to new items and cancel pending videos that have yet to start.",
        "security": [
          {
            "ProjectToken": []
          }
        ],
        "tags": [
          "3D Hand Pose"
        ],
        "x-required-scope": "annotation:write",
        "parameters": [
          {
            "name": "X-Project-ID",
            "in": "header",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Optional assertion of the token's bound project."
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "batch_id": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "closed": {
                      "type": "boolean"
                    },
                    "cancelled": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "410": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "415": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "422": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          },
          "503": {
            "description": "Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            },
            "headers": {
              "Retry-After": {
                "schema": {
                  "type": "string"
                },
                "description": "Delay in seconds, when present."
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ProjectToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "rr_live_<public_id>.<secret>"
      }
    },
    "schemas": {
      "ProfileInput": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "robot": {
            "type": "object",
            "properties": {
              "manufacturer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "arm_count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 2
              },
              "dof": {
                "type": "integer",
                "minimum": 1,
                "maximum": 64
              },
              "joint_order": {
                "minItems": 1,
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                }
              }
            },
            "required": [
              "manufacturer",
              "model",
              "arm_count",
              "dof",
              "joint_order"
            ],
            "additionalProperties": false
          },
          "cameras": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 50
                },
                "width": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8192
                },
                "height": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8192
                }
              },
              "required": [
                "role",
                "width",
                "height"
              ],
              "additionalProperties": false
            }
          },
          "state_schema_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "action_contract": {
            "type": "object",
            "properties": {
              "schema_id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "representation": {
                "type": "string",
                "enum": [
                  "joint_position",
                  "eef_pose_absolute"
                ]
              },
              "frame": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "channel_order": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 60
                }
              },
              "units": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "rad",
                    "m",
                    "dimensionless",
                    "normalized",
                    "native"
                  ]
                }
              },
              "dt_ms": {
                "anyOf": [
                  {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 1000
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "schema_id",
              "representation",
              "frame",
              "channel_order",
              "units",
              "dt_ms"
            ],
            "additionalProperties": false
          },
          "calibration_fingerprint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "adapter_version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          }
        },
        "required": [
          "name",
          "robot",
          "cameras",
          "state_schema_id",
          "action_contract",
          "calibration_fingerprint",
          "adapter_version"
        ],
        "additionalProperties": false
      },
      "Profile": {
        "type": "object",
        "required": [
          "id",
          "revision",
          "payload"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "project_id": {
            "type": "string",
            "format": "uuid"
          },
          "revision": {
            "type": "integer",
            "minimum": 1
          },
          "payload": {
            "$ref": "#/components/schemas/ProfileInput"
          },
          "validation_level": {
            "const": "unverified"
          }
        }
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "request_id": {
                "type": "string",
                "format": "uuid"
              },
              "issues": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          }
        }
      },
      "AnnotationJob": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "status": {
            "enum": [
              "processing",
              "completed",
              "failed",
              "uncertain",
              "uploading",
              "translation_pending",
              "cancelled"
            ]
          },
          "staged": {
            "type": "boolean"
          },
          "result_paged": {
            "type": "boolean"
          },
          "worker_active": {
            "type": "boolean"
          },
          "processing_mode": {
            "const": "automatic",
            "description": "When present, the server advances the job and the client polls GET."
          },
          "preparation": {
            "type": "object",
            "properties": {
              "verified_frames": {
                "type": "integer"
              }
            }
          },
          "progress": {
            "type": "object",
            "properties": {
              "processed_frames": {
                "type": "integer"
              },
              "total_frames": {
                "type": "integer"
              }
            }
          },
          "recovery": {
            "type": "object",
            "description": "Present on jobs enrolled in bounded server-side automatic recovery. Poll the same job UUID; do not submit a replacement job.",
            "properties": {
              "automatic": {
                "const": true
              },
              "retrying": {
                "type": "boolean"
              },
              "retries_used": {
                "type": "integer",
                "minimum": 0,
                "maximum": 2
              },
              "max_retries": {
                "const": 2
              },
              "next_retry_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time"
              }
            }
          },
          "filename": {
            "type": "string"
          },
          "language": {
            "enum": [
              "zh",
              "en"
            ]
          },
          "service": {
            "const": "rr/annotation"
          },
          "model": {
            "const": "rr/annotation",
            "deprecated": true,
            "description": "Legacy alias for service."
          },
          "duration_seconds": {
            "type": [
              "number",
              "null"
            ]
          },
          "result": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "summary": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "segments": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "start_seconds": {
                          "type": "number"
                        },
                        "end_seconds": {
                          "type": "number"
                        },
                        "label": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "objects": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        }
                      },
                      "required": [
                        "start_seconds",
                        "end_seconds",
                        "label",
                        "description",
                        "objects"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "quality": {
                    "type": "string",
                    "const": "experimental"
                  },
                  "sampled_frames": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 300
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "Null for native video: provider-side actual sampled frame count is not reported."
                  },
                  "hands": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "string",
                        "const": "hands_actions_v2"
                      },
                      "duration_sec": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      },
                      "input_fps": {
                        "type": "number",
                        "const": 30
                      },
                      "segments": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "index": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "start_s": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "end_s": {
                              "type": [
                                "number",
                                "null"
                              ]
                            },
                            "description": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "description_zh": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "left": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "start_s": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "end_s": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "action": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "action_zh": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "start_s",
                                  "end_s",
                                  "action",
                                  "action_zh"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "right": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "start_s": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "end_s": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "action": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "action_zh": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "start_s",
                                  "end_s",
                                  "action",
                                  "action_zh"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "index",
                            "start_s",
                            "end_s",
                            "description",
                            "description_zh",
                            "left",
                            "right"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "audit": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string"
                            },
                            "segment": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            },
                            "hand": {
                              "type": "string",
                              "enum": [
                                "left",
                                "right"
                              ]
                            },
                            "event": {
                              "type": "integer",
                              "minimum": -9007199254740991,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "kind",
                            "segment"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "measurement_complete": {
                        "type": "boolean"
                      },
                      "translation_summary": {
                        "type": "object",
                        "properties": {
                          "ok": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "ok"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "version",
                      "duration_sec",
                      "input_fps",
                      "segments",
                      "audit",
                      "measurement_complete",
                      "translation_summary"
                    ],
                    "additionalProperties": false
                  },
                  "v4": {
                    "description": "Legacy bilingual detailed result. Present on the completed upload and job detail. Evidence frame n is at n / evidenceFps seconds. Bounding boxes are pixel [xMin,yMin,xMax,yMax] in each frame's width and height.",
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "string",
                        "const": "v4-english-tsv"
                      },
                      "durationMs": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 120000
                      },
                      "evidenceFps": {
                        "type": "number",
                        "const": 2.5
                      },
                      "subtasks": {
                        "minItems": 1,
                        "maxItems": 10,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "endMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "label": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                },
                                "zh": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "en",
                                "zh"
                              ],
                              "additionalProperties": false
                            },
                            "detail": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 600
                                },
                                "zh": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 600
                                }
                              },
                              "required": [
                                "en",
                                "zh"
                              ],
                              "additionalProperties": false
                            },
                            "tags": {
                              "maxItems": 8,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              }
                            }
                          },
                          "required": [
                            "startMs",
                            "endMs",
                            "label",
                            "detail",
                            "tags"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "segments": {
                        "minItems": 1,
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "startMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "endMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "label": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                },
                                "zh": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 160
                                }
                              },
                              "required": [
                                "en",
                                "zh"
                              ],
                              "additionalProperties": false
                            },
                            "detail": {
                              "type": "object",
                              "properties": {
                                "en": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 600
                                },
                                "zh": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 600
                                }
                              },
                              "required": [
                                "en",
                                "zh"
                              ],
                              "additionalProperties": false
                            },
                            "tags": {
                              "maxItems": 8,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 160
                              }
                            },
                            "subtask": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9
                            },
                            "beats": {
                              "minItems": 1,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "startMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "endMs": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "label": {
                                    "type": "object",
                                    "properties": {
                                      "en": {
                                        "type": "string"
                                      },
                                      "zh": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "en",
                                      "zh"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "structured": {
                                    "type": "object",
                                    "properties": {
                                      "actions": {
                                        "maxItems": 8,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "objectDescription": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "uncertainty": {
                                              "default": null,
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "effector": {
                                              "type": "string",
                                              "enum": [
                                                "left_hand",
                                                "right_hand",
                                                "unknown"
                                              ]
                                            },
                                            "verb": {
                                              "type": "string",
                                              "enum": [
                                                "reach",
                                                "grasp",
                                                "hold",
                                                "move",
                                                "rotate",
                                                "adjust",
                                                "release",
                                                "withdraw",
                                                "other"
                                              ]
                                            },
                                            "description": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 500
                                            },
                                            "span": {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "from": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    "to": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    }
                                                  },
                                                  "required": [
                                                    "from",
                                                    "to"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "evidenceFrames": {
                                              "maxItems": 16,
                                              "type": "array",
                                              "items": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              }
                                            }
                                          },
                                          "required": [
                                            "objectDescription",
                                            "uncertainty",
                                            "effector",
                                            "verb",
                                            "description",
                                            "span",
                                            "evidenceFrames"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "stateChanges": {
                                        "maxItems": 8,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "objectDescription": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "uncertainty": {
                                              "default": null,
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "before": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "after": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "beforeFrame": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "afterFrame": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "objectDescription",
                                            "uncertainty",
                                            "before",
                                            "after",
                                            "beforeFrame",
                                            "afterFrame"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "actions",
                                      "stateChanges"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "zhStructured": {
                                    "type": "object",
                                    "properties": {
                                      "actions": {
                                        "maxItems": 8,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "objectDescription": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "uncertainty": {
                                              "default": null,
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "effector": {
                                              "type": "string",
                                              "enum": [
                                                "left_hand",
                                                "right_hand",
                                                "unknown"
                                              ]
                                            },
                                            "verb": {
                                              "type": "string",
                                              "enum": [
                                                "reach",
                                                "grasp",
                                                "hold",
                                                "move",
                                                "rotate",
                                                "adjust",
                                                "release",
                                                "withdraw",
                                                "other"
                                              ]
                                            },
                                            "description": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 500
                                            },
                                            "span": {
                                              "anyOf": [
                                                {
                                                  "type": "object",
                                                  "properties": {
                                                    "from": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    },
                                                    "to": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 9007199254740991
                                                    }
                                                  },
                                                  "required": [
                                                    "from",
                                                    "to"
                                                  ],
                                                  "additionalProperties": false
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "evidenceFrames": {
                                              "maxItems": 16,
                                              "type": "array",
                                              "items": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 9007199254740991
                                              }
                                            }
                                          },
                                          "required": [
                                            "objectDescription",
                                            "uncertainty",
                                            "effector",
                                            "verb",
                                            "description",
                                            "span",
                                            "evidenceFrames"
                                          ],
                                          "additionalProperties": false
                                        }
                                      },
                                      "stateChanges": {
                                        "maxItems": 8,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "objectDescription": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "uncertainty": {
                                              "default": null,
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "before": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "after": {
                                              "anyOf": [
                                                {
                                                  "type": "string",
                                                  "minLength": 1,
                                                  "maxLength": 500
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "beforeFrame": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "afterFrame": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 9007199254740991
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            }
                                          },
                                          "required": [
                                            "objectDescription",
                                            "uncertainty",
                                            "before",
                                            "after",
                                            "beforeFrame",
                                            "afterFrame"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "actions",
                                      "stateChanges"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "reviewReason": {
                                    "type": "string",
                                    "enum": [
                                      "reduced_detail",
                                      "missing_detail"
                                    ]
                                  }
                                },
                                "required": [
                                  "startMs",
                                  "endMs",
                                  "label",
                                  "structured",
                                  "zhStructured"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "startMs",
                            "endMs",
                            "label",
                            "detail",
                            "tags",
                            "subtask",
                            "beats"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "transitions": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "atMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "startMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "endMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "frames": {
                              "maxItems": 8,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "camera": {
                                    "type": "string",
                                    "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
                                  },
                                  "atMs": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 120000
                                  },
                                  "width": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "height": {
                                    "type": "integer",
                                    "exclusiveMinimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "boxes": {
                                    "maxItems": 3,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "kind": {
                                          "type": "string",
                                          "enum": [
                                            "gripper",
                                            "hand",
                                            "target",
                                            "receptacle"
                                          ]
                                        },
                                        "label": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 160
                                        },
                                        "xyxy": {
                                          "type": "array",
                                          "prefixItems": [
                                            {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            {
                                              "type": "number",
                                              "minimum": 0
                                            }
                                          ],
                                          "items": false,
                                          "minItems": 4,
                                          "maxItems": 4
                                        }
                                      },
                                      "required": [
                                        "kind",
                                        "label",
                                        "xyxy"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "camera",
                                  "atMs",
                                  "width",
                                  "height",
                                  "boxes"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "atMs",
                            "startMs",
                            "endMs",
                            "frames"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "keyframes": {
                        "maxItems": 1,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "camera": {
                              "type": "string",
                              "pattern": "^[a-z0-9][a-z0-9-]{0,39}$"
                            },
                            "atMs": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 120000
                            },
                            "width": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "height": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            },
                            "boxes": {
                              "maxItems": 3,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "enum": [
                                      "gripper",
                                      "hand",
                                      "target",
                                      "receptacle"
                                    ]
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 160
                                  },
                                  "xyxy": {
                                    "type": "array",
                                    "prefixItems": [
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      {
                                        "type": "number",
                                        "minimum": 0
                                      }
                                    ],
                                    "items": false,
                                    "minItems": 4,
                                    "maxItems": 4
                                  }
                                },
                                "required": [
                                  "kind",
                                  "label",
                                  "xyxy"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "camera",
                            "atMs",
                            "width",
                            "height",
                            "boxes"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "durationMs",
                      "evidenceFps",
                      "subtasks",
                      "segments",
                      "transitions"
                    ],
                    "additionalProperties": false
                  },
                  "pose3d": {
                    "type": "object",
                    "properties": {
                      "source_sha256": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "width": {
                        "type": "number",
                        "const": 960
                      },
                      "height": {
                        "type": "number",
                        "const": 540
                      },
                      "coordinates": {
                        "type": "object",
                        "properties": {
                          "joints2d": {
                            "type": "string"
                          },
                          "joints3d": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "joints2d",
                          "joints3d"
                        ],
                        "additionalProperties": false
                      },
                      "tracking": {
                        "type": "object",
                        "properties": {
                          "scope": {
                            "type": "string",
                            "const": "egocentric_single_wearer"
                          },
                          "version": {
                            "type": "string",
                            "enum": [
                              "hand-tracking-v1",
                              "hand-tracking-v2"
                            ]
                          }
                        },
                        "required": [
                          "scope",
                          "version"
                        ],
                        "additionalProperties": false
                      },
                      "version": {
                        "type": "string",
                        "const": "datumwell-hand-pose-v2"
                      },
                      "target_fps": {
                        "type": "number",
                        "const": 15
                      },
                      "frames": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      },
                      "hands": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "result_endpoint": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "source_sha256",
                      "width",
                      "height",
                      "coordinates",
                      "tracking",
                      "version",
                      "target_fps",
                      "frames",
                      "hands",
                      "result_endpoint"
                    ],
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            ]
          },
          "billing": {
            "type": "object",
            "properties": {
              "currency": {
                "const": "USD"
              },
              "environment": {
                "enum": [
                  "sandbox",
                  "production"
                ]
              },
              "rate_version": {
                "type": "string"
              },
              "cost_microusd": {
                "type": "string"
              },
              "charged_microusd": {
                "type": "string"
              },
              "held_microusd": {
                "type": "string"
              }
            }
          },
          "usage": {
            "type": [
              "object",
              "null"
            ],
            "description": "Aggregate token counts when available. Charges are based on duration_seconds."
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "failure": {
            "type": "object",
            "description": "Public details for a confirmed server-side preprocessing failure. GET still returns HTTP 200 for a job in the failed state.",
            "required": [
              "task_id",
              "message",
              "no_charge"
            ],
            "properties": {
              "task_id": {
                "type": "string",
                "format": "uuid"
              },
              "message": {
                "type": "string"
              },
              "no_charge": {
                "type": "boolean",
                "description": "True when the task has no charge or active credit hold."
              }
            }
          },
          "duplicate": {
            "type": "boolean"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AnnotationUpload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "size_bytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50000000
          },
          "sha256": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "language": {
            "enum": [
              "en",
              "zh"
            ],
            "default": "en"
          },
          "pose3d": {
            "type": "boolean",
            "default": false,
            "description": "Optional 3D hand Pose; requires pose3d_scope and source duration at most 120 seconds. The selected success rate is $9/video-hour."
          },
          "pose3d_scope": {
            "const": "egocentric_single_wearer",
            "description": "Explicit declaration: first-person video showing only one camera wearer’s two hands. Multi-person/third-person tracking is not supported."
          },
          "storage_backend": {
            "const": "tos"
          },
          "source_state": {
            "type": "string"
          },
          "upload": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "method": {
                "const": "POST"
              },
              "url": {
                "type": "string",
                "format": "uri"
              },
              "fields": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "generation": {
                "type": "string",
                "format": "uuid"
              }
            }
          },
          "status": {
            "type": "string"
          },
          "expires_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}
