{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/1password/refs/heads/main/json-schema/1password-connect-vault-schema.json",
  "title": "Vault",
  "description": "Represents a 1Password vault that contains items. Vaults are used to organize and control access to secrets.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "The unique identifier for the vault."
    },
    "name": {
      "type": "string",
      "description": "The name of the vault."
    },
    "description": {
      "type": "string",
      "description": "A description of the vault's purpose."
    },
    "attributeVersion": {
      "type": "integer",
      "description": "The version of the vault attributes."
    },
    "contentVersion": {
      "type": "integer",
      "description": "The version of the vault contents."
    },
    "items": {
      "type": "integer",
      "description": "The number of items in the vault."
    },
    "type": {
      "type": "string",
      "description": "The type of the vault.",
      "enum": [
        "USER_CREATED",
        "PERSONAL",
        "EVERYONE",
        "TRANSFER"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the vault was created."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time the vault was last updated."
    }
  }
}