opencode chat backend

This commit is contained in:
2026-01-31 10:13:18 +00:00
parent b301822543
commit 925e8f2746
9 changed files with 777 additions and 0 deletions

View File

@@ -666,3 +666,9 @@ export const CancelSubscriptionResponseSchema = z.object({
});
export type CancelSubscriptionResponse = z.infer<typeof CancelSubscriptionResponseSchema>;
export const ChatRequestSchema = z.object({
orgId: z.coerce.number().int().positive("orgId must be a positive integer"),
projectId: z.coerce.number().int().positive("projectId must be a positive integer"),
message: z.string().min(1, "Message is required"),
});

View File

@@ -135,6 +135,7 @@ export {
UserResponseSchema,
UserUpdateRequestSchema,
VerifyEmailRequestSchema,
ChatRequestSchema,
} from "./api-schemas";
export {
ISSUE_COMMENT_MAX_LENGTH,