MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / functions

Functions28,840 in github.com/PerpetualSoftware/pad

MethodhandleListDocumentActivity
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_activity.go:123
MethodhandleListDocuments
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_documents.go:20
MethodhandleListItemActivity
handleListItemActivity returns the activity feed for a specific item.
internal/server/handlers_items.go:4688
MethodhandleListItemAppActions
handleListItemAppActions: GET …/items/{ref}/app-actions.
internal/server/app_item_actions.go:114
MethodhandleListItemDecisions
handleListItemDecisions returns an item's latest typed-decision answer per question (TASK-3117). An answer computed from an earlier state of the item
internal/server/handlers_decisions.go:16
MethodhandleListItemGrants
--- Item Grant handlers ---
internal/server/handlers_grants.go:184
MethodhandleListItemReminders
handleListItemReminders returns every reminder on an item, armed or fired. GET /api/v1/workspaces/{slug}/items/{itemSlug}/reminders ARCHIVED ITEMS AR
internal/server/handlers_reminders.go:68
MethodhandleListItemShareLinks
handleListItemShareLinks lists share links for an item.
internal/server/handlers_share_links.go:230
MethodhandleListItemTimeline
handleListItemTimeline returns a unified, chronological timeline for an item, newest first, with cursor-based pagination. Request: `limit=N` (default
internal/server/handlers_timeline.go:57
MethodhandleListItemVerifications
handleListItemVerifications returns an item's verdicts with their state. GET /api/v1/workspaces/{slug}/items/{itemSlug}/verifications[?all=1] By defa
internal/server/handlers_verifications.go:56
MethodhandleListItemVersions
handleListItemVersions returns all versions for an item with diffs resolved.
internal/server/handlers_item_versions.go:24
MethodhandleListItems
handleListItems lists all items across collections in a workspace.
internal/server/handlers_items.go:50
MethodhandleListItemsChanges
handleListItemsChanges is the delta-fetch sibling of handleListItemsIndex. Returns rows that have mutated since the caller's `?since=<seq>` cursor, in
internal/server/handlers_items.go:404
MethodhandleListItemsIndex
handleListItemsIndex returns the skinny-projection of every item in a workspace — same row set as handleListItems but without the rich-text `content`
internal/server/handlers_items.go:220
MethodhandleListMembers
handleListMembers returns all members of a workspace. Requires at least viewer role (guests are blocked). Invitation details are only included for wor
internal/server/handlers_members.go:22
MethodhandleListMyInvitations
handleListMyInvitations answers GET /api/v1/me/invitations (PLAN-3002 U4b / TASK-3277): the pending, unexpired invitations addressed to the caller's e
internal/server/handlers_my_invitations.go:23
MethodhandleListPlaybooks
handleListPlaybooks returns playbook metadata for the workspace. Same shape as the bootstrap blob's `playbooks` field, hand-rolled here so callers can
internal/server/handlers_playbooks.go:138
MethodhandleListSessions
handleListSessions returns the caller's OWN live event-stream connections (PLAN-2558 S1). It is the read side of the presence registry described in se
internal/server/handlers_sessions.go:45
MethodhandleListStarredItems
handleListStarredItems returns one bounded page of the authenticated user's starred items in a workspace (BUG-3790). GET /api/v1/workspaces/{slug}/sta
internal/server/handlers_stars.go:145
MethodhandleListTags
handleListTags returns the distinct tags used across the workspace's items with per-tag item counts, ordered by count desc then tag asc. Respects the
internal/server/handlers_items.go:151
MethodhandleListTemplates
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspaces.go:188
MethodhandleListTokens
handleListTokens returns all API tokens for a workspace (without secrets).
internal/server/handlers_tokens.go:131
MethodhandleListTutorials
handleListTutorials: GET /tutorials. Cloud only (404 on a self-hosted server). {available, paths, tutorials, demos}; available=false when the catalog
internal/server/tutorials.go:219
MethodhandleListUIDismissals
The caller's dismissed one-time UI suggestions (TASK-3452): the first-time tutorial cards. Stored on the user so a dismissal holds on every device. Ke
internal/server/handlers_ui_dismissals.go:21
MethodhandleListUserGrants
--- User grants (cross-cutting) ---
internal/server/handlers_grants.go:344
MethodhandleListUserTokens
--- User-scoped token endpoints --- handleListUserTokens returns all API tokens owned by the authenticated user. A workspace-pinned token sees only th
internal/server/handlers_tokens.go:190
MethodhandleListVersions
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_versions.go:11
MethodhandleListViews
handleListViews returns all saved views for a collection.
internal/server/handlers_views.go:16
MethodhandleListWatches
handleListWatches lists every watch the authenticated user holds, across all workspaces they belong to (TASK-2533 — a watch is personal, not workspace
internal/server/handlers_watches.go:137
MethodhandleListWebhooks
handleListWebhooks returns all webhooks for a workspace. Restricted to owners since webhook URLs may contain secret tokens.
internal/server/handlers_webhooks.go:93
MethodhandleListWorkspaceActivity
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_activity.go:12
MethodhandleListWorkspaceAttachments
handleListWorkspaceAttachments returns a paginated list of original (non-derived) attachments in the workspace. Supports filter + sort + pagination vi
internal/server/handlers_storage.go:164
MethodhandleListWorkspaceBuiltins
handleListWorkspaceBuiltins: GET /workspaces/{ws}/builtins, the state of every item made from a built-in, for the library page. One query reads them a
internal/server/handlers_builtin.go:176
MethodhandleListWorkspaceGroups
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspace_groups.go:201
MethodhandleListWorkspaceTabs
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_workspace_tabs.go:118
MethodhandleLocalReset
handleLocalReset is the self-host account-recovery escape hatch for an operator who is locked out — forgot the only admin password and has no email pr
internal/server/handlers_auth.go:1814
MethodhandleLogin
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_auth.go:1286
MethodhandleLogout
handleLogout destroys the session and clears the cookie. It handles both cookie-based sessions (web) and Bearer token sessions (CLI).
internal/server/handlers_auth.go:1442
MethodhandleMCPConnectionAudit
handleMCPConnectionAudit returns the audit rows for one of the requesting user's MCP connections. id is the OAuth request_id (chain identifier — the
internal/server/handlers_mcp_audit.go:121
MethodhandleMCPToolSurface
handleMCPToolSurface serves the MCP tool-surface descriptor JSON — the nine catalog tools, their actions (each with a read_only bool), and their input
internal/server/handlers_mcp.go:119
MethodhandleMarkCaughtUp
handleMarkCaughtUp moves the viewer's cursor for the workspace to now. It takes no body: a client-supplied time could move the cursor into the future
internal/server/handlers_catch_up.go:217
MethodhandleMarkChatDelivered
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_chat.go:361
MethodhandleMarkChatRead
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_chat.go:338
MethodhandleMeAgenda
handleMeAgenda serves the admitted, visible workspaces as one bounded agenda.
internal/server/handlers_me_agenda.go:26
MethodhandleMintItemAppAction
handleMintItemAppAction: POST …/items/{ref}/app-actions/{installID}/{actionKey}. The caller is the viewer. The mint re-checks, under the redeem's lock
internal/server/app_item_actions.go:142
MethodhandleMoveCommitment
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_commitment_links.go:400
MethodhandleMoveItem
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_items.go:3160
MethodhandleOAuthAuthorizationServer
handleOAuthAuthorizationServer serves RFC 8414 "OAuth 2.0 Authorization Server Metadata" at /.well-known/oauth-authorization-server. Replaces the 501
internal/server/handlers_well_known.go:126
MethodhandleOAuthAuthorizeDecide
===================================================================== oauth/authorize/decide — process consent decision ==============================
internal/server/handlers_oauth.go:951
MethodhandleOAuthClaim
POST /api/v1/oauth/claim — claim-code redemption endpoint (PLAN-1519 / TASK-1521 / IDEA-1517 §4). Lets the user grant an existing OAuth connection ac
internal/server/handlers_oauth_claim.go:59
MethodhandleOAuthClientPublicInfo
handleOAuthClientPublicInfo serves the public metadata for a registered OAuth client. Auth-required at the route level (see the /api/v1 group in serve
internal/server/handlers_oauth_clients.go:78
MethodhandleOAuthIntrospect
===================================================================== oauth/introspect — RFC 7662 token introspection ================================
internal/server/handlers_oauth.go:1650
MethodhandleOAuthLink
--- OAuth Provider Linking (TASK-504) --- handleOAuthLink handles POST /api/v1/auth/oauth-link. Called by the pad-cloud sidecar after an OAuth flow in
internal/server/handlers_cloud.go:730
MethodhandleOAuthLogin
--- OAuth Login (TASK-430) --- handleOAuthLogin handles POST /api/v1/auth/oauth-login. Called by the pad-cloud sidecar after completing an OAuth flow.
internal/server/handlers_cloud.go:205
MethodhandleOAuthProtectedResource
handleOAuthProtectedResource serves RFC 9728 "OAuth 2.0 Protected Resource Metadata" at /.well-known/oauth-protected-resource on the MCP vhost (mcp.ge
internal/server/handlers_well_known.go:53
MethodhandleOAuthRegister
handleOAuthRegister implements RFC 7591 Dynamic Client Registration. Public clients only — no client_secret is generated or returned. PKCE is the only
internal/server/handlers_oauth.go:299
MethodhandleOAuthRevoke
===================================================================== oauth/revoke — RFC 7009 token revocation =======================================
internal/server/handlers_oauth.go:1563
MethodhandleOAuthToken
===================================================================== oauth/token — code exchange + refresh-token rotation ===========================
internal/server/handlers_oauth.go:1356
MethodhandleOAuthUnlink
handleOAuthUnlink handles POST /api/v1/auth/oauth-unlink. Removes a linked OAuth provider. Requires the user to have a usable password (to prevent loc
internal/server/handlers_cloud.go:828
MethodhandleOpenAIAppsChallenge
handleOpenAIAppsChallenge serves OpenAI's plugin domain verification token at /.well-known/openai-apps-challenge (TASK-3321 G4). OpenAI fetches it fro
internal/server/handlers_openai_challenge.go:17
FunctionhandleOpenTarget
(target: PaneTarget)
web/src/lib/collections/paneHostController.ts:342
MethodhandleOpenWorkspaceTab
handleOpenWorkspaceTab: POST {slug, ephemeral}. A workspace outside the caller's visible set answers the workspace 404 (BUG-3069), the same answer an
internal/server/handlers_workspace_tabs.go:130
FunctionhandlePaneBack
()
web/src/lib/collections/paneHostController.ts:357
FunctionhandlePaneNavigateAway
(url: string)
web/src/lib/collections/paneHostController.ts:399
MethodhandlePatchItem
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_items_patch.go:142
MethodhandlePaymentFailed
handlePaymentFailed handles POST /api/v1/admin/payment-failed. Called by the pad-cloud sidecar when it receives an invoice.payment_failed webhook from
internal/server/handlers_cloud.go:1412
MethodhandlePlansProgress
handlePlansProgress returns child item completion progress for all non-deleted plans. Kept as a backward-compat endpoint at /plans-progress; delegates
internal/server/handlers_items.go:3864
MethodhandlePlaybookLibrary
handlePlaybookLibrary returns the global playbook library. Query params (all optional): - category=<name> — return only the matching category. Case-s
internal/server/handlers_playbook_library.go:21
MethodhandlePollCLIAuthSession
handlePollCLIAuthSession checks the status of a CLI auth session. The CLI polls this until the session is approved or expired. GET /api/v1/auth/cli/se
internal/server/handlers_cli_auth.go:65
MethodhandlePreviewCommitmentMove
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_commitment_links.go:397
MethodhandlePreviewInvitation
handlePreviewInvitation returns non-consuming metadata about an invitation so the /join page can prefill the invited email (read-only) and pick regist
internal/server/handlers_members.go:700
MethodhandlePushToItem
handlePushToItem publishes a self-addressed watchevents.KindPush notification (IDEA-2544 Phase 1) — the "push this to my agent" verb: an explicit, use
internal/server/handlers_push.go:184
MethodhandlePutCommitmentForecast
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_milestone.go:74
MethodhandlePutMilestoneChild
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_milestone.go:136
MethodhandlePutNotificationSettings
handlePutNotificationSettings answers PUT /api/v1/me/notification-settings: a full replace. All seven booleans are required, and an unknown member is
internal/server/handlers_push_devices.go:243
MethodhandlePutPushDevice
handlePutPushDevice answers PUT /api/v1/me/push-devices/{connection_id}.
internal/server/handlers_push_devices.go:130
MethodhandleRearmReminder
handleRearmReminder moves a reminder's instant, clearing its fire marks. PATCH /api/v1/workspaces/{slug}/reminders/{reminderID}
internal/server/handlers_reminders.go:150
MethodhandleRedeemAppInstallCode
handleRedeemAppInstallCode is mounted outside every auth middleware: the code is the credential. Every refusal is the same 400 so the route says nothi
internal/server/handlers_apps_provision.go:378
MethodhandleRegister
Registration is restricted to admins or users with a valid invitation code so invitees can create an account via the /join/[code] flow.
internal/server/handlers_auth.go:683
MethodhandleReleaseItem
handleReleaseItem clears the caller's lease. Idempotent: releasing an absent or expired lease answers released=false, never an error.
internal/server/handlers_item_lease.go:93
MethodhandleRemoveConnectedAppWorkspace
handleRemoveConnectedAppWorkspace: DELETE /api/v1/connected-apps/{id}/workspaces/{slug} Slug-path version (URL-friendlier than a body-payload DELETE).
internal/server/handlers_connected_apps.go:582
MethodhandleRemoveMember
handleRemoveMember removes a user from a workspace.
internal/server/handlers_members.go:268
MethodhandleRemoveReaction
handleRemoveReaction removes an emoji reaction from a comment.
internal/server/handlers_comments.go:546
MethodhandleRenameConnectedApp
handleRenameConnectedApp: PATCH /api/v1/connected-apps/{id}/name Body: {"name": "..."} — trimmed + capped at 120 BYTES, rune-safe (matches the consent
internal/server/handlers_connected_apps.go:421
MethodhandleRenegotiateItemCommitment
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_commitments.go:404
MethodhandleReopenItemCommitment
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_schedule_reopen.go:11
MethodhandleReorderWorkspaceTabs
handleReorderWorkspaceTabs: PUT [slug, …], the bar's full order. Slugs the caller cannot see, or that are not open, are ignored silently (the answer a
internal/server/handlers_workspace_tabs.go:170
MethodhandleResendVerification
handleResendVerification re-sends an email-verification link for an UNVERIFIED account (PLAN-1933 DR-5). Enumeration-safe: it ALWAYS returns 200 with
internal/server/handlers_auth.go:2204
MethodhandleResetPassword
handleResetPassword validates a reset token and sets a new password.
internal/server/handlers_auth.go:1911
MethodhandleResolveCrossWorkspaceRef
handleResolveCrossWorkspaceRef implements IDEA-1492's resolver route. GET /-/r/{workspace}/{REF} The `/-/r/` prefix is structurally impossible to c
internal/server/handlers_ref_resolver.go:46
MethodhandleResolveItemCommitment
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_commitments.go:364
MethodhandleResolveShareLink
handleResolveShareLink is the /s/{token} route. It resolves a share link token and returns the shared content. Anonymous users are ALWAYS read-only (D
internal/server/handlers_share_links.go:497
MethodhandleRestoreCollection
handleRestoreCollection answers POST workspaces/{ws}/archived-collections/{collRef}/restore (TASK-2189), by id or slug: it un-archives the collection,
internal/server/handlers_collections.go:825
MethodhandleRestoreDocument
(w http.ResponseWriter, r *http.Request)
internal/server/handlers_documents.go:287
MethodhandleRestoreItem
handleRestoreItem restores an archived item.
internal/server/handlers_items.go:3070
MethodhandleRestoreItemVersion
handleRestoreItemVersion restores an item's content from a specific version.
internal/server/handlers_item_versions.go:228
MethodhandleRevokeConnectedApp
handleRevokeConnectedApp invalidates every token in the OAuth grant chain identified by the URL id parameter, after verifying ownership. 404 vs 403:
internal/server/handlers_connected_apps.go:209
MethodhandleRoleBoard
handleRoleBoard returns items across all collections grouped by agent role. This powers the standalone role board page in the web UI.
internal/server/handlers_role_board.go:84
MethodhandleRoleBoardLaneReorder
handleRoleBoardLaneReorder updates sort_order for roles (lane ordering).
internal/server/handlers_role_board.go:59
MethodhandleRoleBoardReorder
handleRoleBoardReorder updates role_sort_order for items within a lane. Permission is checked per-item via requireEditPermission (grant-aware), so gue
internal/server/handlers_role_board.go:13
← previousnext →27,401–27,500 of 28,840, ranked by callers