67 lines
1.3 KiB
JSON
67 lines
1.3 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "PluginShareUpdateTargetsParams",
|
|
"type": "object",
|
|
"required": [
|
|
"discoverability",
|
|
"remotePluginId",
|
|
"shareTargets"
|
|
],
|
|
"properties": {
|
|
"discoverability": {
|
|
"$ref": "#/definitions/PluginShareUpdateDiscoverability"
|
|
},
|
|
"remotePluginId": {
|
|
"type": "string"
|
|
},
|
|
"shareTargets": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/definitions/PluginShareTarget"
|
|
}
|
|
}
|
|
},
|
|
"definitions": {
|
|
"PluginSharePrincipalType": {
|
|
"type": "string",
|
|
"enum": [
|
|
"user",
|
|
"group",
|
|
"workspace"
|
|
]
|
|
},
|
|
"PluginShareTarget": {
|
|
"type": "object",
|
|
"required": [
|
|
"principalId",
|
|
"principalType",
|
|
"role"
|
|
],
|
|
"properties": {
|
|
"principalId": {
|
|
"type": "string"
|
|
},
|
|
"principalType": {
|
|
"$ref": "#/definitions/PluginSharePrincipalType"
|
|
},
|
|
"role": {
|
|
"$ref": "#/definitions/PluginShareTargetRole"
|
|
}
|
|
}
|
|
},
|
|
"PluginShareTargetRole": {
|
|
"type": "string",
|
|
"enum": [
|
|
"reader",
|
|
"editor"
|
|
]
|
|
},
|
|
"PluginShareUpdateDiscoverability": {
|
|
"type": "string",
|
|
"enum": [
|
|
"UNLISTED",
|
|
"PRIVATE"
|
|
]
|
|
}
|
|
}
|
|
} |