mirror of
https://github.com/kennethnym/aris.git
synced 2026-06-16 04:21:17 +01:00
chore: rename aelis to freya (#122)
This commit is contained in:
12
apps/freya-backend/src/session/feed-source-provider.ts
Normal file
12
apps/freya-backend/src/session/feed-source-provider.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { FeedSource } from "@freya/core"
|
||||
import type { type } from "arktype"
|
||||
|
||||
export type ConfigSchema = ReturnType<typeof type>
|
||||
|
||||
export interface FeedSourceProvider {
|
||||
/** The source ID this provider is responsible for (e.g., "freya.location"). */
|
||||
readonly sourceId: string
|
||||
/** Arktype schema for validating user-provided config. Omit if the source has no config. */
|
||||
readonly configSchema?: ConfigSchema
|
||||
feedSourceForUser(userId: string, config: unknown, credentials: unknown): Promise<FeedSource>
|
||||
}
|
||||
Reference in New Issue
Block a user