MCPcopy Create free account

hub / github.com/brightbeanxyz/brightbean-studio / functions

Functions3,156 in github.com/brightbeanxyz/brightbean-studio

↓ 2 callersFunctionbe
(t,n,r)
static/js/htmx.min.js:1
↓ 2 callersFunctionbn
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionbr
()
static/js/alpine.min.js:5
↓ 2 callersFunctionbt
(e)
static/js/htmx.min.js:1
↓ 2 callersFunctionbuild_account_analytics
Assemble the per-channel analytics response. For platforms with no live analytics — either inherently (:data:`NO_ANALYTICS_PLATFORMS`) or bec
apps/analytics/api_builders.py:40
↓ 2 callersFunctionbuild_post_analytics
Assemble per-platform analytics for every child of a Post. Each ``PlatformPost`` gets its own envelope so a mixed-platform post (e.g. one Thr
apps/analytics/api_builders.py:116
↓ 2 callersFunctioncheck_approval_reminders
Check for stalled approvals and send reminders. Should be run periodically (every hour).
apps/approvals/tasks.py:24
↓ 2 callersFunctionclaim_idempotency_slot
Atomic gate at the front of every idempotent POST. Returns a tuple ``(disposition, status, body)`` where ``disposition`` is one of: * ``
apps/api/middleware.py:136
↓ 2 callersFunctionclone_post
Create a fresh DRAFT duplicate of *post* (Clone / Repost). Copies caption, title, first comment, internal notes, tags, category, every per-pl
apps/composer/services.py:286
↓ 2 callersFunctioncn
(e=!1,t=!1)
static/js/alpine.min.js:5
↓ 2 callersFunctioncn
(e,t)
static/js/htmx.min.js:1
↓ 2 callersFunctioncount_recent_creations
Count PlatformPost rows in the platform-budget-consuming states. Filtered to ``QUOTA_CONSUMING_STATUSES`` and to rows whose ``updated_at`` fa
apps/api/limits.py:99
↓ 2 callersFunctionct
(e)
static/js/alpine.min.js:1
↓ 2 callersFunctiondaily_denominator
(index: int)
apps/analytics/derive.py:123
↓ 2 callersFunctiondecrypt_value
Decrypt a base64-encoded nonce+ciphertext string.
apps/common/encryption.py:51
↓ 2 callersFunctiondelete_object
Best-effort delete of an orphaned object (rejected or expired upload). Delegates to ``default_storage`` so the same key normalization applies.
apps/media_library/storage.py:120
↓ 2 callersFunctiondispatch
Route one JSON-RPC message to its handler. Returns: * a response envelope (success or error) for requests * ``None`` for notification
apps/mcp/protocol.py:96
↓ 2 callersFunctiondr
(e=()=>{})
static/js/alpine.min.js:5
↓ 2 callersFunctionencode
(obj: dict)
tests/providers/test_bluesky.py:14
↓ 2 callersFunctionencrypt_value
Encrypt a string and return base64-encoded nonce+ciphertext.
apps/common/encryption.py:42
↓ 2 callersFunctionet
(e)
static/js/alpine.min.js:5
↓ 2 callersMethodexchange_code
Exchange an authorization code for access tokens. ``code_verifier`` is only supplied for providers that set ``uses_pkce = True``; it
providers/base.py:126
↓ 2 callersMethodexchange_code
(self, code: str, redirect_uri: str, code_verifier: str | None = None)
providers/tiktok.py:175
↓ 2 callersFunctionfinalize_idempotent_response
Promote a claimed slot to its real response. No-op when the caller didn't pass a key. Uses ``filter().update()`` rather than ``save()`` to av
apps/api/middleware.py:191
↓ 2 callersFunctionfollower_growth_metric
Same as :func:`follower_growth` but also returns the metric key. Returns ``(metric_key, derived)`` where ``metric_key`` is ``"subscribers"``
apps/analytics/services.py:421
↓ 2 callersMethodfor_org
(self, organization_id)
apps/common/managers.py:14
↓ 2 callersMethodfrom_post
Single source of truth for Post → API response shape. Used by both the REST router and MCP handlers so the two surfaces cannot drift.
apps/api/schemas.py:292
↓ 2 callersFunctionge
(e,t,r,n=[])
static/js/alpine.min.js:5
↓ 2 callersFunctiongenerate_image_thumbnail
Generate a thumbnail from an image file using Pillow.
apps/media_library/services.py:372
↓ 2 callersFunctiongenerate_video_thumbnail
Generate a thumbnail from a video file using ffmpeg.
apps/media_library/services.py:449
↓ 2 callersFunctionget_accepted_file_types
Return a comma-separated string of accepted MIME types for HTML file input.
apps/media_library/validators.py:136
↓ 2 callersMethodget_account_metrics
(self, access_token: str, date_range: tuple[datetime, datetime])
providers/instagram.py:458
↓ 2 callersMethodget_account_metrics
Fetch account-level metrics for a date range.
providers/base.py:166
↓ 2 callersMethodget_account_metrics
(self, access_token: str, date_range: tuple[datetime, datetime])
providers/facebook.py:600
↓ 2 callersMethodget_messages
Fetch inbox messages (comments, mentions, DMs).
providers/base.py:178
↓ 2 callersMethodget_post_metrics
Fetch engagement metrics for a specific post.
providers/base.py:162
↓ 2 callersMethodget_user_pages
Fetch linked Instagram Business accounts for Facebook-login OAuth. The user authenticates through Facebook, but the connected account in
providers/instagram.py:218
↓ 2 callersFunctiongn
(e,t,r)
static/js/alpine.min.js:5
↓ 2 callersMethodhard_delete
Hard-delete this org and settle every member's account. - `requesting_user` (optional): the user who triggered the immediate- delet
apps/organizations/models.py:60
↓ 2 callersFunctionhr
()
static/js/alpine.min.js:5
↓ 2 callersMethodis_pkce_required
(self, client_id, request)
apps/oauth_server/validator.py:29
↓ 2 callersFunctionis_s3_backend
True when ``default_storage`` is the S3/R2 backend (presigning works). Detected by module path rather than ``isinstance`` so we never import the
apps/media_library/storage.py:21
↓ 2 callersFunctionis_valid_hex_color
Boolean form of validate_hex_color for view-layer rejection paths.
apps/common/validators.py:139
↓ 2 callersFunctionjr
(e,t,r)
static/js/alpine.min.js:5
↓ 2 callersFunctionke
(t)
static/js/htmx.min.js:1
↓ 2 callersFunctionkr
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionkt
(e,t)
static/js/alpine.min.js:5
↓ 2 callersFunctionkt
(e)
static/js/htmx.min.js:1
↓ 2 callersFunctionln
(e,t)
static/js/alpine.min.js:5
↓ 2 callersFunctionlt
(e,t)
static/js/alpine.min.js:1
↓ 2 callersFunctionmn
(e,t,r,n,i)
static/js/alpine.min.js:5
↓ 2 callersFunctionmt
(e)
static/js/alpine.min.js:1
↓ 2 callersFunctionne
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionnt
(r,o,i)
static/js/htmx.min.js:1
↓ 2 callersFunctionon
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionpn
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionpn
(e)
static/js/htmx.min.js:1
↓ 2 callersMethodpoll_and_publish
Main poll loop - find and publish due platform posts. Called every ~15 seconds by the background worker. Groups due PlatformPosts by
apps/publisher/engine.py:102
↓ 2 callersFunctionpost_sync_interval
Return the sync interval for a post of the given ``age``. ``None`` means the post is past the 90-day horizon and the background sync no longe
apps/analytics/tasks.py:50
↓ 2 callersMethodpre_social_login
Sync OAuthConnection for returning users and auto-connected accounts.
apps/accounts/adapters.py:25
↓ 2 callersFunctionprocess_image_edit
Apply image edits to create a new version file.
apps/media_library/tasks.py:81
↓ 2 callersFunctionprocess_video_trim
Trim a video and update the version.
apps/media_library/tasks.py:114
↓ 2 callersFunctionprovision_intelligence_account_via_session
Worker fallback for sync activation transient failures. Re-runs Phase 1 + Phase 2 against Intelligence and re-checks the CURRENT OrgMembershi
apps/intelligence/tasks.py:48
↓ 2 callersMethodpublish_comment
Post a comment on an existing post (e.g. first comment).
providers/base.py:154
↓ 2 callersMethodpublish_post
Publish content to the platform.
providers/base.py:151
↓ 2 callersFunctionqe
static/js/alpine.min.js:5
↓ 2 callersMethodquery_creator_info
Query the creator's current posting capabilities. Returns the ``data`` block of ``/v2/post/publish/creator_info/query/``: ``creator_n
providers/tiktok.py:254
↓ 2 callersFunctionredirect_uri_from_request
Rebuild the OAuth redirect URI from the incoming callback request. OAuth token exchange requires the ``redirect_uri`` parameter to match the
apps/social_accounts/oauth_aliases.py:40
↓ 2 callersMethodrefresh_token
Refresh an expired access token.
providers/base.py:134
↓ 2 callersMethodregister_app
Register an OAuth application on a Mastodon instance. Returns a dict with ``client_id`` and ``client_secret``. This only needs to be
providers/mastodon.py:94
↓ 2 callersFunctionregister_uploaded_asset
Create a ``MediaAsset`` for an already-stored object from validated metadata. ``inspected`` is the dict returned by :func:`inspect_uploaded_objec
apps/media_library/services.py:231
↓ 2 callersFunctionresolve_storage_quota
Resolve the org's storage cap in bytes, with provenance. Always returns a StorageQuota — never raises. When ``STORAGE_QUOTA_ENABLED`` is Fals
apps/media_library/quotas.py:110
↓ 2 callersFunctionretry_failed_deliveries
Retry deliveries that are pending and past their next_retry_at. Called by a background task on a periodic schedule. Returns the count of retr
apps/notifications/engine.py:328
↓ 2 callersMethodrun_cycle
Run one full inbox cycle: poll every connected account, then check SLAs. Single shared entry point for the ``run_inbox_sync`` management comm
apps/inbox/tasks.py:38
↓ 2 callersMethodsetUp
(self)
apps/composer/tests/test_account_scope.py:23
↓ 2 callersMethodsetUp
(self)
apps/approvals/test_workflow.py:34
↓ 2 callersFunctionsn
()
static/js/alpine.min.js:5
↓ 2 callersFunctionsn
(e,t)
static/js/htmx.min.js:1
↓ 2 callersMethodstudio_checkout_session
( self, *, external_org_id: str, org_name: str, billing_email: str,
apps/intelligence/services/client.py:120
↓ 2 callersFunctionsweep_orphaned_media
Detect and delete media assets not referenced by any post, idea, or template. Orphans are ``MediaAsset`` rows older than ``min_age_days`` that no
apps/media_library/services.py:630
↓ 2 callersFunctionsync_all_account_analytics
Hourly cron: refresh enabled accounts on the decay-by-age schedule.
apps/analytics/tasks.py:673
↓ 2 callersFunctionte
(e,t)
static/js/alpine.min.js:1
↓ 2 callersMethodtool_view
(request, *args, **kwargs)
apps/members/tests/test_org_permissions.py:96
↓ 2 callersFunctionue
()
static/js/alpine.min.js:1
↓ 2 callersFunctionun
(e,t,r)
static/js/alpine.min.js:5
↓ 2 callersFunctionunavailable_reason
Why ``platform`` has no live analytics, or ``None`` if it does. Combines the two independent gates that the analytics stack honors: * :data:
apps/analytics/services.py:42
↓ 2 callersFunctionused_storage_bytes
Sum of ``MediaAsset.file_size`` for an organization's assets. Live aggregate — fine at realistic scale (a few thousand assets per org). Don't
apps/media_library/quotas.py:133
↓ 2 callersFunctionwindow_delta
(start: dt_date, stop: dt_date)
apps/analytics/services.py:467
↓ 2 callersFunctionwn
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionxe
(e,t,n,r)
static/js/htmx.min.js:1
↓ 2 callersFunctionxn
(e)
static/js/alpine.min.js:5
↓ 2 callersFunctionyr
()
static/js/alpine.min.js:5
↓ 2 callersFunctionze
(e,n,r)
static/js/htmx.min.js:1
↓ 2 callersFunctionzt
(e)
static/js/alpine.min.js:5
↓ 1 callersFunction$e
(e)
static/js/alpine.min.js:5
↓ 1 callersFunction$e
(e,t,r,o)
static/js/htmx.min.js:1
↓ 1 callersFunction$n
(e,t)
static/js/alpine.min.js:5
↓ 1 callersFunction$n
()
static/js/htmx.min.js:1
↓ 1 callersFunctionA
(e)
static/js/htmx.min.js:1
↓ 1 callersFunctionAe
(e)
static/js/alpine.min.js:1
← previousnext →601–700 of 3,156, ranked by callers