{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/treg-to/json-schema/treg-to-oauth-start-in-schema.json",
  "title": "OAuthStartIn",
  "description": "Two modes. BYO: supply client_id/client_secret/auth_uri/token_uri/scopes yourself.\nREGISTRY: supply `provider` (+ optional `capability`) and treg fills all of it from its own\napproved app — see oauth_providers.py.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/treg-to-openapi.json#/components/schemas/OAuthStartIn",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name",
      "default": ""
    },
    "provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Provider"
    },
    "capability": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Capability"
    },
    "connection_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Connection Id"
    },
    "client_id": {
      "type": "string",
      "title": "Client Id",
      "default": ""
    },
    "client_secret": {
      "type": "string",
      "title": "Client Secret",
      "default": ""
    },
    "auth_uri": {
      "type": "string",
      "title": "Auth Uri",
      "default": "https://accounts.google.com/o/oauth2/auth"
    },
    "token_uri": {
      "type": "string",
      "title": "Token Uri",
      "default": "https://oauth2.googleapis.com/token"
    },
    "scopes": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Scopes",
      "default": []
    },
    "redirect_uri": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Redirect Uri"
    }
  },
  "type": "object"
}