merge: upstream/dev with migration renumbering

This commit is contained in:
CREDO23 2026-01-27 11:22:26 +02:00
commit a7145b2c63
176 changed files with 8791 additions and 3608 deletions

View file

@ -25,5 +25,7 @@ export enum EnumConnectorName {
CIRCLEBACK_CONNECTOR = "CIRCLEBACK_CONNECTOR",
OBSIDIAN_CONNECTOR = "OBSIDIAN_CONNECTOR",
MCP_CONNECTOR = "MCP_CONNECTOR",
COMPOSIO_CONNECTOR = "COMPOSIO_CONNECTOR",
COMPOSIO_GOOGLE_DRIVE_CONNECTOR = "COMPOSIO_GOOGLE_DRIVE_CONNECTOR",
COMPOSIO_GMAIL_CONNECTOR = "COMPOSIO_GMAIL_CONNECTOR",
COMPOSIO_GOOGLE_CALENDAR_CONNECTOR = "COMPOSIO_GOOGLE_CALENDAR_CONNECTOR",
}

View file

@ -68,8 +68,12 @@ export const getConnectorIcon = (connectorType: EnumConnectorName | string, clas
return <Image src="/connectors/modelcontextprotocol.svg" alt="MCP" {...imgProps} />;
case EnumConnectorName.OBSIDIAN_CONNECTOR:
return <Image src="/connectors/obsidian.svg" alt="Obsidian" {...imgProps} />;
case EnumConnectorName.COMPOSIO_CONNECTOR:
return <Image src="/connectors/composio.svg" alt="Composio" {...imgProps} />;
case EnumConnectorName.COMPOSIO_GOOGLE_DRIVE_CONNECTOR:
return <Image src="/connectors/google-drive.svg" alt="Google Drive" {...imgProps} />;
case EnumConnectorName.COMPOSIO_GMAIL_CONNECTOR:
return <Image src="/connectors/google-gmail.svg" alt="Gmail" {...imgProps} />;
case EnumConnectorName.COMPOSIO_GOOGLE_CALENDAR_CONNECTOR:
return <Image src="/connectors/google-calendar.svg" alt="Google Calendar" {...imgProps} />;
// Additional cases for non-enum connector types
case "YOUTUBE_CONNECTOR":
return <Image src="/connectors/youtube.svg" alt="YouTube" {...imgProps} />;
@ -89,8 +93,12 @@ export const getConnectorIcon = (connectorType: EnumConnectorName | string, clas
return <File {...iconProps} />;
case "GOOGLE_DRIVE_FILE":
return <File {...iconProps} />;
case "COMPOSIO_CONNECTOR":
return <Image src="/connectors/composio.svg" alt="Composio" {...imgProps} />;
case "COMPOSIO_GOOGLE_DRIVE_CONNECTOR":
return <Image src="/connectors/google-drive.svg" alt="Google Drive" {...imgProps} />;
case "COMPOSIO_GMAIL_CONNECTOR":
return <Image src="/connectors/google-gmail.svg" alt="Gmail" {...imgProps} />;
case "COMPOSIO_GOOGLE_CALENDAR_CONNECTOR":
return <Image src="/connectors/google-calendar.svg" alt="Google Calendar" {...imgProps} />;
case "NOTE":
return <FileText {...iconProps} />;
case "EXTENSION":

View file

@ -28,7 +28,9 @@ export const searchSourceConnectorTypeEnum = z.enum([
"CIRCLEBACK_CONNECTOR",
"MCP_CONNECTOR",
"OBSIDIAN_CONNECTOR",
"COMPOSIO_CONNECTOR",
"COMPOSIO_GOOGLE_DRIVE_CONNECTOR",
"COMPOSIO_GMAIL_CONNECTOR",
"COMPOSIO_GOOGLE_CALENDAR_CONNECTOR",
]);
export const searchSourceConnector = z.object({
@ -150,6 +152,13 @@ export const googleDriveIndexBody = z.object({
name: z.string(),
})
),
indexing_options: z
.object({
max_files_per_folder: z.number().int().min(1).max(1000),
incremental_sync: z.boolean(),
include_subfolders: z.boolean(),
})
.optional(),
});
/**

View file

@ -25,7 +25,9 @@ export const documentTypeEnum = z.enum([
"CIRCLEBACK",
"SURFSENSE_DOCS",
"NOTE",
"COMPOSIO_CONNECTOR",
"COMPOSIO_GOOGLE_DRIVE_CONNECTOR",
"COMPOSIO_GMAIL_CONNECTOR",
"COMPOSIO_GOOGLE_CALENDAR_CONNECTOR",
]);
export const document = z.object({

View file

@ -0,0 +1,67 @@
import { z } from "zod";
/**
* Incentive task type enum - matches backend IncentiveTaskType
*/
export const incentiveTaskTypeEnum = z.enum(["GITHUB_STAR"]);
/**
* Single incentive task info schema
*/
export const incentiveTaskInfo = z.object({
task_type: incentiveTaskTypeEnum,
title: z.string(),
description: z.string(),
pages_reward: z.number(),
action_url: z.string(),
completed: z.boolean(),
completed_at: z.string().nullable(),
});
/**
* Response schema for getting all incentive tasks
*/
export const getIncentiveTasksResponse = z.object({
tasks: z.array(incentiveTaskInfo),
total_pages_earned: z.number(),
});
/**
* Response schema for completing a task successfully
*/
export const completeTaskSuccessResponse = z.object({
success: z.literal(true),
message: z.string(),
pages_awarded: z.number(),
new_pages_limit: z.number(),
});
/**
* Response schema when task was already completed
*/
export const completeTaskAlreadyCompletedResponse = z.object({
success: z.literal(false),
message: z.string(),
completed_at: z.string(),
});
/**
* Union response for complete task endpoint
*/
export const completeTaskResponse = z.union([
completeTaskSuccessResponse,
completeTaskAlreadyCompletedResponse,
]);
// =============================================================================
// Inferred types
// =============================================================================
export type IncentiveTaskTypeEnum = z.infer<typeof incentiveTaskTypeEnum>;
export type IncentiveTaskInfo = z.infer<typeof incentiveTaskInfo>;
export type GetIncentiveTasksResponse = z.infer<typeof getIncentiveTasksResponse>;
export type CompleteTaskSuccessResponse = z.infer<typeof completeTaskSuccessResponse>;
export type CompleteTaskAlreadyCompletedResponse = z.infer<
typeof completeTaskAlreadyCompletedResponse
>;
export type CompleteTaskResponse = z.infer<typeof completeTaskResponse>;

View file

@ -4,6 +4,7 @@ export const permissionInfo = z.object({
value: z.string(),
name: z.string(),
category: z.string(),
description: z.string(),
});
/**