feat(channels): add bluebubbles imessage adapter
This commit is contained in:
@@ -426,6 +426,15 @@ const googleChatSchema = z.object({
|
||||
require_mention: z.boolean().default(true),
|
||||
}).optional();
|
||||
|
||||
const bluebubblesSchema = z.object({
|
||||
endpoint: z.string().url('BlueBubbles endpoint must be a valid URL'),
|
||||
api_key: z.string().min(1, 'BlueBubbles api_key is required'),
|
||||
webhook_token: z.string().optional(),
|
||||
allowed_chat_guids: z.array(z.string()).default([]),
|
||||
require_mention: z.boolean().default(true),
|
||||
mention_name: z.string().default('flynn'),
|
||||
}).optional();
|
||||
|
||||
const browserSchema = z.object({
|
||||
enabled: z.boolean().default(false),
|
||||
executable_path: z.string().optional(),
|
||||
@@ -595,6 +604,7 @@ export const configSchema = z.object({
|
||||
signal: signalSchema,
|
||||
teams: teamsSchema,
|
||||
google_chat: googleChatSchema,
|
||||
bluebubbles: bluebubblesSchema,
|
||||
server: serverSchema.default({}),
|
||||
models: modelsSchema,
|
||||
backends: backendsSchema.default({}),
|
||||
@@ -642,6 +652,7 @@ export type MatrixConfig = z.infer<typeof matrixSchema>;
|
||||
export type SignalConfig = z.infer<typeof signalSchema>;
|
||||
export type TeamsConfig = z.infer<typeof teamsSchema>;
|
||||
export type GoogleChatConfig = z.infer<typeof googleChatSchema>;
|
||||
export type BlueBubblesConfig = z.infer<typeof bluebubblesSchema>;
|
||||
export type RetryPolicyConfig = z.infer<typeof retrySchema>;
|
||||
export type ContextLevel = z.infer<typeof contextLevelSchema>;
|
||||
export type PromptConfig = z.infer<typeof promptSchema>;
|
||||
|
||||
Reference in New Issue
Block a user