MCPcopy Create free account

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

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

↓ 10 callersMethod_payload
(self, **overrides)
apps/composer/tests/test_account_scope.py:82
↓ 10 callersMethod_post
(self, photos, url=None)
apps/composer/tests/test_unsplash.py:204
↓ 10 callersMethod_post_json
(self, body)
apps/media_library/tests/test_tag_endpoints.py:59
↓ 10 callersFunction_unsplash_photo
(photo_id="abc123")
apps/composer/tests/test_unsplash.py:41
↓ 10 callersFunctionce
(e,t)
static/js/htmx.min.js:1
↓ 10 callersMethodenabled_platforms
Return the list of platform slugs with analytics enabled. Falls back to "all platforms" if no rows exist yet (fresh DB before the see
apps/social_accounts/models.py:305
↓ 10 callersMethodget_post_metrics
Per-video stats from the ``/v2/video/query/`` endpoint. Requires the ``video.list`` scope. TikTok returns lifetime totals (view/like/
providers/tiktok.py:552
↓ 10 callersMethodlist_plans
(self)
apps/intelligence/services/client.py:98
↓ 10 callersMethodseek
(self, *args)
apps/media_library/services.py:180
↓ 10 callersMethodtransition_to
Transition to a new status, raising ValueError if invalid.
apps/composer/models.py:472
↓ 10 callersFunctiony
(e,t)
static/js/alpine.min.js:1
↓ 9 callersFunction_access_jwt_expires_in
Return seconds until an AT Protocol access JWT expires, or None if unknown. The createSession / refreshSession responses don't include an expiry
providers/bluesky.py:30
↓ 9 callersFunction_dcr_error
RFC 7591 section 3.2.2 error response.
apps/oauth_server/views.py:46
↓ 9 callersFunction_get_workspace
(request, workspace_id)
apps/approvals/views.py:21
↓ 9 callersFunction_init_response
()
tests/providers/test_tiktok.py:387
↓ 9 callersFunction_next_slot_datetimes
Compute the next `count` PostingSlot datetimes for a social account. Starting from `after_dt`, walks forward through the week to find upcomin
apps/calendar/services.py:42
↓ 9 callersFunction_require_perm
Re-check a workspace permission inside a Ninja route body. We can't decorate Ninja routes with ``@require_permission`` because it expects a D
apps/api/routers/posts.py:58
↓ 9 callersFunction_rpc
(method, params=None, *, id_=1)
apps/mcp/tests/test_rest_parity.py:40
↓ 9 callersFunctionf
(e)
static/js/htmx.min.js:1
↓ 9 callersFunctionkind_of
(metric_key: str)
apps/analytics/derive.py:144
↓ 9 callersFunctionle
(e)
static/js/htmx.min.js:1
↓ 9 callersFunctionmake_error
(id_: Any, code: int, message: str, data: Any = None)
apps/mcp/protocol.py:75
↓ 9 callersFunctionrepair_future_published_scheduled_at
Reset ``scheduled_at`` for published posts dragged into the future. Before the ``assign_queue_slots`` guard landed, re-running a queue (adding or
apps/calendar/services.py:386
↓ 8 callersFunctionO
(e)
static/js/htmx.min.js:1
↓ 8 callersFunctionS
(e,t=D,r=()=>{})
static/js/alpine.min.js:5
↓ 8 callersFunctionU
(e,t,r,n,i,o)
static/js/alpine.min.js:5
↓ 8 callersFunction_fake_addrinfo
(ip)
apps/common/tests/test_validators.py:19
↓ 8 callersFunction_label
(metric_key: str)
apps/analytics/services.py:625
↓ 8 callersFunction_make_account
(workspace, platform: str, **kwargs)
apps/api/tests/test_account_capabilities.py:72
↓ 8 callersMethod_patch_client
Patch the pooled httpx.Client so the import never hits the network. client.get(...) handles the per-photo download registration; clie
apps/composer/tests/test_unsplash.py:211
↓ 8 callersFunction_profile
(*, follower_count=0, avatar_url=None, name="", handle=None, platform_id="123")
apps/social_accounts/tests/test_tasks.py:14
↓ 8 callersMethod_publish_platform_post
Publish a single PlatformPost to its target platform. Returns dict: {"success": bool, "platform_post_id": str, "error": str}
apps/publisher/engine.py:208
↓ 8 callersMethod_request
(self, method: str, path: str, *, body: dict | None = None, query: dict | None = None)
apps/intelligence/services/client.py:509
↓ 8 callersFunction_request_upload
(client)
apps/mcp/tests/test_presigned_tools.py:71
↓ 8 callersFunction_sign_state
Create a signed OAuth state parameter.
apps/social_accounts/views.py:113
↓ 8 callersFunction_to_uuid
Safely convert a string to UUID, returning None on failure.
apps/media_library/services.py:801
↓ 8 callersFunction_transition_or_skip
Transition *pp* to *target_status*, returning True on success.
apps/approvals/services.py:53
↓ 8 callersFunction_xml_local_name
Return local XML tag name without namespace.
apps/composer/views.py:3427
↓ 8 callersFunctionae
(e,t)
static/js/htmx.min.js:1
↓ 8 callersFunctionb
(e)
static/js/htmx.min.js:1
↓ 8 callersMethodclose
(self)
apps/composer/views.py:1384
↓ 8 callersMethodget_post_analytics
Per-video metrics from the YouTube Analytics API, batched. Returns ``{video_id: PostMetrics}`` populated with ``extra``: ``watch_time
providers/youtube.py:548
↓ 8 callersFunctioninspect_uploaded_object
Validate an out-of-band-uploaded object SERVER-SIDE; return its metadata. The validation chokepoint for presigned uploads, mirroring ``create_ass
apps/media_library/services.py:184
↓ 8 callersFunctionpkce_kwargs
kwargs to splat into ``get_auth_url`` / ``exchange_code`` for a PKCE verifier. Empty when there is no verifier, so non-PKCE providers are invoked
apps/social_accounts/oauth_pkce.py:37
↓ 8 callersFunctionq
(e)
static/js/alpine.min.js:5
↓ 8 callersFunctionsafe_xml_fromstring
Parse RSS/Atom/Webhook XML safely. Hardens against billion-laughs / quadratic-blowup attacks WITHOUT pulling in the `defusedxml` dependency:
apps/common/validators.py:146
↓ 8 callersMethodsearch
Full-text search on filename and tags. Uses PostgreSQL full-text search when available, falls back to case-insensitive LIKE queries o
apps/media_library/managers.py:40
↓ 8 callersMethodshared_only
Return only shared org-level assets (workspace is null).
apps/media_library/managers.py:20
↓ 8 callersFunctionsync_post_scheduled_at
Keep ``Post.scheduled_at`` in sync with the earliest child time. Three cases: * Some children have a ``scheduled_at`` → set parent to the mi
apps/composer/services.py:22
↓ 8 callersFunctionu
()
static/js/alpine.min.js:1
↓ 8 callersFunctionvalidate_hex_color
Reject any string that isn't a 6-digit hex color (#RRGGBB) or empty. Used as a model-field validator on every user-editable color column. Emp
apps/common/validators.py:127
↓ 7 callersFunctionA
(e,t=()=>{})
static/js/alpine.min.js:5
↓ 7 callersFunctionV
()
static/js/htmx.min.js:1
↓ 7 callersFunction_as_str
Coerce an external/client JSON field to a string. Client- and Unsplash-supplied payloads can carry ``null`` (or numbers) where we expect a UR
apps/composer/views.py:1534
↓ 7 callersMethod_call
(self, client, name, arguments)
apps/mcp/tests/test_rest_parity.py:432
↓ 7 callersFunction_create_or_update_account
Create or update a SocialAccount from OAuth results.
apps/social_accounts/views.py:812
↓ 7 callersFunction_date_range
()
tests/providers/test_youtube.py:15
↓ 7 callersMethod_get_due_platform_posts
Find PlatformPosts due for publishing, using Coalesce fallback.
apps/publisher/engine.py:133
↓ 7 callersMethod_issue
(self, admin_user, workspace, social_account, permissions)
apps/api_keys/tests/test_views.py:493
↓ 7 callersMethod_make_post
(self, user)
apps/intelligence/tests/test_discard_checkout.py:168
↓ 7 callersFunction_render_feeds_tab
Render the feeds tab partial with modal state and first event page.
apps/composer/views.py:3720
↓ 7 callersMethod_request_as
(self, user, *, org_id)
apps/members/tests/test_org_permissions.py:102
↓ 7 callersFunction_resolve_targets
Normalise *target* into ``(post, [platform_posts], is_bundled)``. ``target`` may be a :class:`Post` (returns every child whose current state
apps/approvals/services.py:32
↓ 7 callersMethod_sync_oauth_connection
(self, user, sociallogin)
apps/accounts/adapters.py:31
↓ 7 callersMethod_url
(self, asset_id)
apps/composer/tests/test_media_stream.py:53
↓ 7 callersFunction_validate_rss_url
Validate that a URL points to a reachable RSS/Atom XML feed.
apps/composer/views.py:3742
↓ 7 callersFunction_wants_json_response
Detect whether mutation endpoint should return JSON payload.
apps/composer/views.py:2346
↓ 7 callersMethodbilling_view
(request, *args, **kwargs)
apps/members/tests/test_org_permissions.py:92
↓ 7 callersFunctionfetch_insights_safe
Fetch Meta insights one metric at a time so one invalid metric cannot fail all metrics.
providers/meta_insights.py:70
↓ 7 callersFunctionfrom_url_slug
Return the platform identifier for a URL slug (e.g. ``social1`` → ``tiktok``). Unrecognised slugs pass through so the legacy ``callback/tiktok/``
apps/social_accounts/oauth_aliases.py:31
↓ 7 callersMethodget_auth_url
Generate the OAuth authorization URL. ``code_verifier`` is only supplied for providers that set ``uses_pkce = True``; PKCE providers
providers/base.py:118
↓ 7 callersMethodget_post_metrics
(self, access_token: str, post_id: str)
providers/facebook.py:470
↓ 7 callersMethodget_profile
Fetch the authenticated account's profile information.
providers/base.py:143
↓ 7 callersFunctionissue_pkce_verifier
Return a fresh PKCE ``code_verifier`` when ``provider`` requires PKCE, else None. Callers store the result in the flow's OAuth session payload an
apps/social_accounts/oauth_pkce.py:27
↓ 7 callersFunctionl
()
static/js/alpine.min.js:1
↓ 7 callersFunctiont
(e,t)
static/js/htmx.min.js:1
↓ 7 callersFunctionu
(e,t)
static/js/htmx.min.js:1
↓ 6 callersFunctionS
(e)
static/js/htmx.min.js:1
↓ 6 callersMethod_add
(self, caption="new")
apps/calendar/tests.py:925
↓ 6 callersFunction_call_tool
Shared tool-call shim: dispatch to the per-org IntelligenceAPIClient method, render the result partial, and log a usage event.
apps/intelligence/views.py:1170
↓ 6 callersFunction_coerce_timezone
Return the first candidate that names a real IANA zone, else ``"UTC"``. Guards the ``{% timezone %}`` tag against an unknown/empty user-supplied
apps/calendar/views.py:397
↓ 6 callersFunction_day_view_data
Populate context with day view data (no rendering).
apps/calendar/views.py:886
↓ 6 callersMethod_edit_save_url
(self, post_id)
apps/composer/tests/test_proposed_publish_at.py:99
↓ 6 callersMethod_edit_url
(self, idea_id)
apps/composer/tests/test_idea_media_flows.py:54
↓ 6 callersFunction_get_connection_link_or_none
Look up a ConnectionLink by token, return None if not found.
apps/onboarding/views.py:54
↓ 6 callersFunction_make_jwt
Build a JWT-shaped string (header.payload.signature) — signature is unchecked.
tests/providers/test_bluesky.py:11
↓ 6 callersFunction_make_pending
(*, filename="clip.mp4")
apps/media_library/tests/test_presigned_upload.py:30
↓ 6 callersFunction_make_response
(payload: dict)
tests/providers/test_youtube.py:9
↓ 6 callersFunction_parse_uuid
(value: Any, field_name: str)
apps/mcp/handlers.py:62
↓ 6 callersFunction_register
(client: Client, body: dict)
apps/oauth_server/tests.py:34
↓ 6 callersMethod_save_payload
(self, tags_value, extra=None)
apps/composer/tests/test_save_post_tags.py:48
↓ 6 callersFunction_seed
(workspace, *, name, media_type="image", tags=None, is_starred=False, status="completed")
apps/api/tests/test_media_router.py:268
↓ 6 callersFunction_sign_body
(body: bytes, secret: str)
apps/inbox/tests/test_webhooks.py:43
↓ 6 callersFunction_text
(body)
apps/mcp/tests/test_presigned_tools.py:43
↓ 6 callersMethod_triggers
(self, response)
apps/approvals/test_workflow.py:55
↓ 6 callersFunction_write_slot
Persist one slot assignment to the QueueEntry and its PlatformPost.
apps/calendar/services.py:180
↓ 6 callersFunctiona
(e,t,n,r)
static/js/htmx.min.js:1
↓ 6 callersFunctionadd_post_next_available
Place ``post`` into this queue's first open slot (upsert-aware). Comment §1 (Create · Next Available) and §4 (Edit · Next Available): if the
apps/calendar/services.py:192
↓ 6 callersFunctionconsume_magic_link
Validate and atomically consume a magic link token (single-use). Returns: (user, workspace, is_valid) tuple. If missing/expired/a
apps/client_portal/services.py:107
↓ 6 callersFunctioncreate_asset
Create a new media asset from an uploaded file. The stored mime_type is taken from a magic-byte sniff, NOT from the client-supplied Content-T
apps/media_library/services.py:61
← previousnext →101–200 of 3,156, ranked by callers