mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
ae15343243
Requires discoverability on plugin/share/updateTargets so the server can manage workspace link access consistently, including auto-adding the workspace principal for UNLISTED. Also rejects LISTED on share creation and blocks client-supplied workspace principals while preserving response parsing for LISTED.
56 lines
1.1 KiB
JSON
Generated
56 lines
1.1 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"PluginSharePrincipalType": {
|
|
"enum": [
|
|
"user",
|
|
"group",
|
|
"workspace"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"PluginShareTarget": {
|
|
"properties": {
|
|
"principalId": {
|
|
"type": "string"
|
|
},
|
|
"principalType": {
|
|
"$ref": "#/definitions/PluginSharePrincipalType"
|
|
}
|
|
},
|
|
"required": [
|
|
"principalId",
|
|
"principalType"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"PluginShareUpdateDiscoverability": {
|
|
"enum": [
|
|
"UNLISTED",
|
|
"PRIVATE"
|
|
],
|
|
"type": "string"
|
|
}
|
|
},
|
|
"properties": {
|
|
"discoverability": {
|
|
"$ref": "#/definitions/PluginShareUpdateDiscoverability"
|
|
},
|
|
"remotePluginId": {
|
|
"type": "string"
|
|
},
|
|
"shareTargets": {
|
|
"items": {
|
|
"$ref": "#/definitions/PluginShareTarget"
|
|
},
|
|
"type": "array"
|
|
}
|
|
},
|
|
"required": [
|
|
"discoverability",
|
|
"remotePluginId",
|
|
"shareTargets"
|
|
],
|
|
"title": "PluginShareUpdateTargetsParams",
|
|
"type": "object"
|
|
} |