feat: CalDAV-Integration für Admin-Kalender
- Neue CalDAV-Route mit PROPFIND und GET-Endpoints - ICS-Format-Generator für Buchungsdaten - Token-basierte Authentifizierung für CalDAV-Zugriff - Admin-Interface mit CalDAV-Link-Generator - Schritt-für-Schritt-Anleitung für Kalender-Apps - 24h-Token-Ablaufzeit für Sicherheit - Unterstützung für Outlook, Google Calendar, Apple Calendar, Thunderbird Fixes: Admin kann jetzt Terminkalender in externen Apps abonnieren
This commit is contained in:
14
server-dist/lib/openai.js
Normal file
14
server-dist/lib/openai.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { jsonrepair } from "jsonrepair";
|
||||
import { z } from "zod";
|
||||
import { makeParseableResponseFormat } from "openai/lib/parser";
|
||||
export function zodResponseFormat(zodObject, name, props) {
|
||||
return makeParseableResponseFormat({
|
||||
type: "json_schema",
|
||||
json_schema: {
|
||||
...props,
|
||||
name,
|
||||
strict: true,
|
||||
schema: z.toJSONSchema(zodObject, { target: "draft-7" }),
|
||||
},
|
||||
}, (content) => zodObject.parse(JSON.parse(jsonrepair(content))));
|
||||
}
|
Reference in New Issue
Block a user