diff --git a/.github/workflows/lunatrace.yaml b/.github/workflows/lunatrace.yaml
index ed9f412b2..09899ca9a 100644
--- a/.github/workflows/lunatrace.yaml
+++ b/.github/workflows/lunatrace.yaml
@@ -77,20 +77,24 @@ jobs:
- run: docker-compose logs
working-directory: lunatrace/bsl
- - run: |-
+ - name: Generate Files
+ run: |-
git status
(cd lunatrace/bsl/backend && yarn generate)
(cd lunatrace/bsl/frontend && yarn generate)
go generate ./... || true
git status
-
+
+ - name: Check Generated Files
+ run: |-
DIFF=`git diff -p -- . ':(exclude)lunatrace/schema.graphql'`
if [[ ! -z "$DIFF" ]]; then
echo "# Generated files don't match" >> $GITHUB_STEP_SUMMARY
echo "run yarn generate" >> $GITHUB_STEP_SUMMARY
echo '```diff' >> $GITHUB_STEP_SUMMARY
- echo "$DIFF" >> $GITHUB_STEP_SUMMARY
+ echo "$DIFF" | tee -a $GITHUB_STEP_SUMMARY
+ echo "::error Generated files do not match. See job summary for diff."
echo '```' >> $GITHUB_STEP_SUMMARY
exit 1
fi
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
index 156ae2aaa..ef66760be 100644
--- a/.idea/codeStyles/Project.xml
+++ b/.idea/codeStyles/Project.xml
@@ -1,29 +1,18 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -32,4 +21,4 @@
-
\ No newline at end of file
+
diff --git a/go.mod b/go.mod
index 464a4b633..7a5788051 100644
--- a/go.mod
+++ b/go.mod
@@ -1,6 +1,10 @@
module github.com/lunasec-io/lunasec
-go 1.17
+go 1.18
+
+// genqlient doesn't have support for omitempty yet, use a patched version
+// https://github.com/Khan/genqlient/issues/190
+replace github.com/Khan/genqlient => github.com/ajvpot/genqlient v0.4.1-0.20220601222338-9a6fa43de94e
require (
github.com/Joker/jade v1.1.3
@@ -21,7 +25,6 @@ require (
github.com/google/go-containerregistry v0.8.1-0.20220209165246-a44adc326839
github.com/google/licensecheck v0.3.1
github.com/google/uuid v1.3.0
- github.com/ipfans/fxlogger v0.1.0
github.com/jpillora/backoff v1.0.0
github.com/likexian/whois-parser v1.22.0
github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3
@@ -69,7 +72,7 @@ require (
github.com/ThalesIgnite/crypto11 v1.2.5 // indirect
github.com/acobaugh/osrelease v0.1.0 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
- github.com/agnivade/levenshtein v1.1.0 // indirect
+ github.com/agnivade/levenshtein v1.1.1 // indirect
github.com/alexflint/go-arg v1.4.2 // indirect
github.com/alexflint/go-scalar v1.0.0 // indirect
github.com/anchore/go-macholibre v0.0.0-20220308212642-53e6d0aaf6fb // indirect
@@ -234,7 +237,7 @@ require (
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
github.com/ulikunitz/xz v0.5.10 // indirect
github.com/vbatts/tar-split v0.11.2 // indirect
- github.com/vektah/gqlparser/v2 v2.3.1 // indirect
+ github.com/vektah/gqlparser/v2 v2.4.1 // indirect
github.com/vifraa/gopom v0.1.0 // indirect
github.com/wagoodman/go-partybus v0.0.0-20210627031916-db1f5573bbc5 // indirect
github.com/wagoodman/go-progress v0.0.0-20200807221327-51d465df1451 // indirect
diff --git a/go.sum b/go.sum
index 277e62398..669a3e823 100644
--- a/go.sum
+++ b/go.sum
@@ -109,7 +109,7 @@ cuelang.org/go v0.4.2/go.mod h1:P09/R4UfAEzLkV9DXxwlxQnIZbkaT4uIhiEgs6Vsz2Q=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
dmitri.shuralyov.com/gpu/mtl v0.0.0-20201218220906-28db891af037/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
filippo.io/edwards25519 v1.0.0-rc.1/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns=
-github.com/99designs/gqlgen v0.14.0/go.mod h1:S7z4boV+Nx4VvzMUpVrY/YuHjFX4n7rDyuTqvAkuoRE=
+github.com/99designs/gqlgen v0.17.2/go.mod h1:K5fzLKwtph+FFgh9j7nFbRUdBKvTcGnsta51fsMTn3o=
github.com/AdaLogics/go-fuzz-headers v0.0.0-20211102141018-f7be0cbad29c/go.mod h1:WpB7kf89yJUETZxQnP1kgYPNwlT2jjdDYUCoxVggM3g=
github.com/AndreasBriese/bbloom v0.0.0-20190306092124-e2d15f34fcf9/go.mod h1:bOvUY6CB00SOBii9/FifXqc0awNKxLFCL/+pkDPuyl8=
github.com/Antonboom/errname v0.1.5/go.mod h1:DugbBstvPFQbv/5uLcRRzfrNqKE9tVdVCqWCLp6Cifo=
@@ -203,8 +203,6 @@ github.com/Joker/hpp v1.0.0 h1:65+iuJYdRXv/XyN62C1uEmmOx3432rNG/rKlX6V7Kkc=
github.com/Joker/hpp v1.0.0/go.mod h1:8x5n+M1Hp5hC0g8okX3sR3vFQwynaX/UgSOM9MeBKzY=
github.com/Joker/jade v1.1.3 h1:Qbeh12Vq6BxURXT1qZBRHsDxeURB8ztcL6f3EXSGeHk=
github.com/Joker/jade v1.1.3/go.mod h1:T+2WLyt7VH6Lp0TRxQrUYEs64nRc83wkMQrfeIQKduM=
-github.com/Khan/genqlient v0.4.0 h1:4XImbzhBtaIFmwGPwEKdnx3TuGOX0GZ0hcW/idTzwts=
-github.com/Khan/genqlient v0.4.0/go.mod h1:te6aw+Ronw1j+PRVKmVPEFA36IsLG2wK0Uy6jPZ55To=
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/Masterminds/goutils v1.1.0/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU=
@@ -277,9 +275,12 @@ github.com/adrg/xdg v0.4.0 h1:RzRqFcjH4nE5C6oTAxhBtoE2IRyjBSa62SCbyPidvls=
github.com/adrg/xdg v0.4.0/go.mod h1:N6ag73EX4wyxeaoeHctc1mas01KZgsj5tYiAIwqJE/E=
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM=
-github.com/agnivade/levenshtein v1.1.0 h1:n6qGwyHG61v3ABce1rPVZklEYRT8NFpCMrpZdBUbYGM=
github.com/agnivade/levenshtein v1.1.0/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
+github.com/agnivade/levenshtein v1.1.1 h1:QY8M92nrzkmr798gCo3kmMyqXFzdQVpxLlGPRBij0P8=
+github.com/agnivade/levenshtein v1.1.1/go.mod h1:veldBMzWxcCG2ZvUTKD2kJNRdCk5hVbJomOvKkmgYbo=
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
+github.com/ajvpot/genqlient v0.4.1-0.20220601222338-9a6fa43de94e h1:BH26CidysvtVEIhkuPun1gMGuzQnk+w52q0vBAaCKBQ=
+github.com/ajvpot/genqlient v0.4.1-0.20220601222338-9a6fa43de94e/go.mod h1:zV+Ip2a2/xaPCdLm09qvNyNqKQGLXSqvfQs591IPiJE=
github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs=
github.com/alecthomas/jsonschema v0.0.0-20180308105923-f2c93856175a/go.mod h1:qpebaTNSsyUn5rPSJMsfqEtDw71TTggXM6stUDI16HA=
github.com/alecthomas/jsonschema v0.0.0-20210301060011-54c507b6f074/go.mod h1:/n6+1/DWPltRLWL/VKyUxg6tzsl5kHUCcraimt4vr60=
@@ -1314,11 +1315,9 @@ github.com/gordonklaus/ineffassign v0.0.0-20210225214923-2e10b2664254/go.mod h1:
github.com/goreleaser/goreleaser v0.134.0/go.mod h1:ZT6Y2rSYa6NxQzIsdfWWNWAlYGXGbreo66NmE+3X3WQ=
github.com/goreleaser/nfpm v1.2.1/go.mod h1:TtWrABZozuLOttX2uDlYyECfQX7x5XYkVxhjYcR6G9w=
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75/go.mod h1:g2644b03hfBX9Ov0ZBDgXXens4rxSxmqFBbhvKv2yVA=
-github.com/gorilla/context v0.0.0-20160226214623-1ea25387ff6f/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c=
github.com/gorilla/handlers v0.0.0-20150720190736-60c7bfde3e33/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ=
-github.com/gorilla/mux v1.6.1/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gorilla/mux v1.7.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs=
@@ -1494,8 +1493,6 @@ github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NH
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/influxdata/tdigest v0.0.0-20180711151920-a7d76c6f093a/go.mod h1:9GkyshztGufsdPQWjH+ifgnIr3xNUL5syI70g2dzU1o=
-github.com/ipfans/fxlogger v0.1.0 h1:eWyl5LIzQ8kzrBDsPGklmFoRgNNfz2h/MBpmkoyl7vU=
-github.com/ipfans/fxlogger v0.1.0/go.mod h1:w5ps0NJnl3sSkvv0PSGQEwMtDL8upORfThYbdQREBXo=
github.com/iris-contrib/blackfriday v2.0.0+incompatible/go.mod h1:UzZ2bDEoaSGPbkg6SAB4att1aAwTmVIx/5gCVqeyUdI=
github.com/iris-contrib/go.uuid v2.0.0+incompatible/go.mod h1:iz2lgM/1UnEf1kP0L/+fafWORmlnuysV2EMP8MW+qe0=
github.com/iris-contrib/jade v1.1.3/go.mod h1:H/geBymxJhShH5kecoiOCSssPX7QWYH7UaeZTSWddIk=
@@ -1614,6 +1611,7 @@ github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa
github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 h1:DowS9hvgyYSX4TO5NpyC606/Z4SxnNYbT+WX27or6Ck=
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
+github.com/kevinmbeaulieu/eq-go v1.0.0/go.mod h1:G3S8ajA56gKBZm4UB9AOyoOS37JO3roToPzKNM8dtdM=
github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
@@ -1696,6 +1694,7 @@ github.com/likexian/whois-parser v1.22.0/go.mod h1:2bJqtH4tNPanBvOp/3Kj3Sd12S9vx
github.com/logrusorgru/aurora v0.0.0-20181002194514-a7b3b318ed4e/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381 h1:bqDmpDG49ZRnB5PcgP0RXtQvnMSgIF14M7CBd2shtXs=
github.com/logrusorgru/aurora v0.0.0-20200102142835-e9ef32dff381/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
+github.com/logrusorgru/aurora/v3 v3.0.0/go.mod h1:vsR12bk5grlLvLXAYrBsb5Oc/N+LxAlxggSjiwMnCUc=
github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3 h1:wIONC+HMNRqmWBjuMxhatuSzHaljStc4gjDeKycxy0A=
github.com/lor00x/goldap v0.0.0-20180618054307-a546dffdd1a3/go.mod h1:37YR9jabpiIxsb8X9VCIx8qFOjTDIIrIHHODa8C4gz0=
github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0/go.mod h1:zJYVVT2jmtg6P3p1VtQj7WsuWi/y4VnjVBn7F8KPB3I=
@@ -1730,7 +1729,7 @@ github.com/matoous/godox v0.0.0-20210227103229-6504466cf951/go.mod h1:1BELzlh859
github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
github.com/matryer/is v1.4.0 h1:sosSmIWwkYITGrxZ25ULNDeKiMNzFSr4V/eqBQP0PeE=
github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU=
-github.com/matryer/moq v0.0.0-20200106131100-75d0ddfc0007/go.mod h1:9ELz6aaclSIGnZBoaSLZ3NAl1VTufbOrXBPvtcy6WiQ=
+github.com/matryer/moq v0.2.3/go.mod h1:9RtPYjTnH1bSBIkpvtHkFN7nbWAnO7oRpdJkEIn6UtE=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
@@ -1821,8 +1820,8 @@ github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4
github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE=
github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY=
github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
-github.com/mitchellh/mapstructure v0.0.0-20180203102830-a4e142e9c047/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
+github.com/mitchellh/mapstructure v1.2.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo=
@@ -2116,7 +2115,6 @@ github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE
github.com/rogpeppe/go-internal v1.6.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
github.com/rogpeppe/go-internal v1.8.0 h1:FCbCCtXNOY3UtUuHUYaghJg4y7Fd14rXifAYUAtL9R8=
github.com/rogpeppe/go-internal v1.8.0/go.mod h1:WmiCO8CzOY8rg0OYDC4/i/2WRWAB6poM+XZ2dLUbcbE=
-github.com/rs/cors v1.6.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU=
github.com/rs/cors v1.8.0/go.mod h1:EBwu+T5AvHOcXwvZIkQFjUN6s8Czyqw12GL/Y0tUyRM=
github.com/rs/cors v1.8.2 h1:KCooALfAYGs415Cwu5ABvv9n9509fSiG5SQJn/AQo4U=
@@ -2125,7 +2123,6 @@ github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/xid v1.3.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc=
-github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo=
github.com/rs/zerolog v1.26.1 h1:/ihwxqH+4z8UxyI70wM1z9yCvkWcfz/a3mj48k/Zngc=
github.com/rs/zerolog v1.26.1/go.mod h1:/wSSJWX7lVrsOwlbyTRSOJvqRlc+WjWlfes+CiJ+tmc=
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
@@ -2176,9 +2173,7 @@ github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9Nz
github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o=
github.com/shurcooL/go v0.0.0-20180423040247-9e1955d9fb6e/go.mod h1:TDJrrUr11Vxrven61rcy3hJMUqaf/CLWYhHNPmT14Lk=
github.com/shurcooL/go-goon v0.0.0-20170922171312-37c2f522c041/go.mod h1:N5mDOmsrJOB+vfqUK+7DmDyjhSLIIBnXo9lvZJj3MWQ=
-github.com/shurcooL/httpfs v0.0.0-20171119174359-809beceb2371/go.mod h1:ZY1cvUeJuFPAdZ/B6v7RHavJWZn2YPVFQ1OSXhCGOkg=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
-github.com/shurcooL/vfsgen v0.0.0-20180121065927-ffb13db8def0/go.mod h1:TrYk7fJVaAttu97ZZKrO9UbRa8izdowaMIZcxYMbVaw=
github.com/sigstore/cosign v1.7.2 h1:kFC0jmPUDfoMOhuL1hHGi+ZdJkeF0qpPYZWmMqKMV+4=
github.com/sigstore/cosign v1.7.2/go.mod h1:v7UKVCOvw9HD5WlApAotoVfjwUzddwg6InJTTshkaOg=
github.com/sigstore/fulcio v0.1.2-0.20220114150912-86a2036f9bc7/go.mod h1:ANQivY/lfOp9hN92S813LEthkm/kit96hzeIF3SNoZA=
@@ -2282,7 +2277,6 @@ github.com/stretchr/objx v0.3.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoH
github.com/stretchr/testify v0.0.0-20170130113145-4d4bfba8f1d1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v0.0.0-20180303142811-b89eecf5ca5d/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
-github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.3.1-0.20190311161405-34c6fa2dc709/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
@@ -2379,12 +2373,11 @@ github.com/valyala/tcplisten v0.0.0-20161114210144-ceec8f93295a/go.mod h1:v3UYOV
github.com/valyala/tcplisten v1.0.0/go.mod h1:T0xQ8SeCZGxckz9qRXTfG43PvQ/mcWh7FwZEA7Ioqkc=
github.com/vbatts/tar-split v0.11.2 h1:Via6XqJr0hceW4wff3QRzD5gAk/tatMw/4ZA7cTlIME=
github.com/vbatts/tar-split v0.11.2/go.mod h1:vV3ZuO2yWSVsz+pfFzDG/upWH1JhjOiEaWq6kXyQ3VI=
-github.com/vektah/dataloaden v0.2.1-0.20190515034641-a19b9a6e7c9e/go.mod h1:/HUdMve7rvxZma+2ZELQeNh88+003LL7Pf/CZ089j8U=
github.com/vektah/gqlparser v1.1.2 h1:ZsyLGn7/7jDNI+y4SEhI4yAxRChlv15pUHMjijT+e68=
github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw=
-github.com/vektah/gqlparser/v2 v2.2.0/go.mod h1:i3mQIGIrbK2PD1RrCeMTlVbkF2FJ6WkU1KJlJlC+3F4=
-github.com/vektah/gqlparser/v2 v2.3.1 h1:blIC0fCxGIr9pVjsc+BVI8XjYUtc2nCFRfnmP7FuFMk=
-github.com/vektah/gqlparser/v2 v2.3.1/go.mod h1:i3mQIGIrbK2PD1RrCeMTlVbkF2FJ6WkU1KJlJlC+3F4=
+github.com/vektah/gqlparser/v2 v2.4.0/go.mod h1:flJWIR04IMQPGz+BXLrORkrARBxv/rtyIAFvd/MceW0=
+github.com/vektah/gqlparser/v2 v2.4.1 h1:QOyEn8DAPMUMARGMeshKDkDgNmVoEaEGiDB0uWxcSlQ=
+github.com/vektah/gqlparser/v2 v2.4.1/go.mod h1:flJWIR04IMQPGz+BXLrORkrARBxv/rtyIAFvd/MceW0=
github.com/vifraa/gopom v0.1.0 h1:v897eVxf6lflkEXzPmKbo4YhX2oS/LGjz7cqjWnSmCU=
github.com/vifraa/gopom v0.1.0/go.mod h1:oPa1dcrGrtlO37WPDBm5SqHAT+wTgF8An1Q71Z6Vv4o=
github.com/viki-org/dnscache v0.0.0-20130720023526-c70c1f23c5d8/go.mod h1:dniwbG03GafCjFohMDmz6Zc6oCuiqgH6tGNyXTkHzXE=
@@ -2566,10 +2559,8 @@ go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
go.uber.org/automaxprocs v1.4.0/go.mod h1:/mTEdr7LvHhs0v7mjdxDreTz1OG5zdZGqgOnhWiR/+Q=
go.uber.org/config v1.4.0 h1:upnMPpMm6WlbZtXoasNkK4f0FhxwS+W4Iqz5oNznehQ=
go.uber.org/config v1.4.0/go.mod h1:aCyrMHmUAc/s2h9sv1koP84M9ZF/4K+g2oleyESO/Ig=
-go.uber.org/dig v1.12.0/go.mod h1:X34SnWGr8Fyla9zQNO2GSO2D+TIuqB14OS8JhYocIyw=
go.uber.org/dig v1.14.0 h1:VmGvIH45/aapXPQkaOrK5u4B5B7jxZB98HM/utx0eME=
go.uber.org/dig v1.14.0/go.mod h1:jHAn/z1Ld1luVVyGKOAIFYz/uBFqKjjEEdIqVAqfQ2o=
-go.uber.org/fx v1.14.0/go.mod h1:rwjmT7CaZIiLgflUER9FCWCSkDGiRv/VDBxg32Inoy8=
go.uber.org/fx v1.17.1 h1:S42dZ6Pok8hQ3jxKwo6ZMYcCgHQA/wAS/gnpRa1Pksg=
go.uber.org/fx v1.17.1/go.mod h1:yO7KN5rhlARljyo4LR047AjaV6J+KFzd/Z7rnTbEn0A=
go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A=
@@ -3057,7 +3048,6 @@ golang.org/x/tools v0.0.0-20190422233926-fe54fb35175b/go.mod h1:LCzVGOaR6xXOjkQ3
golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
-golang.org/x/tools v0.0.0-20190515012406-7d7faa4812bd/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc=
@@ -3077,7 +3067,6 @@ golang.org/x/tools v0.0.0-20191010075000-0337d82405ff/go.mod h1:b+2E5dAYhXwXZwtn
golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
-golang.org/x/tools v0.0.0-20191030062658-86caa796c7ab/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191104232314-dc038396d1f0/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
@@ -3129,6 +3118,7 @@ golang.org/x/tools v0.0.0-20200724022722-7017fd6b1305/go.mod h1:njjCfa9FT2d7l9Bc
golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20200812195022-5ae4c3c160a0/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
+golang.org/x/tools v0.0.0-20200815165600-90abf76919f3/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20200820010801-b793a1359eac/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA=
golang.org/x/tools v0.0.0-20200831203904-5a2aa26beb65/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE=
@@ -3713,4 +3703,3 @@ sigs.k8s.io/yaml v1.2.0/go.mod h1:yfXDCHCao9+ENCvLSE62v9VSji2MKu5jeNfTrofGhJc=
sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
-sourcegraph.com/sourcegraph/appdash-data v0.0.0-20151005221446-73f23eafcf67/go.mod h1:L5q+DGLGOQFpo1snNEkLOJT2d1YTW66rWNzatr3He1k=
diff --git a/lunatrace/bsl/backend/src/hasura-api/generated.ts b/lunatrace/bsl/backend/src/hasura-api/generated.ts
index c2b02e5c4..1c94583d1 100644
--- a/lunatrace/bsl/backend/src/hasura-api/generated.ts
+++ b/lunatrace/bsl/backend/src/hasura-api/generated.ts
@@ -18,8 +18,10 @@ export type Scalars = {
date: any;
fix_state_enum: any;
jsonb: any;
+ license_source: any;
numeric: any;
organization_user_role: any;
+ package_manager: any;
severity_enum: any;
timestamp: any;
timestamptz: any;
@@ -928,9 +930,11 @@ export type Fix_State_Enum_Comparison_Exp = {
export type Github_Repositories = {
__typename?: 'github_repositories';
authenticated_clone_url?: Maybe;
+ default_branch?: Maybe;
git_url: Scalars['String'];
github_id?: Maybe;
github_node_id?: Maybe;
+ id: Scalars['uuid'];
/** An object relationship */
project: Projects;
project_id: Scalars['uuid'];
@@ -980,9 +984,11 @@ export type Github_Repositories_Bool_Exp = {
_and?: InputMaybe>;
_not?: InputMaybe;
_or?: InputMaybe>;
+ default_branch?: InputMaybe;
git_url?: InputMaybe;
github_id?: InputMaybe;
github_node_id?: InputMaybe;
+ id?: InputMaybe;
project?: InputMaybe;
project_id?: InputMaybe;
traits?: InputMaybe;
@@ -1031,17 +1037,21 @@ export type Github_Repositories_Insert_Input = {
/** order by max() on columns of table "github_repositories" */
export type Github_Repositories_Max_Order_By = {
+ default_branch?: InputMaybe;
git_url?: InputMaybe;
github_id?: InputMaybe;
github_node_id?: InputMaybe;
+ id?: InputMaybe;
project_id?: InputMaybe;
};
/** order by min() on columns of table "github_repositories" */
export type Github_Repositories_Min_Order_By = {
+ default_branch?: InputMaybe;
git_url?: InputMaybe;
github_id?: InputMaybe;
github_node_id?: InputMaybe;
+ id?: InputMaybe;
project_id?: InputMaybe;
};
@@ -1070,14 +1080,21 @@ export type Github_Repositories_On_Conflict = {
/** Ordering options when selecting data from "github_repositories". */
export type Github_Repositories_Order_By = {
+ default_branch?: InputMaybe;
git_url?: InputMaybe;
github_id?: InputMaybe;
github_node_id?: InputMaybe;
+ id?: InputMaybe;
project?: InputMaybe;
project_id?: InputMaybe;
traits?: InputMaybe;
};
+/** primary key columns input for table: github_repositories */
+export type Github_Repositories_Pk_Columns_Input = {
+ id: Scalars['uuid'];
+};
+
/** prepend existing jsonb value of filtered columns with new jsonb value */
export type Github_Repositories_Prepend_Input = {
traits?: InputMaybe;
@@ -1085,6 +1102,8 @@ export type Github_Repositories_Prepend_Input = {
/** select columns of table "github_repositories" */
export enum Github_Repositories_Select_Column {
+ /** column name */
+ DefaultBranch = 'default_branch',
/** column name */
GitUrl = 'git_url',
/** column name */
@@ -1092,6 +1111,8 @@ export enum Github_Repositories_Select_Column {
/** column name */
GithubNodeId = 'github_node_id',
/** column name */
+ Id = 'id',
+ /** column name */
ProjectId = 'project_id',
/** column name */
Traits = 'traits'
@@ -1859,6 +1880,19 @@ export type Jsonb_Comparison_Exp = {
_nin?: InputMaybe>;
};
+/** Boolean expression to compare columns of type "license_source". All fields are combined with logical 'AND'. */
+export type License_Source_Comparison_Exp = {
+ _eq?: InputMaybe;
+ _gt?: InputMaybe;
+ _gte?: InputMaybe;
+ _in?: InputMaybe>;
+ _is_null?: InputMaybe;
+ _lt?: InputMaybe;
+ _lte?: InputMaybe;
+ _neq?: InputMaybe;
+ _nin?: InputMaybe>;
+};
+
/** columns and relationships of "manifests" */
export type Manifests = {
__typename?: 'manifests';
@@ -2100,6 +2134,34 @@ export type Mutation_Root = {
insert_organizations?: Maybe;
/** insert a single row into the table: "organizations" */
insert_organizations_one?: Maybe;
+ /** insert data into the table: "package.package" */
+ insert_package?: Maybe;
+ /** insert data into the table: "package.license" */
+ insert_package_license?: Maybe;
+ /** insert a single row into the table: "package.license" */
+ insert_package_license_one?: Maybe;
+ /** insert data into the table: "package.maintainer" */
+ insert_package_maintainer?: Maybe;
+ /** insert a single row into the table: "package.maintainer" */
+ insert_package_maintainer_one?: Maybe;
+ /** insert a single row into the table: "package.package" */
+ insert_package_one?: Maybe;
+ /** insert data into the table: "package.package_maintainer" */
+ insert_package_package_maintainer?: Maybe;
+ /** insert a single row into the table: "package.package_maintainer" */
+ insert_package_package_maintainer_one?: Maybe;
+ /** insert data into the table: "package.release" */
+ insert_package_release?: Maybe;
+ /** insert data into the table: "package.release_dependency" */
+ insert_package_release_dependency?: Maybe;
+ /** insert a single row into the table: "package.release_dependency" */
+ insert_package_release_dependency_one?: Maybe;
+ /** insert data into the table: "package.release_license" */
+ insert_package_release_license?: Maybe;
+ /** insert a single row into the table: "package.release_license" */
+ insert_package_release_license_one?: Maybe;
+ /** insert a single row into the table: "package.release" */
+ insert_package_release_one?: Maybe;
/** insert data into the table: "package_versions" */
insert_package_versions?: Maybe;
/** insert a single row into the table: "package_versions" */
@@ -2140,6 +2202,8 @@ export type Mutation_Root = {
update_findings_by_pk?: Maybe;
/** update data of the table: "github_repositories" */
update_github_repositories?: Maybe;
+ /** update single row of the table: "github_repositories" */
+ update_github_repositories_by_pk?: Maybe;
/** update data of the table: "guide_related_guides" */
update_guide_related_guides?: Maybe;
/** update single row of the table: "guide_related_guides" */
@@ -2162,6 +2226,32 @@ export type Mutation_Root = {
update_organizations?: Maybe;
/** update single row of the table: "organizations" */
update_organizations_by_pk?: Maybe;
+ /** update data of the table: "package.package" */
+ update_package?: Maybe;
+ /** update single row of the table: "package.package" */
+ update_package_by_pk?: Maybe;
+ /** update data of the table: "package.license" */
+ update_package_license?: Maybe;
+ /** update single row of the table: "package.license" */
+ update_package_license_by_pk?: Maybe;
+ /** update data of the table: "package.maintainer" */
+ update_package_maintainer?: Maybe;
+ /** update single row of the table: "package.maintainer" */
+ update_package_maintainer_by_pk?: Maybe;
+ /** update data of the table: "package.package_maintainer" */
+ update_package_package_maintainer?: Maybe;
+ /** update data of the table: "package.release" */
+ update_package_release?: Maybe;
+ /** update single row of the table: "package.release" */
+ update_package_release_by_pk?: Maybe;
+ /** update data of the table: "package.release_dependency" */
+ update_package_release_dependency?: Maybe;
+ /** update single row of the table: "package.release_dependency" */
+ update_package_release_dependency_by_pk?: Maybe;
+ /** update data of the table: "package.release_license" */
+ update_package_release_license?: Maybe;
+ /** update single row of the table: "package.release_license" */
+ update_package_release_license_by_pk?: Maybe;
/** update data of the table: "package_versions" */
update_package_versions?: Maybe;
/** update single row of the table: "package_versions" */
@@ -2348,6 +2438,104 @@ export type Mutation_RootInsert_Organizations_OneArgs = {
};
+/** mutation root */
+export type Mutation_RootInsert_PackageArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_LicenseArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_License_OneArgs = {
+ object: Package_License_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_MaintainerArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Maintainer_OneArgs = {
+ object: Package_Maintainer_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_OneArgs = {
+ object: Package_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Package_MaintainerArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Package_Maintainer_OneArgs = {
+ object: Package_Package_Maintainer_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_ReleaseArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Release_DependencyArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Release_Dependency_OneArgs = {
+ object: Package_Release_Dependency_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Release_LicenseArgs = {
+ objects: Array;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Release_License_OneArgs = {
+ object: Package_Release_License_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
+/** mutation root */
+export type Mutation_RootInsert_Package_Release_OneArgs = {
+ object: Package_Release_Insert_Input;
+ on_conflict?: InputMaybe;
+};
+
+
/** mutation root */
export type Mutation_RootInsert_Package_VersionsArgs = {
objects: Array;
@@ -2495,6 +2683,19 @@ export type Mutation_RootUpdate_Github_RepositoriesArgs = {
};
+/** mutation root */
+export type Mutation_RootUpdate_Github_Repositories_By_PkArgs = {
+ _append?: InputMaybe;
+ _delete_at_path?: InputMaybe;
+ _delete_elem?: InputMaybe;
+ _delete_key?: InputMaybe;
+ _inc?: InputMaybe;
+ _prepend?: InputMaybe;
+ _set?: InputMaybe;
+ pk_columns: Github_Repositories_Pk_Columns_Input;
+};
+
+
/** mutation root */
export type Mutation_RootUpdate_Guide_Related_GuidesArgs = {
_set?: InputMaybe;
@@ -2580,6 +2781,117 @@ export type Mutation_RootUpdate_Organizations_By_PkArgs = {
};
+/** mutation root */
+export type Mutation_RootUpdate_PackageArgs = {
+ _set?: InputMaybe;
+ where: Package_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_By_PkArgs = {
+ _set?: InputMaybe;
+ pk_columns: Package_Pk_Columns_Input;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_LicenseArgs = {
+ _set?: InputMaybe;
+ where: Package_License_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_License_By_PkArgs = {
+ _set?: InputMaybe;
+ pk_columns: Package_License_Pk_Columns_Input;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_MaintainerArgs = {
+ _set?: InputMaybe;
+ where: Package_Maintainer_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Maintainer_By_PkArgs = {
+ _set?: InputMaybe;
+ pk_columns: Package_Maintainer_Pk_Columns_Input;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Package_MaintainerArgs = {
+ _set?: InputMaybe;
+ where: Package_Package_Maintainer_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_ReleaseArgs = {
+ _append?: InputMaybe;
+ _delete_at_path?: InputMaybe;
+ _delete_elem?: InputMaybe;
+ _delete_key?: InputMaybe;
+ _prepend?: InputMaybe;
+ _set?: InputMaybe;
+ where: Package_Release_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Release_By_PkArgs = {
+ _append?: InputMaybe;
+ _delete_at_path?: InputMaybe;
+ _delete_elem?: InputMaybe;
+ _delete_key?: InputMaybe;
+ _prepend?: InputMaybe;
+ _set?: InputMaybe;
+ pk_columns: Package_Release_Pk_Columns_Input;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Release_DependencyArgs = {
+ _set?: InputMaybe;
+ where: Package_Release_Dependency_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Release_Dependency_By_PkArgs = {
+ _set?: InputMaybe;
+ pk_columns: Package_Release_Dependency_Pk_Columns_Input;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Release_LicenseArgs = {
+ _append?: InputMaybe;
+ _delete_at_path?: InputMaybe;
+ _delete_elem?: InputMaybe;
+ _delete_key?: InputMaybe;
+ _prepend?: InputMaybe;
+ _set?: InputMaybe;
+ where: Package_Release_License_Bool_Exp;
+};
+
+
+/** mutation root */
+export type Mutation_RootUpdate_Package_Release_License_By_PkArgs = {
+ _append?: InputMaybe;
+ _delete_at_path?: InputMaybe;
+ _delete_elem?: InputMaybe;
+ _delete_key?: InputMaybe;
+ _prepend?: InputMaybe;
+ _set?: InputMaybe;
+ pk_columns: Package_Release_License_Pk_Columns_Input;
+};
+
+
/** mutation root */
export type Mutation_RootUpdate_Package_VersionsArgs = {
_set?: InputMaybe;
@@ -3193,134 +3505,1280 @@ export type Organizations_Variance_Fields = {
installation_id?: Maybe;
};
-/** columns and relationships of "package_versions" */
-export type Package_Versions = {
- __typename?: 'package_versions';
- cpes: Scalars['_text'];
- /** An array relationship */
- findings: Array;
- fix_state: Scalars['String'];
- fixed_in_versions: Scalars['_text'];
+/** columns and relationships of "package.package" */
+export type Package = {
+ __typename?: 'package';
+ custom_registry: Scalars['String'];
+ description?: Maybe;
+ fetched_time?: Maybe;
id: Scalars['uuid'];
- pkg_slug: Scalars['String'];
- slug: Scalars['String'];
- version_constraint: Scalars['String'];
- version_format: Scalars['String'];
- /** An object relationship */
- vulnerability_package: Vulnerability_Packages;
+ name: Scalars['String'];
+ /** An array relationship */
+ package_maintainers: Array;
+ package_manager: Scalars['package_manager'];
+ /** An array relationship */
+ releases: Array;
};
-/** columns and relationships of "package_versions" */
-export type Package_VersionsFindingsArgs = {
- distinct_on?: InputMaybe>;
+/** columns and relationships of "package.package" */
+export type PackagePackage_MaintainersArgs = {
+ distinct_on?: InputMaybe>;
limit?: InputMaybe;
offset?: InputMaybe;
- order_by?: InputMaybe>;
- where?: InputMaybe;
+ order_by?: InputMaybe>;
+ where?: InputMaybe;
};
-/** order by aggregate values of table "package_versions" */
-export type Package_Versions_Aggregate_Order_By = {
- count?: InputMaybe;
- max?: InputMaybe;
- min?: InputMaybe;
-};
-/** input type for inserting array relation for remote table "package_versions" */
-export type Package_Versions_Arr_Rel_Insert_Input = {
- data: Array;
- /** upsert condition */
- on_conflict?: InputMaybe;
+/** columns and relationships of "package.package" */
+export type PackageReleasesArgs = {
+ distinct_on?: InputMaybe>;
+ limit?: InputMaybe;
+ offset?: InputMaybe;
+ order_by?: InputMaybe>;
+ where?: InputMaybe;
};
-/** Boolean expression to filter rows from the table "package_versions". All fields are combined with a logical 'AND'. */
-export type Package_Versions_Bool_Exp = {
- _and?: InputMaybe>;
- _not?: InputMaybe;
- _or?: InputMaybe>;
- cpes?: InputMaybe<_Text_Comparison_Exp>;
- findings?: InputMaybe;
- fix_state?: InputMaybe;
- fixed_in_versions?: InputMaybe<_Text_Comparison_Exp>;
+/** Boolean expression to filter rows from the table "package.package". All fields are combined with a logical 'AND'. */
+export type Package_Bool_Exp = {
+ _and?: InputMaybe>;
+ _not?: InputMaybe;
+ _or?: InputMaybe>;
+ custom_registry?: InputMaybe;
+ description?: InputMaybe;
+ fetched_time?: InputMaybe;
id?: InputMaybe;
- pkg_slug?: InputMaybe;
- slug?: InputMaybe;
- version_constraint?: InputMaybe;
- version_format?: InputMaybe;
- vulnerability_package?: InputMaybe;
+ name?: InputMaybe;
+ package_maintainers?: InputMaybe;
+ package_manager?: InputMaybe;
+ releases?: InputMaybe;
};
-/** unique or primary key constraints on table "package_versions" */
-export enum Package_Versions_Constraint {
+/** unique or primary key constraints on table "package.package" */
+export enum Package_Constraint {
/** unique or primary key constraint */
- PackageVersionsPkey = 'package_versions_pkey',
+ PackagePackageManagerCustomRegistryNameIdx = 'package_package_manager_custom_registry_name_idx',
/** unique or primary key constraint */
- PackageVersionsSlugKey = 'package_versions_slug_key'
+ PackagePkey = 'package_pkey'
}
-/** input type for inserting data into table "package_versions" */
-export type Package_Versions_Insert_Input = {
- findings?: InputMaybe;
- slug?: InputMaybe;
- vulnerability_package?: InputMaybe;
+/** input type for inserting data into table "package.package" */
+export type Package_Insert_Input = {
+ custom_registry?: InputMaybe;
+ description?: InputMaybe;
+ fetched_time?: InputMaybe;
+ id?: InputMaybe;
+ name?: InputMaybe;
+ package_maintainers?: InputMaybe;
+ package_manager?: InputMaybe;
+ releases?: InputMaybe;
};
-/** order by max() on columns of table "package_versions" */
-export type Package_Versions_Max_Order_By = {
- fix_state?: InputMaybe;
- id?: InputMaybe;
- pkg_slug?: InputMaybe;
- slug?: InputMaybe;
- version_constraint?: InputMaybe;
- version_format?: InputMaybe;
+/** columns and relationships of "package.license" */
+export type Package_License = {
+ __typename?: 'package_license';
+ id: Scalars['uuid'];
+ name: Scalars['String'];
+ /** An array relationship */
+ release_licenses: Array;
};
-/** order by min() on columns of table "package_versions" */
-export type Package_Versions_Min_Order_By = {
- fix_state?: InputMaybe;
- id?: InputMaybe;
- pkg_slug?: InputMaybe;
- slug?: InputMaybe;
- version_constraint?: InputMaybe;
- version_format?: InputMaybe;
+
+/** columns and relationships of "package.license" */
+export type Package_LicenseRelease_LicensesArgs = {
+ distinct_on?: InputMaybe>;
+ limit?: InputMaybe;
+ offset?: InputMaybe;
+ order_by?: InputMaybe>;
+ where?: InputMaybe;
};
-/** response of any mutation on the table "package_versions" */
-export type Package_Versions_Mutation_Response = {
- __typename?: 'package_versions_mutation_response';
+/** Boolean expression to filter rows from the table "package.license". All fields are combined with a logical 'AND'. */
+export type Package_License_Bool_Exp = {
+ _and?: InputMaybe>;
+ _not?: InputMaybe;
+ _or?: InputMaybe>;
+ id?: InputMaybe;
+ name?: InputMaybe;
+ release_licenses?: InputMaybe;
+};
+
+/** unique or primary key constraints on table "package.license" */
+export enum Package_License_Constraint {
+ /** unique or primary key constraint */
+ LicenseNameIdx = 'license_name_idx',
+ /** unique or primary key constraint */
+ LicensePkey = 'license_pkey'
+}
+
+/** input type for inserting data into table "package.license" */
+export type Package_License_Insert_Input = {
+ id?: InputMaybe;
+ name?: InputMaybe;
+ release_licenses?: InputMaybe;
+};
+
+/** response of any mutation on the table "package.license" */
+export type Package_License_Mutation_Response = {
+ __typename?: 'package_license_mutation_response';
/** number of rows affected by the mutation */
affected_rows: Scalars['Int'];
/** data from the rows affected by the mutation */
- returning: Array;
+ returning: Array;
};
-/** input type for inserting object relation for remote table "package_versions" */
-export type Package_Versions_Obj_Rel_Insert_Input = {
- data: Package_Versions_Insert_Input;
+/** input type for inserting object relation for remote table "package.license" */
+export type Package_License_Obj_Rel_Insert_Input = {
+ data: Package_License_Insert_Input;
/** upsert condition */
- on_conflict?: InputMaybe;
+ on_conflict?: InputMaybe;
};
-/** on_conflict condition type for table "package_versions" */
-export type Package_Versions_On_Conflict = {
- constraint: Package_Versions_Constraint;
- update_columns?: Array;
- where?: InputMaybe;
+/** on_conflict condition type for table "package.license" */
+export type Package_License_On_Conflict = {
+ constraint: Package_License_Constraint;
+ update_columns?: Array;
+ where?: InputMaybe;
};
-/** Ordering options when selecting data from "package_versions". */
-export type Package_Versions_Order_By = {
- cpes?: InputMaybe;
- findings_aggregate?: InputMaybe;
- fix_state?: InputMaybe;
- fixed_in_versions?: InputMaybe;
+/** Ordering options when selecting data from "package.license". */
+export type Package_License_Order_By = {
id?: InputMaybe;
- pkg_slug?: InputMaybe;
- slug?: InputMaybe;
- version_constraint?: InputMaybe;
- version_format?: InputMaybe;
- vulnerability_package?: InputMaybe;
+ name?: InputMaybe;
+ release_licenses_aggregate?: InputMaybe;
+};
+
+/** primary key columns input for table: package_license */
+export type Package_License_Pk_Columns_Input = {
+ id: Scalars['uuid'];
+};
+
+/** select columns of table "package.license" */
+export enum Package_License_Select_Column {
+ /** column name */
+ Id = 'id',
+ /** column name */
+ Name = 'name'
+}
+
+/** input type for updating data in table "package.license" */
+export type Package_License_Set_Input = {
+ id?: InputMaybe;
+ name?: InputMaybe;
+};
+
+/** update columns of table "package.license" */
+export enum Package_License_Update_Column {
+ /** column name */
+ Id = 'id',
+ /** column name */
+ Name = 'name'
+}
+
+/** columns and relationships of "package.maintainer" */
+export type Package_Maintainer = {
+ __typename?: 'package_maintainer';
+ email: Scalars['String'];
+ id: Scalars['uuid'];
+ name?: Maybe;
+ /** An array relationship */
+ package_maintainers: Array;
+ package_manager?: Maybe