curl --request GET \
--url https://app.trustivan.com/api/v1/licenses \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/licenses"
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/licenses', 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/licenses"
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"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}The licence composition of the estate or an asset
Derived from the component inventory on read rather than materialised. A stored copy would go stale the moment a scan corrected an inventory.
Licence inventory is a FACT about an asset; a licence finding would be a JUDGEMENT about it. They are deliberately not the same thing: modelling the fact as a finding would let a customer suppress it, hiding a GPL component from their own licence report.
Obligation classes are permissive, weak-copyleft, strong-copyleft,
commercial and unknown. An unrecognised licence is unknown and is
NEVER assumed permissive, because a licence nobody classified could be
anything, and guessing would let a copyleft licence under an unusual
spelling pass a policy silently. unknown is ranked as needing MORE
attention than strong-copyleft, so entries needing a human sort first.
The policy parameters evaluate an ad-hoc policy against the inventory and return violations with a reason. They gate nothing: this reports, and a build gate is the policy engine’s job.
truncated is true when the component cap was reached. An aggregate
over part of an estate is a wrong answer that looks right, so it is
labelled rather than silently returned.
curl --request GET \
--url https://app.trustivan.com/api/v1/licenses \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.trustivan.com/api/v1/licenses"
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/licenses', 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/licenses"
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"
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Authorizations
Query Parameters
Response
The licence inventory and, when a policy was given, its violations.
The response is of type object.