release: public alpha 0.6.0 baseline
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jwebot.example/schemas/debug-event.schema.json",
|
||||
"title": "JWeBot privacy-safe debug event",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["version", "timestamp", "name", "status"],
|
||||
"properties": {
|
||||
"version": {"const": 1},
|
||||
"timestamp": {"type": "string", "format": "date-time"},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_.-]{1,120}$"
|
||||
},
|
||||
"status": {
|
||||
"enum": ["ok", "error", "timeout", "skipped", "uncertain"]
|
||||
},
|
||||
"elapsed_ms": {
|
||||
"type": "number",
|
||||
"minimum": 0
|
||||
},
|
||||
"event_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{0,64}$"
|
||||
},
|
||||
"group_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{0,64}$"
|
||||
},
|
||||
"error_class": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z0-9_.-]{0,120}$"
|
||||
},
|
||||
"fields": {
|
||||
"type": "object",
|
||||
"maxProperties": 32,
|
||||
"additionalProperties": {
|
||||
"type": ["string", "number", "integer", "boolean", "null"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jwebot.example/schemas/incident.schema.json",
|
||||
"title": "JWeBot privacy-safe incident record",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"version",
|
||||
"incident_id",
|
||||
"started_at",
|
||||
"status",
|
||||
"component",
|
||||
"error_class"
|
||||
],
|
||||
"properties": {
|
||||
"version": {"const": 1},
|
||||
"incident_id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{12,64}$"
|
||||
},
|
||||
"started_at": {"type": "string", "format": "date-time"},
|
||||
"resolved_at": {
|
||||
"type": ["string", "null"],
|
||||
"format": "date-time"
|
||||
},
|
||||
"status": {
|
||||
"enum": ["open", "resolved", "archived"]
|
||||
},
|
||||
"component": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z0-9_.-]{1,80}$"
|
||||
},
|
||||
"error_class": {
|
||||
"type": "string",
|
||||
"pattern": "^[A-Za-z0-9_.-]{1,120}$"
|
||||
},
|
||||
"event_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{0,64}$"
|
||||
},
|
||||
"group_hash": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{0,64}$"
|
||||
},
|
||||
"evidence": {
|
||||
"type": "array",
|
||||
"maxItems": 100,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": ["string", "number", "integer", "boolean", "null"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jwebot.example/schemas/private-context.schema.json",
|
||||
"title": "JWeBot private context",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["people", "clock_scan_targets"],
|
||||
"properties": {
|
||||
"people": {
|
||||
"type": "array",
|
||||
"maxItems": 500,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"canonical_name",
|
||||
"aliases",
|
||||
"prefixes",
|
||||
"identity_fact",
|
||||
"display_id"
|
||||
],
|
||||
"properties": {
|
||||
"canonical_name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 120
|
||||
},
|
||||
"aliases": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
||||
},
|
||||
"prefixes": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
||||
},
|
||||
"identity_fact": {"type": "string", "maxLength": 240},
|
||||
"display_id": {"type": "string", "maxLength": 120},
|
||||
"steam_id64": {
|
||||
"type": "string",
|
||||
"pattern": "^(?:|[0-9]{17})$"
|
||||
},
|
||||
"steam_aliases": {
|
||||
"type": "array",
|
||||
"maxItems": 64,
|
||||
"items": {"type": "string", "minLength": 1, "maxLength": 120}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"clock_scan_targets": {
|
||||
"type": "array",
|
||||
"maxItems": 500,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["canonical_name", "display_id"],
|
||||
"properties": {
|
||||
"canonical_name": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 120
|
||||
},
|
||||
"display_id": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"maxLength": 120
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jwebot.example/schemas/profile-manifest.schema.json",
|
||||
"title": "JWeBot profile manifest",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["format_version", "id", "description"],
|
||||
"properties": {
|
||||
"format_version": {"const": 1},
|
||||
"id": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9-]{0,47}$"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"maxLength": 240
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user