MCPcopy Create free account

hub / github.com/PerpetualSoftware/pad / types & classes

Types & classes959 in github.com/PerpetualSoftware/pad

↓ 137 callersStructexpect
internal/mcp/dispatch_http_advanced_test.go:316
↓ 4 callersTypeAliasErrorCode
───────────────────────────────────────────────────────────────────── Structured MCP error envelopes (TASK-973) Replaces raw CLI stderr passthrough w
internal/mcp/errors.go:43
↓ 4 callersTypeAliasTokenKind
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 callersTypeAliasMCPAuditResultStatus
MCPAuditResultStatus is the outcome enum for an MCP request.
internal/models/mcp_audit.go:37
↓ 1 callersStructverdict
internal/server/attachments_authz.go:187
Class
web/src/lib/components/layout/TopBar.svelte.test.ts:76
Class
web/src/lib/components/layout/TopBar.svelte.test.ts:76
Class
web/src/lib/components/attachments/viewerImagePayload.svelte.test.ts:59
Class
web/src/lib/components/items/ItemAttachmentStrip.svelte.test.ts:19
Class
web/src/lib/components/settings/StorageTab.svelte.test.ts:22
Class
web/src/lib/components/common/Lightbox.svelte.test.ts:1584
Class
web/src/lib/components/common/Lightbox.svelte.test.ts:1584
Class
web/src/lib/stores/localIndex.svelte.ts:81
Class
web/src/lib/a11y/viewerBackdrop.svelte.test.ts:74
Class
web/src/lib/api/client.ts:80
Class
web/src/lib/collab/wsProvider.svelte.ts:224
Class
web/src/test/setup-jsdom.ts:136
Class
web/e2e/lib/attachment-viewer.ts:336
StructAPIError
--- HTTP helpers ---
internal/cli/client.go:1109
InterfaceAPIToken
web/src/lib/types/index.ts:38
StructAPIToken
APIToken represents a stored API token (without the secret).
internal/models/api_token.go:6
StructAPITokenCreate
APITokenCreate is the input for creating a new API token.
internal/models/api_token.go:19
InterfaceAPITokenWithSecret
web/src/lib/types/index.ts:50
StructAPITokenWithSecret
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
StructActionEnv
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
FuncTypeActionFn
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
InterfaceActiveLoad
web/src/lib/attachments/viewerImageLoader.svelte.ts:115
InterfaceActivity
web/src/lib/types/index.ts:1258
StructActivity
internal/models/activity.go:79
StructActivityListParams
internal/models/activity.go:100
InterfaceAddr
web/src/lib/attachments/surfaceMetadata.svelte.test.ts:30
InterfaceAdminBillingStats
web/src/lib/types/index.ts:1700
StructAdminBillingStatsResponse
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
StructAdminInvitation
AdminInvitation holds enriched invitation data for the admin panel.
internal/store/workspace_members.go:899
InterfaceAdminUser
web/src/lib/stores/admin.svelte.ts:7
StructAdminUserListEntry
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
StructAdminUserMetrics
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
StructAdminUserSearchParams
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
StructAdminUserSearchResult
AdminUserSearchResult holds the paginated search results.
internal/store/users.go:308
StructAdminUserWorkspace
AdminUserWorkspace is a lightweight workspace membership for admin views.
internal/store/workspace_members.go:970
StructAdminUserWorkspaceDetail
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
StructAgent
Agent describes a known MCP-compatible client and how to find its per-user config file.
internal/mcp/install.go:38
StructAgentBootstrap
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
StructAgentBootstrapConvention
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
StructAgentBootstrapConventionMeta
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
StructAgentBootstrapPlaybookMeta
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
StructAgentBootstrapUser
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
StructAgentBootstrapWorkspace
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
InterfaceAgentRole
web/src/lib/types/index.ts:443
StructAgentRole
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
InterfaceAgentRoleCreate
web/src/lib/types/index.ts:457
StructAgentRoleCreate
AgentRoleCreate is the input for creating a new agent role.
internal/models/agent_role.go:25
InterfaceAgentRoleUpdate
web/src/lib/types/index.ts:465
StructAgentRoleUpdate
AgentRoleUpdate is the input for updating an existing agent role.
internal/models/agent_role.go:34
StructAgentStatus
AgentStatus is one row of Installer.Status output.
internal/mcp/install.go:585
StructAgentTool
AgentTool describes a supported AI coding tool and how to install the Pad skill for it.
internal/cli/agents.go:12
InterfaceAnchorAttachmentAction
web/src/lib/attachments/actions.ts:126
InterfaceApiError
web/src/lib/types/index.ts:1673
StructArg
Arg is a positional argument.
internal/cmdhelp/types.go:54
StructArtifact
Artifact is a decoded export of one playbook or convention item.
internal/artifact/artifact.go:45
InterfaceAttachment
web/src/lib/types/index.ts:1723
StructAttachment
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
InterfaceAttachmentActionContext
web/src/lib/attachments/actions.ts:75
InterfaceAttachmentActionSubject
web/src/lib/attachments/actions.ts:61
FuncTypeAttachmentAuthorizer
AttachmentAuthorizer answers one question about one already-scoped attachment row: may the caller who asked for this copy see it? It exists because D
internal/store/attachments_copy_plan.go:222
InterfaceAttachmentChipOptions
web/src/lib/components/editor/attachment-chip.ts:76
StructAttachmentCopyPlan
AttachmentCopyPlan is what the planner returns. Nothing in it has been written; the caller decides whether to act on it.
internal/store/attachments_copy_plan.go:274
StructAttachmentCopyRequest
AttachmentCopyRequest is the planner's complete input. Content and Fields are the payloads that will actually be written to workspace B: the copied c
internal/store/attachments_copy_plan.go:128
StructAttachmentCopyRow
AttachmentCopyRow is one attachment row to create in workspace B, plus the source-side facts the caller needs in order to move bytes if it has to.
internal/store/attachments_copy_plan.go:227
InterfaceAttachmentHostAddress
web/src/lib/attachments/hostAddress.ts:34
InterfaceAttachmentImageOptions
web/src/lib/components/editor/attachment-image.ts:128
InterfaceAttachmentListFilters
web/src/lib/types/index.ts:1856
StructAttachmentListFilters
AttachmentListFilters narrow the WorkspaceAttachments result set. Zero values mean "no filter on this dimension". The handler turns query-string param
internal/store/attachments.go:264
InterfaceAttachmentListItem
web/src/lib/types/index.ts:1816
StructAttachmentListItem
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:336
StructAttachmentListParams
AttachmentListParams encodes the query-string filters the `GET /api/v1/workspaces/{slug}/attachments` endpoint accepts. Zero values are skipped — the
internal/cli/client.go:1485
InterfaceAttachmentListResponse
web/src/lib/types/index.ts:1848
StructAttachmentListResponse
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:1509
StructAttachmentManifest
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
StructAttachmentManifestEntry
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
InterfaceAttachmentMeta
web/src/lib/markdown/attachments.ts:25
StructAttachmentMeta
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
InterfaceAttachmentMetadata
web/src/lib/components/editor/attachment-metadata.ts:34
StructAttachmentMetadata
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:1438
InterfaceAttachmentParentRestoredEvent
web/src/lib/attachments/events.ts:94
FuncTypeAttachmentResolver
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
InterfaceAttachmentStore
AttachmentStore is the backend abstraction every storage implementation must satisfy. Methods are safe for concurrent use.
internal/attachments/store.go:24
InterfaceAttachmentSurfaceOpenEvent
web/src/lib/attachments/events.ts:342
InterfaceAttachmentTransformResult
web/src/lib/types/index.ts:1765
InterfaceAttachmentUploadOptions
web/src/lib/components/editor/attachment-upload.ts:66
InterfaceAttachmentUploadResult
web/src/lib/types/index.ts:1742
StructAttachmentUploadResult
--- Attachments --- AttachmentUploadResult mirrors the JSON returned by POST /api/v1/workspaces/{slug}/attachments. It is the API contract callers de
internal/cli/client.go:1325
StructAuditLogParams
AuditLogParams are query parameters for the audit log endpoint.
internal/models/activity.go:114
InterfaceAuthSession
web/src/lib/api/client.ts:640
StructBackfillOAuthConnectionsResult
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
StructBackfillStatusTransitionsResult
BackfillStatusTransitionsResult reports what the backfill did so the startup hook can log a one-line summary.
internal/store/status_transitions_backfill.go:98
StructBackfillWikiLinksResult
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
InterfaceBacklink
web/src/lib/types/index.ts:1151
StructBacklink
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
StructBacklinksVisibility
BacklinksVisibility is the per-call visibility scope GetBacklinks applies in SQL. Mirrors the (fullCollIDs, grantedItemIDs) shape `Server.guestResourc
internal/store/wiki_links.go:861
next →1–100 of 959, ranked by callers