Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
82 lines (82 loc) · 3.28 KB
/
Copy pathopenapi.json
File metadata and controls
82 lines (82 loc) · 3.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"openapi": "3.1.0",
"info": {
"title": "DevPulse by RitualDev API",
"version": "1.0.0",
"description": "Unified Developer Headquarters & Multi-Registry Telemetry Engine API (crash ingestion, OTLP traces, analytics beacons, Defense Suite, NL-to-SQL explorer, Scarf-style Zero-PII gateway, and dynamic README SVG badges)."
},
"servers": [
{
"url": "https://devpulse.ritualdev.in",
"description": "Production Cloud Edge"
}
],
"paths": {
"/api/v1/event": {
"post": {
"summary": "Ingest runtime crash or telemetry event",
"description": "Accepts bearer telemetry API key, enforces payload byte ceiling and key-first rate limits, validates timestamps cleanly, scrubs PII at ingress, and increments workspace quota atomically.",
"responses": {
"201": { "description": "Event ingested" },
"400": { "description": "Malformed payload or out-of-range timestamp" },
"413": { "description": "Payload exceeds DEVPULSE_MAX_EVENT_BYTES" },
"429": { "description": "Rate limit or workspace monthly quota exceeded" }
}
}
},
"/api/v1/analytics": {
"post": {
"summary": "Record privacy-first web or app telemetry beacon",
"responses": { "200": { "description": "Beacon accepted with zero raw IP persistence" } }
}
},
"/api/v1/defense": {
"get": {
"summary": "Retrieve RitualDev Defense Suite posture & guardrail events",
"responses": { "200": { "description": "Defense engine status & events" } }
},
"post": {
"summary": "Report security finding from AgentShield, DBShield, SkillPrism, PromptShield, or web-sec-auditor",
"responses": { "200": { "description": "Audit-chained finding logged" } }
}
},
"/api/v1/explore": {
"post": {
"summary": "Compile natural-language prompt to scoped read-only SQL analytics query",
"responses": { "200": { "description": "Compiled SQL and tabular query output" } }
}
},
"/api/v1/gateway/{slug}": {
"get": {
"summary": "Zero-PII Package & Release Adoption Gateway redirect or JSON check",
"responses": { "200": { "description": "JSON adoption metadata" }, "302": { "description": "Redirect to canonical registry target" } }
}
},
"/api/badge/{type}/{slug}": {
"get": {
"summary": "Dynamic SVG badge (stars, downloads, health, security)",
"responses": { "200": { "description": "image/svg+xml shield" } }
}
},
"/api/v1/sentry/{projectId}/envelope": {
"post": {
"summary": "Sentry SDK v11 streaming span and exception envelope ingestion",
"responses": {
"200": { "description": "Envelope accepted" },
"400": { "description": "Malformed envelope or timestamp" },
"413": { "description": "Payload exceeds max size" }
}
}
},
"/api/v1/privacy/export": {
"get": {
"summary": "DPDP / GDPR tenant data portability export (owner/admin)",
"responses": { "200": { "description": "JSON project telemetry bundle" } }
},
"delete": {
"summary": "Owner-only telemetry erasure preserving immutable audit logs",
"responses": { "200": { "description": "Telemetry erased" } }
}
}
}
}