File size: 2,617 Bytes
a6a5d8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
83
84
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SZLHOLDINGS Hugging Face ecosystem manifest",
  "type": "object",
  "required": ["schemaVersion", "generatedBy", "observedAt", "org", "counts", "inventory", "guardrails"],
  "properties": {
    "schemaVersion": { "const": 1 },
    "generatedBy": { "type": "string" },
    "observedAt": { "type": "string" },
    "org": { "const": "SZLHOLDINGS" },
    "canonicalGitHubRepo": { "type": "string" },
    "canonicalRule": { "type": "string" },
    "publicApiEndpoints": {
      "type": "array",
      "items": { "type": "string" }
    },
    "counts": {
      "type": "object",
      "required": ["models", "datasets", "spaces"],
      "properties": {
        "models": { "type": "integer", "minimum": 0 },
        "datasets": { "type": "integer", "minimum": 0 },
        "spaces": { "type": "integer", "minimum": 0 }
      }
    },
    "canonicalNumbers": { "type": "object" },
    "guardrails": {
      "type": "array",
      "items": { "type": "string" }
    },
    "inventory": {
      "type": "object",
      "required": ["models", "datasets", "spaces"],
      "properties": {
        "models": { "$ref": "#/$defs/items" },
        "datasets": { "$ref": "#/$defs/items" },
        "spaces": { "$ref": "#/$defs/items" }
      }
    },
    "recommendedActions": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["target", "action"],
        "properties": {
          "target": { "type": "string" },
          "action": { "type": "string" }
        }
      }
    }
  },
  "$defs": {
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["id", "repoType", "private", "unsafeFlags", "evidenceUrls"],
        "properties": {
          "id": { "type": "string" },
          "repoType": { "enum": ["model", "dataset", "space"] },
          "private": { "type": "boolean" },
          "gated": { "type": "boolean" },
          "disabled": { "type": "boolean" },
          "sdk": { "type": ["string", "null"] },
          "license": { "type": ["string", "null"] },
          "sha": { "type": ["string", "null"] },
          "lastModified": { "type": ["string", "null"] },
          "createdAt": { "type": ["string", "null"] },
          "tags": { "type": "array" },
          "claimStatus": { "type": "string" },
          "evidenceUrls": {
            "type": "array",
            "items": { "type": "string" }
          },
          "unsafeFlags": {
            "type": "array",
            "items": { "type": "string" }
          }
        }
      }
    }
  }
}