Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

28.8 KB
Raw Blame
package app

import (
	"net/http"

	httpapi "github.com/simplexai-labs/linger/contracts-go/teamhubpublic"
)

// publicRoutes mounts every teamhub-public operation.
func (a *App) publicRoutes() []contractRoute {
	session := a.requireSession()
	idempotencyKeyRequired := a.requireValidIdempotencyKey
	return []contractRoute{
		route(http.MethodPost, "/v0/account/password", nil, session, a.changePassword),
		route(http.MethodPost, "/v0/auth/login", nil, a.login),
		route(http.MethodPost, "/v0/auth/logout", nil, a.logout),
		route(http.MethodPost, "/v0/decisions/:decisionId", nil, session, a.decideDecision),
		route(http.MethodGet, "/v0/decisions/:decisionId/screenshot", nil, session, a.getDecisionScreenshot),
		route(http.MethodGet, "/v0/document-assets/:documentAssetId", nil, session, a.getRoomDocumentAsset),
		route(http.MethodGet, "/v0/document-assets/:documentAssetId/content", nil, session, a.downloadRoomDocumentAssetContent),
		route(http.MethodPut, "/v0/document-assets/:documentAssetId/content", nil, session, a.uploadRoomDocumentAssetContent),
		route(http.MethodGet, "/v0/document-comment-threads/:documentCommentThreadId", nil, session, a.getRoomDocumentCommentThread),
		route(http.MethodPatch, "/v0/document-comment-threads/:documentCommentThreadId", nil, session, a.updateRoomDocumentCommentThread),
		route(http.MethodPost, "/v0/document-comment-threads/:documentCommentThreadId/anchor-attachments", nil, session, a.attachDocumentCommentSelectionAnchor),
		route(http.MethodPost, "/v0/document-comment-threads/:documentCommentThreadId/anchors", nil, session, a.reanchorRoomDocumentCommentThread),
		route(http.MethodPost, "/v0/document-comment-threads/:documentCommentThreadId/comments", nil, session, a.createRoomDocumentCommentReply),
		route(http.MethodDelete, "/v0/document-comments/:documentCommentId", nil, session, a.deleteRoomDocumentComment),
		route(http.MethodPatch, "/v0/document-comments/:documentCommentId", nil, session, a.updateRoomDocumentComment),
		route(http.MethodDelete, "/v0/document-comments/:documentCommentId/reactions/:emoji", nil, session, a.deleteRoomDocumentCommentReaction),
		route(http.MethodPut, "/v0/document-comments/:documentCommentId/reactions/:emoji", nil, session, a.putRoomDocumentCommentReaction),
		route(http.MethodGet, "/v0/document-history/:historyEntryId/content", nil, session, a.getDocumentHistoryContent),
		route(http.MethodGet, "/v0/document-versions/:documentVersionId", nil, session, a.getDocumentVersion),
		route(http.MethodGet, "/v0/document-versions/:documentVersionId/content", httpapi.DownloadDocumentVersionParams{}, session, a.downloadDocumentVersion),
		route(http.MethodHead, "/v0/document-versions/:documentVersionId/content", nil, session, a.headDocumentVersionContent),
		route(http.MethodPost, "/v0/document-versions/:documentVersionId/preview-sessions", nil, session, a.createDocumentPreviewSession),
		route(http.MethodDelete, "/v0/documents/:documentId", nil, session, a.trashDocument),
		route(http.MethodGet, "/v0/documents/:documentId", nil, session, a.getDocument),
		route(http.MethodGet, "/v0/documents/:documentId/mail", nil, session, a.getMailCanvas),
		route(http.MethodPost, "/v0/documents/:documentId/mail", nil, session, a.sendMailCanvas),
		route(http.MethodPost, "/v0/documents/:documentId/mail/decline", nil, session, a.declineMailCanvas),
		route(http.MethodPatch, "/v0/documents/:documentId", nil, session, a.updateDocumentMetadata),
		route(http.MethodGet, "/v0/documents/:documentId/agent-mention-candidates", httpapi.ListDocumentAgentMentionCandidatesParams{}, session, a.listDocumentAgentMentionCandidates),
		route(http.MethodPost, "/v0/documents/:documentId/assets", httpapi.PlanRoomDocumentAssetParams{}, session, a.planRoomDocumentAsset),
		route(http.MethodPost, "/v0/documents/:documentId/collaboration-credentials", nil, session, a.createRoomDocumentCollaborationCredential),
		route(http.MethodGet, "/v0/documents/:documentId/collaborators", nil, session, a.getDocumentShareView),
		route(http.MethodPost, "/v0/documents/:documentId/collaborators", nil, session, a.createDocumentDirectCollaborator),
		route(http.MethodPatch, "/v0/documents/:documentId/collaborators/:sourceId", nil, session, a.updateDocumentDirectCollaborator),
		route(http.MethodPost, "/v0/documents/:documentId/collaborators/:sourceId/revoke", nil, session, a.revokeDocumentDirectCollaborator),
		route(http.MethodGet, "/v0/documents/:documentId/comment-threads", httpapi.ListRoomDocumentCommentThreadsParams{}, session, a.listRoomDocumentCommentThreads),
		route(http.MethodPost, "/v0/documents/:documentId/comment-threads", nil, session, a.createRoomDocumentCommentThread),
		route(http.MethodGet, "/v0/documents/:documentId/downloads", httpapi.DownloadLatestDocumentParams{}, session, a.downloadLatestDocument),
		route(http.MethodPatch, "/v0/documents/:documentId/draft-title", nil, session, a.updateDocumentDraftTitle),
		route(http.MethodPost, "/v0/documents/:documentId/duplicates", nil, session, a.duplicateDocument),
		route(http.MethodGet, "/v0/documents/:documentId/history", httpapi.ListDocumentHistoryParams{}, session, a.listDocumentHistory),
		route(http.MethodPost, "/v0/documents/:documentId/history/:historyEntryId/restore", nil, session, a.restoreDocumentHistoryEntry),
		route(http.MethodPost, "/v0/documents/:documentId/history/checkpoints", nil, session, a.createDocumentHistoryCheckpoint),
		route(http.MethodDelete, "/v0/documents/:documentId/link-share", nil, session, a.revokeDocumentLinkShare),
		route(http.MethodGet, "/v0/documents/:documentId/link-share", nil, session, a.getDocumentLinkShare),
		route(http.MethodPut, "/v0/documents/:documentId/link-share", nil, session, a.setDocumentLinkShare),
		route(http.MethodPost, "/v0/documents/:documentId/open", nil, session, a.openDocument),
		route(http.MethodPost, "/v0/documents/:documentId/read-session-credentials", nil, session, a.createDocumentReadSessionCredential),
		route(http.MethodPost, "/v0/documents/:documentId/restore", nil, session, a.restoreDocument),
		route(http.MethodPost, "/v0/documents/:documentId/room-bindings/:roomId/remove", nil, session, a.removeDocumentFromRoom),
		route(http.MethodGet, "/v0/documents/:documentId/versions", httpapi.ListDocumentVersionsParams{}, session, a.listDocumentVersions),
		route(http.MethodPost, "/v0/documents/:documentId/versions", httpapi.UploadDocumentVersionParams{}, session, idempotencyKeyRequired, a.uploadDocumentVersionRoute),
		route(http.MethodGet, "/v0/events", httpapi.StreamEventsParams{}, session, a.streamEvents),
		route(http.MethodGet, "/v0/external-apps", nil, session, a.listExternalApps),
		route(http.MethodPut, "/v0/external-apps/provider-key", nil, session, a.saveExternalProviderKey),
		route(http.MethodPost, "/v0/external-connection-completions", nil, session, a.completeExternalConnectionAuthorization),
		route(http.MethodGet, "/v0/external-connections", nil, session, a.listExternalConnections),
		route(http.MethodPost, "/v0/external-connections", nil, session, a.createExternalConnection),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId", nil, session, a.getExternalConnection),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/agent-grants", nil, session, a.listExternalConnectionAgentAccess),
		route(http.MethodPut, "/v0/external-connections/:externalConnectionId/agent-grants/:agentActorId", nil, session, a.setExternalConnectionAgentAccess),
		route(http.MethodPut, "/v0/external-connections/:externalConnectionId/auto-reminders", nil, session, a.setExternalConnectionAutoReminders),
		route(http.MethodPost, "/v0/external-connections/:externalConnectionId/disconnects", nil, session, a.disconnectExternalConnection),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/discord/channels", nil, session, a.listDiscordChannels),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/github/repositories", httpapi.ListGitHubRepositoriesParams{}, session, a.listGitHubRepositories),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/google-calendar/calendars", httpapi.ListGoogleCalendarsParams{}, session, a.listGoogleCalendars),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/notion/resources", httpapi.ListNotionResourcesParams{}, session, a.listNotionResources),
		route(http.MethodPost, "/v0/external-connections/:externalConnectionId/reauthorizations", nil, session, a.createExternalConnectionReauthorization),
		route(http.MethodGet, "/v0/external-connections/:externalConnectionId/slack/conversations", httpapi.ListSlackConversationsParams{}, session, a.listSlackConversations),
		route(http.MethodPost, "/v0/external-connections/:externalConnectionId/status-checks", nil, session, a.createExternalConnectionStatusCheck),
		route(http.MethodGet, "/v0/library/documents", httpapi.ListLibraryDocumentsParams{}, session, a.listLibraryDocuments),
		route(http.MethodGet, "/v0/library/documents/search", httpapi.SearchLibraryDocumentsParams{}, session, a.searchLibraryDocuments),
		route(http.MethodPost, "/v0/local-computer-enrollments/:enrollmentId/exchange", nil, a.exchangeLocalComputerEnrollment),
		route(http.MethodPost, "/v0/local/identity", nil, a.proveLocalIdentity),
		route(http.MethodGet, "/v0/me", nil, session, a.getCurrentIdentity),
		route(http.MethodDelete, "/v0/rooms/:roomId", nil, session, a.deleteRoom),
		route(http.MethodGet, "/v0/rooms/:roomId", nil, session, a.getRoom),
		route(http.MethodPatch, "/v0/rooms/:roomId", nil, session, a.updateRoom),
		route(http.MethodGet, "/v0/rooms/:roomId/active-voice-capture", nil, session, a.getActiveVoiceCapture),
		route(http.MethodGet, "/v0/rooms/:roomId/background-tasks", nil, session, a.listRoomBackgroundTasks),
		route(http.MethodPost, "/v0/rooms/:roomId/background-tasks/:taskId/cancel", nil, session, a.cancelRoomBackgroundTask),
		route(http.MethodGet, "/v0/rooms/:roomId/documents", httpapi.ListRoomDocumentsParams{}, session, a.listRoomDocuments),
		route(http.MethodPost, "/v0/rooms/:roomId/documents", nil, session, a.createRoomDocument),
		route(http.MethodPut, "/v0/rooms/:roomId/documents/:documentId", nil, session, a.bindDocumentToRoom),
		route(http.MethodPost, "/v0/rooms/:roomId/documents/uploads", httpapi.UploadRoomDocumentParams{}, session, idempotencyKeyRequired, a.uploadRoomDocument),
		route(http.MethodGet, "/v0/rooms/:roomId/events", httpapi.ListRoomEventsParams{}, session, a.listRoomEvents),
		route(http.MethodGet, "/v0/rooms/:roomId/history-shares", nil, session, a.listRoomHistoryShares),
		route(http.MethodDelete, "/v0/rooms/:roomId/history-shares/:shareId", nil, session, a.revokeRoomHistoryShare),
		route(http.MethodPost, "/v0/rooms/:roomId/history-shares/:shareId/link", nil, session, a.issueRoomHistoryShareLinkRoute),
		route(http.MethodPost, "/v0/rooms/:roomId/history-shares/create", nil, session, a.createRoomHistoryShareRoute),
		route(http.MethodGet, "/v0/rooms/:roomId/members", httpapi.ListRoomMembersParams{}, session, a.listRoomMembers),
		route(http.MethodDelete, "/v0/rooms/:roomId/members/:actorId", nil, session, a.deleteRoomMember),
		route(http.MethodPut, "/v0/rooms/:roomId/members/:actorId", nil, session, a.putRoomMember),
		route(http.MethodPost, "/v0/rooms/:roomId/message-attachment-uploads", httpapi.UploadMessageAttachmentParams{}, session, a.uploadMessageAttachment),
		route(http.MethodDelete, "/v0/rooms/:roomId/message-attachment-uploads/:attachmentUploadId", nil, session, a.cancelMessageAttachmentUpload),
		route(http.MethodGet, "/v0/rooms/:roomId/messages", httpapi.ListMessagesParams{}, session, a.listMessages),
		route(http.MethodPost, "/v0/rooms/:roomId/messages", httpapi.CreateMessageParams{}, session, a.createMessage),
		route(http.MethodGet, "/v0/rooms/:roomId/messages/:messageId", nil, session, a.getMessage),
		route(http.MethodGet, "/v0/rooms/:roomId/messages/:messageId/activities", nil, session, a.getMessageActivities),
		route(http.MethodPost, "/v0/rooms/:roomId/messages/:messageId/forward", httpapi.ForwardRoomMessageParams{}, session, idempotencyKeyRequired, a.forwardRoomMessage),
		route(http.MethodDelete, "/v0/rooms/:roomId/messages/:messageId/reactions/:reactionId", nil, session, a.deleteMessageReaction),
		route(http.MethodPut, "/v0/rooms/:roomId/messages/:messageId/reactions/:reactionId", nil, session, a.putMessageReaction),
		route(http.MethodPost, "/v0/rooms/:roomId/messages/:messageId/thread", nil, session, a.createOrGetMessageThread),
		route(http.MethodPut, "/v0/rooms/:roomId/participation", nil, session, a.setRoomParticipation),
		route(http.MethodPut, "/v0/rooms/:roomId/pin", nil, session, a.updateRoomPin),
		route(http.MethodPost, "/v0/rooms/:roomId/presence", nil, session, a.notifyRoomPresence),
		route(http.MethodPut, "/v0/rooms/:roomId/read-state", nil, session, a.updateRoomReadState),
		route(http.MethodGet, "/v0/rooms/:roomId/routines", httpapi.ListRoomRoutinesParams{}, session, a.listRoomRoutines),
		route(http.MethodPost, "/v0/rooms/:roomId/routines", nil, session, a.createRoomRoutine),
		route(http.MethodGet, "/v0/rooms/:roomId/run-statuses", nil, session, a.listRoomRunStatuses),
		route(http.MethodGet, "/v0/rooms/:roomId/runs/:runId/activities", nil, session, a.getRunActivities),
		route(http.MethodPost, "/v0/rooms/:roomId/runs/:runId/cancel", nil, session, a.cancelRoomRun),
		route(http.MethodPost, "/v0/rooms/:roomId/runs/:runId/redeliver-unconfirmed-inputs", nil, session, a.redeliverRoomRunUnconfirmedInputs),
		route(http.MethodGet, "/v0/rooms/:roomId/runs/:runId/runtime-presentation-events", httpapi.ListRoomRuntimePresentationEventsParams{}, session, a.listRoomRuntimePresentationEvents),
		route(http.MethodGet, "/v0/rooms/:roomId/runtime-presentation-runs", httpapi.ListRoomRuntimePresentationRunsParams{}, session, a.listRoomRuntimePresentationRuns),
		route(http.MethodGet, "/v0/rooms/:roomId/team-md", nil, session, a.getRoomTeamMd),
		route(http.MethodGet, "/v0/rooms/:roomId/voice-sessions", nil, session, a.getActiveVoiceSession),
		route(http.MethodPost, "/v0/rooms/:roomId/voice-sessions", nil, session, a.createVoiceSession),
		route(http.MethodDelete, "/v0/routines/:routineId", httpapi.DeleteRoutineParams{}, session, a.deleteRoutine),
		route(http.MethodPatch, "/v0/routines/:routineId", nil, session, a.updateRoutine),
		route(http.MethodPost, "/v0/routines/:routineId/run", nil, session, a.runRoutine),
		route(http.MethodGet, "/v0/session", nil, session, a.getSession),
		route(http.MethodPost, "/v0/session", nil, session, a.renewSession),
		route(http.MethodPost, "/v0/shared-documents/content", nil, a.downloadSharedDocument),
		route(http.MethodPost, "/v0/shared-documents/resolve", nil, a.resolveDocumentLinkShare),
		route(http.MethodPost, "/v0/shared-room-history/asset", nil, a.readRoomHistoryShareAsset),
		route(http.MethodPost, "/v0/shared-room-history/read", nil, a.readRoomHistoryShare),
		route(http.MethodGet, "/v0/tasks/:taskId/execution", nil, session, a.getTaskExecutionProjection),
		route(http.MethodGet, "/v0/tasks/:taskId/conversation", nil, session, a.getTaskConversation),
		route(http.MethodGet, "/v0/tasks/:taskId/runtime-presentation-runs", httpapi.ListTaskRuntimePresentationRunsParams{}, session, a.listTaskRuntimePresentationRuns),
		route(http.MethodGet, "/v0/tenants", nil, session, a.listTenants),
		route(http.MethodGet, "/v0/tenants/:tenantId", nil, session, a.getTenant),
		route(http.MethodGet, "/v0/tenants/:tenantId/account-profile", nil, session, a.getAccountProfile),
		route(http.MethodPatch, "/v0/tenants/:tenantId/account-profile", nil, session, a.patchAccountProfile),
		route(http.MethodGet, "/v0/tenants/:tenantId/actors", httpapi.ListActorsParams{}, session, a.listActors),
		route(http.MethodGet, "/v0/tenants/:tenantId/actors/:actorId", nil, session, a.getActor),
		route(http.MethodGet, "/v0/tenants/:tenantId/agent-availability", httpapi.ListTenantAgentAvailabilityParams{}, session, a.listTenantAgentAvailability),
		route(http.MethodGet, "/v0/tenants/:tenantId/agent-templates", nil, session, a.listAgentTemplates),
		route(http.MethodPost, "/v0/tenants/:tenantId/agent-templates", nil, session, a.publishAgentTemplate),
		route(http.MethodDelete, "/v0/tenants/:tenantId/agent-templates/:templateId", nil, session, a.deleteAgentTemplate),
		route(http.MethodGet, "/v0/tenants/:tenantId/agent-templates/:templateId/skill-imports", nil, session, a.listAgentTemplateSkillImports),
		route(http.MethodPost, "/v0/tenants/:tenantId/agent-templates/:templateId/skill-imports", nil, session, a.importAgentTemplateSkills),
		route(http.MethodGet, "/v0/tenants/:tenantId/agents", httpapi.ListTenantAgentsParams{}, session, a.listTenantAgents),
		route(http.MethodPost, "/v0/tenants/:tenantId/agents", nil, session, a.createTenantAgent),
		route(http.MethodDelete, "/v0/tenants/:tenantId/agents/:agentId", nil, session, a.deleteTenantAgent),
		route(http.MethodPatch, "/v0/tenants/:tenantId/agents/:agentId", nil, session, a.updateTenantAgent),
		route(http.MethodPut, "/v0/tenants/:tenantId/agents/:agentId/avatar", nil, session, a.updateTenantAgentAvatar),
		route(http.MethodGet, "/v0/tenants/:tenantId/agents/:agentId/avatar-image", httpapi.GetTenantAgentAvatarImageParams{}, session, a.getTenantAgentAvatarImage),
		route(http.MethodGet, "/v0/tenants/:tenantId/agents/:agentId/skill-bindings", nil, session, a.listAgentSkillBindings),
		route(http.MethodDelete, "/v0/tenants/:tenantId/agents/:agentId/skill-bindings/:skillId", httpapi.DeleteAgentSkillBindingParams{}, session, a.deleteAgentSkillBinding),
		route(http.MethodGet, "/v0/tenants/:tenantId/agents/:agentId/skill-bindings/:skillId", nil, session, a.getAgentSkillBinding),
		route(http.MethodPut, "/v0/tenants/:tenantId/agents/:agentId/skill-bindings/:skillId", nil, session, a.putAgentSkillBinding),
		route(http.MethodPost, "/v0/tenants/:tenantId/agents/:agentId/skill-packages", httpapi.UploadAgentSkillPackageParams{}, session, a.uploadAgentSkillPackage),
		route(http.MethodGet, "/v0/tenants/:tenantId/another-me", nil, session, a.getAnotherMe),
		route(http.MethodPost, "/v0/tenants/:tenantId/direct-rooms", nil, session, a.openDirectRoom),
		route(http.MethodPost, "/v0/tenants/:tenantId/documents", nil, session, a.createDocument),
		route(http.MethodPost, "/v0/tenants/:tenantId/documents/uploads", httpapi.UploadTenantDocumentParams{}, session, idempotencyKeyRequired, a.uploadDocument),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computer-enrollments", nil, session, a.createLocalComputerEnrollment),
		route(http.MethodGet, "/v0/tenants/:tenantId/local-computers", nil, session, a.listLocalComputers),
		route(http.MethodDelete, "/v0/tenants/:tenantId/local-computers/:computerId", nil, session, a.removeLocalComputer),
		route(http.MethodDelete, "/v0/tenants/:tenantId/local-computers/:computerId/browser-connection", nil, session, a.deleteLocalComputerBrowserConnection),
		route(http.MethodGet, "/v0/tenants/:tenantId/local-computers/:computerId/browser-connection", nil, session, a.getLocalComputerBrowserConnection),
		route(http.MethodPut, "/v0/tenants/:tenantId/local-computers/:computerId/browser-connection", nil, session, a.putLocalComputerBrowserConnection),
		route(http.MethodGet, "/v0/tenants/:tenantId/local-computers/:computerId/local-models", nil, session, a.getLocalComputerModels),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/local-models", nil, session, a.refreshLocalComputerModels),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/local-models/:modelId/actions", nil, session, a.actOnLocalComputerModel),
		route(http.MethodGet, "/v0/tenants/:tenantId/local-computers/:computerId/model-source", nil, session, a.getLocalComputerModelSource),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/model-source", nil, session, a.switchLocalComputerModelSource),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/model-source/test", nil, session, a.testLocalComputerModelSource),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/model-source/models", nil, session, a.listLocalComputerByokModels),
		route(http.MethodGet, "/v0/tenants/:tenantId/local-computers/:computerId/permissions", nil, session, a.getLocalComputerPermissions),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/permissions", nil, session, a.actOnLocalComputerPermission),
		route(http.MethodPost, "/v0/tenants/:tenantId/local-computers/:computerId/skill-scans", nil, session, a.scanLocalSkills),
		route(http.MethodPost, "/v0/tenants/:tenantId/me/document-folders", nil, session, a.createMyDocumentFolder),
		route(http.MethodDelete, "/v0/tenants/:tenantId/me/document-folders/:placementId", nil, session, a.deleteMyDocumentFolder),
		route(http.MethodPatch, "/v0/tenants/:tenantId/me/document-placements/:placementId", nil, session, a.updateMyDocumentPlacement),
		route(http.MethodGet, "/v0/tenants/:tenantId/me/document-tree", nil, session, a.getMyDocumentTree),
		route(http.MethodDelete, "/v0/tenants/:tenantId/me/meetings/:captureSessionId", nil, session, a.hideMeeting),
		route(http.MethodGet, "/v0/tenants/:tenantId/me/pocket-notes", httpapi.ListPocketNotesParams{}, session, a.listPocketNotes),
		route(http.MethodDelete, "/v0/tenants/:tenantId/me/pocket-notes/:noteDate", nil, session, a.deletePocketNote),
		route(http.MethodPut, "/v0/tenants/:tenantId/me/pocket-notes/today", nil, session, a.putTodayPocketNote),
		route(http.MethodPost, "/v0/tenants/:tenantId/me/shared-document-folders", nil, session, a.createMySharedDocumentFolder),
		route(http.MethodDelete, "/v0/tenants/:tenantId/me/shared-document-folders/:folderId", nil, session, a.deleteMySharedDocumentFolder),
		route(http.MethodPatch, "/v0/tenants/:tenantId/me/shared-document-folders/:folderId", nil, session, a.updateMySharedDocumentFolder),
		route(http.MethodGet, "/v0/tenants/:tenantId/me/shared-document-tree", nil, session, a.getMySharedDocumentTree),
		route(http.MethodPut, "/v0/tenants/:tenantId/me/shared-documents/:documentId", nil, session, a.moveMySharedDocument),
		route(http.MethodGet, "/v0/tenants/:tenantId/memory", httpapi.ListPersonalMemoryEntriesParams{}, session, a.listPersonalMemoryEntries),
		route(http.MethodGet, "/v0/tenants/:tenantId/memory/:entryId", nil, session, a.getPersonalMemoryEntry),
		route(http.MethodGet, "/v0/tenants/:tenantId/messages/search", httpapi.SearchTenantMessagesParams{}, session, a.searchTenantMessages),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-insights", nil, session, a.listPersonalInsights),
		route(http.MethodDelete, "/v0/tenants/:tenantId/personal-insights/:personalInsightId", nil, session, a.deletePersonalInsight),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-profile", nil, session, a.getPersonalProfile),
		route(http.MethodPost, "/v0/tenants/:tenantId/personal-profile/revisions", nil, session, a.replacePersonalProfile),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-profile-generations", nil, session, a.listPersonalProfileGenerations),
		route(http.MethodPost, "/v0/tenants/:tenantId/personal-profile-generations", nil, session, a.createPersonalProfileGeneration),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-wiki", nil, session, a.getPersonalWiki),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-wiki/preview", httpapi.GetPersonalWikiPreviewParams{}, session, a.getPersonalWikiPreview),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-wiki/documents", httpapi.ListPersonalWikiDocumentsParams{}, session, a.listPersonalWikiDocuments),
		route(http.MethodPut, "/v0/tenants/:tenantId/personal-wiki/documents/:documentId", nil, session, a.bindDocumentToPersonalWiki),
		route(http.MethodPost, "/v0/tenants/:tenantId/personal-wiki/documents/uploads", httpapi.UploadPersonalWikiDocumentParams{}, session, idempotencyKeyRequired, a.uploadPersonalWikiDocument),
		route(http.MethodGet, "/v0/tenants/:tenantId/personal-wiki/graph", nil, session, a.getPersonalKnowledgeGraphVisualization),
		route(http.MethodGet, "/v0/tenants/:tenantId/room-activity", nil, session, a.getTenantRoomActivity),
		route(http.MethodGet, "/v0/tenants/:tenantId/rooms", httpapi.ListRoomsParams{}, session, a.listRooms),
		route(http.MethodPost, "/v0/tenants/:tenantId/rooms", nil, session, a.createRoom),
		route(http.MethodGet, "/v0/tenants/:tenantId/skill-manifests", httpapi.ListSkillManifestsParams{}, session, a.listSkillManifests),
		route(http.MethodGet, "/v0/tenants/:tenantId/voice-media-policy", nil, session, a.getVoiceMediaPolicy),
		route(http.MethodGet, "/v0/tenants/:tenantId/work-items", httpapi.ListWorkItemsParams{}, session, a.listWorkItems),
		route(http.MethodPost, "/v0/tenants/:tenantId/work-items", httpapi.CreateWorkItemParams{}, session, a.createWorkItem),
		route(http.MethodGet, "/v0/voice-captures/:captureSessionId", nil, session, a.getVoiceCapture),
		route(http.MethodGet, "/v0/voice-captures/:captureSessionId/questions", nil, session, a.listVoiceCaptureQuestions),
		route(http.MethodPost, "/v0/voice-captures/:captureSessionId/questions", nil, session, a.askVoiceCaptureQuestionRoute),
		route(http.MethodPost, "/v0/voice-captures/:captureSessionId/questions/:questionId/task", nil, session, a.sendVoiceCaptureQuestionTask),
		route(http.MethodPost, "/v0/voice-captures/:captureSessionId/stop", nil, session, a.stopVoiceCapture),
		route(http.MethodPost, "/v0/voice-captures/:captureSessionId/transcript-recovery/retry", nil, session, a.retryVoiceCaptureTranscript),
		route(http.MethodPut, "/v0/voice-provider-keys/:provider", nil, session, a.saveVoiceProviderKey),
		route(http.MethodDelete, "/v0/voice-sessions/:voiceSessionId", nil, session, a.closeVoiceSession),
		route(http.MethodGet, "/v0/voice-sessions/:voiceSessionId", nil, session, a.getVoiceSession),
		route(http.MethodPost, "/v0/voice-sessions/:voiceSessionId/captures", nil, session, a.startVoiceCapture),
		route(http.MethodPost, "/v0/voice-sessions/:voiceSessionId/connection-credentials", nil, session, a.createVoiceSessionCredential),
		route(http.MethodPost, "/v0/voice-sessions/:voiceSessionId/dictation-commit", nil, session, a.commitVoiceDictationTurn),
		route(http.MethodGet, "/v0/voice-sessions/:voiceSessionId/events", httpapi.ListVoiceEventsParams{}, session, a.listVoiceEvents),
		route(http.MethodGet, "/v0/voice-sessions/:voiceSessionId/events/stream", httpapi.StreamVoiceEventsParams{}, session, a.streamVoiceEvents),
		route(http.MethodGet, "/v0/voice-sessions/:voiceSessionId/transcript-events", httpapi.ListVoiceTranscriptEventsParams{}, session, a.listVoiceTranscriptEvents),
		route(http.MethodGet, "/v0/web-search/backends", httpapi.ListWebSearchBackendsParams{}, session, a.listWebSearchBackends),
		route(http.MethodDelete, "/v0/web-search/backends/:backend/key", nil, session, a.deleteWebSearchKey),
		route(http.MethodPut, "/v0/web-search/backends/:backend/key", nil, session, a.saveWebSearchKey),
		route(http.MethodDelete, "/v0/web-search/default", nil, session, a.clearWebSearchDefault),
		route(http.MethodPut, "/v0/web-search/default", nil, session, a.setWebSearchDefault),
		route(http.MethodGet, "/v0/work-items/:workItemId", nil, session, a.getWorkItem),
		route(http.MethodPatch, "/v0/work-items/:workItemId", httpapi.UpdateWorkItemParams{}, session, a.updateWorkItem),
		route(http.MethodDelete, "/v0/work-items/:workItemId/access-grants/:actorId", httpapi.DeleteWorkItemAccessGrantParams{}, session, a.deleteWorkItemAccessGrant),
		route(http.MethodPut, "/v0/work-items/:workItemId/access-grants/:actorId", httpapi.PutWorkItemAccessGrantParams{}, session, a.putWorkItemAccessGrant),
		route(http.MethodPost, "/v0/work-items/:workItemId/archive", httpapi.ArchiveWorkItemParams{}, session, a.archiveWorkItem),
		route(http.MethodDelete, "/v0/work-items/:workItemId/assignments/:actorId", httpapi.DeleteWorkItemAssignmentParams{}, session, a.deleteWorkItemAssignment),
		route(http.MethodPut, "/v0/work-items/:workItemId/assignments/:actorId", httpapi.PutWorkItemAssignmentParams{}, session, a.putWorkItemAssignment),
		route(http.MethodGet, "/v0/work-items/:workItemId/comments", httpapi.ListWorkItemCommentsParams{}, session, a.listWorkItemComments),
		route(http.MethodPost, "/v0/work-items/:workItemId/comments", httpapi.CreateWorkItemCommentParams{}, session, a.createWorkItemComment),
		route(http.MethodDelete, "/v0/work-items/:workItemId/comments/:commentId", httpapi.DeleteWorkItemCommentParams{}, session, a.deleteWorkItemComment),
		route(http.MethodPatch, "/v0/work-items/:workItemId/comments/:commentId", httpapi.UpdateWorkItemCommentParams{}, session, a.updateWorkItemComment),
		route(http.MethodPut, "/v0/work-items/:workItemId/documents/:documentId", httpapi.BindDocumentToWorkItemParams{}, session, idempotencyKeyRequired, a.bindDocumentToWorkItem),
		route(http.MethodPost, "/v0/work-items/:workItemId/documents/uploads", httpapi.UploadWorkItemDocumentParams{}, session, idempotencyKeyRequired, a.uploadWorkItemDocument),
		route(http.MethodGet, "/v0/work-items/:workItemId/timeline", httpapi.ListWorkItemTimelineParams{}, session, a.listWorkItemTimeline),
		route(http.MethodPost, "/v0/work-items/:workItemId/transitions", httpapi.TransitionWorkItemParams{}, session, a.transitionWorkItem),
		route(http.MethodPost, "/v0/work-items/:workItemId/unarchive", httpapi.UnarchiveWorkItemParams{}, session, a.unarchiveWorkItem),
	}
}