Some checks failed
CI / Lint, typecheck, test (pull_request) Successful in 4m53s
CI / Build container images (pull_request) Successful in 4m1s
CI / Auth e2e pack (pull_request) Successful in 7m12s
CI / Import/export fidelity gate (pull_request) Successful in 1m0s
CD / Build and push images (push) Successful in 14s
CD / Deploy to Test (push) Successful in 16s
CD / Smoke tests against Test (push) Successful in 1m13s
CD / Promote to Int (push) Successful in 12s
CI / Lint, typecheck, test (push) Successful in 4m35s
CI / Build container images (push) Has been skipped
CI / Auth e2e pack (push) Failing after 5m14s
CI / Import/export fidelity gate (push) Has been skipped
GET /public/:pond/feed.xml (zuletzt geänderte Seiten) und GET /public/:pond/:page/feed.xml (Versions-Historie), @Public mit 404-Semantik; öffentliche Teiche anonym, nicht-öffentliche über neues read-only Feed-Token je Nutzer als ?token=dt_feed_… (neue Tabelle feed_tokens + Migration, Verwaltung in den Nutzer-Einstellungen, FeedTokensSection). Öffentliche HTML-Seiten annoncieren den Teich-Feed per link rel=alternate. DB-Tests (anonym/privat/Token-Lifecycle) und User-Guide-Doku en+de. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0155v2aT8AG1kZDQEZiCLBWC
28 lines
873 B
TypeScript
28 lines
873 B
TypeScript
import { z } from 'zod';
|
|
|
|
/**
|
|
* Feed tokens (issue #149): read-only secrets (`dt_feed_…`) carried as a
|
|
* query parameter in Atom feed URLs, so feed readers can subscribe to
|
|
* non-public ponds and pages. Managed in the user settings; deliberately
|
|
* narrower than API tokens — they only ever authenticate the feed endpoints.
|
|
*/
|
|
|
|
export const FEED_TOKEN_PREFIX = 'dt_feed_';
|
|
|
|
export interface FeedTokenView {
|
|
id: string;
|
|
name: string;
|
|
lastUsedAt: string | null;
|
|
createdAt: string;
|
|
}
|
|
|
|
/** Returned once at creation — the secret is never shown again. */
|
|
export interface FeedTokenCreatedView extends FeedTokenView {
|
|
token: string;
|
|
}
|
|
|
|
export const createFeedTokenInputSchema = z.object({
|
|
name: z.string().trim().min(1, 'validation.required').max(80, 'validation.tooLong'),
|
|
});
|
|
export type CreateFeedTokenInput = z.infer<typeof createFeedTokenInputSchema>;
|