Skip to content

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.

FunctionType (inferred)PurposeTests
admin-index-expiryType A (admin)Admin-only mutations for index_expiry_map (bulk upsert dates / edit one / delete).
admin-index-historicalType A (admin)Admin-only bulk upload of historical OHLC data. Target table is resolved from
admin-index-weightageType A (admin)Admin-only mutations for nse_index_weightages (bulk CSV upload / delete one).
admin-quick-access-controlsType A (admin)Admin-only mutations for the quick_access_controls table (create / update /
admin-user-roleType A (admin)Admin-only toggle of the profiles.is_admin flag. Reads (the user list) are
daily-scheduled-clean-upType B (cron/internal)Cron-triggered Edge Function that deletes stale rows from registered tables,
fetch-and-store-nse-indicesType B (cron/internal)
fetch-banknifty-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY BANK constituent data
fetch-finserv-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY FINANCIAL SERVICES
fetch-ipo-current-issueType B (cron/internal)
fetch-midcap-select-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY MIDCAP SELECT
fetch-nifty-next50-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY NEXT 50
fetch-nifty50-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY 50 constituent data
fetch-nifty500-contributorsType B (cron/internal)Cron-triggered Edge Function that fetches live NIFTY 500 constituent data
fetch-nse-all-indicesType B (cron/internal)
fetch-nse-all-stocks-tradedType B (cron/internal)
fetch-nse-market-indicesType B (cron/internal)
fetch-nse-market-statusType B (cron/internal)
fetch-nse-most-active-equities-by-valueType B (cron/internal)
fetch-nse-most-active-equities-by-volumeType B (cron/internal)
fetch-nse-oi-spurtsType B (cron/internal)
fetch-nse-trading-holidaysType B (cron/internal)
fetch-nse-volume-gainersType B (cron/internal)
fetch-option-chain-liveType B (cron/internal)
finfluencify-email-outbox-sweepType B (cron/internal)Drains finfluencify_email_outbox to ZeptoMail (India DC, HTTP API). Each tick:
finfluencify-get-image-upload-urlType A (authenticated)Provisions a Cloudflare Images Direct Creator Upload URL for a course
finfluencify-get-video-upload-urlType A (authenticated)Provisions a Cloudflare Stream Direct Creator Upload URL for a lesson video
finfluencify-live-session-cancelType A (authenticated)Cancels a trainer's live class: ownership check → provider.cancelMeeting()
finfluencify-live-session-joinType A (authenticated)Returns an embedded-join payload for the Zoom Meeting SDK so the class renders
finfluencify-live-session-pollType A (authenticated)Trainer-owned in-class poll lifecycle over the reused Engagement poll schema:
finfluencify-live-session-reminder-sweepType B (cron/internal)Enqueues T-24h / T-1h / live-now in-app reminders for upcoming live classes.
finfluencify-live-session-resend-inviteType A (authenticated)Lets a trainer re-send an upcoming live class's in-app notification to the
finfluencify-live-session-saveType A (authenticated)Creates a live class (no session_id in the body) or edits one (session_id
finfluencify-save-courseType A (authenticated)Server-side gateway for all course create / update operations.
finfluencify-stream-webhookWebhook (signature-verified)Cloudflare Stream webhook handler. Cloudflare calls this URL when a video
finfluencify-zoom-connectType A (authenticated)Per-trainer Zoom OAuth connect. Two actions on one endpoint:
finfluencify-zoom-disconnectType A (authenticated)Disconnects the calling trainer's Zoom account: best-effort token revoke at
finfluencify-zoom-webhookWebhook (signature-verified)Inbound Zoom webhook handler. The caller is Zoom's infrastructure, not a
get-ad-for-placementReview (uninferred)
get-ads-for-placements-batchReview (uninferred)
habit-tracker-toggle-entryType A (authenticated)Server-side gateway for all Habit Tracker toggle operations.
notifications-fanoutReview (uninferred)Cron-triggered Edge Function (Type B — no JWT verification) that processes
profile-complete-onboardingType A (authenticated)Atomically completes platform onboarding for a new user.
profile-updateType A (authenticated)Allows an authenticated user to update their own editable profile fields.
psychology-behavioral-signals-cronType B (cron/internal)Scheduled batch compute for behavioral intelligence scores.
psychology-builder-save-archetypeType A (authenticated)Server-side gateway for all Trader Profile archetype mutations.
psychology-builder-save-ruleType A (authenticated)Server-side gateway for Psychology Builder trading rule mutations.
psychology-compute-behavioral-signalsType A (authenticated)Behavioral intelligence compute engine — user-triggered path.
psychology-save-checkinType A (authenticated)Persists the daily pre-market ritual check-in for Psychology Builder.
refresh-materialized-viewsReview (uninferred)Type B — Cron / Internal Edge Function
refresh-momentum-leadersReview (uninferred)
refresh-volume-declinersReview (uninferred)
risk-radar-save-profileType A (authenticated)Server-side gateway for all Risk Radar profile upsert operations.
session-review-saveType A (authenticated)Server-side gateway for all session_review_entries mutations.
shoonya-nse-indicesReview (uninferred)
trade-broker-account-saveType A (authenticated)
trade-broker-deleteType A (authenticated)
trade-broker-saveType A (authenticated)
trade-journal-saveReview (uninferred)
trade-planner-hub-settingsType A (authenticated)Enables or disables the Trade Hub for the authenticated user.
trade-planner-hub-toggleType A (authenticated)Publishes or unpublishes a trade plan on the authenticated trader's public hub.
trade-planner-lifecycleType A (authenticated)Manages explicit lifecycle state transitions for trade_planner_plans rows.
trade-planner-lifecycle-sweepType B (cron/internal)Cron-triggered Edge Function (Type B — no JWT verification).
trade-planner-media-cleanupReview (uninferred)Daily cron job that deletes orphaned R2 objects for uploads that were
trade-planner-media-uploadType A (authenticated)Provisions a presigned PUT URL for uploading a chart attachment directly
trade-planner-saveType A (authenticated)Server-side gateway for all trade_planner_plans mutations.
trade-planner-session-closeReview (uninferred)Cron-triggered Edge Function (Type B — no JWT verification).
trade-planner-shareType A (authenticated)Manages sharing of trade plans — creating share links, revoking them, and
trade-planner-updateType A (authenticated)Appends execution log entries to trade_plan_updates.
trade-planner-view-sharedPublic / optional authPublic-capable endpoint for viewing a trade plan shared via a share token.
validate-emailReview (uninferred)

Generated file

Do not edit by hand. Regenerate with npm run docs:gen after adding or changing an edge function.