123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"anyOf": [
{
"type": "object",
"properties": {
"jsonFragment": {
"type": "string",
"maxLength": 12000
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"totalBytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"nextFragmentCursor": {
"type": [
"string",
"null"
]
},
"page": {
"type": "object",
"properties": {
"offset": {
"$ref": "#/$defs/__schema0"
},
"total": {
"$ref": "#/$defs/__schema1"
},
"nextOffset": {
"$ref": "#/$defs/__schema2"
}
},
"required": [
"offset",
"total",
"nextOffset"
],
"additionalProperties": false
}
},
"required": [
"jsonFragment",
"sha256",
"totalBytes",
"nextFragmentCursor",
"page"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"offset": {
"$ref": "#/$defs/__schema0"
},
"total": {
"$ref": "#/$defs/__schema1"
},
"nextOffset": {
"$ref": "#/$defs/__schema2"
},
"items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^organization_api_key_[0-7][0123456789abcdefghjkmnpqrstvwxyz]{25}$"
},
"name": {
"type": [
"string",
"null"
]
},
"start": {
"type": [
"string",
"null"
]
},
"enabled": {
"type": "boolean"
},
"createdAt": {
"type": "string"
},
"expiresAt": {
"type": [
"string",
"null"
]
},
"permissions": {
"$ref": "#/$defs/__schema3"
},
"scopeProfile": {
"anyOf": [
{
"type": "string",
"enum": [
"standard",
"read-only",
"analytics",
"support-reader",
"support-editor",
"feedback-editor"
]
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"enabled",
"createdAt",
"scopeProfile"
],
"additionalProperties": false
}
}
},
"required": [
"offset",
"total",
"nextOffset",
"items"
],
"additionalProperties": false
}
]
}
},
"required": [
"data"
],
"additionalProperties": false,
"$defs": {
"__schema0": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"__schema1": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"__schema2": {
"anyOf": [
{
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"__schema3": {
"anyOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
},
{
"type": "null"
},
{
"type": "array",
"items": {
"$ref": "#/$defs/__schema3"
}
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema3"
}
}
]
}
}
}