{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getmyluna-app/json-schema/getmyluna-app-tokens-response-schema.json",
  "title": "TokensResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getmyluna-app-tokens-api-openapi.yml#/components/schemas/TokensResponse",
  "properties": {
    "tokens": {
      "items": {
        "$ref": "#/$defs/TokenInfo"
      },
      "type": "array",
      "title": "Tokens"
    }
  },
  "type": "object",
  "required": [
    "tokens"
  ],
  "$defs": {
    "TokenInfo": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "username": {
          "type": "string",
          "title": "Username"
        },
        "scopes": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Scopes"
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "id",
        "label",
        "username",
        "scopes",
        "created_at"
      ],
      "title": "TokenInfo"
    }
  }
}