Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8,171 changes: 4 additions & 8,167 deletions front-api/public/swagger.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-api/routes/swagger_private_schemas.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @swagger
* @ignoreswagger
* components:
* schemas:
* PrivateConsumptionFacet:
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const PatchUserBodySchema = z.object({
const app = sessionApp();

/**
* @swagger
* @ignoreswagger
* /api/user:
* get:
* summary: Get current user
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/analytics/consumption/facets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { consumptionAnalyticsApp } from "./context";
const app = consumptionAnalyticsApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/analytics/consumption/facets:
* post:
* summary: List consumption analytics facets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import webhookFilterGenerator from "./webhook_filter_generator";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/agent_configurations:
* get:
* summary: List agent configurations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const PostMessageEventBodySchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/cancel:
* post:
* summary: Cancel message generation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const PostConversationCompactionsBodySchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/compactions:
* post:
* summary: Compact a conversation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/consumption:
* get:
* summary: Get a conversation credit attribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type PostContentFragmentResponseBody = {
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/content_fragment:
* post:
* summary: Create a content fragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { workspaceApp } from "@front-api/middlewares/ctx";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/events:
* get:
* summary: Stream conversation events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/feedbacks:
* get:
* summary: Get conversation feedbacks
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const PatchConversationsRequestBodySchema = z.union([
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}:
* get:
* summary: Get a conversation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/actions/{aId}:
* get:
* summary: Get a single action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const app = workspaceApp();
app.use(withFeatureFlag("conversation_consumption_details"));

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/consumption:
* get:
* summary: Get an agent message credit attribution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const PostEditRequestBodySchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/edit:
* post:
* summary: Edit a message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { workspaceApp } from "@front-api/middlewares/ctx";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/events:
* get:
* summary: Stream message events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const MessageFeedbackRequestBodySchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/feedbacks:
* post:
* summary: Submit message feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}:
* get:
* summary: Get a message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages/{mId}/retry:
* post:
* summary: Retry an agent message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface FetchConversationMessagesResponse {
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/messages:
* get:
* summary: List messages in a conversation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/participants:
* get:
* summary: Get conversation participants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/selectable_spaces:
* get:
* summary: List selectable Spaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AddSelectedConversationSpacesRequestSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/selected_spaces:
* post:
* summary: Select Spaces for a conversation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export type DeleteConversationWakeUpResponseBody = {
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/wakeups/{wuId}:
* delete:
* summary: Cancel a wake-up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const ParamsSchema = z.object({
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations/{cId}/wakeups:
* get:
* summary: List wake-ups for a conversation
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/assistant/conversations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function isConversationNotFoundError(err: unknown): err is ConversationError {
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/conversations:
* get:
* summary: List conversations
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/assistant/go-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getGoTemplateApiError(
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/go-template:
* get:
* summary: Resolve a conversation go template draft
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/assistant/mentions/suggestions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { workspaceApp } from "@front-api/middlewares/ctx";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/assistant/mentions/suggestions:
* get:
* summary: Get mention suggestions
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/extension/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type { HandlerResult } from "@front-api/middlewares/utils";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/extension/config:
* get:
* summary: Get extension configuration
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/feature-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type GetWorkspaceFeatureFlagsResponseType = {
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/feature-flags:
* get:
* summary: Get workspace feature flags
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/files/[fileId]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function getSecureFileAction(
const app = createHono<WorkspaceAwareCtx & { Bindings: HttpBindings }>();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/files/{fileId}:
* get:
* summary: Get or download a file
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const FileUploadUrlRequestSchema = z.discriminatedUnion("useCase", [
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/files:
* post:
* summary: Create a file upload
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const PostSandboxFunctionInvocationBodySchema = z
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/sandbox-functions/{functionId}/invocations/{invocationId}/events:
* get:
* summary: Stream sandbox function invocation events
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import tables from "./tables";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/spaces/{spaceId}/data_source_views/{dsvId}:
* get:
* summary: Get a data source view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import dsvId from "./[dsvId]";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/spaces/{spaceId}/data_source_views:
* get:
* summary: List data source views
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/spaces/[spaceId]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import webhookSourceViews from "./webhook_source_views";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/spaces/{spaceId}:
* get:
* summary: Get a space
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { withSpace } from "@front-api/middlewares/with_space";
const app = workspaceApp();

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/spaces/{spaceId}/project_notification_preferences:
* get:
* summary: Get project notification preference
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/w/[wId]/spaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const GetSpacesQuerySchema = z.object({
});

/**
* @swagger
* @ignoreswagger
* /api/w/{wId}/spaces:
* get:
* summary: List spaces
Expand Down
2 changes: 1 addition & 1 deletion front-api/routes/workos/[action].ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function redirectTo(ctx: Context, sanitizedReturnTo: string) {
const app = createHono();

/**
* @swagger
* @ignoreswagger
* /api/workos/login:
* get:
* summary: Initiate WorkOS login
Expand Down
13 changes: 1 addition & 12 deletions front-api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,7 @@
{ "name": "Triggers", "description": "Triggers" },
{ "name": "Skills", "description": "Skills" },
{ "name": "Spaces", "description": "Spaces" },
{ "name": "Workspace", "description": "Workspace" },
{ "name": "Private User", "description": "Private API - User" },
{ "name": "Private Authentication", "description": "Private API - Authentication (WorkOS)" },
{ "name": "Private Agents", "description": "Private API - Agent configurations" },
{ "name": "Private Conversations", "description": "Private API - Conversations" },
{ "name": "Private Messages", "description": "Private API - Messages" },
{ "name": "Private Events", "description": "Private API - SSE event streams" },
{ "name": "Private Files", "description": "Private API - File uploads" },
{ "name": "Private Mentions", "description": "Private API - Mention suggestions" },
{ "name": "Private Spaces", "description": "Private API - Spaces and data source views" },
{ "name": "Private Extension", "description": "Private API - Extension configuration" },
{ "name": "Private Workspace", "description": "Private API - Workspace settings" }
{ "name": "Workspace", "description": "Workspace" }
]
}
}
Loading