cartodb-4.42/lib/formats/carto/api_key/grants.json

122 lines
2.4 KiB
JSON
Raw Normal View History

2024-04-06 13:25:13 +08:00
{
"type": "array",
"items": {
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"type": "string",
"enum": [
"apis",
"database",
"dataservices",
"user"
]
},
"apis": {
"type": "array",
"items": {
"type": "string",
"enum": [
"sql",
"maps",
"do"
]
}
},
"schemas": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"name",
"permissions"
],
"additionalProperties": false,
"properties": {
"schema": {
"type": "string"
},
"name": {
"type": "string"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"create"
]
}
}
}
}
},
"tables": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object",
"required": [
"schema",
"name",
"permissions"
],
"additionalProperties": false,
"properties": {
"schema": {
"type": "string"
},
"name": {
"type": "string"
},
"owner": {
"type": "boolean"
},
"permissions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"insert",
"select",
"update",
"delete"
]
}
}
}
}
},
"services": {
"type": "array",
"items": {
"type": "string",
"enum": [
"geocoding",
"routing",
"isolines",
"observatory"
]
}
},
"data": {
"type": "array",
"items": {
"type": "string",
"enum": [
"profile"
]
}
},
"table_metadata": {
"type": "array"
}
}
}
}