Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PerpetualSoftware/pad
/ types & classes
Types & classes
763 in github.com/PerpetualSoftware/pad
⨍
Functions
6,005
◇
Types & classes
763
↓ 20 callers
Struct
expect
internal/mcp/dispatch_http_advanced_test.go:316
↓ 4 callers
TypeAlias
ErrorCode
───────────────────────────────────────────────────────────────────── Structured MCP error envelopes (TASK-973) Replaces raw CLI stderr passthrough w
internal/mcp/errors.go:43
↓ 4 callers
TypeAlias
TokenKind
MCP audit log models (PLAN-943 TASK-960). Persistent record of every request that hits the /mcp endpoint — successful tool calls, denied calls, error
internal/models/mcp_audit.go:29
↓ 1 callers
TypeAlias
MCPAuditResultStatus
MCPAuditResultStatus is the outcome enum for an MCP request.
internal/models/mcp_audit.go:37
Class
web/src/lib/stores/localIndex.svelte.ts:80
Class
web/src/lib/api/client.ts:77
Class
web/src/lib/collab/wsProvider.svelte.ts:203
Struct
APIError
--- HTTP helpers ---
internal/cli/client.go:1060
Interface
APIToken
web/src/lib/types/index.ts:38
Struct
APIToken
APIToken represents a stored API token (without the secret).
internal/models/api_token.go:6
Struct
APITokenCreate
APITokenCreate is the input for creating a new API token.
internal/models/api_token.go:19
Interface
APITokenWithSecret
web/src/lib/types/index.ts:50
Struct
APITokenWithSecret
APITokenWithSecret is returned only on creation and includes the plaintext token. The token is never stored and cannot be retrieved again.
internal/models/api_token.go:28
Struct
ActionEnv
ActionEnv carries everything an action handler needs to either dispatch to a CLI cmdPath or build a result inline. Wired up once per RegisterCatalog c
internal/mcp/catalog.go:113
FuncType
ActionFn
ActionFn handles one tool action. Receives the call context, the raw MCP input map, and a per-tool execution environment. Returns the CallToolResult t
internal/mcp/catalog.go:107
Interface
Activity
web/src/lib/types/index.ts:920
Struct
Activity
internal/models/activity.go:79
Struct
ActivityListParams
internal/models/activity.go:100
Interface
AdminBillingStats
web/src/lib/types/index.ts:1362
Struct
AdminBillingStatsResponse
AdminBillingStatsResponse is the JSON shape returned by GET /api/v1/admin/billing-stats. It merges Stripe-derived metrics from pad-cloud (active_subsc
internal/server/handlers_admin_billing.go:23
Struct
AdminInvitation
AdminInvitation holds enriched invitation data for the admin panel.
internal/store/workspace_members.go:899
Interface
AdminUser
web/src/lib/stores/admin.svelte.ts:7
Struct
AdminUserListEntry
AdminUserListEntry is one row returned by SearchUsers: the User model plus the cheap aggregations the admin user table renders at a glance. PLAN-1542
internal/store/users.go:292
Struct
AdminUserMetrics
AdminUserMetrics carries the windowed engagement metrics rendered by the admin user modal's Overview tab (T1553). Values are intentionally a small han
internal/store/users.go:752
Struct
AdminUserSearchParams
AdminUserSearchParams holds parameters for the admin user search query. Filters apply ANDed; nil pointer fields mean "no filter" (distinguished from t
internal/store/users.go:266
Struct
AdminUserSearchResult
AdminUserSearchResult holds the paginated search results.
internal/store/users.go:308
Struct
AdminUserWorkspace
AdminUserWorkspace is a lightweight workspace membership for admin views.
internal/store/workspace_members.go:970
Struct
AdminUserWorkspaceDetail
AdminUserWorkspaceDetail extends AdminUserWorkspace with per-workspace aggregations rendered in the admin user modal's Workspaces tab. PLAN-1542 / TAS
internal/store/workspace_members.go:982
Struct
Agent
Agent describes a known MCP-compatible client and how to find its per-user config file.
internal/mcp/install.go:38
Struct
AgentBootstrap
AgentBootstrap is the single response struct returned by the bootstrap endpoint. It consolidates the four /pad context-loading calls (workspace, colle
internal/server/handlers_bootstrap.go:23
Struct
AgentBootstrapConvention
AgentBootstrapConvention is a convention item with its body content so agents can read and follow it without a second round-trip. Only always-on, acti
internal/server/handlers_bootstrap.go:277
Struct
AgentBootstrapConventionMeta
AgentBootstrapConventionMeta is the lightweight, body-less convention projection returned in the bootstrap's convention_index. It mirrors the AgentBoo
internal/server/handlers_bootstrap.go:301
Struct
AgentBootstrapPlaybookMeta
AgentBootstrapPlaybookMeta is the lightweight playbook projection returned at bootstrap. Bodies (which can be 5-10KB each) are deliberately excluded;
internal/server/handlers_bootstrap.go:318
Struct
AgentBootstrapUser
AgentBootstrapUser is the calling user's projection. Email is included so agents can sign generated commits or reference the human; ID is included so
internal/server/handlers_bootstrap.go:263
Struct
AgentBootstrapWorkspace
AgentBootstrapWorkspace is the minimal workspace projection (slug + name + id) the agent needs to address the workspace in subsequent calls. Descripti
internal/server/handlers_bootstrap.go:253
Interface
AgentRole
web/src/lib/types/index.ts:439
Struct
AgentRole
AgentRole represents a workspace-scoped capability role for human-agent assignment. Roles describe what kind of work gets done (e.g. "Planner", "Imple
internal/models/agent_role.go:8
Interface
AgentRoleCreate
web/src/lib/types/index.ts:453
Struct
AgentRoleCreate
AgentRoleCreate is the input for creating a new agent role.
internal/models/agent_role.go:25
Interface
AgentRoleUpdate
web/src/lib/types/index.ts:461
Struct
AgentRoleUpdate
AgentRoleUpdate is the input for updating an existing agent role.
internal/models/agent_role.go:34
Struct
AgentStatus
AgentStatus is one row of Installer.Status output.
internal/mcp/install.go:585
Struct
AgentTool
AgentTool describes a supported AI coding tool and how to install the Pad skill for it.
internal/cli/agents.go:12
Interface
ApiError
web/src/lib/types/index.ts:1335
Struct
Arg
Arg is a positional argument.
internal/cmdhelp/types.go:54
Struct
Artifact
Artifact is a decoded export of one playbook or convention item.
internal/artifact/artifact.go:45
Interface
Attachment
web/src/lib/types/index.ts:1385
Struct
Attachment
Attachment models a single uploaded blob in the attachments table. See [[Attachments — architecture & migration design]] (DOC-865). Storage is conten
internal/models/attachment.go:16
Interface
AttachmentChipOptions
web/src/lib/components/editor/attachment-chip.ts:43
Interface
AttachmentImageOptions
web/src/lib/components/editor/attachment-image.ts:88
Interface
AttachmentListFilters
web/src/lib/types/index.ts:1518
Struct
AttachmentListFilters
AttachmentListFilters narrow the WorkspaceAttachments result set. Zero values mean "no filter on this dimension". The handler turns query-string param
internal/store/attachments.go:136
Interface
AttachmentListItem
web/src/lib/types/index.ts:1478
Struct
AttachmentListItem
AttachmentListItem is a row from WorkspaceAttachments enriched with the parent item's title + slug + collection slug so the UI can render a clickable
internal/store/attachments.go:208
Struct
AttachmentListParams
AttachmentListParams encodes the query-string filters the `GET /api/v1/workspaces/{slug}/attachments` endpoint accepts. Zero values are skipped — the
internal/cli/client.go:1436
Interface
AttachmentListResponse
web/src/lib/types/index.ts:1510
Struct
AttachmentListResponse
AttachmentListResponse mirrors the JSON returned by GET /api/v1/workspaces/{slug}/attachments. Rows are typed as json.RawMessage so the CLI can surfac
internal/cli/client.go:1460
Struct
AttachmentManifest
AttachmentManifest is the top-level shape of attachments/manifest.json inside an export bundle. Wraps a list of entries plus a small "schema" version
internal/models/export.go:45
Struct
AttachmentManifestEntry
AttachmentManifestEntry describes one attachment blob in the tar-bundle export's attachments/manifest.json. The bundle layout is: pad-export.json
internal/models/export.go:27
Interface
AttachmentMeta
web/src/lib/markdown/attachments.ts:25
Struct
AttachmentMeta
AttachmentMeta is the minimal metadata needed to render a `pad-attachment:UUID` reference. Trimmed from the full models.Attachment row so callers can
internal/server/render/attachments.go:24
Interface
AttachmentMetadata
web/src/lib/components/editor/attachment-metadata.ts:28
Struct
AttachmentMetadata
AttachmentMetadata mirrors the response headers of HEAD /api/v1/workspaces/{slug}/attachments/{id}. The server doesn't expose a separate JSON metadata
internal/cli/client.go:1389
FuncType
AttachmentResolver
AttachmentResolver looks up an attachment by UUID. Returns nil for missing/deleted attachments — the resolver renders a "missing" placeholder in that
internal/server/render/attachments.go:37
Interface
AttachmentStore
AttachmentStore is the backend abstraction every storage implementation must satisfy. Methods are safe for concurrent use.
internal/attachments/store.go:24
Interface
AttachmentTransformResult
web/src/lib/types/index.ts:1427
Interface
AttachmentUploadOptions
web/src/lib/components/editor/attachment-upload.ts:66
Interface
AttachmentUploadResult
web/src/lib/types/index.ts:1404
Struct
AttachmentUploadResult
--- Attachments --- AttachmentUploadResult mirrors the JSON returned by POST /api/v1/workspaces/{slug}/attachments. It is the API contract callers de
internal/cli/client.go:1276
Struct
AuditLogParams
AuditLogParams are query parameters for the audit log endpoint.
internal/models/activity.go:114
Interface
AuthSession
web/src/lib/api/client.ts:604
Struct
BackfillOAuthConnectionsResult
One-shot backfill from session.Extra["allowed_workspaces"] into the new per-connection tables (PLAN-1519 / TASK-1522 / IDEA-1517 §2). Phase A (TASK-1
internal/store/oauth_connections_backfill.go:41
Struct
BackfillStatusTransitionsResult
BackfillStatusTransitionsResult reports what the backfill did so the startup hook can log a one-line summary.
internal/store/status_transitions_backfill.go:98
Struct
BackfillWikiLinksResult
BackfillWikiLinksResult reports what the backfill did so cmd/pad/main.go can log a one-line summary at startup. Repeat runs should report ItemsScanned
internal/store/wiki_links_backfill.go:13
Interface
Backlink
web/src/lib/types/index.ts:813
Struct
Backlink
Backlink is the wire shape returned by `GET /api/v1/workspaces/{ws}/items/{ref}/backlinks` — one inbound `[[...]]` reference to the queried item. The
internal/models/backlink.go:16
Struct
BacklinksVisibility
BacklinksVisibility is the per-call visibility scope GetBacklinks applies in SQL. Mirrors the (fullCollIDs, grantedItemIDs) shape `Server.guestResourc
internal/store/wiki_links.go:861
Struct
BillingAggregates
BillingAggregates is the set of users-table aggregates returned by CountBillingAggregates: per-plan customer counts and the number of new pro signups
internal/store/users.go:586
Struct
BillingMetricsResponse
BillingMetricsResponse mirrors the JSON pad-cloud returns from GET /admin/metrics/billing. All numeric fields are zero when StripeConfigured is false
internal/billing/cloud_client.go:116
Interface
BlockInfo
web/src/lib/components/editor/block-drag-handle.ts:36
Interface
BlockType
web/src/lib/components/editor/block-types.ts:6
Struct
BlocksEdge
BlocksEdge is a skinny projection of a `blocks` link plus the blocker (source) essentials the dashboard needs to decide whether a blocked item should
internal/store/items.go:3892
Struct
BootstrapCollection
BootstrapCollection is the lightweight collection projection delivered in the agent bootstrap response. Distinct from models.Collection: drops fields
internal/server/handlers_bootstrap.go:77
Struct
BootstrapDashboard
BootstrapDashboard is the bootstrap-side dashboard projection. It embeds *DashboardResponse so the wire shape stays compatible with the `GET /dashboar
internal/server/handlers_bootstrap.go:355
Interface
BootstrapFetcher
BootstrapFetcher resolves the agent bootstrap blob for a given workspace. Used by pad_set_workspace to embed the blob in its response so an MCP host c
internal/mcp/workspace.go:21
Struct
BootstrapRole
BootstrapRole is the lightweight role projection delivered in the agent bootstrap response. Distinct from models.AgentRole: drops fields the /pad skil
internal/server/handlers_bootstrap.go:222
Interface
BuiltToolDescriptor
web/src/lib/webmcp/descriptors.ts:33
Interface
BulkItemFailure
web/src/lib/types/index.ts:746
Interface
BulkItemOutcome
web/src/lib/types/index.ts:738
Interface
BulkItemsResponse
web/src/lib/types/index.ts:755
Struct
CLIAuthSession
CLIAuthSession represents a pending or approved CLI login session.
internal/store/cli_auth_sessions.go:24
Struct
CLIAuthSessionResponse
CLIAuthSessionResponse is the response from POST /auth/cli/sessions.
internal/cli/client.go:983
Struct
CLIAuthSessionStatus
CLIAuthSessionStatus is the response from GET /auth/cli/sessions/{code}.
internal/cli/client.go:990
Struct
Capabilities
Capabilities describes the static capability profile of a Processor. It's safe to embed in HTTP responses — nothing here changes between requests, so
internal/attachments/processor.go:77
TypeAlias
CapabilityTier
Connected-apps models (PLAN-943 TASK-954). A "connected app" is one OAuth client (Claude Desktop, Cursor, …) that the user has authorized to act on t
internal/models/connected_apps.go:19
Interface
CappedItems
web/src/lib/components/share/shareView.ts:173
Struct
CatalogOptions
CatalogOptions configures RegisterCatalog. Mirrors RegistryOptions for the cmdhelp-walk path but adds PadVersion (needed by pad_meta).
internal/mcp/catalog.go:200
TypeAlias
Category
Category drives the icon shown on file chips and is also used by quota/usage UI to bucket totals (Phase 2 will surface "you have 1.2GB of images and 4
internal/attachments/mime.go:34
Struct
CategoryGroup
CategoryGroup is an ordered pair of (category, templates-in-that-category).
internal/collections/templates.go:57
Interface
ChangelogGroup
web/src/lib/types/index.ts:1064
next →
1–100 of 763, ranked by callers