feat(01-02): provider YAML schema structs with validation and reference YAML files

- Provider, Pattern, VerifySpec, RegistryStats structs in schema.go
- UnmarshalYAML validates format_version >= 1 and last_verified non-empty
- Three reference YAML files: openai, anthropic, huggingface
This commit is contained in:
salvacybersec
2026-04-05 00:04:29 +03:00
parent ebaf7d7c2d
commit 4fcdc42c70
4 changed files with 124 additions and 0 deletions

20
providers/anthropic.yaml Normal file
View File

@@ -0,0 +1,20 @@
format_version: 1
name: anthropic
display_name: Anthropic
tier: 1
last_verified: "2026-04-04"
keywords:
- "sk-ant-api03-"
- "anthropic"
patterns:
- regex: 'sk-ant-api03-[A-Za-z0-9_\-]{93,}'
entropy_min: 3.5
confidence: high
verify:
method: GET
url: https://api.anthropic.com/v1/models
headers:
x-api-key: "{KEY}"
anthropic-version: "2023-06-01"
valid_status: [200]
invalid_status: [401, 403]