From 6cd0614d1a1af604a901b62fdb3dbc6d8bf0673c Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 22 Apr 2024 16:08:58 -0300 Subject: [PATCH 1/3] Forward graphql requests to Netlify function (#2700) * Forward graphql requests to netlify function * Trigger Build * update lockfile * Avoid having to introspect schema for every request * Allow anonymous read only queries * Allow anonymous read only queries * Trigger Build --- site/gatsby-site/package-lock.json | 538 ++- site/gatsby-site/package.json | 5 +- site/gatsby-site/src/api/graphql.js | 68 +- .../userContext/UserContextProvider.js | 3 +- site/gatsby-site/src/graphql/schema.js | 4282 +++++++++++++++++ 5 files changed, 4683 insertions(+), 213 deletions(-) create mode 100644 site/gatsby-site/src/graphql/schema.js diff --git a/site/gatsby-site/package-lock.json b/site/gatsby-site/package-lock.json index 860e61d0ec..464b72e6ea 100644 --- a/site/gatsby-site/package-lock.json +++ b/site/gatsby-site/package-lock.json @@ -21,8 +21,9 @@ "@fortawesome/react-fontawesome": "^0.2.0", "@google-cloud/translate": "^8.0.2", "@googlemaps/google-maps-services-js": "^3.3.3", - "@graphql-tools/schema": "^8.3.3", - "@graphql-tools/wrap": "^8.4.6", + "@graphql-tools/executor-http": "^1.0.9", + "@graphql-tools/schema": "^10.0.3", + "@graphql-tools/wrap": "^10.0.5", "@mdx-js/react": "^2.3.0", "@postlight/parser": "^2.2.3", "@prismicio/react": "^2.7.1", @@ -5426,14 +5427,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" }, - "node_modules/@graphql-codegen/core/node_modules/value-or-promise": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", - "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", - "engines": { - "node": ">=12" - } - }, "node_modules/@graphql-codegen/plugin-helpers": { "version": "2.7.2", "resolved": "https://registry.npmjs.org/@graphql-codegen/plugin-helpers/-/plugin-helpers-2.7.2.tgz", @@ -5719,14 +5712,34 @@ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" }, "node_modules/@graphql-tools/batch-execute": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-8.5.1.tgz", - "integrity": "sha512-hRVDduX0UDEneVyEWtc2nu5H2PxpfSfM/riUlgZvo/a/nG475uyehxR5cFGvTEPEQUKY3vGIlqvtRigzqTfCew==", + "version": "9.0.4", + "resolved": "https://registry.npmjs.org/@graphql-tools/batch-execute/-/batch-execute-9.0.4.tgz", + "integrity": "sha512-kkebDLXgDrep5Y0gK1RN3DMUlLqNhg60OAz0lTCqrYeja6DshxLtLkj+zV4mVbBA4mQOEoBmw6g1LZs3dA84/w==", "dependencies": { - "@graphql-tools/utils": "8.9.0", - "dataloader": "2.1.0", + "@graphql-tools/utils": "^10.0.13", + "dataloader": "^2.2.2", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "value-or-promise": "^1.0.12" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/batch-execute/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" @@ -5760,25 +5773,112 @@ } }, "node_modules/@graphql-tools/delegate": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-8.8.1.tgz", - "integrity": "sha512-NDcg3GEQmdEHlnF7QS8b4lM1PSF+DKeFcIlLEfZFBvVq84791UtJcDj8734sIHLukmyuAxXMfA1qLd2l4lZqzA==", + "version": "10.0.4", + "resolved": "https://registry.npmjs.org/@graphql-tools/delegate/-/delegate-10.0.4.tgz", + "integrity": "sha512-WswZRbQZMh/ebhc8zSomK9DIh6Pd5KbuiMsyiKkKz37TWTrlCOe+4C/fyrBFez30ksq6oFyCeSKMwfrCbeGo0Q==", + "dependencies": { + "@graphql-tools/batch-execute": "^9.0.4", + "@graphql-tools/executor": "^1.2.1", + "@graphql-tools/schema": "^10.0.3", + "@graphql-tools/utils": "^10.0.13", + "dataloader": "^2.2.2", + "tslib": "^2.5.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/delegate/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", "dependencies": { - "@graphql-tools/batch-execute": "8.5.1", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", - "dataloader": "2.1.0", - "tslib": "~2.4.0", - "value-or-promise": "1.0.11" + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/delegate/node_modules/tslib": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.1.tgz", - "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==" + "node_modules/@graphql-tools/executor": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor/-/executor-1.2.2.tgz", + "integrity": "sha512-wZkyjndwlzi01HTU3PDveoucKA8qVO0hdKmJhjIGK/vRN/A4w5rDdeqRGcyXVss0clCAy3R6jpixCVu5pWs2Qg==", + "dependencies": { + "@graphql-tools/utils": "^10.1.1", + "@graphql-typed-document-node/core": "3.2.0", + "@repeaterjs/repeater": "^3.0.4", + "tslib": "^2.4.0", + "value-or-promise": "^1.0.12" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/executor-http": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@graphql-tools/executor-http/-/executor-http-1.0.9.tgz", + "integrity": "sha512-+NXaZd2MWbbrWHqU4EhXcrDbogeiCDmEbrAN+rMn4Nu2okDjn2MTFDbTIab87oEubQCH4Te1wDkWPKrzXup7+Q==", + "dependencies": { + "@graphql-tools/utils": "^10.0.13", + "@repeaterjs/repeater": "^3.0.4", + "@whatwg-node/fetch": "^0.9.0", + "extract-files": "^11.0.0", + "meros": "^1.2.1", + "tslib": "^2.4.0", + "value-or-promise": "^1.0.12" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/executor-http/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/executor/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } }, "node_modules/@graphql-tools/graphql-tag-pluck": { "version": "7.5.2", @@ -5860,22 +5960,34 @@ "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/load/node_modules/value-or-promise": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", - "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", + "node_modules/@graphql-tools/merge": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-9.0.3.tgz", + "integrity": "sha512-FeKv9lKLMwqDu0pQjPpF59GY3HReUkWXKsMIuMuJQOKh9BETu7zPEFUELvcw8w+lwZkl4ileJsHXC9+AnsT2Lw==", + "dependencies": { + "@graphql-tools/utils": "^10.0.13", + "tslib": "^2.4.0" + }, "engines": { - "node": ">=12" + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, - "node_modules/@graphql-tools/merge": { - "version": "8.3.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/merge/-/merge-8.3.1.tgz", - "integrity": "sha512-BMm99mqdNZbEYeTPK3it9r9S6rsZsQKtlqJsSBknAclXq2pGEfOxjcIZi+kBSkHZKPKCRrYDd5vY0+rUmIHVLg==", + "node_modules/@graphql-tools/merge/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", "dependencies": { - "@graphql-tools/utils": "8.9.0", + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", "tslib": "^2.4.0" }, + "engines": { + "node": ">=16.0.0" + }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -5917,14 +6029,34 @@ } }, "node_modules/@graphql-tools/schema": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-8.5.1.tgz", - "integrity": "sha512-0Esilsh0P/qYcB5DKQpiKeQs/jevzIadNTaT0jeWklPMwNbT7yMX4EqZany7mbeRRlSRwMzNzL5olyFdffHBZg==", + "version": "10.0.3", + "resolved": "https://registry.npmjs.org/@graphql-tools/schema/-/schema-10.0.3.tgz", + "integrity": "sha512-p28Oh9EcOna6i0yLaCFOnkcBDQECVf3SCexT6ktb86QNj9idnkhI+tCxnwZDh58Qvjd2nURdkbevvoZkvxzCog==", "dependencies": { - "@graphql-tools/merge": "8.3.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/merge": "^9.0.3", + "@graphql-tools/utils": "^10.0.13", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "value-or-promise": "^1.0.12" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/schema/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" @@ -5942,24 +6074,44 @@ } }, "node_modules/@graphql-tools/wrap": { - "version": "8.5.1", - "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-8.5.1.tgz", - "integrity": "sha512-KpVVfha2wLSpE08YLX0jeo5nXPfDLASlxOqMlvfa/B4X8SOVmuLyN1L5YZ132tPLDF93uflwlHFnUO5ahpRNlA==", + "version": "10.0.5", + "resolved": "https://registry.npmjs.org/@graphql-tools/wrap/-/wrap-10.0.5.tgz", + "integrity": "sha512-Cbr5aYjr3HkwdPvetZp1cpDWTGdD1Owgsb3z/ClzhmrboiK86EnQDxDvOJiQkDCPWE9lNBwj8Y4HfxroY0D9DQ==", "dependencies": { - "@graphql-tools/delegate": "8.8.1", - "@graphql-tools/schema": "8.5.1", - "@graphql-tools/utils": "8.9.0", + "@graphql-tools/delegate": "^10.0.4", + "@graphql-tools/schema": "^10.0.3", + "@graphql-tools/utils": "^10.1.1", "tslib": "^2.4.0", - "value-or-promise": "1.0.11" + "value-or-promise": "^1.0.12" + }, + "engines": { + "node": ">=16.0.0" + }, + "peerDependencies": { + "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" + } + }, + "node_modules/@graphql-tools/wrap/node_modules/@graphql-tools/utils": { + "version": "10.1.2", + "resolved": "https://registry.npmjs.org/@graphql-tools/utils/-/utils-10.1.2.tgz", + "integrity": "sha512-fX13CYsDnX4yifIyNdiN0cVygz/muvkreWWem6BBw130+ODbRRgfiVveL0NizCEnKXkpvdeTy9Bxvo9LIKlhrw==", + "dependencies": { + "@graphql-typed-document-node/core": "^3.1.1", + "cross-inspect": "1.0.0", + "dset": "^3.1.2", + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" }, "peerDependencies": { "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } }, "node_modules/@graphql-typed-document-node/core": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.1.2.tgz", - "integrity": "sha512-9anpBMM9mEgZN4wr2v8wHJI2/u5TnnggewRN6OlvXTTnuVyoY19X6rOv9XTqKRw6dcGKwZsBi8n0kDE2I5i4VA==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/@graphql-typed-document-node/core/-/core-3.2.0.tgz", + "integrity": "sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==", "peerDependencies": { "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" } @@ -6283,6 +6435,11 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, + "node_modules/@kamilkisiela/fast-url-parser": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@kamilkisiela/fast-url-parser/-/fast-url-parser-1.1.4.tgz", + "integrity": "sha512-gbkePEBupNydxCelHCESvFSFM8XPh1Zs/OAVRW/rKpEqPAl5PbOM90Si8mv9bvnR53uPD2s/FiRxdvSejpRJew==" + }, "node_modules/@koa/cors": { "version": "3.4.3", "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-3.4.3.tgz", @@ -8087,6 +8244,11 @@ "resolved": "https://registry.npmjs.org/@realm.io/common/-/common-0.1.5.tgz", "integrity": "sha512-Y+UnICLvsPFpe2WOXWIdJUaV3G2qDocN8al/Yz13mYMkjODXHL4VhyfEKR2hvcAubv+7isdegEyYNdo3zQzbFA==" }, + "node_modules/@repeaterjs/repeater": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@repeaterjs/repeater/-/repeater-3.0.5.tgz", + "integrity": "sha512-l3YHBLAol6d/IKnB9LhpD0cEZWAoe3eFKUyTYWmFmCO2Q/WOckxLQAUyMZWwZV2M/m3+4vgRoaolFqaII82/TA==" + }, "node_modules/@restart/hooks": { "version": "0.4.9", "resolved": "https://registry.npmjs.org/@restart/hooks/-/hooks-0.4.9.tgz", @@ -9441,9 +9603,9 @@ } }, "node_modules/@types/react": { - "version": "18.2.59", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.59.tgz", - "integrity": "sha512-DE+F6BYEC8VtajY85Qr7mmhTd/79rJKIHCg99MU9SWPB4xvLb6D1za2vYflgZfmPqQVEr6UqJTnLXEwzpVPuOg==", + "version": "18.0.28", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.0.28.tgz", + "integrity": "sha512-RD0ivG1kEztNBdoAK7lekI9M+azSnitIn85h4iOiaLjaTrMjzslhaqCGaI4IyCJ1RljWiLCEu4jyrLLgqxBTew==", "dependencies": { "@types/prop-types": "*", "@types/scheduler": "*", @@ -9985,6 +10147,60 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@whatwg-node/events": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@whatwg-node/events/-/events-0.1.1.tgz", + "integrity": "sha512-AyQEn5hIPV7Ze+xFoXVU3QTHXVbWPrzaOkxtENMPMuNL6VVHrp4hHfDt9nrQpjO7BgvuM95dMtkycX5M/DZR3w==", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@whatwg-node/fetch": { + "version": "0.9.17", + "resolved": "https://registry.npmjs.org/@whatwg-node/fetch/-/fetch-0.9.17.tgz", + "integrity": "sha512-TDYP3CpCrxwxpiNY0UMNf096H5Ihf67BK1iKGegQl5u9SlpEDYrvnV71gWBGJm+Xm31qOy8ATgma9rm8Pe7/5Q==", + "dependencies": { + "@whatwg-node/node-fetch": "^0.5.7", + "urlpattern-polyfill": "^10.0.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@whatwg-node/node-fetch": { + "version": "0.5.8", + "resolved": "https://registry.npmjs.org/@whatwg-node/node-fetch/-/node-fetch-0.5.8.tgz", + "integrity": "sha512-rB+2P3oi9fD4TcsijkflJAQqOh4yZrPgOV4fGaDgCdOqqwTicJvL2nnVbr3comW8bxEuypOcyE1AtBtkpip0Gw==", + "dependencies": { + "@kamilkisiela/fast-url-parser": "^1.1.4", + "@whatwg-node/events": "^0.1.0", + "busboy": "^1.6.0", + "fast-querystring": "^1.1.1", + "tslib": "^2.3.1" + }, + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/@whatwg-node/node-fetch/node_modules/busboy": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", + "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", + "dependencies": { + "streamsearch": "^1.1.0" + }, + "engines": { + "node": ">=10.16.0" + } + }, + "node_modules/@whatwg-node/node-fetch/node_modules/streamsearch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", + "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/@wry/context": { "version": "0.7.4", "resolved": "https://registry.npmjs.org/@wry/context/-/context-0.7.4.tgz", @@ -11622,18 +11838,12 @@ } }, "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" - }, - "engines": { - "node": ">= 0.4" + "function-bind": "^1.1.1", + "get-intrinsic": "^1.0.2" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -12042,9 +12252,9 @@ } }, "node_modules/classnames": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.5.1.tgz", - "integrity": "sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==" + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.3.2.tgz", + "integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw==" }, "node_modules/clean-stack": { "version": "2.2.0", @@ -12825,9 +13035,9 @@ } }, "node_modules/core-js-pure": { - "version": "3.36.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.36.0.tgz", - "integrity": "sha512-cN28qmhRNgbMZZMc/RFu5w8pK9VJzpb2rJVR/lHuZJKwmXnoWOpXmMkxqBB514igkp1Hu8WGROsiOAzUcKdHOQ==", + "version": "3.29.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.29.0.tgz", + "integrity": "sha512-v94gUjN5UTe1n0yN/opTihJ8QBWD2O8i19RfTZR7foONPWArnjB96QA/wk5ozu1mm6ja3udQCzOzwQXTxi3xOQ==", "hasInstallScript": true, "funding": { "type": "opencollective", @@ -12941,6 +13151,17 @@ "webidl-conversions": "^3.0.0" } }, + "node_modules/cross-inspect": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/cross-inspect/-/cross-inspect-1.0.0.tgz", + "integrity": "sha512-4PFfn4b5ZN6FMNGSZlyb7wUhuN8wvj8t/VQHZdM4JsDcruGJ8L2kf9zao98QIrBPFCpdk27qst/AGTl7pL3ypQ==", + "dependencies": { + "tslib": "^2.4.0" + }, + "engines": { + "node": ">=16.0.0" + } + }, "node_modules/cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", @@ -13925,9 +14146,9 @@ } }, "node_modules/dataloader": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-2.1.0.tgz", - "integrity": "sha512-qTcEYLen3r7ojZNgVUaRggOI+KM7jrKxXeSHhogh/TWxYMeONEMqY+hmkobiYQozsGIyg9OYVzO4ZIfoB4I0pQ==" + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/dataloader/-/dataloader-2.2.2.tgz", + "integrity": "sha512-8YnDaaf7N3k/q5HnTJVuzSyLETjoZjVmHc4AeKAzOvKHEFQKcn64OKBfzHYtE9zGjctNM7V9I0MfnUVLpi7M5g==" }, "node_modules/date-fns": { "version": "2.30.0", @@ -14289,22 +14510,6 @@ "node": ">=10" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/define-lazy-prop": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz", @@ -14775,6 +14980,14 @@ "node": ">=10" } }, + "node_modules/dset": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/dset/-/dset-3.1.3.tgz", + "integrity": "sha512-20TuZZHCEZ2O71q9/+8BwKwZ0QtD9D8ObhrihJPr+vLLYlSuAU3/zL4cSlgbfeoGHTjCSJBa7NGcrF9/Bx/WJQ==", + "engines": { + "node": ">=4" + } + }, "node_modules/dup": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/dup/-/dup-1.0.0.tgz", @@ -15135,25 +15348,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", - "dependencies": { - "get-intrinsic": "^1.2.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "engines": { - "node": ">= 0.4" - } - }, "node_modules/es-get-iterator": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/es-get-iterator/-/es-get-iterator-1.1.3.tgz", @@ -16391,6 +16585,17 @@ "node": ">=0.6.0" } }, + "node_modules/extract-files": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/extract-files/-/extract-files-11.0.0.tgz", + "integrity": "sha512-FuoE1qtbJ4bBVvv94CC7s0oTnKUGvQs+Rjf1L2SJFfS+HTVVjhPFtehPdQ0JiGPqVNfSSZvL5yzHHQq2Z4WNhQ==", + "engines": { + "node": "^12.20 || >= 14.13" + }, + "funding": { + "url": "https://github.com/sponsors/jaydenseric" + } + }, "node_modules/extract-zip": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-2.0.1.tgz", @@ -16457,6 +16662,11 @@ "node": ">=0.4.0" } }, + "node_modules/fast-decode-uri-component": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/fast-decode-uri-component/-/fast-decode-uri-component-1.0.1.tgz", + "integrity": "sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==" + }, "node_modules/fast-deep-equal": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", @@ -16498,6 +16708,14 @@ "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, + "node_modules/fast-querystring": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/fast-querystring/-/fast-querystring-1.1.2.tgz", + "integrity": "sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==", + "dependencies": { + "fast-decode-uri-component": "^1.0.1" + } + }, "node_modules/fast-xml-parser": { "version": "4.2.5", "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", @@ -17308,12 +17526,9 @@ } }, "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" }, "node_modules/function.prototype.name": { "version": "1.1.5", @@ -19937,18 +20152,13 @@ } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", + "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" - }, - "engines": { - "node": ">= 0.4" + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.3" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -20478,11 +20688,11 @@ } }, "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.0.tgz", + "integrity": "sha512-62DVLZGoiEBDHQyqG4w9xCuZ7eJEwNmJRWw2VY84Oedb7WFcA27fiEVe8oUQx9hAUJ4ekurquucTGwsyO1XGdQ==", "dependencies": { - "es-define-property": "^1.0.0" + "get-intrinsic": "^1.1.1" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -20584,17 +20794,6 @@ "node": ">=8" } }, - "node_modules/hasown": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.1.tgz", - "integrity": "sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/hast-util-excerpt": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/hast-util-excerpt/-/hast-util-excerpt-1.0.2.tgz", @@ -24861,6 +25060,22 @@ "node": ">= 8" } }, + "node_modules/meros": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/meros/-/meros-1.3.0.tgz", + "integrity": "sha512-2BNGOimxEz5hmjUG2FwoxCt5HN7BXdaWyFqEwxPTrJzVdABtrL4TiHTcsWSFAxPQ/tOnEaQEJh3qWq71QRMY+w==", + "engines": { + "node": ">=13" + }, + "peerDependencies": { + "@types/node": ">=13" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + } + } + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", @@ -31781,9 +31996,9 @@ "integrity": "sha512-ndEIpszUHiG4HtDsQLeIuMvRsDnn8c8rYStabochtUeCvfuvNptb5TUbVD68LRAILPX7p9nqQGh4xJgn3EHS/g==" }, "node_modules/rollbar": { - "version": "2.26.3", - "resolved": "https://registry.npmjs.org/rollbar/-/rollbar-2.26.3.tgz", - "integrity": "sha512-Pf6PVH0zFi0dK4Yhj4MBEZX0QwIiHPZRgBHNHkhiujarhT5xunkJZ1T1QaJD0g8ML22f3zA7kKsly1tZZE7cdg==", + "version": "2.26.4", + "resolved": "https://registry.npmjs.org/rollbar/-/rollbar-2.26.4.tgz", + "integrity": "sha512-JKmrj6riYm9ZPJisgxljgH4uCsvjMHDHXrinDF7aAFaP+eoF51HomVPtLcDTYLsrJ568aKVNLUhedFajONBwSg==", "dependencies": { "async": "~3.2.3", "console-polyfill": "0.3.0", @@ -32238,22 +32453,6 @@ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==" }, - "node_modules/set-function-length": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.1.tgz", - "integrity": "sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==", - "dependencies": { - "define-data-property": "^1.1.2", - "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - } - }, "node_modules/setimmediate": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", @@ -35617,6 +35816,11 @@ "node": ">= 4" } }, + "node_modules/urlpattern-polyfill": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-10.0.0.tgz", + "integrity": "sha512-H/A06tKD7sS1O1X2SshBVeA5FLycRpjqiBeqGKmBwBDBy28EnRjORxTNe269KSSr5un5qyWi1iL61wLxpd+ZOg==" + }, "node_modules/use-query-params": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/use-query-params/-/use-query-params-1.2.3.tgz", @@ -35717,9 +35921,9 @@ } }, "node_modules/value-or-promise": { - "version": "1.0.11", - "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.11.tgz", - "integrity": "sha512-41BrgH+dIbCFXClcSapVs5M6GkENd3gQOJpEfPDNa71LsUGMXDL0jMWpI/Rh7WhX+Aalfz2TTS3Zt5pUsbnhLg==", + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/value-or-promise/-/value-or-promise-1.0.12.tgz", + "integrity": "sha512-Z6Uz+TYwEqE7ZN50gwn+1LCVo9ZVrpxRPOhOLnncYkY1ZzOYtrX8Fwf/rFktZ8R5mJms6EZf5TqNOMeZmnPq9Q==", "engines": { "node": ">=12" } diff --git a/site/gatsby-site/package.json b/site/gatsby-site/package.json index 408edcb7e2..3ba1f6d05a 100644 --- a/site/gatsby-site/package.json +++ b/site/gatsby-site/package.json @@ -17,8 +17,9 @@ "@fortawesome/react-fontawesome": "^0.2.0", "@google-cloud/translate": "^8.0.2", "@googlemaps/google-maps-services-js": "^3.3.3", - "@graphql-tools/schema": "^8.3.3", - "@graphql-tools/wrap": "^8.4.6", + "@graphql-tools/executor-http": "^1.0.9", + "@graphql-tools/schema": "^10.0.3", + "@graphql-tools/wrap": "^10.0.5", "@mdx-js/react": "^2.3.0", "@postlight/parser": "^2.2.3", "@prismicio/react": "^2.7.1", diff --git a/site/gatsby-site/src/api/graphql.js b/site/gatsby-site/src/api/graphql.js index aecf4a73d8..795f60ed54 100644 --- a/site/gatsby-site/src/api/graphql.js +++ b/site/gatsby-site/src/api/graphql.js @@ -1,32 +1,34 @@ -import { introspectSchema, wrapSchema, FilterRootFields } from '@graphql-tools/wrap'; -import { mergeSchemas } from '@graphql-tools/schema'; -import fetch from 'cross-fetch'; -import { print } from 'graphql'; +import { wrapSchema } from '@graphql-tools/wrap'; import Cors from 'cors'; import siteConfig from '../../config'; import { createHandler } from 'graphql-http/lib/use/express'; +import { buildHTTPExecutor } from '@graphql-tools/executor-http'; +import { makeExecutableSchema } from '@graphql-tools/schema'; +import { typeDefs } from '../graphql/schema'; const cors = Cors(); -// This custom executor is used to execute GraphQL queries against the Realm API -// https://www.graphql-tools.com/docs/schema-wrapping#schema-wrapping +const remoteExecutor = buildHTTPExecutor({ + endpoint: `https://realm.mongodb.com/api/client/v2.0/app/${siteConfig.realm.production_db.realm_app_id}/graphql`, + headers(executorRequest) { + // we allow read operations to be executed without an authorization header -async function realmExecutor({ document, variables }) { - const query = print(document); - - const fetchResult = await fetch( - `https://services.cloud.mongodb.com/api/client/v2.0/app/${siteConfig.realm.production_db.realm_app_id}/graphql`, - { - method: 'POST', - headers: { + if ( + !executorRequest?.context.req.headers.authorization && + executorRequest?.info.operation.operation == 'query' + ) { + return { apiKey: siteConfig.realm.graphqlApiKey, - }, - body: JSON.stringify({ query, variables }), + }; } - ); - return fetchResult.json(); -} + // if a header is present do a 1 to 1 pass through + + return { + authorization: executorRequest?.context.req.headers.authorization, + }; + }, +}); // Cache the Graphql middleware to make use of Lambdas's Container reuse @@ -34,32 +36,14 @@ let graphqlMiddleware = null; export default async function handler(req, res) { if (!graphqlMiddleware) { - // We want to expose a read-only api so Mutation operations are filtered out - - const realmSubschema = wrapSchema({ - schema: await introspectSchema(realmExecutor), - executor: realmExecutor, - transforms: [new FilterRootFields((operationName) => operationName != 'Mutation')], - }); - - // Root types (Mutation in this case) can't be empty so we add a dummy type to the definition - // https://github.com/graphql/graphql-spec/issues/568 + const remoteSchema = makeExecutableSchema({ typeDefs }); - const gatewaySchema = mergeSchemas({ - schemas: [realmSubschema], - typeDefs: ` - type Mutation { - _: Boolean - } - `, - resolvers: { - Mutation: { - _: () => true, - }, - }, + const wrappedRemoteSchema = wrapSchema({ + schema: remoteSchema, + executor: remoteExecutor, }); - graphqlMiddleware = createHandler({ schema: gatewaySchema }); + graphqlMiddleware = createHandler({ schema: wrappedRemoteSchema, context: (req) => ({ req }) }); } // Manually run the cors middleware diff --git a/site/gatsby-site/src/contexts/userContext/UserContextProvider.js b/site/gatsby-site/src/contexts/userContext/UserContextProvider.js index 3555ba34d5..42d3bccb0c 100644 --- a/site/gatsby-site/src/contexts/userContext/UserContextProvider.js +++ b/site/gatsby-site/src/contexts/userContext/UserContextProvider.js @@ -3,7 +3,6 @@ import * as Realm from 'realm-web'; import { realmApp } from '../../services/realmApp'; import { UserContext } from './UserContext'; import { ApolloProvider, ApolloClient, HttpLink, InMemoryCache, ApolloLink } from '@apollo/client'; -import config from '../../../config'; import fetch from 'cross-fetch'; import useToastContext, { SEVERITY } from '../../hooks/useToast'; import { Trans, useTranslation } from 'react-i18next'; @@ -19,7 +18,7 @@ const getApolloCLient = (getValidAccessToken) => link: ApolloLink.from([ removeTypenameFromVariables(), new HttpLink({ - uri: `https://services.cloud.mongodb.com/api/client/v2.0/app/${config.realm.production_db.realm_app_id}/graphql`, + uri: '/api/graphql', fetch: async (uri, options) => { const accessToken = await getValidAccessToken(); diff --git a/site/gatsby-site/src/graphql/schema.js b/site/gatsby-site/src/graphql/schema.js new file mode 100644 index 0000000000..97d98c6f68 --- /dev/null +++ b/site/gatsby-site/src/graphql/schema.js @@ -0,0 +1,4282 @@ +export const typeDefs = ` +type History_incidentNlp_similar_incident { + incident_id: Int + similarity: Float +} + +type Classification { + _id: ObjectId + attributes: [ClassificationAttribute] + incidents: [Incident]! + namespace: String! + notes: String + publish: Boolean + reports: [Report]! +} + +enum IncidentSortByInput { + EDITOR_NOTES_ASC + TITLE_ASC + TITLE_DESC + _ID_ASC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_DESC + DATE_ASC + INCIDENT_ID_ASC + DESCRIPTION_DESC + EPOCH_DATE_MODIFIED_ASC + INCIDENT_ID_DESC + _ID_DESC + DATE_DESC + DESCRIPTION_ASC +} + +input SubmissionDevelopersRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input History_reportEmbeddingUpdateInput { + vector: [Float] + vector_unset: Boolean + from_text_hash: String + from_text_hash_unset: Boolean +} + +input CandidateClassification_similarityQueryInput { + similarity_ne: Float + classification_gte: String + classification_in: [String] + similarity_gt: Float + AND: [CandidateClassification_similarityQueryInput!] + OR: [CandidateClassification_similarityQueryInput!] + similarity: Float + similarity_in: [Float] + similarity_exists: Boolean + classification_lt: String + similarity_lt: Float + classification: String + similarity_lte: Float + classification_ne: String + classification_gt: String + similarity_gte: Float + classification_nin: [String] + classification_exists: Boolean + classification_lte: String + similarity_nin: [Float] +} + +input NotificationQueryInput { + type_ne: String + incident_id_gt: Int + processed_ne: Boolean + type_gt: String + _id_lte: ObjectId + incident_id_lt: Int + _id_lt: ObjectId + processed: Boolean + sentDate_in: [DateTime] + sentDate_gt: DateTime + AND: [NotificationQueryInput!] + incident_id_exists: Boolean + _id_ne: ObjectId + type_in: [String] + incident_id_gte: Int + incident_id_in: [Int] + processed_exists: Boolean + sentDate_lte: DateTime + _id_gte: ObjectId + _id_nin: [ObjectId] + sentDate: DateTime + incident_id_lte: Int + sentDate_ne: DateTime + incident_id_nin: [Int] + type_lte: String + _id_exists: Boolean + sentDate_lt: DateTime + type_exists: Boolean + type_gte: String + sentDate_exists: Boolean + userId_exists: Boolean + _id_gt: ObjectId + type: String + type_lt: String + incident_id_ne: Int + _id: ObjectId + OR: [NotificationQueryInput!] + sentDate_gte: DateTime + sentDate_nin: [DateTime] + _id_in: [ObjectId] + incident_id: Int + userId: UserQueryInput + type_nin: [String] +} + +enum ReportSortByInput { + DATE_SUBMITTED_ASC + EPOCH_DATE_DOWNLOADED_ASC + TEXT_ASC + EPOCH_DATE_DOWNLOADED_DESC + EPOCH_DATE_MODIFIED_ASC + SOURCE_DOMAIN_ASC + SOURCE_DOMAIN_DESC + TITLE_DESC + CLOUDINARY_ID_ASC + DATE_MODIFIED_ASC + EPOCH_DATE_PUBLISHED_ASC + LANGUAGE_DESC + PLAIN_TEXT_DESC + URL_DESC + USER_ASC + USER_DESC + _ID_DESC + CLOUDINARY_ID_DESC + DESCRIPTION_ASC + EDITOR_NOTES_ASC + EPOCH_DATE_PUBLISHED_DESC + LANGUAGE_ASC + DATE_SUBMITTED_DESC + IMAGE_URL_ASC + TEXT_DESC + _ID_ASC + DATE_MODIFIED_DESC + EPOCH_DATE_MODIFIED_DESC + URL_ASC + DATE_DOWNLOADED_DESC + DATE_PUBLISHED_DESC + DESCRIPTION_DESC + EDITOR_NOTES_DESC + EPOCH_DATE_SUBMITTED_ASC + REPORT_NUMBER_DESC + TITLE_ASC + DATE_DOWNLOADED_ASC + DATE_PUBLISHED_ASC + EPOCH_DATE_SUBMITTED_DESC + IMAGE_URL_DESC + PLAIN_TEXT_ASC + REPORT_NUMBER_ASC +} + +input LinkReportsToIncidentsInput { + incident_ids: [Int] + report_numbers: [Int] +} + +type History_report { + _id: ObjectId + authors: [String]! + cloudinary_id: String! + date_downloaded: DateTime! + date_modified: DateTime! + date_published: DateTime! + date_submitted: DateTime! + description: String + editor_notes: String + embedding: History_reportEmbedding + epoch_date_downloaded: Int! + epoch_date_modified: Int! + epoch_date_published: Int! + epoch_date_submitted: Int! + flag: Boolean + image_url: String! + inputs_outputs: [String] + is_incident_report: Boolean + language: String! + modifiedBy: String + plain_text: String! + report_number: Int! + source_domain: String! + submitters: [String]! + tags: [String]! + text: String! + title: String! + url: String! + user: String +} + +type ChecklistRiskPrecedent { + description: String + incident_id: Int + tags: [String] + title: String +} + +input History_incidentQueryInput { + incident_id_gte: Int + editor_similar_incidents_in: [Int] + embedding: History_incidentEmbeddingQueryInput + _id_lte: ObjectId + editor_dissimilar_incidents_in: [Int] + embedding_exists: Boolean + editor_notes_lt: String + title_gte: String + epoch_date_modified_nin: [Int] + title_exists: Boolean + AllegedDeveloperOfAISystem_in: [String] + incident_id_lt: Int + description_exists: Boolean + editor_notes_ne: String + description_in: [String] + flagged_dissimilar_incidents_nin: [Int] + editor_notes_lte: String + AllegedDeveloperOfAISystem_exists: Boolean + flagged_dissimilar_incidents_exists: Boolean + date_nin: [String] + editor_similar_incidents_nin: [Int] + title_in: [String] + date_lte: String + _id: ObjectId + date_exists: Boolean + _id_gt: ObjectId + epoch_date_modified_in: [Int] + modifiedBy_lte: String + AllegedDeployerOfAISystem_in: [String] + AllegedDeployerOfAISystem: [String] + description_gt: String + nlp_similar_incidents_exists: Boolean + incident_id_lte: Int + date_in: [String] + title_nin: [String] + editor_notes_exists: Boolean + epoch_date_modified_ne: Int + tsne_exists: Boolean + title: String + _id_ne: ObjectId + epoch_date_modified_lt: Int + editor_dissimilar_incidents_nin: [Int] + description: String + AllegedHarmedOrNearlyHarmedParties: [String] + modifiedBy_exists: Boolean + AllegedHarmedOrNearlyHarmedParties_nin: [String] + nlp_similar_incidents: [History_incidentNlp_similar_incidentQueryInput] + editor_notes_nin: [String] + title_gt: String + AllegedDeployerOfAISystem_nin: [String] + AllegedDeveloperOfAISystem_nin: [String] + editor_similar_incidents_exists: Boolean + date_gte: String + flagged_dissimilar_incidents_in: [Int] + OR: [History_incidentQueryInput!] + _id_lt: ObjectId + date: String + _id_exists: Boolean + tsne: History_incidentTsneQueryInput + editors: [String] + flagged_dissimilar_incidents: [Int] + reports_nin: [Int] + epoch_date_modified_gte: Int + incident_id_ne: Int + description_lte: String + incident_id: Int + editors_in: [String] + reports_in: [Int] + _id_in: [ObjectId] + epoch_date_modified_exists: Boolean + reports_exists: Boolean + incident_id_nin: [Int] + modifiedBy_gte: String + editors_nin: [String] + incident_id_exists: Boolean + date_gt: String + AllegedHarmedOrNearlyHarmedParties_in: [String] + description_lt: String + modifiedBy_ne: String + modifiedBy_nin: [String] + description_ne: String + incident_id_in: [Int] + editor_notes_in: [String] + _id_gte: ObjectId + nlp_similar_incidents_in: [History_incidentNlp_similar_incidentQueryInput] + editor_similar_incidents: [Int] + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + date_lt: String + title_lte: String + editor_dissimilar_incidents: [Int] + epoch_date_modified_lte: Int + _id_nin: [ObjectId] + incident_id_gt: Int + editors_exists: Boolean + description_nin: [String] + editor_notes_gte: String + modifiedBy_gt: String + description_gte: String + title_lt: String + title_ne: String + epoch_date_modified_gt: Int + AllegedDeployerOfAISystem_exists: Boolean + editor_notes_gt: String + AND: [History_incidentQueryInput!] + modifiedBy_in: [String] + modifiedBy: String + modifiedBy_lt: String + editor_dissimilar_incidents_exists: Boolean + epoch_date_modified: Int + nlp_similar_incidents_nin: [History_incidentNlp_similar_incidentQueryInput] + editor_notes: String + date_ne: String + reports: [Int] +} + +input ChecklistQueryInput { + name: String + entity_id: String + name_nin: [String] + owner_id_nin: [String] + entity_id_lt: String + tags_other_in: [String] + date_created_lt: DateTime + entity_id_exists: Boolean + owner_id_in: [String] + date_created_lte: DateTime + tags_methods_nin: [String] + risks_exists: Boolean + owner_id_gte: String + owner_id_lt: String + name_in: [String] + _id_exists: Boolean + owner_id: String + date_updated_nin: [DateTime] + OR: [ChecklistQueryInput!] + date_created_gt: DateTime + risks: [ChecklistRiskQueryInput] + tags_other_nin: [String] + tags_methods_exists: Boolean + owner_id_exists: Boolean + date_created_exists: Boolean + id_gte: String + date_updated_in: [DateTime] + name_ne: String + entity_id_lte: String + id_lte: String + id_lt: String + name_lte: String + owner_id_ne: String + date_updated_lt: DateTime + date_created_nin: [DateTime] + name_exists: Boolean + _id_nin: [ObjectId] + entity_id_nin: [String] + tags_goals_exists: Boolean + date_updated_gt: DateTime + about_lt: String + entity_id_ne: String + id: String + name_gte: String + about_lte: String + about_in: [String] + id_exists: Boolean + tags_goals: [String] + id_in: [String] + risks_in: [ChecklistRiskQueryInput] + date_created_ne: DateTime + about: String + name_lt: String + _id_gte: ObjectId + _id_lte: ObjectId + _id_ne: ObjectId + entity_id_gt: String + id_nin: [String] + about_nin: [String] + date_updated_ne: DateTime + tags_other_exists: Boolean + AND: [ChecklistQueryInput!] + name_gt: String + _id_lt: ObjectId + tags_methods_in: [String] + id_ne: String + tags_goals_in: [String] + risks_nin: [ChecklistRiskQueryInput] + owner_id_lte: String + date_created_in: [DateTime] + owner_id_gt: String + about_gt: String + date_created: DateTime + date_updated_exists: Boolean + tags_goals_nin: [String] + tags_methods: [String] + about_exists: Boolean + entity_id_in: [String] + _id_gt: ObjectId + entity_id_gte: String + about_gte: String + tags_other: [String] + about_ne: String + date_created_gte: DateTime + date_updated_lte: DateTime + _id: ObjectId + date_updated_gte: DateTime + id_gt: String + date_updated: DateTime + _id_in: [ObjectId] +} + +input ClassificationInsertInput { + _id: ObjectId + attributes: [ClassificationAttributeInsertInput] + incidents: ClassificationIncidentsRelationInput! + namespace: String! + notes: String + publish: Boolean + reports: ClassificationReportsRelationInput! +} + +input UserInsertInput { + roles: [String]! + userId: String! + _id: ObjectId + first_name: String + last_name: String +} + +input UpdateOneReportTranslationInput { + title: String! + language: String! + plain_text: String! + report_number: Int! + text: String! +} + +input PromoteSubmissionToReportInput { + is_incident_report: Boolean + submission_id: ObjectId + incident_ids: [Int] +} + +input TaxaField_listItem_fieldUpdateInput { + short_description_unset: Boolean + weight_unset: Boolean + display_type_unset: Boolean + instant_facet: Boolean + instant_facet_unset: Boolean + short_name: String + long_description: String + permitted_values_unset: Boolean + field_number: String + short_name_unset: Boolean + placeholder: String + permitted_values: [String] + mongo_type_unset: Boolean + required: Boolean + short_description: String + long_name_unset: Boolean + default: String + complete_from_unset: Boolean + complete_from: TaxaField_listItem_fieldComplete_fromUpdateInput + long_name: String + placeholder_unset: Boolean + public: Boolean + public_unset: Boolean + long_description_unset: Boolean + weight_inc: Int + display_type: String + field_number_unset: Boolean + weight: Int + default_unset: Boolean + mongo_type: String + required_unset: Boolean +} + +type Notification { + _id: ObjectId + incident_id: Int + processed: Boolean + sentDate: DateTime + type: String + userId: User +} + +input CandidateClassification_similarityInsertInput { + classification: String + similarity: Float +} + +input CandidateEmbeddingInsertInput { + from_text_hash: String + vector: [Float] +} + +input TaxaDummy_fieldUpdateInput { + field_number: String + field_number_unset: Boolean + short_name: String + short_name_unset: Boolean +} + +input SubscriptionUserIdRelationInput { + create: UserInsertInput + link: String +} + +input GetUserInput { + userId: ObjectId +} + +type TaxaField_list { + complete_from: TaxaField_listComplete_from + default: String + display_type: String + field_number: String + hide_search: Boolean + instant_facet: Boolean + item_fields: TaxaField_listItem_field + long_description: String + long_name: String + mongo_type: String + permitted_values: [String] + placeholder: String + public: Boolean + required: Boolean + short_description: String + short_name: String + weight: Int +} + +input History_reportQueryInput { + url_lt: String + modifiedBy_in: [String] + source_domain_exists: Boolean + report_number: Int + report_number_gte: Int + submitters: [String] + text_lte: String + title_gt: String + inputs_outputs_exists: Boolean + url: String + url_ne: String + description: String + epoch_date_downloaded_gt: Int + description_exists: Boolean + epoch_date_downloaded_nin: [Int] + epoch_date_downloaded_exists: Boolean + text_exists: Boolean + date_submitted_lte: DateTime + title_nin: [String] + source_domain_nin: [String] + inputs_outputs_nin: [String] + date_published_in: [DateTime] + modifiedBy_gt: String + text_gte: String + cloudinary_id_nin: [String] + report_number_lt: Int + epoch_date_submitted_exists: Boolean + tags_exists: Boolean + description_ne: String + date_modified_exists: Boolean + language_in: [String] + _id_gt: ObjectId + plain_text_ne: String + epoch_date_submitted_lt: Int + epoch_date_published_ne: Int + date_submitted_lt: DateTime + user_in: [String] + user_gt: String + cloudinary_id: String + url_gte: String + plain_text_nin: [String] + date_downloaded_nin: [DateTime] + flag_ne: Boolean + epoch_date_submitted_lte: Int + inputs_outputs_in: [String] + submitters_nin: [String] + date_published_exists: Boolean + date_modified_lte: DateTime + language_exists: Boolean + date_published_gt: DateTime + description_lte: String + editor_notes_lte: String + user_nin: [String] + plain_text: String + user_gte: String + date_published_lte: DateTime + title_gte: String + date_published_nin: [DateTime] + epoch_date_modified: Int + image_url_exists: Boolean + _id_gte: ObjectId + authors_in: [String] + user_ne: String + epoch_date_submitted_gte: Int + url_in: [String] + date_submitted: DateTime + modifiedBy_lte: String + source_domain_ne: String + _id: ObjectId + plain_text_exists: Boolean + text_in: [String] + description_gt: String + epoch_date_submitted_nin: [Int] + image_url: String + embedding: History_reportEmbeddingQueryInput + authors_nin: [String] + image_url_lt: String + language_lte: String + embedding_exists: Boolean + text: String + plain_text_lt: String + AND: [History_reportQueryInput!] + description_lt: String + flag: Boolean + tags_in: [String] + date_downloaded_lt: DateTime + cloudinary_id_gt: String + epoch_date_submitted_in: [Int] + title_ne: String + language_lt: String + editor_notes_nin: [String] + modifiedBy: String + epoch_date_published_gt: Int + date_downloaded_exists: Boolean + tags_nin: [String] + date_downloaded_ne: DateTime + text_ne: String + authors_exists: Boolean + plain_text_gte: String + editor_notes_lt: String + date_modified_ne: DateTime + user_lte: String + epoch_date_modified_nin: [Int] + epoch_date_downloaded_ne: Int + report_number_nin: [Int] + language_nin: [String] + tags: [String] + date_modified_nin: [DateTime] + image_url_in: [String] + epoch_date_downloaded_lte: Int + date_submitted_ne: DateTime + epoch_date_modified_lte: Int + source_domain: String + language_gte: String + cloudinary_id_exists: Boolean + _id_lte: ObjectId + epoch_date_published_lt: Int + image_url_gt: String + modifiedBy_ne: String + inputs_outputs: [String] + _id_ne: ObjectId + date_downloaded_in: [DateTime] + image_url_ne: String + epoch_date_published: Int + image_url_gte: String + report_number_ne: Int + epoch_date_modified_lt: Int + source_domain_lte: String + url_lte: String + title_exists: Boolean + epoch_date_downloaded: Int + _id_nin: [ObjectId] + authors: [String] + cloudinary_id_gte: String + cloudinary_id_lt: String + epoch_date_downloaded_lt: Int + date_submitted_exists: Boolean + epoch_date_modified_gte: Int + epoch_date_published_gte: Int + date_submitted_nin: [DateTime] + date_published: DateTime + image_url_nin: [String] + epoch_date_published_lte: Int + url_exists: Boolean + user_lt: String + is_incident_report_exists: Boolean + epoch_date_modified_gt: Int + user: String + language_ne: String + modifiedBy_lt: String + description_gte: String + _id_in: [ObjectId] + title_lt: String + epoch_date_published_exists: Boolean + _id_lt: ObjectId + date_modified_lt: DateTime + text_nin: [String] + plain_text_lte: String + title_lte: String + is_incident_report_ne: Boolean + modifiedBy_gte: String + epoch_date_modified_ne: Int + epoch_date_submitted_ne: Int + date_published_gte: DateTime + date_modified_gt: DateTime + date_downloaded_lte: DateTime + date_modified_in: [DateTime] + flag_exists: Boolean + modifiedBy_exists: Boolean + date_published_lt: DateTime + epoch_date_downloaded_in: [Int] + title: String + editor_notes_in: [String] + modifiedBy_nin: [String] + date_downloaded: DateTime + epoch_date_published_in: [Int] + date_downloaded_gt: DateTime + epoch_date_downloaded_gte: Int + url_gt: String + OR: [History_reportQueryInput!] + title_in: [String] + date_submitted_gte: DateTime + report_number_gt: Int + cloudinary_id_lte: String + epoch_date_modified_in: [Int] + source_domain_gte: String + epoch_date_submitted_gt: Int + language_gt: String + editor_notes_gte: String + epoch_date_submitted: Int + date_modified: DateTime + _id_exists: Boolean + editor_notes: String + date_submitted_in: [DateTime] + cloudinary_id_ne: String + date_modified_gte: DateTime + submitters_exists: Boolean + report_number_lte: Int + editor_notes_exists: Boolean + date_downloaded_gte: DateTime + text_gt: String + description_nin: [String] + image_url_lte: String + is_incident_report: Boolean + editor_notes_gt: String + report_number_exists: Boolean + source_domain_gt: String + editor_notes_ne: String + date_published_ne: DateTime + date_submitted_gt: DateTime + description_in: [String] + submitters_in: [String] + plain_text_gt: String + source_domain_lt: String + epoch_date_published_nin: [Int] + user_exists: Boolean + language: String + report_number_in: [Int] + epoch_date_modified_exists: Boolean + url_nin: [String] + plain_text_in: [String] + cloudinary_id_in: [String] + source_domain_in: [String] + text_lt: String +} + +enum NotificationSortByInput { + _ID_ASC + INCIDENT_ID_ASC + INCIDENT_ID_DESC + SENTDATE_ASC + TYPE_ASC + _ID_DESC + SENTDATE_DESC + TYPE_DESC + USERID_ASC + USERID_DESC +} + +type SubmissionNlp_similar_incident { + incident_id: Int + similarity: Float +} + +input QuickaddQueryInput { + date_submitted_gt: String + url_gt: String + source_domain: String + url_in: [String] + source_domain_in: [String] + date_submitted: String + incident_id_gt: Long + url_gte: String + url_lt: String + url: String + url_nin: [String] + source_domain_lte: String + source_domain_gt: String + url_exists: Boolean + url_ne: String + _id_ne: ObjectId + date_submitted_exists: Boolean + incident_id_in: [Long] + incident_id_ne: Long + date_submitted_lt: String + source_domain_ne: String + OR: [QuickaddQueryInput!] + _id_gte: ObjectId + date_submitted_nin: [String] + url_lte: String + _id_nin: [ObjectId] + _id_exists: Boolean + incident_id_gte: Long + AND: [QuickaddQueryInput!] + _id_lt: ObjectId + date_submitted_gte: String + _id_lte: ObjectId + source_domain_lt: String + date_submitted_lte: String + incident_id_lte: Long + source_domain_exists: Boolean + incident_id_exists: Boolean + incident_id_lt: Long + source_domain_gte: String + incident_id: Long + _id: ObjectId + date_submitted_in: [String] + source_domain_nin: [String] + _id_gt: ObjectId + date_submitted_ne: String + _id_in: [ObjectId] + incident_id_nin: [Long] +} + +enum SubscriptionSortByInput { + ENTITYID_ASC + USERID_ASC + USERID_DESC + _ID_DESC + ENTITYID_DESC + INCIDENT_ID_ASC + INCIDENT_ID_DESC + TYPE_ASC + TYPE_DESC + _ID_ASC +} + +type CreateVariantPayload { + incident_id: Int + report_number: Int +} + +type History_incident { + AllegedDeployerOfAISystem: [String] + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] + _id: ObjectId + date: String! + description: String + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [String]! + embedding: History_incidentEmbedding + epoch_date_modified: Int + flagged_dissimilar_incidents: [Int] + incident_id: Int! + modifiedBy: String + nlp_similar_incidents: [History_incidentNlp_similar_incident] + reports: [Int]! + title: String! + tsne: History_incidentTsne +} + +enum ChecklistSortByInput { + DATE_CREATED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + ID_ASC + NAME_DESC + DATE_CREATED_ASC + _ID_DESC + ABOUT_DESC + DATE_UPDATED_ASC + DATE_UPDATED_DESC + OWNER_ID_DESC + _ID_ASC + ID_DESC + NAME_ASC + OWNER_ID_ASC + ABOUT_ASC +} + +input ReportEmbeddingUpdateInput { + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] + vector_unset: Boolean +} + +input ChecklistRiskInsertInput { + risk_status: String + touched: Boolean + generated: Boolean + id: String + likelihood: String + precedents: [ChecklistRiskPrecedentInsertInput] + tags: [String] + risk_notes: String + severity: String + title: String +} + +input SubmissionEmbeddingInsertInput { + vector: [Float] + from_text_hash: String +} + +input ClassificationReportsRelationInput { + create: [ReportInsertInput] + link: [Int] +} + +input TaxaField_listItem_fieldComplete_fromUpdateInput { + entities: Boolean + entities_unset: Boolean + all: [String] + all_unset: Boolean + current: [String] + current_unset: Boolean +} + +input TaxaDummy_fieldQueryInput { + AND: [TaxaDummy_fieldQueryInput!] + short_name_in: [String] + field_number_ne: String + short_name: String + OR: [TaxaDummy_fieldQueryInput!] + short_name_nin: [String] + field_number_exists: Boolean + short_name_gte: String + field_number_lte: String + short_name_exists: Boolean + short_name_gt: String + short_name_ne: String + field_number_in: [String] + field_number_gte: String + field_number: String + field_number_lt: String + short_name_lt: String + field_number_gt: String + short_name_lte: String + field_number_nin: [String] +} + +type TaxaField_listComplete_from { + all: [String] + current: [String] +} + +input EntityQueryInput { + _id: ObjectId + _id_exists: Boolean + entity_id: String + name_ne: String + name_lte: String + entity_id_lte: String + _id_ne: ObjectId + name_exists: Boolean + _id_lte: ObjectId + _id_gt: ObjectId + entity_id_ne: String + entity_id_nin: [String] + name_lt: String + name_gt: String + name_gte: String + entity_id_gte: String + _id_gte: ObjectId + OR: [EntityQueryInput!] + AND: [EntityQueryInput!] + entity_id_in: [String] + _id_lt: ObjectId + entity_id_exists: Boolean + entity_id_gt: String + name_in: [String] + _id_nin: [ObjectId] + _id_in: [ObjectId] + name: String + name_nin: [String] + entity_id_lt: String +} + +input CandidateQueryInput { + date_downloaded_ne: String + epoch_date_downloaded_gte: Int + similarity_exists: Boolean + OR: [CandidateQueryInput!] + epoch_date_published_nin: [Int] + image_url_gt: String + matching_entities: [String] + plain_text_gte: String + match_exists: Boolean + source_domain_lt: String + text_in: [String] + epoch_date_downloaded_ne: Int + language: String + url: String + image_url_lte: String + similarity_gte: Float + epoch_date_downloaded_gt: Int + language_gt: String + similarity_lte: Float + AND: [CandidateQueryInput!] + text_lt: String + title_nin: [String] + date_downloaded_gt: String + date_downloaded: String + date_published_in: [String] + _id_nin: [ObjectId] + epoch_date_downloaded_in: [Int] + title_in: [String] + url_lte: String + epoch_date_published_gt: Int + similarity_lt: Float + matching_entities_nin: [String] + image_url_lt: String + _id_in: [ObjectId] + epoch_date_downloaded_nin: [Int] + dismissed_ne: Boolean + matching_keywords_nin: [String] + _id_exists: Boolean + source_domain_ne: String + matching_entities_exists: Boolean + date_published_gte: String + source_domain: String + text_lte: String + epoch_date_downloaded_exists: Boolean + image_url_ne: String + authors: [String] + epoch_date_published_ne: Int + source_domain_exists: Boolean + matching_harm_keywords: [String] + title_exists: Boolean + similarity_in: [Float] + url_in: [String] + authors_in: [String] + plain_text_lt: String + authors_exists: Boolean + language_nin: [String] + url_nin: [String] + epoch_date_downloaded_lt: Int + _id_gt: ObjectId + image_url_gte: String + similarity_gt: Float + image_url_exists: Boolean + _id: ObjectId + title_gt: String + classification_similarity_exists: Boolean + epoch_date_published_lte: Int + image_url: String + plain_text: String + plain_text_gt: String + date_published_lte: String + source_domain_nin: [String] + plain_text_lte: String + similarity_nin: [Float] + plain_text_nin: [String] + title_lt: String + match: Boolean + classification_similarity: [CandidateClassification_similarityQueryInput] + language_in: [String] + date_downloaded_lt: String + source_domain_in: [String] + url_exists: Boolean + text_exists: Boolean + authors_nin: [String] + epoch_date_downloaded_lte: Int + dismissed: Boolean + url_lt: String + date_published_ne: String + title_lte: String + plain_text_exists: Boolean + language_ne: String + title_gte: String + image_url_in: [String] + date_downloaded_nin: [String] + matching_harm_keywords_in: [String] + epoch_date_downloaded: Int + image_url_nin: [String] + source_domain_lte: String + matching_keywords: [String] + text_nin: [String] + text: String + classification_similarity_nin: [CandidateClassification_similarityQueryInput] + classification_similarity_in: [CandidateClassification_similarityQueryInput] + matching_harm_keywords_nin: [String] + epoch_date_published_in: [Int] + url_gt: String + epoch_date_published: Int + matching_entities_in: [String] + date_downloaded_gte: String + date_downloaded_in: [String] + dismissed_exists: Boolean + plain_text_in: [String] + source_domain_gte: String + match_ne: Boolean + source_domain_gt: String + embedding: CandidateEmbeddingQueryInput + _id_lt: ObjectId + embedding_exists: Boolean + epoch_date_published_gte: Int + _id_gte: ObjectId + language_lt: String + language_lte: String + url_gte: String + date_published_exists: Boolean + title: String + date_published_gt: String + plain_text_ne: String + language_gte: String + similarity: Float + _id_lte: ObjectId + date_published_lt: String + date_downloaded_lte: String + matching_harm_keywords_exists: Boolean + text_gte: String + epoch_date_published_exists: Boolean + _id_ne: ObjectId + matching_keywords_in: [String] + epoch_date_published_lt: Int + text_gt: String + title_ne: String + url_ne: String + date_published_nin: [String] + matching_keywords_exists: Boolean + date_downloaded_exists: Boolean + similarity_ne: Float + date_published: String + text_ne: String + language_exists: Boolean +} + +type IncidentNlp_similar_incident { + incident_id: Int + similarity: Float +} + +input IncidentEmbeddingInsertInput { + from_reports: [Int] + vector: [Float] +} + +input TaxaInsertInput { + namespace: String + weight: Int + _id: ObjectId + complete_entities: Boolean + description: String + dummy_fields: [TaxaDummy_fieldInsertInput] + field_list: [TaxaField_listInsertInput] +} + +type User { + _id: ObjectId + adminData: UserAdminDatum + first_name: String + last_name: String + roles: [String]! + userId: String! +} + +input ChecklistRiskQueryInput { + risk_notes_gte: String + severity_gt: String + likelihood: String + precedents_exists: Boolean + likelihood_exists: Boolean + risk_notes_exists: Boolean + severity: String + risk_notes_lte: String + id_nin: [String] + risk_status_exists: Boolean + id_in: [String] + id: String + id_lt: String + risk_notes_in: [String] + tags_in: [String] + tags_nin: [String] + title_nin: [String] + tags: [String] + risk_status: String + risk_notes_gt: String + severity_nin: [String] + precedents: [ChecklistRiskPrecedentQueryInput] + touched_exists: Boolean + id_exists: Boolean + severity_lte: String + likelihood_lte: String + tags_exists: Boolean + title_lte: String + severity_lt: String + touched_ne: Boolean + id_lte: String + likelihood_in: [String] + risk_status_gt: String + risk_status_lt: String + likelihood_ne: String + risk_status_gte: String + risk_status_ne: String + title_exists: Boolean + likelihood_nin: [String] + severity_in: [String] + severity_gte: String + id_ne: String + severity_exists: Boolean + generated_exists: Boolean + risk_status_in: [String] + id_gt: String + risk_notes_ne: String + title_ne: String + generated: Boolean + title_gte: String + touched: Boolean + generated_ne: Boolean + risk_notes_nin: [String] + risk_notes_lt: String + id_gte: String + title_gt: String + AND: [ChecklistRiskQueryInput!] + likelihood_lt: String + title_lt: String + likelihood_gte: String + severity_ne: String + title: String + title_in: [String] + OR: [ChecklistRiskQueryInput!] + precedents_in: [ChecklistRiskPrecedentQueryInput] + precedents_nin: [ChecklistRiskPrecedentQueryInput] + risk_status_lte: String + risk_notes: String + likelihood_gt: String + risk_status_nin: [String] +} + +type LogIncidentHistoryPayload { + incident_id: Int +} + +input ClassificationQueryInput { + notes_in: [String] + notes_ne: String + namespace_in: [String] + notes: String + namespace_lte: String + notes_exists: Boolean + _id_ne: ObjectId + _id_in: [ObjectId] + notes_gt: String + notes_lte: String + _id_exists: Boolean + incidents: [IncidentQueryInput] + namespace_gte: String + namespace_lt: String + publish: Boolean + incidents_exists: Boolean + _id_nin: [ObjectId] + publish_exists: Boolean + reports_nin: [ReportQueryInput] + reports_exists: Boolean + notes_nin: [String] + attributes: [ClassificationAttributeQueryInput] + namespace: String + _id_gte: ObjectId + attributes_in: [ClassificationAttributeQueryInput] + _id_lt: ObjectId + attributes_exists: Boolean + incidents_nin: [IncidentQueryInput] + notes_lt: String + namespace_ne: String + _id: ObjectId + namespace_nin: [String] + reports_in: [ReportQueryInput] + attributes_nin: [ClassificationAttributeQueryInput] + AND: [ClassificationQueryInput!] + reports: [ReportQueryInput] + notes_gte: String + namespace_gt: String + OR: [ClassificationQueryInput!] + incidents_in: [IncidentQueryInput] + namespace_exists: Boolean + _id_gt: ObjectId + publish_ne: Boolean + _id_lte: ObjectId +} + +input History_incidentTsneInsertInput { + y: Float + x: Float +} + +type PromoteSubmissionToReportPayload { + incident_ids: [Int] + report_number: Int +} + +input UserQueryInput { + last_name_lt: String + last_name_gt: String + _id_gt: ObjectId + roles: [String] + _id_exists: Boolean + AND: [UserQueryInput!] + first_name_lte: String + userId: String + last_name_in: [String] + last_name_nin: [String] + _id_nin: [ObjectId] + last_name_gte: String + _id: ObjectId + userId_lt: String + userId_gt: String + last_name_lte: String + _id_lte: ObjectId + first_name_gte: String + userId_exists: Boolean + _id_ne: ObjectId + last_name: String + _id_gte: ObjectId + last_name_ne: String + userId_in: [String] + userId_lte: String + userId_ne: String + _id_in: [ObjectId] + roles_nin: [String] + first_name_gt: String + first_name_nin: [String] + last_name_exists: Boolean + roles_in: [String] + first_name_exists: Boolean + userId_gte: String + first_name: String + first_name_lt: String + OR: [UserQueryInput!] + roles_exists: Boolean + first_name_ne: String + userId_nin: [String] + first_name_in: [String] + _id_lt: ObjectId +} + +input IncidentNlp_similar_incidentUpdateInput { + incident_id: Int + incident_id_inc: Int + incident_id_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean +} + +input SubmissionIncident_editorsRelationInput { + create: [UserInsertInput] + link: [String] +} + +enum SubmissionSortByInput { + LANGUAGE_ASC + SOURCE_DOMAIN_DESC + TEXT_DESC + DATE_MODIFIED_ASC + PLAIN_TEXT_DESC + TEXT_ASC + TITLE_DESC + USER_DESC + _ID_DESC + DATE_PUBLISHED_DESC + EPOCH_DATE_MODIFIED_ASC + INCIDENT_DATE_DESC + LANGUAGE_DESC + URL_ASC + DATE_PUBLISHED_ASC + EDITOR_NOTES_ASC + IMAGE_URL_DESC + INCIDENT_TITLE_ASC + INCIDENT_TITLE_DESC + SOURCE_DOMAIN_ASC + DATE_SUBMITTED_ASC + DATE_SUBMITTED_DESC + DESCRIPTION_ASC + EPOCH_DATE_MODIFIED_DESC + URL_DESC + USER_ASC + PLAIN_TEXT_ASC + _ID_ASC + CLOUDINARY_ID_ASC + DATE_DOWNLOADED_DESC + DESCRIPTION_DESC + EDITOR_NOTES_DESC + IMAGE_URL_ASC + TITLE_ASC + CLOUDINARY_ID_DESC + DATE_DOWNLOADED_ASC + DATE_MODIFIED_DESC + INCIDENT_DATE_ASC + STATUS_ASC + STATUS_DESC +} + +input DuplicateInsertInput { + _id: ObjectId + duplicate_incident_number: Int + true_incident_number: Int +} + +input SubmissionInsertInput { + editor_similar_incidents: [Int] + incident_date: String + url: String! + developers: SubmissionDevelopersRelationInput + deployers: SubmissionDeployersRelationInput + image_url: String! + language: String! + epoch_date_modified: Int + incident_editors: SubmissionIncident_editorsRelationInput + source_domain: String! + user: SubmissionUserRelationInput + embedding: SubmissionEmbeddingInsertInput + cloudinary_id: String + submitters: [String]! + nlp_similar_incidents: [SubmissionNlp_similar_incidentInsertInput] + date_modified: String! + date_published: String! + editor_dissimilar_incidents: [Int] + status: String + incident_ids: [Int] + _id: ObjectId + authors: [String]! + date_submitted: String! + text: String! + date_downloaded: String! + incident_title: String + title: String! + editor_notes: String + description: String + tags: [String]! + plain_text: String + harmed_parties: SubmissionHarmed_partiesRelationInput +} + +input IncidentNlp_similar_incidentQueryInput { + incident_id_lt: Int + OR: [IncidentNlp_similar_incidentQueryInput!] + similarity: Float + incident_id: Int + incident_id_nin: [Int] + incident_id_gte: Int + similarity_ne: Float + similarity_exists: Boolean + similarity_nin: [Float] + similarity_gt: Float + similarity_gte: Float + similarity_lte: Float + similarity_in: [Float] + similarity_lt: Float + incident_id_gt: Int + incident_id_exists: Boolean + incident_id_lte: Int + incident_id_in: [Int] + incident_id_ne: Int + AND: [IncidentNlp_similar_incidentQueryInput!] +} + +input SubscriptionEntityIdRelationInput { + create: EntityInsertInput + link: String +} + +input History_incidentTsneQueryInput { + AND: [History_incidentTsneQueryInput!] + x_exists: Boolean + y_gte: Float + x_in: [Float] + x_ne: Float + y_exists: Boolean + y_lt: Float + y_in: [Float] + x_lt: Float + y_nin: [Float] + x_nin: [Float] + x_gt: Float + x_gte: Float + y_gt: Float + y: Float + y_ne: Float + x: Float + y_lte: Float + OR: [History_incidentTsneQueryInput!] + x_lte: Float +} + +input IncidentEmbeddingUpdateInput { + from_reports_unset: Boolean + vector: [Float] + vector_unset: Boolean + from_reports: [Int] +} + +enum ClassificationSortByInput { + NAMESPACE_ASC + NAMESPACE_DESC + NOTES_ASC + NOTES_DESC + _ID_ASC + _ID_DESC +} + +input ClassificationAttributeQueryInput { + short_name_gte: String + short_name_lt: String + short_name_exists: Boolean + short_name_lte: String + AND: [ClassificationAttributeQueryInput!] + short_name_ne: String + value_json_gt: String + value_json_gte: String + short_name_in: [String] + value_json: String + value_json_lt: String + value_json_nin: [String] + value_json_lte: String + short_name_gt: String + short_name_nin: [String] + value_json_ne: String + OR: [ClassificationAttributeQueryInput!] + value_json_in: [String] + short_name: String + value_json_exists: Boolean +} + +input DuplicateQueryInput { + duplicate_incident_number_ne: Int + true_incident_number_nin: [Int] + _id: ObjectId + _id_nin: [ObjectId] + _id_lte: ObjectId + true_incident_number_ne: Int + duplicate_incident_number_gte: Int + true_incident_number_lte: Int + true_incident_number: Int + true_incident_number_gt: Int + AND: [DuplicateQueryInput!] + true_incident_number_exists: Boolean + duplicate_incident_number_lte: Int + duplicate_incident_number_nin: [Int] + _id_exists: Boolean + _id_ne: ObjectId + duplicate_incident_number_exists: Boolean + true_incident_number_gte: Int + true_incident_number_lt: Int + duplicate_incident_number: Int + duplicate_incident_number_lt: Int + duplicate_incident_number_gt: Int + duplicate_incident_number_in: [Int] + true_incident_number_in: [Int] + OR: [DuplicateQueryInput!] + _id_gt: ObjectId + _id_lt: ObjectId + _id_in: [ObjectId] + _id_gte: ObjectId +} + +input TaxaField_listItem_fieldQueryInput { + weight_gte: Int + AND: [TaxaField_listItem_fieldQueryInput!] + long_description: String + long_name_ne: String + instant_facet: Boolean + default_ne: String + placeholder_exists: Boolean + short_description_lt: String + mongo_type_ne: String + field_number_lte: String + display_type_nin: [String] + display_type_ne: String + default_lte: String + public: Boolean + short_name_in: [String] + short_description_nin: [String] + mongo_type_in: [String] + long_description_lt: String + public_exists: Boolean + field_number_lt: String + mongo_type_nin: [String] + mongo_type_lte: String + weight_nin: [Int] + instant_facet_exists: Boolean + short_description_in: [String] + field_number_in: [String] + field_number_gt: String + long_name_lte: String + long_name_gte: String + short_description: String + long_description_gt: String + required: Boolean + required_ne: Boolean + placeholder_ne: String + default_exists: Boolean + long_name_in: [String] + OR: [TaxaField_listItem_fieldQueryInput!] + mongo_type_gte: String + short_name_nin: [String] + short_name: String + permitted_values: [String] + long_name: String + permitted_values_in: [String] + short_description_gte: String + short_name_gte: String + placeholder_gte: String + mongo_type: String + field_number_gte: String + short_description_exists: Boolean + short_description_gt: String + long_description_in: [String] + weight_lte: Int + placeholder_lt: String + permitted_values_nin: [String] + default_in: [String] + placeholder_in: [String] + weight_in: [Int] + long_description_nin: [String] + default_gte: String + display_type_gt: String + long_name_exists: Boolean + field_number_ne: String + placeholder: String + instant_facet_ne: Boolean + complete_from: TaxaField_listItem_fieldComplete_fromQueryInput + public_ne: Boolean + field_number_nin: [String] + short_name_lte: String + field_number: String + display_type_in: [String] + short_description_ne: String + mongo_type_lt: String + display_type_exists: Boolean + short_name_lt: String + short_description_lte: String + display_type: String + mongo_type_gt: String + long_description_gte: String + mongo_type_exists: Boolean + permitted_values_exists: Boolean + short_name_gt: String + weight_lt: Int + default_nin: [String] + long_name_lt: String + default_lt: String + long_name_gt: String + display_type_lte: String + placeholder_nin: [String] + long_description_ne: String + default_gt: String + weight_gt: Int + long_description_exists: Boolean + complete_from_exists: Boolean + long_name_nin: [String] + weight_exists: Boolean + weight: Int + short_name_exists: Boolean + placeholder_lte: String + required_exists: Boolean + placeholder_gt: String + long_description_lte: String + short_name_ne: String + display_type_gte: String + field_number_exists: Boolean + default: String + weight_ne: Int + display_type_lt: String +} + +type ReportEmbedding { + from_text_hash: String + vector: [Float] +} + +input IncidentNlp_similar_incidentInsertInput { + similarity: Float + incident_id: Int +} + +type DefaultAdminUser { + message: String + status: Int + userId: String +} + +input TaxaField_listComplete_fromQueryInput { + AND: [TaxaField_listComplete_fromQueryInput!] + all_exists: Boolean + current_in: [String] + current_nin: [String] + all: [String] + all_nin: [String] + current: [String] + current_exists: Boolean + OR: [TaxaField_listComplete_fromQueryInput!] + all_in: [String] +} + +input IncidentTsneQueryInput { + x_gte: Float + x_lte: Float + AND: [IncidentTsneQueryInput!] + y_lte: Float + y_exists: Boolean + y_gt: Float + x_gt: Float + x_ne: Float + y_nin: [Float] + y_gte: Float + y_lt: Float + x_in: [Float] + x: Float + y_in: [Float] + y_ne: Float + OR: [IncidentTsneQueryInput!] + y: Float + x_lt: Float + x_nin: [Float] + x_exists: Boolean +} + +input QuickaddUpdateInput { + date_submitted_unset: Boolean + incident_id_unset: Boolean + date_submitted: String + incident_id: Long + source_domain_unset: Boolean + _id: ObjectId + _id_unset: Boolean + source_domain: String + url: String + url_unset: Boolean +} + +type History_incidentEmbedding { + from_reports: [Int] + vector: [Float] +} + +type CandidateEmbedding { + from_text_hash: String + vector: [Float] +} + +input ReportEmbeddingInsertInput { + from_text_hash: String + vector: [Float] +} + +input ClassificationAttributeInsertInput { + short_name: String + value_json: String +} + +input SubmissionNlp_similar_incidentQueryInput { + incident_id_nin: [Int] + incident_id: Int + similarity_in: [Float] + similarity_nin: [Float] + incident_id_lt: Int + similarity_gte: Float + incident_id_exists: Boolean + incident_id_gte: Int + incident_id_lte: Int + similarity: Float + similarity_lt: Float + incident_id_in: [Int] + similarity_ne: Float + similarity_exists: Boolean + incident_id_ne: Int + OR: [SubmissionNlp_similar_incidentQueryInput!] + similarity_lte: Float + incident_id_gt: Int + AND: [SubmissionNlp_similar_incidentQueryInput!] + similarity_gt: Float +} + +input ClassificationAttributeUpdateInput { + value_json: String + value_json_unset: Boolean + short_name: String + short_name_unset: Boolean +} + +input SubmissionNlp_similar_incidentUpdateInput { + incident_id_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean + incident_id: Int + incident_id_inc: Int +} + +input SubscriptionInsertInput { + entityId: SubscriptionEntityIdRelationInput + incident_id: SubscriptionIncident_idRelationInput + type: String! + userId: SubscriptionUserIdRelationInput! + _id: ObjectId +} + +type RisksPayloadPrecedentNlp_similar_incident { + incident_id: Int + similarity: Float +} + +input IncidentTsneUpdateInput { + x: Float + x_inc: Float + x_unset: Boolean + y: Float + y_inc: Float + y_unset: Boolean +} + +input IncidentReportsRelationInput { + create: [ReportInsertInput] + link: [Int] +} + +input SubmissionHarmed_partiesRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input CreateVariantInputVariant { + text: String + date_published: String + inputs_outputs: [String] + submitters: [String] +} + +type Taxa { + _id: ObjectId + complete_entities: Boolean + description: String + dummy_fields: [TaxaDummy_field] + field_list: [TaxaField_list] + namespace: String + weight: Int +} + +enum EntitySortByInput { + _ID_ASC + _ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + NAME_ASC + NAME_DESC +} + +input CandidateUpdateInput { + image_url: String + similarity: Float + matching_keywords_unset: Boolean + epoch_date_downloaded_inc: Int + matching_harm_keywords: [String] + similarity_unset: Boolean + language: String + embedding_unset: Boolean + plain_text_unset: Boolean + similarity_inc: Float + epoch_date_downloaded_unset: Boolean + _id_unset: Boolean + dismissed: Boolean + epoch_date_published: Int + classification_similarity: [CandidateClassification_similarityUpdateInput] + matching_entities_unset: Boolean + date_downloaded_unset: Boolean + date_downloaded: String + matching_harm_keywords_unset: Boolean + text_unset: Boolean + plain_text: String + title: String + epoch_date_downloaded: Int + dismissed_unset: Boolean + authors_unset: Boolean + image_url_unset: Boolean + match: Boolean + matching_keywords: [String] + epoch_date_published_unset: Boolean + date_published: String + url_unset: Boolean + _id: ObjectId + authors: [String] + classification_similarity_unset: Boolean + matching_entities: [String] + source_domain: String + embedding: CandidateEmbeddingUpdateInput + source_domain_unset: Boolean + epoch_date_published_inc: Int + date_published_unset: Boolean + language_unset: Boolean + url: String + title_unset: Boolean + match_unset: Boolean + text: String +} + +input CreateDefaultAdminUserInput { + email: String + password: String +} + +type Candidate { + _id: ObjectId + authors: [String] + classification_similarity: [CandidateClassification_similarity] + date_downloaded: String + date_published: String + dismissed: Boolean + embedding: CandidateEmbedding + epoch_date_downloaded: Int + epoch_date_published: Int + image_url: String + language: String + match: Boolean! + matching_entities: [String] + matching_harm_keywords: [String] + matching_keywords: [String] + plain_text: String + similarity: Float + source_domain: String + text: String + title: String + url: String! +} + +input History_incidentInsertInput { + embedding: History_incidentEmbeddingInsertInput + editor_notes: String + editor_similar_incidents: [Int] + AllegedHarmedOrNearlyHarmedParties: [String] + AllegedDeployerOfAISystem: [String] + editors: [String]! + title: String! + tsne: History_incidentTsneInsertInput + _id: ObjectId + date: String! + modifiedBy: String + epoch_date_modified: Int + editor_dissimilar_incidents: [Int] + flagged_dissimilar_incidents: [Int] + nlp_similar_incidents: [History_incidentNlp_similar_incidentInsertInput] + reports: [Int]! + incident_id: Int! + AllegedDeveloperOfAISystem: [String] + description: String +} + +input TaxaQueryInput { + _id_exists: Boolean + weight_nin: [Int] + field_list_in: [TaxaField_listQueryInput] + description_exists: Boolean + description_nin: [String] + field_list: [TaxaField_listQueryInput] + weight_exists: Boolean + namespace_in: [String] + weight_lt: Int + weight_ne: Int + description_gte: String + namespace_exists: Boolean + _id_gt: ObjectId + complete_entities: Boolean + _id_lt: ObjectId + complete_entities_ne: Boolean + _id_gte: ObjectId + complete_entities_exists: Boolean + description_lte: String + dummy_fields: [TaxaDummy_fieldQueryInput] + weight_gte: Int + dummy_fields_exists: Boolean + namespace_ne: String + _id_nin: [ObjectId] + dummy_fields_in: [TaxaDummy_fieldQueryInput] + namespace_lt: String + namespace_gt: String + namespace_nin: [String] + description_ne: String + _id_lte: ObjectId + field_list_nin: [TaxaField_listQueryInput] + namespace_gte: String + weight: Int + weight_gt: Int + weight_lte: Int + description_lt: String + AND: [TaxaQueryInput!] + OR: [TaxaQueryInput!] + namespace: String + namespace_lte: String + weight_in: [Int] + description_in: [String] + dummy_fields_nin: [TaxaDummy_fieldQueryInput] + _id: ObjectId + _id_ne: ObjectId + _id_in: [ObjectId] + description_gt: String + field_list_exists: Boolean + description: String +} + +input DuplicateUpdateInput { + _id: ObjectId + _id_unset: Boolean + duplicate_incident_number: Int + duplicate_incident_number_inc: Int + duplicate_incident_number_unset: Boolean + true_incident_number: Int + true_incident_number_inc: Int + true_incident_number_unset: Boolean +} + +input TaxaField_listItem_fieldComplete_fromQueryInput { + entities_exists: Boolean + entities_ne: Boolean + entities: Boolean + current_nin: [String] + current_in: [String] + AND: [TaxaField_listItem_fieldComplete_fromQueryInput!] + all: [String] + all_exists: Boolean + OR: [TaxaField_listItem_fieldComplete_fromQueryInput!] + all_nin: [String] + all_in: [String] + current: [String] + current_exists: Boolean +} + +input ReportUserRelationInput { + create: UserInsertInput + link: String +} + +input IncidentUpdateInput { + reports: IncidentReportsRelationInput + editors: IncidentEditorsRelationInput + epoch_date_modified_inc: Int + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + epoch_date_modified: Int + title: String + date_unset: Boolean + description: String + editor_dissimilar_incidents_unset: Boolean + flagged_dissimilar_incidents: [Int] + AllegedDeveloperOfAISystem_unset: Boolean + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput + reports_unset: Boolean + incident_id: Int + description_unset: Boolean + editor_notes: String + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput + embedding: IncidentEmbeddingUpdateInput + flagged_dissimilar_incidents_unset: Boolean + date: String + editors_unset: Boolean + editor_dissimilar_incidents: [Int] + editor_notes_unset: Boolean + tsne: IncidentTsneUpdateInput + epoch_date_modified_unset: Boolean + nlp_similar_incidents: [IncidentNlp_similar_incidentUpdateInput] + AllegedDeployerOfAISystem_unset: Boolean + embedding_unset: Boolean + title_unset: Boolean + nlp_similar_incidents_unset: Boolean + AllegedHarmedOrNearlyHarmedParties_unset: Boolean + incident_id_unset: Boolean + editor_similar_incidents_unset: Boolean + incident_id_inc: Int + _id_unset: Boolean + editor_similar_incidents: [Int] + tsne_unset: Boolean + _id: ObjectId +} + +input IncidentAllegedDeployerOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] +} + +enum CandidateSortByInput { + EPOCH_DATE_DOWNLOADED_DESC + LANGUAGE_ASC + TEXT_DESC + _ID_ASC + URL_ASC + DATE_DOWNLOADED_ASC + IMAGE_URL_DESC + TEXT_ASC + TITLE_ASC + TITLE_DESC + DATE_PUBLISHED_DESC + EPOCH_DATE_PUBLISHED_ASC + SIMILARITY_DESC + _ID_DESC + SIMILARITY_ASC + SOURCE_DOMAIN_ASC + EPOCH_DATE_DOWNLOADED_ASC + EPOCH_DATE_PUBLISHED_DESC + PLAIN_TEXT_ASC + PLAIN_TEXT_DESC + SOURCE_DOMAIN_DESC + DATE_PUBLISHED_ASC + LANGUAGE_DESC + DATE_DOWNLOADED_DESC + IMAGE_URL_ASC + URL_DESC +} + +input RisksInput { + tags: [String] +} + +input ChecklistRiskPrecedentQueryInput { + description: String + description_lt: String + incident_id_gte: Int + title_ne: String + description_gt: String + incident_id_lte: Int + OR: [ChecklistRiskPrecedentQueryInput!] + AND: [ChecklistRiskPrecedentQueryInput!] + description_ne: String + title_nin: [String] + tags_nin: [String] + description_nin: [String] + incident_id_ne: Int + title_exists: Boolean + incident_id: Int + description_gte: String + incident_id_in: [Int] + incident_id_lt: Int + tags: [String] + title_lt: String + description_in: [String] + description_lte: String + description_exists: Boolean + tags_in: [String] + title_gte: String + tags_exists: Boolean + title_gt: String + title_lte: String + incident_id_nin: [Int] + title_in: [String] + title: String + incident_id_exists: Boolean + incident_id_gt: Int +} + +input IncidentAllegedDeveloperOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input History_incidentEmbeddingUpdateInput { + vector_unset: Boolean + from_reports: [Int] + from_reports_unset: Boolean + vector: [Float] +} + +input CandidateEmbeddingQueryInput { + AND: [CandidateEmbeddingQueryInput!] + from_text_hash: String + from_text_hash_gt: String + from_text_hash_gte: String + vector: [Float] + from_text_hash_exists: Boolean + OR: [CandidateEmbeddingQueryInput!] + from_text_hash_in: [String] + vector_exists: Boolean + vector_nin: [Float] + from_text_hash_nin: [String] + from_text_hash_lte: String + from_text_hash_ne: String + from_text_hash_lt: String + vector_in: [Float] +} + +input NotificationInsertInput { + sentDate: DateTime + type: String + userId: NotificationUserIdRelationInput + _id: ObjectId + incident_id: Int + processed: Boolean +} + +input CandidateEmbeddingUpdateInput { + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] + vector_unset: Boolean +} + +input EntityUpdateInput { + _id_unset: Boolean + entity_id: String + entity_id_unset: Boolean + name: String + name_unset: Boolean + _id: ObjectId +} + +input SubmissionUserRelationInput { + create: UserInsertInput + link: String +} + +type Duplicate { + _id: ObjectId + duplicate_incident_number: Int + true_incident_number: Int +} + +input History_incidentNlp_similar_incidentQueryInput { + incident_id: Int + incident_id_gt: Int + similarity_in: [Float] + incident_id_lt: Int + incident_id_lte: Int + similarity_gt: Float + similarity_nin: [Float] + similarity_exists: Boolean + similarity_lte: Float + incident_id_in: [Int] + similarity: Float + incident_id_exists: Boolean + incident_id_ne: Int + similarity_gte: Float + AND: [History_incidentNlp_similar_incidentQueryInput!] + OR: [History_incidentNlp_similar_incidentQueryInput!] + incident_id_gte: Int + incident_id_nin: [Int] + similarity_ne: Float + similarity_lt: Float +} + +input SubmissionNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +type IncidentTsne { + x: Float + y: Float +} + +input ReportInsertInput { + authors: [String]! + tags: [String]! + date_published: DateTime! + embedding: ReportEmbeddingInsertInput + plain_text: String! + epoch_date_modified: Int! + date_submitted: DateTime! + epoch_date_published: Int! + date_modified: DateTime! + report_number: Int! + cloudinary_id: String! + submitters: [String]! + editor_notes: String + url: String! + language: String! + title: String! + image_url: String! + inputs_outputs: [String] + epoch_date_downloaded: Int! + flag: Boolean + _id: ObjectId + description: String + user: ReportUserRelationInput + is_incident_report: Boolean + text: String! + date_downloaded: DateTime! + epoch_date_submitted: Int! + source_domain: String! +} + +input QuickaddInsertInput { + incident_id: Long + source_domain: String + url: String! + _id: ObjectId + date_submitted: String! +} + +input IncidentEmbeddingQueryInput { + from_reports: [Int] + from_reports_in: [Int] + vector: [Float] + vector_nin: [Float] + vector_exists: Boolean + AND: [IncidentEmbeddingQueryInput!] + vector_in: [Float] + OR: [IncidentEmbeddingQueryInput!] + from_reports_exists: Boolean + from_reports_nin: [Int] +} + +input ReportUpdateInput { + epoch_date_published_inc: Int + submitters_unset: Boolean + epoch_date_modified: Int + tags: [String] + inputs_outputs: [String] + date_submitted_unset: Boolean + plain_text: String + epoch_date_submitted: Int + source_domain: String + is_incident_report_unset: Boolean + description_unset: Boolean + epoch_date_downloaded: Int + text_unset: Boolean + language: String + text: String + title: String + epoch_date_submitted_inc: Int + report_number_inc: Int + description: String + epoch_date_published_unset: Boolean + plain_text_unset: Boolean + epoch_date_modified_inc: Int + editor_notes: String + authors: [String] + date_modified: DateTime + embedding: ReportEmbeddingUpdateInput + image_url_unset: Boolean + report_number: Int + epoch_date_published: Int + date_downloaded: DateTime + date_submitted: DateTime + date_downloaded_unset: Boolean + editor_notes_unset: Boolean + _id_unset: Boolean + cloudinary_id_unset: Boolean + date_published: DateTime + url: String + flag_unset: Boolean + submitters: [String] + cloudinary_id: String + embedding_unset: Boolean + report_number_unset: Boolean + url_unset: Boolean + user: ReportUserRelationInput + source_domain_unset: Boolean + flag: Boolean + date_modified_unset: Boolean + user_unset: Boolean + _id: ObjectId + epoch_date_modified_unset: Boolean + title_unset: Boolean + is_incident_report: Boolean + epoch_date_downloaded_unset: Boolean + language_unset: Boolean + inputs_outputs_unset: Boolean + tags_unset: Boolean + date_published_unset: Boolean + epoch_date_downloaded_inc: Int + epoch_date_submitted_unset: Boolean + image_url: String + authors_unset: Boolean +} + +input ChecklistUpdateInput { + risks_unset: Boolean + tags_methods: [String] + id_unset: Boolean + tags_methods_unset: Boolean + about: String + entity_id_unset: Boolean + owner_id: String + risks: [ChecklistRiskUpdateInput] + tags_goals: [String] + name_unset: Boolean + date_updated_unset: Boolean + name: String + date_created: DateTime + date_updated: DateTime + tags_goals_unset: Boolean + _id_unset: Boolean + id: String + tags_other: [String] + tags_other_unset: Boolean + entity_id: String + about_unset: Boolean + _id: ObjectId + owner_id_unset: Boolean + date_created_unset: Boolean +} + +input TaxaField_listUpdateInput { + weight: Int + mongo_type: String + short_name: String + placeholder: String + item_fields: TaxaField_listItem_fieldUpdateInput + long_name_unset: Boolean + public_unset: Boolean + field_number_unset: Boolean + long_description_unset: Boolean + long_description: String + mongo_type_unset: Boolean + complete_from: TaxaField_listComplete_fromUpdateInput + permitted_values: [String] + required_unset: Boolean + short_description_unset: Boolean + weight_inc: Int + item_fields_unset: Boolean + default_unset: Boolean + weight_unset: Boolean + hide_search: Boolean + default: String + display_type_unset: Boolean + short_description: String + display_type: String + permitted_values_unset: Boolean + required: Boolean + placeholder_unset: Boolean + public: Boolean + hide_search_unset: Boolean + long_name: String + field_number: String + instant_facet_unset: Boolean + short_name_unset: Boolean + instant_facet: Boolean + complete_from_unset: Boolean +} + +input NotificationUpdateInput { + incident_id: Int + type_unset: Boolean + _id_unset: Boolean + processed: Boolean + userId: NotificationUserIdRelationInput + incident_id_inc: Int + processed_unset: Boolean + userId_unset: Boolean + type: String + _id: ObjectId + incident_id_unset: Boolean + sentDate: DateTime + sentDate_unset: Boolean +} + +enum UserSortByInput { + _ID_DESC + FIRST_NAME_ASC + FIRST_NAME_DESC + LAST_NAME_ASC + LAST_NAME_DESC + USERID_ASC + USERID_DESC + _ID_ASC +} + +enum History_reportSortByInput { + EPOCH_DATE_DOWNLOADED_DESC + URL_ASC + SOURCE_DOMAIN_DESC + EPOCH_DATE_MODIFIED_ASC + EPOCH_DATE_PUBLISHED_DESC + EPOCH_DATE_SUBMITTED_DESC + MODIFIEDBY_ASC + DATE_MODIFIED_DESC + EDITOR_NOTES_DESC + REPORT_NUMBER_DESC + SOURCE_DOMAIN_ASC + EPOCH_DATE_DOWNLOADED_ASC + IMAGE_URL_DESC + LANGUAGE_ASC + USER_DESC + DATE_DOWNLOADED_ASC + DATE_SUBMITTED_DESC + DESCRIPTION_DESC + EDITOR_NOTES_ASC + REPORT_NUMBER_ASC + _ID_DESC + CLOUDINARY_ID_ASC + EPOCH_DATE_SUBMITTED_ASC + IMAGE_URL_ASC + DESCRIPTION_ASC + EPOCH_DATE_PUBLISHED_ASC + LANGUAGE_DESC + MODIFIEDBY_DESC + DATE_DOWNLOADED_DESC + DATE_MODIFIED_ASC + DATE_PUBLISHED_DESC + DATE_SUBMITTED_ASC + TEXT_ASC + URL_DESC + TEXT_DESC + TITLE_DESC + _ID_ASC + CLOUDINARY_ID_DESC + PLAIN_TEXT_ASC + PLAIN_TEXT_DESC + DATE_PUBLISHED_ASC + EPOCH_DATE_MODIFIED_DESC + TITLE_ASC + USER_ASC +} + +type Quickadd { + _id: ObjectId + date_submitted: String! + incident_id: Long + source_domain: String + url: String! +} + +input NotificationUserIdRelationInput { + create: UserInsertInput + link: String +} + +input History_reportInsertInput { + image_url: String! + date_downloaded: DateTime! + modifiedBy: String + epoch_date_published: Int! + description: String + title: String! + user: String + text: String! + is_incident_report: Boolean + date_published: DateTime! + submitters: [String]! + _id: ObjectId + epoch_date_downloaded: Int! + report_number: Int! + epoch_date_submitted: Int! + tags: [String]! + editor_notes: String + language: String! + epoch_date_modified: Int! + authors: [String]! + inputs_outputs: [String] + date_submitted: DateTime! + embedding: History_reportEmbeddingInsertInput + flag: Boolean + plain_text: String! + url: String! + source_domain: String! + cloudinary_id: String! + date_modified: DateTime! +} + +input TaxaField_listQueryInput { + long_name: String + required: Boolean + weight_gte: Int + short_description_gt: String + field_number_nin: [String] + complete_from_exists: Boolean + placeholder_gte: String + OR: [TaxaField_listQueryInput!] + instant_facet_exists: Boolean + complete_from: TaxaField_listComplete_fromQueryInput + required_ne: Boolean + long_description_gte: String + weight_in: [Int] + short_name_exists: Boolean + long_name_gt: String + display_type: String + mongo_type_exists: Boolean + short_description_gte: String + long_name_gte: String + AND: [TaxaField_listQueryInput!] + mongo_type_lt: String + field_number_lte: String + weight_lte: Int + short_description_in: [String] + field_number_lt: String + mongo_type_gt: String + placeholder_ne: String + placeholder_nin: [String] + instant_facet: Boolean + long_name_ne: String + mongo_type_lte: String + short_name_gt: String + item_fields: TaxaField_listItem_fieldQueryInput + default: String + short_name: String + long_description_ne: String + long_name_in: [String] + display_type_ne: String + mongo_type_in: [String] + default_exists: Boolean + default_gte: String + display_type_exists: Boolean + placeholder_lt: String + hide_search_ne: Boolean + field_number_in: [String] + permitted_values_exists: Boolean + field_number: String + field_number_gt: String + weight_gt: Int + default_gt: String + mongo_type: String + weight_nin: [Int] + long_name_nin: [String] + display_type_lte: String + short_name_nin: [String] + short_description_exists: Boolean + short_description_lt: String + long_description_gt: String + required_exists: Boolean + short_name_gte: String + long_description_lte: String + long_name_lt: String + item_fields_exists: Boolean + public_exists: Boolean + display_type_gte: String + display_type_lt: String + default_in: [String] + hide_search_exists: Boolean + short_description_lte: String + default_ne: String + short_description: String + permitted_values: [String] + mongo_type_ne: String + display_type_gt: String + short_description_nin: [String] + placeholder_lte: String + long_name_lte: String + placeholder: String + weight_lt: Int + mongo_type_nin: [String] + field_number_exists: Boolean + placeholder_gt: String + hide_search: Boolean + short_name_in: [String] + weight: Int + permitted_values_in: [String] + mongo_type_gte: String + permitted_values_nin: [String] + weight_exists: Boolean + long_description_in: [String] + field_number_gte: String + long_description_exists: Boolean + field_number_ne: String + long_description: String + public_ne: Boolean + instant_facet_ne: Boolean + weight_ne: Int + placeholder_exists: Boolean + short_name_lt: String + long_name_exists: Boolean + public: Boolean + default_lte: String + default_nin: [String] + default_lt: String + placeholder_in: [String] + long_description_lt: String + short_description_ne: String + display_type_nin: [String] + short_name_lte: String + short_name_ne: String + long_description_nin: [String] + display_type_in: [String] +} + +input SubmissionEmbeddingQueryInput { + vector_exists: Boolean + vector: [Float] + OR: [SubmissionEmbeddingQueryInput!] + from_text_hash_nin: [String] + vector_nin: [Float] + AND: [SubmissionEmbeddingQueryInput!] + from_text_hash_lt: String + from_text_hash_exists: Boolean + from_text_hash_gt: String + from_text_hash_gte: String + vector_in: [Float] + from_text_hash_lte: String + from_text_hash_in: [String] + from_text_hash: String + from_text_hash_ne: String +} + +input ReportQueryInput { + plain_text_nin: [String] + flag_ne: Boolean + epoch_date_submitted_nin: [Int] + user: UserQueryInput + date_downloaded_in: [DateTime] + is_incident_report_exists: Boolean + user_exists: Boolean + plain_text_ne: String + text_gte: String + title_nin: [String] + submitters_exists: Boolean + _id_ne: ObjectId + cloudinary_id_gt: String + date_modified_exists: Boolean + title_lt: String + flag_exists: Boolean + epoch_date_downloaded: Int + date_modified_gt: DateTime + AND: [ReportQueryInput!] + authors_exists: Boolean + epoch_date_submitted_gte: Int + text_lte: String + report_number_lt: Int + url_gte: String + url_gt: String + image_url_lte: String + image_url_lt: String + language: String + editor_notes_nin: [String] + report_number_exists: Boolean + title_ne: String + text_gt: String + date_downloaded_gte: DateTime + inputs_outputs: [String] + url_nin: [String] + editor_notes_gte: String + epoch_date_submitted_gt: Int + editor_notes_lt: String + epoch_date_submitted_exists: Boolean + report_number: Int + epoch_date_downloaded_nin: [Int] + cloudinary_id_in: [String] + date_submitted_ne: DateTime + plain_text_in: [String] + tags: [String] + plain_text_gt: String + report_number_gte: Int + embedding_exists: Boolean + date_submitted: DateTime + epoch_date_downloaded_gt: Int + inputs_outputs_nin: [String] + date_published_gte: DateTime + source_domain_gt: String + report_number_gt: Int + editor_notes_ne: String + date_modified_nin: [DateTime] + epoch_date_submitted_ne: Int + url_exists: Boolean + date_published_in: [DateTime] + plain_text_lte: String + epoch_date_submitted_lte: Int + editor_notes: String + epoch_date_published_exists: Boolean + _id_exists: Boolean + epoch_date_modified_ne: Int + cloudinary_id: String + date_submitted_in: [DateTime] + language_in: [String] + language_gte: String + date_downloaded_exists: Boolean + epoch_date_downloaded_in: [Int] + date_published: DateTime + source_domain_ne: String + report_number_lte: Int + epoch_date_modified_lte: Int + url_ne: String + cloudinary_id_exists: Boolean + authors_in: [String] + submitters_nin: [String] + date_downloaded_nin: [DateTime] + date_published_lt: DateTime + epoch_date_published: Int + text_nin: [String] + date_downloaded: DateTime + epoch_date_modified_nin: [Int] + image_url: String + epoch_date_modified_gte: Int + is_incident_report: Boolean + text_ne: String + text_in: [String] + language_nin: [String] + image_url_nin: [String] + epoch_date_submitted_in: [Int] + title_exists: Boolean + epoch_date_modified_in: [Int] + date_modified_ne: DateTime + source_domain_gte: String + date_published_ne: DateTime + cloudinary_id_nin: [String] + _id_gt: ObjectId + epoch_date_modified_gt: Int + source_domain_lte: String + tags_exists: Boolean + OR: [ReportQueryInput!] + _id: ObjectId + image_url_in: [String] + source_domain_lt: String + title_gte: String + epoch_date_published_gte: Int + cloudinary_id_lte: String + epoch_date_downloaded_ne: Int + epoch_date_downloaded_gte: Int + plain_text_gte: String + image_url_gte: String + epoch_date_published_lte: Int + language_ne: String + epoch_date_modified: Int + epoch_date_published_ne: Int + date_submitted_lt: DateTime + report_number_ne: Int + description_gt: String + url: String + _id_gte: ObjectId + epoch_date_published_gt: Int + date_downloaded_lt: DateTime + description_lte: String + tags_nin: [String] + tags_in: [String] + epoch_date_published_in: [Int] + _id_lte: ObjectId + image_url_ne: String + editor_notes_gt: String + date_submitted_gte: DateTime + language_gt: String + report_number_in: [Int] + _id_nin: [ObjectId] + flag: Boolean + url_lt: String + title_gt: String + source_domain_in: [String] + _id_lt: ObjectId + is_incident_report_ne: Boolean + plain_text: String + description_in: [String] + source_domain_nin: [String] + date_submitted_nin: [DateTime] + source_domain_exists: Boolean + url_in: [String] + date_submitted_exists: Boolean + description_gte: String + date_modified_gte: DateTime + date_published_gt: DateTime + language_lt: String + submitters: [String] + text_lt: String + date_downloaded_lte: DateTime + title: String + image_url_exists: Boolean + date_submitted_gt: DateTime + url_lte: String + epoch_date_submitted: Int + description_nin: [String] + date_modified: DateTime + epoch_date_modified_lt: Int + cloudinary_id_gte: String + date_downloaded_gt: DateTime + language_exists: Boolean + epoch_date_submitted_lt: Int + description_exists: Boolean + epoch_date_published_lt: Int + epoch_date_modified_exists: Boolean + epoch_date_downloaded_exists: Boolean + title_in: [String] + authors: [String] + epoch_date_published_nin: [Int] + date_modified_in: [DateTime] + report_number_nin: [Int] + date_submitted_lte: DateTime + date_downloaded_ne: DateTime + text_exists: Boolean + date_modified_lt: DateTime + source_domain: String + cloudinary_id_lt: String + cloudinary_id_ne: String + epoch_date_downloaded_lt: Int + editor_notes_lte: String + _id_in: [ObjectId] + date_published_exists: Boolean + description_lt: String + inputs_outputs_in: [String] + text: String + plain_text_lt: String + date_modified_lte: DateTime + editor_notes_in: [String] + authors_nin: [String] + description: String + language_lte: String + date_published_lte: DateTime + inputs_outputs_exists: Boolean + description_ne: String + submitters_in: [String] + plain_text_exists: Boolean + image_url_gt: String + epoch_date_downloaded_lte: Int + embedding: ReportEmbeddingQueryInput + editor_notes_exists: Boolean + date_published_nin: [DateTime] + title_lte: String +} + +enum History_incidentSortByInput { + _ID_ASC + _ID_DESC + DATE_ASC + DESCRIPTION_ASC + MODIFIEDBY_ASC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_ASC + INCIDENT_ID_DESC + TITLE_DESC + DESCRIPTION_DESC + EDITOR_NOTES_ASC + EPOCH_DATE_MODIFIED_DESC + INCIDENT_ID_ASC + MODIFIEDBY_DESC + DATE_DESC + TITLE_ASC +} + +type AppUser { + email: String +} + +input History_incidentEmbeddingQueryInput { + vector_exists: Boolean + AND: [History_incidentEmbeddingQueryInput!] + OR: [History_incidentEmbeddingQueryInput!] + from_reports_exists: Boolean + vector_in: [Float] + from_reports_nin: [Int] + vector: [Float] + from_reports: [Int] + from_reports_in: [Int] + vector_nin: [Float] +} + +type ClassificationAttribute { + short_name: String + value_json: String +} + +type Mutation { + createDefaultAdminUser(input: CreateDefaultAdminUserInput): DefaultAdminUser + createVariant(input: CreateVariantInput): CreateVariantPayload + deleteManyCandidates(query: CandidateQueryInput): DeleteManyPayload + deleteManyChecklists(query: ChecklistQueryInput): DeleteManyPayload + deleteManyClassifications(query: ClassificationQueryInput): DeleteManyPayload + deleteManyDuplicates(query: DuplicateQueryInput): DeleteManyPayload + deleteManyEntities(query: EntityQueryInput): DeleteManyPayload + deleteManyHistory_incidents(query: History_incidentQueryInput): DeleteManyPayload + deleteManyHistory_reports(query: History_reportQueryInput): DeleteManyPayload + deleteManyIncidents(query: IncidentQueryInput): DeleteManyPayload + deleteManyNotifications(query: NotificationQueryInput): DeleteManyPayload + deleteManyQuickadds(query: QuickaddQueryInput): DeleteManyPayload + deleteManyReports(query: ReportQueryInput): DeleteManyPayload + deleteManySubmissions(query: SubmissionQueryInput): DeleteManyPayload + deleteManySubscriptions(query: SubscriptionQueryInput): DeleteManyPayload + deleteManyTaxas(query: TaxaQueryInput): DeleteManyPayload + deleteManyUsers(query: UserQueryInput): DeleteManyPayload + deleteOneCandidate(query: CandidateQueryInput!): Candidate + deleteOneChecklist(query: ChecklistQueryInput!): Checklist + deleteOneClassification(query: ClassificationQueryInput!): Classification + deleteOneDuplicate(query: DuplicateQueryInput!): Duplicate + deleteOneEntity(query: EntityQueryInput!): Entity + deleteOneHistory_incident(query: History_incidentQueryInput!): History_incident + deleteOneHistory_report(query: History_reportQueryInput!): History_report + deleteOneIncident(query: IncidentQueryInput!): Incident + deleteOneNotification(query: NotificationQueryInput!): Notification + deleteOneQuickadd(query: QuickaddQueryInput!): Quickadd + deleteOneReport(query: ReportQueryInput!): Report + deleteOneSubmission(query: SubmissionQueryInput!): Submission + deleteOneSubscription(query: SubscriptionQueryInput!): Subscription + deleteOneTaxa(query: TaxaQueryInput!): Taxa + deleteOneUser(query: UserQueryInput!): User + getUser(input: GetUserInput): AppUser + insertManyCandidates(data: [CandidateInsertInput!]!): InsertManyPayload + insertManyChecklists(data: [ChecklistInsertInput!]!): InsertManyPayload + insertManyClassifications(data: [ClassificationInsertInput!]!): InsertManyPayload + insertManyDuplicates(data: [DuplicateInsertInput!]!): InsertManyPayload + insertManyEntities(data: [EntityInsertInput!]!): InsertManyPayload + insertManyHistory_incidents(data: [History_incidentInsertInput!]!): InsertManyPayload + insertManyHistory_reports(data: [History_reportInsertInput!]!): InsertManyPayload + insertManyIncidents(data: [IncidentInsertInput!]!): InsertManyPayload + insertManyNotifications(data: [NotificationInsertInput!]!): InsertManyPayload + insertManyQuickadds(data: [QuickaddInsertInput!]!): InsertManyPayload + insertManyReports(data: [ReportInsertInput!]!): InsertManyPayload + insertManySubmissions(data: [SubmissionInsertInput!]!): InsertManyPayload + insertManySubscriptions(data: [SubscriptionInsertInput!]!): InsertManyPayload + insertManyTaxas(data: [TaxaInsertInput!]!): InsertManyPayload + insertManyUsers(data: [UserInsertInput!]!): InsertManyPayload + insertOneCandidate(data: CandidateInsertInput!): Candidate + insertOneChecklist(data: ChecklistInsertInput!): Checklist + insertOneClassification(data: ClassificationInsertInput!): Classification + insertOneDuplicate(data: DuplicateInsertInput!): Duplicate + insertOneEntity(data: EntityInsertInput!): Entity + insertOneHistory_incident(data: History_incidentInsertInput!): History_incident + insertOneHistory_report(data: History_reportInsertInput!): History_report + insertOneIncident(data: IncidentInsertInput!): Incident + insertOneNotification(data: NotificationInsertInput!): Notification + insertOneQuickadd(data: QuickaddInsertInput!): Quickadd + insertOneReport(data: ReportInsertInput!): Report + insertOneSubmission(data: SubmissionInsertInput!): Submission + insertOneSubscription(data: SubscriptionInsertInput!): Subscription + insertOneTaxa(data: TaxaInsertInput!): Taxa + insertOneUser(data: UserInsertInput!): User + linkReportsToIncidents(input: LinkReportsToIncidentsInput): [Incident] + logIncidentHistory(input: History_incidentInsertInput): LogIncidentHistoryPayload + logReportHistory(input: History_reportInsertInput): LogReportHistoryPayload + processNotifications: Int + promoteSubmissionToReport(input: PromoteSubmissionToReportInput): PromoteSubmissionToReportPayload + replaceOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate + replaceOneChecklist(query: ChecklistQueryInput, data: ChecklistInsertInput!): Checklist + replaceOneClassification(data: ClassificationInsertInput!, query: ClassificationQueryInput): Classification + replaceOneDuplicate(query: DuplicateQueryInput, data: DuplicateInsertInput!): Duplicate + replaceOneEntity(query: EntityQueryInput, data: EntityInsertInput!): Entity + replaceOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident + replaceOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report + replaceOneIncident(query: IncidentQueryInput, data: IncidentInsertInput!): Incident + replaceOneNotification(query: NotificationQueryInput, data: NotificationInsertInput!): Notification + replaceOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd + replaceOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report + replaceOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission + replaceOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription + replaceOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa + replaceOneUser(query: UserQueryInput, data: UserInsertInput!): User + updateManyCandidates(set: CandidateUpdateInput!, query: CandidateQueryInput): UpdateManyPayload + updateManyChecklists(query: ChecklistQueryInput, set: ChecklistUpdateInput!): UpdateManyPayload + updateManyClassifications(query: ClassificationQueryInput, set: ClassificationUpdateInput!): UpdateManyPayload + updateManyDuplicates(query: DuplicateQueryInput, set: DuplicateUpdateInput!): UpdateManyPayload + updateManyEntities(query: EntityQueryInput, set: EntityUpdateInput!): UpdateManyPayload + updateManyHistory_incidents(query: History_incidentQueryInput, set: History_incidentUpdateInput!): UpdateManyPayload + updateManyHistory_reports(query: History_reportQueryInput, set: History_reportUpdateInput!): UpdateManyPayload + updateManyIncidents(query: IncidentQueryInput, set: IncidentUpdateInput!): UpdateManyPayload + updateManyNotifications(query: NotificationQueryInput, set: NotificationUpdateInput!): UpdateManyPayload + updateManyQuickadds(query: QuickaddQueryInput, set: QuickaddUpdateInput!): UpdateManyPayload + updateManyReports(query: ReportQueryInput, set: ReportUpdateInput!): UpdateManyPayload + updateManySubmissions(query: SubmissionQueryInput, set: SubmissionUpdateInput!): UpdateManyPayload + updateManySubscriptions(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): UpdateManyPayload + updateManyTaxas(query: TaxaQueryInput, set: TaxaUpdateInput!): UpdateManyPayload + updateManyUsers(query: UserQueryInput, set: UserUpdateInput!): UpdateManyPayload + updateOneCandidate(query: CandidateQueryInput, set: CandidateUpdateInput!): Candidate + updateOneChecklist(query: ChecklistQueryInput, set: ChecklistUpdateInput!): Checklist + updateOneClassification(query: ClassificationQueryInput, set: ClassificationUpdateInput!): Classification + updateOneDuplicate(query: DuplicateQueryInput, set: DuplicateUpdateInput!): Duplicate + updateOneEntity(query: EntityQueryInput, set: EntityUpdateInput!): Entity + updateOneHistory_incident(query: History_incidentQueryInput, set: History_incidentUpdateInput!): History_incident + updateOneHistory_report(query: History_reportQueryInput, set: History_reportUpdateInput!): History_report + updateOneIncident(query: IncidentQueryInput, set: IncidentUpdateInput!): Incident + updateOneNotification(query: NotificationQueryInput, set: NotificationUpdateInput!): Notification + updateOneQuickadd(query: QuickaddQueryInput, set: QuickaddUpdateInput!): Quickadd + updateOneReport(query: ReportQueryInput, set: ReportUpdateInput!): Report + updateOneReportTranslation(input: UpdateOneReportTranslationInput): Report + updateOneSubmission(query: SubmissionQueryInput, set: SubmissionUpdateInput!): Submission + updateOneSubscription(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): Subscription + updateOneTaxa(query: TaxaQueryInput, set: TaxaUpdateInput!): Taxa + updateOneUser(query: UserQueryInput, set: UserUpdateInput!): User + upsertOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate + upsertOneChecklist(query: ChecklistQueryInput, data: ChecklistInsertInput!): Checklist + upsertOneClassification(query: ClassificationQueryInput, data: ClassificationInsertInput!): Classification + upsertOneDuplicate(data: DuplicateInsertInput!, query: DuplicateQueryInput): Duplicate + upsertOneEntity(query: EntityQueryInput, data: EntityInsertInput!): Entity + upsertOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident + upsertOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report + upsertOneIncident(query: IncidentQueryInput, data: IncidentInsertInput!): Incident + upsertOneNotification(data: NotificationInsertInput!, query: NotificationQueryInput): Notification + upsertOneQuickadd(data: QuickaddInsertInput!, query: QuickaddQueryInput): Quickadd + upsertOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report + upsertOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission + upsertOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription + upsertOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa + upsertOneUser(query: UserQueryInput, data: UserInsertInput!): User +} + +input ClassificationUpdateInput { + namespace_unset: Boolean + _id_unset: Boolean + reports_unset: Boolean + notes: String + attributes_unset: Boolean + publish_unset: Boolean + _id: ObjectId + attributes: [ClassificationAttributeUpdateInput] + incidents: ClassificationIncidentsRelationInput + namespace: String + publish: Boolean + incidents_unset: Boolean + notes_unset: Boolean + reports: ClassificationReportsRelationInput +} + +input TaxaField_listComplete_fromUpdateInput { + current: [String] + current_unset: Boolean + all: [String] + all_unset: Boolean +} + +input SubmissionEmbeddingUpdateInput { + vector_unset: Boolean + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] +} + +type Query { + candidate(query: CandidateQueryInput): Candidate + candidates(query: CandidateQueryInput, limit: Int = 100, sortBy: CandidateSortByInput): [Candidate]! + checklist(query: ChecklistQueryInput): Checklist + checklists(query: ChecklistQueryInput, limit: Int = 100, sortBy: ChecklistSortByInput): [Checklist]! + classification(query: ClassificationQueryInput): Classification + classifications(sortBy: ClassificationSortByInput, query: ClassificationQueryInput, limit: Int = 100): [Classification]! + duplicate(query: DuplicateQueryInput): Duplicate + duplicates(sortBy: DuplicateSortByInput, query: DuplicateQueryInput, limit: Int = 100): [Duplicate]! + entities(limit: Int = 100, sortBy: EntitySortByInput, query: EntityQueryInput): [Entity]! + entity(query: EntityQueryInput): Entity + history_incident(query: History_incidentQueryInput): History_incident + history_incidents(query: History_incidentQueryInput, limit: Int = 100, sortBy: History_incidentSortByInput): [History_incident]! + history_report(query: History_reportQueryInput): History_report + history_reports(query: History_reportQueryInput, limit: Int = 100, sortBy: History_reportSortByInput): [History_report]! + incident(query: IncidentQueryInput): Incident + incidents(sortBy: IncidentSortByInput, query: IncidentQueryInput, limit: Int = 100): [Incident]! + notification(query: NotificationQueryInput): Notification + notifications(sortBy: NotificationSortByInput, query: NotificationQueryInput, limit: Int = 100): [Notification]! + quickadd(query: QuickaddQueryInput): Quickadd + quickadds(query: QuickaddQueryInput, limit: Int = 100, sortBy: QuickaddSortByInput): [Quickadd]! + report(query: ReportQueryInput): Report + reports(query: ReportQueryInput, limit: Int = 100, sortBy: ReportSortByInput): [Report]! + risks(input: RisksInput): [RisksPayloadItem] + submission(query: SubmissionQueryInput): Submission + submissions(query: SubmissionQueryInput, limit: Int = 100, sortBy: SubmissionSortByInput): [Submission]! + subscription(query: SubscriptionQueryInput): Subscription + subscriptions(query: SubscriptionQueryInput, limit: Int = 100, sortBy: SubscriptionSortByInput): [Subscription]! + taxa(query: TaxaQueryInput): Taxa + taxas(query: TaxaQueryInput, limit: Int = 100, sortBy: TaxaSortByInput): [Taxa]! + user(query: UserQueryInput): User + users(query: UserQueryInput, limit: Int = 100, sortBy: UserSortByInput): [User]! +} + +type Incident { + AllegedDeployerOfAISystem: [Entity] + AllegedDeveloperOfAISystem: [Entity] + AllegedHarmedOrNearlyHarmedParties: [Entity] + _id: ObjectId + date: String! + description: String + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [User]! + embedding: IncidentEmbedding + epoch_date_modified: Int + flagged_dissimilar_incidents: [Int] + incident_id: Int! + nlp_similar_incidents: [IncidentNlp_similar_incident] + reports: [Report]! + title: String! + tsne: IncidentTsne +} + +input SubscriptionIncident_idRelationInput { + create: IncidentInsertInput + link: Int +} + +input TaxaField_listItem_fieldComplete_fromInsertInput { + all: [String] + current: [String] + entities: Boolean +} + +input IncidentTsneInsertInput { + x: Float + y: Float +} + +type TaxaDummy_field { + field_number: String + short_name: String +} + +input IncidentQueryInput { + AllegedDeployerOfAISystem_nin: [EntityQueryInput] + incident_id_lte: Int + editor_similar_incidents: [Int] + epoch_date_modified_nin: [Int] + AllegedDeployerOfAISystem_exists: Boolean + title: String + editor_notes_ne: String + title_gte: String + description_lt: String + date_ne: String + editor_similar_incidents_in: [Int] + date: String + editor_dissimilar_incidents_exists: Boolean + _id: ObjectId + description_lte: String + editor_notes_gt: String + incident_id_ne: Int + description_exists: Boolean + incident_id_nin: [Int] + epoch_date_modified_gte: Int + editor_dissimilar_incidents: [Int] + epoch_date_modified_ne: Int + epoch_date_modified_exists: Boolean + title_nin: [String] + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + epoch_date_modified_lt: Int + nlp_similar_incidents_in: [IncidentNlp_similar_incidentQueryInput] + editors: [UserQueryInput] + incident_id: Int + _id_nin: [ObjectId] + AllegedDeveloperOfAISystem_in: [EntityQueryInput] + date_lte: String + _id_lt: ObjectId + incident_id_in: [Int] + title_exists: Boolean + date_lt: String + nlp_similar_incidents: [IncidentNlp_similar_incidentQueryInput] + epoch_date_modified: Int + AllegedDeployerOfAISystem_in: [EntityQueryInput] + epoch_date_modified_in: [Int] + description_nin: [String] + _id_gte: ObjectId + editor_notes_lt: String + description: String + tsne_exists: Boolean + editor_notes_lte: String + reports: [ReportQueryInput] + editor_similar_incidents_nin: [Int] + editors_exists: Boolean + editors_nin: [UserQueryInput] + embedding: IncidentEmbeddingQueryInput + title_ne: String + flagged_dissimilar_incidents_in: [Int] + editor_similar_incidents_exists: Boolean + reports_nin: [ReportQueryInput] + _id_exists: Boolean + tsne: IncidentTsneQueryInput + AND: [IncidentQueryInput!] + editor_dissimilar_incidents_nin: [Int] + _id_lte: ObjectId + epoch_date_modified_lte: Int + OR: [IncidentQueryInput!] + description_ne: String + flagged_dissimilar_incidents_exists: Boolean + flagged_dissimilar_incidents_nin: [Int] + title_gt: String + AllegedDeployerOfAISystem: [EntityQueryInput] + description_gte: String + _id_ne: ObjectId + reports_in: [ReportQueryInput] + description_gt: String + date_gt: String + title_lt: String + editor_dissimilar_incidents_in: [Int] + AllegedDeveloperOfAISystem: [EntityQueryInput] + date_in: [String] + flagged_dissimilar_incidents: [Int] + title_in: [String] + title_lte: String + date_gte: String + date_exists: Boolean + editor_notes_gte: String + AllegedHarmedOrNearlyHarmedParties_nin: [EntityQueryInput] + editor_notes_nin: [String] + incident_id_lt: Int + editor_notes: String + incident_id_exists: Boolean + AllegedDeveloperOfAISystem_nin: [EntityQueryInput] + embedding_exists: Boolean + AllegedHarmedOrNearlyHarmedParties_in: [EntityQueryInput] + nlp_similar_incidents_exists: Boolean + editor_notes_in: [String] + _id_in: [ObjectId] + incident_id_gt: Int + reports_exists: Boolean + AllegedHarmedOrNearlyHarmedParties: [EntityQueryInput] + nlp_similar_incidents_nin: [IncidentNlp_similar_incidentQueryInput] + epoch_date_modified_gt: Int + AllegedDeveloperOfAISystem_exists: Boolean + date_nin: [String] + editor_notes_exists: Boolean + _id_gt: ObjectId + editors_in: [UserQueryInput] + description_in: [String] + incident_id_gte: Int +} + +type IncidentEmbedding { + from_reports: [Int] + vector: [Float] +} + +type RisksPayloadItem { + precedents: [RisksPayloadPrecedent] + tag: String + tags: [String] + title: String +} + +input History_reportEmbeddingQueryInput { + from_text_hash_in: [String] + from_text_hash: String + from_text_hash_gt: String + OR: [History_reportEmbeddingQueryInput!] + from_text_hash_ne: String + vector_in: [Float] + from_text_hash_lt: String + AND: [History_reportEmbeddingQueryInput!] + from_text_hash_exists: Boolean + vector_exists: Boolean + vector: [Float] + vector_nin: [Float] + from_text_hash_lte: String + from_text_hash_gte: String + from_text_hash_nin: [String] +} + +input IncidentInsertInput { + nlp_similar_incidents: [IncidentNlp_similar_incidentInsertInput] + editor_notes: String + editor_similar_incidents: [Int] + tsne: IncidentTsneInsertInput + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput + editor_dissimilar_incidents: [Int] + flagged_dissimilar_incidents: [Int] + description: String + incident_id: Int! + editors: IncidentEditorsRelationInput! + title: String! + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + reports: IncidentReportsRelationInput! + _id: ObjectId + date: String! + embedding: IncidentEmbeddingInsertInput + epoch_date_modified: Int +} + +enum QuickaddSortByInput { + _ID_DESC + INCIDENT_ID_ASC + URL_ASC + URL_DESC + SOURCE_DOMAIN_ASC + SOURCE_DOMAIN_DESC + _ID_ASC + DATE_SUBMITTED_ASC + DATE_SUBMITTED_DESC + INCIDENT_ID_DESC +} + +enum DuplicateSortByInput { + _ID_ASC + _ID_DESC + DUPLICATE_INCIDENT_NUMBER_ASC + DUPLICATE_INCIDENT_NUMBER_DESC + TRUE_INCIDENT_NUMBER_ASC + TRUE_INCIDENT_NUMBER_DESC +} + +input ChecklistRiskPrecedentUpdateInput { + description_unset: Boolean + title_unset: Boolean + incident_id_inc: Int + title: String + tags_unset: Boolean + description: String + incident_id: Int + incident_id_unset: Boolean + tags: [String] +} + +input SubscriptionQueryInput { + OR: [SubscriptionQueryInput!] + type_exists: Boolean + _id_gt: ObjectId + _id_nin: [ObjectId] + type_ne: String + incident_id_exists: Boolean + _id: ObjectId + type_gt: String + _id_lte: ObjectId + entityId: EntityQueryInput + userId: UserQueryInput + _id_gte: ObjectId + _id_exists: Boolean + userId_exists: Boolean + type: String + type_nin: [String] + type_gte: String + entityId_exists: Boolean + incident_id: IncidentQueryInput + AND: [SubscriptionQueryInput!] + _id_in: [ObjectId] + type_lt: String + _id_lt: ObjectId + _id_ne: ObjectId + type_lte: String + type_in: [String] +} + +input History_reportUpdateInput { + is_incident_report_unset: Boolean + language_unset: Boolean + epoch_date_downloaded_inc: Int + report_number_unset: Boolean + flag_unset: Boolean + image_url: String + description_unset: Boolean + submitters: [String] + date_downloaded_unset: Boolean + url_unset: Boolean + date_modified_unset: Boolean + editor_notes: String + language: String + epoch_date_published: Int + epoch_date_downloaded: Int + user_unset: Boolean + tags: [String] + epoch_date_modified_unset: Boolean + epoch_date_submitted: Int + date_submitted_unset: Boolean + modifiedBy: String + modifiedBy_unset: Boolean + is_incident_report: Boolean + url: String + report_number: Int + text: String + epoch_date_submitted_inc: Int + embedding_unset: Boolean + cloudinary_id_unset: Boolean + editor_notes_unset: Boolean + report_number_inc: Int + date_published_unset: Boolean + epoch_date_published_inc: Int + authors_unset: Boolean + title_unset: Boolean + date_published: DateTime + plain_text: String + date_modified: DateTime + authors: [String] + date_submitted: DateTime + epoch_date_modified: Int + epoch_date_downloaded_unset: Boolean + submitters_unset: Boolean + _id_unset: Boolean + embedding: History_reportEmbeddingUpdateInput + source_domain_unset: Boolean + plain_text_unset: Boolean + date_downloaded: DateTime + description: String + inputs_outputs: [String] + epoch_date_modified_inc: Int + tags_unset: Boolean + source_domain: String + epoch_date_published_unset: Boolean + flag: Boolean + title: String + user: String + inputs_outputs_unset: Boolean + _id: ObjectId + image_url_unset: Boolean + epoch_date_submitted_unset: Boolean + text_unset: Boolean + cloudinary_id: String +} + +enum TaxaSortByInput { + WEIGHT_ASC + WEIGHT_DESC + _ID_ASC + _ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + NAMESPACE_ASC + NAMESPACE_DESC +} + +input History_reportEmbeddingInsertInput { + vector: [Float] + from_text_hash: String +} + +input UserUpdateInput { + _id_unset: Boolean + last_name: String + roles: [String] + roles_unset: Boolean + _id: ObjectId + last_name_unset: Boolean + first_name: String + userId_unset: Boolean + first_name_unset: Boolean + userId: String +} + +input SubmissionDeployersRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input ChecklistInsertInput { + owner_id: String + tags_goals: [String] + about: String + name: String + id: String + risks: [ChecklistRiskInsertInput] + tags_methods: [String] + _id: ObjectId + tags_other: [String] + date_updated: DateTime + date_created: DateTime + entity_id: String +} + +type LogReportHistoryPayload { + report_number: Int +} + +type UserAdminDatum { + creationDate: DateTime + disabled: Boolean + email: String + lastAuthenticationDate: DateTime +} + +type RisksPayloadPrecedent { + AllegedDeployerOfAISystem: [String] + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] + _id: ObjectId + date: String + description: String + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [String] + embedding: RisksPayloadPrecedentEmbedding + epoch_date_modified: Int + flagged_dissimilar_incidents: [Int] + incident_id: Int + nlp_similar_incidents: [RisksPayloadPrecedentNlp_similar_incident] + reports: [Int] + tags: [String] + title: String + tsne: RisksPayloadPrecedentTsne +} + +type DeleteManyPayload { + deletedCount: Int! +} + +input CandidateInsertInput { + date_downloaded: String + match: Boolean! + date_published: String + plain_text: String + similarity: Float + matching_harm_keywords: [String] + matching_keywords: [String] + text: String + image_url: String + epoch_date_published: Int + authors: [String] + epoch_date_downloaded: Int + title: String + dismissed: Boolean + matching_entities: [String] + classification_similarity: [CandidateClassification_similarityInsertInput] + _id: ObjectId + source_domain: String + embedding: CandidateEmbeddingInsertInput + language: String + url: String! +} + +input CreateVariantInput { + incidentId: Int + variant: CreateVariantInputVariant +} + +type Subscription { + _id: ObjectId + entityId: Entity + incident_id: Incident + type: String! + userId: User! +} + +input IncidentEditorsRelationInput { + create: [UserInsertInput] + link: [String] +} + +input TaxaField_listInsertInput { + public: Boolean + short_description: String + complete_from: TaxaField_listComplete_fromInsertInput + permitted_values: [String] + placeholder: String + item_fields: TaxaField_listItem_fieldInsertInput + long_name: String + display_type: String + mongo_type: String + field_number: String + hide_search: Boolean + default: String + instant_facet: Boolean + required: Boolean + weight: Int + long_description: String + short_name: String +} + +scalar ObjectId + +type TaxaField_listItem_field { + complete_from: TaxaField_listItem_fieldComplete_from + default: String + display_type: String + field_number: String + instant_facet: Boolean + long_description: String + long_name: String + mongo_type: String + permitted_values: [String] + placeholder: String + public: Boolean + required: Boolean + short_description: String + short_name: String + weight: Int +} + +type Submission { + _id: ObjectId + authors: [String]! + cloudinary_id: String + date_downloaded: String! + date_modified: String! + date_published: String! + date_submitted: String! + deployers: [Entity] + description: String + developers: [Entity] + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + embedding: SubmissionEmbedding + epoch_date_modified: Int + harmed_parties: [Entity] + image_url: String! + incident_date: String + incident_editors: [User] + incident_ids: [Int] + incident_title: String + language: String! + nlp_similar_incidents: [SubmissionNlp_similar_incident] + plain_text: String + source_domain: String! + status: String + submitters: [String]! + tags: [String]! + text: String! + title: String! + url: String! + user: User +} + +type RisksPayloadPrecedentTsne { + x: Float + y: Float +} + +input ClassificationIncidentsRelationInput { + link: [Int] + create: [IncidentInsertInput] +} + +scalar Long + +type Entity { + _id: ObjectId + entity_id: String + name: String +} + +input CandidateClassification_similarityUpdateInput { + similarity_unset: Boolean + classification: String + classification_unset: Boolean + similarity: Float + similarity_inc: Float +} + +input History_incidentTsneUpdateInput { + x_inc: Float + x_unset: Boolean + y: Float + y_inc: Float + y_unset: Boolean + x: Float +} + +input SubscriptionUpdateInput { + entityId_unset: Boolean + type_unset: Boolean + incident_id: SubscriptionIncident_idRelationInput + incident_id_unset: Boolean + userId: SubscriptionUserIdRelationInput + _id: ObjectId + type: String + userId_unset: Boolean + _id_unset: Boolean + entityId: SubscriptionEntityIdRelationInput +} + +input TaxaUpdateInput { + weight_unset: Boolean + complete_entities_unset: Boolean + field_list_unset: Boolean + _id_unset: Boolean + namespace: String + _id: ObjectId + dummy_fields: [TaxaDummy_fieldUpdateInput] + field_list: [TaxaField_listUpdateInput] + namespace_unset: Boolean + weight: Int + description_unset: Boolean + weight_inc: Int + dummy_fields_unset: Boolean + complete_entities: Boolean + description: String +} + +type TaxaField_listItem_fieldComplete_from { + all: [String] + current: [String] + entities: Boolean +} + +type ReportTranslation { + text: String + title: String +} + +type Checklist { + _id: ObjectId + about: String + date_created: DateTime + date_updated: DateTime + entity_id: String + id: String + name: String + owner_id: String + risks: [ChecklistRisk] + tags_goals: [String] + tags_methods: [String] + tags_other: [String] +} + +input IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input ChecklistRiskUpdateInput { + tags: [String] + likelihood: String + risk_notes: String + risk_status_unset: Boolean + tags_unset: Boolean + title_unset: Boolean + generated: Boolean + risk_notes_unset: Boolean + touched: Boolean + touched_unset: Boolean + precedents: [ChecklistRiskPrecedentUpdateInput] + precedents_unset: Boolean + severity_unset: Boolean + id_unset: Boolean + severity: String + likelihood_unset: Boolean + title: String + generated_unset: Boolean + risk_status: String + id: String +} + +scalar DateTime + +input ReportEmbeddingQueryInput { + from_text_hash_lte: String + from_text_hash_in: [String] + from_text_hash_nin: [String] + from_text_hash_exists: Boolean + vector: [Float] + from_text_hash_lt: String + from_text_hash_ne: String + vector_exists: Boolean + vector_nin: [Float] + from_text_hash_gte: String + vector_in: [Float] + from_text_hash_gt: String + from_text_hash: String + AND: [ReportEmbeddingQueryInput!] + OR: [ReportEmbeddingQueryInput!] +} + +type CandidateClassification_similarity { + classification: String + similarity: Float +} + +type InsertManyPayload { + insertedIds: [ObjectId]! +} + +input EntityInsertInput { + _id: ObjectId + entity_id: String + name: String +} + +input History_incidentNlp_similar_incidentUpdateInput { + incident_id: Int + incident_id_inc: Int + incident_id_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean +} + +type Report { + _id: ObjectId + authors: [String]! + cloudinary_id: String! + date_downloaded: DateTime! + date_modified: DateTime! + date_published: DateTime! + date_submitted: DateTime! + description: String + editor_notes: String + embedding: ReportEmbedding + epoch_date_downloaded: Int! + epoch_date_modified: Int! + epoch_date_published: Int! + epoch_date_submitted: Int! + flag: Boolean + image_url: String! + inputs_outputs: [String] + is_incident_report: Boolean + language: String! + plain_text: String! + report_number: Int! + source_domain: String! + submitters: [String]! + tags: [String]! + text: String! + title: String! + translations(input: String): ReportTranslation + url: String! + user: User +} + +type History_reportEmbedding { + from_text_hash: String + vector: [Float] +} + +input TaxaField_listComplete_fromInsertInput { + all: [String] + current: [String] +} + +input History_incidentUpdateInput { + editor_dissimilar_incidents: [Int] + date: String + modifiedBy_unset: Boolean + date_unset: Boolean + flagged_dissimilar_incidents: [Int] + description: String + AllegedDeployerOfAISystem: [String] + editors_unset: Boolean + title_unset: Boolean + reports_unset: Boolean + incident_id_inc: Int + nlp_similar_incidents: [History_incidentNlp_similar_incidentUpdateInput] + editor_notes_unset: Boolean + editor_dissimilar_incidents_unset: Boolean + tsne_unset: Boolean + AllegedDeveloperOfAISystem: [String] + incident_id: Int + AllegedDeployerOfAISystem_unset: Boolean + nlp_similar_incidents_unset: Boolean + editors: [String] + editor_notes: String + embedding: History_incidentEmbeddingUpdateInput + flagged_dissimilar_incidents_unset: Boolean + tsne: History_incidentTsneUpdateInput + epoch_date_modified_unset: Boolean + AllegedDeveloperOfAISystem_unset: Boolean + _id_unset: Boolean + description_unset: Boolean + incident_id_unset: Boolean + title: String + modifiedBy: String + editor_similar_incidents_unset: Boolean + epoch_date_modified: Int + embedding_unset: Boolean + _id: ObjectId + AllegedHarmedOrNearlyHarmedParties: [String] + editor_similar_incidents: [Int] + reports: [Int] + epoch_date_modified_inc: Int + AllegedHarmedOrNearlyHarmedParties_unset: Boolean +} + +input History_incidentNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +input SubmissionQueryInput { + _id_gte: ObjectId + description_nin: [String] + cloudinary_id_gt: String + date_downloaded_lte: String + source_domain_lt: String + title_gt: String + incident_title_lt: String + cloudinary_id_exists: Boolean + cloudinary_id: String + editor_dissimilar_incidents: [Int] + plain_text_gte: String + date_downloaded_in: [String] + status_in: [String] + incident_ids_in: [Int] + url_in: [String] + language_gt: String + description_gte: String + user: UserQueryInput + incident_date_ne: String + _id_exists: Boolean + _id_nin: [ObjectId] + image_url_lt: String + authors_nin: [String] + developers_nin: [EntityQueryInput] + harmed_parties_in: [EntityQueryInput] + image_url_gte: String + plain_text_gt: String + incident_editors: [UserQueryInput] + incident_title_nin: [String] + image_url_ne: String + incident_ids_exists: Boolean + title: String + tags_in: [String] + user_exists: Boolean + nlp_similar_incidents_exists: Boolean + url_ne: String + title_exists: Boolean + date_modified_ne: String + incident_date_gte: String + nlp_similar_incidents_nin: [SubmissionNlp_similar_incidentQueryInput] + url_lt: String + title_gte: String + description: String + date_published_nin: [String] + date_modified_exists: Boolean + _id: ObjectId + incident_title_in: [String] + _id_gt: ObjectId + editor_similar_incidents_exists: Boolean + date_downloaded: String + incident_ids_nin: [Int] + date_submitted_in: [String] + cloudinary_id_gte: String + embedding: SubmissionEmbeddingQueryInput + incident_title_ne: String + date_submitted_lte: String + description_exists: Boolean + editor_notes_gte: String + date_published_lt: String + editor_notes_gt: String + incident_date_lt: String + cloudinary_id_lt: String + url: String + incident_editors_exists: Boolean + developers: [EntityQueryInput] + plain_text_exists: Boolean + nlp_similar_incidents: [SubmissionNlp_similar_incidentQueryInput] + plain_text_in: [String] + harmed_parties_exists: Boolean + date_submitted_nin: [String] + submitters_exists: Boolean + harmed_parties_nin: [EntityQueryInput] + submitters_nin: [String] + date_published_exists: Boolean + developers_in: [EntityQueryInput] + date_downloaded_nin: [String] + tags_exists: Boolean + cloudinary_id_nin: [String] + text_lt: String + date_modified_gte: String + language_lte: String + language_exists: Boolean + image_url_gt: String + editor_dissimilar_incidents_in: [Int] + title_lte: String + editor_notes_in: [String] + url_gt: String + description_in: [String] + date_downloaded_gt: String + epoch_date_modified_gt: Int + date_modified_lte: String + AND: [SubmissionQueryInput!] + source_domain_gte: String + status_gte: String + status_nin: [String] + epoch_date_modified_ne: Int + text: String + editor_notes_lt: String + developers_exists: Boolean + incident_title_lte: String + epoch_date_modified_exists: Boolean + plain_text_lte: String + editor_notes_nin: [String] + date_modified_lt: String + status_lt: String + title_in: [String] + source_domain_exists: Boolean + deployers: [EntityQueryInput] + editor_similar_incidents_in: [Int] + editor_dissimilar_incidents_nin: [Int] + OR: [SubmissionQueryInput!] + date_published_in: [String] + text_gte: String + harmed_parties: [EntityQueryInput] + incident_title_gte: String + description_lte: String + incident_title_exists: Boolean + plain_text: String + deployers_nin: [EntityQueryInput] + tags_nin: [String] + text_exists: Boolean + source_domain_ne: String + date_modified_nin: [String] + epoch_date_modified_lt: Int + date_modified: String + embedding_exists: Boolean + cloudinary_id_ne: String + language_lt: String + date_submitted_lt: String + date_downloaded_lt: String + deployers_exists: Boolean + image_url_exists: Boolean + image_url: String + cloudinary_id_lte: String + source_domain_nin: [String] + text_ne: String + url_exists: Boolean + language_nin: [String] + date_downloaded_gte: String + epoch_date_modified_nin: [Int] + epoch_date_modified_gte: Int + epoch_date_modified: Int + incident_editors_nin: [UserQueryInput] + authors_in: [String] + status_lte: String + date_published: String + date_published_gt: String + editor_notes_exists: Boolean + text_lte: String + source_domain_gt: String + date_downloaded_exists: Boolean + plain_text_ne: String + plain_text_lt: String + description_ne: String + date_modified_in: [String] + epoch_date_modified_lte: Int + status_exists: Boolean + date_published_lte: String + date_published_gte: String + title_lt: String + submitters: [String] + date_submitted_ne: String + date_submitted_gte: String + language: String + date_submitted_gt: String + editor_dissimilar_incidents_exists: Boolean + title_ne: String + incident_title_gt: String + text_gt: String + _id_lte: ObjectId + source_domain_in: [String] + authors_exists: Boolean + language_in: [String] + status_gt: String + language_ne: String + incident_date_gt: String + incident_date_nin: [String] + editor_notes_lte: String + submitters_in: [String] + date_downloaded_ne: String + url_gte: String + nlp_similar_incidents_in: [SubmissionNlp_similar_incidentQueryInput] + description_gt: String + editor_notes: String + tags: [String] + incident_editors_in: [UserQueryInput] + date_submitted_exists: Boolean + editor_similar_incidents: [Int] + cloudinary_id_in: [String] + plain_text_nin: [String] + url_lte: String + incident_date_in: [String] + incident_date: String + authors: [String] + image_url_in: [String] + status_ne: String + epoch_date_modified_in: [Int] + status: String + date_modified_gt: String + text_in: [String] + incident_date_lte: String + source_domain: String + url_nin: [String] + title_nin: [String] + text_nin: [String] + editor_similar_incidents_nin: [Int] + language_gte: String + image_url_nin: [String] + _id_lt: ObjectId + incident_title: String + description_lt: String + incident_date_exists: Boolean + incident_ids: [Int] + _id_in: [ObjectId] + image_url_lte: String + date_submitted: String + deployers_in: [EntityQueryInput] + source_domain_lte: String + _id_ne: ObjectId + date_published_ne: String + editor_notes_ne: String +} + +input ChecklistRiskPrecedentInsertInput { + incident_id: Int + tags: [String] + title: String + description: String +} + +input TaxaDummy_fieldInsertInput { + field_number: String + short_name: String +} + +input TaxaField_listItem_fieldInsertInput { + long_name: String + permitted_values: [String] + long_description: String + default: String + short_name: String + required: Boolean + weight: Int + placeholder: String + display_type: String + mongo_type: String + public: Boolean + field_number: String + instant_facet: Boolean + short_description: String + complete_from: TaxaField_listItem_fieldComplete_fromInsertInput +} + +type History_incidentTsne { + x: Float + y: Float +} + +type ChecklistRisk { + generated: Boolean + id: String + likelihood: String + precedents: [ChecklistRiskPrecedent] + risk_notes: String + risk_status: String + severity: String + tags: [String] + title: String + touched: Boolean +} + +type SubmissionEmbedding { + from_text_hash: String + vector: [Float] +} + +type RisksPayloadPrecedentEmbedding { + from_reports: [Int] + vector: [Float] +} + +type UpdateManyPayload { + matchedCount: Int! + modifiedCount: Int! +} + +input History_incidentEmbeddingInsertInput { + from_reports: [Int] + vector: [Float] +} + +input SubmissionUpdateInput { + nlp_similar_incidents_unset: Boolean + incident_editors: SubmissionIncident_editorsRelationInput + deployers: SubmissionDeployersRelationInput + incident_date: String + _id: ObjectId + cloudinary_id: String + date_submitted_unset: Boolean + authors_unset: Boolean + date_downloaded_unset: Boolean + epoch_date_modified: Int + description_unset: Boolean + incident_ids_unset: Boolean + date_modified_unset: Boolean + developers: SubmissionDevelopersRelationInput + incident_editors_unset: Boolean + submitters_unset: Boolean + language: String + developers_unset: Boolean + url_unset: Boolean + title_unset: Boolean + image_url_unset: Boolean + user_unset: Boolean + language_unset: Boolean + editor_notes_unset: Boolean + image_url: String + date_modified: String + incident_ids: [Int] + editor_dissimilar_incidents: [Int] + harmed_parties_unset: Boolean + tags: [String] + plain_text_unset: Boolean + date_published: String + incident_date_unset: Boolean + date_published_unset: Boolean + editor_similar_incidents_unset: Boolean + source_domain_unset: Boolean + text: String + embedding_unset: Boolean + date_submitted: String + nlp_similar_incidents: [SubmissionNlp_similar_incidentUpdateInput] + incident_title_unset: Boolean + source_domain: String + status: String + editor_dissimilar_incidents_unset: Boolean + editor_similar_incidents: [Int] + _id_unset: Boolean + cloudinary_id_unset: Boolean + incident_title: String + submitters: [String] + deployers_unset: Boolean + embedding: SubmissionEmbeddingUpdateInput + user: SubmissionUserRelationInput + editor_notes: String + epoch_date_modified_inc: Int + title: String + date_downloaded: String + authors: [String] + epoch_date_modified_unset: Boolean + tags_unset: Boolean + text_unset: Boolean + description: String + url: String + harmed_parties: SubmissionHarmed_partiesRelationInput + plain_text: String + status_unset: Boolean +}`; From 2b8bf51f38a329676b16431878962b4e34c0705f Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 22 Apr 2024 20:47:41 -0300 Subject: [PATCH 2/3] Prevent test from crashing (#2742) --- .../cypress/e2e/integration/apps/newsdigest.cy.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js b/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js index 086874db12..78c4ecf18a 100644 --- a/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js +++ b/site/gatsby-site/cypress/e2e/integration/apps/newsdigest.cy.js @@ -63,6 +63,19 @@ describe('News Digest', () => { newsArticles ); + cy.conditionalIntercept( + '**/graphql', + (req) => req.body.operationName == 'UpdateCandidate', + 'UpdateCandidate', + { + data: { + updateOneCandidate: { + url: 'https://dummy.com', + }, + }, + } + ); + cy.visit(url); cy.get('[data-cy="results"] [data-cy="candidate-card"] [data-cy="candidate-dropdown"]', { From 94f83e288f126fd188c3e46b9239897e2638a04b Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Tue, 23 Apr 2024 17:19:00 -0300 Subject: [PATCH 3/3] Update remote schema (#2743) --- site/gatsby-site/src/graphql/schema.js | 7484 ++++++++++++------------ 1 file changed, 3768 insertions(+), 3716 deletions(-) diff --git a/site/gatsby-site/src/graphql/schema.js b/site/gatsby-site/src/graphql/schema.js index 97d98c6f68..441bb2718f 100644 --- a/site/gatsby-site/src/graphql/schema.js +++ b/site/gatsby-site/src/graphql/schema.js @@ -1,424 +1,460 @@ export const typeDefs = ` -type History_incidentNlp_similar_incident { +input SubmissionNlp_similar_incidentQueryInput { incident_id: Int + similarity_in: [Float] + similarity_gte: Float + similarity_exists: Boolean + incident_id_lt: Int + incident_id_in: [Int] similarity: Float + similarity_gt: Float + incident_id_ne: Int + similarity_lt: Float + incident_id_gte: Int + incident_id_gt: Int + OR: [SubmissionNlp_similar_incidentQueryInput!] + incident_id_nin: [Int] + similarity_ne: Float + AND: [SubmissionNlp_similar_incidentQueryInput!] + incident_id_lte: Int + similarity_lte: Float + similarity_nin: [Float] + incident_id_exists: Boolean } -type Classification { +input EntityInsertInput { + created_at: DateTime + date_modified: DateTime + entity_id: String! + name: String! _id: ObjectId - attributes: [ClassificationAttribute] - incidents: [Incident]! - namespace: String! - notes: String - publish: Boolean - reports: [Report]! } -enum IncidentSortByInput { - EDITOR_NOTES_ASC +input History_reportUpdateInput { + inputs_outputs: [String] + editor_notes: String + language_unset: Boolean + epoch_date_downloaded_unset: Boolean + authors_unset: Boolean + date_downloaded_unset: Boolean + epoch_date_published: Int + epoch_date_downloaded: Int + plain_text_unset: Boolean + source_domain_unset: Boolean + source_domain: String + epoch_date_downloaded_inc: Int + is_incident_report: Boolean + epoch_date_submitted_inc: Int + text_unset: Boolean + report_number_unset: Boolean + user: String + date_submitted: DateTime + editor_notes_unset: Boolean + epoch_date_published_unset: Boolean + modifiedBy: String + _id_unset: Boolean + _id: ObjectId + epoch_date_modified_unset: Boolean + submitters_unset: Boolean + flag_unset: Boolean + epoch_date_submitted: Int + is_incident_report_unset: Boolean + epoch_date_modified: Int + description_unset: Boolean + embedding: History_reportEmbeddingUpdateInput + embedding_unset: Boolean + quiet: Boolean + epoch_date_published_inc: Int + report_number_inc: Int + date_published_unset: Boolean + tags: [String] + date_submitted_unset: Boolean + date_downloaded: DateTime + report_number: Int + cloudinary_id: String + plain_text: String + modifiedBy_unset: Boolean + tags_unset: Boolean + user_unset: Boolean + description: String + date_modified: DateTime + image_url: String + date_published: DateTime + language: String + title_unset: Boolean + inputs_outputs_unset: Boolean + url_unset: Boolean + title: String + text: String + cloudinary_id_unset: Boolean + image_url_unset: Boolean + flag: Boolean + date_modified_unset: Boolean + epoch_date_modified_inc: Int + submitters: [String] + epoch_date_submitted_unset: Boolean + authors: [String] + url: String + quiet_unset: Boolean +} + +input SubscriptionQueryInput { + _id_gte: ObjectId + AND: [SubscriptionQueryInput!] + type_ne: String + _id_nin: [ObjectId] + _id_exists: Boolean + incident_id: IncidentQueryInput + _id_ne: ObjectId + _id_lt: ObjectId + type: String + type_nin: [String] + userId_exists: Boolean + type_in: [String] + userId: UserQueryInput + type_exists: Boolean + type_gt: String + OR: [SubscriptionQueryInput!] + entityId_exists: Boolean + _id_gt: ObjectId + _id_in: [ObjectId] + type_lte: String + _id_lte: ObjectId + type_gte: String + entityId: EntityQueryInput + _id: ObjectId + type_lt: String + incident_id_exists: Boolean +} + +enum History_incidentSortByInput { + INCIDENT_ID_DESC + MODIFIEDBY_ASC + MODIFIEDBY_DESC TITLE_ASC + DATE_ASC + DATE_DESC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_ASC TITLE_DESC _ID_ASC - EDITOR_NOTES_DESC - EPOCH_DATE_MODIFIED_DESC - DATE_ASC - INCIDENT_ID_ASC DESCRIPTION_DESC - EPOCH_DATE_MODIFIED_ASC - INCIDENT_ID_DESC + EDITOR_NOTES_ASC + INCIDENT_ID_ASC _ID_DESC - DATE_DESC + EPOCH_DATE_MODIFIED_DESC DESCRIPTION_ASC } -input SubmissionDevelopersRelationInput { +input SubmissionHarmed_partiesRelationInput { create: [EntityInsertInput] link: [String] } -input History_reportEmbeddingUpdateInput { +input CandidateEmbeddingQueryInput { + OR: [CandidateEmbeddingQueryInput!] + vector_exists: Boolean + AND: [CandidateEmbeddingQueryInput!] + vector_in: [Float] + from_text_hash_exists: Boolean + from_text_hash_gt: String + from_text_hash_lte: String vector: [Float] - vector_unset: Boolean + vector_nin: [Float] from_text_hash: String - from_text_hash_unset: Boolean + from_text_hash_gte: String + from_text_hash_ne: String + from_text_hash_lt: String + from_text_hash_nin: [String] + from_text_hash_in: [String] } -input CandidateClassification_similarityQueryInput { - similarity_ne: Float - classification_gte: String - classification_in: [String] - similarity_gt: Float - AND: [CandidateClassification_similarityQueryInput!] - OR: [CandidateClassification_similarityQueryInput!] - similarity: Float - similarity_in: [Float] - similarity_exists: Boolean - classification_lt: String - similarity_lt: Float - classification: String - similarity_lte: Float - classification_ne: String - classification_gt: String - similarity_gte: Float - classification_nin: [String] - classification_exists: Boolean - classification_lte: String - similarity_nin: [Float] +input DuplicateInsertInput { + duplicate_incident_number: Int + true_incident_number: Int + _id: ObjectId } -input NotificationQueryInput { - type_ne: String - incident_id_gt: Int - processed_ne: Boolean - type_gt: String - _id_lte: ObjectId - incident_id_lt: Int - _id_lt: ObjectId - processed: Boolean - sentDate_in: [DateTime] - sentDate_gt: DateTime - AND: [NotificationQueryInput!] - incident_id_exists: Boolean +input TaxaQueryInput { + namespace_lt: String + complete_entities: Boolean + description_lt: String + _id_gt: ObjectId _id_ne: ObjectId - type_in: [String] - incident_id_gte: Int - incident_id_in: [Int] - processed_exists: Boolean - sentDate_lte: DateTime + namespace_exists: Boolean + description_lte: String + namespace_in: [String] + description_ne: String + weight: Int + weight_in: [Int] + weight_lt: Int + field_list_exists: Boolean + field_list_in: [TaxaField_listQueryInput] + complete_entities_exists: Boolean + dummy_fields_exists: Boolean + dummy_fields_nin: [TaxaDummy_fieldQueryInput] + description_exists: Boolean + OR: [TaxaQueryInput!] + namespace_gte: String + AND: [TaxaQueryInput!] + description_nin: [String] + complete_entities_ne: Boolean + weight_nin: [Int] + weight_exists: Boolean _id_gte: ObjectId - _id_nin: [ObjectId] - sentDate: DateTime - incident_id_lte: Int - sentDate_ne: DateTime - incident_id_nin: [Int] - type_lte: String _id_exists: Boolean - sentDate_lt: DateTime - type_exists: Boolean - type_gte: String - sentDate_exists: Boolean - userId_exists: Boolean - _id_gt: ObjectId - type: String - type_lt: String - incident_id_ne: Int + namespace_lte: String + _id_lt: ObjectId _id: ObjectId - OR: [NotificationQueryInput!] - sentDate_gte: DateTime - sentDate_nin: [DateTime] - _id_in: [ObjectId] - incident_id: Int - userId: UserQueryInput - type_nin: [String] -} + field_list: [TaxaField_listQueryInput] + description_gt: String + namespace_nin: [String] + description: String + weight_gte: Int + field_list_nin: [TaxaField_listQueryInput] + dummy_fields_in: [TaxaDummy_fieldQueryInput] + weight_gt: Int + namespace: String + _id_lte: ObjectId + weight_ne: Int + description_gte: String + description_in: [String] + namespace_gt: String + namespace_ne: String + weight_lte: Int + _id_in: [ObjectId] + _id_nin: [ObjectId] + dummy_fields: [TaxaDummy_fieldQueryInput] +} -enum ReportSortByInput { - DATE_SUBMITTED_ASC - EPOCH_DATE_DOWNLOADED_ASC - TEXT_ASC - EPOCH_DATE_DOWNLOADED_DESC - EPOCH_DATE_MODIFIED_ASC - SOURCE_DOMAIN_ASC - SOURCE_DOMAIN_DESC - TITLE_DESC - CLOUDINARY_ID_ASC - DATE_MODIFIED_ASC - EPOCH_DATE_PUBLISHED_ASC - LANGUAGE_DESC - PLAIN_TEXT_DESC - URL_DESC - USER_ASC - USER_DESC +input TaxaDummy_fieldQueryInput { + short_name_nin: [String] + field_number_gt: String + field_number_gte: String + short_name: String + field_number_lte: String + field_number_in: [String] + field_number_nin: [String] + short_name_gte: String + field_number: String + short_name_lte: String + field_number_exists: Boolean + OR: [TaxaDummy_fieldQueryInput!] + short_name_lt: String + short_name_exists: Boolean + field_number_lt: String + short_name_ne: String + short_name_in: [String] + AND: [TaxaDummy_fieldQueryInput!] + short_name_gt: String + field_number_ne: String +} + +enum IncidentSortByInput { _ID_DESC - CLOUDINARY_ID_DESC + DATE_DESC DESCRIPTION_ASC + EPOCH_DATE_MODIFIED_DESC + DATE_ASC EDITOR_NOTES_ASC - EPOCH_DATE_PUBLISHED_DESC - LANGUAGE_ASC - DATE_SUBMITTED_DESC - IMAGE_URL_ASC - TEXT_DESC + EPOCH_DATE_MODIFIED_ASC + TITLE_ASC _ID_ASC - DATE_MODIFIED_DESC - EPOCH_DATE_MODIFIED_DESC - URL_ASC - DATE_DOWNLOADED_DESC - DATE_PUBLISHED_DESC DESCRIPTION_DESC EDITOR_NOTES_DESC - EPOCH_DATE_SUBMITTED_ASC - REPORT_NUMBER_DESC - TITLE_ASC - DATE_DOWNLOADED_ASC - DATE_PUBLISHED_ASC - EPOCH_DATE_SUBMITTED_DESC - IMAGE_URL_DESC - PLAIN_TEXT_ASC - REPORT_NUMBER_ASC + INCIDENT_ID_ASC + INCIDENT_ID_DESC + TITLE_DESC } -input LinkReportsToIncidentsInput { - incident_ids: [Int] - report_numbers: [Int] +type UserAdminDatum { + creationDate: DateTime + disabled: Boolean + email: String + lastAuthenticationDate: DateTime } -type History_report { +type ReportTranslation { + text: String + title: String +} + +type AppUser { + email: String +} + +input CandidateInsertInput { + epoch_date_downloaded: Int + epoch_date_published: Int _id: ObjectId - authors: [String]! - cloudinary_id: String! - date_downloaded: DateTime! - date_modified: DateTime! - date_published: DateTime! - date_submitted: DateTime! - description: String - editor_notes: String - embedding: History_reportEmbedding - epoch_date_downloaded: Int! - epoch_date_modified: Int! - epoch_date_published: Int! - epoch_date_submitted: Int! - flag: Boolean - image_url: String! - inputs_outputs: [String] - is_incident_report: Boolean - language: String! - modifiedBy: String - plain_text: String! - report_number: Int! - source_domain: String! - submitters: [String]! - tags: [String]! - text: String! - title: String! + plain_text: String + title: String + language: String + matching_keywords: [String] + similarity: Float + dismissed: Boolean + text: String url: String! - user: String + match: Boolean! + matching_harm_keywords: [String] + source_domain: String + classification_similarity: [CandidateClassification_similarityInsertInput] + authors: [String] + date_published: String + matching_entities: [String] + embedding: CandidateEmbeddingInsertInput + image_url: String + date_downloaded: String } -type ChecklistRiskPrecedent { - description: String - incident_id: Int +input ChecklistRiskUpdateInput { + touched: Boolean + id_unset: Boolean + severity: String + severity_unset: Boolean + generated_unset: Boolean + risk_status: String tags: [String] + likelihood: String + title_unset: Boolean + touched_unset: Boolean + risk_status_unset: Boolean + generated: Boolean + risk_notes_unset: Boolean title: String + likelihood_unset: Boolean + risk_notes: String + tags_unset: Boolean + id: String + precedents: [ChecklistRiskPrecedentUpdateInput] + precedents_unset: Boolean } -input History_incidentQueryInput { - incident_id_gte: Int - editor_similar_incidents_in: [Int] - embedding: History_incidentEmbeddingQueryInput - _id_lte: ObjectId - editor_dissimilar_incidents_in: [Int] - embedding_exists: Boolean - editor_notes_lt: String - title_gte: String - epoch_date_modified_nin: [Int] - title_exists: Boolean - AllegedDeveloperOfAISystem_in: [String] - incident_id_lt: Int - description_exists: Boolean - editor_notes_ne: String - description_in: [String] - flagged_dissimilar_incidents_nin: [Int] - editor_notes_lte: String - AllegedDeveloperOfAISystem_exists: Boolean - flagged_dissimilar_incidents_exists: Boolean - date_nin: [String] - editor_similar_incidents_nin: [Int] - title_in: [String] - date_lte: String +enum CandidateSortByInput { + DATE_PUBLISHED_ASC + DATE_PUBLISHED_DESC + TITLE_ASC + LANGUAGE_ASC + DATE_DOWNLOADED_DESC + EPOCH_DATE_DOWNLOADED_ASC + EPOCH_DATE_DOWNLOADED_DESC + PLAIN_TEXT_ASC + URL_ASC + _ID_ASC + EPOCH_DATE_PUBLISHED_ASC + IMAGE_URL_ASC + SOURCE_DOMAIN_DESC + PLAIN_TEXT_DESC + SIMILARITY_ASC + SIMILARITY_DESC + SOURCE_DOMAIN_ASC + DATE_DOWNLOADED_ASC + TEXT_DESC + TITLE_DESC + _ID_DESC + EPOCH_DATE_PUBLISHED_DESC + LANGUAGE_DESC + TEXT_ASC + URL_DESC + IMAGE_URL_DESC +} + +input QuickaddUpdateInput { + incident_id: Long + source_domain_unset: Boolean + date_submitted_unset: Boolean + _id_unset: Boolean + date_submitted: String + incident_id_unset: Boolean + source_domain: String + url_unset: Boolean _id: ObjectId - date_exists: Boolean - _id_gt: ObjectId - epoch_date_modified_in: [Int] - modifiedBy_lte: String - AllegedDeployerOfAISystem_in: [String] - AllegedDeployerOfAISystem: [String] - description_gt: String - nlp_similar_incidents_exists: Boolean - incident_id_lte: Int - date_in: [String] - title_nin: [String] - editor_notes_exists: Boolean - epoch_date_modified_ne: Int - tsne_exists: Boolean - title: String - _id_ne: ObjectId - epoch_date_modified_lt: Int - editor_dissimilar_incidents_nin: [Int] - description: String - AllegedHarmedOrNearlyHarmedParties: [String] - modifiedBy_exists: Boolean - AllegedHarmedOrNearlyHarmedParties_nin: [String] - nlp_similar_incidents: [History_incidentNlp_similar_incidentQueryInput] - editor_notes_nin: [String] - title_gt: String - AllegedDeployerOfAISystem_nin: [String] - AllegedDeveloperOfAISystem_nin: [String] - editor_similar_incidents_exists: Boolean - date_gte: String - flagged_dissimilar_incidents_in: [Int] - OR: [History_incidentQueryInput!] - _id_lt: ObjectId - date: String - _id_exists: Boolean - tsne: History_incidentTsneQueryInput - editors: [String] - flagged_dissimilar_incidents: [Int] - reports_nin: [Int] - epoch_date_modified_gte: Int - incident_id_ne: Int - description_lte: String + url: String +} + +input UserUpdateInput { + userId: String + userId_unset: Boolean + _id: ObjectId + first_name_unset: Boolean + last_name_unset: Boolean + first_name: String + last_name: String + roles_unset: Boolean + _id_unset: Boolean + roles: [String] +} + +input SubmissionNlp_similar_incidentUpdateInput { + incident_id_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean incident_id: Int - editors_in: [String] - reports_in: [Int] - _id_in: [ObjectId] - epoch_date_modified_exists: Boolean - reports_exists: Boolean - incident_id_nin: [Int] - modifiedBy_gte: String - editors_nin: [String] - incident_id_exists: Boolean - date_gt: String - AllegedHarmedOrNearlyHarmedParties_in: [String] - description_lt: String - modifiedBy_ne: String - modifiedBy_nin: [String] - description_ne: String - incident_id_in: [Int] - editor_notes_in: [String] - _id_gte: ObjectId - nlp_similar_incidents_in: [History_incidentNlp_similar_incidentQueryInput] - editor_similar_incidents: [Int] - AllegedDeveloperOfAISystem: [String] - AllegedHarmedOrNearlyHarmedParties_exists: Boolean - date_lt: String - title_lte: String - editor_dissimilar_incidents: [Int] - epoch_date_modified_lte: Int - _id_nin: [ObjectId] - incident_id_gt: Int - editors_exists: Boolean - description_nin: [String] - editor_notes_gte: String - modifiedBy_gt: String - description_gte: String - title_lt: String - title_ne: String - epoch_date_modified_gt: Int - AllegedDeployerOfAISystem_exists: Boolean - editor_notes_gt: String - AND: [History_incidentQueryInput!] - modifiedBy_in: [String] - modifiedBy: String - modifiedBy_lt: String - editor_dissimilar_incidents_exists: Boolean - epoch_date_modified: Int - nlp_similar_incidents_nin: [History_incidentNlp_similar_incidentQueryInput] - editor_notes: String - date_ne: String - reports: [Int] + incident_id_inc: Int } -input ChecklistQueryInput { - name: String - entity_id: String - name_nin: [String] - owner_id_nin: [String] - entity_id_lt: String - tags_other_in: [String] - date_created_lt: DateTime - entity_id_exists: Boolean - owner_id_in: [String] - date_created_lte: DateTime - tags_methods_nin: [String] - risks_exists: Boolean - owner_id_gte: String - owner_id_lt: String - name_in: [String] - _id_exists: Boolean - owner_id: String - date_updated_nin: [DateTime] - OR: [ChecklistQueryInput!] - date_created_gt: DateTime - risks: [ChecklistRiskQueryInput] - tags_other_nin: [String] - tags_methods_exists: Boolean - owner_id_exists: Boolean - date_created_exists: Boolean - id_gte: String - date_updated_in: [DateTime] - name_ne: String - entity_id_lte: String - id_lte: String - id_lt: String - name_lte: String - owner_id_ne: String - date_updated_lt: DateTime - date_created_nin: [DateTime] - name_exists: Boolean - _id_nin: [ObjectId] - entity_id_nin: [String] - tags_goals_exists: Boolean - date_updated_gt: DateTime - about_lt: String - entity_id_ne: String +enum NotificationSortByInput { + _ID_DESC + INCIDENT_ID_DESC + SENTDATE_ASC + USERID_DESC + _ID_ASC + SENTDATE_DESC + TYPE_ASC + TYPE_DESC + USERID_ASC + INCIDENT_ID_ASC +} + +input ReportEmbeddingInsertInput { + from_text_hash: String + vector: [Float] +} + +input IncidentEditorsRelationInput { + link: [String] + create: [UserInsertInput] +} + +input IncidentNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +type ChecklistRisk { + generated: Boolean id: String - name_gte: String - about_lte: String - about_in: [String] - id_exists: Boolean - tags_goals: [String] - id_in: [String] - risks_in: [ChecklistRiskQueryInput] - date_created_ne: DateTime - about: String - name_lt: String - _id_gte: ObjectId - _id_lte: ObjectId - _id_ne: ObjectId - entity_id_gt: String - id_nin: [String] - about_nin: [String] - date_updated_ne: DateTime - tags_other_exists: Boolean - AND: [ChecklistQueryInput!] - name_gt: String - _id_lt: ObjectId - tags_methods_in: [String] - id_ne: String - tags_goals_in: [String] - risks_nin: [ChecklistRiskQueryInput] - owner_id_lte: String - date_created_in: [DateTime] - owner_id_gt: String - about_gt: String - date_created: DateTime - date_updated_exists: Boolean - tags_goals_nin: [String] - tags_methods: [String] - about_exists: Boolean - entity_id_in: [String] - _id_gt: ObjectId - entity_id_gte: String - about_gte: String - tags_other: [String] - about_ne: String - date_created_gte: DateTime - date_updated_lte: DateTime - _id: ObjectId - date_updated_gte: DateTime - id_gt: String - date_updated: DateTime - _id_in: [ObjectId] + likelihood: String + precedents: [ChecklistRiskPrecedent] + risk_notes: String + risk_status: String + severity: String + tags: [String] + title: String + touched: Boolean } -input ClassificationInsertInput { +type RisksPayloadPrecedent { + AllegedDeployerOfAISystem: [String] + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] _id: ObjectId - attributes: [ClassificationAttributeInsertInput] - incidents: ClassificationIncidentsRelationInput! - namespace: String! - notes: String - publish: Boolean - reports: ClassificationReportsRelationInput! + date: String + description: String + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [String] + embedding: RisksPayloadPrecedentEmbedding + epoch_date_modified: Int + flagged_dissimilar_incidents: [Int] + incident_id: Int + nlp_similar_incidents: [RisksPayloadPrecedentNlp_similar_incident] + reports: [Int] + tags: [String] + title: String + tsne: RisksPayloadPrecedentTsne } input UserInsertInput { @@ -429,523 +465,537 @@ input UserInsertInput { last_name: String } -input UpdateOneReportTranslationInput { - title: String! - language: String! - plain_text: String! - report_number: Int! - text: String! -} - -input PromoteSubmissionToReportInput { - is_incident_report: Boolean - submission_id: ObjectId - incident_ids: [Int] -} - -input TaxaField_listItem_fieldUpdateInput { - short_description_unset: Boolean - weight_unset: Boolean - display_type_unset: Boolean - instant_facet: Boolean - instant_facet_unset: Boolean - short_name: String - long_description: String - permitted_values_unset: Boolean - field_number: String - short_name_unset: Boolean - placeholder: String - permitted_values: [String] - mongo_type_unset: Boolean - required: Boolean - short_description: String - long_name_unset: Boolean - default: String - complete_from_unset: Boolean - complete_from: TaxaField_listItem_fieldComplete_fromUpdateInput - long_name: String - placeholder_unset: Boolean - public: Boolean - public_unset: Boolean - long_description_unset: Boolean - weight_inc: Int - display_type: String - field_number_unset: Boolean - weight: Int - default_unset: Boolean - mongo_type: String - required_unset: Boolean -} - -type Notification { - _id: ObjectId - incident_id: Int - processed: Boolean - sentDate: DateTime - type: String - userId: User -} - -input CandidateClassification_similarityInsertInput { - classification: String - similarity: Float +input TaxaField_listItem_fieldComplete_fromQueryInput { + AND: [TaxaField_listItem_fieldComplete_fromQueryInput!] + current_in: [String] + current_exists: Boolean + all_exists: Boolean + entities_ne: Boolean + entities_exists: Boolean + entities: Boolean + OR: [TaxaField_listItem_fieldComplete_fromQueryInput!] + all_nin: [String] + current: [String] + current_nin: [String] + all_in: [String] + all: [String] } -input CandidateEmbeddingInsertInput { - from_text_hash: String +input History_incidentEmbeddingInsertInput { + from_reports: [Int] vector: [Float] } -input TaxaDummy_fieldUpdateInput { - field_number: String - field_number_unset: Boolean - short_name: String - short_name_unset: Boolean +type History_incidentTsne { + x: Float + y: Float } -input SubscriptionUserIdRelationInput { - create: UserInsertInput - link: String +type Candidate { + _id: ObjectId + authors: [String] + classification_similarity: [CandidateClassification_similarity] + date_downloaded: String + date_published: String + dismissed: Boolean + embedding: CandidateEmbedding + epoch_date_downloaded: Int + epoch_date_published: Int + image_url: String + language: String + match: Boolean! + matching_entities: [String] + matching_harm_keywords: [String] + matching_keywords: [String] + plain_text: String + similarity: Float + source_domain: String + text: String + title: String + url: String! } -input GetUserInput { - userId: ObjectId +type UpdateManyPayload { + matchedCount: Int! + modifiedCount: Int! } -type TaxaField_list { - complete_from: TaxaField_listComplete_from - default: String - display_type: String - field_number: String - hide_search: Boolean - instant_facet: Boolean - item_fields: TaxaField_listItem_field - long_description: String - long_name: String - mongo_type: String - permitted_values: [String] - placeholder: String - public: Boolean - required: Boolean - short_description: String - short_name: String - weight: Int +input LinkReportsToIncidentsInput { + report_numbers: [Int] + incident_ids: [Int] } input History_reportQueryInput { - url_lt: String + epoch_date_downloaded_gt: Int + plain_text_lt: String + cloudinary_id_nin: [String] + tags_in: [String] + flag: Boolean + language_lt: String + language_gte: String modifiedBy_in: [String] - source_domain_exists: Boolean + date_downloaded_lt: DateTime + _id_ne: ObjectId + cloudinary_id_lt: String + date_modified_exists: Boolean + description_gt: String + user_lt: String + epoch_date_downloaded_in: [Int] + date_downloaded_ne: DateTime + source_domain_lt: String + cloudinary_id: String + plain_text_exists: Boolean + language_ne: String + plain_text: String + epoch_date_downloaded_lte: Int + text_exists: Boolean report_number: Int - report_number_gte: Int - submitters: [String] - text_lte: String - title_gt: String - inputs_outputs_exists: Boolean - url: String - url_ne: String + editor_notes_ne: String + image_url_gte: String + text_lt: String + epoch_date_published_gte: Int + date_published_in: [DateTime] + url_exists: Boolean + epoch_date_downloaded_lt: Int + language_nin: [String] description: String - epoch_date_downloaded_gt: Int - description_exists: Boolean + editor_notes_exists: Boolean + text_gt: String + epoch_date_downloaded_ne: Int + _id_gt: ObjectId + date_published_ne: DateTime + cloudinary_id_ne: String + epoch_date_submitted_gt: Int epoch_date_downloaded_nin: [Int] - epoch_date_downloaded_exists: Boolean - text_exists: Boolean + epoch_date_submitted_nin: [Int] + date_published_gt: DateTime + url_lt: String + image_url_lte: String + _id_lt: ObjectId + editor_notes_nin: [String] date_submitted_lte: DateTime - title_nin: [String] + description_lte: String + image_url_ne: String + date_downloaded_gt: DateTime + _id_exists: Boolean + cloudinary_id_gte: String + report_number_ne: Int + description_in: [String] + user_ne: String + tags: [String] + cloudinary_id_lte: String source_domain_nin: [String] - inputs_outputs_nin: [String] - date_published_in: [DateTime] - modifiedBy_gt: String - text_gte: String - cloudinary_id_nin: [String] - report_number_lt: Int - epoch_date_submitted_exists: Boolean - tags_exists: Boolean - description_ne: String - date_modified_exists: Boolean - language_in: [String] - _id_gt: ObjectId + epoch_date_modified_lt: Int + is_incident_report_ne: Boolean + date_modified_nin: [DateTime] + user_lte: String + epoch_date_modified_ne: Int plain_text_ne: String - epoch_date_submitted_lt: Int - epoch_date_published_ne: Int - date_submitted_lt: DateTime - user_in: [String] - user_gt: String - cloudinary_id: String - url_gte: String - plain_text_nin: [String] - date_downloaded_nin: [DateTime] - flag_ne: Boolean - epoch_date_submitted_lte: Int - inputs_outputs_in: [String] - submitters_nin: [String] - date_published_exists: Boolean + title_exists: Boolean + modifiedBy_gt: String date_modified_lte: DateTime - language_exists: Boolean - date_published_gt: DateTime - description_lte: String + submitters: [String] + source_domain_ne: String + text: String + text_ne: String + inputs_outputs: [String] + image_url_gt: String + epoch_date_modified_gte: Int + OR: [History_reportQueryInput!] + date_published_lt: DateTime + date_downloaded_gte: DateTime + flag_ne: Boolean + date_submitted_ne: DateTime + _id: ObjectId + language_in: [String] editor_notes_lte: String + epoch_date_published: Int user_nin: [String] - plain_text: String - user_gte: String - date_published_lte: DateTime - title_gte: String - date_published_nin: [DateTime] - epoch_date_modified: Int - image_url_exists: Boolean - _id_gte: ObjectId - authors_in: [String] - user_ne: String - epoch_date_submitted_gte: Int + epoch_date_modified_exists: Boolean + date_submitted_gt: DateTime + title_nin: [String] + embedding_exists: Boolean + modifiedBy_nin: [String] + user_in: [String] + date_submitted_exists: Boolean + date_downloaded_nin: [DateTime] + image_url_in: [String] + plain_text_gte: String + date_submitted_in: [DateTime] + tags_nin: [String] + description_exists: Boolean + url_lte: String + image_url_nin: [String] + date_downloaded_lte: DateTime + editor_notes_gte: String + quiet: Boolean + _id_in: [ObjectId] + title: String + date_published_exists: Boolean + description_lt: String + editor_notes_lt: String + title_gt: String + epoch_date_published_gt: Int + image_url_lt: String + report_number_lt: Int url_in: [String] + epoch_date_submitted_lt: Int + is_incident_report_exists: Boolean + text_lte: String + date_modified_ne: DateTime date_submitted: DateTime - modifiedBy_lte: String - source_domain_ne: String - _id: ObjectId - plain_text_exists: Boolean + date_modified_gt: DateTime + plain_text_gt: String + inputs_outputs_exists: Boolean + tags_exists: Boolean + date_published_lte: DateTime + title_lt: String + url_nin: [String] + text_gte: String + epoch_date_downloaded: Int + epoch_date_submitted_lte: Int + quiet_ne: Boolean + epoch_date_downloaded_gte: Int + authors_exists: Boolean + date_downloaded: DateTime + language: String + modifiedBy_lt: String + cloudinary_id_gt: String + submitters_nin: [String] + report_number_lte: Int + inputs_outputs_in: [String] + url_ne: String + user_gt: String + inputs_outputs_nin: [String] + epoch_date_modified_nin: [Int] + editor_notes: String + epoch_date_downloaded_exists: Boolean text_in: [String] - description_gt: String - epoch_date_submitted_nin: [Int] - image_url: String - embedding: History_reportEmbeddingQueryInput + date_modified_in: [DateTime] + plain_text_in: [String] + date_downloaded_exists: Boolean + title_gte: String authors_nin: [String] - image_url_lt: String + url: String + image_url_exists: Boolean + date_published_gte: DateTime language_lte: String - embedding_exists: Boolean - text: String - plain_text_lt: String - AND: [History_reportQueryInput!] - description_lt: String - flag: Boolean - tags_in: [String] - date_downloaded_lt: DateTime - cloudinary_id_gt: String - epoch_date_submitted_in: [Int] - title_ne: String - language_lt: String - editor_notes_nin: [String] + language_exists: Boolean + date_published_nin: [DateTime] + report_number_gt: Int + date_modified: DateTime modifiedBy: String - epoch_date_published_gt: Int - date_downloaded_exists: Boolean - tags_nin: [String] - date_downloaded_ne: DateTime - text_ne: String - authors_exists: Boolean - plain_text_gte: String - editor_notes_lt: String - date_modified_ne: DateTime - user_lte: String - epoch_date_modified_nin: [Int] - epoch_date_downloaded_ne: Int - report_number_nin: [Int] - language_nin: [String] - tags: [String] - date_modified_nin: [DateTime] - image_url_in: [String] - epoch_date_downloaded_lte: Int - date_submitted_ne: DateTime - epoch_date_modified_lte: Int - source_domain: String - language_gte: String - cloudinary_id_exists: Boolean - _id_lte: ObjectId - epoch_date_published_lt: Int - image_url_gt: String - modifiedBy_ne: String - inputs_outputs: [String] - _id_ne: ObjectId date_downloaded_in: [DateTime] - image_url_ne: String - epoch_date_published: Int - image_url_gte: String - report_number_ne: Int - epoch_date_modified_lt: Int - source_domain_lte: String - url_lte: String - title_exists: Boolean - epoch_date_downloaded: Int - _id_nin: [ObjectId] + source_domain_exists: Boolean authors: [String] - cloudinary_id_gte: String - cloudinary_id_lt: String - epoch_date_downloaded_lt: Int - date_submitted_exists: Boolean - epoch_date_modified_gte: Int - epoch_date_published_gte: Int + AND: [History_reportQueryInput!] + description_gte: String + epoch_date_modified_in: [Int] + source_domain_in: [String] + epoch_date_submitted_in: [Int] + report_number_gte: Int + cloudinary_id_in: [String] + user_gte: String + epoch_date_submitted: Int + epoch_date_published_exists: Boolean + _id_nin: [ObjectId] + user_exists: Boolean + title_in: [String] + modifiedBy_exists: Boolean date_submitted_nin: [DateTime] - date_published: DateTime - image_url_nin: [String] + source_domain_gte: String + user: String + plain_text_nin: [String] + epoch_date_published_ne: Int + modifiedBy_lte: String + report_number_in: [Int] + cloudinary_id_exists: Boolean + editor_notes_gt: String + _id_lte: ObjectId epoch_date_published_lte: Int - url_exists: Boolean - user_lt: String - is_incident_report_exists: Boolean + text_nin: [String] epoch_date_modified_gt: Int - user: String - language_ne: String - modifiedBy_lt: String - description_gte: String - _id_in: [ObjectId] - title_lt: String - epoch_date_published_exists: Boolean - _id_lt: ObjectId + source_domain: String + submitters_in: [String] + epoch_date_modified_lte: Int + source_domain_gt: String + date_submitted_gte: DateTime + quiet_exists: Boolean + source_domain_lte: String + epoch_date_published_lt: Int + epoch_date_modified: Int + is_incident_report: Boolean date_modified_lt: DateTime - text_nin: [String] - plain_text_lte: String - title_lte: String - is_incident_report_ne: Boolean - modifiedBy_gte: String - epoch_date_modified_ne: Int - epoch_date_submitted_ne: Int - date_published_gte: DateTime - date_modified_gt: DateTime - date_downloaded_lte: DateTime - date_modified_in: [DateTime] - flag_exists: Boolean - modifiedBy_exists: Boolean - date_published_lt: DateTime - epoch_date_downloaded_in: [Int] - title: String - editor_notes_in: [String] - modifiedBy_nin: [String] - date_downloaded: DateTime + epoch_date_submitted_exists: Boolean + description_nin: [String] epoch_date_published_in: [Int] - date_downloaded_gt: DateTime - epoch_date_downloaded_gte: Int + editor_notes_in: [String] + description_ne: String + modifiedBy_gte: String + title_lte: String + epoch_date_published_nin: [Int] + url_gte: String + date_modified_gte: DateTime + _id_gte: ObjectId url_gt: String - OR: [History_reportQueryInput!] - title_in: [String] - date_submitted_gte: DateTime - report_number_gt: Int - cloudinary_id_lte: String - epoch_date_modified_in: [Int] - source_domain_gte: String - epoch_date_submitted_gt: Int + report_number_nin: [Int] language_gt: String - editor_notes_gte: String - epoch_date_submitted: Int - date_modified: DateTime - _id_exists: Boolean - editor_notes: String - date_submitted_in: [DateTime] - cloudinary_id_ne: String - date_modified_gte: DateTime + date_submitted_lt: DateTime + authors_in: [String] submitters_exists: Boolean - report_number_lte: Int - editor_notes_exists: Boolean - date_downloaded_gte: DateTime - text_gt: String - description_nin: [String] - image_url_lte: String - is_incident_report: Boolean - editor_notes_gt: String + image_url: String + flag_exists: Boolean + modifiedBy_ne: String + plain_text_lte: String + epoch_date_submitted_ne: Int + date_published: DateTime + epoch_date_submitted_gte: Int + embedding: History_reportEmbeddingQueryInput report_number_exists: Boolean - source_domain_gt: String - editor_notes_ne: String - date_published_ne: DateTime - date_submitted_gt: DateTime - description_in: [String] - submitters_in: [String] - plain_text_gt: String - source_domain_lt: String - epoch_date_published_nin: [Int] - user_exists: Boolean - language: String - report_number_in: [Int] - epoch_date_modified_exists: Boolean - url_nin: [String] - plain_text_in: [String] - cloudinary_id_in: [String] - source_domain_in: [String] - text_lt: String + title_ne: String } -enum NotificationSortByInput { - _ID_ASC - INCIDENT_ID_ASC - INCIDENT_ID_DESC - SENTDATE_ASC - TYPE_ASC - _ID_DESC - SENTDATE_DESC - TYPE_DESC - USERID_ASC - USERID_DESC +input ClassificationAttributeQueryInput { + short_name_gte: String + value_json_gt: String + value_json_gte: String + short_name_in: [String] + short_name_nin: [String] + value_json: String + OR: [ClassificationAttributeQueryInput!] + short_name_exists: Boolean + value_json_nin: [String] + value_json_lt: String + AND: [ClassificationAttributeQueryInput!] + value_json_ne: String + value_json_lte: String + short_name: String + short_name_gt: String + short_name_ne: String + short_name_lt: String + short_name_lte: String + value_json_in: [String] + value_json_exists: Boolean } -type SubmissionNlp_similar_incident { - incident_id: Int - similarity: Float +enum History_reportSortByInput { + _ID_ASC + CLOUDINARY_ID_DESC + EPOCH_DATE_PUBLISHED_DESC + TEXT_DESC + IMAGE_URL_DESC + LANGUAGE_ASC + USER_ASC + CLOUDINARY_ID_ASC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_ASC + EPOCH_DATE_SUBMITTED_DESC + _ID_DESC + DATE_MODIFIED_ASC + MODIFIEDBY_ASC + TITLE_DESC + URL_DESC + USER_DESC + DATE_DOWNLOADED_ASC + EPOCH_DATE_DOWNLOADED_DESC + EPOCH_DATE_PUBLISHED_ASC + PLAIN_TEXT_DESC + PLAIN_TEXT_ASC + REPORT_NUMBER_DESC + DATE_MODIFIED_DESC + DATE_SUBMITTED_ASC + DESCRIPTION_DESC + MODIFIEDBY_DESC + TITLE_ASC + DATE_PUBLISHED_ASC + EDITOR_NOTES_ASC + EPOCH_DATE_SUBMITTED_ASC + IMAGE_URL_ASC + EPOCH_DATE_MODIFIED_DESC + REPORT_NUMBER_ASC + DATE_DOWNLOADED_DESC + DATE_PUBLISHED_DESC + DESCRIPTION_ASC + EPOCH_DATE_DOWNLOADED_ASC + TEXT_ASC + URL_ASC + DATE_SUBMITTED_DESC + LANGUAGE_DESC + SOURCE_DOMAIN_ASC + SOURCE_DOMAIN_DESC } -input QuickaddQueryInput { - date_submitted_gt: String - url_gt: String - source_domain: String - url_in: [String] - source_domain_in: [String] - date_submitted: String - incident_id_gt: Long - url_gte: String - url_lt: String - url: String - url_nin: [String] - source_domain_lte: String - source_domain_gt: String - url_exists: Boolean - url_ne: String - _id_ne: ObjectId - date_submitted_exists: Boolean - incident_id_in: [Long] - incident_id_ne: Long - date_submitted_lt: String - source_domain_ne: String - OR: [QuickaddQueryInput!] - _id_gte: ObjectId - date_submitted_nin: [String] - url_lte: String - _id_nin: [ObjectId] - _id_exists: Boolean - incident_id_gte: Long - AND: [QuickaddQueryInput!] - _id_lt: ObjectId - date_submitted_gte: String - _id_lte: ObjectId - source_domain_lt: String - date_submitted_lte: String - incident_id_lte: Long - source_domain_exists: Boolean - incident_id_exists: Boolean - incident_id_lt: Long - source_domain_gte: String - incident_id: Long - _id: ObjectId - date_submitted_in: [String] - source_domain_nin: [String] - _id_gt: ObjectId - date_submitted_ne: String - _id_in: [ObjectId] - incident_id_nin: [Long] +type RisksPayloadItem { + precedents: [RisksPayloadPrecedent] + tag: String + tags: [String] + title: String } -enum SubscriptionSortByInput { - ENTITYID_ASC - USERID_ASC - USERID_DESC +enum QuickaddSortByInput { + _ID_ASC + INCIDENT_ID_DESC + SOURCE_DOMAIN_ASC + SOURCE_DOMAIN_DESC + URL_ASC + URL_DESC _ID_DESC - ENTITYID_DESC + DATE_SUBMITTED_ASC + DATE_SUBMITTED_DESC INCIDENT_ID_ASC - INCIDENT_ID_DESC - TYPE_ASC - TYPE_DESC - _ID_ASC } -type CreateVariantPayload { - incident_id: Int - report_number: Int +input TaxaField_listUpdateInput { + permitted_values_unset: Boolean + public_unset: Boolean + short_description_unset: Boolean + required: Boolean + weight: Int + field_number: String + item_fields_unset: Boolean + long_name_unset: Boolean + long_name: String + display_type: String + long_description: String + short_name: String + complete_from: TaxaField_listComplete_fromUpdateInput + short_description: String + hide_search: Boolean + placeholder_unset: Boolean + field_number_unset: Boolean + instant_facet_unset: Boolean + public: Boolean + weight_unset: Boolean + weight_inc: Int + short_name_unset: Boolean + placeholder: String + display_type_unset: Boolean + required_unset: Boolean + permitted_values: [String] + default: String + long_description_unset: Boolean + hide_search_unset: Boolean + mongo_type: String + complete_from_unset: Boolean + mongo_type_unset: Boolean + item_fields: TaxaField_listItem_fieldUpdateInput + instant_facet: Boolean + default_unset: Boolean } -type History_incident { - AllegedDeployerOfAISystem: [String] - AllegedDeveloperOfAISystem: [String] - AllegedHarmedOrNearlyHarmedParties: [String] - _id: ObjectId - date: String! - description: String - editor_dissimilar_incidents: [Int] - editor_notes: String - editor_similar_incidents: [Int] - editors: [String]! - embedding: History_incidentEmbedding - epoch_date_modified: Int - flagged_dissimilar_incidents: [Int] - incident_id: Int! - modifiedBy: String - nlp_similar_incidents: [History_incidentNlp_similar_incident] - reports: [Int]! - title: String! - tsne: History_incidentTsne +input ClassificationReportsRelationInput { + create: [ReportInsertInput] + link: [Int] } -enum ChecklistSortByInput { - DATE_CREATED_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - ID_ASC - NAME_DESC - DATE_CREATED_ASC - _ID_DESC - ABOUT_DESC - DATE_UPDATED_ASC - DATE_UPDATED_DESC - OWNER_ID_DESC - _ID_ASC - ID_DESC - NAME_ASC - OWNER_ID_ASC - ABOUT_ASC +type DefaultAdminUser { + message: String + status: Int + userId: String } -input ReportEmbeddingUpdateInput { - from_text_hash: String - from_text_hash_unset: Boolean - vector: [Float] - vector_unset: Boolean +input CreateVariantInputVariant { + inputs_outputs: [String] + submitters: [String] + text: String + date_published: String } -input ChecklistRiskInsertInput { - risk_status: String - touched: Boolean - generated: Boolean - id: String - likelihood: String - precedents: [ChecklistRiskPrecedentInsertInput] - tags: [String] - risk_notes: String - severity: String +input History_incidentUpdateInput { + reports: [Int] + editor_notes_unset: Boolean + date: String + flagged_dissimilar_incidents: [Int] + description: String + editor_similar_incidents: [Int] + AllegedDeployerOfAISystem_unset: Boolean + editor_similar_incidents_unset: Boolean + nlp_similar_incidents_unset: Boolean + AllegedDeveloperOfAISystem_unset: Boolean + description_unset: Boolean + title_unset: Boolean title: String + editor_notes: String + epoch_date_modified_inc: Int + reports_unset: Boolean + _id_unset: Boolean + modifiedBy_unset: Boolean + modifiedBy: String + editors_unset: Boolean + embedding: History_incidentEmbeddingUpdateInput + tsne: History_incidentTsneUpdateInput + AllegedDeveloperOfAISystem: [String] + incident_id_unset: Boolean + editor_dissimilar_incidents: [Int] + epoch_date_modified_unset: Boolean + flagged_dissimilar_incidents_unset: Boolean + editors: [String] + AllegedHarmedOrNearlyHarmedParties_unset: Boolean + incident_id_inc: Int + tsne_unset: Boolean + AllegedHarmedOrNearlyHarmedParties: [String] + _id: ObjectId + nlp_similar_incidents: [History_incidentNlp_similar_incidentUpdateInput] + date_unset: Boolean + epoch_date_modified: Int + editor_dissimilar_incidents_unset: Boolean + AllegedDeployerOfAISystem: [String] + embedding_unset: Boolean + incident_id: Int } -input SubmissionEmbeddingInsertInput { - vector: [Float] - from_text_hash: String +input IncidentAllegedDeployerOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] } -input ClassificationReportsRelationInput { - create: [ReportInsertInput] - link: [Int] +input History_incidentEmbeddingUpdateInput { + from_reports_unset: Boolean + vector: [Float] + vector_unset: Boolean + from_reports: [Int] } -input TaxaField_listItem_fieldComplete_fromUpdateInput { - entities: Boolean - entities_unset: Boolean - all: [String] - all_unset: Boolean - current: [String] - current_unset: Boolean +type Notification { + _id: ObjectId + incident_id: Int + processed: Boolean + sentDate: DateTime + type: String + userId: User } -input TaxaDummy_fieldQueryInput { - AND: [TaxaDummy_fieldQueryInput!] - short_name_in: [String] - field_number_ne: String - short_name: String - OR: [TaxaDummy_fieldQueryInput!] - short_name_nin: [String] - field_number_exists: Boolean - short_name_gte: String - field_number_lte: String - short_name_exists: Boolean - short_name_gt: String - short_name_ne: String - field_number_in: [String] - field_number_gte: String - field_number: String - field_number_lt: String - short_name_lt: String - field_number_gt: String - short_name_lte: String - field_number_nin: [String] +type Report { + _id: ObjectId + authors: [String]! + cloudinary_id: String! + date_downloaded: DateTime! + date_modified: DateTime! + date_published: DateTime! + date_submitted: DateTime! + description: String + editor_notes: String + embedding: ReportEmbedding + epoch_date_downloaded: Int! + epoch_date_modified: Int! + epoch_date_published: Int! + epoch_date_submitted: Int! + flag: Boolean + image_url: String! + inputs_outputs: [String] + is_incident_report: Boolean + language: String! + plain_text: String! + quiet: Boolean + report_number: Int! + source_domain: String! + submitters: [String]! + tags: [String]! + text: String! + title: String! + translations(input: String): ReportTranslation + url: String! + user: User } type TaxaField_listComplete_from { @@ -953,3330 +1003,3332 @@ type TaxaField_listComplete_from { current: [String] } -input EntityQueryInput { +type Duplicate { _id: ObjectId - _id_exists: Boolean - entity_id: String - name_ne: String - name_lte: String - entity_id_lte: String - _id_ne: ObjectId - name_exists: Boolean - _id_lte: ObjectId - _id_gt: ObjectId - entity_id_ne: String - entity_id_nin: [String] - name_lt: String - name_gt: String - name_gte: String - entity_id_gte: String - _id_gte: ObjectId - OR: [EntityQueryInput!] - AND: [EntityQueryInput!] - entity_id_in: [String] - _id_lt: ObjectId - entity_id_exists: Boolean - entity_id_gt: String - name_in: [String] - _id_nin: [ObjectId] - _id_in: [ObjectId] - name: String - name_nin: [String] - entity_id_lt: String + duplicate_incident_number: Int + true_incident_number: Int } -input CandidateQueryInput { - date_downloaded_ne: String - epoch_date_downloaded_gte: Int - similarity_exists: Boolean - OR: [CandidateQueryInput!] - epoch_date_published_nin: [Int] - image_url_gt: String - matching_entities: [String] - plain_text_gte: String - match_exists: Boolean - source_domain_lt: String - text_in: [String] - epoch_date_downloaded_ne: Int - language: String - url: String - image_url_lte: String - similarity_gte: Float - epoch_date_downloaded_gt: Int - language_gt: String - similarity_lte: Float - AND: [CandidateQueryInput!] - text_lt: String +input IncidentQueryInput { + editor_notes_exists: Boolean + editor_similar_incidents_exists: Boolean + title_exists: Boolean + editor_notes_ne: String + editor_dissimilar_incidents: [Int] + description_exists: Boolean + editor_dissimilar_incidents_in: [Int] + title: String + epoch_date_modified_gt: Int + description: String + AllegedDeployerOfAISystem_nin: [EntityQueryInput] + _id_lt: ObjectId + embedding_exists: Boolean + nlp_similar_incidents_exists: Boolean + editor_notes_lte: String + OR: [IncidentQueryInput!] + AllegedDeployerOfAISystem_exists: Boolean + description_gt: String + title_ne: String + editor_dissimilar_incidents_nin: [Int] + AllegedDeveloperOfAISystem_nin: [EntityQueryInput] + incident_id_lt: Int + AllegedHarmedOrNearlyHarmedParties: [EntityQueryInput] + editors: [UserQueryInput] + tsne_exists: Boolean + incident_id_ne: Int + editors_exists: Boolean + epoch_date_modified_nin: [Int] + _id: ObjectId + editor_notes: String title_nin: [String] - date_downloaded_gt: String - date_downloaded: String - date_published_in: [String] + reports_in: [ReportQueryInput] + editor_notes_in: [String] + editor_notes_gte: String + description_ne: String + epoch_date_modified_exists: Boolean + AND: [IncidentQueryInput!] + date: String + description_in: [String] + editors_in: [UserQueryInput] + AllegedHarmedOrNearlyHarmedParties_nin: [EntityQueryInput] + AllegedDeployerOfAISystem: [EntityQueryInput] + AllegedHarmedOrNearlyHarmedParties_in: [EntityQueryInput] + date_nin: [String] + incident_id_exists: Boolean + title_gt: String + epoch_date_modified_lte: Int + description_lte: String + reports_nin: [ReportQueryInput] + embedding: IncidentEmbeddingQueryInput + epoch_date_modified: Int + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + description_lt: String _id_nin: [ObjectId] - epoch_date_downloaded_in: [Int] + editor_dissimilar_incidents_exists: Boolean + editor_notes_gt: String + incident_id_lte: Int + date_gte: String + nlp_similar_incidents_in: [IncidentNlp_similar_incidentQueryInput] + epoch_date_modified_gte: Int + date_lt: String title_in: [String] - url_lte: String - epoch_date_published_gt: Int - similarity_lt: Float - matching_entities_nin: [String] - image_url_lt: String - _id_in: [ObjectId] - epoch_date_downloaded_nin: [Int] - dismissed_ne: Boolean - matching_keywords_nin: [String] - _id_exists: Boolean - source_domain_ne: String - matching_entities_exists: Boolean - date_published_gte: String - source_domain: String - text_lte: String - epoch_date_downloaded_exists: Boolean - image_url_ne: String - authors: [String] - epoch_date_published_ne: Int - source_domain_exists: Boolean - matching_harm_keywords: [String] - title_exists: Boolean - similarity_in: [Float] - url_in: [String] - authors_in: [String] - plain_text_lt: String - authors_exists: Boolean - language_nin: [String] - url_nin: [String] - epoch_date_downloaded_lt: Int - _id_gt: ObjectId - image_url_gte: String - similarity_gt: Float - image_url_exists: Boolean - _id: ObjectId - title_gt: String - classification_similarity_exists: Boolean - epoch_date_published_lte: Int - image_url: String - plain_text: String - plain_text_gt: String - date_published_lte: String - source_domain_nin: [String] - plain_text_lte: String - similarity_nin: [Float] - plain_text_nin: [String] - title_lt: String - match: Boolean - classification_similarity: [CandidateClassification_similarityQueryInput] - language_in: [String] - date_downloaded_lt: String - source_domain_in: [String] - url_exists: Boolean - text_exists: Boolean - authors_nin: [String] - epoch_date_downloaded_lte: Int - dismissed: Boolean - url_lt: String - date_published_ne: String + date_ne: String + epoch_date_modified_lt: Int + AllegedDeveloperOfAISystem: [EntityQueryInput] + flagged_dissimilar_incidents_in: [Int] + flagged_dissimilar_incidents: [Int] + date_exists: Boolean + epoch_date_modified_in: [Int] + AllegedDeveloperOfAISystem_exists: Boolean + date_gt: String + incident_id_in: [Int] + _id_ne: ObjectId + incident_id_gte: Int + _id_gte: ObjectId title_lte: String - plain_text_exists: Boolean - language_ne: String + tsne: IncidentTsneQueryInput + _id_exists: Boolean + editor_notes_nin: [String] + incident_id_gt: Int + nlp_similar_incidents_nin: [IncidentNlp_similar_incidentQueryInput] + _id_in: [ObjectId] + editor_notes_lt: String + reports: [ReportQueryInput] title_gte: String - image_url_in: [String] - date_downloaded_nin: [String] - matching_harm_keywords_in: [String] - epoch_date_downloaded: Int - image_url_nin: [String] - source_domain_lte: String - matching_keywords: [String] - text_nin: [String] - text: String - classification_similarity_nin: [CandidateClassification_similarityQueryInput] - classification_similarity_in: [CandidateClassification_similarityQueryInput] - matching_harm_keywords_nin: [String] - epoch_date_published_in: [Int] - url_gt: String - epoch_date_published: Int - matching_entities_in: [String] - date_downloaded_gte: String - date_downloaded_in: [String] - dismissed_exists: Boolean - plain_text_in: [String] - source_domain_gte: String - match_ne: Boolean - source_domain_gt: String - embedding: CandidateEmbeddingQueryInput - _id_lt: ObjectId - embedding_exists: Boolean - epoch_date_published_gte: Int - _id_gte: ObjectId - language_lt: String - language_lte: String - url_gte: String - date_published_exists: Boolean - title: String - date_published_gt: String - plain_text_ne: String - language_gte: String - similarity: Float + title_lt: String + flagged_dissimilar_incidents_nin: [Int] + incident_id: Int + epoch_date_modified_ne: Int _id_lte: ObjectId - date_published_lt: String - date_downloaded_lte: String - matching_harm_keywords_exists: Boolean - text_gte: String - epoch_date_published_exists: Boolean - _id_ne: ObjectId - matching_keywords_in: [String] - epoch_date_published_lt: Int - text_gt: String - title_ne: String - url_ne: String - date_published_nin: [String] - matching_keywords_exists: Boolean - date_downloaded_exists: Boolean - similarity_ne: Float - date_published: String - text_ne: String - language_exists: Boolean + AllegedDeployerOfAISystem_in: [EntityQueryInput] + editor_similar_incidents_in: [Int] + AllegedDeveloperOfAISystem_in: [EntityQueryInput] + editor_similar_incidents: [Int] + date_in: [String] + flagged_dissimilar_incidents_exists: Boolean + editors_nin: [UserQueryInput] + description_gte: String + incident_id_nin: [Int] + editor_similar_incidents_nin: [Int] + reports_exists: Boolean + _id_gt: ObjectId + nlp_similar_incidents: [IncidentNlp_similar_incidentQueryInput] + date_lte: String + description_nin: [String] } -type IncidentNlp_similar_incident { - incident_id: Int +input History_incidentNlp_similar_incidentQueryInput { + similarity_gte: Float + incident_id_lte: Int + incident_id_in: [Int] + incident_id_ne: Int similarity: Float + similarity_nin: [Float] + similarity_gt: Float + incident_id_nin: [Int] + OR: [History_incidentNlp_similar_incidentQueryInput!] + incident_id_lt: Int + similarity_in: [Float] + incident_id_exists: Boolean + similarity_lt: Float + similarity_exists: Boolean + incident_id_gt: Int + similarity_lte: Float + similarity_ne: Float + incident_id: Int + AND: [History_incidentNlp_similar_incidentQueryInput!] + incident_id_gte: Int } -input IncidentEmbeddingInsertInput { - from_reports: [Int] - vector: [Float] -} - -input TaxaInsertInput { - namespace: String +input TaxaField_listItem_fieldQueryInput { + long_description_gte: String + weight_lte: Int + long_name_lt: String + OR: [TaxaField_listItem_fieldQueryInput!] + short_name_lt: String + display_type: String + long_description_ne: String + placeholder_gt: String + display_type_gte: String + complete_from_exists: Boolean + short_name_exists: Boolean + field_number_lt: String + field_number_gt: String weight: Int - _id: ObjectId - complete_entities: Boolean - description: String - dummy_fields: [TaxaDummy_fieldInsertInput] - field_list: [TaxaField_listInsertInput] -} - -type User { - _id: ObjectId - adminData: UserAdminDatum - first_name: String - last_name: String - roles: [String]! - userId: String! -} - -input ChecklistRiskQueryInput { - risk_notes_gte: String - severity_gt: String - likelihood: String - precedents_exists: Boolean - likelihood_exists: Boolean - risk_notes_exists: Boolean - severity: String - risk_notes_lte: String - id_nin: [String] - risk_status_exists: Boolean - id_in: [String] - id: String - id_lt: String - risk_notes_in: [String] - tags_in: [String] - tags_nin: [String] - title_nin: [String] - tags: [String] - risk_status: String - risk_notes_gt: String - severity_nin: [String] - precedents: [ChecklistRiskPrecedentQueryInput] - touched_exists: Boolean - id_exists: Boolean - severity_lte: String - likelihood_lte: String - tags_exists: Boolean - title_lte: String - severity_lt: String - touched_ne: Boolean - id_lte: String - likelihood_in: [String] - risk_status_gt: String - risk_status_lt: String - likelihood_ne: String - risk_status_gte: String - risk_status_ne: String - title_exists: Boolean - likelihood_nin: [String] - severity_in: [String] - severity_gte: String - id_ne: String - severity_exists: Boolean - generated_exists: Boolean - risk_status_in: [String] - id_gt: String - risk_notes_ne: String - title_ne: String - generated: Boolean - title_gte: String - touched: Boolean - generated_ne: Boolean - risk_notes_nin: [String] - risk_notes_lt: String - id_gte: String - title_gt: String - AND: [ChecklistRiskQueryInput!] - likelihood_lt: String - title_lt: String - likelihood_gte: String - severity_ne: String - title: String - title_in: [String] - OR: [ChecklistRiskQueryInput!] - precedents_in: [ChecklistRiskPrecedentQueryInput] - precedents_nin: [ChecklistRiskPrecedentQueryInput] - risk_status_lte: String - risk_notes: String - likelihood_gt: String - risk_status_nin: [String] -} - -type LogIncidentHistoryPayload { - incident_id: Int + placeholder_lte: String + placeholder: String + weight_ne: Int + short_description: String + mongo_type_exists: Boolean + short_description_gt: String + mongo_type_lte: String + default_gte: String + short_name_nin: [String] + mongo_type_in: [String] + required_ne: Boolean + default_lt: String + public: Boolean + complete_from: TaxaField_listItem_fieldComplete_fromQueryInput + long_name_lte: String + long_description: String + weight_gte: Int + instant_facet_exists: Boolean + field_number_nin: [String] + long_name_nin: [String] + long_name_exists: Boolean + field_number_gte: String + instant_facet_ne: Boolean + default_in: [String] + long_description_nin: [String] + mongo_type_ne: String + long_name_ne: String + long_name_gt: String + short_name_lte: String + default_exists: Boolean + field_number: String + mongo_type_gt: String + short_name_ne: String + field_number_ne: String + short_description_gte: String + placeholder_in: [String] + long_description_exists: Boolean + short_description_ne: String + required_exists: Boolean + required: Boolean + mongo_type: String + short_name: String + permitted_values_nin: [String] + field_number_in: [String] + short_description_lte: String + display_type_lte: String + instant_facet: Boolean + weight_in: [Int] + public_exists: Boolean + placeholder_nin: [String] + mongo_type_nin: [String] + permitted_values: [String] + long_name: String + placeholder_gte: String + long_description_in: [String] + long_name_gte: String + short_description_in: [String] + weight_lt: Int + long_description_gt: String + weight_gt: Int + long_description_lt: String + AND: [TaxaField_listItem_fieldQueryInput!] + mongo_type_gte: String + short_description_exists: Boolean + display_type_exists: Boolean + default_gt: String + field_number_exists: Boolean + short_name_gt: String + short_description_lt: String + default_nin: [String] + placeholder_ne: String + display_type_gt: String + mongo_type_lt: String + short_description_nin: [String] + default_ne: String + display_type_ne: String + default_lte: String + placeholder_exists: Boolean + short_name_gte: String + display_type_lt: String + placeholder_lt: String + weight_exists: Boolean + short_name_in: [String] + long_name_in: [String] + display_type_nin: [String] + weight_nin: [Int] + permitted_values_in: [String] + default: String + permitted_values_exists: Boolean + public_ne: Boolean + long_description_lte: String + display_type_in: [String] + field_number_lte: String } -input ClassificationQueryInput { - notes_in: [String] - notes_ne: String - namespace_in: [String] - notes: String - namespace_lte: String - notes_exists: Boolean - _id_ne: ObjectId - _id_in: [ObjectId] - notes_gt: String - notes_lte: String - _id_exists: Boolean - incidents: [IncidentQueryInput] - namespace_gte: String - namespace_lt: String - publish: Boolean - incidents_exists: Boolean - _id_nin: [ObjectId] - publish_exists: Boolean - reports_nin: [ReportQueryInput] - reports_exists: Boolean - notes_nin: [String] - attributes: [ClassificationAttributeQueryInput] - namespace: String - _id_gte: ObjectId - attributes_in: [ClassificationAttributeQueryInput] - _id_lt: ObjectId - attributes_exists: Boolean - incidents_nin: [IncidentQueryInput] - notes_lt: String - namespace_ne: String +type User { _id: ObjectId - namespace_nin: [String] - reports_in: [ReportQueryInput] - attributes_nin: [ClassificationAttributeQueryInput] - AND: [ClassificationQueryInput!] - reports: [ReportQueryInput] - notes_gte: String - namespace_gt: String - OR: [ClassificationQueryInput!] - incidents_in: [IncidentQueryInput] - namespace_exists: Boolean - _id_gt: ObjectId - publish_ne: Boolean - _id_lte: ObjectId + adminData: UserAdminDatum + first_name: String + last_name: String + roles: [String]! + userId: String! } -input History_incidentTsneInsertInput { +input History_incidentTsneUpdateInput { + x_unset: Boolean y: Float + y_inc: Float + y_unset: Boolean x: Float + x_inc: Float } -type PromoteSubmissionToReportPayload { - incident_ids: [Int] - report_number: Int -} - -input UserQueryInput { - last_name_lt: String - last_name_gt: String - _id_gt: ObjectId - roles: [String] - _id_exists: Boolean - AND: [UserQueryInput!] - first_name_lte: String - userId: String - last_name_in: [String] - last_name_nin: [String] - _id_nin: [ObjectId] - last_name_gte: String - _id: ObjectId - userId_lt: String - userId_gt: String - last_name_lte: String - _id_lte: ObjectId - first_name_gte: String - userId_exists: Boolean - _id_ne: ObjectId - last_name: String - _id_gte: ObjectId - last_name_ne: String - userId_in: [String] - userId_lte: String - userId_ne: String - _id_in: [ObjectId] - roles_nin: [String] - first_name_gt: String - first_name_nin: [String] - last_name_exists: Boolean - roles_in: [String] - first_name_exists: Boolean - userId_gte: String - first_name: String - first_name_lt: String - OR: [UserQueryInput!] - roles_exists: Boolean - first_name_ne: String - userId_nin: [String] - first_name_in: [String] - _id_lt: ObjectId -} - -input IncidentNlp_similar_incidentUpdateInput { - incident_id: Int - incident_id_inc: Int - incident_id_unset: Boolean - similarity: Float - similarity_inc: Float - similarity_unset: Boolean -} - -input SubmissionIncident_editorsRelationInput { - create: [UserInsertInput] - link: [String] -} - -enum SubmissionSortByInput { - LANGUAGE_ASC - SOURCE_DOMAIN_DESC - TEXT_DESC - DATE_MODIFIED_ASC - PLAIN_TEXT_DESC - TEXT_ASC - TITLE_DESC - USER_DESC - _ID_DESC - DATE_PUBLISHED_DESC - EPOCH_DATE_MODIFIED_ASC - INCIDENT_DATE_DESC - LANGUAGE_DESC - URL_ASC - DATE_PUBLISHED_ASC - EDITOR_NOTES_ASC - IMAGE_URL_DESC - INCIDENT_TITLE_ASC - INCIDENT_TITLE_DESC - SOURCE_DOMAIN_ASC - DATE_SUBMITTED_ASC - DATE_SUBMITTED_DESC - DESCRIPTION_ASC - EPOCH_DATE_MODIFIED_DESC - URL_DESC - USER_ASC - PLAIN_TEXT_ASC - _ID_ASC - CLOUDINARY_ID_ASC - DATE_DOWNLOADED_DESC - DESCRIPTION_DESC - EDITOR_NOTES_DESC - IMAGE_URL_ASC - TITLE_ASC - CLOUDINARY_ID_DESC - DATE_DOWNLOADED_ASC - DATE_MODIFIED_DESC - INCIDENT_DATE_ASC - STATUS_ASC - STATUS_DESC +input TaxaField_listQueryInput { + short_description_ne: String + weight_nin: [Int] + mongo_type_exists: Boolean + complete_from: TaxaField_listComplete_fromQueryInput + AND: [TaxaField_listQueryInput!] + public_exists: Boolean + default_exists: Boolean + default_lte: String + placeholder_ne: String + mongo_type_lte: String + short_name_exists: Boolean + mongo_type_lt: String + mongo_type_nin: [String] + placeholder_in: [String] + short_name_ne: String + long_name_lt: String + short_description_nin: [String] + long_name: String + placeholder_exists: Boolean + long_description_gte: String + permitted_values_in: [String] + long_description_lt: String + placeholder_gte: String + permitted_values_nin: [String] + short_name: String + short_description_in: [String] + field_number_ne: String + short_name_gte: String + long_description_ne: String + public: Boolean + weight_gt: Int + short_name_gt: String + weight_ne: Int + hide_search_exists: Boolean + display_type_gte: String + permitted_values_exists: Boolean + display_type_nin: [String] + short_name_lt: String + long_description_in: [String] + field_number_lte: String + placeholder_lte: String + field_number: String + required_ne: Boolean + instant_facet_exists: Boolean + placeholder_nin: [String] + public_ne: Boolean + short_description_gte: String + long_name_gte: String + display_type_lte: String + long_name_gt: String + short_description_gt: String + mongo_type_ne: String + mongo_type_gte: String + required: Boolean + display_type_lt: String + instant_facet_ne: Boolean + weight_gte: Int + field_number_lt: String + long_description_lte: String + field_number_in: [String] + short_description_exists: Boolean + hide_search: Boolean + short_description: String + default_gt: String + weight_lt: Int + default_ne: String + instant_facet: Boolean + display_type_gt: String + OR: [TaxaField_listQueryInput!] + field_number_gte: String + display_type: String + required_exists: Boolean + short_name_nin: [String] + item_fields_exists: Boolean + short_description_lt: String + weight_in: [Int] + weight_exists: Boolean + long_name_in: [String] + long_description_exists: Boolean + complete_from_exists: Boolean + long_name_ne: String + default_lt: String + hide_search_ne: Boolean + display_type_exists: Boolean + mongo_type: String + long_description: String + long_description_gt: String + weight: Int + mongo_type_in: [String] + placeholder: String + default_gte: String + long_name_lte: String + default: String + display_type_in: [String] + short_description_lte: String + placeholder_gt: String + field_number_exists: Boolean + weight_lte: Int + field_number_nin: [String] + mongo_type_gt: String + default_nin: [String] + long_name_exists: Boolean + short_name_in: [String] + field_number_gt: String + long_description_nin: [String] + short_name_lte: String + default_in: [String] + display_type_ne: String + long_name_nin: [String] + item_fields: TaxaField_listItem_fieldQueryInput + permitted_values: [String] + placeholder_lt: String } -input DuplicateInsertInput { - _id: ObjectId - duplicate_incident_number: Int - true_incident_number: Int +input IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput { + link: [String] + create: [EntityInsertInput] } -input SubmissionInsertInput { - editor_similar_incidents: [Int] - incident_date: String - url: String! - developers: SubmissionDevelopersRelationInput - deployers: SubmissionDeployersRelationInput - image_url: String! - language: String! - epoch_date_modified: Int - incident_editors: SubmissionIncident_editorsRelationInput - source_domain: String! - user: SubmissionUserRelationInput - embedding: SubmissionEmbeddingInsertInput - cloudinary_id: String - submitters: [String]! - nlp_similar_incidents: [SubmissionNlp_similar_incidentInsertInput] - date_modified: String! - date_published: String! - editor_dissimilar_incidents: [Int] - status: String - incident_ids: [Int] - _id: ObjectId - authors: [String]! - date_submitted: String! - text: String! - date_downloaded: String! - incident_title: String - title: String! - editor_notes: String - description: String - tags: [String]! - plain_text: String - harmed_parties: SubmissionHarmed_partiesRelationInput +input CreateDefaultAdminUserInput { + email: String + password: String } -input IncidentNlp_similar_incidentQueryInput { - incident_id_lt: Int - OR: [IncidentNlp_similar_incidentQueryInput!] - similarity: Float +type IncidentNlp_similar_incident { incident_id: Int - incident_id_nin: [Int] - incident_id_gte: Int - similarity_ne: Float - similarity_exists: Boolean - similarity_nin: [Float] - similarity_gt: Float - similarity_gte: Float - similarity_lte: Float - similarity_in: [Float] - similarity_lt: Float - incident_id_gt: Int - incident_id_exists: Boolean - incident_id_lte: Int - incident_id_in: [Int] - incident_id_ne: Int - AND: [IncidentNlp_similar_incidentQueryInput!] -} - -input SubscriptionEntityIdRelationInput { - create: EntityInsertInput - link: String + similarity: Float } input History_incidentTsneQueryInput { + y_ne: Float AND: [History_incidentTsneQueryInput!] + x_lte: Float + y: Float + y_in: [Float] + x_gte: Float + y_nin: [Float] + x_gt: Float + y_lte: Float x_exists: Boolean + x_nin: [Float] y_gte: Float - x_in: [Float] x_ne: Float y_exists: Boolean - y_lt: Float - y_in: [Float] - x_lt: Float - y_nin: [Float] - x_nin: [Float] - x_gt: Float - x_gte: Float - y_gt: Float - y: Float - y_ne: Float x: Float - y_lte: Float + y_gt: Float OR: [History_incidentTsneQueryInput!] - x_lte: Float -} - -input IncidentEmbeddingUpdateInput { - from_reports_unset: Boolean - vector: [Float] - vector_unset: Boolean - from_reports: [Int] -} - -enum ClassificationSortByInput { - NAMESPACE_ASC - NAMESPACE_DESC - NOTES_ASC - NOTES_DESC - _ID_ASC - _ID_DESC + y_lt: Float + x_lt: Float + x_in: [Float] } -input ClassificationAttributeQueryInput { - short_name_gte: String - short_name_lt: String - short_name_exists: Boolean - short_name_lte: String - AND: [ClassificationAttributeQueryInput!] - short_name_ne: String - value_json_gt: String - value_json_gte: String - short_name_in: [String] - value_json: String - value_json_lt: String - value_json_nin: [String] - value_json_lte: String - short_name_gt: String - short_name_nin: [String] - value_json_ne: String - OR: [ClassificationAttributeQueryInput!] - value_json_in: [String] - short_name: String - value_json_exists: Boolean -} - -input DuplicateQueryInput { - duplicate_incident_number_ne: Int - true_incident_number_nin: [Int] - _id: ObjectId +input ChecklistQueryInput { + date_updated: DateTime + about_gt: String + date_created: DateTime + id_exists: Boolean + id_lt: String + about_ne: String + date_updated_lt: DateTime + tags_other_in: [String] + date_updated_in: [DateTime] + tags_other_nin: [String] + date_updated_gte: DateTime + owner_id_lte: String + date_created_in: [DateTime] + entity_id_lte: String + _id_lt: ObjectId + about_lt: String + name_ne: String + date_created_gt: DateTime + risks_nin: [ChecklistRiskQueryInput] + about_in: [String] + owner_id_ne: String + about_gte: String + AND: [ChecklistQueryInput!] _id_nin: [ObjectId] - _id_lte: ObjectId - true_incident_number_ne: Int - duplicate_incident_number_gte: Int - true_incident_number_lte: Int - true_incident_number: Int - true_incident_number_gt: Int - AND: [DuplicateQueryInput!] - true_incident_number_exists: Boolean - duplicate_incident_number_lte: Int - duplicate_incident_number_nin: [Int] + id_ne: String + date_updated_ne: DateTime + _id_gt: ObjectId + tags_methods: [String] + tags_methods_exists: Boolean + _id: ObjectId + id_gt: String + id_in: [String] + date_created_nin: [DateTime] + entity_id_exists: Boolean + owner_id_in: [String] + OR: [ChecklistQueryInput!] + tags_methods_nin: [String] _id_exists: Boolean + _id_lte: ObjectId + risks_in: [ChecklistRiskQueryInput] + owner_id_gte: String + date_created_gte: DateTime + about_lte: String + entity_id_nin: [String] + risks: [ChecklistRiskQueryInput] + date_created_lt: DateTime + entity_id: String + date_updated_gt: DateTime + date_created_exists: Boolean + entity_id_gte: String + name_gte: String + entity_id_in: [String] + date_updated_exists: Boolean + tags_goals_exists: Boolean + about_nin: [String] + entity_id_lt: String + name_lt: String + name_nin: [String] + owner_id: String + about: String + tags_methods_in: [String] + name: String + name_lte: String + about_exists: Boolean + date_created_ne: DateTime + id_gte: String + _id_gte: ObjectId + tags_other_exists: Boolean + owner_id_gt: String + risks_exists: Boolean + entity_id_gt: String + tags_goals_nin: [String] + id_lte: String + tags_goals: [String] + owner_id_exists: Boolean + tags_goals_in: [String] _id_ne: ObjectId - duplicate_incident_number_exists: Boolean - true_incident_number_gte: Int - true_incident_number_lt: Int - duplicate_incident_number: Int - duplicate_incident_number_lt: Int - duplicate_incident_number_gt: Int - duplicate_incident_number_in: [Int] - true_incident_number_in: [Int] - OR: [DuplicateQueryInput!] - _id_gt: ObjectId - _id_lt: ObjectId + date_updated_nin: [DateTime] + entity_id_ne: String + date_created_lte: DateTime + name_exists: Boolean + id: String _id_in: [ObjectId] - _id_gte: ObjectId + name_gt: String + tags_other: [String] + name_in: [String] + owner_id_lt: String + id_nin: [String] + date_updated_lte: DateTime + owner_id_nin: [String] } -input TaxaField_listItem_fieldQueryInput { - weight_gte: Int - AND: [TaxaField_listItem_fieldQueryInput!] - long_description: String - long_name_ne: String - instant_facet: Boolean - default_ne: String - placeholder_exists: Boolean - short_description_lt: String - mongo_type_ne: String - field_number_lte: String - display_type_nin: [String] - display_type_ne: String - default_lte: String - public: Boolean - short_name_in: [String] - short_description_nin: [String] - mongo_type_in: [String] - long_description_lt: String - public_exists: Boolean - field_number_lt: String - mongo_type_nin: [String] - mongo_type_lte: String - weight_nin: [Int] - instant_facet_exists: Boolean - short_description_in: [String] - field_number_in: [String] - field_number_gt: String - long_name_lte: String - long_name_gte: String - short_description: String - long_description_gt: String - required: Boolean - required_ne: Boolean - placeholder_ne: String - default_exists: Boolean - long_name_in: [String] - OR: [TaxaField_listItem_fieldQueryInput!] - mongo_type_gte: String - short_name_nin: [String] - short_name: String - permitted_values: [String] - long_name: String - permitted_values_in: [String] - short_description_gte: String - short_name_gte: String - placeholder_gte: String - mongo_type: String - field_number_gte: String - short_description_exists: Boolean - short_description_gt: String - long_description_in: [String] - weight_lte: Int - placeholder_lt: String - permitted_values_nin: [String] - default_in: [String] - placeholder_in: [String] - weight_in: [Int] - long_description_nin: [String] - default_gte: String - display_type_gt: String - long_name_exists: Boolean - field_number_ne: String - placeholder: String - instant_facet_ne: Boolean - complete_from: TaxaField_listItem_fieldComplete_fromQueryInput - public_ne: Boolean - field_number_nin: [String] - short_name_lte: String - field_number: String - display_type_in: [String] - short_description_ne: String - mongo_type_lt: String - display_type_exists: Boolean - short_name_lt: String - short_description_lte: String - display_type: String - mongo_type_gt: String - long_description_gte: String - mongo_type_exists: Boolean - permitted_values_exists: Boolean - short_name_gt: String - weight_lt: Int - default_nin: [String] - long_name_lt: String - default_lt: String - long_name_gt: String - display_type_lte: String - placeholder_nin: [String] - long_description_ne: String - default_gt: String - weight_gt: Int - long_description_exists: Boolean - complete_from_exists: Boolean - long_name_nin: [String] - weight_exists: Boolean - weight: Int - short_name_exists: Boolean - placeholder_lte: String - required_exists: Boolean - placeholder_gt: String - long_description_lte: String - short_name_ne: String - display_type_gte: String - field_number_exists: Boolean - default: String - weight_ne: Int - display_type_lt: String +input History_reportInsertInput { + is_incident_report: Boolean + date_downloaded: DateTime! + text: String! + editor_notes: String + flag: Boolean + modifiedBy: String + submitters: [String]! + title: String! + epoch_date_submitted: Int! + epoch_date_published: Int! + embedding: History_reportEmbeddingInsertInput + date_published: DateTime! + plain_text: String! + authors: [String]! + _id: ObjectId + epoch_date_modified: Int! + url: String! + cloudinary_id: String! + image_url: String! + quiet: Boolean + date_submitted: DateTime! + date_modified: DateTime! + report_number: Int! + language: String! + epoch_date_downloaded: Int! + tags: [String]! + inputs_outputs: [String] + user: String + source_domain: String! + description: String } -type ReportEmbedding { - from_text_hash: String +input ReportUpdateInput { + image_url: String + epoch_date_downloaded_inc: Int + _id_unset: Boolean + epoch_date_published: Int + epoch_date_modified: Int + user_unset: Boolean + editor_notes: String + source_domain_unset: Boolean + epoch_date_modified_unset: Boolean + report_number_unset: Boolean + date_downloaded: DateTime + epoch_date_published_inc: Int + authors: [String] + date_modified: DateTime + report_number: Int + epoch_date_downloaded_unset: Boolean + epoch_date_published_unset: Boolean + flag_unset: Boolean + url_unset: Boolean + date_submitted: DateTime + editor_notes_unset: Boolean + submitters: [String] + submitters_unset: Boolean + language_unset: Boolean + tags_unset: Boolean + epoch_date_submitted_inc: Int + inputs_outputs: [String] + plain_text_unset: Boolean + authors_unset: Boolean + title: String + text_unset: Boolean + epoch_date_modified_inc: Int + user: ReportUserRelationInput + tags: [String] + is_incident_report: Boolean + is_incident_report_unset: Boolean + description_unset: Boolean + embedding: ReportEmbeddingUpdateInput + epoch_date_submitted_unset: Boolean + flag: Boolean + language: String + epoch_date_submitted: Int + description: String + text: String + date_submitted_unset: Boolean + date_downloaded_unset: Boolean + date_published: DateTime + source_domain: String + url: String + plain_text: String + quiet: Boolean + date_modified_unset: Boolean + title_unset: Boolean + epoch_date_downloaded: Int + _id: ObjectId + image_url_unset: Boolean + cloudinary_id_unset: Boolean + date_published_unset: Boolean + cloudinary_id: String + quiet_unset: Boolean + embedding_unset: Boolean + inputs_outputs_unset: Boolean + report_number_inc: Int +} + +type IncidentEmbedding { + from_reports: [Int] vector: [Float] } -input IncidentNlp_similar_incidentInsertInput { - similarity: Float - incident_id: Int +enum UserSortByInput { + FIRST_NAME_DESC + LAST_NAME_ASC + LAST_NAME_DESC + USERID_ASC + USERID_DESC + _ID_ASC + _ID_DESC + FIRST_NAME_ASC } -type DefaultAdminUser { - message: String - status: Int - userId: String +input ReportInsertInput { + description: String + image_url: String! + authors: [String]! + date_submitted: DateTime! + title: String! + plain_text: String! + report_number: Int! + is_incident_report: Boolean + epoch_date_modified: Int! + quiet: Boolean + inputs_outputs: [String] + _id: ObjectId + user: ReportUserRelationInput + embedding: ReportEmbeddingInsertInput + tags: [String]! + cloudinary_id: String! + date_downloaded: DateTime! + epoch_date_submitted: Int! + url: String! + date_published: DateTime! + flag: Boolean + epoch_date_published: Int! + source_domain: String! + text: String! + submitters: [String]! + editor_notes: String + language: String! + epoch_date_downloaded: Int! + date_modified: DateTime! } -input TaxaField_listComplete_fromQueryInput { - AND: [TaxaField_listComplete_fromQueryInput!] - all_exists: Boolean - current_in: [String] - current_nin: [String] - all: [String] - all_nin: [String] - current: [String] - current_exists: Boolean - OR: [TaxaField_listComplete_fromQueryInput!] - all_in: [String] +type LogReportHistoryPayload { + report_number: Int } -input IncidentTsneQueryInput { - x_gte: Float - x_lte: Float - AND: [IncidentTsneQueryInput!] - y_lte: Float - y_exists: Boolean - y_gt: Float - x_gt: Float - x_ne: Float - y_nin: [Float] - y_gte: Float - y_lt: Float - x_in: [Float] +type RisksPayloadPrecedentTsne { x: Float - y_in: [Float] - y_ne: Float - OR: [IncidentTsneQueryInput!] y: Float - x_lt: Float - x_nin: [Float] - x_exists: Boolean } -input QuickaddUpdateInput { - date_submitted_unset: Boolean - incident_id_unset: Boolean - date_submitted: String - incident_id: Long - source_domain_unset: Boolean - _id: ObjectId - _id_unset: Boolean - source_domain: String - url: String - url_unset: Boolean +input SubscriptionIncident_idRelationInput { + link: Int + create: IncidentInsertInput } -type History_incidentEmbedding { - from_reports: [Int] - vector: [Float] +type PromoteSubmissionToReportPayload { + incident_ids: [Int] + report_number: Int } -type CandidateEmbedding { +type DeleteManyPayload { + deletedCount: Int! +} + +input TaxaInsertInput { + namespace: String + weight: Int + _id: ObjectId + complete_entities: Boolean + description: String + dummy_fields: [TaxaDummy_fieldInsertInput] + field_list: [TaxaField_listInsertInput] +} + +input SubmissionEmbeddingUpdateInput { from_text_hash: String + from_text_hash_unset: Boolean vector: [Float] + vector_unset: Boolean } -input ReportEmbeddingInsertInput { - from_text_hash: String +type History_incidentEmbedding { + from_reports: [Int] vector: [Float] } -input ClassificationAttributeInsertInput { - short_name: String - value_json: String +input IncidentAllegedDeveloperOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] } -input SubmissionNlp_similar_incidentQueryInput { - incident_id_nin: [Int] +type LogIncidentHistoryPayload { incident_id: Int - similarity_in: [Float] - similarity_nin: [Float] - incident_id_lt: Int - similarity_gte: Float - incident_id_exists: Boolean - incident_id_gte: Int - incident_id_lte: Int - similarity: Float - similarity_lt: Float - incident_id_in: [Int] - similarity_ne: Float - similarity_exists: Boolean - incident_id_ne: Int - OR: [SubmissionNlp_similar_incidentQueryInput!] - similarity_lte: Float - incident_id_gt: Int - AND: [SubmissionNlp_similar_incidentQueryInput!] - similarity_gt: Float } -input ClassificationAttributeUpdateInput { - value_json: String - value_json_unset: Boolean - short_name: String - short_name_unset: Boolean +input ReportEmbeddingUpdateInput { + vector_unset: Boolean + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] } -input SubmissionNlp_similar_incidentUpdateInput { - incident_id_unset: Boolean - similarity: Float +input CandidateUpdateInput { + text_unset: Boolean + authors_unset: Boolean + embedding_unset: Boolean + match: Boolean + image_url_unset: Boolean + dismissed: Boolean + plain_text: String similarity_inc: Float similarity_unset: Boolean - incident_id: Int - incident_id_inc: Int -} - -input SubscriptionInsertInput { - entityId: SubscriptionEntityIdRelationInput - incident_id: SubscriptionIncident_idRelationInput - type: String! - userId: SubscriptionUserIdRelationInput! + title_unset: Boolean + _id_unset: Boolean + dismissed_unset: Boolean + language: String + epoch_date_published_inc: Int + epoch_date_downloaded_unset: Boolean + embedding: CandidateEmbeddingUpdateInput + source_domain: String + date_downloaded: String + title: String + classification_similarity_unset: Boolean + matching_harm_keywords: [String] + url_unset: Boolean + epoch_date_published: Int + match_unset: Boolean + epoch_date_published_unset: Boolean + authors: [String] + text: String + plain_text_unset: Boolean + date_published_unset: Boolean + date_downloaded_unset: Boolean + source_domain_unset: Boolean + classification_similarity: [CandidateClassification_similarityUpdateInput] + matching_keywords_unset: Boolean + url: String + epoch_date_downloaded_inc: Int + matching_entities_unset: Boolean + similarity: Float + matching_keywords: [String] + matching_entities: [String] + date_published: String + language_unset: Boolean + matching_harm_keywords_unset: Boolean + epoch_date_downloaded: Int _id: ObjectId + image_url: String } -type RisksPayloadPrecedentNlp_similar_incident { - incident_id: Int - similarity: Float -} +scalar ObjectId -input IncidentTsneUpdateInput { - x: Float - x_inc: Float - x_unset: Boolean - y: Float - y_inc: Float - y_unset: Boolean +scalar Long + +enum SubmissionSortByInput { + DATE_DOWNLOADED_ASC + DESCRIPTION_DESC + IMAGE_URL_ASC + STATUS_DESC + USER_ASC + URL_DESC + _ID_ASC + DESCRIPTION_ASC + SOURCE_DOMAIN_ASC + STATUS_ASC + TITLE_ASC + DATE_PUBLISHED_ASC + EDITOR_NOTES_DESC + INCIDENT_TITLE_DESC + DATE_MODIFIED_DESC + DATE_PUBLISHED_DESC + DATE_SUBMITTED_ASC + CLOUDINARY_ID_ASC + DATE_MODIFIED_ASC + EPOCH_DATE_MODIFIED_ASC + LANGUAGE_DESC + INCIDENT_TITLE_ASC + PLAIN_TEXT_ASC + TEXT_ASC + _ID_DESC + DATE_SUBMITTED_DESC + EDITOR_NOTES_ASC + INCIDENT_DATE_ASC + INCIDENT_DATE_DESC + TITLE_DESC + SOURCE_DOMAIN_DESC + USER_DESC + CLOUDINARY_ID_DESC + DATE_DOWNLOADED_DESC + IMAGE_URL_DESC + LANGUAGE_ASC + PLAIN_TEXT_DESC + EPOCH_DATE_MODIFIED_DESC + TEXT_DESC + URL_ASC } -input IncidentReportsRelationInput { - create: [ReportInsertInput] - link: [Int] +input ClassificationAttributeInsertInput { + short_name: String + value_json: String } -input SubmissionHarmed_partiesRelationInput { - create: [EntityInsertInput] - link: [String] +input ClassificationUpdateInput { + _id: ObjectId + namespace_unset: Boolean + reports_unset: Boolean + publish: Boolean + namespace: String + reports: ClassificationReportsRelationInput + publish_unset: Boolean + notes: String + _id_unset: Boolean + attributes_unset: Boolean + incidents_unset: Boolean + incidents: ClassificationIncidentsRelationInput + attributes: [ClassificationAttributeUpdateInput] + notes_unset: Boolean } -input CreateVariantInputVariant { - text: String - date_published: String - inputs_outputs: [String] - submitters: [String] +input SubmissionEmbeddingQueryInput { + from_text_hash_nin: [String] + from_text_hash_in: [String] + from_text_hash_exists: Boolean + from_text_hash_lt: String + vector_nin: [Float] + vector_in: [Float] + AND: [SubmissionEmbeddingQueryInput!] + from_text_hash_gt: String + vector: [Float] + from_text_hash_lte: String + vector_exists: Boolean + OR: [SubmissionEmbeddingQueryInput!] + from_text_hash_gte: String + from_text_hash_ne: String + from_text_hash: String } -type Taxa { +input History_incidentInsertInput { + editor_dissimilar_incidents: [Int] + editor_notes: String + editors: [String]! + AllegedDeployerOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] _id: ObjectId - complete_entities: Boolean + tsne: History_incidentTsneInsertInput + AllegedDeveloperOfAISystem: [String] + date: String! + nlp_similar_incidents: [History_incidentNlp_similar_incidentInsertInput] + epoch_date_modified: Int description: String - dummy_fields: [TaxaDummy_field] - field_list: [TaxaField_list] - namespace: String - weight: Int + flagged_dissimilar_incidents: [Int] + embedding: History_incidentEmbeddingInsertInput + editor_similar_incidents: [Int] + incident_id: Int! + reports: [Int]! + modifiedBy: String + title: String! } -enum EntitySortByInput { +input SubmissionEmbeddingInsertInput { + from_text_hash: String + vector: [Float] +} + +enum ChecklistSortByInput { + ID_ASC + NAME_DESC + OWNER_ID_ASC + ENTITY_ID_ASC + NAME_ASC _ID_ASC + ABOUT_DESC + DATE_UPDATED_DESC + DATE_UPDATED_ASC _ID_DESC - ENTITY_ID_ASC + ABOUT_ASC + DATE_CREATED_DESC + OWNER_ID_DESC + DATE_CREATED_ASC ENTITY_ID_DESC - NAME_ASC - NAME_DESC + ID_DESC } -input CandidateUpdateInput { - image_url: String - similarity: Float - matching_keywords_unset: Boolean - epoch_date_downloaded_inc: Int - matching_harm_keywords: [String] - similarity_unset: Boolean - language: String - embedding_unset: Boolean - plain_text_unset: Boolean - similarity_inc: Float - epoch_date_downloaded_unset: Boolean +input TaxaUpdateInput { + complete_entities: Boolean + complete_entities_unset: Boolean + dummy_fields_unset: Boolean _id_unset: Boolean - dismissed: Boolean - epoch_date_published: Int - classification_similarity: [CandidateClassification_similarityUpdateInput] - matching_entities_unset: Boolean - date_downloaded_unset: Boolean - date_downloaded: String - matching_harm_keywords_unset: Boolean - text_unset: Boolean - plain_text: String - title: String - epoch_date_downloaded: Int - dismissed_unset: Boolean - authors_unset: Boolean - image_url_unset: Boolean - match: Boolean - matching_keywords: [String] - epoch_date_published_unset: Boolean - date_published: String - url_unset: Boolean + field_list: [TaxaField_listUpdateInput] + namespace_unset: Boolean + field_list_unset: Boolean _id: ObjectId - authors: [String] - classification_similarity_unset: Boolean - matching_entities: [String] - source_domain: String - embedding: CandidateEmbeddingUpdateInput - source_domain_unset: Boolean - epoch_date_published_inc: Int - date_published_unset: Boolean - language_unset: Boolean - url: String - title_unset: Boolean - match_unset: Boolean - text: String -} - -input CreateDefaultAdminUserInput { - email: String - password: String + weight_unset: Boolean + description: String + dummy_fields: [TaxaDummy_fieldUpdateInput] + namespace: String + weight_inc: Int + description_unset: Boolean + weight: Int } -type Candidate { - _id: ObjectId - authors: [String] - classification_similarity: [CandidateClassification_similarity] - date_downloaded: String - date_published: String - dismissed: Boolean - embedding: CandidateEmbedding - epoch_date_downloaded: Int - epoch_date_published: Int - image_url: String - language: String - match: Boolean! - matching_entities: [String] - matching_harm_keywords: [String] - matching_keywords: [String] - plain_text: String - similarity: Float - source_domain: String - text: String +input ChecklistRiskInsertInput { + risk_notes: String + risk_status: String + severity: String + tags: [String] + touched: Boolean + precedents: [ChecklistRiskPrecedentInsertInput] title: String - url: String! + likelihood: String + id: String + generated: Boolean } -input History_incidentInsertInput { - embedding: History_incidentEmbeddingInsertInput +input History_incidentQueryInput { + AllegedDeployerOfAISystem_nin: [String] + description_in: [String] + date_in: [String] + _id_in: [ObjectId] + modifiedBy_nin: [String] + epoch_date_modified_lt: Int + OR: [History_incidentQueryInput!] + _id_ne: ObjectId + modifiedBy: String + flagged_dissimilar_incidents_in: [Int] + modifiedBy_ne: String + modifiedBy_gte: String + _id_gte: ObjectId + date: String + date_gt: String + AllegedDeveloperOfAISystem: [String] + editors: [String] + AllegedDeveloperOfAISystem_in: [String] + modifiedBy_gt: String + nlp_similar_incidents_in: [History_incidentNlp_similar_incidentQueryInput] + title: String + incident_id_lt: Int + nlp_similar_incidents: [History_incidentNlp_similar_incidentQueryInput] + description_nin: [String] + epoch_date_modified_exists: Boolean + date_exists: Boolean + epoch_date_modified_in: [Int] + description: String + epoch_date_modified: Int + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + _id_nin: [ObjectId] + epoch_date_modified_gt: Int + title_lt: String + nlp_similar_incidents_nin: [History_incidentNlp_similar_incidentQueryInput] + reports_exists: Boolean + reports_in: [Int] + editor_similar_incidents_nin: [Int] editor_notes: String + flagged_dissimilar_incidents_nin: [Int] + tsne: History_incidentTsneQueryInput + description_exists: Boolean + editor_dissimilar_incidents_exists: Boolean + nlp_similar_incidents_exists: Boolean + title_ne: String + epoch_date_modified_nin: [Int] + tsne_exists: Boolean + editor_similar_incidents_exists: Boolean + editor_notes_exists: Boolean + AllegedDeployerOfAISystem_in: [String] + _id_exists: Boolean + flagged_dissimilar_incidents: [Int] + description_ne: String + incident_id_gt: Int + description_lt: String + editors_nin: [String] + description_lte: String + title_nin: [String] + incident_id_lte: Int + AllegedHarmedOrNearlyHarmedParties_in: [String] + editor_notes_in: [String] + AllegedHarmedOrNearlyHarmedParties_nin: [String] + editors_in: [String] + editor_notes_lt: String + description_gt: String + incident_id: Int + AllegedDeployerOfAISystem: [String] + incident_id_gte: Int + AllegedDeveloperOfAISystem_exists: Boolean + modifiedBy_lte: String + editor_dissimilar_incidents: [Int] + embedding: History_incidentEmbeddingQueryInput + editor_dissimilar_incidents_nin: [Int] + incident_id_ne: Int + _id: ObjectId + modifiedBy_exists: Boolean + editor_dissimilar_incidents_in: [Int] + reports: [Int] + AND: [History_incidentQueryInput!] + flagged_dissimilar_incidents_exists: Boolean + editor_notes_gt: String + editor_notes_lte: String + date_lte: String + incident_id_exists: Boolean + editors_exists: Boolean + AllegedDeveloperOfAISystem_nin: [String] + _id_lte: ObjectId + title_exists: Boolean + date_ne: String editor_similar_incidents: [Int] + editor_notes_gte: String + AllegedDeployerOfAISystem_exists: Boolean AllegedHarmedOrNearlyHarmedParties: [String] + epoch_date_modified_gte: Int + _id_lt: ObjectId + editor_notes_nin: [String] + editor_notes_ne: String + embedding_exists: Boolean + _id_gt: ObjectId + modifiedBy_lt: String + editor_similar_incidents_in: [Int] + date_lt: String + description_gte: String + epoch_date_modified_lte: Int + title_lte: String + incident_id_nin: [Int] + reports_nin: [Int] + title_gt: String + epoch_date_modified_ne: Int + title_in: [String] + date_nin: [String] + date_gte: String + modifiedBy_in: [String] + incident_id_in: [Int] + title_gte: String +} + +type History_incident { AllegedDeployerOfAISystem: [String] - editors: [String]! - title: String! - tsne: History_incidentTsneInsertInput + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] _id: ObjectId date: String! - modifiedBy: String - epoch_date_modified: Int + description: String editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [String]! + embedding: History_incidentEmbedding + epoch_date_modified: Int flagged_dissimilar_incidents: [Int] - nlp_similar_incidents: [History_incidentNlp_similar_incidentInsertInput] - reports: [Int]! incident_id: Int! - AllegedDeveloperOfAISystem: [String] - description: String + modifiedBy: String + nlp_similar_incidents: [History_incidentNlp_similar_incident] + reports: [Int]! + title: String! + tsne: History_incidentTsne } -input TaxaQueryInput { - _id_exists: Boolean - weight_nin: [Int] - field_list_in: [TaxaField_listQueryInput] - description_exists: Boolean - description_nin: [String] - field_list: [TaxaField_listQueryInput] - weight_exists: Boolean - namespace_in: [String] - weight_lt: Int - weight_ne: Int - description_gte: String - namespace_exists: Boolean - _id_gt: ObjectId - complete_entities: Boolean - _id_lt: ObjectId - complete_entities_ne: Boolean - _id_gte: ObjectId - complete_entities_exists: Boolean - description_lte: String - dummy_fields: [TaxaDummy_fieldQueryInput] - weight_gte: Int - dummy_fields_exists: Boolean - namespace_ne: String - _id_nin: [ObjectId] - dummy_fields_in: [TaxaDummy_fieldQueryInput] - namespace_lt: String - namespace_gt: String - namespace_nin: [String] - description_ne: String - _id_lte: ObjectId - field_list_nin: [TaxaField_listQueryInput] - namespace_gte: String - weight: Int - weight_gt: Int - weight_lte: Int - description_lt: String - AND: [TaxaQueryInput!] - OR: [TaxaQueryInput!] - namespace: String - namespace_lte: String - weight_in: [Int] - description_in: [String] - dummy_fields_nin: [TaxaDummy_fieldQueryInput] - _id: ObjectId - _id_ne: ObjectId - _id_in: [ObjectId] - description_gt: String - field_list_exists: Boolean - description: String +input ChecklistRiskQueryInput { + severity_exists: Boolean + title_ne: String + likelihood: String + precedents_nin: [ChecklistRiskPrecedentQueryInput] + risk_status_gt: String + precedents_in: [ChecklistRiskPrecedentQueryInput] + tags: [String] + id_ne: String + precedents: [ChecklistRiskPrecedentQueryInput] + severity_ne: String + tags_nin: [String] + touched_exists: Boolean + tags_exists: Boolean + risk_status_gte: String + risk_status_lt: String + risk_status_ne: String + id_lte: String + risk_notes: String + likelihood_lte: String + touched_ne: Boolean + title_nin: [String] + likelihood_exists: Boolean + risk_notes_gte: String + title_gte: String + generated: Boolean + likelihood_nin: [String] + likelihood_gte: String + likelihood_in: [String] + OR: [ChecklistRiskQueryInput!] + risk_status_exists: Boolean + title_exists: Boolean + likelihood_gt: String + severity_in: [String] + id_exists: Boolean + id_gt: String + title_gt: String + title_in: [String] + generated_exists: Boolean + precedents_exists: Boolean + risk_notes_ne: String + risk_status_lte: String + id_in: [String] + severity_gte: String + AND: [ChecklistRiskQueryInput!] + title_lt: String + risk_notes_nin: [String] + likelihood_ne: String + tags_in: [String] + title_lte: String + likelihood_lt: String + risk_notes_gt: String + id: String + id_lt: String + title: String + risk_notes_lte: String + generated_ne: Boolean + severity_gt: String + severity_nin: [String] + risk_notes_lt: String + risk_status_nin: [String] + severity_lte: String + risk_notes_exists: Boolean + id_gte: String + risk_status_in: [String] + severity: String + severity_lt: String + touched: Boolean + risk_notes_in: [String] + risk_status: String + id_nin: [String] } -input DuplicateUpdateInput { +input ChecklistInsertInput { + entity_id: String + name: String + tags_methods: [String] + owner_id: String + tags_goals: [String] + about: String + date_created: DateTime + id: String + tags_other: [String] _id: ObjectId - _id_unset: Boolean - duplicate_incident_number: Int - duplicate_incident_number_inc: Int - duplicate_incident_number_unset: Boolean - true_incident_number: Int - true_incident_number_inc: Int - true_incident_number_unset: Boolean -} - -input TaxaField_listItem_fieldComplete_fromQueryInput { - entities_exists: Boolean - entities_ne: Boolean - entities: Boolean - current_nin: [String] - current_in: [String] - AND: [TaxaField_listItem_fieldComplete_fromQueryInput!] - all: [String] - all_exists: Boolean - OR: [TaxaField_listItem_fieldComplete_fromQueryInput!] - all_nin: [String] - all_in: [String] - current: [String] - current_exists: Boolean + date_updated: DateTime + risks: [ChecklistRiskInsertInput] } -input ReportUserRelationInput { - create: UserInsertInput - link: String +type ClassificationAttribute { + short_name: String + value_json: String } -input IncidentUpdateInput { - reports: IncidentReportsRelationInput - editors: IncidentEditorsRelationInput - epoch_date_modified_inc: Int - AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput - epoch_date_modified: Int - title: String - date_unset: Boolean - description: String - editor_dissimilar_incidents_unset: Boolean - flagged_dissimilar_incidents: [Int] - AllegedDeveloperOfAISystem_unset: Boolean - AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput - reports_unset: Boolean - incident_id: Int - description_unset: Boolean - editor_notes: String - AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput - embedding: IncidentEmbeddingUpdateInput - flagged_dissimilar_incidents_unset: Boolean - date: String - editors_unset: Boolean - editor_dissimilar_incidents: [Int] - editor_notes_unset: Boolean - tsne: IncidentTsneUpdateInput - epoch_date_modified_unset: Boolean - nlp_similar_incidents: [IncidentNlp_similar_incidentUpdateInput] - AllegedDeployerOfAISystem_unset: Boolean - embedding_unset: Boolean - title_unset: Boolean - nlp_similar_incidents_unset: Boolean - AllegedHarmedOrNearlyHarmedParties_unset: Boolean - incident_id_unset: Boolean - editor_similar_incidents_unset: Boolean - incident_id_inc: Int - _id_unset: Boolean - editor_similar_incidents: [Int] - tsne_unset: Boolean +type Subscription { _id: ObjectId + entityId: Entity + incident_id: Incident + type: String! + userId: User! } -input IncidentAllegedDeployerOfAISystemRelationInput { - create: [EntityInsertInput] - link: [String] -} - -enum CandidateSortByInput { - EPOCH_DATE_DOWNLOADED_DESC - LANGUAGE_ASC - TEXT_DESC - _ID_ASC - URL_ASC - DATE_DOWNLOADED_ASC - IMAGE_URL_DESC - TEXT_ASC - TITLE_ASC - TITLE_DESC - DATE_PUBLISHED_DESC - EPOCH_DATE_PUBLISHED_ASC - SIMILARITY_DESC - _ID_DESC - SIMILARITY_ASC - SOURCE_DOMAIN_ASC - EPOCH_DATE_DOWNLOADED_ASC - EPOCH_DATE_PUBLISHED_DESC - PLAIN_TEXT_ASC - PLAIN_TEXT_DESC - SOURCE_DOMAIN_DESC - DATE_PUBLISHED_ASC - LANGUAGE_DESC - DATE_DOWNLOADED_DESC - IMAGE_URL_ASC - URL_DESC -} - -input RisksInput { - tags: [String] +type IncidentTsne { + x: Float + y: Float } -input ChecklistRiskPrecedentQueryInput { - description: String - description_lt: String - incident_id_gte: Int - title_ne: String - description_gt: String - incident_id_lte: Int - OR: [ChecklistRiskPrecedentQueryInput!] - AND: [ChecklistRiskPrecedentQueryInput!] - description_ne: String - title_nin: [String] - tags_nin: [String] - description_nin: [String] - incident_id_ne: Int - title_exists: Boolean +type SubmissionNlp_similar_incident { incident_id: Int - description_gte: String - incident_id_in: [Int] - incident_id_lt: Int - tags: [String] - title_lt: String - description_in: [String] - description_lte: String - description_exists: Boolean - tags_in: [String] - title_gte: String - tags_exists: Boolean - title_gt: String - title_lte: String - incident_id_nin: [Int] - title_in: [String] - title: String - incident_id_exists: Boolean - incident_id_gt: Int + similarity: Float } -input IncidentAllegedDeveloperOfAISystemRelationInput { - create: [EntityInsertInput] - link: [String] +input CreateVariantInput { + incidentId: Int + variant: CreateVariantInputVariant } -input History_incidentEmbeddingUpdateInput { - vector_unset: Boolean +type RisksPayloadPrecedentEmbedding { from_reports: [Int] - from_reports_unset: Boolean vector: [Float] } -input CandidateEmbeddingQueryInput { - AND: [CandidateEmbeddingQueryInput!] +input History_reportEmbeddingUpdateInput { from_text_hash: String - from_text_hash_gt: String - from_text_hash_gte: String + from_text_hash_unset: Boolean vector: [Float] - from_text_hash_exists: Boolean - OR: [CandidateEmbeddingQueryInput!] - from_text_hash_in: [String] - vector_exists: Boolean - vector_nin: [Float] - from_text_hash_nin: [String] - from_text_hash_lte: String - from_text_hash_ne: String - from_text_hash_lt: String - vector_in: [Float] + vector_unset: Boolean } -input NotificationInsertInput { - sentDate: DateTime - type: String - userId: NotificationUserIdRelationInput +type History_reportEmbedding { + from_text_hash: String + vector: [Float] +} + +input ClassificationInsertInput { _id: ObjectId + attributes: [ClassificationAttributeInsertInput] + incidents: ClassificationIncidentsRelationInput! + namespace: String! + notes: String + publish: Boolean + reports: ClassificationReportsRelationInput! +} + +input TaxaField_listItem_fieldComplete_fromInsertInput { + current: [String] + entities: Boolean + all: [String] +} + +type ChecklistRiskPrecedent { + description: String incident_id: Int - processed: Boolean + tags: [String] + title: String +} + +input NotificationUserIdRelationInput { + create: UserInsertInput + link: String } -input CandidateEmbeddingUpdateInput { - from_text_hash: String - from_text_hash_unset: Boolean - vector: [Float] - vector_unset: Boolean +input ChecklistRiskPrecedentInsertInput { + tags: [String] + title: String + description: String + incident_id: Int } -input EntityUpdateInput { - _id_unset: Boolean - entity_id: String - entity_id_unset: Boolean - name: String - name_unset: Boolean - _id: ObjectId +type Query { + candidate(query: CandidateQueryInput): Candidate + candidates(sortBy: CandidateSortByInput, query: CandidateQueryInput, limit: Int = 100): [Candidate]! + checklist(query: ChecklistQueryInput): Checklist + checklists(query: ChecklistQueryInput, limit: Int = 100, sortBy: ChecklistSortByInput): [Checklist]! + classification(query: ClassificationQueryInput): Classification + classifications(sortBy: ClassificationSortByInput, query: ClassificationQueryInput, limit: Int = 100): [Classification]! + duplicate(query: DuplicateQueryInput): Duplicate + duplicates(query: DuplicateQueryInput, limit: Int = 100, sortBy: DuplicateSortByInput): [Duplicate]! + entities(query: EntityQueryInput, limit: Int = 100, sortBy: EntitySortByInput): [Entity]! + entity(query: EntityQueryInput): Entity + history_incident(query: History_incidentQueryInput): History_incident + history_incidents(query: History_incidentQueryInput, limit: Int = 100, sortBy: History_incidentSortByInput): [History_incident]! + history_report(query: History_reportQueryInput): History_report + history_reports(query: History_reportQueryInput, limit: Int = 100, sortBy: History_reportSortByInput): [History_report]! + incident(query: IncidentQueryInput): Incident + incidents(query: IncidentQueryInput, limit: Int = 100, sortBy: IncidentSortByInput): [Incident]! + notification(query: NotificationQueryInput): Notification + notifications(query: NotificationQueryInput, limit: Int = 100, sortBy: NotificationSortByInput): [Notification]! + quickadd(query: QuickaddQueryInput): Quickadd + quickadds(query: QuickaddQueryInput, limit: Int = 100, sortBy: QuickaddSortByInput): [Quickadd]! + report(query: ReportQueryInput): Report + reports(query: ReportQueryInput, limit: Int = 100, sortBy: ReportSortByInput): [Report]! + risks(input: RisksInput): [RisksPayloadItem] + submission(query: SubmissionQueryInput): Submission + submissions(query: SubmissionQueryInput, limit: Int = 100, sortBy: SubmissionSortByInput): [Submission]! + subscription(query: SubscriptionQueryInput): Subscription + subscriptions(query: SubscriptionQueryInput, limit: Int = 100, sortBy: SubscriptionSortByInput): [Subscription]! + taxa(query: TaxaQueryInput): Taxa + taxas(query: TaxaQueryInput, limit: Int = 100, sortBy: TaxaSortByInput): [Taxa]! + user(query: UserQueryInput): User + users(query: UserQueryInput, limit: Int = 100, sortBy: UserSortByInput): [User]! } -input SubmissionUserRelationInput { - create: UserInsertInput - link: String +input TaxaField_listComplete_fromUpdateInput { + all: [String] + all_unset: Boolean + current: [String] + current_unset: Boolean } -type Duplicate { - _id: ObjectId - duplicate_incident_number: Int - true_incident_number: Int +input ClassificationIncidentsRelationInput { + create: [IncidentInsertInput] + link: [Int] } -input History_incidentNlp_similar_incidentQueryInput { +input IncidentNlp_similar_incidentQueryInput { + similarity_exists: Boolean incident_id: Int - incident_id_gt: Int - similarity_in: [Float] - incident_id_lt: Int incident_id_lte: Int - similarity_gt: Float - similarity_nin: [Float] - similarity_exists: Boolean - similarity_lte: Float - incident_id_in: [Int] similarity: Float + similarity_gt: Float + OR: [IncidentNlp_similar_incidentQueryInput!] + similarity_in: [Float] incident_id_exists: Boolean + AND: [IncidentNlp_similar_incidentQueryInput!] + incident_id_in: [Int] incident_id_ne: Int + similarity_nin: [Float] similarity_gte: Float - AND: [History_incidentNlp_similar_incidentQueryInput!] - OR: [History_incidentNlp_similar_incidentQueryInput!] incident_id_gte: Int - incident_id_nin: [Int] + incident_id_lt: Int + similarity_lte: Float similarity_ne: Float + incident_id_nin: [Int] similarity_lt: Float + incident_id_gt: Int } -input SubmissionNlp_similar_incidentInsertInput { - incident_id: Int - similarity: Float +input TaxaField_listItem_fieldUpdateInput { + weight_unset: Boolean + complete_from_unset: Boolean + long_name: String + mongo_type: String + field_number_unset: Boolean + short_name_unset: Boolean + short_description: String + weight: Int + field_number: String + mongo_type_unset: Boolean + short_description_unset: Boolean + display_type: String + long_description: String + placeholder: String + permitted_values_unset: Boolean + public: Boolean + required_unset: Boolean + default: String + instant_facet_unset: Boolean + required: Boolean + complete_from: TaxaField_listItem_fieldComplete_fromUpdateInput + display_type_unset: Boolean + long_name_unset: Boolean + instant_facet: Boolean + public_unset: Boolean + short_name: String + long_description_unset: Boolean + weight_inc: Int + placeholder_unset: Boolean + default_unset: Boolean + permitted_values: [String] } -type IncidentTsne { - x: Float - y: Float +input IncidentNlp_similar_incidentUpdateInput { + similarity_inc: Float + incident_id: Int + incident_id_inc: Int + incident_id_unset: Boolean + similarity: Float + similarity_unset: Boolean } -input ReportInsertInput { - authors: [String]! - tags: [String]! - date_published: DateTime! - embedding: ReportEmbeddingInsertInput - plain_text: String! - epoch_date_modified: Int! - date_submitted: DateTime! - epoch_date_published: Int! - date_modified: DateTime! - report_number: Int! - cloudinary_id: String! - submitters: [String]! - editor_notes: String - url: String! - language: String! - title: String! - image_url: String! - inputs_outputs: [String] - epoch_date_downloaded: Int! - flag: Boolean +type Checklist { _id: ObjectId - description: String - user: ReportUserRelationInput - is_incident_report: Boolean - text: String! - date_downloaded: DateTime! - epoch_date_submitted: Int! - source_domain: String! + about: String + date_created: DateTime + date_updated: DateTime + entity_id: String + id: String + name: String + owner_id: String + risks: [ChecklistRisk] + tags_goals: [String] + tags_methods: [String] + tags_other: [String] } -input QuickaddInsertInput { - incident_id: Long - source_domain: String - url: String! - _id: ObjectId - date_submitted: String! +type Mutation { + createDefaultAdminUser(input: CreateDefaultAdminUserInput): DefaultAdminUser + createVariant(input: CreateVariantInput): CreateVariantPayload + deleteManyCandidates(query: CandidateQueryInput): DeleteManyPayload + deleteManyChecklists(query: ChecklistQueryInput): DeleteManyPayload + deleteManyClassifications(query: ClassificationQueryInput): DeleteManyPayload + deleteManyDuplicates(query: DuplicateQueryInput): DeleteManyPayload + deleteManyEntities(query: EntityQueryInput): DeleteManyPayload + deleteManyHistory_incidents(query: History_incidentQueryInput): DeleteManyPayload + deleteManyHistory_reports(query: History_reportQueryInput): DeleteManyPayload + deleteManyIncidents(query: IncidentQueryInput): DeleteManyPayload + deleteManyNotifications(query: NotificationQueryInput): DeleteManyPayload + deleteManyQuickadds(query: QuickaddQueryInput): DeleteManyPayload + deleteManyReports(query: ReportQueryInput): DeleteManyPayload + deleteManySubmissions(query: SubmissionQueryInput): DeleteManyPayload + deleteManySubscriptions(query: SubscriptionQueryInput): DeleteManyPayload + deleteManyTaxas(query: TaxaQueryInput): DeleteManyPayload + deleteManyUsers(query: UserQueryInput): DeleteManyPayload + deleteOneCandidate(query: CandidateQueryInput!): Candidate + deleteOneChecklist(query: ChecklistQueryInput!): Checklist + deleteOneClassification(query: ClassificationQueryInput!): Classification + deleteOneDuplicate(query: DuplicateQueryInput!): Duplicate + deleteOneEntity(query: EntityQueryInput!): Entity + deleteOneHistory_incident(query: History_incidentQueryInput!): History_incident + deleteOneHistory_report(query: History_reportQueryInput!): History_report + deleteOneIncident(query: IncidentQueryInput!): Incident + deleteOneNotification(query: NotificationQueryInput!): Notification + deleteOneQuickadd(query: QuickaddQueryInput!): Quickadd + deleteOneReport(query: ReportQueryInput!): Report + deleteOneSubmission(query: SubmissionQueryInput!): Submission + deleteOneSubscription(query: SubscriptionQueryInput!): Subscription + deleteOneTaxa(query: TaxaQueryInput!): Taxa + deleteOneUser(query: UserQueryInput!): User + getUser(input: GetUserInput): AppUser + insertManyCandidates(data: [CandidateInsertInput!]!): InsertManyPayload + insertManyChecklists(data: [ChecklistInsertInput!]!): InsertManyPayload + insertManyClassifications(data: [ClassificationInsertInput!]!): InsertManyPayload + insertManyDuplicates(data: [DuplicateInsertInput!]!): InsertManyPayload + insertManyEntities(data: [EntityInsertInput!]!): InsertManyPayload + insertManyHistory_incidents(data: [History_incidentInsertInput!]!): InsertManyPayload + insertManyHistory_reports(data: [History_reportInsertInput!]!): InsertManyPayload + insertManyIncidents(data: [IncidentInsertInput!]!): InsertManyPayload + insertManyNotifications(data: [NotificationInsertInput!]!): InsertManyPayload + insertManyQuickadds(data: [QuickaddInsertInput!]!): InsertManyPayload + insertManyReports(data: [ReportInsertInput!]!): InsertManyPayload + insertManySubmissions(data: [SubmissionInsertInput!]!): InsertManyPayload + insertManySubscriptions(data: [SubscriptionInsertInput!]!): InsertManyPayload + insertManyTaxas(data: [TaxaInsertInput!]!): InsertManyPayload + insertManyUsers(data: [UserInsertInput!]!): InsertManyPayload + insertOneCandidate(data: CandidateInsertInput!): Candidate + insertOneChecklist(data: ChecklistInsertInput!): Checklist + insertOneClassification(data: ClassificationInsertInput!): Classification + insertOneDuplicate(data: DuplicateInsertInput!): Duplicate + insertOneEntity(data: EntityInsertInput!): Entity + insertOneHistory_incident(data: History_incidentInsertInput!): History_incident + insertOneHistory_report(data: History_reportInsertInput!): History_report + insertOneIncident(data: IncidentInsertInput!): Incident + insertOneNotification(data: NotificationInsertInput!): Notification + insertOneQuickadd(data: QuickaddInsertInput!): Quickadd + insertOneReport(data: ReportInsertInput!): Report + insertOneSubmission(data: SubmissionInsertInput!): Submission + insertOneSubscription(data: SubscriptionInsertInput!): Subscription + insertOneTaxa(data: TaxaInsertInput!): Taxa + insertOneUser(data: UserInsertInput!): User + linkReportsToIncidents(input: LinkReportsToIncidentsInput): [Incident] + logIncidentHistory(input: History_incidentInsertInput): LogIncidentHistoryPayload + logReportHistory(input: History_reportInsertInput): LogReportHistoryPayload + processNotifications: Int + promoteSubmissionToReport(input: PromoteSubmissionToReportInput): PromoteSubmissionToReportPayload + replaceOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate + replaceOneChecklist(query: ChecklistQueryInput, data: ChecklistInsertInput!): Checklist + replaceOneClassification(query: ClassificationQueryInput, data: ClassificationInsertInput!): Classification + replaceOneDuplicate(query: DuplicateQueryInput, data: DuplicateInsertInput!): Duplicate + replaceOneEntity(data: EntityInsertInput!, query: EntityQueryInput): Entity + replaceOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident + replaceOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report + replaceOneIncident(query: IncidentQueryInput, data: IncidentInsertInput!): Incident + replaceOneNotification(query: NotificationQueryInput, data: NotificationInsertInput!): Notification + replaceOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd + replaceOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report + replaceOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission + replaceOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription + replaceOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa + replaceOneUser(query: UserQueryInput, data: UserInsertInput!): User + updateManyCandidates(query: CandidateQueryInput, set: CandidateUpdateInput!): UpdateManyPayload + updateManyChecklists(query: ChecklistQueryInput, set: ChecklistUpdateInput!): UpdateManyPayload + updateManyClassifications(query: ClassificationQueryInput, set: ClassificationUpdateInput!): UpdateManyPayload + updateManyDuplicates(query: DuplicateQueryInput, set: DuplicateUpdateInput!): UpdateManyPayload + updateManyEntities(query: EntityQueryInput, set: EntityUpdateInput!): UpdateManyPayload + updateManyHistory_incidents(query: History_incidentQueryInput, set: History_incidentUpdateInput!): UpdateManyPayload + updateManyHistory_reports(query: History_reportQueryInput, set: History_reportUpdateInput!): UpdateManyPayload + updateManyIncidents(query: IncidentQueryInput, set: IncidentUpdateInput!): UpdateManyPayload + updateManyNotifications(query: NotificationQueryInput, set: NotificationUpdateInput!): UpdateManyPayload + updateManyQuickadds(query: QuickaddQueryInput, set: QuickaddUpdateInput!): UpdateManyPayload + updateManyReports(query: ReportQueryInput, set: ReportUpdateInput!): UpdateManyPayload + updateManySubmissions(query: SubmissionQueryInput, set: SubmissionUpdateInput!): UpdateManyPayload + updateManySubscriptions(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): UpdateManyPayload + updateManyTaxas(set: TaxaUpdateInput!, query: TaxaQueryInput): UpdateManyPayload + updateManyUsers(query: UserQueryInput, set: UserUpdateInput!): UpdateManyPayload + updateOneCandidate(query: CandidateQueryInput, set: CandidateUpdateInput!): Candidate + updateOneChecklist(query: ChecklistQueryInput, set: ChecklistUpdateInput!): Checklist + updateOneClassification(query: ClassificationQueryInput, set: ClassificationUpdateInput!): Classification + updateOneDuplicate(query: DuplicateQueryInput, set: DuplicateUpdateInput!): Duplicate + updateOneEntity(query: EntityQueryInput, set: EntityUpdateInput!): Entity + updateOneHistory_incident(query: History_incidentQueryInput, set: History_incidentUpdateInput!): History_incident + updateOneHistory_report(query: History_reportQueryInput, set: History_reportUpdateInput!): History_report + updateOneIncident(query: IncidentQueryInput, set: IncidentUpdateInput!): Incident + updateOneNotification(query: NotificationQueryInput, set: NotificationUpdateInput!): Notification + updateOneQuickadd(query: QuickaddQueryInput, set: QuickaddUpdateInput!): Quickadd + updateOneReport(set: ReportUpdateInput!, query: ReportQueryInput): Report + updateOneReportTranslation(input: UpdateOneReportTranslationInput): Report + updateOneSubmission(query: SubmissionQueryInput, set: SubmissionUpdateInput!): Submission + updateOneSubscription(set: SubscriptionUpdateInput!, query: SubscriptionQueryInput): Subscription + updateOneTaxa(query: TaxaQueryInput, set: TaxaUpdateInput!): Taxa + updateOneUser(query: UserQueryInput, set: UserUpdateInput!): User + upsertOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate + upsertOneChecklist(data: ChecklistInsertInput!, query: ChecklistQueryInput): Checklist + upsertOneClassification(query: ClassificationQueryInput, data: ClassificationInsertInput!): Classification + upsertOneDuplicate(query: DuplicateQueryInput, data: DuplicateInsertInput!): Duplicate + upsertOneEntity(query: EntityQueryInput, data: EntityInsertInput!): Entity + upsertOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident + upsertOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report + upsertOneIncident(data: IncidentInsertInput!, query: IncidentQueryInput): Incident + upsertOneNotification(query: NotificationQueryInput, data: NotificationInsertInput!): Notification + upsertOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd + upsertOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report + upsertOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission + upsertOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription + upsertOneTaxa(data: TaxaInsertInput!, query: TaxaQueryInput): Taxa + upsertOneUser(query: UserQueryInput, data: UserInsertInput!): User } -input IncidentEmbeddingQueryInput { - from_reports: [Int] - from_reports_in: [Int] - vector: [Float] - vector_nin: [Float] - vector_exists: Boolean - AND: [IncidentEmbeddingQueryInput!] - vector_in: [Float] - OR: [IncidentEmbeddingQueryInput!] - from_reports_exists: Boolean - from_reports_nin: [Int] +input History_incidentTsneInsertInput { + x: Float + y: Float } -input ReportUpdateInput { - epoch_date_published_inc: Int - submitters_unset: Boolean - epoch_date_modified: Int - tags: [String] - inputs_outputs: [String] - date_submitted_unset: Boolean - plain_text: String - epoch_date_submitted: Int - source_domain: String - is_incident_report_unset: Boolean - description_unset: Boolean - epoch_date_downloaded: Int - text_unset: Boolean - language: String - text: String - title: String - epoch_date_submitted_inc: Int - report_number_inc: Int - description: String - epoch_date_published_unset: Boolean - plain_text_unset: Boolean - epoch_date_modified_inc: Int - editor_notes: String - authors: [String] +input EntityQueryInput { + created_at_nin: [DateTime] + created_at_gte: DateTime + date_modified_exists: Boolean + name_nin: [String] + name_lte: String + entity_id_lt: String + entity_id_ne: String + entity_id: String + entity_id_gt: String + OR: [EntityQueryInput!] + _id_lt: ObjectId + created_at_gt: DateTime + date_modified_ne: DateTime + entity_id_nin: [String] + entity_id_gte: String + date_modified_lte: DateTime + entity_id_in: [String] + name_gt: String + created_at_ne: DateTime + date_modified_gt: DateTime + _id_in: [ObjectId] + name_in: [String] + _id_lte: ObjectId + created_at: DateTime + name_ne: String + date_modified_lt: DateTime + created_at_lte: DateTime + created_at_exists: Boolean + name: String + _id_gte: ObjectId date_modified: DateTime - embedding: ReportEmbeddingUpdateInput - image_url_unset: Boolean - report_number: Int - epoch_date_published: Int - date_downloaded: DateTime - date_submitted: DateTime - date_downloaded_unset: Boolean - editor_notes_unset: Boolean - _id_unset: Boolean - cloudinary_id_unset: Boolean - date_published: DateTime - url: String - flag_unset: Boolean - submitters: [String] - cloudinary_id: String - embedding_unset: Boolean - report_number_unset: Boolean - url_unset: Boolean - user: ReportUserRelationInput - source_domain_unset: Boolean - flag: Boolean - date_modified_unset: Boolean - user_unset: Boolean + date_modified_gte: DateTime + entity_id_lte: String + name_gte: String + entity_id_exists: Boolean + date_modified_in: [DateTime] + _id_nin: [ObjectId] + created_at_in: [DateTime] + _id_gt: ObjectId + created_at_lt: DateTime + name_lt: String _id: ObjectId - epoch_date_modified_unset: Boolean - title_unset: Boolean - is_incident_report: Boolean - epoch_date_downloaded_unset: Boolean - language_unset: Boolean - inputs_outputs_unset: Boolean - tags_unset: Boolean - date_published_unset: Boolean - epoch_date_downloaded_inc: Int - epoch_date_submitted_unset: Boolean - image_url: String - authors_unset: Boolean + date_modified_nin: [DateTime] + AND: [EntityQueryInput!] + _id_ne: ObjectId + _id_exists: Boolean + name_exists: Boolean } -input ChecklistUpdateInput { - risks_unset: Boolean - tags_methods: [String] - id_unset: Boolean - tags_methods_unset: Boolean - about: String - entity_id_unset: Boolean - owner_id: String - risks: [ChecklistRiskUpdateInput] - tags_goals: [String] - name_unset: Boolean - date_updated_unset: Boolean - name: String - date_created: DateTime - date_updated: DateTime - tags_goals_unset: Boolean - _id_unset: Boolean - id: String - tags_other: [String] - tags_other_unset: Boolean - entity_id: String - about_unset: Boolean +type Taxa { _id: ObjectId - owner_id_unset: Boolean - date_created_unset: Boolean -} - -input TaxaField_listUpdateInput { + complete_entities: Boolean + description: String + dummy_fields: [TaxaDummy_field] + field_list: [TaxaField_list] + namespace: String weight: Int - mongo_type: String - short_name: String - placeholder: String - item_fields: TaxaField_listItem_fieldUpdateInput - long_name_unset: Boolean - public_unset: Boolean - field_number_unset: Boolean - long_description_unset: Boolean - long_description: String - mongo_type_unset: Boolean - complete_from: TaxaField_listComplete_fromUpdateInput - permitted_values: [String] - required_unset: Boolean - short_description_unset: Boolean - weight_inc: Int - item_fields_unset: Boolean - default_unset: Boolean - weight_unset: Boolean - hide_search: Boolean - default: String - display_type_unset: Boolean - short_description: String - display_type: String - permitted_values_unset: Boolean - required: Boolean - placeholder_unset: Boolean - public: Boolean - hide_search_unset: Boolean - long_name: String - field_number: String - instant_facet_unset: Boolean - short_name_unset: Boolean - instant_facet: Boolean - complete_from_unset: Boolean } -input NotificationUpdateInput { - incident_id: Int - type_unset: Boolean - _id_unset: Boolean - processed: Boolean - userId: NotificationUserIdRelationInput - incident_id_inc: Int - processed_unset: Boolean - userId_unset: Boolean - type: String - _id: ObjectId - incident_id_unset: Boolean - sentDate: DateTime - sentDate_unset: Boolean +type CandidateClassification_similarity { + classification: String + similarity: Float } -enum UserSortByInput { - _ID_DESC - FIRST_NAME_ASC - FIRST_NAME_DESC - LAST_NAME_ASC - LAST_NAME_DESC - USERID_ASC - USERID_DESC - _ID_ASC +input ReportEmbeddingQueryInput { + from_text_hash_ne: String + from_text_hash_gt: String + from_text_hash_gte: String + from_text_hash_nin: [String] + vector_exists: Boolean + vector: [Float] + vector_nin: [Float] + from_text_hash: String + from_text_hash_lte: String + OR: [ReportEmbeddingQueryInput!] + from_text_hash_in: [String] + from_text_hash_exists: Boolean + vector_in: [Float] + AND: [ReportEmbeddingQueryInput!] + from_text_hash_lt: String } -enum History_reportSortByInput { +enum ReportSortByInput { + IMAGE_URL_DESC + REPORT_NUMBER_DESC + CLOUDINARY_ID_DESC + DATE_PUBLISHED_ASC EPOCH_DATE_DOWNLOADED_DESC - URL_ASC - SOURCE_DOMAIN_DESC + DATE_SUBMITTED_ASC + LANGUAGE_DESC + PLAIN_TEXT_DESC + _ID_ASC + CLOUDINARY_ID_ASC + DATE_PUBLISHED_DESC EPOCH_DATE_MODIFIED_ASC - EPOCH_DATE_PUBLISHED_DESC - EPOCH_DATE_SUBMITTED_DESC - MODIFIEDBY_ASC - DATE_MODIFIED_DESC - EDITOR_NOTES_DESC - REPORT_NUMBER_DESC - SOURCE_DOMAIN_ASC - EPOCH_DATE_DOWNLOADED_ASC - IMAGE_URL_DESC + EPOCH_DATE_PUBLISHED_ASC LANGUAGE_ASC - USER_DESC - DATE_DOWNLOADED_ASC + TITLE_ASC + URL_DESC + DATE_MODIFIED_DESC DATE_SUBMITTED_DESC - DESCRIPTION_DESC EDITOR_NOTES_ASC - REPORT_NUMBER_ASC - _ID_DESC - CLOUDINARY_ID_ASC + DESCRIPTION_DESC + EPOCH_DATE_DOWNLOADED_ASC + TEXT_ASC + DATE_MODIFIED_ASC + EDITOR_NOTES_DESC + EPOCH_DATE_SUBMITTED_DESC EPOCH_DATE_SUBMITTED_ASC IMAGE_URL_ASC - DESCRIPTION_ASC - EPOCH_DATE_PUBLISHED_ASC - LANGUAGE_DESC - MODIFIEDBY_DESC + SOURCE_DOMAIN_DESC + TITLE_DESC + USER_ASC + DATE_DOWNLOADED_ASC DATE_DOWNLOADED_DESC - DATE_MODIFIED_ASC - DATE_PUBLISHED_DESC - DATE_SUBMITTED_ASC - TEXT_ASC - URL_DESC + EPOCH_DATE_PUBLISHED_DESC TEXT_DESC - TITLE_DESC - _ID_ASC - CLOUDINARY_ID_DESC - PLAIN_TEXT_ASC - PLAIN_TEXT_DESC - DATE_PUBLISHED_ASC + USER_DESC + _ID_DESC + REPORT_NUMBER_ASC + SOURCE_DOMAIN_ASC + URL_ASC + DESCRIPTION_ASC EPOCH_DATE_MODIFIED_DESC - TITLE_ASC - USER_ASC -} - -type Quickadd { - _id: ObjectId - date_submitted: String! - incident_id: Long - source_domain: String - url: String! + PLAIN_TEXT_ASC } -input NotificationUserIdRelationInput { - create: UserInsertInput - link: String +input History_reportEmbeddingInsertInput { + from_text_hash: String + vector: [Float] } -input History_reportInsertInput { - image_url: String! - date_downloaded: DateTime! - modifiedBy: String - epoch_date_published: Int! - description: String - title: String! - user: String - text: String! - is_incident_report: Boolean - date_published: DateTime! - submitters: [String]! - _id: ObjectId - epoch_date_downloaded: Int! - report_number: Int! - epoch_date_submitted: Int! - tags: [String]! - editor_notes: String - language: String! - epoch_date_modified: Int! - authors: [String]! - inputs_outputs: [String] - date_submitted: DateTime! - embedding: History_reportEmbeddingInsertInput - flag: Boolean - plain_text: String! - url: String! - source_domain: String! - cloudinary_id: String! - date_modified: DateTime! +enum TaxaSortByInput { + _ID_ASC + _ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + NAMESPACE_ASC + NAMESPACE_DESC + WEIGHT_ASC + WEIGHT_DESC } -input TaxaField_listQueryInput { - long_name: String - required: Boolean - weight_gte: Int - short_description_gt: String - field_number_nin: [String] - complete_from_exists: Boolean - placeholder_gte: String - OR: [TaxaField_listQueryInput!] - instant_facet_exists: Boolean - complete_from: TaxaField_listComplete_fromQueryInput - required_ne: Boolean - long_description_gte: String - weight_in: [Int] - short_name_exists: Boolean - long_name_gt: String - display_type: String - mongo_type_exists: Boolean - short_description_gte: String - long_name_gte: String - AND: [TaxaField_listQueryInput!] - mongo_type_lt: String - field_number_lte: String - weight_lte: Int - short_description_in: [String] - field_number_lt: String - mongo_type_gt: String - placeholder_ne: String - placeholder_nin: [String] - instant_facet: Boolean - long_name_ne: String - mongo_type_lte: String - short_name_gt: String - item_fields: TaxaField_listItem_fieldQueryInput +type TaxaField_listItem_field { + complete_from: TaxaField_listItem_fieldComplete_from default: String - short_name: String - long_description_ne: String - long_name_in: [String] - display_type_ne: String - mongo_type_in: [String] - default_exists: Boolean - default_gte: String - display_type_exists: Boolean - placeholder_lt: String - hide_search_ne: Boolean - field_number_in: [String] - permitted_values_exists: Boolean + display_type: String field_number: String - field_number_gt: String - weight_gt: Int - default_gt: String + instant_facet: Boolean + long_description: String + long_name: String mongo_type: String - weight_nin: [Int] - long_name_nin: [String] - display_type_lte: String - short_name_nin: [String] - short_description_exists: Boolean - short_description_lt: String - long_description_gt: String - required_exists: Boolean - short_name_gte: String - long_description_lte: String - long_name_lt: String - item_fields_exists: Boolean - public_exists: Boolean - display_type_gte: String - display_type_lt: String - default_in: [String] - hide_search_exists: Boolean - short_description_lte: String - default_ne: String - short_description: String permitted_values: [String] - mongo_type_ne: String - display_type_gt: String - short_description_nin: [String] - placeholder_lte: String - long_name_lte: String placeholder: String - weight_lt: Int - mongo_type_nin: [String] - field_number_exists: Boolean - placeholder_gt: String - hide_search: Boolean - short_name_in: [String] - weight: Int - permitted_values_in: [String] - mongo_type_gte: String - permitted_values_nin: [String] - weight_exists: Boolean - long_description_in: [String] - field_number_gte: String - long_description_exists: Boolean - field_number_ne: String - long_description: String - public_ne: Boolean - instant_facet_ne: Boolean - weight_ne: Int - placeholder_exists: Boolean - short_name_lt: String - long_name_exists: Boolean public: Boolean - default_lte: String - default_nin: [String] - default_lt: String - placeholder_in: [String] - long_description_lt: String - short_description_ne: String - display_type_nin: [String] - short_name_lte: String - short_name_ne: String - long_description_nin: [String] - display_type_in: [String] -} - -input SubmissionEmbeddingQueryInput { - vector_exists: Boolean - vector: [Float] - OR: [SubmissionEmbeddingQueryInput!] - from_text_hash_nin: [String] - vector_nin: [Float] - AND: [SubmissionEmbeddingQueryInput!] - from_text_hash_lt: String - from_text_hash_exists: Boolean - from_text_hash_gt: String - from_text_hash_gte: String - vector_in: [Float] - from_text_hash_lte: String - from_text_hash_in: [String] - from_text_hash: String - from_text_hash_ne: String + required: Boolean + short_description: String + short_name: String + weight: Int } -input ReportQueryInput { - plain_text_nin: [String] - flag_ne: Boolean - epoch_date_submitted_nin: [Int] - user: UserQueryInput - date_downloaded_in: [DateTime] - is_incident_report_exists: Boolean - user_exists: Boolean - plain_text_ne: String - text_gte: String - title_nin: [String] - submitters_exists: Boolean - _id_ne: ObjectId - cloudinary_id_gt: String - date_modified_exists: Boolean - title_lt: String - flag_exists: Boolean - epoch_date_downloaded: Int - date_modified_gt: DateTime - AND: [ReportQueryInput!] - authors_exists: Boolean - epoch_date_submitted_gte: Int - text_lte: String - report_number_lt: Int - url_gte: String - url_gt: String - image_url_lte: String - image_url_lt: String - language: String - editor_notes_nin: [String] - report_number_exists: Boolean - title_ne: String - text_gt: String - date_downloaded_gte: DateTime - inputs_outputs: [String] - url_nin: [String] - editor_notes_gte: String - epoch_date_submitted_gt: Int - editor_notes_lt: String - epoch_date_submitted_exists: Boolean - report_number: Int - epoch_date_downloaded_nin: [Int] - cloudinary_id_in: [String] - date_submitted_ne: DateTime - plain_text_in: [String] - tags: [String] - plain_text_gt: String - report_number_gte: Int - embedding_exists: Boolean - date_submitted: DateTime - epoch_date_downloaded_gt: Int - inputs_outputs_nin: [String] - date_published_gte: DateTime - source_domain_gt: String - report_number_gt: Int - editor_notes_ne: String - date_modified_nin: [DateTime] - epoch_date_submitted_ne: Int - url_exists: Boolean - date_published_in: [DateTime] - plain_text_lte: String - epoch_date_submitted_lte: Int +input SubmissionNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +type History_report { + _id: ObjectId + authors: [String]! + cloudinary_id: String! + date_downloaded: DateTime! + date_modified: DateTime! + date_published: DateTime! + date_submitted: DateTime! + description: String editor_notes: String - epoch_date_published_exists: Boolean - _id_exists: Boolean - epoch_date_modified_ne: Int - cloudinary_id: String - date_submitted_in: [DateTime] - language_in: [String] - language_gte: String - date_downloaded_exists: Boolean - epoch_date_downloaded_in: [Int] - date_published: DateTime - source_domain_ne: String - report_number_lte: Int - epoch_date_modified_lte: Int - url_ne: String - cloudinary_id_exists: Boolean - authors_in: [String] - submitters_nin: [String] - date_downloaded_nin: [DateTime] - date_published_lt: DateTime - epoch_date_published: Int - text_nin: [String] - date_downloaded: DateTime - epoch_date_modified_nin: [Int] - image_url: String - epoch_date_modified_gte: Int + embedding: History_reportEmbedding + epoch_date_downloaded: Int! + epoch_date_modified: Int! + epoch_date_published: Int! + epoch_date_submitted: Int! + flag: Boolean + image_url: String! + inputs_outputs: [String] is_incident_report: Boolean - text_ne: String - text_in: [String] - language_nin: [String] - image_url_nin: [String] - epoch_date_submitted_in: [Int] - title_exists: Boolean - epoch_date_modified_in: [Int] - date_modified_ne: DateTime - source_domain_gte: String - date_published_ne: DateTime - cloudinary_id_nin: [String] - _id_gt: ObjectId - epoch_date_modified_gt: Int - source_domain_lte: String - tags_exists: Boolean - OR: [ReportQueryInput!] + language: String! + modifiedBy: String + plain_text: String! + quiet: Boolean + report_number: Int! + source_domain: String! + submitters: [String]! + tags: [String]! + text: String! + title: String! + url: String! + user: String +} + +type Incident { + AllegedDeployerOfAISystem: [Entity] + AllegedDeveloperOfAISystem: [Entity] + AllegedHarmedOrNearlyHarmedParties: [Entity] _id: ObjectId - image_url_in: [String] - source_domain_lt: String - title_gte: String - epoch_date_published_gte: Int - cloudinary_id_lte: String - epoch_date_downloaded_ne: Int - epoch_date_downloaded_gte: Int - plain_text_gte: String - image_url_gte: String - epoch_date_published_lte: Int - language_ne: String - epoch_date_modified: Int - epoch_date_published_ne: Int - date_submitted_lt: DateTime - report_number_ne: Int - description_gt: String - url: String - _id_gte: ObjectId - epoch_date_published_gt: Int - date_downloaded_lt: DateTime - description_lte: String - tags_nin: [String] - tags_in: [String] - epoch_date_published_in: [Int] - _id_lte: ObjectId - image_url_ne: String - editor_notes_gt: String - date_submitted_gte: DateTime - language_gt: String - report_number_in: [Int] - _id_nin: [ObjectId] - flag: Boolean - url_lt: String - title_gt: String - source_domain_in: [String] - _id_lt: ObjectId - is_incident_report_ne: Boolean - plain_text: String - description_in: [String] - source_domain_nin: [String] - date_submitted_nin: [DateTime] - source_domain_exists: Boolean - url_in: [String] - date_submitted_exists: Boolean - description_gte: String - date_modified_gte: DateTime - date_published_gt: DateTime - language_lt: String - submitters: [String] - text_lt: String - date_downloaded_lte: DateTime - title: String - image_url_exists: Boolean - date_submitted_gt: DateTime - url_lte: String - epoch_date_submitted: Int - description_nin: [String] - date_modified: DateTime - epoch_date_modified_lt: Int - cloudinary_id_gte: String - date_downloaded_gt: DateTime - language_exists: Boolean - epoch_date_submitted_lt: Int - description_exists: Boolean - epoch_date_published_lt: Int - epoch_date_modified_exists: Boolean - epoch_date_downloaded_exists: Boolean - title_in: [String] - authors: [String] - epoch_date_published_nin: [Int] - date_modified_in: [DateTime] - report_number_nin: [Int] - date_submitted_lte: DateTime - date_downloaded_ne: DateTime - text_exists: Boolean - date_modified_lt: DateTime - source_domain: String - cloudinary_id_lt: String - cloudinary_id_ne: String - epoch_date_downloaded_lt: Int - editor_notes_lte: String - _id_in: [ObjectId] - date_published_exists: Boolean - description_lt: String - inputs_outputs_in: [String] - text: String - plain_text_lt: String - date_modified_lte: DateTime - editor_notes_in: [String] - authors_nin: [String] + date: String! description: String - language_lte: String - date_published_lte: DateTime - inputs_outputs_exists: Boolean - description_ne: String - submitters_in: [String] - plain_text_exists: Boolean - image_url_gt: String - epoch_date_downloaded_lte: Int - embedding: ReportEmbeddingQueryInput - editor_notes_exists: Boolean - date_published_nin: [DateTime] - title_lte: String + editor_dissimilar_incidents: [Int] + editor_notes: String + editor_similar_incidents: [Int] + editors: [User]! + embedding: IncidentEmbedding + epoch_date_modified: Int + flagged_dissimilar_incidents: [Int] + incident_id: Int! + nlp_similar_incidents: [IncidentNlp_similar_incident] + reports: [Report]! + title: String! + tsne: IncidentTsne } -enum History_incidentSortByInput { +type Quickadd { + _id: ObjectId + date_submitted: String! + incident_id: Long + source_domain: String + url: String! +} + +enum DuplicateSortByInput { _ID_ASC _ID_DESC - DATE_ASC - DESCRIPTION_ASC - MODIFIEDBY_ASC - EDITOR_NOTES_DESC - EPOCH_DATE_MODIFIED_ASC - INCIDENT_ID_DESC - TITLE_DESC - DESCRIPTION_DESC - EDITOR_NOTES_ASC - EPOCH_DATE_MODIFIED_DESC - INCIDENT_ID_ASC - MODIFIEDBY_DESC - DATE_DESC - TITLE_ASC + DUPLICATE_INCIDENT_NUMBER_ASC + DUPLICATE_INCIDENT_NUMBER_DESC + TRUE_INCIDENT_NUMBER_ASC + TRUE_INCIDENT_NUMBER_DESC } -type AppUser { - email: String +input SubmissionUpdateInput { + user_unset: Boolean + plain_text_unset: Boolean + date_downloaded_unset: Boolean + title_unset: Boolean + description_unset: Boolean + developers_unset: Boolean + quiet: Boolean + incident_date: String + title: String + epoch_date_modified_inc: Int + status: String + _id: ObjectId + epoch_date_modified_unset: Boolean + authors: [String] + quiet_unset: Boolean + language: String + incident_title_unset: Boolean + authors_unset: Boolean + date_submitted: String + editor_notes_unset: Boolean + editor_dissimilar_incidents: [Int] + incident_ids_unset: Boolean + source_domain_unset: Boolean + _id_unset: Boolean + date_modified_unset: Boolean + date_submitted_unset: Boolean + nlp_similar_incidents_unset: Boolean + embedding: SubmissionEmbeddingUpdateInput + image_url_unset: Boolean + editor_similar_incidents_unset: Boolean + user: SubmissionUserRelationInput + date_published_unset: Boolean + incident_editors: SubmissionIncident_editorsRelationInput + embedding_unset: Boolean + source_domain: String + editor_dissimilar_incidents_unset: Boolean + date_downloaded: String + tags: [String] + harmed_parties_unset: Boolean + editor_notes: String + text_unset: Boolean + harmed_parties: SubmissionHarmed_partiesRelationInput + incident_ids: [Int] + submitters: [String] + date_published: String + incident_title: String + status_unset: Boolean + deployers_unset: Boolean + developers: SubmissionDevelopersRelationInput + editor_similar_incidents: [Int] + date_modified: String + language_unset: Boolean + nlp_similar_incidents: [SubmissionNlp_similar_incidentUpdateInput] + url: String + description: String + submitters_unset: Boolean + incident_editors_unset: Boolean + epoch_date_modified: Int + tags_unset: Boolean + text: String + url_unset: Boolean + cloudinary_id_unset: Boolean + plain_text: String + deployers: SubmissionDeployersRelationInput + incident_date_unset: Boolean + image_url: String + cloudinary_id: String } -input History_incidentEmbeddingQueryInput { - vector_exists: Boolean - AND: [History_incidentEmbeddingQueryInput!] - OR: [History_incidentEmbeddingQueryInput!] - from_reports_exists: Boolean - vector_in: [Float] - from_reports_nin: [Int] - vector: [Float] - from_reports: [Int] - from_reports_in: [Int] - vector_nin: [Float] +input RisksInput { + tags: [String] } -type ClassificationAttribute { - short_name: String - value_json: String +type TaxaField_listItem_fieldComplete_from { + all: [String] + current: [String] + entities: Boolean } -type Mutation { - createDefaultAdminUser(input: CreateDefaultAdminUserInput): DefaultAdminUser - createVariant(input: CreateVariantInput): CreateVariantPayload - deleteManyCandidates(query: CandidateQueryInput): DeleteManyPayload - deleteManyChecklists(query: ChecklistQueryInput): DeleteManyPayload - deleteManyClassifications(query: ClassificationQueryInput): DeleteManyPayload - deleteManyDuplicates(query: DuplicateQueryInput): DeleteManyPayload - deleteManyEntities(query: EntityQueryInput): DeleteManyPayload - deleteManyHistory_incidents(query: History_incidentQueryInput): DeleteManyPayload - deleteManyHistory_reports(query: History_reportQueryInput): DeleteManyPayload - deleteManyIncidents(query: IncidentQueryInput): DeleteManyPayload - deleteManyNotifications(query: NotificationQueryInput): DeleteManyPayload - deleteManyQuickadds(query: QuickaddQueryInput): DeleteManyPayload - deleteManyReports(query: ReportQueryInput): DeleteManyPayload - deleteManySubmissions(query: SubmissionQueryInput): DeleteManyPayload - deleteManySubscriptions(query: SubscriptionQueryInput): DeleteManyPayload - deleteManyTaxas(query: TaxaQueryInput): DeleteManyPayload - deleteManyUsers(query: UserQueryInput): DeleteManyPayload - deleteOneCandidate(query: CandidateQueryInput!): Candidate - deleteOneChecklist(query: ChecklistQueryInput!): Checklist - deleteOneClassification(query: ClassificationQueryInput!): Classification - deleteOneDuplicate(query: DuplicateQueryInput!): Duplicate - deleteOneEntity(query: EntityQueryInput!): Entity - deleteOneHistory_incident(query: History_incidentQueryInput!): History_incident - deleteOneHistory_report(query: History_reportQueryInput!): History_report - deleteOneIncident(query: IncidentQueryInput!): Incident - deleteOneNotification(query: NotificationQueryInput!): Notification - deleteOneQuickadd(query: QuickaddQueryInput!): Quickadd - deleteOneReport(query: ReportQueryInput!): Report - deleteOneSubmission(query: SubmissionQueryInput!): Submission - deleteOneSubscription(query: SubscriptionQueryInput!): Subscription - deleteOneTaxa(query: TaxaQueryInput!): Taxa - deleteOneUser(query: UserQueryInput!): User - getUser(input: GetUserInput): AppUser - insertManyCandidates(data: [CandidateInsertInput!]!): InsertManyPayload - insertManyChecklists(data: [ChecklistInsertInput!]!): InsertManyPayload - insertManyClassifications(data: [ClassificationInsertInput!]!): InsertManyPayload - insertManyDuplicates(data: [DuplicateInsertInput!]!): InsertManyPayload - insertManyEntities(data: [EntityInsertInput!]!): InsertManyPayload - insertManyHistory_incidents(data: [History_incidentInsertInput!]!): InsertManyPayload - insertManyHistory_reports(data: [History_reportInsertInput!]!): InsertManyPayload - insertManyIncidents(data: [IncidentInsertInput!]!): InsertManyPayload - insertManyNotifications(data: [NotificationInsertInput!]!): InsertManyPayload - insertManyQuickadds(data: [QuickaddInsertInput!]!): InsertManyPayload - insertManyReports(data: [ReportInsertInput!]!): InsertManyPayload - insertManySubmissions(data: [SubmissionInsertInput!]!): InsertManyPayload - insertManySubscriptions(data: [SubscriptionInsertInput!]!): InsertManyPayload - insertManyTaxas(data: [TaxaInsertInput!]!): InsertManyPayload - insertManyUsers(data: [UserInsertInput!]!): InsertManyPayload - insertOneCandidate(data: CandidateInsertInput!): Candidate - insertOneChecklist(data: ChecklistInsertInput!): Checklist - insertOneClassification(data: ClassificationInsertInput!): Classification - insertOneDuplicate(data: DuplicateInsertInput!): Duplicate - insertOneEntity(data: EntityInsertInput!): Entity - insertOneHistory_incident(data: History_incidentInsertInput!): History_incident - insertOneHistory_report(data: History_reportInsertInput!): History_report - insertOneIncident(data: IncidentInsertInput!): Incident - insertOneNotification(data: NotificationInsertInput!): Notification - insertOneQuickadd(data: QuickaddInsertInput!): Quickadd - insertOneReport(data: ReportInsertInput!): Report - insertOneSubmission(data: SubmissionInsertInput!): Submission - insertOneSubscription(data: SubscriptionInsertInput!): Subscription - insertOneTaxa(data: TaxaInsertInput!): Taxa - insertOneUser(data: UserInsertInput!): User - linkReportsToIncidents(input: LinkReportsToIncidentsInput): [Incident] - logIncidentHistory(input: History_incidentInsertInput): LogIncidentHistoryPayload - logReportHistory(input: History_reportInsertInput): LogReportHistoryPayload - processNotifications: Int - promoteSubmissionToReport(input: PromoteSubmissionToReportInput): PromoteSubmissionToReportPayload - replaceOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate - replaceOneChecklist(query: ChecklistQueryInput, data: ChecklistInsertInput!): Checklist - replaceOneClassification(data: ClassificationInsertInput!, query: ClassificationQueryInput): Classification - replaceOneDuplicate(query: DuplicateQueryInput, data: DuplicateInsertInput!): Duplicate - replaceOneEntity(query: EntityQueryInput, data: EntityInsertInput!): Entity - replaceOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident - replaceOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report - replaceOneIncident(query: IncidentQueryInput, data: IncidentInsertInput!): Incident - replaceOneNotification(query: NotificationQueryInput, data: NotificationInsertInput!): Notification - replaceOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd - replaceOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report - replaceOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission - replaceOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription - replaceOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa - replaceOneUser(query: UserQueryInput, data: UserInsertInput!): User - updateManyCandidates(set: CandidateUpdateInput!, query: CandidateQueryInput): UpdateManyPayload - updateManyChecklists(query: ChecklistQueryInput, set: ChecklistUpdateInput!): UpdateManyPayload - updateManyClassifications(query: ClassificationQueryInput, set: ClassificationUpdateInput!): UpdateManyPayload - updateManyDuplicates(query: DuplicateQueryInput, set: DuplicateUpdateInput!): UpdateManyPayload - updateManyEntities(query: EntityQueryInput, set: EntityUpdateInput!): UpdateManyPayload - updateManyHistory_incidents(query: History_incidentQueryInput, set: History_incidentUpdateInput!): UpdateManyPayload - updateManyHistory_reports(query: History_reportQueryInput, set: History_reportUpdateInput!): UpdateManyPayload - updateManyIncidents(query: IncidentQueryInput, set: IncidentUpdateInput!): UpdateManyPayload - updateManyNotifications(query: NotificationQueryInput, set: NotificationUpdateInput!): UpdateManyPayload - updateManyQuickadds(query: QuickaddQueryInput, set: QuickaddUpdateInput!): UpdateManyPayload - updateManyReports(query: ReportQueryInput, set: ReportUpdateInput!): UpdateManyPayload - updateManySubmissions(query: SubmissionQueryInput, set: SubmissionUpdateInput!): UpdateManyPayload - updateManySubscriptions(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): UpdateManyPayload - updateManyTaxas(query: TaxaQueryInput, set: TaxaUpdateInput!): UpdateManyPayload - updateManyUsers(query: UserQueryInput, set: UserUpdateInput!): UpdateManyPayload - updateOneCandidate(query: CandidateQueryInput, set: CandidateUpdateInput!): Candidate - updateOneChecklist(query: ChecklistQueryInput, set: ChecklistUpdateInput!): Checklist - updateOneClassification(query: ClassificationQueryInput, set: ClassificationUpdateInput!): Classification - updateOneDuplicate(query: DuplicateQueryInput, set: DuplicateUpdateInput!): Duplicate - updateOneEntity(query: EntityQueryInput, set: EntityUpdateInput!): Entity - updateOneHistory_incident(query: History_incidentQueryInput, set: History_incidentUpdateInput!): History_incident - updateOneHistory_report(query: History_reportQueryInput, set: History_reportUpdateInput!): History_report - updateOneIncident(query: IncidentQueryInput, set: IncidentUpdateInput!): Incident - updateOneNotification(query: NotificationQueryInput, set: NotificationUpdateInput!): Notification - updateOneQuickadd(query: QuickaddQueryInput, set: QuickaddUpdateInput!): Quickadd - updateOneReport(query: ReportQueryInput, set: ReportUpdateInput!): Report - updateOneReportTranslation(input: UpdateOneReportTranslationInput): Report - updateOneSubmission(query: SubmissionQueryInput, set: SubmissionUpdateInput!): Submission - updateOneSubscription(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): Subscription - updateOneTaxa(query: TaxaQueryInput, set: TaxaUpdateInput!): Taxa - updateOneUser(query: UserQueryInput, set: UserUpdateInput!): User - upsertOneCandidate(query: CandidateQueryInput, data: CandidateInsertInput!): Candidate - upsertOneChecklist(query: ChecklistQueryInput, data: ChecklistInsertInput!): Checklist - upsertOneClassification(query: ClassificationQueryInput, data: ClassificationInsertInput!): Classification - upsertOneDuplicate(data: DuplicateInsertInput!, query: DuplicateQueryInput): Duplicate - upsertOneEntity(query: EntityQueryInput, data: EntityInsertInput!): Entity - upsertOneHistory_incident(query: History_incidentQueryInput, data: History_incidentInsertInput!): History_incident - upsertOneHistory_report(query: History_reportQueryInput, data: History_reportInsertInput!): History_report - upsertOneIncident(query: IncidentQueryInput, data: IncidentInsertInput!): Incident - upsertOneNotification(data: NotificationInsertInput!, query: NotificationQueryInput): Notification - upsertOneQuickadd(data: QuickaddInsertInput!, query: QuickaddQueryInput): Quickadd - upsertOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report - upsertOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission - upsertOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription - upsertOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa - upsertOneUser(query: UserQueryInput, data: UserInsertInput!): User +input CandidateClassification_similarityQueryInput { + classification_gt: String + classification_gte: String + classification: String + similarity_gte: Float + OR: [CandidateClassification_similarityQueryInput!] + similarity_lt: Float + similarity: Float + similarity_gt: Float + similarity_nin: [Float] + AND: [CandidateClassification_similarityQueryInput!] + similarity_ne: Float + similarity_in: [Float] + classification_exists: Boolean + classification_ne: String + classification_in: [String] + similarity_lte: Float + classification_lt: String + classification_lte: String + similarity_exists: Boolean + classification_nin: [String] } -input ClassificationUpdateInput { - namespace_unset: Boolean +input TaxaDummy_fieldInsertInput { + short_name: String + field_number: String +} + +input IncidentUpdateInput { + nlp_similar_incidents_unset: Boolean + editor_similar_incidents_unset: Boolean + tsne: IncidentTsneUpdateInput + epoch_date_modified_unset: Boolean + editor_notes: String + AllegedDeveloperOfAISystem_unset: Boolean + date_unset: Boolean + title_unset: Boolean + _id: ObjectId + nlp_similar_incidents: [IncidentNlp_similar_incidentUpdateInput] + AllegedDeployerOfAISystem_unset: Boolean + editor_dissimilar_incidents: [Int] + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput + date: String + tsne_unset: Boolean + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + description: String + embedding_unset: Boolean + epoch_date_modified_inc: Int + editors_unset: Boolean + description_unset: Boolean + reports: IncidentReportsRelationInput + AllegedHarmedOrNearlyHarmedParties_unset: Boolean + incident_id_unset: Boolean _id_unset: Boolean + embedding: IncidentEmbeddingUpdateInput reports_unset: Boolean - notes: String - attributes_unset: Boolean - publish_unset: Boolean - _id: ObjectId - attributes: [ClassificationAttributeUpdateInput] - incidents: ClassificationIncidentsRelationInput - namespace: String - publish: Boolean - incidents_unset: Boolean - notes_unset: Boolean - reports: ClassificationReportsRelationInput + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput + editor_notes_unset: Boolean + editor_dissimilar_incidents_unset: Boolean + epoch_date_modified: Int + title: String + incident_id: Int + editor_similar_incidents: [Int] + editors: IncidentEditorsRelationInput + incident_id_inc: Int + flagged_dissimilar_incidents: [Int] + flagged_dissimilar_incidents_unset: Boolean } -input TaxaField_listComplete_fromUpdateInput { +input History_incidentEmbeddingQueryInput { + from_reports_exists: Boolean + vector_nin: [Float] + OR: [History_incidentEmbeddingQueryInput!] + vector: [Float] + AND: [History_incidentEmbeddingQueryInput!] + from_reports_nin: [Int] + vector_in: [Float] + from_reports: [Int] + from_reports_in: [Int] + vector_exists: Boolean +} + +input TaxaField_listComplete_fromQueryInput { + all_in: [String] + current_in: [String] + AND: [TaxaField_listComplete_fromQueryInput!] + all_nin: [String] + all_exists: Boolean + OR: [TaxaField_listComplete_fromQueryInput!] current: [String] - current_unset: Boolean + current_nin: [String] + current_exists: Boolean all: [String] - all_unset: Boolean } -input SubmissionEmbeddingUpdateInput { - vector_unset: Boolean +input TaxaDummy_fieldUpdateInput { + field_number_unset: Boolean + short_name: String + short_name_unset: Boolean + field_number: String +} + +type CreateVariantPayload { + incident_id: Int + report_number: Int +} + +type SubmissionEmbedding { from_text_hash: String - from_text_hash_unset: Boolean vector: [Float] } -type Query { - candidate(query: CandidateQueryInput): Candidate - candidates(query: CandidateQueryInput, limit: Int = 100, sortBy: CandidateSortByInput): [Candidate]! - checklist(query: ChecklistQueryInput): Checklist - checklists(query: ChecklistQueryInput, limit: Int = 100, sortBy: ChecklistSortByInput): [Checklist]! - classification(query: ClassificationQueryInput): Classification - classifications(sortBy: ClassificationSortByInput, query: ClassificationQueryInput, limit: Int = 100): [Classification]! - duplicate(query: DuplicateQueryInput): Duplicate - duplicates(sortBy: DuplicateSortByInput, query: DuplicateQueryInput, limit: Int = 100): [Duplicate]! - entities(limit: Int = 100, sortBy: EntitySortByInput, query: EntityQueryInput): [Entity]! - entity(query: EntityQueryInput): Entity - history_incident(query: History_incidentQueryInput): History_incident - history_incidents(query: History_incidentQueryInput, limit: Int = 100, sortBy: History_incidentSortByInput): [History_incident]! - history_report(query: History_reportQueryInput): History_report - history_reports(query: History_reportQueryInput, limit: Int = 100, sortBy: History_reportSortByInput): [History_report]! - incident(query: IncidentQueryInput): Incident - incidents(sortBy: IncidentSortByInput, query: IncidentQueryInput, limit: Int = 100): [Incident]! - notification(query: NotificationQueryInput): Notification - notifications(sortBy: NotificationSortByInput, query: NotificationQueryInput, limit: Int = 100): [Notification]! - quickadd(query: QuickaddQueryInput): Quickadd - quickadds(query: QuickaddQueryInput, limit: Int = 100, sortBy: QuickaddSortByInput): [Quickadd]! - report(query: ReportQueryInput): Report - reports(query: ReportQueryInput, limit: Int = 100, sortBy: ReportSortByInput): [Report]! - risks(input: RisksInput): [RisksPayloadItem] - submission(query: SubmissionQueryInput): Submission - submissions(query: SubmissionQueryInput, limit: Int = 100, sortBy: SubmissionSortByInput): [Submission]! - subscription(query: SubscriptionQueryInput): Subscription - subscriptions(query: SubscriptionQueryInput, limit: Int = 100, sortBy: SubscriptionSortByInput): [Subscription]! - taxa(query: TaxaQueryInput): Taxa - taxas(query: TaxaQueryInput, limit: Int = 100, sortBy: TaxaSortByInput): [Taxa]! - user(query: UserQueryInput): User - users(query: UserQueryInput, limit: Int = 100, sortBy: UserSortByInput): [User]! +type RisksPayloadPrecedentNlp_similar_incident { + incident_id: Int + similarity: Float } -type Incident { - AllegedDeployerOfAISystem: [Entity] - AllegedDeveloperOfAISystem: [Entity] - AllegedHarmedOrNearlyHarmedParties: [Entity] +input ClassificationQueryInput { + namespace_lt: String + attributes_in: [ClassificationAttributeQueryInput] + reports_in: [ReportQueryInput] + publish: Boolean + _id_nin: [ObjectId] + attributes_exists: Boolean + notes_lte: String + namespace_nin: [String] + notes_nin: [String] + OR: [ClassificationQueryInput!] + namespace_lte: String + notes_lt: String + notes_exists: Boolean + publish_exists: Boolean + namespace_gte: String + namespace_exists: Boolean + incidents_nin: [IncidentQueryInput] + _id_lte: ObjectId + _id_gte: ObjectId + attributes_nin: [ClassificationAttributeQueryInput] + notes_in: [String] + _id_ne: ObjectId + attributes: [ClassificationAttributeQueryInput] + reports_nin: [ReportQueryInput] + notes_ne: String + namespace_gt: String + notes_gte: String + reports_exists: Boolean + publish_ne: Boolean + incidents_in: [IncidentQueryInput] + namespace: String + _id_in: [ObjectId] + AND: [ClassificationQueryInput!] + _id_lt: ObjectId + _id_gt: ObjectId + namespace_in: [String] + incidents_exists: Boolean + incidents: [IncidentQueryInput] + notes: String + reports: [ReportQueryInput] _id: ObjectId - date: String! - description: String - editor_dissimilar_incidents: [Int] - editor_notes: String - editor_similar_incidents: [Int] - editors: [User]! - embedding: IncidentEmbedding - epoch_date_modified: Int - flagged_dissimilar_incidents: [Int] - incident_id: Int! - nlp_similar_incidents: [IncidentNlp_similar_incident] - reports: [Report]! - title: String! - tsne: IncidentTsne -} - -input SubscriptionIncident_idRelationInput { - create: IncidentInsertInput - link: Int + _id_exists: Boolean + namespace_ne: String + notes_gt: String } -input TaxaField_listItem_fieldComplete_fromInsertInput { - all: [String] - current: [String] - entities: Boolean +input UserQueryInput { + AND: [UserQueryInput!] + first_name_lte: String + userId_ne: String + userId_gt: String + _id_exists: Boolean + userId_gte: String + _id_lt: ObjectId + last_name_ne: String + last_name_lte: String + _id_lte: ObjectId + last_name_gt: String + roles_in: [String] + userId_lte: String + first_name_gte: String + last_name_in: [String] + last_name: String + first_name_ne: String + userId_lt: String + last_name_gte: String + OR: [UserQueryInput!] + _id_nin: [ObjectId] + userId_nin: [String] + first_name_nin: [String] + _id_gte: ObjectId + userId_exists: Boolean + roles_nin: [String] + first_name: String + first_name_in: [String] + roles_exists: Boolean + first_name_lt: String + first_name_gt: String + last_name_exists: Boolean + _id_gt: ObjectId + _id: ObjectId + _id_ne: ObjectId + userId_in: [String] + _id_in: [ObjectId] + userId: String + first_name_exists: Boolean + last_name_lt: String + roles: [String] + last_name_nin: [String] } -input IncidentTsneInsertInput { - x: Float - y: Float +enum ClassificationSortByInput { + _ID_ASC + _ID_DESC + NAMESPACE_ASC + NAMESPACE_DESC + NOTES_ASC + NOTES_DESC } -type TaxaDummy_field { - field_number: String - short_name: String +input TaxaField_listComplete_fromInsertInput { + current: [String] + all: [String] } -input IncidentQueryInput { - AllegedDeployerOfAISystem_nin: [EntityQueryInput] - incident_id_lte: Int - editor_similar_incidents: [Int] - epoch_date_modified_nin: [Int] - AllegedDeployerOfAISystem_exists: Boolean - title: String - editor_notes_ne: String - title_gte: String - description_lt: String - date_ne: String - editor_similar_incidents_in: [Int] - date: String - editor_dissimilar_incidents_exists: Boolean +input EntityUpdateInput { + created_at_unset: Boolean + _id_unset: Boolean + date_modified: DateTime + date_modified_unset: Boolean + name_unset: Boolean + name: String + entity_id_unset: Boolean + entity_id: String _id: ObjectId - description_lte: String - editor_notes_gt: String - incident_id_ne: Int - description_exists: Boolean - incident_id_nin: [Int] - epoch_date_modified_gte: Int - editor_dissimilar_incidents: [Int] - epoch_date_modified_ne: Int - epoch_date_modified_exists: Boolean - title_nin: [String] - AllegedHarmedOrNearlyHarmedParties_exists: Boolean - epoch_date_modified_lt: Int - nlp_similar_incidents_in: [IncidentNlp_similar_incidentQueryInput] - editors: [UserQueryInput] - incident_id: Int + created_at: DateTime +} + +scalar DateTime + +input QuickaddQueryInput { + date_submitted_in: [String] + incident_id_gt: Long _id_nin: [ObjectId] - AllegedDeveloperOfAISystem_in: [EntityQueryInput] - date_lte: String + source_domain: String + url_in: [String] + incident_id_exists: Boolean + source_domain_lt: String + incident_id: Long + source_domain_in: [String] + date_submitted_nin: [String] + date_submitted_gte: String + _id: ObjectId _id_lt: ObjectId - incident_id_in: [Int] - title_exists: Boolean - date_lt: String - nlp_similar_incidents: [IncidentNlp_similar_incidentQueryInput] - epoch_date_modified: Int - AllegedDeployerOfAISystem_in: [EntityQueryInput] - epoch_date_modified_in: [Int] - description_nin: [String] - _id_gte: ObjectId - editor_notes_lt: String - description: String - tsne_exists: Boolean - editor_notes_lte: String - reports: [ReportQueryInput] - editor_similar_incidents_nin: [Int] - editors_exists: Boolean - editors_nin: [UserQueryInput] - embedding: IncidentEmbeddingQueryInput - title_ne: String - flagged_dissimilar_incidents_in: [Int] - editor_similar_incidents_exists: Boolean - reports_nin: [ReportQueryInput] + url_lte: String + url_lt: String + date_submitted_lte: String + incident_id_ne: Long + source_domain_ne: String + incident_id_nin: [Long] _id_exists: Boolean - tsne: IncidentTsneQueryInput - AND: [IncidentQueryInput!] - editor_dissimilar_incidents_nin: [Int] + date_submitted_exists: Boolean _id_lte: ObjectId - epoch_date_modified_lte: Int - OR: [IncidentQueryInput!] - description_ne: String - flagged_dissimilar_incidents_exists: Boolean - flagged_dissimilar_incidents_nin: [Int] - title_gt: String - AllegedDeployerOfAISystem: [EntityQueryInput] - description_gte: String + url_exists: Boolean + source_domain_lte: String + AND: [QuickaddQueryInput!] _id_ne: ObjectId - reports_in: [ReportQueryInput] - description_gt: String - date_gt: String - title_lt: String - editor_dissimilar_incidents_in: [Int] - AllegedDeveloperOfAISystem: [EntityQueryInput] - date_in: [String] - flagged_dissimilar_incidents: [Int] - title_in: [String] - title_lte: String - date_gte: String - date_exists: Boolean - editor_notes_gte: String - AllegedHarmedOrNearlyHarmedParties_nin: [EntityQueryInput] - editor_notes_nin: [String] - incident_id_lt: Int - editor_notes: String - incident_id_exists: Boolean - AllegedDeveloperOfAISystem_nin: [EntityQueryInput] - embedding_exists: Boolean - AllegedHarmedOrNearlyHarmedParties_in: [EntityQueryInput] - nlp_similar_incidents_exists: Boolean - editor_notes_in: [String] + url_gte: String + date_submitted_lt: String + source_domain_exists: Boolean + incident_id_gte: Long _id_in: [ObjectId] - incident_id_gt: Int - reports_exists: Boolean - AllegedHarmedOrNearlyHarmedParties: [EntityQueryInput] - nlp_similar_incidents_nin: [IncidentNlp_similar_incidentQueryInput] - epoch_date_modified_gt: Int - AllegedDeveloperOfAISystem_exists: Boolean - date_nin: [String] - editor_notes_exists: Boolean + url: String + _id_gte: ObjectId + source_domain_gte: String + url_ne: String + url_nin: [String] + OR: [QuickaddQueryInput!] + source_domain_gt: String _id_gt: ObjectId - editors_in: [UserQueryInput] - description_in: [String] - incident_id_gte: Int + date_submitted_ne: String + incident_id_lt: Long + incident_id_lte: Long + source_domain_nin: [String] + incident_id_in: [Long] + date_submitted_gt: String + url_gt: String + date_submitted: String } -type IncidentEmbedding { - from_reports: [Int] - vector: [Float] +input UpdateOneReportTranslationInput { + language: String! + plain_text: String! + report_number: Int! + text: String! + title: String! } -type RisksPayloadItem { - precedents: [RisksPayloadPrecedent] - tag: String - tags: [String] - title: String +input IncidentReportsRelationInput { + create: [ReportInsertInput] + link: [Int] } -input History_reportEmbeddingQueryInput { - from_text_hash_in: [String] - from_text_hash: String - from_text_hash_gt: String - OR: [History_reportEmbeddingQueryInput!] - from_text_hash_ne: String - vector_in: [Float] - from_text_hash_lt: String - AND: [History_reportEmbeddingQueryInput!] - from_text_hash_exists: Boolean - vector_exists: Boolean - vector: [Float] - vector_nin: [Float] - from_text_hash_lte: String - from_text_hash_gte: String - from_text_hash_nin: [String] +input IncidentTsneInsertInput { + y: Float + x: Float } -input IncidentInsertInput { - nlp_similar_incidents: [IncidentNlp_similar_incidentInsertInput] - editor_notes: String - editor_similar_incidents: [Int] - tsne: IncidentTsneInsertInput - AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput - editor_dissimilar_incidents: [Int] - flagged_dissimilar_incidents: [Int] - description: String - incident_id: Int! - editors: IncidentEditorsRelationInput! - title: String! - AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput - AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput - reports: IncidentReportsRelationInput! +input CandidateClassification_similarityUpdateInput { + similarity: Float + similarity_inc: Float + similarity_unset: Boolean + classification: String + classification_unset: Boolean +} + +input ChecklistUpdateInput { + entity_id: String + about_unset: Boolean + date_updated: DateTime + owner_id_unset: Boolean + risks: [ChecklistRiskUpdateInput] + _id_unset: Boolean + tags_methods: [String] + tags_methods_unset: Boolean + date_created_unset: Boolean + risks_unset: Boolean + tags_other: [String] + name_unset: Boolean + owner_id: String + about: String + date_created: DateTime + entity_id_unset: Boolean + tags_other_unset: Boolean + tags_goals_unset: Boolean + id: String + tags_goals: [String] + id_unset: Boolean _id: ObjectId - date: String! - embedding: IncidentEmbeddingInsertInput - epoch_date_modified: Int + date_updated_unset: Boolean + name: String +} + +input IncidentTsneQueryInput { + y_lt: Float + y_in: [Float] + y_nin: [Float] + OR: [IncidentTsneQueryInput!] + x_lt: Float + y: Float + y_lte: Float + y_ne: Float + x_gte: Float + x_in: [Float] + x: Float + x_ne: Float + y_exists: Boolean + x_lte: Float + y_gt: Float + AND: [IncidentTsneQueryInput!] + x_exists: Boolean + y_gte: Float + x_nin: [Float] + x_gt: Float } -enum QuickaddSortByInput { - _ID_DESC - INCIDENT_ID_ASC - URL_ASC - URL_DESC - SOURCE_DOMAIN_ASC - SOURCE_DOMAIN_DESC - _ID_ASC - DATE_SUBMITTED_ASC - DATE_SUBMITTED_DESC - INCIDENT_ID_DESC +input DuplicateQueryInput { + duplicate_incident_number_ne: Int + true_incident_number_lte: Int + duplicate_incident_number_gte: Int + _id_gte: ObjectId + _id_nin: [ObjectId] + true_incident_number_ne: Int + duplicate_incident_number_exists: Boolean + true_incident_number_in: [Int] + _id_gt: ObjectId + AND: [DuplicateQueryInput!] + OR: [DuplicateQueryInput!] + _id_lt: ObjectId + true_incident_number_gte: Int + true_incident_number_lt: Int + duplicate_incident_number_in: [Int] + duplicate_incident_number_nin: [Int] + _id_in: [ObjectId] + _id_ne: ObjectId + duplicate_incident_number: Int + duplicate_incident_number_lt: Int + _id: ObjectId + duplicate_incident_number_gt: Int + true_incident_number_nin: [Int] + _id_lte: ObjectId + _id_exists: Boolean + duplicate_incident_number_lte: Int + true_incident_number: Int + true_incident_number_exists: Boolean + true_incident_number_gt: Int } -enum DuplicateSortByInput { - _ID_ASC - _ID_DESC - DUPLICATE_INCIDENT_NUMBER_ASC - DUPLICATE_INCIDENT_NUMBER_DESC - TRUE_INCIDENT_NUMBER_ASC - TRUE_INCIDENT_NUMBER_DESC +type InsertManyPayload { + insertedIds: [ObjectId]! } -input ChecklistRiskPrecedentUpdateInput { - description_unset: Boolean - title_unset: Boolean - incident_id_inc: Int +input ReportQueryInput { + report_number_nin: [Int] + cloudinary_id_nin: [String] + _id_lt: ObjectId + editor_notes_gte: String + date_published_lt: DateTime + description_lte: String + date_modified_nin: [DateTime] + date_submitted_gte: DateTime + date_downloaded: DateTime + editor_notes: String + date_downloaded_gte: DateTime + date_downloaded_nin: [DateTime] + epoch_date_modified_nin: [Int] + date_modified_ne: DateTime + plain_text: String + image_url: String + image_url_ne: String + report_number_gt: Int + cloudinary_id_gte: String + url_ne: String + editor_notes_gt: String + title_in: [String] + flag_ne: Boolean + url_lt: String + plain_text_nin: [String] + OR: [ReportQueryInput!] + is_incident_report_exists: Boolean + description_lt: String + url_gte: String + epoch_date_downloaded_lte: Int + inputs_outputs_nin: [String] + epoch_date_modified_gt: Int + text_in: [String] + date_submitted_lt: DateTime + report_number_lt: Int + language_in: [String] + plain_text_lte: String + is_incident_report: Boolean + _id_gte: ObjectId + image_url_lte: String + inputs_outputs_in: [String] + source_domain_nin: [String] + epoch_date_modified: Int + epoch_date_downloaded_in: [Int] + inputs_outputs_exists: Boolean + submitters_in: [String] + is_incident_report_ne: Boolean + epoch_date_published_lt: Int + editor_notes_exists: Boolean + plain_text_exists: Boolean + text_nin: [String] + date_submitted_ne: DateTime + epoch_date_modified_lt: Int + epoch_date_modified_exists: Boolean + plain_text_gt: String + epoch_date_published_gt: Int + cloudinary_id_exists: Boolean + text_gte: String + tags: [String] + epoch_date_submitted_ne: Int + authors_exists: Boolean + date_downloaded_exists: Boolean + description_exists: Boolean + submitters_nin: [String] + date_submitted_lte: DateTime + _id_lte: ObjectId + cloudinary_id_ne: String + epoch_date_published_nin: [Int] + description_gte: String + text: String + epoch_date_downloaded_ne: Int + date_downloaded_lte: DateTime + date_submitted_in: [DateTime] + text_lte: String + editor_notes_nin: [String] + submitters_exists: Boolean + cloudinary_id_gt: String + date_downloaded_gt: DateTime + epoch_date_published: Int + image_url_gte: String + url_gt: String + description_gt: String + date_modified: DateTime + date_submitted: DateTime + date_modified_lt: DateTime + language_lte: String + epoch_date_submitted: Int + user_exists: Boolean + epoch_date_modified_lte: Int + url_lte: String + image_url_lt: String + inputs_outputs: [String] + date_published_gt: DateTime + source_domain_exists: Boolean + date_published_gte: DateTime + report_number: Int + date_submitted_gt: DateTime + url_in: [String] + epoch_date_submitted_exists: Boolean + date_modified_exists: Boolean + source_domain_in: [String] + date_submitted_exists: Boolean + authors: [String] + epoch_date_submitted_in: [Int] + epoch_date_published_gte: Int + date_downloaded_in: [DateTime] + _id_gt: ObjectId + _id_in: [ObjectId] + title_nin: [String] + date_modified_lte: DateTime + language_nin: [String] + title_lte: String + url_exists: Boolean + date_downloaded_ne: DateTime + tags_in: [String] + source_domain_ne: String + image_url_nin: [String] + date_submitted_nin: [DateTime] + cloudinary_id_in: [String] + plain_text_ne: String + text_exists: Boolean + title_lt: String + epoch_date_published_lte: Int + text_ne: String + epoch_date_published_ne: Int + embedding: ReportEmbeddingQueryInput + source_domain_lt: String + quiet_exists: Boolean + plain_text_lt: String + description_in: [String] + epoch_date_submitted_nin: [Int] + editor_notes_lt: String + _id: ObjectId + epoch_date_downloaded_lt: Int + flag: Boolean + epoch_date_submitted_gt: Int + submitters: [String] + cloudinary_id_lte: String + language: String + tags_exists: Boolean + plain_text_gte: String + epoch_date_downloaded: Int + image_url_gt: String + epoch_date_submitted_gte: Int + date_published: DateTime + date_published_exists: Boolean + language_gte: String + source_domain: String + language_lt: String + epoch_date_downloaded_exists: Boolean + image_url_exists: Boolean + date_modified_in: [DateTime] + report_number_exists: Boolean + source_domain_gt: String + flag_exists: Boolean + language_gt: String + date_published_nin: [DateTime] + report_number_lte: Int + editor_notes_ne: String + description_nin: [String] + user: UserQueryInput title: String - tags_unset: Boolean + date_downloaded_lt: DateTime + epoch_date_submitted_lt: Int + editor_notes_in: [String] + title_exists: Boolean + epoch_date_modified_gte: Int + epoch_date_submitted_lte: Int + _id_nin: [ObjectId] + _id_exists: Boolean + url: String + description_ne: String + cloudinary_id: String + date_published_lte: DateTime + epoch_date_downloaded_nin: [Int] + epoch_date_downloaded_gt: Int + language_ne: String + epoch_date_downloaded_gte: Int + title_ne: String + text_gt: String + url_nin: [String] + epoch_date_modified_in: [Int] + quiet_ne: Boolean + epoch_date_published_exists: Boolean + _id_ne: ObjectId + date_published_in: [DateTime] + text_lt: String + plain_text_in: [String] + report_number_ne: Int + epoch_date_modified_ne: Int description: String - incident_id: Int - incident_id_unset: Boolean - tags: [String] + title_gte: String + AND: [ReportQueryInput!] + image_url_in: [String] + embedding_exists: Boolean + report_number_gte: Int + title_gt: String + source_domain_gte: String + cloudinary_id_lt: String + authors_in: [String] + report_number_in: [Int] + source_domain_lte: String + quiet: Boolean + date_published_ne: DateTime + editor_notes_lte: String + epoch_date_published_in: [Int] + date_modified_gte: DateTime + tags_nin: [String] + authors_nin: [String] + language_exists: Boolean + date_modified_gt: DateTime } -input SubscriptionQueryInput { - OR: [SubscriptionQueryInput!] - type_exists: Boolean - _id_gt: ObjectId - _id_nin: [ObjectId] - type_ne: String - incident_id_exists: Boolean +input SubmissionQueryInput { + quiet_exists: Boolean + title_ne: String _id: ObjectId - type_gt: String + source_domain_lte: String + date_modified_nin: [String] + title_gte: String + harmed_parties_exists: Boolean + language_nin: [String] + date_published_nin: [String] + editor_notes_exists: Boolean + deployers: [EntityQueryInput] + plain_text_gt: String + incident_title_gt: String + text_gt: String + image_url_nin: [String] + url_lte: String + date_modified_in: [String] + plain_text_in: [String] + source_domain_lt: String + date_published_ne: String + developers: [EntityQueryInput] + status_gte: String + tags_nin: [String] + date_downloaded_exists: Boolean + image_url_exists: Boolean + epoch_date_modified_gte: Int + description: String _id_lte: ObjectId - entityId: EntityQueryInput - userId: UserQueryInput - _id_gte: ObjectId - _id_exists: Boolean - userId_exists: Boolean - type: String - type_nin: [String] - type_gte: String - entityId_exists: Boolean - incident_id: IncidentQueryInput - AND: [SubscriptionQueryInput!] - _id_in: [ObjectId] - type_lt: String - _id_lt: ObjectId + description_gt: String + harmed_parties_nin: [EntityQueryInput] + text_lte: String + incident_date_in: [String] + editor_notes_gt: String + epoch_date_modified: Int + language: String + authors_nin: [String] + plain_text_exists: Boolean + editor_dissimilar_incidents: [Int] + url_ne: String + title_exists: Boolean + description_gte: String + developers_exists: Boolean + incident_date_nin: [String] _id_ne: ObjectId - type_lte: String - type_in: [String] -} - -input History_reportUpdateInput { - is_incident_report_unset: Boolean - language_unset: Boolean - epoch_date_downloaded_inc: Int - report_number_unset: Boolean - flag_unset: Boolean - image_url: String - description_unset: Boolean - submitters: [String] - date_downloaded_unset: Boolean - url_unset: Boolean - date_modified_unset: Boolean + text_in: [String] + user: UserQueryInput + text_nin: [String] + date_submitted_lt: String + date_downloaded_nin: [String] + date_published_gte: String + tags_in: [String] + source_domain_ne: String editor_notes: String - language: String - epoch_date_published: Int - epoch_date_downloaded: Int - user_unset: Boolean - tags: [String] - epoch_date_modified_unset: Boolean - epoch_date_submitted: Int - date_submitted_unset: Boolean - modifiedBy: String - modifiedBy_unset: Boolean - is_incident_report: Boolean - url: String - report_number: Int + developers_in: [EntityQueryInput] + quiet: Boolean + status_in: [String] + editor_dissimilar_incidents_nin: [Int] + incident_title: String + nlp_similar_incidents_exists: Boolean + embedding: SubmissionEmbeddingQueryInput + incident_editors: [UserQueryInput] + date_modified_lte: String + epoch_date_modified_exists: Boolean + url_lt: String + date_modified_gt: String + AND: [SubmissionQueryInput!] + date_published_exists: Boolean + language_lte: String + language_in: [String] + incident_ids: [Int] + image_url_ne: String + incident_title_nin: [String] + date_published: String + date_downloaded_gt: String + image_url_in: [String] + image_url_lte: String + editor_similar_incidents: [Int] + date_downloaded_lte: String + editor_dissimilar_incidents_in: [Int] + date_submitted: String + url_in: [String] + plain_text_lte: String + date_submitted_exists: Boolean + epoch_date_modified_nin: [Int] text: String - epoch_date_submitted_inc: Int - embedding_unset: Boolean - cloudinary_id_unset: Boolean - editor_notes_unset: Boolean - report_number_inc: Int - date_published_unset: Boolean - epoch_date_published_inc: Int - authors_unset: Boolean - title_unset: Boolean - date_published: DateTime - plain_text: String - date_modified: DateTime - authors: [String] - date_submitted: DateTime - epoch_date_modified: Int - epoch_date_downloaded_unset: Boolean - submitters_unset: Boolean - _id_unset: Boolean - embedding: History_reportEmbeddingUpdateInput - source_domain_unset: Boolean - plain_text_unset: Boolean - date_downloaded: DateTime - description: String - inputs_outputs: [String] - epoch_date_modified_inc: Int - tags_unset: Boolean + source_domain_nin: [String] + language_gt: String + developers_nin: [EntityQueryInput] + cloudinary_id_nin: [String] + source_domain_gt: String + incident_date_lt: String + date_modified_lt: String + status_exists: Boolean + text_lt: String + url: String + date_submitted_lte: String + incident_ids_exists: Boolean + title_lte: String + incident_title_gte: String + text_gte: String + plain_text_nin: [String] + incident_ids_in: [Int] + incident_date_gt: String + _id_in: [ObjectId] + editor_dissimilar_incidents_exists: Boolean + date_published_lt: String + authors_in: [String] + embedding_exists: Boolean + date_downloaded_gte: String + image_url: String + language_ne: String + title_in: [String] + submitters: [String] + _id_lt: ObjectId + status_ne: String + cloudinary_id_lte: String + incident_editors_exists: Boolean + editor_notes_ne: String + submitters_in: [String] + editor_similar_incidents_nin: [Int] + url_gte: String + url_exists: Boolean + _id_gte: ObjectId source_domain: String - epoch_date_published_unset: Boolean - flag: Boolean + harmed_parties_in: [EntityQueryInput] + nlp_similar_incidents_nin: [SubmissionNlp_similar_incidentQueryInput] + description_exists: Boolean + editor_similar_incidents_in: [Int] + _id_nin: [ObjectId] + title_gt: String + status_lte: String + harmed_parties: [EntityQueryInput] + incident_title_in: [String] + url_gt: String + date_modified_ne: String + nlp_similar_incidents_in: [SubmissionNlp_similar_incidentQueryInput] + incident_date: String + quiet_ne: Boolean + status_gt: String + submitters_nin: [String] title: String - user: String - inputs_outputs_unset: Boolean - _id: ObjectId - image_url_unset: Boolean - epoch_date_submitted_unset: Boolean - text_unset: Boolean + status_nin: [String] + date_modified_exists: Boolean + tags: [String] + editor_notes_lte: String + submitters_exists: Boolean + date_downloaded_in: [String] + cloudinary_id_in: [String] + deployers_nin: [EntityQueryInput] + epoch_date_modified_lte: Int + incident_date_exists: Boolean + incident_date_ne: String + editor_similar_incidents_exists: Boolean + cloudinary_id_exists: Boolean + cloudinary_id_lt: String + text_exists: Boolean + date_submitted_gt: String + OR: [SubmissionQueryInput!] + date_submitted_nin: [String] + description_in: [String] + status: String + _id_exists: Boolean + title_lt: String + incident_ids_nin: [Int] + editor_notes_gte: String + authors: [String] + editor_notes_lt: String + date_modified: String + date_submitted_gte: String + tags_exists: Boolean + status_lt: String + _id_gt: ObjectId + date_downloaded: String + authors_exists: Boolean + date_published_in: [String] + date_submitted_ne: String + date_modified_gte: String + incident_date_lte: String cloudinary_id: String + language_lt: String + plain_text_ne: String + source_domain_in: [String] + cloudinary_id_gt: String + description_lt: String + user_exists: Boolean + description_lte: String + source_domain_gte: String + epoch_date_modified_gt: Int + editor_notes_in: [String] + editor_notes_nin: [String] + cloudinary_id_gte: String + description_nin: [String] + epoch_date_modified_lt: Int + date_published_lte: String + incident_title_ne: String + language_exists: Boolean + date_published_gt: String + plain_text_gte: String + date_downloaded_lt: String + deployers_in: [EntityQueryInput] + source_domain_exists: Boolean + incident_title_exists: Boolean + incident_editors_in: [UserQueryInput] + plain_text: String + description_ne: String + epoch_date_modified_ne: Int + incident_title_lte: String + image_url_gt: String + cloudinary_id_ne: String + image_url_lt: String + plain_text_lt: String + nlp_similar_incidents: [SubmissionNlp_similar_incidentQueryInput] + incident_date_gte: String + text_ne: String + url_nin: [String] + date_submitted_in: [String] + image_url_gte: String + language_gte: String + incident_title_lt: String + date_downloaded_ne: String + incident_editors_nin: [UserQueryInput] + epoch_date_modified_in: [Int] + deployers_exists: Boolean + title_nin: [String] } -enum TaxaSortByInput { - WEIGHT_ASC - WEIGHT_DESC - _ID_ASC - _ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - NAMESPACE_ASC - NAMESPACE_DESC -} - -input History_reportEmbeddingInsertInput { - vector: [Float] - from_text_hash: String -} - -input UserUpdateInput { - _id_unset: Boolean - last_name: String - roles: [String] - roles_unset: Boolean - _id: ObjectId - last_name_unset: Boolean - first_name: String - userId_unset: Boolean - first_name_unset: Boolean - userId: String +input TaxaField_listInsertInput { + mongo_type: String + placeholder: String + weight: Int + complete_from: TaxaField_listComplete_fromInsertInput + permitted_values: [String] + public: Boolean + default: String + required: Boolean + long_description: String + field_number: String + instant_facet: Boolean + short_description: String + short_name: String + hide_search: Boolean + long_name: String + display_type: String + item_fields: TaxaField_listItem_fieldInsertInput } -input SubmissionDeployersRelationInput { - create: [EntityInsertInput] - link: [String] +input SubscriptionUserIdRelationInput { + create: UserInsertInput + link: String } -input ChecklistInsertInput { - owner_id: String - tags_goals: [String] - about: String - name: String - id: String - risks: [ChecklistRiskInsertInput] - tags_methods: [String] +input QuickaddInsertInput { + source_domain: String + url: String! _id: ObjectId - tags_other: [String] - date_updated: DateTime - date_created: DateTime - entity_id: String -} - -type LogReportHistoryPayload { - report_number: Int + date_submitted: String! + incident_id: Long } -type UserAdminDatum { - creationDate: DateTime - disabled: Boolean - email: String - lastAuthenticationDate: DateTime +input CandidateEmbeddingUpdateInput { + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] + vector_unset: Boolean } -type RisksPayloadPrecedent { - AllegedDeployerOfAISystem: [String] - AllegedDeveloperOfAISystem: [String] - AllegedHarmedOrNearlyHarmedParties: [String] - _id: ObjectId - date: String +input ChecklistRiskPrecedentQueryInput { + incident_id_gte: Int + incident_id_lte: Int + incident_id_nin: [Int] + description_nin: [String] description: String - editor_dissimilar_incidents: [Int] - editor_notes: String - editor_similar_incidents: [Int] - editors: [String] - embedding: RisksPayloadPrecedentEmbedding - epoch_date_modified: Int - flagged_dissimilar_incidents: [Int] - incident_id: Int - nlp_similar_incidents: [RisksPayloadPrecedentNlp_similar_incident] - reports: [Int] + title_gt: String + incident_id_gt: Int + tags_in: [String] + description_gte: String + title_lt: String + description_ne: String + tags_nin: [String] + incident_id_ne: Int + description_exists: Boolean + title_ne: String + incident_id_lt: Int + title_gte: String + tags_exists: Boolean + AND: [ChecklistRiskPrecedentQueryInput!] + incident_id_in: [Int] + title_exists: Boolean + title_in: [String] + description_lte: String + description_lt: String + incident_id_exists: Boolean tags: [String] + incident_id: Int + title_nin: [String] + title_lte: String + OR: [ChecklistRiskPrecedentQueryInput!] title: String - tsne: RisksPayloadPrecedentTsne -} - -type DeleteManyPayload { - deletedCount: Int! -} - -input CandidateInsertInput { - date_downloaded: String - match: Boolean! - date_published: String - plain_text: String - similarity: Float - matching_harm_keywords: [String] - matching_keywords: [String] - text: String - image_url: String - epoch_date_published: Int - authors: [String] - epoch_date_downloaded: Int - title: String - dismissed: Boolean - matching_entities: [String] - classification_similarity: [CandidateClassification_similarityInsertInput] - _id: ObjectId - source_domain: String - embedding: CandidateEmbeddingInsertInput - language: String - url: String! -} - -input CreateVariantInput { - incidentId: Int - variant: CreateVariantInputVariant -} - -type Subscription { - _id: ObjectId - entityId: Entity - incident_id: Incident - type: String! - userId: User! -} - -input IncidentEditorsRelationInput { - create: [UserInsertInput] - link: [String] -} - -input TaxaField_listInsertInput { - public: Boolean - short_description: String - complete_from: TaxaField_listComplete_fromInsertInput - permitted_values: [String] - placeholder: String - item_fields: TaxaField_listItem_fieldInsertInput - long_name: String - display_type: String - mongo_type: String - field_number: String - hide_search: Boolean - default: String - instant_facet: Boolean - required: Boolean - weight: Int - long_description: String - short_name: String -} - -scalar ObjectId + description_in: [String] + description_gt: String +} -type TaxaField_listItem_field { - complete_from: TaxaField_listItem_fieldComplete_from - default: String - display_type: String +type TaxaDummy_field { field_number: String - instant_facet: Boolean - long_description: String - long_name: String - mongo_type: String - permitted_values: [String] - placeholder: String - public: Boolean - required: Boolean - short_description: String short_name: String - weight: Int } -type Submission { - _id: ObjectId - authors: [String]! - cloudinary_id: String - date_downloaded: String! - date_modified: String! - date_published: String! - date_submitted: String! - deployers: [Entity] - description: String - developers: [Entity] - editor_dissimilar_incidents: [Int] - editor_notes: String - editor_similar_incidents: [Int] - embedding: SubmissionEmbedding - epoch_date_modified: Int - harmed_parties: [Entity] - image_url: String! - incident_date: String - incident_editors: [User] - incident_ids: [Int] - incident_title: String - language: String! - nlp_similar_incidents: [SubmissionNlp_similar_incident] - plain_text: String - source_domain: String! - status: String - submitters: [String]! - tags: [String]! - text: String! - title: String! - url: String! - user: User +type CandidateEmbedding { + from_text_hash: String + vector: [Float] } -type RisksPayloadPrecedentTsne { - x: Float - y: Float +input IncidentEmbeddingInsertInput { + from_reports: [Int] + vector: [Float] } -input ClassificationIncidentsRelationInput { - link: [Int] - create: [IncidentInsertInput] +input CandidateEmbeddingInsertInput { + from_text_hash: String + vector: [Float] } -scalar Long - -type Entity { +input DuplicateUpdateInput { + duplicate_incident_number_unset: Boolean + true_incident_number: Int + true_incident_number_inc: Int + true_incident_number_unset: Boolean _id: ObjectId - entity_id: String - name: String + _id_unset: Boolean + duplicate_incident_number: Int + duplicate_incident_number_inc: Int } -input CandidateClassification_similarityUpdateInput { - similarity_unset: Boolean - classification: String - classification_unset: Boolean - similarity: Float - similarity_inc: Float +input GetUserInput { + userId: ObjectId } -input History_incidentTsneUpdateInput { - x_inc: Float - x_unset: Boolean - y: Float +input IncidentTsneUpdateInput { y_inc: Float y_unset: Boolean x: Float + x_inc: Float + x_unset: Boolean + y: Float } input SubscriptionUpdateInput { - entityId_unset: Boolean + type: String + userId: SubscriptionUserIdRelationInput type_unset: Boolean - incident_id: SubscriptionIncident_idRelationInput + entityId_unset: Boolean + userId_unset: Boolean incident_id_unset: Boolean - userId: SubscriptionUserIdRelationInput _id: ObjectId - type: String - userId_unset: Boolean _id_unset: Boolean entityId: SubscriptionEntityIdRelationInput + incident_id: SubscriptionIncident_idRelationInput } -input TaxaUpdateInput { - weight_unset: Boolean - complete_entities_unset: Boolean - field_list_unset: Boolean - _id_unset: Boolean - namespace: String - _id: ObjectId - dummy_fields: [TaxaDummy_fieldUpdateInput] - field_list: [TaxaField_listUpdateInput] - namespace_unset: Boolean - weight: Int - description_unset: Boolean - weight_inc: Int - dummy_fields_unset: Boolean - complete_entities: Boolean - description: String +enum SubscriptionSortByInput { + INCIDENT_ID_ASC + INCIDENT_ID_DESC + TYPE_ASC + USERID_ASC + USERID_DESC + _ID_ASC + _ID_DESC + TYPE_DESC + ENTITYID_ASC + ENTITYID_DESC } -type TaxaField_listItem_fieldComplete_from { - all: [String] - current: [String] - entities: Boolean +type ReportEmbedding { + from_text_hash: String + vector: [Float] } -type ReportTranslation { - text: String - title: String +type TaxaField_list { + complete_from: TaxaField_listComplete_from + default: String + display_type: String + field_number: String + hide_search: Boolean + instant_facet: Boolean + item_fields: TaxaField_listItem_field + long_description: String + long_name: String + mongo_type: String + permitted_values: [String] + placeholder: String + public: Boolean + required: Boolean + short_description: String + short_name: String + weight: Int } -type Checklist { +type Entity { _id: ObjectId - about: String - date_created: DateTime - date_updated: DateTime - entity_id: String - id: String - name: String - owner_id: String - risks: [ChecklistRisk] - tags_goals: [String] - tags_methods: [String] - tags_other: [String] -} - -input IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput { - create: [EntityInsertInput] - link: [String] + created_at: DateTime + date_modified: DateTime + entity_id: String! + name: String! } -input ChecklistRiskUpdateInput { - tags: [String] - likelihood: String - risk_notes: String - risk_status_unset: Boolean - tags_unset: Boolean - title_unset: Boolean - generated: Boolean - risk_notes_unset: Boolean - touched: Boolean - touched_unset: Boolean - precedents: [ChecklistRiskPrecedentUpdateInput] - precedents_unset: Boolean - severity_unset: Boolean - id_unset: Boolean - severity: String - likelihood_unset: Boolean - title: String - generated_unset: Boolean - risk_status: String - id: String +input TaxaField_listItem_fieldInsertInput { + display_type: String + long_description: String + short_name: String + complete_from: TaxaField_listItem_fieldComplete_fromInsertInput + public: Boolean + instant_facet: Boolean + permitted_values: [String] + default: String + placeholder: String + short_description: String + weight: Int + long_name: String + mongo_type: String + field_number: String + required: Boolean } -scalar DateTime - -input ReportEmbeddingQueryInput { - from_text_hash_lte: String - from_text_hash_in: [String] - from_text_hash_nin: [String] - from_text_hash_exists: Boolean - vector: [Float] - from_text_hash_lt: String - from_text_hash_ne: String - vector_exists: Boolean - vector_nin: [Float] - from_text_hash_gte: String - vector_in: [Float] - from_text_hash_gt: String - from_text_hash: String - AND: [ReportEmbeddingQueryInput!] - OR: [ReportEmbeddingQueryInput!] +input SubmissionDeployersRelationInput { + create: [EntityInsertInput] + link: [String] } -type CandidateClassification_similarity { +input CandidateClassification_similarityInsertInput { classification: String similarity: Float } -type InsertManyPayload { - insertedIds: [ObjectId]! +enum EntitySortByInput { + _ID_ASC + _ID_DESC + CREATED_AT_DESC + ENTITY_ID_DESC + NAME_DESC + CREATED_AT_ASC + DATE_MODIFIED_ASC + DATE_MODIFIED_DESC + ENTITY_ID_ASC + NAME_ASC } -input EntityInsertInput { +input NotificationInsertInput { + userId: NotificationUserIdRelationInput _id: ObjectId - entity_id: String - name: String + incident_id: Int + processed: Boolean + sentDate: DateTime + type: String } -input History_incidentNlp_similar_incidentUpdateInput { - incident_id: Int - incident_id_inc: Int - incident_id_unset: Boolean - similarity: Float - similarity_inc: Float - similarity_unset: Boolean +input ReportUserRelationInput { + create: UserInsertInput + link: String } -type Report { +type Submission { _id: ObjectId authors: [String]! - cloudinary_id: String! - date_downloaded: DateTime! - date_modified: DateTime! - date_published: DateTime! - date_submitted: DateTime! + cloudinary_id: String + date_downloaded: String! + date_modified: String! + date_published: String! + date_submitted: String! + deployers: [Entity] description: String + developers: [Entity] + editor_dissimilar_incidents: [Int] editor_notes: String - embedding: ReportEmbedding - epoch_date_downloaded: Int! - epoch_date_modified: Int! - epoch_date_published: Int! - epoch_date_submitted: Int! - flag: Boolean + editor_similar_incidents: [Int] + embedding: SubmissionEmbedding + epoch_date_modified: Int + harmed_parties: [Entity] image_url: String! - inputs_outputs: [String] - is_incident_report: Boolean + incident_date: String + incident_editors: [User] + incident_ids: [Int] + incident_title: String language: String! - plain_text: String! - report_number: Int! + nlp_similar_incidents: [SubmissionNlp_similar_incident] + plain_text: String + quiet: Boolean source_domain: String! + status: String submitters: [String]! tags: [String]! text: String! title: String! - translations(input: String): ReportTranslation url: String! user: User } -type History_reportEmbedding { - from_text_hash: String - vector: [Float] -} - -input TaxaField_listComplete_fromInsertInput { - all: [String] - current: [String] +input SubmissionIncident_editorsRelationInput { + create: [UserInsertInput] + link: [String] } -input History_incidentUpdateInput { - editor_dissimilar_incidents: [Int] - date: String - modifiedBy_unset: Boolean - date_unset: Boolean - flagged_dissimilar_incidents: [Int] - description: String - AllegedDeployerOfAISystem: [String] - editors_unset: Boolean - title_unset: Boolean - reports_unset: Boolean +input ChecklistRiskPrecedentUpdateInput { incident_id_inc: Int - nlp_similar_incidents: [History_incidentNlp_similar_incidentUpdateInput] - editor_notes_unset: Boolean - editor_dissimilar_incidents_unset: Boolean - tsne_unset: Boolean - AllegedDeveloperOfAISystem: [String] - incident_id: Int - AllegedDeployerOfAISystem_unset: Boolean - nlp_similar_incidents_unset: Boolean - editors: [String] - editor_notes: String - embedding: History_incidentEmbeddingUpdateInput - flagged_dissimilar_incidents_unset: Boolean - tsne: History_incidentTsneUpdateInput - epoch_date_modified_unset: Boolean - AllegedDeveloperOfAISystem_unset: Boolean - _id_unset: Boolean description_unset: Boolean + incident_id: Int incident_id_unset: Boolean + description: String + tags: [String] + tags_unset: Boolean title: String - modifiedBy: String - editor_similar_incidents_unset: Boolean - epoch_date_modified: Int - embedding_unset: Boolean + title_unset: Boolean +} + +input IncidentInsertInput { + editor_notes: String + title: String! + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput _id: ObjectId - AllegedHarmedOrNearlyHarmedParties: [String] + nlp_similar_incidents: [IncidentNlp_similar_incidentInsertInput] + incident_id: Int! + flagged_dissimilar_incidents: [Int] + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput + epoch_date_modified: Int + reports: IncidentReportsRelationInput! + tsne: IncidentTsneInsertInput editor_similar_incidents: [Int] - reports: [Int] - epoch_date_modified_inc: Int - AllegedHarmedOrNearlyHarmedParties_unset: Boolean + editors: IncidentEditorsRelationInput! + description: String + embedding: IncidentEmbeddingInsertInput + date: String! + editor_dissimilar_incidents: [Int] } -input History_incidentNlp_similar_incidentInsertInput { - incident_id: Int - similarity: Float +input SubmissionUserRelationInput { + create: UserInsertInput + link: String } -input SubmissionQueryInput { - _id_gte: ObjectId - description_nin: [String] - cloudinary_id_gt: String - date_downloaded_lte: String - source_domain_lt: String - title_gt: String - incident_title_lt: String - cloudinary_id_exists: Boolean - cloudinary_id: String - editor_dissimilar_incidents: [Int] - plain_text_gte: String - date_downloaded_in: [String] - status_in: [String] - incident_ids_in: [Int] - url_in: [String] - language_gt: String - description_gte: String - user: UserQueryInput - incident_date_ne: String - _id_exists: Boolean - _id_nin: [ObjectId] - image_url_lt: String - authors_nin: [String] - developers_nin: [EntityQueryInput] - harmed_parties_in: [EntityQueryInput] - image_url_gte: String - plain_text_gt: String - incident_editors: [UserQueryInput] - incident_title_nin: [String] - image_url_ne: String - incident_ids_exists: Boolean - title: String - tags_in: [String] - user_exists: Boolean - nlp_similar_incidents_exists: Boolean - url_ne: String - title_exists: Boolean - date_modified_ne: String - incident_date_gte: String - nlp_similar_incidents_nin: [SubmissionNlp_similar_incidentQueryInput] - url_lt: String - title_gte: String - description: String - date_published_nin: [String] - date_modified_exists: Boolean - _id: ObjectId - incident_title_in: [String] - _id_gt: ObjectId - editor_similar_incidents_exists: Boolean - date_downloaded: String - incident_ids_nin: [Int] - date_submitted_in: [String] - cloudinary_id_gte: String - embedding: SubmissionEmbeddingQueryInput - incident_title_ne: String - date_submitted_lte: String - description_exists: Boolean - editor_notes_gte: String - date_published_lt: String - editor_notes_gt: String - incident_date_lt: String - cloudinary_id_lt: String - url: String - incident_editors_exists: Boolean - developers: [EntityQueryInput] - plain_text_exists: Boolean - nlp_similar_incidents: [SubmissionNlp_similar_incidentQueryInput] - plain_text_in: [String] - harmed_parties_exists: Boolean - date_submitted_nin: [String] - submitters_exists: Boolean - harmed_parties_nin: [EntityQueryInput] - submitters_nin: [String] - date_published_exists: Boolean - developers_in: [EntityQueryInput] - date_downloaded_nin: [String] - tags_exists: Boolean - cloudinary_id_nin: [String] - text_lt: String - date_modified_gte: String - language_lte: String - language_exists: Boolean - image_url_gt: String - editor_dissimilar_incidents_in: [Int] - title_lte: String - editor_notes_in: [String] - url_gt: String - description_in: [String] - date_downloaded_gt: String - epoch_date_modified_gt: Int - date_modified_lte: String - AND: [SubmissionQueryInput!] - source_domain_gte: String - status_gte: String - status_nin: [String] - epoch_date_modified_ne: Int - text: String - editor_notes_lt: String - developers_exists: Boolean - incident_title_lte: String - epoch_date_modified_exists: Boolean - plain_text_lte: String - editor_notes_nin: [String] - date_modified_lt: String - status_lt: String - title_in: [String] - source_domain_exists: Boolean - deployers: [EntityQueryInput] - editor_similar_incidents_in: [Int] - editor_dissimilar_incidents_nin: [Int] - OR: [SubmissionQueryInput!] - date_published_in: [String] - text_gte: String - harmed_parties: [EntityQueryInput] - incident_title_gte: String - description_lte: String - incident_title_exists: Boolean +input SubscriptionEntityIdRelationInput { + create: EntityInsertInput + link: String +} + +input IncidentEmbeddingQueryInput { + from_reports_exists: Boolean + from_reports_in: [Int] + vector: [Float] + vector_exists: Boolean + OR: [IncidentEmbeddingQueryInput!] + from_reports_nin: [Int] + from_reports: [Int] + AND: [IncidentEmbeddingQueryInput!] + vector_nin: [Float] + vector_in: [Float] +} + +input CandidateQueryInput { + _id: ObjectId + similarity_exists: Boolean + _id_exists: Boolean + epoch_date_published_gte: Int + language_nin: [String] + source_domain_gte: String + image_url_lte: String + date_downloaded_in: [String] + image_url_gte: String + classification_similarity_exists: Boolean + text_in: [String] + date_downloaded: String plain_text: String - deployers_nin: [EntityQueryInput] - tags_nin: [String] - text_exists: Boolean - source_domain_ne: String - date_modified_nin: [String] - epoch_date_modified_lt: Int - date_modified: String - embedding_exists: Boolean - cloudinary_id_ne: String - language_lt: String - date_submitted_lt: String - date_downloaded_lt: String - deployers_exists: Boolean + plain_text_gt: String + epoch_date_published_exists: Boolean + epoch_date_downloaded_gte: Int + matching_entities_exists: Boolean + title_lte: String + plain_text_lte: String + plain_text_in: [String] + match: Boolean + date_published_gt: String + epoch_date_published_in: [Int] + date_published_exists: Boolean + epoch_date_downloaded_nin: [Int] image_url_exists: Boolean - image_url: String - cloudinary_id_lte: String - source_domain_nin: [String] - text_ne: String - url_exists: Boolean - language_nin: [String] - date_downloaded_gte: String - epoch_date_modified_nin: [Int] - epoch_date_modified_gte: Int - epoch_date_modified: Int - incident_editors_nin: [UserQueryInput] - authors_in: [String] - status_lte: String + source_domain_ne: String + title: String + title_exists: Boolean + epoch_date_downloaded_exists: Boolean + matching_entities: [String] + _id_gt: ObjectId + matching_entities_in: [String] + title_gte: String + url_in: [String] + matching_entities_nin: [String] + title_nin: [String] + epoch_date_published_gt: Int date_published: String - date_published_gt: String - editor_notes_exists: Boolean - text_lte: String - source_domain_gt: String - date_downloaded_exists: Boolean - plain_text_ne: String - plain_text_lt: String - description_ne: String - date_modified_in: [String] - epoch_date_modified_lte: Int - status_exists: Boolean - date_published_lte: String date_published_gte: String + authors_nin: [String] + match_exists: Boolean + source_domain_gt: String title_lt: String - submitters: [String] - date_submitted_ne: String - date_submitted_gte: String - language: String - date_submitted_gt: String - editor_dissimilar_incidents_exists: Boolean - title_ne: String - incident_title_gt: String - text_gt: String - _id_lte: ObjectId - source_domain_in: [String] - authors_exists: Boolean + _id_nin: [ObjectId] + date_downloaded_gt: String + source_domain: String + dismissed_exists: Boolean + classification_similarity_in: [CandidateClassification_similarityQueryInput] + epoch_date_downloaded_ne: Int + text_exists: Boolean + match_ne: Boolean + classification_similarity: [CandidateClassification_similarityQueryInput] + matching_keywords_exists: Boolean + similarity_in: [Float] + similarity_lt: Float + authors_in: [String] + matching_harm_keywords_in: [String] + url_nin: [String] language_in: [String] - status_gt: String + matching_keywords_nin: [String] + similarity_lte: Float + matching_harm_keywords: [String] + language_gt: String + authors_exists: Boolean + source_domain_exists: Boolean language_ne: String - incident_date_gt: String - incident_date_nin: [String] - editor_notes_lte: String - submitters_in: [String] + image_url_in: [String] + AND: [CandidateQueryInput!] + url: String + text_lte: String + date_published_lte: String + epoch_date_downloaded_gt: Int + embedding: CandidateEmbeddingQueryInput + similarity_gte: Float + url_lte: String + title_ne: String + url_lt: String + embedding_exists: Boolean + similarity: Float + url_exists: Boolean + text_ne: String + _id_lt: ObjectId + title_gt: String + date_published_nin: [String] + plain_text_ne: String + source_domain_lt: String + date_published_in: [String] + image_url_gt: String + epoch_date_published_nin: [Int] + _id_in: [ObjectId] + matching_keywords: [String] + matching_harm_keywords_exists: Boolean + epoch_date_published_ne: Int date_downloaded_ne: String + epoch_date_published_lt: Int + language_lt: String + source_domain_in: [String] + source_domain_lte: String + epoch_date_downloaded_in: [Int] + _id_gte: ObjectId + similarity_gt: Float + text_gte: String + matching_harm_keywords_nin: [String] + image_url_ne: String + text_lt: String + title_in: [String] + epoch_date_published_lte: Int + dismissed: Boolean + plain_text_exists: Boolean + source_domain_nin: [String] + plain_text_lt: String + language: String + date_downloaded_exists: Boolean + language_exists: Boolean + epoch_date_published: Int url_gte: String - nlp_similar_incidents_in: [SubmissionNlp_similar_incidentQueryInput] - description_gt: String - editor_notes: String - tags: [String] - incident_editors_in: [UserQueryInput] - date_submitted_exists: Boolean - editor_similar_incidents: [Int] - cloudinary_id_in: [String] - plain_text_nin: [String] - url_lte: String - incident_date_in: [String] - incident_date: String - authors: [String] - image_url_in: [String] - status_ne: String - epoch_date_modified_in: [Int] - status: String - date_modified_gt: String - text_in: [String] - incident_date_lte: String - source_domain: String - url_nin: [String] - title_nin: [String] - text_nin: [String] - editor_similar_incidents_nin: [Int] - language_gte: String + plain_text_gte: String + date_published_lt: String + _id_ne: ObjectId image_url_nin: [String] - _id_lt: ObjectId - incident_title: String - description_lt: String - incident_date_exists: Boolean - incident_ids: [Int] + epoch_date_downloaded_lt: Int + date_downloaded_gte: String + epoch_date_downloaded_lte: Int + similarity_nin: [Float] + language_gte: String + image_url: String + date_published_ne: String + date_downloaded_lte: String + text_nin: [String] + classification_similarity_nin: [CandidateClassification_similarityQueryInput] + OR: [CandidateQueryInput!] + text_gt: String + language_lte: String + date_downloaded_lt: String + epoch_date_downloaded: Int + authors: [String] + url_gt: String + dismissed_ne: Boolean + plain_text_nin: [String] + date_downloaded_nin: [String] + text: String + image_url_lt: String + similarity_ne: Float + _id_lte: ObjectId + url_ne: String + matching_keywords_in: [String] +} + +input TaxaField_listItem_fieldComplete_fromUpdateInput { + all: [String] + all_unset: Boolean + current: [String] + current_unset: Boolean + entities: Boolean + entities_unset: Boolean +} + +input History_incidentNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +input SubmissionDevelopersRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input NotificationQueryInput { + type_lt: String + type_in: [String] + processed: Boolean + incident_id_nin: [Int] + sentDate_exists: Boolean + type_lte: String + incident_id_lt: Int + type_gt: String + incident_id: Int + userId_exists: Boolean + type_exists: Boolean _id_in: [ObjectId] - image_url_lte: String - date_submitted: String - deployers_in: [EntityQueryInput] - source_domain_lte: String + sentDate_gte: DateTime + sentDate_nin: [DateTime] + AND: [NotificationQueryInput!] + _id_gte: ObjectId + _id_exists: Boolean + sentDate_gt: DateTime + type_ne: String + incident_id_in: [Int] + processed_exists: Boolean + _id_gt: ObjectId _id_ne: ObjectId - date_published_ne: String - editor_notes_ne: String + processed_ne: Boolean + sentDate_ne: DateTime + _id_lte: ObjectId + incident_id_lte: Int + _id_lt: ObjectId + incident_id_gt: Int + _id_nin: [ObjectId] + incident_id_ne: Int + OR: [NotificationQueryInput!] + _id: ObjectId + incident_id_gte: Int + sentDate_lt: DateTime + incident_id_exists: Boolean + sentDate_in: [DateTime] + type_nin: [String] + type: String + sentDate_lte: DateTime + sentDate: DateTime + userId: UserQueryInput + type_gte: String } -input ChecklistRiskPrecedentInsertInput { - incident_id: Int - tags: [String] - title: String - description: String +input PromoteSubmissionToReportInput { + incident_ids: [Int] + is_incident_report: Boolean + submission_id: ObjectId } -input TaxaDummy_fieldInsertInput { - field_number: String - short_name: String +input IncidentEmbeddingUpdateInput { + from_reports: [Int] + from_reports_unset: Boolean + vector: [Float] + vector_unset: Boolean } -input TaxaField_listItem_fieldInsertInput { - long_name: String - permitted_values: [String] - long_description: String - default: String - short_name: String - required: Boolean - weight: Int - placeholder: String - display_type: String - mongo_type: String - public: Boolean - field_number: String - instant_facet: Boolean - short_description: String - complete_from: TaxaField_listItem_fieldComplete_fromInsertInput +type History_incidentNlp_similar_incident { + incident_id: Int + similarity: Float } -type History_incidentTsne { - x: Float - y: Float +type Classification { + _id: ObjectId + attributes: [ClassificationAttribute] + incidents: [Incident]! + namespace: String! + notes: String + publish: Boolean + reports: [Report]! } -type ChecklistRisk { - generated: Boolean - id: String - likelihood: String - precedents: [ChecklistRiskPrecedent] - risk_notes: String - risk_status: String - severity: String - tags: [String] - title: String - touched: Boolean +input SubmissionInsertInput { + authors: [String]! + developers: SubmissionDevelopersRelationInput + embedding: SubmissionEmbeddingInsertInput + quiet: Boolean + date_submitted: String! + url: String! + incident_ids: [Int] + nlp_similar_incidents: [SubmissionNlp_similar_incidentInsertInput] + user: SubmissionUserRelationInput + status: String + submitters: [String]! + date_published: String! + harmed_parties: SubmissionHarmed_partiesRelationInput + description: String + title: String! + cloudinary_id: String + text: String! + editor_notes: String + incident_editors: SubmissionIncident_editorsRelationInput + language: String! + source_domain: String! + incident_date: String + editor_dissimilar_incidents: [Int] + incident_title: String + plain_text: String + image_url: String! + editor_similar_incidents: [Int] + deployers: SubmissionDeployersRelationInput + _id: ObjectId + date_modified: String! + epoch_date_modified: Int + tags: [String]! + date_downloaded: String! } -type SubmissionEmbedding { - from_text_hash: String - vector: [Float] +input ClassificationAttributeUpdateInput { + short_name_unset: Boolean + value_json: String + value_json_unset: Boolean + short_name: String } -type RisksPayloadPrecedentEmbedding { - from_reports: [Int] +input History_reportEmbeddingQueryInput { + vector_in: [Float] + from_text_hash_gt: String + from_text_hash_lte: String + vector_exists: Boolean + from_text_hash_ne: String + from_text_hash_gte: String + from_text_hash_in: [String] + vector_nin: [Float] + from_text_hash_nin: [String] + AND: [History_reportEmbeddingQueryInput!] + from_text_hash: String + from_text_hash_lt: String + OR: [History_reportEmbeddingQueryInput!] vector: [Float] + from_text_hash_exists: Boolean } -type UpdateManyPayload { - matchedCount: Int! - modifiedCount: Int! +input History_incidentNlp_similar_incidentUpdateInput { + incident_id_inc: Int + incident_id_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean + incident_id: Int } -input History_incidentEmbeddingInsertInput { - from_reports: [Int] - vector: [Float] +input NotificationUpdateInput { + sentDate_unset: Boolean + userId: NotificationUserIdRelationInput + type_unset: Boolean + incident_id: Int + processed: Boolean + incident_id_inc: Int + processed_unset: Boolean + incident_id_unset: Boolean + userId_unset: Boolean + _id_unset: Boolean + type: String + _id: ObjectId + sentDate: DateTime } -input SubmissionUpdateInput { - nlp_similar_incidents_unset: Boolean - incident_editors: SubmissionIncident_editorsRelationInput - deployers: SubmissionDeployersRelationInput - incident_date: String +input SubscriptionInsertInput { + userId: SubscriptionUserIdRelationInput! _id: ObjectId - cloudinary_id: String - date_submitted_unset: Boolean - authors_unset: Boolean - date_downloaded_unset: Boolean - epoch_date_modified: Int - description_unset: Boolean - incident_ids_unset: Boolean - date_modified_unset: Boolean - developers: SubmissionDevelopersRelationInput - incident_editors_unset: Boolean - submitters_unset: Boolean - language: String - developers_unset: Boolean - url_unset: Boolean - title_unset: Boolean - image_url_unset: Boolean - user_unset: Boolean - language_unset: Boolean - editor_notes_unset: Boolean - image_url: String - date_modified: String - incident_ids: [Int] - editor_dissimilar_incidents: [Int] - harmed_parties_unset: Boolean - tags: [String] - plain_text_unset: Boolean - date_published: String - incident_date_unset: Boolean - date_published_unset: Boolean - editor_similar_incidents_unset: Boolean - source_domain_unset: Boolean - text: String - embedding_unset: Boolean - date_submitted: String - nlp_similar_incidents: [SubmissionNlp_similar_incidentUpdateInput] - incident_title_unset: Boolean - source_domain: String - status: String - editor_dissimilar_incidents_unset: Boolean - editor_similar_incidents: [Int] - _id_unset: Boolean - cloudinary_id_unset: Boolean - incident_title: String - submitters: [String] - deployers_unset: Boolean - embedding: SubmissionEmbeddingUpdateInput - user: SubmissionUserRelationInput - editor_notes: String - epoch_date_modified_inc: Int - title: String - date_downloaded: String - authors: [String] - epoch_date_modified_unset: Boolean - tags_unset: Boolean - text_unset: Boolean - description: String - url: String - harmed_parties: SubmissionHarmed_partiesRelationInput - plain_text: String - status_unset: Boolean -}`; + entityId: SubscriptionEntityIdRelationInput + incident_id: SubscriptionIncident_idRelationInput + type: String! +} +`;