Skip to content

Commit 0714810

Browse files
Merge pull request #210 from SocketDev/automated/open-api
Sync with OpenAPI definition
2 parents 3a41357 + a258f34 commit 0714810

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

openapi.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7241,7 +7241,7 @@
72417241
]
72427242
}
72437243
],
7244-
"description": "Batch retrieval of package metadata and alerts by PURL strings. Compatible witch CycloneDX reports.\n\nPackage URLs (PURLs) are an ecosystem agnostic way to identify packages.\nCycloneDX SBOMs use the purl format to identify components.\nThis endpoint supports fetching metadata and alerts for multiple packages at once by passing an array of purl strings, or by passing an entire CycloneDX report.\n\nMore information on purl and CycloneDX:\n\n- [`purl` Spec](https://github.com/package-url/purl-spec)\n- [CycloneDX Spec](https://cyclonedx.org/specification/overview/#components)\n\n## Examples:\n\n### Looking up an npm package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:npm/[email protected]\"\n }\n ]\n}\n```\n\n### Looking up an PyPi package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:pypi/[email protected]\"\n }\n ]\n}\n```\n\n### Looking up a Maven package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:maven/log4j/[email protected]\"\n }\n ]\n}\n```\n\n### Batch lookup\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:npm/[email protected]\"\n },\n {\n \"purl\": \"pkg:pypi/[email protected]\"\n },\n {\n \"purl\": \"pkg:maven/log4j/[email protected]\"\n }\n ]\n}\n```\n\nThis endpoint consumes 100 units of your quota.\n\nThis endpoint requires the following org token scopes:\n- packages:list",
7244+
"description": "Batch retrieval of package metadata and alerts by PURL strings. Compatible witch CycloneDX reports.\n\nPackage URLs (PURLs) are an ecosystem agnostic way to identify packages.\nCycloneDX SBOMs use the purl format to identify components.\nThis endpoint supports fetching metadata and alerts for multiple packages at once by passing an array of purl strings, or by passing an entire CycloneDX report.\n\nMore information on purl and CycloneDX:\n\n- [`purl` Spec](https://github.com/package-url/purl-spec)\n- [CycloneDX Spec](https://cyclonedx.org/specification/overview/#components)\n\nThis endpoint returns the latest available alert data for artifacts in the batch (stale while revalidate).\nActively running analysis will be returned when available on subsequent runs.\n\n## Examples:\n\n### Looking up an npm package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:npm/[email protected]\"\n }\n ]\n}\n```\n\n### Looking up an PyPi package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:pypi/[email protected]\"\n }\n ]\n}\n```\n\n### Looking up a Maven package:\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:maven/log4j/[email protected]\"\n }\n ]\n}\n```\n\n### Batch lookup\n\n```json\n{\n \"components\": [\n {\n \"purl\": \"pkg:npm/[email protected]\"\n },\n {\n \"purl\": \"pkg:pypi/[email protected]\"\n },\n {\n \"purl\": \"pkg:maven/log4j/[email protected]\"\n }\n ]\n}\n```\n\nThis endpoint consumes 100 units of your quota.\n\nThis endpoint requires the following org token scopes:\n- packages:list",
72457245
"responses": {
72467246
"200": {
72477247
"content": {
@@ -8172,7 +8172,7 @@
81728172
]
81738173
}
81748174
],
8175-
"description": "Stream all SBOM artifacts for a full scan.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- full-scans:list",
8175+
"description": "Stream all SBOM artifacts for a full scan.\n\nThis endpoint returns the latest, available alert data for artifacts in the full scan (stale while revalidate).\nActively running analysis will be returned when available on subsequent runs.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- full-scans:list",
81768176
"responses": {
81778177
"200": {
81788178
"content": {
@@ -10446,14 +10446,15 @@
1044610446
}
1044710447
}
1044810448
},
10449+
"description": "Array of organization selector objects (with `organization` field holding the organization ID) to get settings for",
1044910450
"required": false
1045010451
},
1045110452
"security": [
1045210453
{
1045310454
"basicAuth": []
1045410455
}
1045510456
],
10456-
"description": "Get your current settings the requested organizations and default settings to allow deferrals.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- Any",
10457+
"description": "Get current settings for the requested organizations and default settings to allow deferrals.\n\nThis endpoint consumes 1 unit of your quota.\n\nThis endpoint requires the following org token scopes:\n- Any",
1045710458
"responses": {
1045810459
"200": {
1045910460
"content": {
@@ -10556,7 +10557,7 @@
1055610557
}
1055710558
}
1055810559
},
10559-
"description": "Organization settings"
10560+
"description": "Organization settings. Returned object contains default issue rules and an array of entries, with each entry representing an organization's settings."
1056010561
},
1056110562
"401": {
1056210563
"$ref": "#/components/responses/SocketUnauthorized"

types/api.d.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export interface paths {
1919
* - [`purl` Spec](https://github.com/package-url/purl-spec)
2020
* - [CycloneDX Spec](https://cyclonedx.org/specification/overview/#components)
2121
*
22+
* This endpoint returns the latest available alert data for artifacts in the batch (stale while revalidate).
23+
* Actively running analysis will be returned when available on subsequent runs.
24+
*
2225
* ## Examples:
2326
*
2427
* ### Looking up an npm package:
@@ -145,6 +148,9 @@ export interface paths {
145148
* Stream full scan
146149
* @description Stream all SBOM artifacts for a full scan.
147150
*
151+
* This endpoint returns the latest, available alert data for artifacts in the full scan (stale while revalidate).
152+
* Actively running analysis will be returned when available on subsequent runs.
153+
*
148154
* This endpoint consumes 1 unit of your quota.
149155
*
150156
* This endpoint requires the following org token scopes:
@@ -402,7 +408,7 @@ export interface paths {
402408
"/settings": {
403409
/**
404410
* Calculate settings
405-
* @description Get your current settings the requested organizations and default settings to allow deferrals.
411+
* @description Get current settings for the requested organizations and default settings to allow deferrals.
406412
*
407413
* This endpoint consumes 1 unit of your quota.
408414
*
@@ -2292,6 +2298,9 @@ export interface operations {
22922298
* - [`purl` Spec](https://github.com/package-url/purl-spec)
22932299
* - [CycloneDX Spec](https://cyclonedx.org/specification/overview/#components)
22942300
*
2301+
* This endpoint returns the latest available alert data for artifacts in the batch (stale while revalidate).
2302+
* Actively running analysis will be returned when available on subsequent runs.
2303+
*
22952304
* ## Examples:
22962305
*
22972306
* ### Looking up an npm package:
@@ -2681,6 +2690,9 @@ export interface operations {
26812690
* Stream full scan
26822691
* @description Stream all SBOM artifacts for a full scan.
26832692
*
2693+
* This endpoint returns the latest, available alert data for artifacts in the full scan (stale while revalidate).
2694+
* Actively running analysis will be returned when available on subsequent runs.
2695+
*
26842696
* This endpoint consumes 1 unit of your quota.
26852697
*
26862698
* This endpoint requires the following org token scopes:
@@ -3831,14 +3843,15 @@ export interface operations {
38313843
};
38323844
/**
38333845
* Calculate settings
3834-
* @description Get your current settings the requested organizations and default settings to allow deferrals.
3846+
* @description Get current settings for the requested organizations and default settings to allow deferrals.
38353847
*
38363848
* This endpoint consumes 1 unit of your quota.
38373849
*
38383850
* This endpoint requires the following org token scopes:
38393851
* - Any
38403852
*/
38413853
postSettings: {
3854+
/** @description Array of organization selector objects (with `organization` field holding the organization ID) to get settings for */
38423855
requestBody?: {
38433856
content: {
38443857
"application/json": {
@@ -3848,7 +3861,7 @@ export interface operations {
38483861
};
38493862
};
38503863
responses: {
3851-
/** @description Organization settings */
3864+
/** @description Organization settings. Returned object contains default issue rules and an array of entries, with each entry representing an organization's settings. */
38523865
200: {
38533866
content: {
38543867
"application/json": {

0 commit comments

Comments
 (0)