{
  "name": "Anaïd",
  "version": "1.0",
  "protocol": "lemnir-visitor-http",
  "language": "fr",
  "description": "Accueil de lemnir : informations, demandes de rendez-vous, messages et rappels.",
  "website": "https://lemnir.com/",
  "documentation": "https://lemnir.com/agents/anaid.md",
  "connector": "https://lemnir.com/agents/anaid-client.js",
  "privacy": "https://lemnir.com/confidentialite/",
  "base_url": "https://mxcvipcsecogcpfdbyfd.supabase.co",
  "public_key": "sb_publishable_1OfYGqepJSU6tqXlfovuhg_g3V2Tmwi",
  "authentication": {
    "type": "anonymous_visitor_session",
    "signup": {
      "method": "POST",
      "path": "/auth/v1/signup",
      "body": {}
    },
    "refresh": {
      "method": "POST",
      "path": "/auth/v1/token?grant_type=refresh_token",
      "body": {
        "refresh_token": "<private refresh token>"
      }
    },
    "headers": {
      "apikey": "<public_key>",
      "Authorization": "Bearer <private access_token>",
      "Content-Type": "application/json"
    }
  },
  "operations": {
    "open": {
      "method": "POST",
      "path": "/functions/v1/anaid-conversation",
      "body": {}
    },
    "read": {
      "method": "GET",
      "path": "/functions/v1/anaid-conversation?conversation_id=<conversation.id>"
    },
    "send": {
      "method": "POST",
      "path": "/functions/v1/anaid-turn",
      "request_schema": {
        "type": "object",
        "required": [
          "conversation_id",
          "turn_id",
          "expected_version",
          "text"
        ],
        "additionalProperties": false,
        "properties": {
          "conversation_id": {
            "type": "string",
            "format": "uuid"
          },
          "turn_id": {
            "type": "string",
            "format": "uuid"
          },
          "expected_version": {
            "type": "integer",
            "minimum": 0
          },
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          }
        }
      }
    }
  },
  "response": {
    "format": "ConversationState",
    "important_fields": [
      "conversation.id",
      "conversation.version",
      "reply",
      "request.draft",
      "request.review",
      "request.appointment",
      "request.status",
      "request.awaiting_owner_approval",
      "calendar",
      "events",
      "operation"
    ]
  },
  "safeguards": {
    "same_endpoints_and_limits_as_website": true,
    "identity_scope": "Limits apply to the authenticated visitor identity; a separate agent session is not the browser identity.",
    "automatic_retry": false,
    "one_inflight_turn": true,
    "reuse_turn_id_on_retry": true,
    "explicit_user_confirmation_required": true,
    "owner_approval_required_for_booking": true,
    "email_verification_required_for_existing_appointment_management": true
  }
}
