curl --request GET \
--url https://app.trustivan.com/api/v1/components/{id}/dependents \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/components/{id}/dependents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/components/{id}/dependents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/components/{id}/dependents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}The transitive blast radius of one component
Every component that reaches this one through a chain of depends_on
edges, with the distance at which each was found.
This is a different question from the dependents list returned by
GET /components/{id}, which is one hop. A vulnerable package is
almost never a direct dependency of the thing a customer ships: it is
pulled in by a library that is pulled in by a framework, and a one-hop
answer names the library and stops. depth is returned per result
because “you require this directly” and “something several levels down
does” are different pieces of remediation work.
A component reachable by more than one path appears once, at its
shortest distance. The traversal is bounded (max_depth in the
response is the deepest this service will walk), and a depth over
that bound is clamped rather than refused, because a caller asking for
an enormous depth means “as deep as you go”.
curl --request GET \
--url https://app.trustivan.com/api/v1/components/{id}/dependents \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/components/{id}/dependents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.trustivan.com/api/v1/components/{id}/dependents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/components/{id}/dependents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Query Parameters
Response
The components that transitively depend on this one.
The response is of type object.