Update secrets
npx supabase secrets set --env-file ./supabase/functions/.envDeploy function
supabase functions deploy today-channels-summary# 昨日のサマリーを生成
curl "https://your-project.supabase.co/functions/v1/today-channels-summary"
# 今日のサマリーを生成
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?forToday=true"
# デバッグモード(Mattermostに投稿せずに結果を確認)
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?debug=true"
# typeパラメータを明示的に指定(デフォルトと同じ)
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=text"# 昨日のサマリーを日本語音声で生成(デフォルト)
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=audio"
# 昨日のサマリーを英語音声で生成
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=audio&lang=en-US"
# 今日のサマリーを日本語音声で生成
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=audio&forToday=true"
# 今日のサマリーを英語音声で生成
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=audio&forToday=true&lang=en-US"
# 音声サマリーのデバッグモード
curl "https://your-project.supabase.co/functions/v1/today-channels-summary?type=audio&debug=true"type:text(デフォルト) またはaudiotext: テキストサマリーを生成してMattermostに投稿audio: 音声サマリーを生成してWAVファイルをMattermostに投稿
forToday:trueの場合は今日のサマリー、false(デフォルト)の場合は昨日のサマリーdebug:trueの場合はMattermostに投稿せずに結果のみ返すlang:ja-JP(デフォルト) またはen-US- 音声生成時の言語を指定(type=audioの場合のみ有効)
{
"message": "Posted 昨日's channel summary.",
"summary": "ずんだもんなのだ!昨日のMattermost投稿について..."
}{
"message": "Posted 昨日's channel audio summary in ja-JP.",
"audioUrl": "https://storage.googleapis.com/project-id-tts-output/job-id.wav",
"language": "ja-JP"
}{
"message": "Debug mode: Generated summary without posting",
"summary": "...",
"logs": ["Debug log messages..."]
}