{
  "$id": "https://juulio.com/agent-knowledge/v1/schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "oneOf": [
    {
      "additionalProperties": false,
      "properties": {
        "actions": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "consequential": {
                "type": "boolean"
              },
              "description": {
                "minLength": 1,
                "type": "string"
              },
              "id": {
                "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                "type": "string"
              },
              "label": {
                "minLength": 1,
                "type": "string"
              },
              "method": {
                "enum": [
                  "GET",
                  "POST"
                ]
              },
              "path": {
                "pattern": "^/",
                "type": "string"
              },
              "requiresAuthentication": {
                "type": "boolean"
              },
              "requiresConfirmation": {
                "type": "boolean"
              },
              "requiresIdempotency": {
                "type": "boolean"
              },
              "state": {
                "enum": [
                  "read",
                  "prepare",
                  "requires_review",
                  "queued",
                  "completed"
                ]
              }
            },
            "required": [
              "id",
              "state",
              "method",
              "path",
              "consequential",
              "requiresAuthentication",
              "requiresConfirmation",
              "requiresIdempotency",
              "label",
              "description"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "canonicalHumanUrl": {
          "format": "uri",
          "type": "string"
        },
        "contentVersion": {
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "documentType": {
          "const": "catalog"
        },
        "locale": {
          "enum": [
            "en-US",
            "es-ES",
            "fr-FR"
          ]
        },
        "schemaVersion": {
          "const": "1.0.0"
        },
        "topics": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "claims": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "action": {
                      "additionalProperties": false,
                      "properties": {
                        "consequential": {
                          "type": "boolean"
                        },
                        "description": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "id": {
                          "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                          "type": "string"
                        },
                        "label": {
                          "minLength": 1,
                          "type": "string"
                        },
                        "method": {
                          "enum": [
                            "GET",
                            "POST"
                          ]
                        },
                        "path": {
                          "pattern": "^/",
                          "type": "string"
                        },
                        "requiresAuthentication": {
                          "type": "boolean"
                        },
                        "requiresConfirmation": {
                          "type": "boolean"
                        },
                        "requiresIdempotency": {
                          "type": "boolean"
                        },
                        "state": {
                          "enum": [
                            "read",
                            "prepare",
                            "requires_review",
                            "queued",
                            "completed"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "state",
                        "method",
                        "path",
                        "consequential",
                        "requiresAuthentication",
                        "requiresConfirmation",
                        "requiresIdempotency",
                        "label",
                        "description"
                      ],
                      "type": "object"
                    },
                    "appliesTo": {
                      "items": {
                        "enum": [
                          "body_shop",
                          "auto_glass",
                          "custom_shop",
                          "general"
                        ]
                      },
                      "minItems": 1,
                      "type": "array",
                      "uniqueItems": true
                    },
                    "canonicalHumanUrl": {
                      "format": "uri",
                      "type": "string"
                    },
                    "compatibilityLevel": {
                      "enum": [
                        "document_import",
                        "manual_workflow",
                        "works_alongside",
                        "native_integration",
                        "not_supported"
                      ]
                    },
                    "id": {
                      "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                      "type": "string"
                    },
                    "kind": {
                      "enum": [
                        "identity",
                        "audience",
                        "fit",
                        "non_fit",
                        "problem",
                        "outcome",
                        "capability",
                        "limitation",
                        "compatibility",
                        "pricing",
                        "onboarding",
                        "support",
                        "action"
                      ]
                    },
                    "nextReviewAt": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "ownerRole": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "publicEvidenceUrls": {
                      "items": {
                        "format": "uri",
                        "type": "string"
                      },
                      "minItems": 1,
                      "type": "array"
                    },
                    "qualifiers": {
                      "items": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "replacementClaimId": {
                      "type": "string"
                    },
                    "reviewedAt": {
                      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                      "type": "string"
                    },
                    "statement": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "status": {
                      "enum": [
                        "approved",
                        "deprecated"
                      ]
                    },
                    "topicIds": {
                      "items": {
                        "enum": [
                          "overview",
                          "best-fit",
                          "body-shop-operations",
                          "auto-glass-operations",
                          "customer-intake-and-crm",
                          "repair-orders",
                          "document-generator",
                          "estimates-invoices-and-payments",
                          "reports-and-operations",
                          "mobile-and-go",
                          "ai-and-support",
                          "works-alongside",
                          "pricing-trial-and-onboarding",
                          "privacy-security-and-actions"
                        ]
                      },
                      "minItems": 1,
                      "type": "array",
                      "uniqueItems": true
                    }
                  },
                  "required": [
                    "id",
                    "status",
                    "kind",
                    "topicIds",
                    "appliesTo",
                    "statement",
                    "qualifiers",
                    "ownerRole",
                    "canonicalHumanUrl",
                    "publicEvidenceUrls",
                    "reviewedAt",
                    "nextReviewAt"
                  ],
                  "type": "object"
                },
                "minItems": 1,
                "type": "array"
              },
              "id": {
                "enum": [
                  "overview",
                  "best-fit",
                  "body-shop-operations",
                  "auto-glass-operations",
                  "customer-intake-and-crm",
                  "repair-orders",
                  "document-generator",
                  "estimates-invoices-and-payments",
                  "reports-and-operations",
                  "mobile-and-go",
                  "ai-and-support",
                  "works-alongside",
                  "pricing-trial-and-onboarding",
                  "privacy-security-and-actions"
                ]
              },
              "slug": {
                "enum": [
                  "overview",
                  "best-fit",
                  "body-shop-operations",
                  "auto-glass-operations",
                  "customer-intake-and-crm",
                  "repair-orders",
                  "document-generator",
                  "estimates-invoices-and-payments",
                  "reports-and-operations",
                  "mobile-and-go",
                  "ai-and-support",
                  "works-alongside",
                  "pricing-trial-and-onboarding",
                  "privacy-security-and-actions"
                ]
              },
              "summary": {
                "minLength": 1,
                "type": "string"
              },
              "title": {
                "minLength": 1,
                "type": "string"
              }
            },
            "required": [
              "id",
              "slug",
              "title",
              "summary",
              "claims"
            ],
            "type": "object"
          },
          "maxItems": 14,
          "minItems": 14,
          "type": "array"
        }
      },
      "required": [
        "documentType",
        "schemaVersion",
        "contentVersion",
        "locale",
        "canonicalHumanUrl",
        "topics",
        "actions"
      ],
      "type": "object"
    },
    {
      "additionalProperties": false,
      "properties": {
        "actions": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "consequential": {
                "type": "boolean"
              },
              "description": {
                "minLength": 1,
                "type": "string"
              },
              "id": {
                "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                "type": "string"
              },
              "label": {
                "minLength": 1,
                "type": "string"
              },
              "method": {
                "enum": [
                  "GET",
                  "POST"
                ]
              },
              "path": {
                "pattern": "^/",
                "type": "string"
              },
              "requiresAuthentication": {
                "type": "boolean"
              },
              "requiresConfirmation": {
                "type": "boolean"
              },
              "requiresIdempotency": {
                "type": "boolean"
              },
              "state": {
                "enum": [
                  "read",
                  "prepare",
                  "requires_review",
                  "queued",
                  "completed"
                ]
              }
            },
            "required": [
              "id",
              "state",
              "method",
              "path",
              "consequential",
              "requiresAuthentication",
              "requiresConfirmation",
              "requiresIdempotency",
              "label",
              "description"
            ],
            "type": "object"
          },
          "type": "array"
        },
        "canonicalHumanUrl": {
          "format": "uri",
          "type": "string"
        },
        "contentVersion": {
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
          "type": "string"
        },
        "documentType": {
          "const": "topic"
        },
        "locale": {
          "enum": [
            "en-US",
            "es-ES",
            "fr-FR"
          ]
        },
        "schemaVersion": {
          "const": "1.0.0"
        },
        "topic": {
          "additionalProperties": false,
          "properties": {
            "claims": {
              "items": {
                "additionalProperties": false,
                "properties": {
                  "action": {
                    "additionalProperties": false,
                    "properties": {
                      "consequential": {
                        "type": "boolean"
                      },
                      "description": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "id": {
                        "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                        "type": "string"
                      },
                      "label": {
                        "minLength": 1,
                        "type": "string"
                      },
                      "method": {
                        "enum": [
                          "GET",
                          "POST"
                        ]
                      },
                      "path": {
                        "pattern": "^/",
                        "type": "string"
                      },
                      "requiresAuthentication": {
                        "type": "boolean"
                      },
                      "requiresConfirmation": {
                        "type": "boolean"
                      },
                      "requiresIdempotency": {
                        "type": "boolean"
                      },
                      "state": {
                        "enum": [
                          "read",
                          "prepare",
                          "requires_review",
                          "queued",
                          "completed"
                        ]
                      }
                    },
                    "required": [
                      "id",
                      "state",
                      "method",
                      "path",
                      "consequential",
                      "requiresAuthentication",
                      "requiresConfirmation",
                      "requiresIdempotency",
                      "label",
                      "description"
                    ],
                    "type": "object"
                  },
                  "appliesTo": {
                    "items": {
                      "enum": [
                        "body_shop",
                        "auto_glass",
                        "custom_shop",
                        "general"
                      ]
                    },
                    "minItems": 1,
                    "type": "array",
                    "uniqueItems": true
                  },
                  "canonicalHumanUrl": {
                    "format": "uri",
                    "type": "string"
                  },
                  "compatibilityLevel": {
                    "enum": [
                      "document_import",
                      "manual_workflow",
                      "works_alongside",
                      "native_integration",
                      "not_supported"
                    ]
                  },
                  "id": {
                    "pattern": "^[a-z0-9]+(?:[.-][a-z0-9]+)*$",
                    "type": "string"
                  },
                  "kind": {
                    "enum": [
                      "identity",
                      "audience",
                      "fit",
                      "non_fit",
                      "problem",
                      "outcome",
                      "capability",
                      "limitation",
                      "compatibility",
                      "pricing",
                      "onboarding",
                      "support",
                      "action"
                    ]
                  },
                  "nextReviewAt": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "ownerRole": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "publicEvidenceUrls": {
                    "items": {
                      "format": "uri",
                      "type": "string"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "qualifiers": {
                    "items": {
                      "minLength": 1,
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "replacementClaimId": {
                    "type": "string"
                  },
                  "reviewedAt": {
                    "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
                    "type": "string"
                  },
                  "statement": {
                    "minLength": 1,
                    "type": "string"
                  },
                  "status": {
                    "enum": [
                      "approved",
                      "deprecated"
                    ]
                  },
                  "topicIds": {
                    "items": {
                      "enum": [
                        "overview",
                        "best-fit",
                        "body-shop-operations",
                        "auto-glass-operations",
                        "customer-intake-and-crm",
                        "repair-orders",
                        "document-generator",
                        "estimates-invoices-and-payments",
                        "reports-and-operations",
                        "mobile-and-go",
                        "ai-and-support",
                        "works-alongside",
                        "pricing-trial-and-onboarding",
                        "privacy-security-and-actions"
                      ]
                    },
                    "minItems": 1,
                    "type": "array",
                    "uniqueItems": true
                  }
                },
                "required": [
                  "id",
                  "status",
                  "kind",
                  "topicIds",
                  "appliesTo",
                  "statement",
                  "qualifiers",
                  "ownerRole",
                  "canonicalHumanUrl",
                  "publicEvidenceUrls",
                  "reviewedAt",
                  "nextReviewAt"
                ],
                "type": "object"
              },
              "minItems": 1,
              "type": "array"
            },
            "id": {
              "enum": [
                "overview",
                "best-fit",
                "body-shop-operations",
                "auto-glass-operations",
                "customer-intake-and-crm",
                "repair-orders",
                "document-generator",
                "estimates-invoices-and-payments",
                "reports-and-operations",
                "mobile-and-go",
                "ai-and-support",
                "works-alongside",
                "pricing-trial-and-onboarding",
                "privacy-security-and-actions"
              ]
            },
            "slug": {
              "enum": [
                "overview",
                "best-fit",
                "body-shop-operations",
                "auto-glass-operations",
                "customer-intake-and-crm",
                "repair-orders",
                "document-generator",
                "estimates-invoices-and-payments",
                "reports-and-operations",
                "mobile-and-go",
                "ai-and-support",
                "works-alongside",
                "pricing-trial-and-onboarding",
                "privacy-security-and-actions"
              ]
            },
            "summary": {
              "minLength": 1,
              "type": "string"
            },
            "title": {
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id",
            "slug",
            "title",
            "summary",
            "claims"
          ],
          "type": "object"
        }
      },
      "required": [
        "documentType",
        "schemaVersion",
        "contentVersion",
        "locale",
        "canonicalHumanUrl",
        "topic",
        "actions"
      ],
      "type": "object"
    }
  ],
  "title": "Jüulio Agent Knowledge V1"
}
