Files
orangecat/scripts/list-functions.sh
T
Your NameandClaude Opus 4.5 bcfb0aa8de security: remove all hardcoded secrets from scripts and docs
- Replaced 29 JWT tokens with environment variable references
- Deleted docs/operations/SUPABASE_API_GUIDE.md (contained real keys)
- Removed mcp-servers/node_modules from git tracking (716 files)
- Updated .gitignore to prevent future exposure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 13:11:53 +01:00

26 lines
978 B
Bash

#!/bin/bash
SERVICE_KEY="${SUPABASE_SERVICE_ROLE_KEY}"
BASE_URL="https://ohkueislstxomdjavyhs.supabase.co"
echo "=== Listing all messaging-related functions ==="
curl -s "${BASE_URL}/rest/v1/rpc/" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" 2>&1 | grep -i "message\|conversation\|chat\|read" || echo "Could not list"
echo ""
echo "=== Testing mark_conversation_read ==="
curl -s "${BASE_URL}/rest/v1/rpc/mark_conversation_read" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" \
-H "Content-Type: application/json" \
-d '{"p_conversation_id": "39084687-d46f-48ca-a577-1fa0c1d4d7e2"}' | jq .
echo ""
echo "=== Testing send_message ==="
curl -s "${BASE_URL}/rest/v1/rpc/send_message" \
-H "apikey: ${SERVICE_KEY}" \
-H "Authorization: Bearer ${SERVICE_KEY}" \
-H "Content-Type: application/json" \
-d '{"p_conversation_id": "39084687-d46f-48ca-a577-1fa0c1d4d7e2", "p_content": "Test message"}' | jq .