{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/medianfi-com/json-schema/medianfi-com-accountant-assignment-response-schema.json",
  "title": "AccountantAssignmentResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/medianfi-com-accountant-assignments-api-openapi.yml#/components/schemas/AccountantAssignmentResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "data": {
      "$ref": "#/$defs/AccountantAssignment"
    }
  },
  "$defs": {
    "Accountant": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "userId": {
          "type": [
            "string",
            "null"
          ],
          "format": "uuid"
        },
        "displayName": {
          "type": "string"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "bio": {
          "type": [
            "string",
            "null"
          ]
        },
        "avatarUrl": {
          "type": [
            "string",
            "null"
          ]
        },
        "credentials": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "AccountantAssignment": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "companyId": {
          "type": "string",
          "format": "uuid"
        },
        "accountantId": {
          "type": "string",
          "format": "uuid"
        },
        "assignedAt": {
          "type": "string",
          "format": "date-time"
        },
        "isPrimary": {
          "type": "boolean"
        },
        "accountant": {
          "$ref": "#/$defs/Accountant"
        }
      }
    }
  }
}