MCPcopy Create free account

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

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

↓ 225 callersMethodpost
(self, request, *args, **kwargs)
apps/oauth_server/views.py:104
↓ 193 callersMethodsave
(self, *args, **kwargs)
apps/credentials/models.py:93
↓ 142 callersMethod_request
Make an HTTP request with standard error handling. Raises APIError on 4xx/5xx, RateLimitError on 429.
providers/base.py:206
↓ 85 callersFunctionset
({objects:e},t,r,n)
static/js/alpine.min.js:1
↓ 63 callersMethodcreate_user
(self, email, password=None, **extra_fields)
apps/accounts/models.py:10
↓ 63 callersMethodfor_workspace
(self, workspace_id)
apps/common/managers.py:25
↓ 53 callersFunctionne
()
static/js/htmx.min.js:1
↓ 51 callersFunction_get_workspace
Resolve workspace and enforce membership check.
apps/composer/views.py:58
↓ 50 callersMethodall
(self)
apps/api/auth.py:220
↓ 49 callersFunctionhe
(e,t,n)
static/js/htmx.min.js:1
↓ 41 callersFunctionse
(t,n)
static/js/htmx.min.js:1
↓ 39 callersFunctionue
(e)
static/js/htmx.min.js:1
↓ 33 callersFunction_resp
(data)
tests/providers/test_facebook.py:17
↓ 33 callersFunction_rpc
(method: str, params: dict | None = None, *, id_: int | str | None = 1)
apps/mcp/tests/test_transport.py:50
↓ 32 callersFunctionget_provider
Instantiate and return a provider for the given platform. Args: platform: A PlatformCredential.Platform value (e.g. "facebook").
providers/__init__.py:45
↓ 31 callersMethodget_model
(self, app_label: str, model_name: str)
apps/api_keys/tests/test_migration_0002.py:122
↓ 31 callersFunctionr
(n,i="")
static/js/alpine.min.js:1
↓ 30 callersFunction_post
(client: Client, body)
apps/mcp/tests/test_transport.py:59
↓ 27 callersFunctionc
static/js/alpine.min.js:5
↓ 27 callersFunctionie
(e)
static/js/htmx.min.js:1
↓ 25 callersFunctionee
(e,t)
static/js/htmx.min.js:1
↓ 23 callersFunctionn
()
static/js/alpine.min.js:5
↓ 22 callersFunction_
(e)
static/js/alpine.min.js:5
↓ 22 callersFunction_get_workspace
Resolve workspace and enforce membership check.
apps/calendar/views.py:76
↓ 22 callersFunction_make_user_with_workspace
Create a user + org + workspace + membership + one connected account. Sets ``last_workspace_id`` so the OAuth resolver picks this workspace, and
apps/mcp/tests/test_oauth_auth.py:52
↓ 22 callersFunction_resp
(data)
tests/providers/test_instagram.py:9
↓ 22 callersMethodcan_transition_to
Check if a status transition is valid.
apps/composer/models.py:467
↓ 22 callersFunctione
static/js/alpine.min.js:5
↓ 22 callersFunctionm
(e)
static/js/alpine.min.js:1
↓ 22 callersFunctionnotify
Create a notification and dispatch to enabled channels. This is the single entry point that all features call. The function: 1. Creates the N
apps/notifications/engine.py:75
↓ 21 callersFunctioncreate_post
Create a ``Post`` + one ``PlatformPost`` for ``social_account``. The canonical service-layer entry point for the Agent API. The composer's HT
apps/composer/services.py:74
↓ 21 callersMethodread
(self, n=-1)
apps/media_library/services.py:177
↓ 20 callersFunction_first_child_text
(element, *names)
apps/composer/views.py:3446
↓ 20 callersFunctionfe
(e,t,n)
static/js/htmx.min.js:1
↓ 19 callersFunctiona
static/js/alpine.min.js:5
↓ 19 callersFunctiond
(e,t)
static/js/alpine.min.js:5
↓ 19 callersFunctionis_safe_url
Validate that a URL is http(s) and does not resolve to a private/reserved IP. Returns False for non-http(s) schemes (file://, gopher://, etc.) an
apps/common/validators.py:25
↓ 18 callersFunction_toast_response
Return a 204 whose ``HX-Trigger`` carries a toast and an optional refresh event. Every approval surface listens for ``showToast`` (renders the to
apps/approvals/views.py:34
↓ 18 callersFunctioni
static/js/alpine.min.js:5
↓ 18 callersFunctionnormalize_tags
Strict tag normalization for JSON API endpoints. Raises ValueError on malformed input or overflow — caller returns HTTP 400.
apps/common/validators.py:78
↓ 18 callersFunctionoe
(e)
static/js/htmx.min.js:1
↓ 17 callersFunction_get_workspace_or_404
Get workspace and verify the user has access via the RBAC middleware.
apps/media_library/views.py:29
↓ 17 callersMethod_occupy
(self, slot_dt, *, queued=True, caption="occupied")
apps/calendar/tests.py:912
↓ 17 callersFunctionenforce_http_rate_limits
Stack the HTTP-level tiers and raise 429 if any trip. Centralized here so routers don't each re-import django-ratelimit helpers. Per-tier rat
apps/api/limits.py:218
↓ 17 callersFunctions
()
static/js/alpine.min.js:5
↓ 17 callersFunctiont
()
static/js/alpine.min.js:1
↓ 17 callersFunctiony
(e,t)
static/js/htmx.min.js:1
↓ 16 callersFunction_make_response
(payload: dict)
tests/providers/test_tiktok.py:15
↓ 16 callersFunction_rpc
(method: str, params: dict | None = None, *, id_: int | str | None = 1)
apps/mcp/tests/test_oauth_auth.py:36
↓ 16 callersFunctionderive_post_status
Return an aggregate post-level status from an iterable of child statuses. Rules: - empty → "draft" - all children share the same valu
apps/composer/status.py:33
↓ 15 callersFunctionC
(e,t)
static/js/htmx.min.js:1
↓ 15 callersMethodfor_workspace_with_shared
Return workspace-scoped assets plus shared org-level assets.
apps/media_library/managers.py:14
↓ 15 callersMethodis_valid
(self)
apps/client_portal/models.py:63
↓ 15 callersFunctiono
()
static/js/alpine.min.js:5
↓ 14 callersFunction_make_user
(email)
apps/members/tests/test_role_hierarchy.py:23
↓ 14 callersFunction_record_action
Create an ApprovalAction row for either a bundled or per-PP action.
apps/approvals/services.py:64
↓ 14 callersFunctionlog_audit_entry
Persist one ``ApiKeyAuditLog`` row for the request. Deliberately omits request body — payloads may contain media URLs with embedded signed to
apps/api/middleware.py:27
↓ 14 callersFunctionm
(e,t)
static/js/htmx.min.js:1
↓ 14 callersMethodpublish_post
(self, access_token: str, content: PublishContent)
providers/tiktok.py:273
↓ 13 callersFunctionR
(e,t)
static/js/htmx.min.js:1
↓ 13 callersFunction_call
(client, name, arguments)
apps/mcp/tests/test_presigned_tools.py:39
↓ 13 callersMethod_cands
(self, n=6)
apps/calendar/tests.py:909
↓ 13 callersFunction_client
()
apps/intelligence/views.py:69
↓ 13 callersFunction_get_provider_for_platform
Resolve app credentials and instantiate the provider.
apps/social_accounts/views.py:36
↓ 13 callersFunction_get_workspace
Resolve workspace and enforce membership check.
apps/inbox/views.py:71
↓ 13 callersFunction_login
(client, user)
apps/members/tests/test_role_hierarchy.py:19
↓ 13 callersMethod_post
(self, status)
apps/approvals/test_workflow.py:50
↓ 13 callersMethod_request
( self, method: str, path: str, *, body: dict | None = None, q
apps/intelligence/services/client.py:272
↓ 13 callersFunction_wrap_text
Return MCP's text-content envelope around a JSON-serializable value. Most Claude clients render text blocks reliably; the experimental ``json
apps/mcp/handlers.py:38
↓ 13 callersFunctionc
(e)
static/js/htmx.min.js:1
↓ 13 callersFunctionderive_is_configured
Return True when ``credentials`` holds every required key for ``platform``. Used to populate ``PlatformCredential.is_configured`` (the runtime ga
apps/credentials/models.py:29
↓ 13 callersFunctionnext
()
static/js/alpine.min.js:5
↓ 13 callersFunctionre
(t,n)
static/js/htmx.min.js:1
↓ 13 callersFunctionregister_tool
(tool: Tool)
apps/mcp/tools.py:41
↓ 13 callersFunctionresolve_platform_credentials
Return app credentials for ``platform``, with ``.env`` dominant. If env has any non-empty value for the platform it wins; otherwise fall back
apps/credentials/models.py:122
↓ 13 callersFunctionte
(e,t)
static/js/htmx.min.js:1
↓ 12 callersFunctionE
(e,...t)
static/js/alpine.min.js:5
↓ 12 callersFunction_client
(user)
apps/mcp/tests/test_presigned_tools.py:35
↓ 12 callersFunction_creator_info_response
(options: list[str])
tests/providers/test_tiktok.py:372
↓ 12 callersFunction_mint_oauth_token
Issue a DOT access token for ``user`` and return its raw value. ``token_checksum`` (the indexed column our verifier looks up) is populated by
apps/mcp/tests/test_oauth_auth.py:85
↓ 12 callersFunction_video_content
(**extra)
tests/providers/test_tiktok.py:363
↓ 12 callersFunctionx
(...e)
static/js/alpine.min.js:5
↓ 11 callersFunctionE
()
static/js/htmx.min.js:1
↓ 11 callersFunctionM
(e,t,r)
static/js/alpine.min.js:5
↓ 11 callersMethod_create_asset
(self, filename="asset.png")
apps/composer/tests/test_idea_media_flows.py:41
↓ 11 callersMethod_issue
(self, workspace, issuer, social_account, permissions)
apps/api_keys/tests/test_services.py:428
↓ 11 callersMethod_make_pp
(self, **kwargs)
apps/composer/tests/__init__.py:16
↓ 11 callersFunction_png
(content: bytes = PNG_1X1, name: str = "hero.png")
apps/api/tests/test_media_router.py:109
↓ 11 callersFunction_post
(client: Client, body)
apps/mcp/tests/test_oauth_auth.py:45
↓ 11 callersFunction_require_perm
Re-check a workspace permission inside a tool handler. Mirrors REST's ``_require_perm`` so MCP can't be used to bypass permissions that the R
apps/mcp/handlers.py:51
↓ 11 callersFunction_resolve_publish_credentials
Resolve the credentials dict for publishing on behalf of `account`. Combines org-level `PlatformCredential` (with `.env` dominant) with per-a
apps/publisher/engine.py:43
↓ 11 callersFunctionfriendly_health_check_error
Map a provider exception to a short, user-facing message.
apps/social_accounts/error_messages.py:23
↓ 11 callersFunctiong
(e,t)
static/js/htmx.min.js:1
↓ 11 callersFunctionh
(e,t)
static/js/htmx.min.js:1
↓ 11 callersFunctionhas_org_permission
Return True if ``membership`` grants the given org-permission key. ``membership`` is an ``OrgMembership`` or None (e.g., the user has no memb
apps/members/models.py:299
↓ 11 callersFunctionl
(e,t)
static/js/htmx.min.js:1
↓ 11 callersFunctionparse_and_truncate_tag_string
Lenient tag normalization for HTML form POSTs. Splits a comma-separated string, strips whitespace, truncates each tag to MAX_TAG_LENGTH, dedu
apps/common/validators.py:104
↓ 11 callersMethodpublish_post
(self, access_token: str, content: PublishContent)
providers/facebook.py:272
↓ 10 callersMethod_client_returning
(self, status, body=None, *, headers=None)
apps/intelligence/tests/test_internal_client_signing.py:159
↓ 10 callersFunction_make_user
(email)
apps/members/tests/test_org_permissions.py:23
next →1–100 of 3,156, ranked by callers