{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazee-io/json-schema/amazee-io-trial-access-response-schema.json",
  "title": "TrialAccessResponse",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazee-io-private-ai-keys-openapi.yml#/components/schemas/TrialAccessResponse",
  "properties": {
    "key": {
      "$ref": "#/$defs/PrivateAIKey"
    },
    "user": {
      "$ref": "#/$defs/User"
    },
    "token": {
      "$ref": "#/$defs/Token"
    },
    "team_id": {
      "type": "integer",
      "title": "Team Id"
    },
    "team_name": {
      "type": "string",
      "title": "Team Name"
    }
  },
  "type": "object",
  "required": [
    "key",
    "user",
    "token",
    "team_id",
    "team_name"
  ],
  "$defs": {
    "PrivateAIKey": {
      "properties": {
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "database_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Database Name"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Name"
        },
        "database_host": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Database Host"
        },
        "database_username": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Database Username"
        },
        "database_password": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Database Password"
        },
        "litellm_token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Litellm Token"
        },
        "litellm_api_url": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Litellm Api Url"
        },
        "region": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region"
        },
        "region_label": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Region Label"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        },
        "owner_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Owner Id"
        },
        "team_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Id"
        }
      },
      "type": "object",
      "required": [
        "id"
      ],
      "title": "PrivateAIKey"
    },
    "Token": {
      "properties": {
        "access_token": {
          "type": "string",
          "title": "Access Token"
        },
        "token_type": {
          "type": "string",
          "title": "Token Type"
        }
      },
      "type": "object",
      "required": [
        "access_token",
        "token_type"
      ],
      "title": "Token"
    },
    "User": {
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "title": "Email"
        },
        "id": {
          "type": "integer",
          "title": "Id"
        },
        "is_active": {
          "type": "boolean",
          "title": "Is Active"
        },
        "is_admin": {
          "type": "boolean",
          "title": "Is Admin"
        },
        "team_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Id"
        },
        "team_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Team Name"
        },
        "role": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Role"
        },
        "receive_marketing_updates": {
          "type": "boolean",
          "title": "Receive Marketing Updates",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "email",
        "id",
        "is_active",
        "is_admin"
      ],
      "title": "User"
    }
  }
}