You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.json
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -1191,53 +1191,59 @@
1191
1191
"additionalProperties": false,
1192
1192
"description": "",
1193
1193
"properties": {
1194
-
"requiredApprovalSources": {
1194
+
"allowedApprovalSources": {
1195
1195
"type": "array",
1196
1196
"items": {
1197
1197
"type": "string",
1198
1198
"description": "",
1199
1199
"default": ""
1200
1200
}
1201
1201
},
1202
-
"allowedApprovalSources": {
1202
+
"allowedFamilies": {
1203
1203
"type": "array",
1204
1204
"items": {
1205
1205
"type": "string",
1206
1206
"description": "",
1207
1207
"default": ""
1208
1208
}
1209
1209
},
1210
-
"allowedFamilies": {
1210
+
"allowedTiers": {
1211
1211
"type": "array",
1212
1212
"items": {
1213
1213
"type": "string",
1214
1214
"description": "",
1215
1215
"default": ""
1216
1216
}
1217
1217
},
1218
-
"allowedTiers": {
1218
+
"allowedStrings": {
1219
1219
"type": "array",
1220
1220
"items": {
1221
1221
"type": "string",
1222
1222
"description": "",
1223
1223
"default": ""
1224
1224
}
1225
1225
},
1226
-
"allowedSpdxAtoms": {
1226
+
"allowedPURLs": {
1227
1227
"type": "array",
1228
1228
"items": {
1229
1229
"type": "string",
1230
1230
"description": "",
1231
1231
"default": ""
1232
1232
}
1233
+
},
1234
+
"focusAlertsHere": {
1235
+
"type": "boolean",
1236
+
"default": false,
1237
+
"description": ""
1233
1238
}
1234
1239
},
1235
1240
"required": [
1236
1241
"allowedApprovalSources",
1237
1242
"allowedFamilies",
1238
-
"allowedSpdxAtoms",
1243
+
"allowedPURLs",
1244
+
"allowedStrings",
1239
1245
"allowedTiers",
1240
-
"requiredApprovalSources"
1246
+
"focusAlertsHere"
1241
1247
]
1242
1248
},
1243
1249
"CDXComponentSchema": {
@@ -7459,7 +7465,7 @@
7459
7465
]
7460
7466
}
7461
7467
],
7462
-
"description": "Diff the license information from a list of packages (as PURL strings) with a configurable license allow list.\nPackage URLs (PURLs) are an ecosystem agnostic way to identify packages.\n\n## Allow List Schema\n\n```json\n{\n requiredApprovalSources?: Array<\"fsf\" | \"osi\">,\n allowedApprovalSources?: Array<\"fsf\" | \"osi\">,\n allowedFamilies?: Array<\"copyleft\" | \"permissive\">,\n allowedTiers?: Array<PermissiveTier | CopyleftTier>,\n allowedSpdxAtoms?: Array<string>\n}\n```\n\nwhere\n\nPermissiveTier ::= \"model permissive\" | \"gold\" | \"silver\" | \"bronze\" | \"lead\"\nCopyleftTier ::= \"maximal copyleft\" | \"network copyleft\" | \"strong copyleft\" | \"weak copyleft\"\n\nreaders can learn more about [copyleft tiers](https://blueoakcouncil.org/copyleft) and [permissive tiers](https://blueoakcouncil.org/list) by reading the linked resources.\n\n## Return value\n\nThe returned values are objects containing information about license data from the requested\nPURLs which violates the allow list. The returned objects contain an spdx disjunction describing the\nlicense data for the violation, the provenance of that information, and a filepath to the source\nof the violation (if one is available; there may not be an available path for things like license information\ntaken from registry metdata). Returned objects have the following shape:\n```json\n{\n spdxDisj: string,\n provenance: string,\n filepath?: string,\n}\n```\n\n### Example request bodies:\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:pypi/[email protected]?artifact_id=tar-gz\"\n },\n {\n \"purl\": \"pkg:npm/[email protected]\"\n }\n ],\n \"license_allow_list\": {\n \"allowedFamilies\": [\"permissive\"],\n \"allowedSpdxAtoms\": [\"GPL-1.0-only WITH Autoconf-exception-3.0\"]\n }\n}\n```\n\nThis endpoint consumes 100 units of your quota.\n\nThis endpoint requires the following org token scopes:\n- packages:list",
7468
+
"description": "Compare the license data found for a list of packages (as PURL strings) with a configurable license allow list,\nreturning information about license data which does not comply with the license allow list.\n\n## Allow List Schema\n\n```json\n{\n allowedApprovalSources?: Array<\"fsf\" | \"osi\">,\n allowedFamilies?: Array<\"copyleft\" | \"permissive\">,\n allowedTiers?: Array<PermissiveTier | CopyleftTier>,\n allowedStrings?: Array<string>\n allowedPURLs?: Array<string>\n focusAlertsHere?: boolean\n}\n```\n\nwhere\n\nPermissiveTier ::= \"model permissive\" | \"gold\" | \"silver\" | \"bronze\" | \"lead\"\nCopyleftTier ::= \"maximal copyleft\" | \"network copyleft\" | \"strong copyleft\" | \"weak copyleft\"\n\nreaders can learn more about [copyleft tiers](https://blueoakcouncil.org/copyleft) and [permissive tiers](https://blueoakcouncil.org/list) by reading the linked resources.\n\n## Return value\n\nFor each requested PURL, an array is returned. Each array contains a list of license policy violations \ndetected for the requested PURL.\n\nViolations are accompanied by a string identifying the offending license data as `spdxAtomOrExtraData`,\na message describing why the license data is believed to be incompatible with the license policy, and a list\nof locations (by filepath or other provenance information) where the offending license data may be found.\n\n```json\nArray<\n Array<{\n purl: string,\n spdxAtomOrExtraData: string,\n violationExplanation: string,\n filepathOrProvenance: Array<string>\n }>\n>\n```\n\n### Example request bodies:\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:pypi/[email protected]?artifact_id=tar-gz\"\n },\n {\n \"purl\": \"pkg:npm/[email protected]\"\n }\n ],\n \"license_allow_list\": {\n \"allowedApprovalSources: [\"fsf\", \"osi\"],\n \"allowedFamilies\": [\"permissive\"],\n \"allowedStrings\": [\"License :: OSI Approved :: BSD License\", \"UniqueLicense-2.0\"]\n }\n}\n```\n\nThis endpoint consumes 100 units of your quota.\n\nThis endpoint requires the following org token scopes:\n- packages:list",
0 commit comments