{
  "components": {
    "schemas": {
      "ArtifactContext": {
        "additionalProperties": false,
        "properties": {
          "id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "video",
              "slides",
              "other"
            ],
            "title": "Kind",
            "type": "string"
          },
          "revision": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Revision",
            "type": "string"
          },
          "selection": {
            "default": "",
            "maxLength": 1000,
            "title": "Selection",
            "type": "string"
          },
          "summary": {
            "default": "",
            "maxLength": 8000,
            "title": "Summary",
            "type": "string"
          }
        },
        "required": [
          "kind",
          "id",
          "revision"
        ],
        "title": "ArtifactContext",
        "type": "object"
      },
      "CancelOutput": {
        "additionalProperties": false,
        "properties": {
          "prediction_units": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Prediction Units",
            "type": "integer"
          },
          "status": {
            "enum": [
              "cancelled",
              "suggested",
              "abstained",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status",
          "prediction_units"
        ],
        "title": "CancelOutput",
        "type": "object"
      },
      "ConnectionExchange": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "maxLength": 160,
            "minLength": 32,
            "title": "Code",
            "type": "string"
          },
          "code_verifier": {
            "maxLength": 128,
            "minLength": 43,
            "pattern": "^[A-Za-z0-9._~-]+$",
            "title": "Code Verifier",
            "type": "string"
          },
          "redirect_uri": {
            "maxLength": 2048,
            "minLength": 1,
            "title": "Redirect Uri",
            "type": "string"
          },
          "request_id": {
            "maxLength": 80,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9._:-]+$",
            "title": "Request Id",
            "type": "string"
          },
          "user_id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "user_id",
          "code",
          "code_verifier",
          "redirect_uri"
        ],
        "title": "ConnectionExchange",
        "type": "object"
      },
      "ConnectionExchangeOutput": {
        "additionalProperties": false,
        "properties": {
          "connection_id": {
            "title": "Connection Id",
            "type": "string"
          },
          "grant_revision": {
            "title": "Grant Revision",
            "type": "integer"
          },
          "profile_revision": {
            "title": "Profile Revision",
            "type": "string"
          },
          "status": {
            "const": "connected",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "connection_id",
          "profile_revision",
          "grant_revision",
          "status"
        ],
        "title": "ConnectionExchangeOutput",
        "type": "object"
      },
      "ConnectionStart": {
        "additionalProperties": false,
        "properties": {
          "code_challenge": {
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "title": "Code Challenge",
            "type": "string"
          },
          "redirect_uri": {
            "maxLength": 2048,
            "minLength": 1,
            "title": "Redirect Uri",
            "type": "string"
          },
          "state": {
            "maxLength": 160,
            "minLength": 32,
            "pattern": "^[A-Za-z0-9_-]+$",
            "title": "State",
            "type": "string"
          },
          "user_id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id",
          "redirect_uri",
          "state",
          "code_challenge"
        ],
        "title": "ConnectionStart",
        "type": "object"
      },
      "ConnectionStartOutput": {
        "additionalProperties": false,
        "properties": {
          "authorize_url": {
            "title": "Authorize Url",
            "type": "string"
          },
          "expires_at": {
            "title": "Expires At",
            "type": "integer"
          },
          "request_id": {
            "title": "Request Id",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "expires_at",
          "authorize_url"
        ],
        "title": "ConnectionStartOutput",
        "type": "object"
      },
      "Draft": {
        "additionalProperties": false,
        "properties": {
          "revision": {
            "minimum": 0.0,
            "title": "Revision",
            "type": "integer"
          },
          "text": {
            "maxLength": 8000,
            "title": "Text",
            "type": "string"
          }
        },
        "required": [
          "text",
          "revision"
        ],
        "title": "Draft",
        "type": "object"
      },
      "ErrorDetail": {
        "additionalProperties": false,
        "properties": {
          "code": {
            "title": "Code",
            "type": "string"
          }
        },
        "required": [
          "code"
        ],
        "title": "ErrorDetail",
        "type": "object"
      },
      "ErrorOutput": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        },
        "required": [
          "detail"
        ],
        "title": "ErrorOutput",
        "type": "object"
      },
      "EventInput": {
        "additionalProperties": false,
        "properties": {
          "event_id": {
            "maxLength": 80,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9._:-]+$",
            "title": "Event Id",
            "type": "string"
          },
          "kind": {
            "enum": [
              "presented",
              "accepted",
              "edited",
              "dismissed",
              "submitted"
            ],
            "title": "Kind",
            "type": "string"
          },
          "request_id": {
            "maxLength": 80,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9._:-]+$",
            "title": "Request Id",
            "type": "string"
          },
          "user_id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "event_id",
          "request_id",
          "user_id",
          "kind"
        ],
        "title": "EventInput",
        "type": "object"
      },
      "EventOutput": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "const": "recorded",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "EventOutput",
        "type": "object"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "title": "Detail",
            "type": "array"
          }
        },
        "title": "HTTPValidationError",
        "type": "object"
      },
      "Message": {
        "additionalProperties": false,
        "properties": {
          "content": {
            "maxLength": 8000,
            "title": "Content",
            "type": "string"
          },
          "origin": {
            "default": "unknown",
            "enum": [
              "human",
              "agent",
              "accepted_prediction",
              "edited_prediction",
              "unknown"
            ],
            "title": "Origin",
            "type": "string"
          },
          "role": {
            "enum": [
              "user",
              "assistant",
              "tool"
            ],
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "title": "Message",
        "type": "object"
      },
      "PredictionInput": {
        "additionalProperties": false,
        "properties": {
          "artifact": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ArtifactContext"
              },
              {
                "type": "null"
              }
            ]
          },
          "connection_id": {
            "anyOf": [
              {
                "maxLength": 80,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9._:-]+$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connection Id"
          },
          "context_revision": {
            "maxLength": 200,
            "minLength": 1,
            "title": "Context Revision",
            "type": "string"
          },
          "draft": {
            "$ref": "#/components/schemas/Draft"
          },
          "language": {
            "default": "auto",
            "maxLength": 40,
            "minLength": 2,
            "title": "Language",
            "type": "string"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/Message"
            },
            "maxItems": 30,
            "title": "Messages",
            "type": "array"
          },
          "mode": {
            "enum": [
              "complete_draft",
              "next_prompt"
            ],
            "title": "Mode",
            "type": "string"
          },
          "request_id": {
            "maxLength": 80,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9._:-]+$",
            "title": "Request Id",
            "type": "string"
          },
          "session_id": {
            "maxLength": 80,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9._:-]+$",
            "title": "Session Id",
            "type": "string"
          },
          "user_id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "User Id",
            "type": "string"
          },
          "user_preferences": {
            "default": "",
            "maxLength": 4000,
            "title": "User Preferences",
            "type": "string"
          }
        },
        "required": [
          "request_id",
          "user_id",
          "session_id",
          "mode",
          "draft",
          "context_revision"
        ],
        "title": "PredictionInput",
        "type": "object"
      },
      "PredictionOutput": {
        "additionalProperties": false,
        "properties": {
          "completion": {
            "title": "Completion",
            "type": "string"
          },
          "connection_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Connection Id"
          },
          "context_revision": {
            "title": "Context Revision",
            "type": "string"
          },
          "context_truncated": {
            "title": "Context Truncated",
            "type": "boolean"
          },
          "draft_revision": {
            "title": "Draft Revision",
            "type": "integer"
          },
          "expires_at": {
            "title": "Expires At",
            "type": "integer"
          },
          "grant_revision": {
            "title": "Grant Revision",
            "type": "integer"
          },
          "prediction_id": {
            "title": "Prediction Id",
            "type": "string"
          },
          "profile_revision": {
            "title": "Profile Revision",
            "type": "string"
          },
          "request_id": {
            "title": "Request Id",
            "type": "string"
          },
          "session_id": {
            "title": "Session Id",
            "type": "string"
          },
          "status": {
            "enum": [
              "suggested",
              "abstained"
            ],
            "title": "Status",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/PredictionUsage"
          }
        },
        "required": [
          "request_id",
          "prediction_id",
          "session_id",
          "connection_id",
          "draft_revision",
          "context_revision",
          "profile_revision",
          "grant_revision",
          "status",
          "completion",
          "expires_at",
          "context_truncated",
          "usage"
        ],
        "title": "PredictionOutput",
        "type": "object"
      },
      "PredictionUsage": {
        "additionalProperties": false,
        "properties": {
          "prediction_units": {
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Prediction Units",
            "type": "integer"
          }
        },
        "required": [
          "prediction_units"
        ],
        "title": "PredictionUsage",
        "type": "object"
      },
      "RevokeOutput": {
        "additionalProperties": false,
        "properties": {
          "status": {
            "const": "revoked",
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "title": "RevokeOutput",
        "type": "object"
      },
      "SubjectRequest": {
        "additionalProperties": false,
        "properties": {
          "user_id": {
            "maxLength": 200,
            "minLength": 1,
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "user_id"
        ],
        "title": "SubjectRequest",
        "type": "object"
      },
      "UsageOutput": {
        "additionalProperties": false,
        "properties": {
          "app_id": {
            "title": "App Id",
            "type": "string"
          },
          "billing_model": {
            "default": "manual",
            "title": "Billing Model",
            "type": "string"
          },
          "cap_scope": {
            "default": "app",
            "title": "Cap Scope",
            "type": "string"
          },
          "currency": {
            "const": "USD",
            "title": "Currency",
            "type": "string"
          },
          "invoice_cents": {
            "minimum": 0.0,
            "title": "Invoice Cents",
            "type": "integer"
          },
          "month": {
            "title": "Month",
            "type": "string"
          },
          "monthly_cap_cents": {
            "anyOf": [
              {
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Null means no spending hard limit.",
            "title": "Monthly Cap Cents"
          },
          "paid_prediction_units": {
            "minimum": 0.0,
            "title": "Paid Prediction Units",
            "type": "integer"
          },
          "plan": {
            "enum": [
              "sandbox",
              "paid"
            ],
            "title": "Plan",
            "type": "string"
          },
          "prediction_units": {
            "minimum": 0.0,
            "title": "Prediction Units",
            "type": "integer"
          },
          "reserved_units": {
            "minimum": 0.0,
            "title": "Reserved Units",
            "type": "integer"
          },
          "sandbox_remaining": {
            "minimum": 0.0,
            "title": "Sandbox Remaining",
            "type": "integer"
          }
        },
        "required": [
          "app_id",
          "month",
          "plan",
          "prediction_units",
          "reserved_units",
          "paid_prediction_units",
          "invoice_cents",
          "monthly_cap_cents",
          "sandbox_remaining",
          "currency"
        ],
        "title": "UsageOutput",
        "type": "object"
      },
      "ValidationError": {
        "properties": {
          "ctx": {
            "title": "Context",
            "type": "object"
          },
          "input": {
            "title": "Input"
          },
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "title": "Location",
            "type": "array"
          },
          "msg": {
            "title": "Message",
            "type": "string"
          },
          "type": {
            "title": "Error Type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError",
        "type": "object"
      }
    },
    "securitySchemes": {
      "CloneAppKey": {
        "description": "Server-only app key issued by Clone (clnp_...). Never expose it in browser code.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Clone Tab Completion API",
    "version": "0.1.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/connections": {
      "post": {
        "operationId": "start_v1_connections_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionStart"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionStartOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Start",
        "tags": [
          "Connect Clone"
        ]
      }
    },
    "/v1/connections/exchange": {
      "post": {
        "operationId": "exchange_v1_connections_exchange_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConnectionExchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConnectionExchangeOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Exchange",
        "tags": [
          "Connect Clone"
        ]
      }
    },
    "/v1/connections/{connection_id}/revoke": {
      "post": {
        "operationId": "revoke_v1_connections__connection_id__revoke_post",
        "parameters": [
          {
            "in": "path",
            "name": "connection_id",
            "required": true,
            "schema": {
              "title": "Connection Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Revoke",
        "tags": [
          "Connect Clone"
        ]
      }
    },
    "/v1/prediction-events": {
      "post": {
        "operationId": "event_v1_prediction_events_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EventInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EventOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Event",
        "tags": [
          "Tab Predictions"
        ]
      }
    },
    "/v1/predictions": {
      "post": {
        "operationId": "predictions_v1_predictions_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PredictionInput"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PredictionOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Predictions",
        "tags": [
          "Tab Predictions"
        ]
      }
    },
    "/v1/predictions/{request_id}/cancel": {
      "post": {
        "operationId": "cancel_v1_predictions__request_id__cancel_post",
        "parameters": [
          {
            "in": "path",
            "name": "request_id",
            "required": true,
            "schema": {
              "title": "Request Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubjectRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CancelOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Cancel",
        "tags": [
          "Tab Predictions"
        ]
      }
    },
    "/v1/usage": {
      "get": {
        "operationId": "usage_v1_usage_get",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageOutput"
                }
              }
            },
            "description": "Successful Response"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid connection or request"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Invalid, rotated, revoked or inactive app key"
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Sandbox exhausted or monthly spending cap reached"
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection revoked or access denied"
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Resource unavailable or feature disabled"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Idempotency, in-flight request or context revision conflict"
          },
          "410": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Connection attempt or prediction recovery window expired"
          },
          "413": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Context exceeds the supported envelope"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Rate limit exceeded"
          },
          "499": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction request cancelled"
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider failed"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction service unavailable"
          },
          "504": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorOutput"
                }
              }
            },
            "description": "Prediction provider timed out"
          }
        },
        "security": [
          {
            "CloneAppKey": []
          }
        ],
        "summary": "Usage",
        "tags": [
          "Tab Predictions"
        ]
      }
    }
  }
}
