openapi: 3.1.0 info: title: Api version: 0.1.0 description: CyberSarah Revenue OS API servers: - url: /api description: Base API path tags: - name: health description: Health operations - name: auth description: Authentifizierung - name: dashboard description: KPI Dashboard - name: agents description: Agenten-Verwaltung - name: campaigns description: Kampagnen - name: content description: Content-Verwaltung - name: finance description: Finanzdaten - name: agentLogs description: Agenten-Protokolle - name: revenue description: Autonomes Revenue-System - name: master description: Master-Agent Deep-Optimierung - name: Storage description: Object storage upload and serving endpoints. paths: /storage/uploads/request-url: post: tags: [Storage] operationId: requestUploadUrl summary: Request a presigned URL for file upload description: | Returns a presigned GCS URL for direct upload. The client sends JSON metadata here, then uploads the file directly to the returned URL. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/UploadUrlRequest' responses: '200': description: Presigned upload URL generated. content: application/json: schema: $ref: '#/components/schemas/UploadUrlResponse' '400': description: Missing or invalid required fields. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '500': description: Failed to generate upload URL. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' /storage/uploads/confirm: post: tags: [Storage] operationId: confirmUpload summary: Confirm and validate a completed upload description: | Must be called after the client PUTs the file to the presigned URL. Re-checks the object's actual size/content-type as stored in GCS against the same allowlist/cap enforced at request-url time. Since the PUT goes directly to GCS and is not observed by the API server, this closes the gap where a caller could request a URL with compliant metadata but then upload a different (larger or disallowed) payload. Non-compliant objects are deleted immediately and rejected with 422. requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/ConfirmUploadRequest' responses: '200': description: Upload verified compliant. content: application/json: schema: $ref: '#/components/schemas/ConfirmUploadResponse' '400': description: Missing or invalid required fields. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '404': description: Object not found. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '422': description: Uploaded object violated size/content-type policy and was deleted. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '500': description: Failed to confirm upload. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' /storage/public-objects/{filePath}: get: tags: [Storage] operationId: getPublicObject summary: Serve a public asset from PUBLIC_OBJECT_SEARCH_PATHS description: | Unconditionally public — no authentication or ACL checks. Searches PUBLIC_OBJECT_SEARCH_PATHS for the given file path. parameters: - name: filePath in: path required: true schema: type: string description: Relative file path within the public search paths. responses: '200': description: Object content streamed with correct Content-Type. content: '*/*': schema: type: string format: binary '404': description: File not found. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '500': description: Failed to serve public object. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' /storage/objects/{objectPath}: get: tags: [Storage] operationId: getStorageObject summary: Serve an object entity from PRIVATE_OBJECT_DIR description: | Serves object entities uploaded via presigned URLs. These can optionally be protected with authentication or ACL checks based on the use case. parameters: - name: objectPath in: path required: true schema: type: string description: Object path within the private object dir (e.g. `uploads/some-uuid`). responses: '200': description: Object content streamed with correct Content-Type. content: '*/*': schema: type: string format: binary '404': description: Object not found. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' '500': description: Failed to serve object. content: application/json: schema: $ref: '#/components/schemas/StorageErrorEnvelope' /healthz: get: operationId: healthCheck tags: [health] summary: Health check responses: "200": description: Healthy content: application/json: schema: $ref: "#/components/schemas/HealthStatus" /auth/me: get: operationId: getMe tags: [auth] summary: Aktuellen Benutzer abrufen responses: "200": description: Benutzer content: application/json: schema: $ref: "#/components/schemas/User" "401": description: Nicht authentifiziert /dashboard/kpis: get: operationId: getDashboardKpis tags: [dashboard] summary: KPI-Daten abrufen responses: "200": description: KPI-Daten content: application/json: schema: $ref: "#/components/schemas/DashboardKpis" /agents: get: operationId: listAgents tags: [agents] summary: Alle Agenten auflisten responses: "200": description: Liste der Agenten content: application/json: schema: type: array items: $ref: "#/components/schemas/Agent" /agents/{id}/status: patch: operationId: updateAgentStatus tags: [agents] summary: Agenten-Status aktualisieren parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AgentStatusUpdate" responses: "200": description: Aktualisierter Agent content: application/json: schema: $ref: "#/components/schemas/Agent" /agents/{id}/run: post: operationId: runAgent tags: [agents] summary: Agenten manuell ausführen parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Ausführungsergebnis content: application/json: schema: $ref: "#/components/schemas/AgentRunResult" /campaigns: get: operationId: listCampaigns tags: [campaigns] summary: Alle Kampagnen auflisten responses: "200": description: Liste der Kampagnen content: application/json: schema: type: array items: $ref: "#/components/schemas/Campaign" post: operationId: createCampaign tags: [campaigns] summary: Neue Kampagne erstellen requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CampaignInput" responses: "201": description: Erstellte Kampagne content: application/json: schema: $ref: "#/components/schemas/Campaign" /campaigns/{id}: patch: operationId: updateCampaign tags: [campaigns] summary: Kampagne aktualisieren parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/CampaignUpdate" responses: "200": description: Aktualisierte Kampagne content: application/json: schema: $ref: "#/components/schemas/Campaign" /content: get: operationId: listContent tags: [content] summary: Content-Einträge auflisten parameters: - name: brand in: query schema: type: string - name: status in: query schema: type: string - name: limit in: query schema: type: integer default: 50 responses: "200": description: Content-Liste content: application/json: schema: type: array items: $ref: "#/components/schemas/ContentPiece" post: operationId: createContent tags: [content] summary: Content generieren requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/ContentInput" responses: "201": description: Generierter Content content: application/json: schema: $ref: "#/components/schemas/ContentPiece" /content/{id}/publish: post: operationId: publishContent tags: [content] summary: Content veröffentlichen parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Veröffentlichungsergebnis content: application/json: schema: $ref: "#/components/schemas/ContentPiece" /finance/transactions: get: operationId: listTransactions tags: [finance] summary: Transaktionen auflisten parameters: - name: limit in: query schema: type: integer default: 100 responses: "200": description: Transaktionsliste content: application/json: schema: type: array items: $ref: "#/components/schemas/Transaction" /finance/summary: get: operationId: getFinanceSummary tags: [finance] summary: Finanzübersicht responses: "200": description: Finanzübersicht content: application/json: schema: $ref: "#/components/schemas/FinanceSummary" /revenue/opportunities: get: operationId: listRevenueOpportunities tags: [revenue] summary: Revenue-Chancen auflisten responses: "200": description: Liste der Revenue-Chancen content: application/json: schema: type: array items: $ref: "#/components/schemas/RevenueOpportunity" /revenue/opportunities/{id}: patch: operationId: updateRevenueOpportunity tags: [revenue] summary: Revenue-Chance aktualisieren parameters: - name: id in: path required: true schema: type: integer requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/RevenueOpportunityUpdate" responses: "200": description: Aktualisierte Chance content: application/json: schema: $ref: "#/components/schemas/RevenueOpportunity" /revenue/start-all: post: operationId: startAllAgents tags: [revenue] summary: Alle Agenten sofort starten responses: "200": description: Start-Ergebnis content: application/json: schema: $ref: "#/components/schemas/StartAllResult" /revenue/status: get: operationId: getRevenueStatus tags: [revenue] summary: Revenue-System-Status responses: "200": description: Revenue-Status content: application/json: schema: $ref: "#/components/schemas/RevenueStatus" /einstellungen/setup: get: operationId: getSetupStatus tags: [master] summary: Setup-Status und System-Konfiguration abrufen responses: "200": description: Setup-Status content: application/json: schema: $ref: "#/components/schemas/SetupStatus" /einstellungen/affiliate-links: get: operationId: getAffiliateLinks tags: [master] summary: Affiliate-Links abrufen responses: "200": description: Affiliate-Links content: application/json: schema: $ref: "#/components/schemas/AffiliateLinksResponse" post: operationId: saveAffiliateLinks tags: [master] summary: Affiliate-Links speichern requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/AffiliateLinksResponse" responses: "200": description: Gespeichert content: application/json: schema: type: object properties: gespeichert: type: boolean anzahl: type: integer required: [gespeichert, anzahl] /einstellungen/webhook: get: operationId: getWebhookConfig tags: [master] summary: Webhook-Konfiguration abrufen responses: "200": description: Webhook-Config content: application/json: schema: $ref: "#/components/schemas/WebhookConfig" post: operationId: saveWebhookConfig tags: [master] summary: Webhook-URL speichern requestBody: required: true content: application/json: schema: $ref: "#/components/schemas/WebhookConfig" responses: "200": description: Gespeichert content: application/json: schema: type: object properties: gespeichert: type: boolean webhookUrl: type: string required: [gespeichert, webhookUrl] /einstellungen/webhook/testen: post: operationId: testeWebhook tags: [master] summary: Webhook-Verbindung testen responses: "200": description: Test-Ergebnis content: application/json: schema: type: object properties: erfolgreich: type: boolean statusCode: type: integer url: type: string required: [erfolgreich] /einstellungen/setup/{schluessel}/erledigt: post: operationId: markSetupSchritt tags: [master] summary: Setup-Schritt als erledigt markieren parameters: - in: path name: schluessel required: true schema: type: string requestBody: content: application/json: schema: type: object properties: metadaten: type: string responses: "200": description: Erledigt content: application/json: schema: type: object properties: erledigt: type: boolean schluessel: type: string required: [erledigt, schluessel] /finance-team/overview: get: operationId: getFinanceTeamOverview tags: [finance-team] summary: Finance-Team-Übersicht — Report + wartende Registrierungen responses: "200": description: Finance-Team-Übersicht content: application/json: schema: $ref: "#/components/schemas/FinanceTeamOverview" /finance-team/scan: post: operationId: scanFinanceTeam tags: [finance-team] summary: Finance-Team manuell scannen lassen (Registrierungen vorbereiten + Report aktualisieren) responses: "200": description: Scan-Ergebnis content: application/json: schema: $ref: "#/components/schemas/FinanceTeamScanResult" /finance-team/opportunities/{id}/bestaetigen: post: operationId: bestaetigeRegistrierung tags: [finance-team] summary: Vorbereitete Registrierung bestätigen — aktiviert Chance + erstellt Kampagne automatisch parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Bestätigungs-Ergebnis content: application/json: schema: $ref: "#/components/schemas/FinanceTeamScanResult" /hara/overview: get: operationId: getHaraOverview tags: [hara] summary: HARA-Übersicht — Vorschläge, Performance-Historie und Statistik responses: "200": description: HARA-Übersicht content: application/json: schema: $ref: "#/components/schemas/HaraOverview" /hara/scan: post: operationId: scanHara tags: [hara] summary: HARA Phase 1 manuell starten — neue Revenue-Pakete generieren responses: "200": description: Scan-Ergebnis content: application/json: schema: $ref: "#/components/schemas/HaraAktionErgebnis" /hara/proposals/{id}/bestaetigen: post: operationId: bestaetigeHaraProposal tags: [hara] summary: CONFIRM — Revenue-Paket bestätigen, autonome Ausführung (Phase 3) startet sofort parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Bestätigungs-Ergebnis content: application/json: schema: $ref: "#/components/schemas/HaraAktionErgebnis" /hara/proposals/{id}/verwerfen: post: operationId: verwerfeHaraProposal tags: [hara] summary: Revenue-Paket verwerfen — fließt als Lern-Signal in den Self-Optimization-Loop parameters: - name: id in: path required: true schema: type: integer responses: "200": description: Verwerfen-Ergebnis content: application/json: schema: $ref: "#/components/schemas/HaraAktionErgebnis" /hara/proposals/{id}/schritte/{index}/erledigt: post: operationId: erledigeHaraSchritt tags: [hara] summary: Manuellen Schritt im Automatisierungs-Pfad als erledigt markieren parameters: - name: id in: path required: true schema: type: integer - name: index in: path required: true schema: type: integer responses: "200": description: Schritt-Ergebnis content: application/json: schema: $ref: "#/components/schemas/HaraAktionErgebnis" /master/optimize: post: operationId: masterOptimize tags: [master] summary: Deep-Optimization-Pipeline starten (True-ROI + Autopilot + Pricing) responses: "200": description: Ergebnis des Optimierungs-Zyklus content: application/json: schema: $ref: "#/components/schemas/MasterOptimizeResult" /agent-logs: get: operationId: listAgentLogs tags: [agentLogs] summary: Agenten-Protokolle auflisten parameters: - name: agentId in: query schema: type: ["integer", "null"] - name: limit in: query schema: type: integer default: 50 responses: "200": description: Protokoll-Liste content: application/json: schema: type: array items: $ref: "#/components/schemas/AgentLog" components: schemas: UploadUrlRequest: type: object required: [name, size, contentType] properties: name: type: string minLength: 1 description: Original file name. size: type: integer minimum: 1 description: File size in bytes. contentType: type: string minLength: 1 description: MIME type of the file (e.g. `image/jpeg`). UploadUrlResponse: type: object required: [uploadURL, objectPath] properties: uploadURL: type: string format: uri description: Presigned GCS URL for PUT upload. objectPath: type: string description: Normalized object path (e.g. `/objects/uploads/uuid`). Store this in your database. metadata: $ref: '#/components/schemas/UploadUrlRequest' StorageErrorEnvelope: type: object required: [error] properties: error: type: string ConfirmUploadRequest: type: object required: [objectPath] properties: objectPath: type: string description: Object path returned by request-url (e.g. `/objects/uploads/uuid`). ConfirmUploadResponse: type: object required: [ok, contentType, size] properties: ok: type: boolean contentType: type: string size: type: integer HealthStatus: type: object properties: status: type: string required: - status User: type: object properties: id: type: string email: type: ["string", "null"] name: type: ["string", "null"] role: type: string required: - id - role DashboardKpis: type: object properties: umsatzHeute: type: number umsatzWoche: type: number umsatzMonat: type: number aktiveCampaigns: type: integer contentPieces: type: integer conversionRate: type: number roi: type: number systemStatus: type: string aktiviertAgenten: type: integer required: - umsatzHeute - umsatzWoche - umsatzMonat - aktiveCampaigns - contentPieces - conversionRate - roi - systemStatus - aktiviertAgenten Agent: type: object properties: id: type: integer name: type: string typ: type: string status: type: string beschreibung: type: ["string", "null"] letzteAktivitaet: type: ["string", "null"] fehlerAnzahl: type: integer ausgefuehrtAufgaben: type: integer createdAt: type: string updatedAt: type: string required: - id - name - typ - status - fehlerAnzahl - ausgefuehrtAufgaben - createdAt - updatedAt AgentStatusUpdate: type: object properties: status: type: string enum: [aktiv, gestoppt, fehler, wartend] required: - status AgentRunResult: type: object properties: success: type: boolean message: type: string logId: type: ["integer", "null"] required: - success - message Campaign: type: object properties: id: type: integer name: type: string marke: type: string typ: type: string netzwerk: type: ["string", "null"] status: type: string affiliateLink: type: ["string", "null"] provision: type: ["number", "null"] klicks: type: integer konversionen: type: integer umsatz: type: number startDatum: type: ["string", "null"] endDatum: type: ["string", "null"] createdAt: type: string required: - id - name - marke - typ - status - klicks - konversionen - umsatz - createdAt CampaignInput: type: object properties: name: type: string marke: type: string enum: [CyberSarah, GeldPilot AI, UnternehmerGPT] typ: type: string enum: [affiliate, eigenesProdukt] netzwerk: type: string enum: [Digistore24, Awin, Amazon PartnerNet, keins] affiliateLink: type: string provision: type: number startDatum: type: string endDatum: type: string required: - name - marke - typ CampaignUpdate: type: object properties: name: type: string status: type: string enum: [aktiv, pausiert, abgeschlossen] affiliateLink: type: string provision: type: number ContentPiece: type: object properties: id: type: integer campaignId: type: ["integer", "null"] marke: type: string typ: type: string plattform: type: string titel: type: string inhalt: type: ["string", "null"] status: type: string veroeffentlichtAm: type: ["string", "null"] createdAt: type: string required: - id - marke - typ - plattform - titel - status - createdAt ContentInput: type: object properties: marke: type: string enum: [CyberSarah, GeldPilot AI, UnternehmerGPT] typ: type: string enum: [kurzVideo, reel, tiktok, blogartikel] plattform: type: string enum: [TikTok, Instagram, YouTube, Google, Blog] thema: type: string campaignId: type: integer required: - marke - typ - plattform - thema Transaction: type: object properties: id: type: integer transaktionsId: type: ["string", "null"] quelle: type: string typ: type: string betrag: type: number waehrung: type: string beschreibung: type: ["string", "null"] campaignId: type: ["integer", "null"] createdAt: type: string required: - id - quelle - typ - betrag - waehrung - createdAt FinanceSummary: type: object properties: umsatzHeute: type: number umsatzWoche: type: number umsatzMonat: type: number gesamtUmsatz: type: number roi: type: number cac: type: number transaktionenAnzahl: type: integer required: - umsatzHeute - umsatzWoche - umsatzMonat - gesamtUmsatz - roi - cac - transaktionenAnzahl RevenueOpportunity: type: object properties: id: type: integer titel: type: string beschreibung: type: ["string", "null"] kanal: type: string marke: type: ["string", "null"] status: type: string geschaetzterMonatsumsatz: type: number tatsaechlicherUmsatz: type: number konversionsrate: type: number stripePaymentLink: type: ["string", "null"] affiliateUrl: type: ["string", "null"] prioritaet: type: ["integer", "null"] gefundenVon: type: ["string", "null"] createdAt: type: ["string", "null"] updatedAt: type: ["string", "null"] required: - id - titel - kanal - status - geschaetzterMonatsumsatz - tatsaechlicherUmsatz - konversionsrate RevenueOpportunityUpdate: type: object properties: status: type: string enum: [entdeckt, aktiv, getestet, pausiert] prioritaet: type: integer tatsaechlicherUmsatz: type: number stripePaymentLink: type: string FinanceTeamEmpfehlung: type: object properties: opportunityId: type: integer titel: type: string kanal: type: string marke: type: ["string", "null"] geschaetzterMonatsumsatz: type: number registrierungsStatus: type: string begruendung: type: string required: - opportunityId - titel - kanal - geschaetzterMonatsumsatz - registrierungsStatus - begruendung RegistrierungsSchritt: type: object properties: schritt: type: integer titel: type: string beschreibung: type: string required: - schritt - titel - beschreibung VorbereiteteRegistrierung: type: object properties: id: type: integer titel: type: string kanal: type: string marke: type: ["string", "null"] geschaetzterMonatsumsatz: type: number registrierungsStatus: type: string registrierungsLink: type: ["string", "null"] registrierungsAnleitung: type: array items: $ref: "#/components/schemas/RegistrierungsSchritt" required: - id - titel - kanal - geschaetzterMonatsumsatz - registrierungsStatus UmsatzPrognose: type: object properties: status: type: string enum: ["keine_kampagnen", "fruehphase", "wachstum"] konfidenz: type: string enum: ["niedrig", "mittel", "hoch"] echteTransaktionenAnzahl: type: integer echterGesamtUmsatz: type: number kampagnenAlterTage: type: ["integer", "null"] geschaetzteTageBisErsteEinnahmeMin: type: ["integer", "null"] geschaetzteTageBisErsteEinnahmeMax: type: ["integer", "null"] geschaetztesDatumVon: type: ["string", "null"] geschaetztesDatumBis: type: ["string", "null"] hinweis: type: string required: - status - konfidenz - echteTransaktionenAnzahl - echterGesamtUmsatz - kampagnenAlterTage - geschaetzteTageBisErsteEinnahmeMin - geschaetzteTageBisErsteEinnahmeMax - geschaetztesDatumVon - geschaetztesDatumBis - hinweis FinanceTeamOverview: type: object properties: erstelltAm: type: ["string", "null"] aktiveKampagnen: type: integer gesamtUmsatzKampagnen: type: number wartendeRegistrierungen: type: integer topEmpfehlungen: type: array items: $ref: "#/components/schemas/FinanceTeamEmpfehlung" vorbereiteteRegistrierungen: type: array items: $ref: "#/components/schemas/VorbereiteteRegistrierung" umsatzPrognose: $ref: "#/components/schemas/UmsatzPrognose" required: - aktiveKampagnen - gesamtUmsatzKampagnen - wartendeRegistrierungen - topEmpfehlungen - vorbereiteteRegistrierungen - umsatzPrognose FinanceTeamScanResult: type: object properties: success: type: boolean message: type: string required: - success - message HaraSchritt: type: object properties: beschreibung: type: string typ: type: string enum: ["auto_content", "auto_kampagne", "manuell"] status: type: string enum: ["offen", "erledigt", "fehlgeschlagen"] ergebnis: type: ["string", "null"] required: - beschreibung - typ - status HaraProposal: type: object properties: id: type: integer titel: type: string status: type: string enum: ["vorgeschlagen", "bestaetigt", "in_umsetzung", "abgeschlossen", "verworfen"] marke: type: ["string", "null"] kanal: type: string businessCase: type: string roiErwartung: type: string geschaetzterMonatsumsatz: type: number ressourcen: type: array items: type: string automatisierungsPfad: type: array items: $ref: "#/components/schemas/HaraSchritt" roiScore: type: integer geschwindigkeitScore: type: integer automatisierbarkeitScore: type: integer gesamtScore: type: integer quelle: type: string bestaetigtAm: type: ["string", "null"] createdAt: type: ["string", "null"] required: - id - titel - status - kanal - businessCase - roiErwartung - geschaetzterMonatsumsatz - ressourcen - automatisierungsPfad - roiScore - geschwindigkeitScore - automatisierbarkeitScore - gesamtScore - quelle HaraPerformanceEintrag: type: object properties: id: type: integer proposalId: type: ["integer", "null"] titel: type: string kanal: type: ["string", "null"] resultat: type: string enum: ["erfolg", "misserfolg", "verworfen"] analyse: type: string createdAt: type: ["string", "null"] required: - id - titel - resultat - analyse HaraStatistik: type: object properties: gesamtVorschlaege: type: integer offen: type: integer inUmsetzung: type: integer abgeschlossen: type: integer verworfen: type: integer erfolgsquote: type: ["number", "null"] required: - gesamtVorschlaege - offen - inUmsetzung - abgeschlossen - verworfen - erfolgsquote HaraOverview: type: object properties: proposals: type: array items: $ref: "#/components/schemas/HaraProposal" performance: type: array items: $ref: "#/components/schemas/HaraPerformanceEintrag" statistik: $ref: "#/components/schemas/HaraStatistik" required: - proposals - performance - statistik HaraAktionErgebnis: type: object properties: success: type: boolean message: type: string required: - success - message StartAllResult: type: object properties: success: type: boolean message: type: string gestartet: type: integer jobIds: type: array items: type: string timestamp: type: string required: - success - message - gestartet - timestamp RevenueStatus: type: object properties: gesamtChancen: type: integer aktiveChancen: type: integer offeneChancen: type: integer geschaetzterMonatsumsatz: type: number tatsaechlicherUmsatz: type: number mitStripeLink: type: integer mitAffiliateLink: type: integer required: - gesamtChancen - aktiveChancen - offeneChancen - geschaetzterMonatsumsatz - tatsaechlicherUmsatz - mitStripeLink - mitAffiliateLink MasterOptimizeResult: type: object properties: success: type: boolean message: type: string dauerMs: type: integer quellenAnalysiert: type: integer aktiviert: type: integer pausiert: type: integer autoStreams: type: integer jobIds: type: array items: type: string required: - success - message - dauerMs - quellenAnalysiert - aktiviert - pausiert - autoStreams AffiliateLink: type: object properties: marke: type: string netzwerk: type: string url: type: string cta: type: string provision: type: string required: [marke, netzwerk, url, cta] AffiliateLinksResponse: type: object properties: affiliateLinks: type: array items: $ref: "#/components/schemas/AffiliateLink" required: [affiliateLinks] WebhookConfig: type: object properties: webhookUrl: type: ["string", "null"] aktiv: type: boolean required: [aktiv] SetupSchritt: type: object properties: id: type: integer schluessel: type: string name: type: string erledigt: type: boolean metadaten: type: ["string", "null"] erledigtAm: type: ["string", "null"] createdAt: type: string required: [id, schluessel, name, erledigt, createdAt] SetupSystemStatus: type: object properties: openaiKeyGesetzt: type: boolean webhookKonfiguriert: type: boolean affiliateLinksKonfiguriert: type: boolean stripeAktiv: type: boolean required: [openaiKeyGesetzt, webhookKonfiguriert, affiliateLinksKonfiguriert, stripeAktiv] SetupStatus: type: object properties: schritte: type: array items: $ref: "#/components/schemas/SetupSchritt" systemStatus: $ref: "#/components/schemas/SetupSystemStatus" required: [schritte, systemStatus] AgentLog: type: object properties: id: type: integer agentId: type: integer agentName: type: string aktion: type: string status: type: string nachricht: type: string metadaten: type: ["string", "null"] dauer: type: ["integer", "null"] createdAt: type: string required: - id - agentId - agentName - aktion - status - nachricht - createdAt