Appearance
Edge Function Index
71 edge functions under supabase/functions/ (excluding _shared). Type is inferred heuristically from the source — verify against the function before relying on it. See Backend architecture for the Type A / Type B model and the shared entrypoint pattern.
| Function | Type (inferred) | Purpose | Tests |
|---|---|---|---|
admin-index-expiry | Type A (admin) | Admin-only mutations for index_expiry_map (bulk upsert dates / edit one / delete). | ✅ |
admin-index-historical | Type A (admin) | Admin-only bulk upload of historical OHLC data. Target table is resolved from | ✅ |
admin-index-weightage | Type A (admin) | Admin-only mutations for nse_index_weightages (bulk CSV upload / delete one). | ✅ |
admin-quick-access-controls | Type A (admin) | Admin-only mutations for the quick_access_controls table (create / update / | ✅ |
admin-user-role | Type A (admin) | Admin-only toggle of the profiles.is_admin flag. Reads (the user list) are | ✅ |
daily-scheduled-clean-up | Type B (cron/internal) | Cron-triggered Edge Function that deletes stale rows from registered tables, | ✅ |
fetch-and-store-nse-indices | Type B (cron/internal) | — | — |
fetch-banknifty-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY BANK constituent data | ✅ |
fetch-finserv-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY FINANCIAL SERVICES | ✅ |
fetch-ipo-current-issue | Type B (cron/internal) | — | — |
fetch-midcap-select-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY MIDCAP SELECT | ✅ |
fetch-nifty-next50-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY NEXT 50 | ✅ |
fetch-nifty50-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY 50 constituent data | ✅ |
fetch-nifty500-contributors | Type B (cron/internal) | Cron-triggered Edge Function that fetches live NIFTY 500 constituent data | ✅ |
fetch-nse-all-indices | Type B (cron/internal) | — | — |
fetch-nse-all-stocks-traded | Type B (cron/internal) | — | — |
fetch-nse-market-indices | Type B (cron/internal) | — | — |
fetch-nse-market-status | Type B (cron/internal) | — | — |
fetch-nse-most-active-equities-by-value | Type B (cron/internal) | — | — |
fetch-nse-most-active-equities-by-volume | Type B (cron/internal) | — | — |
fetch-nse-oi-spurts | Type B (cron/internal) | — | — |
fetch-nse-trading-holidays | Type B (cron/internal) | — | — |
fetch-nse-volume-gainers | Type B (cron/internal) | — | — |
fetch-option-chain-live | Type B (cron/internal) | — | — |
finfluencify-email-outbox-sweep | Type B (cron/internal) | Drains finfluencify_email_outbox to ZeptoMail (India DC, HTTP API). Each tick: | ✅ |
finfluencify-get-image-upload-url | Type A (authenticated) | Provisions a Cloudflare Images Direct Creator Upload URL for a course | ✅ |
finfluencify-get-video-upload-url | Type A (authenticated) | Provisions a Cloudflare Stream Direct Creator Upload URL for a lesson video | ✅ |
finfluencify-live-session-cancel | Type A (authenticated) | Cancels a trainer's live class: ownership check → provider.cancelMeeting() | ✅ |
finfluencify-live-session-join | Type A (authenticated) | Returns an embedded-join payload for the Zoom Meeting SDK so the class renders | ✅ |
finfluencify-live-session-poll | Type A (authenticated) | Trainer-owned in-class poll lifecycle over the reused Engagement poll schema: | ✅ |
finfluencify-live-session-reminder-sweep | Type B (cron/internal) | Enqueues T-24h / T-1h / live-now in-app reminders for upcoming live classes. | ✅ |
finfluencify-live-session-resend-invite | Type A (authenticated) | Lets a trainer re-send an upcoming live class's in-app notification to the | ✅ |
finfluencify-live-session-save | Type A (authenticated) | Creates a live class (no session_id in the body) or edits one (session_id | ✅ |
finfluencify-save-course | Type A (authenticated) | Server-side gateway for all course create / update operations. | ✅ |
finfluencify-stream-webhook | Webhook (signature-verified) | Cloudflare Stream webhook handler. Cloudflare calls this URL when a video | ✅ |
finfluencify-zoom-connect | Type A (authenticated) | Per-trainer Zoom OAuth connect. Two actions on one endpoint: | ✅ |
finfluencify-zoom-disconnect | Type A (authenticated) | Disconnects the calling trainer's Zoom account: best-effort token revoke at | ✅ |
finfluencify-zoom-webhook | Webhook (signature-verified) | Inbound Zoom webhook handler. The caller is Zoom's infrastructure, not a | ✅ |
get-ad-for-placement | Review (uninferred) | — | — |
get-ads-for-placements-batch | Review (uninferred) | — | — |
habit-tracker-toggle-entry | Type A (authenticated) | Server-side gateway for all Habit Tracker toggle operations. | ✅ |
notifications-fanout | Review (uninferred) | Cron-triggered Edge Function (Type B — no JWT verification) that processes | ✅ |
profile-complete-onboarding | Type A (authenticated) | Atomically completes platform onboarding for a new user. | ✅ |
profile-update | Type A (authenticated) | Allows an authenticated user to update their own editable profile fields. | ✅ |
psychology-behavioral-signals-cron | Type B (cron/internal) | Scheduled batch compute for behavioral intelligence scores. | — |
psychology-builder-save-archetype | Type A (authenticated) | Server-side gateway for all Trader Profile archetype mutations. | ✅ |
psychology-builder-save-rule | Type A (authenticated) | Server-side gateway for Psychology Builder trading rule mutations. | ✅ |
psychology-compute-behavioral-signals | Type A (authenticated) | Behavioral intelligence compute engine — user-triggered path. | ✅ |
psychology-save-checkin | Type A (authenticated) | Persists the daily pre-market ritual check-in for Psychology Builder. | ✅ |
refresh-materialized-views | Review (uninferred) | Type B — Cron / Internal Edge Function | ✅ |
refresh-momentum-leaders | Review (uninferred) | — | — |
refresh-volume-decliners | Review (uninferred) | — | — |
risk-radar-save-profile | Type A (authenticated) | Server-side gateway for all Risk Radar profile upsert operations. | ✅ |
session-review-save | Type A (authenticated) | Server-side gateway for all session_review_entries mutations. | — |
shoonya-nse-indices | Review (uninferred) | — | — |
trade-broker-account-save | Type A (authenticated) | — | ✅ |
trade-broker-delete | Type A (authenticated) | — | ✅ |
trade-broker-save | Type A (authenticated) | — | ✅ |
trade-journal-save | Review (uninferred) | — | — |
trade-planner-hub-settings | Type A (authenticated) | Enables or disables the Trade Hub for the authenticated user. | ✅ |
trade-planner-hub-toggle | Type A (authenticated) | Publishes or unpublishes a trade plan on the authenticated trader's public hub. | ✅ |
trade-planner-lifecycle | Type A (authenticated) | Manages explicit lifecycle state transitions for trade_planner_plans rows. | — |
trade-planner-lifecycle-sweep | Type B (cron/internal) | Cron-triggered Edge Function (Type B — no JWT verification). | — |
trade-planner-media-cleanup | Review (uninferred) | Daily cron job that deletes orphaned R2 objects for uploads that were | ✅ |
trade-planner-media-upload | Type A (authenticated) | Provisions a presigned PUT URL for uploading a chart attachment directly | ✅ |
trade-planner-save | Type A (authenticated) | Server-side gateway for all trade_planner_plans mutations. | — |
trade-planner-session-close | Review (uninferred) | Cron-triggered Edge Function (Type B — no JWT verification). | — |
trade-planner-share | Type A (authenticated) | Manages sharing of trade plans — creating share links, revoking them, and | ✅ |
trade-planner-update | Type A (authenticated) | Appends execution log entries to trade_plan_updates. | — |
trade-planner-view-shared | Public / optional auth | Public-capable endpoint for viewing a trade plan shared via a share token. | ✅ |
validate-email | Review (uninferred) | — | — |
Generated file
Do not edit by hand. Regenerate with npm run docs:gen after adding or changing an edge function.