diff --git a/config/_default/menus/api.en.yaml b/config/_default/menus/api.en.yaml index 39364eadc4828..32223d1b076b3 100644 --- a/config/_default/menus/api.en.yaml +++ b/config/_default/menus/api.en.yaml @@ -10685,6 +10685,36 @@ menu: - ListSpansMetrics unstable: [] order: 1 + - name: Static Analysis + url: /api/latest/static-analysis/ + identifier: static-analysis + generated: true + - name: POST request to resolve vulnerable symbols + url: '#post-request-to-resolve-vulnerable-symbols' + identifier: static-analysis-post-request-to-resolve-vulnerable-symbols + parent: static-analysis + generated: true + params: + versions: + - v2 + operationids: + - CreateSCAResolveVulnerableSymbols + unstable: + - v2 + order: 1 + - name: Post dependencies for analysis + url: '#post-dependencies-for-analysis' + identifier: static-analysis-post-dependencies-for-analysis + parent: static-analysis + generated: true + params: + versions: + - v2 + operationids: + - CreateSCAResult + unstable: + - v2 + order: 2 - name: Teams url: /api/latest/teams/ identifier: teams diff --git a/content/en/api/latest/static-analysis/_index.md b/content/en/api/latest/static-analysis/_index.md new file mode 100644 index 0000000000000..fb73a2d1dc065 --- /dev/null +++ b/content/en/api/latest/static-analysis/_index.md @@ -0,0 +1,3 @@ +--- +title: Static Analysis +--- diff --git a/content/en/api/v2/static-analysis/_index.md b/content/en/api/v2/static-analysis/_index.md new file mode 100644 index 0000000000000..0f3c08f991152 --- /dev/null +++ b/content/en/api/v2/static-analysis/_index.md @@ -0,0 +1,4 @@ +--- +title: Static Analysis +headless: true +--- diff --git a/content/en/api/v2/static-analysis/examples.json b/content/en/api/v2/static-analysis/examples.json new file mode 100644 index 0000000000000..5a5257367a29c --- /dev/null +++ b/content/en/api/v2/static-analysis/examples.json @@ -0,0 +1,194 @@ +{ + "CreateSCAResult": { + "responses": { + "429": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + } + }, + "request": { + "json_curl": { + "data": { + "type": "scarequests" + } + }, + "json": { + "data": { + "attributes": { + "commit": { + "author_date": "string", + "author_email": "string", + "author_name": "string", + "branch": "string", + "committer_email": "string", + "committer_name": "string", + "sha": "string" + }, + "dependencies": [ + { + "exclusions": [], + "group": "string", + "is_dev": false, + "is_direct": false, + "language": "string", + "locations": [ + { + "block": { + "end": { + "col": "integer", + "line": "integer" + }, + "file_name": "string", + "start": { + "col": "integer", + "line": "integer" + } + }, + "name": { + "end": { + "col": "integer", + "line": "integer" + }, + "file_name": "string", + "start": { + "col": "integer", + "line": "integer" + } + }, + "namespace": { + "end": { + "col": "integer", + "line": "integer" + }, + "file_name": "string", + "start": { + "col": "integer", + "line": "integer" + } + }, + "version": { + "end": { + "col": "integer", + "line": "integer" + }, + "file_name": "string", + "start": { + "col": "integer", + "line": "integer" + } + } + } + ], + "name": "string", + "package_manager": "string", + "purl": "string", + "reachable_symbol_properties": [ + { + "name": "string", + "value": "string" + } + ], + "version": "string" + } + ], + "env": "string", + "files": [ + { + "name": "string", + "purl": "string" + } + ], + "relations": [ + { + "depends_on": [], + "ref": "string" + } + ], + "repository": { + "url": "string" + }, + "service": "string", + "tags": { + "": "string" + }, + "vulnerabilities": [ + { + "affects": [ + { + "ref": "string" + } + ], + "bom_ref": "string", + "id": "string" + } + ] + }, + "id": "string", + "type": "scarequests" + } + }, + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

commit

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

author_date

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

author_email

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

author_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

branch

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

committer_email

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

committer_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

sha

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

dependencies

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

exclusions

\n
\n

[string]

\n
\n
\n \n
\n
\n
\n
\n
\n

group

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

is_dev

\n
\n

boolean

\n
\n
\n \n
\n
\n
\n
\n
\n

is_direct

\n
\n

boolean

\n
\n
\n \n
\n
\n
\n
\n
\n

language

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

locations

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

block

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

end

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

file_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

end

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

file_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

namespace

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

end

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

file_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

version

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

end

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

file_name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

col

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n

line

\n
\n

int32

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

package_manager

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

purl

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

reachable_symbol_properties

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

value

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

version

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

env

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

files

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

purl

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

relations

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

depends_on

\n
\n

[string]

\n
\n
\n \n
\n
\n
\n
\n
\n

ref

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

repository

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

url

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

service

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

tags

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

vulnerabilities

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

affects

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

ref

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

bom_ref

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

id

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

default: scarequests

\n
\n \n
\n
\n
\n
" + } + }, + "CreateSCAResolveVulnerableSymbols": { + "responses": { + "200": { + "json": { + "data": { + "attributes": { + "results": [ + { + "purl": "string", + "vulnerable_symbols": [ + { + "advisory_id": "string", + "symbols": [ + { + "name": "string", + "type": "string", + "value": "string" + } + ] + } + ] + } + ] + }, + "id": "string", + "type": "resolve-vulnerable-symbols-response" + } + }, + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

results

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

purl

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

vulnerable_symbols

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

advisory_id

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

symbols

\n
\n

[object]

\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

value

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

id

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

default: resolve-vulnerable-symbols-response

\n
\n \n
\n
\n
\n
" + }, + "429": { + "json": { + "errors": [ + "Bad Request" + ] + }, + "html": "
\n
\n
\n
\n

errors [required]

\n
\n

[string]

\n

A list of errors.

\n
\n \n
\n
" + } + }, + "request": { + "json_curl": { + "data": { + "type": "resolve-vulnerable-symbols-request" + } + }, + "json": { + "data": { + "attributes": { + "purls": [] + }, + "id": "string", + "type": "resolve-vulnerable-symbols-request" + } + }, + "html": "
\n
\n
\n
\n

data

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

attributes

\n
\n

object

\n
\n
\n
\n
\n
\n
\n

purls

\n
\n

[string]

\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n

id

\n
\n

string

\n
\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

default: resolve-vulnerable-symbols-request

\n
\n \n
\n
\n
\n
" + } + } +} \ No newline at end of file diff --git a/data/api/v2/full_spec.yaml b/data/api/v2/full_spec.yaml index f0dbbb211bf1a..b6f4b895bed65 100644 --- a/data/api/v2/full_spec.yaml +++ b/data/api/v2/full_spec.yaml @@ -39673,6 +39673,95 @@ components: type: string x-enum-varnames: - RULESET + ResolveVulnerableSymbolsRequest: + properties: + data: + $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestData' + type: object + ResolveVulnerableSymbolsRequestData: + properties: + attributes: + $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/ResolveVulnerableSymbolsRequestDataType' + required: + - type + type: object + ResolveVulnerableSymbolsRequestDataAttributes: + properties: + purls: + items: + type: string + type: array + type: object + ResolveVulnerableSymbolsRequestDataType: + default: resolve-vulnerable-symbols-request + enum: + - resolve-vulnerable-symbols-request + example: resolve-vulnerable-symbols-request + type: string + x-enum-varnames: + - RESOLVE_VULNERABLE_SYMBOLS_REQUEST + ResolveVulnerableSymbolsResponse: + properties: + data: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseData' + type: object + ResolveVulnerableSymbolsResponseData: + properties: + attributes: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseDataType' + required: + - type + type: object + ResolveVulnerableSymbolsResponseDataAttributes: + properties: + results: + items: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResults' + type: array + type: object + ResolveVulnerableSymbolsResponseDataType: + default: resolve-vulnerable-symbols-response + enum: + - resolve-vulnerable-symbols-response + example: resolve-vulnerable-symbols-response + type: string + x-enum-varnames: + - RESOLVE_VULNERABLE_SYMBOLS_RESPONSE + ResolveVulnerableSymbolsResponseResults: + properties: + purl: + type: string + vulnerable_symbols: + items: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResultsVulnerableSymbols' + type: array + type: object + ResolveVulnerableSymbolsResponseResultsVulnerableSymbols: + properties: + advisory_id: + type: string + symbols: + items: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols' + type: array + type: object + ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols: + properties: + name: + type: string + type: + type: string + value: + type: string + type: object ResourceFilterAttributes: description: Attributes of a resource filter. example: @@ -42276,6 +42365,184 @@ components: example: report_id type: string type: object + ScaRequest: + properties: + data: + $ref: '#/components/schemas/ScaRequestData' + type: object + ScaRequestData: + properties: + attributes: + $ref: '#/components/schemas/ScaRequestDataAttributes' + id: + type: string + type: + $ref: '#/components/schemas/ScaRequestDataType' + required: + - type + type: object + ScaRequestDataAttributes: + properties: + commit: + $ref: '#/components/schemas/ScaRequestDataAttributesCommit' + dependencies: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItems' + type: array + env: + type: string + files: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesFilesItems' + type: array + relations: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesRelationsItems' + type: array + repository: + $ref: '#/components/schemas/ScaRequestDataAttributesRepository' + service: + type: string + tags: + additionalProperties: + type: string + type: object + vulnerabilities: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesVulnerabilitiesItems' + type: array + type: object + ScaRequestDataAttributesCommit: + properties: + author_date: + type: string + author_email: + type: string + author_name: + type: string + branch: + type: string + committer_email: + type: string + committer_name: + type: string + sha: + type: string + type: object + ScaRequestDataAttributesDependenciesItems: + properties: + exclusions: + items: + type: string + type: array + group: + type: string + is_dev: + type: boolean + is_direct: + type: boolean + language: + type: string + locations: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItems' + type: array + name: + type: string + package_manager: + type: string + purl: + type: string + reachable_symbol_properties: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems' + type: array + version: + type: string + type: object + ScaRequestDataAttributesDependenciesItemsLocationsItems: + properties: + block: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition' + name: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition' + namespace: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition' + version: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition' + type: object + ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition: + properties: + end: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition' + file_name: + type: string + start: + $ref: '#/components/schemas/ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition' + type: object + ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition: + properties: + col: + format: int32 + maximum: 2147483647 + type: integer + line: + format: int32 + maximum: 2147483647 + type: integer + type: object + ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems: + properties: + name: + type: string + value: + type: string + type: object + ScaRequestDataAttributesFilesItems: + properties: + name: + type: string + purl: + type: string + type: object + ScaRequestDataAttributesRelationsItems: + properties: + depends_on: + items: + type: string + type: array + ref: + type: string + type: object + ScaRequestDataAttributesRepository: + properties: + url: + type: string + type: object + ScaRequestDataAttributesVulnerabilitiesItems: + properties: + affects: + items: + $ref: '#/components/schemas/ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems' + type: array + bom_ref: + type: string + id: + type: string + type: object + ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems: + properties: + ref: + type: string + type: object + ScaRequestDataType: + default: scarequests + enum: + - scarequests + example: scarequests + type: string + x-enum-varnames: + - SCAREQUESTS ScalarColumn: description: A single column in a scalar query response. oneOf: @@ -78821,6 +79088,58 @@ paths: cursorPath: meta.page.after limitParam: body.data.attributes.page.limit resultsPath: data + /api/v2/static-analysis-sca/dependencies: + post: + operationId: CreateSCAResult + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScaRequest' + required: true + responses: + '200': + description: OK + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - code_analysis_read + summary: Post dependencies for analysis + tags: + - Static Analysis + x-menu-order: 2 + x-unstable: '**Note**: This endpoint may be subject to changes.' + /api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols: + post: + operationId: CreateSCAResolveVulnerableSymbols + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResolveVulnerableSymbolsRequest' + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ResolveVulnerableSymbolsResponse' + description: OK + '429': + $ref: '#/components/responses/TooManyRequestsResponse' + security: + - apiKeyAuth: [] + appKeyAuth: [] + - AuthZ: + - code_analysis_read + summary: POST request to resolve vulnerable symbols + tags: + - Static Analysis + x-menu-order: 1 + x-unstable: '**Note**: This endpoint may be subject to changes.' /api/v2/synthetics/settings/on_demand_concurrency_cap: get: description: Get the on-demand concurrency cap. @@ -82455,6 +82774,8 @@ tags: description: Find out more at url: https://docs.datadoghq.com/tracing/metrics/metrics_namespace/ name: Spans Metrics +- description: API for static analysis + name: Static Analysis - description: "Datadog Synthetics uses simulated user requests and browser rendering to help you ensure uptime,\nidentify regional issues, and track your application performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand diff --git a/data/api/v2/full_spec_deref.json b/data/api/v2/full_spec_deref.json index c964e29484000..580710d708e02 100644 --- a/data/api/v2/full_spec_deref.json +++ b/data/api/v2/full_spec_deref.json @@ -282560,6 +282560,366 @@ "RULESET" ] }, + "ResolveVulnerableSymbolsRequest": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsRequestData": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ResolveVulnerableSymbolsRequestDataAttributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsRequestDataType": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + }, + "ResolveVulnerableSymbolsResponse": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseData": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ResolveVulnerableSymbolsResponseDataAttributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseDataType": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + }, + "ResolveVulnerableSymbolsResponseResults": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseResultsVulnerableSymbols": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, "ResourceFilterAttributes": { "description": "Attributes of a resource filter.", "example": { @@ -298858,6 +299218,1542 @@ }, "type": "object" }, + "ScaRequest": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestData": { + "properties": { + "attributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ScaRequestDataAttributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesCommit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItems": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItems": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesFilesItems": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesRelationsItems": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesRepository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesVulnerabilitiesItems": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataType": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + }, "ScalarColumn": { "description": "A single column in a scalar query response.", "oneOf": [ @@ -700011,63 +701907,477 @@ } } }, - "description": "Unprocessable Entity." + "description": "Unprocessable Entity." + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "items": { + "description": "API error response body", + "properties": { + "detail": { + "description": "A human-readable explanation specific to this occurrence of the error.", + "example": "Missing required attribute in body", + "type": "string" + }, + "meta": { + "additionalProperties": {}, + "description": "Non-standard meta-information about the error", + "type": "object" + }, + "source": { + "description": "References to the source of the error.", + "properties": { + "header": { + "description": "A string indicating the name of a single request header which caused the error.", + "example": "Authorization", + "type": "string" + }, + "parameter": { + "description": "A string indicating which URI query parameter caused the error.", + "example": "limit", + "type": "string" + }, + "pointer": { + "description": "A JSON pointer to the value in the request document that caused the error.", + "example": "/data/attributes/title", + "type": "string" + } + }, + "type": "object" + }, + "status": { + "description": "Status code of the response.", + "example": "400", + "type": "string" + }, + "title": { + "description": "Short human-readable summary of the error.", + "example": "Bad Request", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "errors" + ], + "type": "object" + } + } + }, + "description": "Too many requests: The rate limit set by the API has been exceeded." + } + }, + "security": [ + { + "apiKeyAuth": [], + "appKeyAuth": [] }, - "429": { - "content": { - "application/json": { - "schema": { - "description": "API error response.", - "properties": { - "errors": { - "description": "A list of errors.", - "items": { - "description": "API error response body", + { + "AuthZ": [ + "apm_read" + ] + } + ], + "summary": "Search spans", + "tags": [ + "Spans" + ], + "x-codegen-request-body-name": "body", + "x-menu-order": 2, + "x-pagination": { + "cursorParam": "body.data.attributes.page.cursor", + "cursorPath": "meta.page.after", + "limitParam": "body.data.attributes.page.limit", + "resultsPath": "data" + } + } + }, + "/api/v2/static-analysis-sca/dependencies": { + "post": { + "operationId": "CreateSCAResult", + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { "properties": { - "detail": { - "description": "A human-readable explanation specific to this occurrence of the error.", - "example": "Missing required attribute in body", - "type": "string" - }, - "meta": { - "additionalProperties": {}, - "description": "Non-standard meta-information about the error", - "type": "object" - }, - "source": { - "description": "References to the source of the error.", + "commit": { "properties": { - "header": { - "description": "A string indicating the name of a single request header which caused the error.", - "example": "Authorization", + "author_date": { "type": "string" }, - "parameter": { - "description": "A string indicating which URI query parameter caused the error.", - "example": "limit", + "author_email": { "type": "string" }, - "pointer": { - "description": "A JSON pointer to the value in the request document that caused the error.", - "example": "/data/attributes/title", + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { "type": "string" } }, "type": "object" }, - "status": { - "description": "Status code of the response.", - "example": "400", + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { "type": "string" }, - "title": { - "description": "Short human-readable summary of the error.", - "example": "Bad Request", + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" } }, "type": "object" }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "example": [ + "Bad Request" + ], + "items": { + "description": "A list of items.", + "example": "Bad Request", + "type": "string" + }, "type": "array" } }, @@ -700078,7 +702388,7 @@ } } }, - "description": "Too many requests: The rate limit set by the API has been exceeded." + "description": "Too many requests" } }, "security": [ @@ -700088,22 +702398,191 @@ }, { "AuthZ": [ - "apm_read" + "code_analysis_read" ] } ], - "summary": "Search spans", + "summary": "Post dependencies for analysis", "tags": [ - "Spans" + "Static Analysis" ], - "x-codegen-request-body-name": "body", "x-menu-order": 2, - "x-pagination": { - "cursorParam": "body.data.attributes.page.cursor", - "cursorPath": "meta.page.after", - "limitParam": "body.data.attributes.page.limit", - "resultsPath": "data" - } + "x-unstable": "**Note**: This endpoint may be subject to changes." + } + }, + "/api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols": { + "post": { + "operationId": "CreateSCAResolveVulnerableSymbols", + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "description": "OK" + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "example": [ + "Bad Request" + ], + "items": { + "description": "A list of items.", + "example": "Bad Request", + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "errors" + ], + "type": "object" + } + } + }, + "description": "Too many requests" + } + }, + "security": [ + { + "apiKeyAuth": [], + "appKeyAuth": [] + }, + { + "AuthZ": [ + "code_analysis_read" + ] + } + ], + "summary": "POST request to resolve vulnerable symbols", + "tags": [ + "Static Analysis" + ], + "x-menu-order": 1, + "x-unstable": "**Note**: This endpoint may be subject to changes." } }, "/api/v2/synthetics/settings/on_demand_concurrency_cap": { @@ -730307,6 +732786,10 @@ }, "name": "Spans Metrics" }, + { + "description": "API for static analysis", + "name": "Static Analysis" + }, { "description": "Datadog Synthetics uses simulated user requests and browser rendering to help you ensure uptime,\nidentify regional issues, and track your application performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand [browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You can use Datadog’s API to\nmanage both test types programmatically.\n\nFor more information about Synthetics, see the [Synthetics overview](https://docs.datadoghq.com/synthetics/).", "name": "Synthetics" diff --git a/data/api/v2/translate_actions.json b/data/api/v2/translate_actions.json index 6aaecefed50c1..fa686bf3f114b 100644 --- a/data/api/v2/translate_actions.json +++ b/data/api/v2/translate_actions.json @@ -2881,6 +2881,16 @@ "request_description": "", "request_schema_description": "The request for a spans list." }, + "CreateSCAResult": { + "summary": "Post dependencies for analysis", + "request_description": "", + "request_schema_description": "" + }, + "CreateSCAResolveVulnerableSymbols": { + "summary": "POST request to resolve vulnerable symbols", + "request_description": "", + "request_schema_description": "" + }, "GetOnDemandConcurrencyCap": { "description": "Get the on-demand concurrency cap.", "summary": "Get the on-demand concurrency cap" diff --git a/data/api/v2/translate_tags.json b/data/api/v2/translate_tags.json index bb9da0dacc276..2d677ed247d1c 100644 --- a/data/api/v2/translate_tags.json +++ b/data/api/v2/translate_tags.json @@ -299,6 +299,10 @@ "name": "Spans Metrics", "description": "Manage configuration of [span-based metrics](https://app.datadoghq.com/apm/traces/generate-metrics) for your organization. See [Generate Metrics from Spans](https://docs.datadoghq.com/tracing/trace_pipeline/generate_metrics/) for more information." }, + "static-analysis": { + "name": "Static Analysis", + "description": "API for static analysis" + }, "synthetics": { "name": "Synthetics", "description": "Datadog Synthetics uses simulated user requests and browser rendering to help you ensure uptime,\nidentify regional issues, and track your application performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand [browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You can use Datadog’s API to\nmanage both test types programmatically.\n\nFor more information about Synthetics, see the [Synthetics overview](https://docs.datadoghq.com/synthetics/)." diff --git a/static/resources/json/full_spec_v2.json b/static/resources/json/full_spec_v2.json index c964e29484000..580710d708e02 100644 --- a/static/resources/json/full_spec_v2.json +++ b/static/resources/json/full_spec_v2.json @@ -282560,6 +282560,366 @@ "RULESET" ] }, + "ResolveVulnerableSymbolsRequest": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsRequestData": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ResolveVulnerableSymbolsRequestDataAttributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsRequestDataType": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + }, + "ResolveVulnerableSymbolsResponse": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseData": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ResolveVulnerableSymbolsResponseDataAttributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseDataType": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + }, + "ResolveVulnerableSymbolsResponseResults": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseResultsVulnerableSymbols": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ResolveVulnerableSymbolsResponseResultsVulnerableSymbolsSymbols": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, "ResourceFilterAttributes": { "description": "Attributes of a resource filter.", "example": { @@ -298858,6 +299218,1542 @@ }, "type": "object" }, + "ScaRequest": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestData": { + "properties": { + "attributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + }, + "ScaRequestDataAttributes": { + "properties": { + "commit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { + "type": "string" + }, + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { + "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesCommit": { + "properties": { + "author_date": { + "type": "string" + }, + "author_email": { + "type": "string" + }, + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItems": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItems": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItemsFilePosition": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsLocationsItemsPosition": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesDependenciesItemsReachableSymbolPropertiesItems": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesFilesItems": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesRelationsItems": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesRepository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesVulnerabilitiesItems": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataAttributesVulnerabilitiesItemsAffectsItems": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "ScaRequestDataType": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + }, "ScalarColumn": { "description": "A single column in a scalar query response.", "oneOf": [ @@ -700011,63 +701907,477 @@ } } }, - "description": "Unprocessable Entity." + "description": "Unprocessable Entity." + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "items": { + "description": "API error response body", + "properties": { + "detail": { + "description": "A human-readable explanation specific to this occurrence of the error.", + "example": "Missing required attribute in body", + "type": "string" + }, + "meta": { + "additionalProperties": {}, + "description": "Non-standard meta-information about the error", + "type": "object" + }, + "source": { + "description": "References to the source of the error.", + "properties": { + "header": { + "description": "A string indicating the name of a single request header which caused the error.", + "example": "Authorization", + "type": "string" + }, + "parameter": { + "description": "A string indicating which URI query parameter caused the error.", + "example": "limit", + "type": "string" + }, + "pointer": { + "description": "A JSON pointer to the value in the request document that caused the error.", + "example": "/data/attributes/title", + "type": "string" + } + }, + "type": "object" + }, + "status": { + "description": "Status code of the response.", + "example": "400", + "type": "string" + }, + "title": { + "description": "Short human-readable summary of the error.", + "example": "Bad Request", + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "required": [ + "errors" + ], + "type": "object" + } + } + }, + "description": "Too many requests: The rate limit set by the API has been exceeded." + } + }, + "security": [ + { + "apiKeyAuth": [], + "appKeyAuth": [] }, - "429": { - "content": { - "application/json": { - "schema": { - "description": "API error response.", - "properties": { - "errors": { - "description": "A list of errors.", - "items": { - "description": "API error response body", + { + "AuthZ": [ + "apm_read" + ] + } + ], + "summary": "Search spans", + "tags": [ + "Spans" + ], + "x-codegen-request-body-name": "body", + "x-menu-order": 2, + "x-pagination": { + "cursorParam": "body.data.attributes.page.cursor", + "cursorPath": "meta.page.after", + "limitParam": "body.data.attributes.page.limit", + "resultsPath": "data" + } + } + }, + "/api/v2/static-analysis-sca/dependencies": { + "post": { + "operationId": "CreateSCAResult", + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { "properties": { - "detail": { - "description": "A human-readable explanation specific to this occurrence of the error.", - "example": "Missing required attribute in body", - "type": "string" - }, - "meta": { - "additionalProperties": {}, - "description": "Non-standard meta-information about the error", - "type": "object" - }, - "source": { - "description": "References to the source of the error.", + "commit": { "properties": { - "header": { - "description": "A string indicating the name of a single request header which caused the error.", - "example": "Authorization", + "author_date": { "type": "string" }, - "parameter": { - "description": "A string indicating which URI query parameter caused the error.", - "example": "limit", + "author_email": { "type": "string" }, - "pointer": { - "description": "A JSON pointer to the value in the request document that caused the error.", - "example": "/data/attributes/title", + "author_name": { + "type": "string" + }, + "branch": { + "type": "string" + }, + "committer_email": { + "type": "string" + }, + "committer_name": { + "type": "string" + }, + "sha": { "type": "string" } }, "type": "object" }, - "status": { - "description": "Status code of the response.", - "example": "400", + "dependencies": { + "items": { + "properties": { + "exclusions": { + "items": { + "type": "string" + }, + "type": "array" + }, + "group": { + "type": "string" + }, + "is_dev": { + "type": "boolean" + }, + "is_direct": { + "type": "boolean" + }, + "language": { + "type": "string" + }, + "locations": { + "items": { + "properties": { + "block": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "name": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "namespace": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "version": { + "properties": { + "end": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + }, + "file_name": { + "type": "string" + }, + "start": { + "properties": { + "col": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + }, + "line": { + "format": "int32", + "maximum": 2147483647, + "type": "integer" + } + }, + "type": "object" + } + }, + "type": "object" + } + }, + "type": "object" + }, + "type": "array" + }, + "name": { + "type": "string" + }, + "package_manager": { + "type": "string" + }, + "purl": { + "type": "string" + }, + "reachable_symbol_properties": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "version": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "env": { "type": "string" }, - "title": { - "description": "Short human-readable summary of the error.", - "example": "Bad Request", + "files": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "purl": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "relations": { + "items": { + "properties": { + "depends_on": { + "items": { + "type": "string" + }, + "type": "array" + }, + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "repository": { + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "service": { "type": "string" + }, + "tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object" + }, + "vulnerabilities": { + "items": { + "properties": { + "affects": { + "items": { + "properties": { + "ref": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + }, + "bom_ref": { + "type": "string" + }, + "id": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" } }, "type": "object" }, + "id": { + "type": "string" + }, + "type": { + "default": "scarequests", + "enum": [ + "scarequests" + ], + "example": "scarequests", + "type": "string", + "x-enum-varnames": [ + "SCAREQUESTS" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK" + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "example": [ + "Bad Request" + ], + "items": { + "description": "A list of items.", + "example": "Bad Request", + "type": "string" + }, "type": "array" } }, @@ -700078,7 +702388,7 @@ } } }, - "description": "Too many requests: The rate limit set by the API has been exceeded." + "description": "Too many requests" } }, "security": [ @@ -700088,22 +702398,191 @@ }, { "AuthZ": [ - "apm_read" + "code_analysis_read" ] } ], - "summary": "Search spans", + "summary": "Post dependencies for analysis", "tags": [ - "Spans" + "Static Analysis" ], - "x-codegen-request-body-name": "body", "x-menu-order": 2, - "x-pagination": { - "cursorParam": "body.data.attributes.page.cursor", - "cursorPath": "meta.page.after", - "limitParam": "body.data.attributes.page.limit", - "resultsPath": "data" - } + "x-unstable": "**Note**: This endpoint may be subject to changes." + } + }, + "/api/v2/static-analysis-sca/vulnerabilities/resolve-vulnerable-symbols": { + "post": { + "operationId": "CreateSCAResolveVulnerableSymbols", + "requestBody": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "purls": { + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-request", + "enum": [ + "resolve-vulnerable-symbols-request" + ], + "example": "resolve-vulnerable-symbols-request", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_REQUEST" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "properties": { + "data": { + "properties": { + "attributes": { + "properties": { + "results": { + "items": { + "properties": { + "purl": { + "type": "string" + }, + "vulnerable_symbols": { + "items": { + "properties": { + "advisory_id": { + "type": "string" + }, + "symbols": { + "items": { + "properties": { + "name": { + "type": "string" + }, + "type": { + "type": "string" + }, + "value": { + "type": "string" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "type": "array" + } + }, + "type": "object" + }, + "id": { + "type": "string" + }, + "type": { + "default": "resolve-vulnerable-symbols-response", + "enum": [ + "resolve-vulnerable-symbols-response" + ], + "example": "resolve-vulnerable-symbols-response", + "type": "string", + "x-enum-varnames": [ + "RESOLVE_VULNERABLE_SYMBOLS_RESPONSE" + ] + } + }, + "required": [ + "type" + ], + "type": "object" + } + }, + "type": "object" + } + } + }, + "description": "OK" + }, + "429": { + "content": { + "application/json": { + "schema": { + "description": "API error response.", + "properties": { + "errors": { + "description": "A list of errors.", + "example": [ + "Bad Request" + ], + "items": { + "description": "A list of items.", + "example": "Bad Request", + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "errors" + ], + "type": "object" + } + } + }, + "description": "Too many requests" + } + }, + "security": [ + { + "apiKeyAuth": [], + "appKeyAuth": [] + }, + { + "AuthZ": [ + "code_analysis_read" + ] + } + ], + "summary": "POST request to resolve vulnerable symbols", + "tags": [ + "Static Analysis" + ], + "x-menu-order": 1, + "x-unstable": "**Note**: This endpoint may be subject to changes." } }, "/api/v2/synthetics/settings/on_demand_concurrency_cap": { @@ -730307,6 +732786,10 @@ }, "name": "Spans Metrics" }, + { + "description": "API for static analysis", + "name": "Static Analysis" + }, { "description": "Datadog Synthetics uses simulated user requests and browser rendering to help you ensure uptime,\nidentify regional issues, and track your application performance. Datadog Synthetics tests come in\ntwo different flavors, [API tests](https://docs.datadoghq.com/synthetics/api_tests/)\nand [browser tests](https://docs.datadoghq.com/synthetics/browser_tests). You can use Datadog’s API to\nmanage both test types programmatically.\n\nFor more information about Synthetics, see the [Synthetics overview](https://docs.datadoghq.com/synthetics/).", "name": "Synthetics"