{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/shepherd-vet/json-schema/shepherd-vet-restcollection-model-base-open-api-client-co-owner-controller-client-co-owner-schema.json",
  "title": "RESTCollectionModelBase_OpenApiClientCoOwnerController.ClientCoOwner",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/shepherd-vet-clientcoowner-api-openapi.yml#/components/schemas/RESTCollectionModelBase_OpenApiClientCoOwnerController.ClientCoOwner",
  "type": "object",
  "properties": {
    "embed": {
      "type": "string"
    },
    "item": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OpenApiClientCoOwnerController.ClientCoOwner"
      }
    },
    "page": {
      "format": "int32",
      "type": "integer"
    },
    "recordsPerPage": {
      "format": "int32",
      "type": "integer"
    },
    "searchQuery": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "totalRecords": {
      "format": "int32",
      "type": "integer"
    }
  },
  "$defs": {
    "OpenApiClientCoOwnerController.Client": {
      "description": "Minimal Client REST model returned alongside the co-owner when embed=client is requested.",
      "type": "object",
      "properties": {
        "firstName": {
          "description": "Client first name.",
          "type": "string"
        },
        "identifier": {
          "description": "Short identifier from the client's home-clinic ClientClinicAccount row.",
          "type": "string"
        },
        "lastName": {
          "description": "Client last name.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientCoOwnerController.ClientCoOwner": {
      "description": "ClientCoOwner REST model.",
      "type": "object",
      "properties": {
        "client": {
          "$ref": "#/$defs/OpenApiClientCoOwnerController.Client",
          "description": "Object representing the related Client entity (populated when embed=client)."
        },
        "clientCoOwnerPhones": {
          "description": "Phone numbers attached to the co-owner.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/OpenApiClientCoOwnerController.ClientCoOwnerPhone"
          }
        },
        "clientId": {
          "format": "uuid",
          "description": "Unique identifier of the related Client entity. Also serves as the primary key for the co-owner.",
          "type": "string"
        },
        "email": {
          "description": "Co-owner email.",
          "type": "string"
        },
        "emailMassCommunicationNotification": {
          "description": "Indicates whether the co-owner accepts mass-communication email notifications.",
          "type": "boolean"
        },
        "emailNotification": {
          "description": "Indicates whether the co-owner accepts email notifications.",
          "type": "boolean"
        },
        "firstName": {
          "description": "Co-owner first name.",
          "type": "string"
        },
        "lastName": {
          "description": "Co-owner last name.",
          "type": "string"
        },
        "smsDirectMessagingNotification": {
          "description": "Indicates whether the co-owner accepts SMS direct-messaging notifications.",
          "type": "boolean"
        },
        "smsMassCommunicationNotification": {
          "description": "Indicates whether the co-owner accepts mass-communication SMS notifications.",
          "type": "boolean"
        },
        "smsNotification": {
          "description": "Indicates whether the co-owner accepts SMS notifications.",
          "type": "boolean"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    },
    "OpenApiClientCoOwnerController.ClientCoOwnerPhone": {
      "description": "ClientCoOwnerPhone REST model.",
      "type": "object",
      "properties": {
        "clientCoOwnerId": {
          "description": "Unique identifier of the related ClientCoOwner.",
          "type": "string"
        },
        "countryId": {
          "description": "Country identifier.",
          "type": "string"
        },
        "isPrimary": {
          "description": "Indicates whether this is the primary phone for the co-owner.",
          "type": "boolean"
        },
        "phoneNumber": {
          "description": "Phone number.",
          "type": "string"
        },
        "phoneTypeId": {
          "description": "Phone type identifier.",
          "type": "string"
        },
        "dateCreated": {
          "format": "date-time",
          "type": "string"
        },
        "dateUpdated": {
          "format": "date-time",
          "type": "string"
        },
        "id": {
          "type": "string"
        }
      }
    }
  }
}