From 8627c3b34be896330ac331cb85bc5e5e4bce90b0 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Tue, 23 Jul 2024 11:21:31 -0300 Subject: [PATCH 01/33] Add implicated_systems to schema --- .../mongodb-atlas/aiidprod/incidents/relationships.json | 6 ++++++ .../mongodb-atlas/aiidprod/incidents/schema.json | 6 ++++++ .../mongodb-atlas/aiidprod/submissions/relationships.json | 6 ++++++ .../mongodb-atlas/aiidprod/submissions/schema.json | 6 ++++++ .../mongodb-atlas/history/incidents/schema.json | 6 ++++++ 5 files changed, 30 insertions(+) diff --git a/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/relationships.json b/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/relationships.json index b59872908c..6a54777c82 100644 --- a/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/relationships.json +++ b/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/relationships.json @@ -17,6 +17,12 @@ "foreign_key": "entity_id", "is_list": true }, + "implicated_systems": { + "ref": "#/relationship/mongodb-atlas/aiidprod/entities", + "source_key": "implicated_systems", + "foreign_key": "entity_id", + "is_list": true + }, "editors": { "ref": "#/relationship/mongodb-atlas/customData/users", "source_key": "editors", diff --git a/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/schema.json b/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/schema.json index 76a721a9d7..baf396d8b5 100644 --- a/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/schema.json +++ b/site/realm/data_sources/mongodb-atlas/aiidprod/incidents/schema.json @@ -18,6 +18,12 @@ "bsonType": "string" } }, + "implicated_systems": { + "bsonType": "array", + "items": { + "bsonType": "string" + } + }, "_id": { "bsonType": "objectId" }, diff --git a/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/relationships.json b/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/relationships.json index 690608fc2c..d48544c0ed 100644 --- a/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/relationships.json +++ b/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/relationships.json @@ -28,5 +28,11 @@ "source_key": "user", "foreign_key": "userId", "is_list": false + }, + "implicated_systems": { + "ref": "#/relationship/mongodb-atlas/aiidprod/entities", + "source_key": "implicated_systems", + "foreign_key": "entity_id", + "is_list": true } } diff --git a/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/schema.json b/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/schema.json index b3866addfd..586e5930ba 100644 --- a/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/schema.json +++ b/site/realm/data_sources/mongodb-atlas/aiidprod/submissions/schema.json @@ -150,6 +150,12 @@ }, "quiet": { "bsonType": "bool" + }, + "implicated_systems": { + "bsonType": "array", + "items": { + "bsonType": "string" + } } }, "required": [ diff --git a/site/realm/data_sources/mongodb-atlas/history/incidents/schema.json b/site/realm/data_sources/mongodb-atlas/history/incidents/schema.json index 3dbd98f707..65d1a15bbb 100644 --- a/site/realm/data_sources/mongodb-atlas/history/incidents/schema.json +++ b/site/realm/data_sources/mongodb-atlas/history/incidents/schema.json @@ -18,6 +18,12 @@ "bsonType": "string" } }, + "implicated_systems": { + "bsonType": "array", + "items": { + "bsonType": "string" + } + }, "_id": { "bsonType": "objectId" }, From 668d177d143ed888b825dc075525191cb87e4111 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Tue, 23 Jul 2024 15:36:33 -0300 Subject: [PATCH 02/33] Add implicated_systems to submission edit --- .../components/submissions/SubmissionEdit.js | 4 ++++ .../components/submissions/SubmissionForm.js | 19 ++++++++++++++++++- site/gatsby-site/src/graphql/submissions.js | 4 ++++ 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/site/gatsby-site/src/components/submissions/SubmissionEdit.js b/site/gatsby-site/src/components/submissions/SubmissionEdit.js index 6efc5841ad..d9e19152b9 100644 --- a/site/gatsby-site/src/components/submissions/SubmissionEdit.js +++ b/site/gatsby-site/src/components/submissions/SubmissionEdit.js @@ -175,6 +175,10 @@ const SubmissionEdit = ({ id }) => { submission.harmed_parties === null ? [] : submission.harmed_parties.map((item) => item.name || item), + implicated_systems: + submission.implicated_systems === null + ? [] + : submission.implicated_systems.map((item) => item.name || item), }} > { cloudinary_id, }; - for (const key of ['authors', 'submitters', 'developers', 'deployers', 'harmed_parties']) { + for (const key of [ + 'authors', + 'submitters', + 'developers', + 'deployers', + 'harmed_parties', + 'implicated_systems', + ]) { if (newValues[key] && !Array.isArray(newValues[key])) { newValues[key] = [newValues[key]]; } @@ -423,6 +430,16 @@ const SubmissionForm = ({ onChange = null }) => { options={entityNames} {...TextInputGroupProps} /> + +
)} diff --git a/site/gatsby-site/src/graphql/submissions.js b/site/gatsby-site/src/graphql/submissions.js index 249384d4e9..e73bbacafe 100644 --- a/site/gatsby-site/src/graphql/submissions.js +++ b/site/gatsby-site/src/graphql/submissions.js @@ -60,6 +60,10 @@ export const FIND_SUBMISSIONS = gql` userId } quiet + implicated_systems { + entity_id + name + } } } `; From e0826f8d6f96177075d58c6ec0770b23d8e2e840 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Wed, 24 Jul 2024 14:40:20 -0300 Subject: [PATCH 03/33] Add implicated_systems to submission schema --- site/gatsby-site/server/generated/graphql.ts | 292 + site/gatsby-site/server/remoteTypeDefs.ts | 7588 +++++++++-------- .../components/submissions/SubmissionEdit.js | 9 +- site/gatsby-site/src/graphql/schema.js | 10 + site/gatsby-site/src/graphql/submissions.js | 4 + 5 files changed, 4125 insertions(+), 3778 deletions(-) diff --git a/site/gatsby-site/server/generated/graphql.ts b/site/gatsby-site/server/generated/graphql.ts index 235c1d9e1f..d16c99116a 100644 --- a/site/gatsby-site/server/generated/graphql.ts +++ b/site/gatsby-site/server/generated/graphql.ts @@ -738,9 +738,11 @@ export type Classification = { __typename?: 'Classification'; _id?: Maybe; attributes?: Maybe>>; + incidents: Array>; namespace: Scalars['String']['output']; notes?: Maybe; publish?: Maybe; + reports: Array>; }; export type ClassificationAttribute = { @@ -1089,6 +1091,7 @@ export type History_Incident = { embedding?: Maybe; epoch_date_modified?: Maybe; flagged_dissimilar_incidents?: Maybe>>; + implicated_systems?: Maybe>>; incident_id: Scalars['Int']['output']; modifiedBy?: Maybe; nlp_similar_incidents?: Maybe>>; @@ -1142,6 +1145,7 @@ export type History_IncidentInsertInput = { embedding?: InputMaybe; epoch_date_modified?: InputMaybe; flagged_dissimilar_incidents?: InputMaybe>>; + implicated_systems?: InputMaybe>>; incident_id: Scalars['Int']['input']; modifiedBy?: InputMaybe; nlp_similar_incidents?: InputMaybe>>; @@ -1271,6 +1275,10 @@ export type History_IncidentQueryInput = { flagged_dissimilar_incidents_exists?: InputMaybe; flagged_dissimilar_incidents_in?: InputMaybe>>; flagged_dissimilar_incidents_nin?: InputMaybe>>; + implicated_systems?: InputMaybe>>; + implicated_systems_exists?: InputMaybe; + implicated_systems_in?: InputMaybe>>; + implicated_systems_nin?: InputMaybe>>; incident_id?: InputMaybe; incident_id_exists?: InputMaybe; incident_id_gt?: InputMaybe; @@ -1400,6 +1408,8 @@ export type History_IncidentUpdateInput = { epoch_date_modified_unset?: InputMaybe; flagged_dissimilar_incidents?: InputMaybe>>; flagged_dissimilar_incidents_unset?: InputMaybe; + implicated_systems?: InputMaybe>>; + implicated_systems_unset?: InputMaybe; incident_id?: InputMaybe; incident_id_inc?: InputMaybe; incident_id_unset?: InputMaybe; @@ -1863,6 +1873,29 @@ export type History_ReportUpdateInput = { user_unset?: InputMaybe; }; +export type Incident = { + __typename?: 'Incident'; + AllegedDeployerOfAISystem?: Maybe>>; + AllegedDeveloperOfAISystem?: Maybe>>; + AllegedHarmedOrNearlyHarmedParties?: Maybe>>; + _id?: Maybe; + date: Scalars['String']['output']; + description?: Maybe; + editor_dissimilar_incidents?: Maybe>>; + editor_notes?: Maybe; + editor_similar_incidents?: Maybe>>; + editors: Array>; + embedding?: Maybe; + epoch_date_modified?: Maybe; + flagged_dissimilar_incidents?: Maybe>>; + implicated_systems?: Maybe>>; + incident_id: Scalars['Int']['output']; + nlp_similar_incidents?: Maybe>>; + reports: Array>; + title: Scalars['String']['output']; + tsne?: Maybe; +}; + export type IncidentAllegedDeployerOfAiSystemRelationInput = { create?: InputMaybe>>; link?: InputMaybe>>; @@ -1914,6 +1947,11 @@ export type IncidentEmbeddingUpdateInput = { vector_unset?: InputMaybe; }; +export type IncidentImplicated_SystemsRelationInput = { + create?: InputMaybe>>; + link?: InputMaybe>>; +}; + export type IncidentInsertInput = { AllegedDeployerOfAISystem?: InputMaybe; AllegedDeveloperOfAISystem?: InputMaybe; @@ -1928,6 +1966,7 @@ export type IncidentInsertInput = { embedding?: InputMaybe; epoch_date_modified?: InputMaybe; flagged_dissimilar_incidents?: InputMaybe>>; + implicated_systems?: InputMaybe; incident_id: Scalars['Int']['input']; nlp_similar_incidents?: InputMaybe>>; reports: IncidentReportsRelationInput; @@ -2056,6 +2095,10 @@ export type IncidentQueryInput = { flagged_dissimilar_incidents_exists?: InputMaybe; flagged_dissimilar_incidents_in?: InputMaybe>>; flagged_dissimilar_incidents_nin?: InputMaybe>>; + implicated_systems?: InputMaybe>>; + implicated_systems_exists?: InputMaybe; + implicated_systems_in?: InputMaybe>>; + implicated_systems_nin?: InputMaybe>>; incident_id?: InputMaybe; incident_id_exists?: InputMaybe; incident_id_gt?: InputMaybe; @@ -2179,6 +2222,8 @@ export type IncidentUpdateInput = { epoch_date_modified_unset?: InputMaybe; flagged_dissimilar_incidents?: InputMaybe>>; flagged_dissimilar_incidents_unset?: InputMaybe; + implicated_systems?: InputMaybe; + implicated_systems_unset?: InputMaybe; incident_id?: InputMaybe; incident_id_inc?: InputMaybe; incident_id_unset?: InputMaybe; @@ -2292,8 +2337,10 @@ export type Mutation = { deleteOneEntity?: Maybe; deleteOneHistory_incident?: Maybe; deleteOneHistory_report?: Maybe; + deleteOneIncident?: Maybe; deleteOneNotification?: Maybe; deleteOneQuickadd?: Maybe; + deleteOneReport?: Maybe; deleteOneSubmission?: Maybe; deleteOneSubscription?: Maybe; deleteOneTaxa?: Maybe; @@ -2321,12 +2368,15 @@ export type Mutation = { insertOneEntity?: Maybe; insertOneHistory_incident?: Maybe; insertOneHistory_report?: Maybe; + insertOneIncident?: Maybe; insertOneNotification?: Maybe; insertOneQuickadd?: Maybe; + insertOneReport?: Maybe; insertOneSubmission?: Maybe; insertOneSubscription?: Maybe; insertOneTaxa?: Maybe; insertOneUser?: Maybe; + linkReportsToIncidents?: Maybe>>; logIncidentHistory?: Maybe; logReportHistory?: Maybe; processNotifications?: Maybe; @@ -2338,7 +2388,9 @@ export type Mutation = { replaceOneEntity?: Maybe; replaceOneHistory_incident?: Maybe; replaceOneHistory_report?: Maybe; + replaceOneIncident?: Maybe; replaceOneNotification?: Maybe; + replaceOneReport?: Maybe; replaceOneSubmission?: Maybe; replaceOneSubscription?: Maybe; replaceOneTaxa?: Maybe; @@ -2365,8 +2417,11 @@ export type Mutation = { updateOneEntity?: Maybe; updateOneHistory_incident?: Maybe; updateOneHistory_report?: Maybe; + updateOneIncident?: Maybe; updateOneNotification?: Maybe; updateOneQuickadd?: Maybe; + updateOneReport?: Maybe; + updateOneReportTranslation?: Maybe; updateOneSubmission?: Maybe; updateOneSubscription?: Maybe; updateOneTaxa?: Maybe; @@ -2378,7 +2433,9 @@ export type Mutation = { upsertOneEntity?: Maybe; upsertOneHistory_incident?: Maybe; upsertOneHistory_report?: Maybe; + upsertOneIncident?: Maybe; upsertOneNotification?: Maybe; + upsertOneReport?: Maybe; upsertOneSubmission?: Maybe; upsertOneSubscription?: Maybe; upsertOneTaxa?: Maybe; @@ -2508,6 +2565,11 @@ export type MutationDeleteOneHistory_ReportArgs = { }; +export type MutationDeleteOneIncidentArgs = { + query: IncidentQueryInput; +}; + + export type MutationDeleteOneNotificationArgs = { query: NotificationQueryInput; }; @@ -2520,6 +2582,11 @@ export type MutationDeleteOneQuickaddArgs = { }; +export type MutationDeleteOneReportArgs = { + query: ReportQueryInput; +}; + + export type MutationDeleteOneSubmissionArgs = { query: SubmissionQueryInput; }; @@ -2655,6 +2722,11 @@ export type MutationInsertOneHistory_ReportArgs = { }; +export type MutationInsertOneIncidentArgs = { + data: IncidentInsertInput; +}; + + export type MutationInsertOneNotificationArgs = { data: NotificationInsertInput; }; @@ -2665,6 +2737,11 @@ export type MutationInsertOneQuickaddArgs = { }; +export type MutationInsertOneReportArgs = { + data: ReportInsertInput; +}; + + export type MutationInsertOneSubmissionArgs = { data: SubmissionInsertInput; }; @@ -2685,6 +2762,11 @@ export type MutationInsertOneUserArgs = { }; +export type MutationLinkReportsToIncidentsArgs = { + input?: InputMaybe; +}; + + export type MutationLogIncidentHistoryArgs = { input?: InputMaybe; }; @@ -2742,12 +2824,24 @@ export type MutationReplaceOneHistory_ReportArgs = { }; +export type MutationReplaceOneIncidentArgs = { + data: IncidentInsertInput; + query?: InputMaybe; +}; + + export type MutationReplaceOneNotificationArgs = { data: NotificationInsertInput; query?: InputMaybe; }; +export type MutationReplaceOneReportArgs = { + data: ReportInsertInput; + query?: InputMaybe; +}; + + export type MutationReplaceOneSubmissionArgs = { data: SubmissionInsertInput; query?: InputMaybe; @@ -2904,6 +2998,12 @@ export type MutationUpdateOneHistory_ReportArgs = { }; +export type MutationUpdateOneIncidentArgs = { + query?: InputMaybe; + set: IncidentUpdateInput; +}; + + export type MutationUpdateOneNotificationArgs = { query?: InputMaybe; set: NotificationUpdateInput; @@ -2916,6 +3016,17 @@ export type MutationUpdateOneQuickaddArgs = { }; +export type MutationUpdateOneReportArgs = { + query?: InputMaybe; + set: ReportUpdateInput; +}; + + +export type MutationUpdateOneReportTranslationArgs = { + input?: InputMaybe; +}; + + export type MutationUpdateOneSubmissionArgs = { query?: InputMaybe; set: SubmissionUpdateInput; @@ -2982,12 +3093,24 @@ export type MutationUpsertOneHistory_ReportArgs = { }; +export type MutationUpsertOneIncidentArgs = { + data: IncidentInsertInput; + query?: InputMaybe; +}; + + export type MutationUpsertOneNotificationArgs = { data: NotificationInsertInput; query?: InputMaybe; }; +export type MutationUpsertOneReportArgs = { + data: ReportInsertInput; + query?: InputMaybe; +}; + + export type MutationUpsertOneSubmissionArgs = { data: SubmissionInsertInput; query?: InputMaybe; @@ -3211,10 +3334,14 @@ export type Query = { history_incidents: Array>; history_report?: Maybe; history_reports: Array>; + incident?: Maybe; + incidents: Array>; notification?: Maybe; notifications: Array>; quickadd?: Maybe; quickadds?: Maybe>>; + report?: Maybe; + reports: Array>; risks?: Maybe>>; submission?: Maybe; submissions: Array>; @@ -3311,6 +3438,18 @@ export type QueryHistory_ReportsArgs = { }; +export type QueryIncidentArgs = { + query?: InputMaybe; +}; + + +export type QueryIncidentsArgs = { + limit?: InputMaybe; + query?: InputMaybe; + sortBy?: InputMaybe; +}; + + export type QueryNotificationArgs = { query?: InputMaybe; }; @@ -3337,6 +3476,18 @@ export type QueryQuickaddsArgs = { }; +export type QueryReportArgs = { + query?: InputMaybe; +}; + + +export type QueryReportsArgs = { + limit?: InputMaybe; + query?: InputMaybe; + sortBy?: InputMaybe; +}; + + export type QueryRisksArgs = { input?: InputMaybe; }; @@ -3485,6 +3636,45 @@ export type QuickaddUpdateType = { setOnInsert?: InputMaybe; }; +export type Report = { + __typename?: 'Report'; + _id?: Maybe; + authors: Array>; + cloudinary_id: Scalars['String']['output']; + date_downloaded: Scalars['DateTime']['output']; + date_modified: Scalars['DateTime']['output']; + date_published: Scalars['DateTime']['output']; + date_submitted: Scalars['DateTime']['output']; + description?: Maybe; + editor_notes?: Maybe; + embedding?: Maybe; + epoch_date_downloaded: Scalars['Int']['output']; + epoch_date_modified: Scalars['Int']['output']; + epoch_date_published: Scalars['Int']['output']; + epoch_date_submitted: Scalars['Int']['output']; + flag?: Maybe; + image_url: Scalars['String']['output']; + inputs_outputs?: Maybe>>; + is_incident_report?: Maybe; + language: Scalars['String']['output']; + plain_text: Scalars['String']['output']; + quiet?: Maybe; + report_number: Scalars['Int']['output']; + source_domain: Scalars['String']['output']; + submitters: Array>; + tags: Array>; + text: Scalars['String']['output']; + title: Scalars['String']['output']; + translations?: Maybe; + url: Scalars['String']['output']; + user?: Maybe; +}; + + +export type ReportTranslationsArgs = { + input?: InputMaybe; +}; + export type ReportEmbedding = { __typename?: 'ReportEmbedding'; from_text_hash?: Maybe; @@ -4028,6 +4218,7 @@ export type Submission = { epoch_date_modified?: Maybe; harmed_parties?: Maybe>>; image_url: Scalars['String']['output']; + implicated_systems?: Maybe>>; incident_date?: Maybe; incident_editors?: Maybe>>; incident_ids?: Maybe>>; @@ -4097,6 +4288,11 @@ export type SubmissionHarmed_PartiesRelationInput = { link?: InputMaybe>>; }; +export type SubmissionImplicated_SystemsRelationInput = { + create?: InputMaybe>>; + link?: InputMaybe>>; +}; + export type SubmissionIncident_EditorsRelationInput = { create?: InputMaybe>>; link?: InputMaybe>>; @@ -4120,6 +4316,7 @@ export type SubmissionInsertInput = { epoch_date_modified?: InputMaybe; harmed_parties?: InputMaybe; image_url: Scalars['String']['input']; + implicated_systems?: InputMaybe; incident_date?: InputMaybe; incident_editors?: InputMaybe; incident_ids?: InputMaybe>>; @@ -4300,6 +4497,10 @@ export type SubmissionQueryInput = { image_url_lte?: InputMaybe; image_url_ne?: InputMaybe; image_url_nin?: InputMaybe>>; + implicated_systems?: InputMaybe>>; + implicated_systems_exists?: InputMaybe; + implicated_systems_in?: InputMaybe>>; + implicated_systems_nin?: InputMaybe>>; incident_date?: InputMaybe; incident_date_exists?: InputMaybe; incident_date_gt?: InputMaybe; @@ -4487,6 +4688,8 @@ export type SubmissionUpdateInput = { harmed_parties_unset?: InputMaybe; image_url?: InputMaybe; image_url_unset?: InputMaybe; + implicated_systems?: InputMaybe; + implicated_systems_unset?: InputMaybe; incident_date?: InputMaybe; incident_date_unset?: InputMaybe; incident_editors?: InputMaybe; @@ -4530,6 +4733,7 @@ export type Subscription = { __typename?: 'Subscription'; _id?: Maybe; entityId?: Maybe; + incident_id?: Maybe; type: Scalars['String']['output']; userId: User; }; @@ -5470,6 +5674,7 @@ export type ResolversTypes = { History_reportQueryInput: History_ReportQueryInput; History_reportSortByInput: History_ReportSortByInput; History_reportUpdateInput: History_ReportUpdateInput; + Incident: ResolverTypeWrapper; IncidentAllegedDeployerOfAISystemRelationInput: IncidentAllegedDeployerOfAiSystemRelationInput; IncidentAllegedDeveloperOfAISystemRelationInput: IncidentAllegedDeveloperOfAiSystemRelationInput; IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput; @@ -5478,6 +5683,7 @@ export type ResolversTypes = { IncidentEmbeddingInsertInput: IncidentEmbeddingInsertInput; IncidentEmbeddingQueryInput: IncidentEmbeddingQueryInput; IncidentEmbeddingUpdateInput: IncidentEmbeddingUpdateInput; + IncidentImplicated_systemsRelationInput: IncidentImplicated_SystemsRelationInput; IncidentInsertInput: IncidentInsertInput; IncidentNlp_similar_incident: ResolverTypeWrapper; IncidentNlp_similar_incidentInsertInput: IncidentNlp_Similar_IncidentInsertInput; @@ -5524,6 +5730,7 @@ export type ResolversTypes = { QuickaddSortType: QuickaddSortType; QuickaddUpdateInput: QuickaddUpdateInput; QuickaddUpdateType: QuickaddUpdateType; + Report: ResolverTypeWrapper; ReportEmbedding: ResolverTypeWrapper; ReportEmbeddingInsertInput: ReportEmbeddingInsertInput; ReportEmbeddingQueryInput: ReportEmbeddingQueryInput; @@ -5551,6 +5758,7 @@ export type ResolversTypes = { SubmissionEmbeddingQueryInput: SubmissionEmbeddingQueryInput; SubmissionEmbeddingUpdateInput: SubmissionEmbeddingUpdateInput; SubmissionHarmed_partiesRelationInput: SubmissionHarmed_PartiesRelationInput; + SubmissionImplicated_systemsRelationInput: SubmissionImplicated_SystemsRelationInput; SubmissionIncident_editorsRelationInput: SubmissionIncident_EditorsRelationInput; SubmissionInsertInput: SubmissionInsertInput; SubmissionNlp_similar_incident: ResolverTypeWrapper; @@ -5686,6 +5894,7 @@ export type ResolversParentTypes = { History_reportInsertInput: History_ReportInsertInput; History_reportQueryInput: History_ReportQueryInput; History_reportUpdateInput: History_ReportUpdateInput; + Incident: Incident; IncidentAllegedDeployerOfAISystemRelationInput: IncidentAllegedDeployerOfAiSystemRelationInput; IncidentAllegedDeveloperOfAISystemRelationInput: IncidentAllegedDeveloperOfAiSystemRelationInput; IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput; @@ -5694,6 +5903,7 @@ export type ResolversParentTypes = { IncidentEmbeddingInsertInput: IncidentEmbeddingInsertInput; IncidentEmbeddingQueryInput: IncidentEmbeddingQueryInput; IncidentEmbeddingUpdateInput: IncidentEmbeddingUpdateInput; + IncidentImplicated_systemsRelationInput: IncidentImplicated_SystemsRelationInput; IncidentInsertInput: IncidentInsertInput; IncidentNlp_similar_incident: IncidentNlp_Similar_Incident; IncidentNlp_similar_incidentInsertInput: IncidentNlp_Similar_IncidentInsertInput; @@ -5736,6 +5946,7 @@ export type ResolversParentTypes = { QuickaddSortType: QuickaddSortType; QuickaddUpdateInput: QuickaddUpdateInput; QuickaddUpdateType: QuickaddUpdateType; + Report: Report; ReportEmbedding: ReportEmbedding; ReportEmbeddingInsertInput: ReportEmbeddingInsertInput; ReportEmbeddingQueryInput: ReportEmbeddingQueryInput; @@ -5761,6 +5972,7 @@ export type ResolversParentTypes = { SubmissionEmbeddingQueryInput: SubmissionEmbeddingQueryInput; SubmissionEmbeddingUpdateInput: SubmissionEmbeddingUpdateInput; SubmissionHarmed_partiesRelationInput: SubmissionHarmed_PartiesRelationInput; + SubmissionImplicated_systemsRelationInput: SubmissionImplicated_SystemsRelationInput; SubmissionIncident_editorsRelationInput: SubmissionIncident_EditorsRelationInput; SubmissionInsertInput: SubmissionInsertInput; SubmissionNlp_similar_incident: SubmissionNlp_Similar_Incident; @@ -5941,9 +6153,11 @@ export type ChecklistRiskPrecedentResolvers = { _id?: Resolver, ParentType, ContextType>; attributes?: Resolver>>, ParentType, ContextType>; + incidents?: Resolver>, ParentType, ContextType>; namespace?: Resolver; notes?: Resolver, ParentType, ContextType>; publish?: Resolver, ParentType, ContextType>; + reports?: Resolver>, ParentType, ContextType>; __isTypeOf?: IsTypeOfResolverFn; }; @@ -6005,6 +6219,7 @@ export type History_IncidentResolvers, ParentType, ContextType>; epoch_date_modified?: Resolver, ParentType, ContextType>; flagged_dissimilar_incidents?: Resolver>>, ParentType, ContextType>; + implicated_systems?: Resolver>>, ParentType, ContextType>; incident_id?: Resolver; modifiedBy?: Resolver, ParentType, ContextType>; nlp_similar_incidents?: Resolver>>, ParentType, ContextType>; @@ -6072,6 +6287,29 @@ export type History_ReportEmbeddingResolvers; }; +export type IncidentResolvers = { + AllegedDeployerOfAISystem?: Resolver>>, ParentType, ContextType>; + AllegedDeveloperOfAISystem?: Resolver>>, ParentType, ContextType>; + AllegedHarmedOrNearlyHarmedParties?: Resolver>>, ParentType, ContextType>; + _id?: Resolver, ParentType, ContextType>; + date?: Resolver; + description?: Resolver, ParentType, ContextType>; + editor_dissimilar_incidents?: Resolver>>, ParentType, ContextType>; + editor_notes?: Resolver, ParentType, ContextType>; + editor_similar_incidents?: Resolver>>, ParentType, ContextType>; + editors?: Resolver>, ParentType, ContextType>; + embedding?: Resolver, ParentType, ContextType>; + epoch_date_modified?: Resolver, ParentType, ContextType>; + flagged_dissimilar_incidents?: Resolver>>, ParentType, ContextType>; + implicated_systems?: Resolver>>, ParentType, ContextType>; + incident_id?: Resolver; + nlp_similar_incidents?: Resolver>>, ParentType, ContextType>; + reports?: Resolver>, ParentType, ContextType>; + title?: Resolver; + tsne?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}; + export type IncidentEmbeddingResolvers = { from_reports?: Resolver>>, ParentType, ContextType>; vector?: Resolver>>, ParentType, ContextType>; @@ -6134,8 +6372,10 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; deleteOneHistory_incident?: Resolver, ParentType, ContextType, RequireFields>; deleteOneHistory_report?: Resolver, ParentType, ContextType, RequireFields>; + deleteOneIncident?: Resolver, ParentType, ContextType, RequireFields>; deleteOneNotification?: Resolver, ParentType, ContextType, RequireFields>; deleteOneQuickadd?: Resolver, ParentType, ContextType, Partial>; + deleteOneReport?: Resolver, ParentType, ContextType, RequireFields>; deleteOneSubmission?: Resolver, ParentType, ContextType, RequireFields>; deleteOneSubscription?: Resolver, ParentType, ContextType, RequireFields>; deleteOneTaxa?: Resolver, ParentType, ContextType, RequireFields>; @@ -6163,12 +6403,15 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; insertOneHistory_incident?: Resolver, ParentType, ContextType, RequireFields>; insertOneHistory_report?: Resolver, ParentType, ContextType, RequireFields>; + insertOneIncident?: Resolver, ParentType, ContextType, RequireFields>; insertOneNotification?: Resolver, ParentType, ContextType, RequireFields>; insertOneQuickadd?: Resolver, ParentType, ContextType, Partial>; + insertOneReport?: Resolver, ParentType, ContextType, RequireFields>; insertOneSubmission?: Resolver, ParentType, ContextType, RequireFields>; insertOneSubscription?: Resolver, ParentType, ContextType, RequireFields>; insertOneTaxa?: Resolver, ParentType, ContextType, RequireFields>; insertOneUser?: Resolver, ParentType, ContextType, RequireFields>; + linkReportsToIncidents?: Resolver>>, ParentType, ContextType, Partial>; logIncidentHistory?: Resolver, ParentType, ContextType, Partial>; logReportHistory?: Resolver, ParentType, ContextType, Partial>; processNotifications?: Resolver, ParentType, ContextType>; @@ -6180,7 +6423,9 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; replaceOneHistory_incident?: Resolver, ParentType, ContextType, RequireFields>; replaceOneHistory_report?: Resolver, ParentType, ContextType, RequireFields>; + replaceOneIncident?: Resolver, ParentType, ContextType, RequireFields>; replaceOneNotification?: Resolver, ParentType, ContextType, RequireFields>; + replaceOneReport?: Resolver, ParentType, ContextType, RequireFields>; replaceOneSubmission?: Resolver, ParentType, ContextType, RequireFields>; replaceOneSubscription?: Resolver, ParentType, ContextType, RequireFields>; replaceOneTaxa?: Resolver, ParentType, ContextType, RequireFields>; @@ -6207,8 +6452,11 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; updateOneHistory_incident?: Resolver, ParentType, ContextType, RequireFields>; updateOneHistory_report?: Resolver, ParentType, ContextType, RequireFields>; + updateOneIncident?: Resolver, ParentType, ContextType, RequireFields>; updateOneNotification?: Resolver, ParentType, ContextType, RequireFields>; updateOneQuickadd?: Resolver, ParentType, ContextType, RequireFields>; + updateOneReport?: Resolver, ParentType, ContextType, RequireFields>; + updateOneReportTranslation?: Resolver, ParentType, ContextType, Partial>; updateOneSubmission?: Resolver, ParentType, ContextType, RequireFields>; updateOneSubscription?: Resolver, ParentType, ContextType, RequireFields>; updateOneTaxa?: Resolver, ParentType, ContextType, RequireFields>; @@ -6220,7 +6468,9 @@ export type MutationResolvers, ParentType, ContextType, RequireFields>; upsertOneHistory_incident?: Resolver, ParentType, ContextType, RequireFields>; upsertOneHistory_report?: Resolver, ParentType, ContextType, RequireFields>; + upsertOneIncident?: Resolver, ParentType, ContextType, RequireFields>; upsertOneNotification?: Resolver, ParentType, ContextType, RequireFields>; + upsertOneReport?: Resolver, ParentType, ContextType, RequireFields>; upsertOneSubmission?: Resolver, ParentType, ContextType, RequireFields>; upsertOneSubscription?: Resolver, ParentType, ContextType, RequireFields>; upsertOneTaxa?: Resolver, ParentType, ContextType, RequireFields>; @@ -6263,10 +6513,14 @@ export type QueryResolvers>, ParentType, ContextType, RequireFields>; history_report?: Resolver, ParentType, ContextType, Partial>; history_reports?: Resolver>, ParentType, ContextType, RequireFields>; + incident?: Resolver, ParentType, ContextType, Partial>; + incidents?: Resolver>, ParentType, ContextType, RequireFields>; notification?: Resolver, ParentType, ContextType, Partial>; notifications?: Resolver>, ParentType, ContextType, RequireFields>; quickadd?: Resolver, ParentType, ContextType, Partial>; quickadds?: Resolver>>, ParentType, ContextType, Partial>; + report?: Resolver, ParentType, ContextType, Partial>; + reports?: Resolver>, ParentType, ContextType, RequireFields>; risks?: Resolver>>, ParentType, ContextType, Partial>; submission?: Resolver, ParentType, ContextType, Partial>; submissions?: Resolver>, ParentType, ContextType, RequireFields>; @@ -6287,6 +6541,40 @@ export type QuickaddResolvers; }; +export type ReportResolvers = { + _id?: Resolver, ParentType, ContextType>; + authors?: Resolver>, ParentType, ContextType>; + cloudinary_id?: Resolver; + date_downloaded?: Resolver; + date_modified?: Resolver; + date_published?: Resolver; + date_submitted?: Resolver; + description?: Resolver, ParentType, ContextType>; + editor_notes?: Resolver, ParentType, ContextType>; + embedding?: Resolver, ParentType, ContextType>; + epoch_date_downloaded?: Resolver; + epoch_date_modified?: Resolver; + epoch_date_published?: Resolver; + epoch_date_submitted?: Resolver; + flag?: Resolver, ParentType, ContextType>; + image_url?: Resolver; + inputs_outputs?: Resolver>>, ParentType, ContextType>; + is_incident_report?: Resolver, ParentType, ContextType>; + language?: Resolver; + plain_text?: Resolver; + quiet?: Resolver, ParentType, ContextType>; + report_number?: Resolver; + source_domain?: Resolver; + submitters?: Resolver>, ParentType, ContextType>; + tags?: Resolver>, ParentType, ContextType>; + text?: Resolver; + title?: Resolver; + translations?: Resolver, ParentType, ContextType, Partial>; + url?: Resolver; + user?: Resolver, ParentType, ContextType>; + __isTypeOf?: IsTypeOfResolverFn; +}; + export type ReportEmbeddingResolvers = { from_text_hash?: Resolver, ParentType, ContextType>; vector?: Resolver>>, ParentType, ContextType>; @@ -6366,6 +6654,7 @@ export type SubmissionResolvers, ParentType, ContextType>; harmed_parties?: Resolver>>, ParentType, ContextType>; image_url?: Resolver; + implicated_systems?: Resolver>>, ParentType, ContextType>; incident_date?: Resolver, ParentType, ContextType>; incident_editors?: Resolver>>, ParentType, ContextType>; incident_ids?: Resolver>>, ParentType, ContextType>; @@ -6400,6 +6689,7 @@ export type SubmissionNlp_Similar_IncidentResolvers = { _id?: SubscriptionResolver, "_id", ParentType, ContextType>; entityId?: SubscriptionResolver, "entityId", ParentType, ContextType>; + incident_id?: SubscriptionResolver, "incident_id", ParentType, ContextType>; type?: SubscriptionResolver; userId?: SubscriptionResolver; }; @@ -6520,6 +6810,7 @@ export type Resolvers = { History_incidentTsne?: History_IncidentTsneResolvers; History_report?: History_ReportResolvers; History_reportEmbedding?: History_ReportEmbeddingResolvers; + Incident?: IncidentResolvers; IncidentEmbedding?: IncidentEmbeddingResolvers; IncidentNlp_similar_incident?: IncidentNlp_Similar_IncidentResolvers; IncidentTsne?: IncidentTsneResolvers; @@ -6533,6 +6824,7 @@ export type Resolvers = { PromoteSubmissionToReportPayload?: PromoteSubmissionToReportPayloadResolvers; Query?: QueryResolvers; Quickadd?: QuickaddResolvers; + Report?: ReportResolvers; ReportEmbedding?: ReportEmbeddingResolvers; ReportTranslation?: ReportTranslationResolvers; RisksPayloadItem?: RisksPayloadItemResolvers; diff --git a/site/gatsby-site/server/remoteTypeDefs.ts b/site/gatsby-site/server/remoteTypeDefs.ts index eefbf053c2..66a0a69c1b 100644 --- a/site/gatsby-site/server/remoteTypeDefs.ts +++ b/site/gatsby-site/server/remoteTypeDefs.ts @@ -1,26 +1,9 @@ import gql from "graphql-tag"; export default gql` -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 +input CandidateEmbeddingInsertInput { + vector: [Float] + from_text_hash: String } input TaxaDummy_fieldInsertInput { @@ -28,874 +11,993 @@ input TaxaDummy_fieldInsertInput { short_name: String } -input History_incidentEmbeddingQueryInput { - AND: [History_incidentEmbeddingQueryInput!] - OR: [History_incidentEmbeddingQueryInput!] - from_reports_exists: Boolean - from_reports_nin: [Int] - vector_in: [Float] - vector_nin: [Float] - vector_exists: Boolean - from_reports_in: [Int] - from_reports: [Int] - vector: [Float] +input ClassificationAttributeInsertInput { + value_json: String + short_name: String } -input SubmissionEmbeddingQueryInput { - from_text_hash_exists: Boolean - vector_nin: [Float] - vector: [Float] - vector_exists: Boolean - vector_in: [Float] - from_text_hash_in: [String] - from_text_hash_nin: [String] - from_text_hash_lte: String - from_text_hash_lt: String - from_text_hash_gt: String - from_text_hash: String - from_text_hash_ne: String - OR: [SubmissionEmbeddingQueryInput!] - AND: [SubmissionEmbeddingQueryInput!] - from_text_hash_gte: String +input ClassificationAttributeUpdateInput { + short_name_unset: Boolean + value_json: String + value_json_unset: Boolean + short_name: String } -type TaxaField_listItem_fieldComplete_from { +input TaxaField_listItem_fieldComplete_fromUpdateInput { + entities_unset: Boolean all: [String] + all_unset: Boolean current: [String] + current_unset: Boolean entities: Boolean } -enum ChecklistSortByInput { - ID_ASC - OWNER_ID_DESC - _ID_ASC - _ID_DESC - DATE_CREATED_ASC - DATE_UPDATED_ASC - DATE_UPDATED_DESC - ENTITY_ID_ASC - ABOUT_ASC - ABOUT_DESC - DATE_CREATED_DESC - ID_DESC - ENTITY_ID_DESC - OWNER_ID_ASC - NAME_ASC - NAME_DESC -} - -input TaxaInsertInput { - weight: Int - _id: ObjectId - complete_entities: Boolean - description: String - dummy_fields: [TaxaDummy_fieldInsertInput] - field_list: [TaxaField_listInsertInput] - namespace: String -} - -type ReportTranslation { - text: String +input History_incidentUpdateInput { + flagged_dissimilar_incidents_unset: Boolean + implicated_systems_unset: Boolean + modifiedBy_unset: Boolean + AllegedDeployerOfAISystem_unset: Boolean + epoch_date_modified_inc: Int + nlp_similar_incidents: [History_incidentNlp_similar_incidentUpdateInput] title: String -} - -type Submission { + embedding: History_incidentEmbeddingUpdateInput + editor_dissimilar_incidents_unset: Boolean + nlp_similar_incidents_unset: Boolean + flagged_dissimilar_incidents: [Int] + tsne_unset: Boolean + incident_id: Int _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] + editors_unset: Boolean + reports: [Int] + date_unset: Boolean + epoch_date_modified: Int + epoch_date_modified_unset: Boolean + incident_id_inc: Int + incident_id_unset: Boolean + AllegedHarmedOrNearlyHarmedParties_unset: Boolean + date: String + AllegedHarmedOrNearlyHarmedParties: [String] + implicated_systems: [String] + tsne: History_incidentTsneUpdateInput + AllegedDeployerOfAISystem: [String] + description_unset: Boolean + AllegedDeveloperOfAISystem_unset: Boolean + reports_unset: Boolean + editor_similar_incidents_unset: Boolean editor_notes: String + editor_notes_unset: Boolean + description: String + modifiedBy: String + editors: [String] + title_unset: Boolean + _id_unset: Boolean 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 - quiet: Boolean - source_domain: String! - status: String - submitters: [String]! - tags: [String]! - text: String! - title: String! - url: String! - user: User -} - -type SubmissionNlp_similar_incident { - incident_id: Int - similarity: Float + embedding_unset: Boolean + editor_dissimilar_incidents: [Int] + AllegedDeveloperOfAISystem: [String] } -input History_incidentNlp_similar_incidentUpdateInput { - incident_id_unset: Boolean - similarity: Float - similarity_inc: Float - similarity_unset: Boolean - incident_id: Int - incident_id_inc: Int +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 } -input ChecklistRiskQueryInput { - risk_status_lte: String - touched_exists: Boolean - tags: [String] - id_gte: String - tags_exists: Boolean - risk_status_gt: String - likelihood: String - risk_notes_lt: String - id_exists: Boolean - precedents_nin: [ChecklistRiskPrecedentQueryInput] - likelihood_gte: String - severity: String - tags_in: [String] - likelihood_lte: String - likelihood_nin: [String] - risk_status: String - risk_notes_lte: String - risk_notes_in: [String] - severity_exists: Boolean - OR: [ChecklistRiskQueryInput!] - AND: [ChecklistRiskQueryInput!] - risk_status_nin: [String] - generated_ne: Boolean - precedents: [ChecklistRiskPrecedentQueryInput] - risk_notes_ne: String - precedents_in: [ChecklistRiskPrecedentQueryInput] - id_lt: String - risk_status_lt: String - id_lte: String - id: String - precedents_exists: Boolean - severity_lte: String - generated: Boolean - generated_exists: Boolean - severity_ne: String - severity_gt: String - risk_notes_exists: Boolean - risk_status_exists: Boolean - id_nin: [String] - title_gt: String - tags_nin: [String] - likelihood_gt: String - risk_notes_nin: [String] - severity_nin: [String] - risk_status_ne: String - likelihood_exists: Boolean - severity_in: [String] - title_lte: String +input History_incidentQueryInput { + epoch_date_modified: Int + _id_ne: ObjectId + _id_lte: ObjectId + editor_dissimilar_incidents_in: [Int] + nlp_similar_incidents_in: [History_incidentNlp_similar_incidentQueryInput] + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + AllegedDeployerOfAISystem_exists: Boolean + editor_notes_in: [String] + implicated_systems_in: [String] + _id_exists: Boolean + editors_nin: [String] + editor_similar_incidents_nin: [Int] + title_exists: Boolean title_ne: String - likelihood_in: [String] - risk_notes_gte: String - id_ne: String - severity_lt: String - risk_notes_gt: String - touched: Boolean + tsne: History_incidentTsneQueryInput + AND: [History_incidentQueryInput!] + incident_id_gte: Int + description_in: [String] + editor_notes: String + embedding_exists: Boolean + description_lt: String + AllegedDeployerOfAISystem_nin: [String] + flagged_dissimilar_incidents_in: [Int] + date_exists: Boolean + reports_nin: [Int] + modifiedBy_nin: [String] + title_lte: String + editor_notes_ne: String + incident_id_lte: Int + editor_dissimilar_incidents: [Int] + _id_nin: [ObjectId] + epoch_date_modified_lt: Int + date_nin: [String] + date_ne: String + description: String + title_gte: String + epoch_date_modified_lte: Int + modifiedBy_lte: String + implicated_systems: [String] + description_ne: String + editor_notes_nin: [String] + epoch_date_modified_gte: Int + implicated_systems_nin: [String] + reports: [Int] title_nin: [String] - risk_status_gte: String - id_gt: String - title_exists: Boolean - touched_ne: Boolean - likelihood_ne: String + editor_dissimilar_incidents_nin: [Int] + editor_notes_lt: String + modifiedBy_gte: String + AllegedHarmedOrNearlyHarmedParties_in: [String] + description_gte: String + editors_in: [String] + _id_in: [ObjectId] + epoch_date_modified_in: [Int] + incident_id_ne: Int + reports_in: [Int] + modifiedBy_in: [String] + date_gt: String + incident_id_exists: Boolean + date_lt: String + incident_id: Int + modifiedBy_exists: Boolean + incident_id_gt: Int + AllegedHarmedOrNearlyHarmedParties: [String] + description_nin: [String] + modifiedBy_ne: String + flagged_dissimilar_incidents_nin: [Int] + flagged_dissimilar_incidents: [Int] title: String title_in: [String] - id_in: [String] - risk_notes: String - title_gte: String - risk_status_in: [String] - severity_gte: String + _id: ObjectId + AllegedHarmedOrNearlyHarmedParties_nin: [String] + AllegedDeveloperOfAISystem_nin: [String] + description_exists: Boolean + tsne_exists: Boolean + modifiedBy: String + editors: [String] + incident_id_nin: [Int] + date_lte: String + editor_notes_gte: String + implicated_systems_exists: Boolean + modifiedBy_lt: String + description_gt: String + AllegedDeployerOfAISystem: [String] + flagged_dissimilar_incidents_exists: Boolean + _id_gte: ObjectId + modifiedBy_gt: String + incident_id_in: [Int] + date: String + nlp_similar_incidents: [History_incidentNlp_similar_incidentQueryInput] + _id_gt: ObjectId + epoch_date_modified_ne: Int + epoch_date_modified_nin: [Int] title_lt: String - likelihood_lt: String -} - -enum EntitySortByInput { - DATE_MODIFIED_ASC - ENTITY_ID_ASC - ENTITY_ID_DESC - NAME_DESC - NAME_ASC - _ID_ASC - _ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - DATE_MODIFIED_DESC + epoch_date_modified_exists: Boolean + editor_notes_exists: Boolean + reports_exists: Boolean + editor_notes_lte: String + date_gte: String + AllegedDeveloperOfAISystem_in: [String] + editor_similar_incidents: [Int] + editor_similar_incidents_in: [Int] + date_in: [String] + incident_id_lt: Int + OR: [History_incidentQueryInput!] + _id_lt: ObjectId + nlp_similar_incidents_exists: Boolean + embedding: History_incidentEmbeddingQueryInput + AllegedDeveloperOfAISystem: [String] + nlp_similar_incidents_nin: [History_incidentNlp_similar_incidentQueryInput] + editors_exists: Boolean + epoch_date_modified_gt: Int + title_gt: String + AllegedDeveloperOfAISystem_exists: Boolean + editor_dissimilar_incidents_exists: Boolean + editor_similar_incidents_exists: Boolean + description_lte: String + AllegedDeployerOfAISystem_in: [String] + editor_notes_gt: String } -input QuickaddInsertInput { - incident_id: Long - source_domain: String - url: String! +input ReportInsertInput { + date_submitted: DateTime! + user: ReportUserRelationInput + epoch_date_modified: Int! + quiet: Boolean + date_published: DateTime! + report_number: Int! _id: ObjectId - date_submitted: String! + date_modified: DateTime! + epoch_date_downloaded: Int! + text: String! + authors: [String]! + embedding: ReportEmbeddingInsertInput + tags: [String]! + epoch_date_published: Int! + submitters: [String]! + cloudinary_id: String! + source_domain: String! + is_incident_report: Boolean + language: String! + flag: Boolean + inputs_outputs: [String] + date_downloaded: DateTime! + description: String + image_url: String! + epoch_date_submitted: Int! + editor_notes: String + plain_text: String! + title: String! + url: String! } -input TaxaDummy_fieldUpdateInput { - field_number: String +input TaxaField_listUpdateInput { + default: String + display_type_unset: Boolean field_number_unset: Boolean - short_name: String + permitted_values_unset: Boolean + public: Boolean + hide_search: Boolean + weight_unset: Boolean + short_description: String + permitted_values: [String] + weight: Int + long_name_unset: Boolean + required_unset: Boolean + short_description_unset: Boolean + complete_from_unset: Boolean + instant_facet_unset: Boolean + placeholder_unset: Boolean + instant_facet: Boolean + long_description_unset: Boolean + long_name: String + mongo_type_unset: Boolean short_name_unset: Boolean + complete_from: TaxaField_listComplete_fromUpdateInput + short_name: String + display_type: String + required: Boolean + item_fields_unset: Boolean + weight_inc: Int + item_fields: TaxaField_listItem_fieldUpdateInput + field_number: String + hide_search_unset: Boolean + placeholder: String + mongo_type: String + long_description: String + default_unset: Boolean + public_unset: Boolean } -input CreateVariantInput { - variant: CreateVariantInputVariant - incidentId: Int +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(query: ClassificationQueryInput, limit: Int = 100, sortBy: ClassificationSortByInput): [Classification]! + duplicate(query: DuplicateQueryInput): Duplicate + duplicates(query: DuplicateQueryInput, limit: Int = 100, sortBy: DuplicateSortByInput): [Duplicate]! + entities(sortBy: EntitySortByInput, query: EntityQueryInput, limit: Int = 100): [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(limit: Int = 100, sortBy: ReportSortByInput, query: ReportQueryInput): [Report]! + risks(input: RisksInput): [RisksPayloadItem] + submission(query: SubmissionQueryInput): Submission + submissions(query: SubmissionQueryInput, limit: Int = 100, sortBy: SubmissionSortByInput): [Submission]! + subscription(query: SubscriptionQueryInput): Subscription + subscriptions(limit: Int = 100, sortBy: SubscriptionSortByInput, query: SubscriptionQueryInput): [Subscription]! + taxa(query: TaxaQueryInput): Taxa + taxas(limit: Int = 100, sortBy: TaxaSortByInput, query: TaxaQueryInput): [Taxa]! + user(query: UserQueryInput): User + users(sortBy: UserSortByInput, query: UserQueryInput, limit: Int = 100): [User]! } -input ReportUpdateInput { - tags: [String] - date_downloaded: DateTime - url: String - language_unset: Boolean - epoch_date_submitted: Int - embedding_unset: Boolean +type Incident { + AllegedDeployerOfAISystem: [Entity] + AllegedDeveloperOfAISystem: [Entity] + AllegedHarmedOrNearlyHarmedParties: [Entity] + _id: ObjectId + date: String! description: String - plain_text_unset: Boolean - is_incident_report_unset: Boolean - cloudinary_id: String - report_number_inc: Int + editor_dissimilar_incidents: [Int] editor_notes: String - text: String - flag: Boolean - is_incident_report: Boolean - _id: ObjectId - date_modified_unset: Boolean - epoch_date_submitted_unset: Boolean - embedding: ReportEmbeddingUpdateInput - text_unset: Boolean - title: String - image_url: String - user_unset: Boolean - date_submitted_unset: Boolean - cloudinary_id_unset: Boolean - quiet: Boolean - date_published_unset: Boolean - report_number_unset: Boolean - epoch_date_published_inc: Int - tags_unset: Boolean - authors_unset: Boolean - description_unset: Boolean - flag_unset: Boolean - title_unset: Boolean - date_published: DateTime - date_downloaded_unset: Boolean - quiet_unset: Boolean - epoch_date_modified_unset: Boolean - epoch_date_downloaded_inc: Int - epoch_date_submitted_inc: Int - language: String - inputs_outputs_unset: Boolean - report_number: Int - url_unset: Boolean - editor_notes_unset: Boolean - source_domain: String - image_url_unset: Boolean - submitters: [String] - date_modified: DateTime - epoch_date_downloaded: Int - user: ReportUserRelationInput - epoch_date_published: Int - plain_text: String - inputs_outputs: [String] - epoch_date_published_unset: Boolean - authors: [String] - _id_unset: Boolean - epoch_date_downloaded_unset: Boolean + editor_similar_incidents: [Int] + editors: [User]! + embedding: IncidentEmbedding epoch_date_modified: Int - date_submitted: DateTime - epoch_date_modified_inc: Int - source_domain_unset: Boolean - submitters_unset: Boolean + flagged_dissimilar_incidents: [Int] + implicated_systems: [Entity] + incident_id: Int! + nlp_similar_incidents: [IncidentNlp_similar_incident] + reports: [Report]! + title: String! + tsne: IncidentTsne } -input QuickaddQueryInput { - date_submitted_in: [String] - url_gte: String - incident_id_nin: [Long] - url_lte: String - incident_id: Long - url_exists: Boolean - source_domain_lte: String - url_gt: String - incident_id_gt: Long - source_domain_gt: String - _id_ne: ObjectId - date_submitted: String - source_domain_lt: String - incident_id_in: [Long] - url: String - url_lt: String - _id_in: [ObjectId] - source_domain_gte: String - _id_gt: ObjectId - source_domain_ne: String - AND: [QuickaddQueryInput!] +enum EntitySortByInput { + ENTITY_ID_DESC + NAME_ASC + DATE_MODIFIED_DESC + _ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + DATE_MODIFIED_ASC + ENTITY_ID_ASC + NAME_DESC + _ID_ASC +} + +input DuplicateUpdateInput { + true_incident_number_unset: Boolean _id: ObjectId - incident_id_gte: Long - incident_id_ne: Long - source_domain_exists: Boolean - _id_lte: ObjectId - date_submitted_gte: String - incident_id_lt: Long - _id_lt: ObjectId - incident_id_lte: Long - source_domain_in: [String] - _id_gte: ObjectId - _id_exists: Boolean - incident_id_exists: Boolean - source_domain_nin: [String] - date_submitted_nin: [String] - _id_nin: [ObjectId] - date_submitted_ne: String - date_submitted_lt: String - date_submitted_gt: String - date_submitted_lte: String - url_nin: [String] - OR: [QuickaddQueryInput!] - source_domain: String - url_ne: String - url_in: [String] - date_submitted_exists: Boolean + _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 } -type History_incidentTsne { - x: Float +input IncidentEmbeddingInsertInput { + vector: [Float] + from_reports: [Int] +} + +scalar Long + +input GetUserInput { + userId: ObjectId +} + +input SubmissionDevelopersRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input IncidentTsneQueryInput { + y_gt: Float y: Float + y_lte: Float + x_exists: Boolean + x: Float + y_exists: Boolean + y_ne: Float + OR: [IncidentTsneQueryInput!] + x_lte: Float + x_nin: [Float] + x_ne: Float + y_in: [Float] + x_gte: Float + y_nin: [Float] + y_gte: Float + x_gt: Float + y_lt: Float + AND: [IncidentTsneQueryInput!] + x_in: [Float] + x_lt: Float } -enum QuickaddSortByInput { - INCIDENT_ID_DESC - SOURCE_DOMAIN_ASC - URL_ASC - URL_DESC - SOURCE_DOMAIN_DESC +enum History_incidentSortByInput { _ID_ASC - _ID_DESC - DATE_SUBMITTED_ASC - DATE_SUBMITTED_DESC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_DESC + TITLE_ASC + TITLE_DESC + DATE_DESC + DESCRIPTION_ASC + EPOCH_DATE_MODIFIED_ASC INCIDENT_ID_ASC + DATE_ASC + EDITOR_NOTES_ASC + _ID_DESC + DESCRIPTION_DESC + INCIDENT_ID_DESC + MODIFIEDBY_ASC + MODIFIEDBY_DESC } -input SubmissionNlp_similar_incidentInsertInput { - incident_id: Int - similarity: Float +input TaxaField_listItem_fieldComplete_fromInsertInput { + all: [String] + current: [String] + entities: Boolean } -type CandidateEmbedding { - from_text_hash: String - vector: [Float] +enum IncidentSortByInput { + _ID_ASC + _ID_DESC + DATE_ASC + DATE_DESC + DESCRIPTION_ASC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_DESC + EPOCH_DATE_MODIFIED_ASC + INCIDENT_ID_ASC + TITLE_ASC + TITLE_DESC + DESCRIPTION_DESC + EDITOR_NOTES_ASC + INCIDENT_ID_DESC } -input IncidentEmbeddingInsertInput { - vector: [Float] +type RisksPayloadPrecedentEmbedding { from_reports: [Int] + vector: [Float] } -input NotificationQueryInput { - type_nin: [String] - _id_gt: ObjectId - incident_id_ne: Int - type: String - incident_id_gt: Int - sentDate_gt: DateTime - processed_ne: Boolean - sentDate_lt: DateTime - sentDate: DateTime - AND: [NotificationQueryInput!] - _id_gte: ObjectId - _id_lt: ObjectId - userId_exists: Boolean - OR: [NotificationQueryInput!] - _id_in: [ObjectId] - type_lte: String - incident_id_in: [Int] - _id_exists: Boolean - sentDate_in: [DateTime] - type_lt: String - incident_id_lte: Int - _id_ne: ObjectId - _id_lte: ObjectId - sentDate_ne: DateTime - incident_id_lt: Int - incident_id_nin: [Int] - incident_id: Int - incident_id_gte: Int - type_gt: String - type_in: [String] - type_exists: Boolean - sentDate_exists: Boolean - type_gte: String - processed: Boolean - userId: UserQueryInput - _id: ObjectId - processed_exists: Boolean - type_ne: String - _id_nin: [ObjectId] - sentDate_gte: DateTime - sentDate_nin: [DateTime] - incident_id_exists: Boolean - sentDate_lte: DateTime -} - -type InsertManyPayload { - insertedIds: [ObjectId]! +input ReportUserRelationInput { + create: UserInsertInput + link: String } -input NotificationUpdateInput { - sentDate: DateTime - incident_id_inc: Int - sentDate_unset: Boolean - _id: ObjectId - processed: Boolean - type: String - userId_unset: Boolean - _id_unset: Boolean - userId: NotificationUserIdRelationInput - processed_unset: Boolean +input TaxaField_listInsertInput { + instant_facet: Boolean + field_number: String + mongo_type: String + required: Boolean + long_description: String + public: Boolean + long_name: String + short_description: String + weight: Int + hide_search: Boolean + complete_from: TaxaField_listComplete_fromInsertInput + display_type: String + placeholder: String + short_name: String + default: String + item_fields: TaxaField_listItem_fieldInsertInput + permitted_values: [String] +} + +scalar ObjectId + +enum DuplicateSortByInput { + _ID_ASC + _ID_DESC + DUPLICATE_INCIDENT_NUMBER_ASC + DUPLICATE_INCIDENT_NUMBER_DESC + TRUE_INCIDENT_NUMBER_ASC + TRUE_INCIDENT_NUMBER_DESC +} + +input History_incidentNlp_similar_incidentUpdateInput { + similarity_unset: Boolean incident_id: Int + incident_id_inc: Int incident_id_unset: Boolean - type_unset: Boolean + similarity: Float + similarity_inc: Float } -input ChecklistUpdateInput { - risks_unset: Boolean - date_created_unset: Boolean - tags_other: [String] - entity_id_unset: Boolean - risks: [ChecklistRiskUpdateInput] - date_updated: DateTime - entity_id: String - id: String - about: String +input SubscriptionInsertInput { + incident_id: SubscriptionIncident_idRelationInput + type: String! + userId: SubscriptionUserIdRelationInput! _id: ObjectId - name: String - date_created: DateTime - name_unset: Boolean - owner_id_unset: Boolean - date_updated_unset: Boolean - owner_id: String - tags_methods: [String] - tags_methods_unset: Boolean - tags_other_unset: Boolean - tags_goals_unset: Boolean - tags_goals: [String] + entityId: SubscriptionEntityIdRelationInput +} + +input SubmissionUpdateInput { + date_submitted_unset: Boolean + language_unset: Boolean + deployers_unset: Boolean + editor_notes: String + harmed_parties_unset: Boolean + nlp_similar_incidents: [SubmissionNlp_similar_incidentUpdateInput] + incident_ids_unset: Boolean + date_published: String + embedding_unset: Boolean + embedding: SubmissionEmbeddingUpdateInput + deployers: SubmissionDeployersRelationInput + plain_text_unset: Boolean + implicated_systems: SubmissionImplicated_systemsRelationInput + text_unset: Boolean + title: String + user: SubmissionUserRelationInput + editor_dissimilar_incidents: [Int] + incident_date_unset: Boolean + description: String + language: String + source_domain_unset: Boolean + image_url_unset: Boolean + epoch_date_modified: Int + description_unset: Boolean + epoch_date_modified_unset: Boolean + date_published_unset: Boolean + date_downloaded: String + authors: [String] + cloudinary_id_unset: Boolean + harmed_parties: SubmissionHarmed_partiesRelationInput + nlp_similar_incidents_unset: Boolean + editor_similar_incidents: [Int] + source_domain: String + plain_text: String + epoch_date_modified_inc: Int + incident_editors: SubmissionIncident_editorsRelationInput + status: String + incident_ids: [Int] + incident_title_unset: Boolean + editor_similar_incidents_unset: Boolean + incident_date: String + date_submitted: String + url: String + text: String + developers_unset: Boolean + url_unset: Boolean + incident_editors_unset: Boolean _id_unset: Boolean - id_unset: Boolean - about_unset: Boolean + quiet: Boolean + editor_notes_unset: Boolean + tags: [String] + submitters: [String] + user_unset: Boolean + date_downloaded_unset: Boolean + image_url: String + authors_unset: Boolean + quiet_unset: Boolean + date_modified: String + cloudinary_id: String + developers: SubmissionDevelopersRelationInput + incident_title: String + tags_unset: Boolean + _id: ObjectId + editor_dissimilar_incidents_unset: Boolean + status_unset: Boolean + title_unset: Boolean + implicated_systems_unset: Boolean + date_modified_unset: Boolean + submitters_unset: Boolean } -input SubmissionDevelopersRelationInput { +input CandidateClassification_similarityInsertInput { + classification: String + similarity: Float +} + +input SubmissionDeployersRelationInput { create: [EntityInsertInput] link: [String] } -input ClassificationUpdateInput { - incidents: ClassificationIncidentsRelationInput - reports: ClassificationReportsRelationInput - publish_unset: Boolean - _id_unset: Boolean - attributes: [ClassificationAttributeUpdateInput] - attributes_unset: Boolean - reports_unset: Boolean - incidents_unset: Boolean - notes: String - notes_unset: Boolean - namespace: String - publish: Boolean +input TaxaUpdateInput { + weight_unset: Boolean + complete_entities: Boolean + weight: Int + field_list_unset: Boolean + dummy_fields_unset: Boolean + weight_inc: Int namespace_unset: Boolean + namespace: String + field_list: [TaxaField_listUpdateInput] + description_unset: Boolean + description: String + _id_unset: Boolean _id: ObjectId -} - -enum ReportSortByInput { - DATE_PUBLISHED_ASC - EDITOR_NOTES_ASC - TITLE_ASC - TEXT_ASC - URL_DESC - _ID_DESC - DATE_DOWNLOADED_DESC - DATE_SUBMITTED_DESC - EPOCH_DATE_MODIFIED_DESC - PLAIN_TEXT_ASC - EPOCH_DATE_PUBLISHED_ASC - DATE_MODIFIED_DESC - DESCRIPTION_ASC - EPOCH_DATE_DOWNLOADED_DESC - EPOCH_DATE_SUBMITTED_DESC - LANGUAGE_ASC - SOURCE_DOMAIN_DESC - URL_ASC - _ID_ASC - DESCRIPTION_DESC - EPOCH_DATE_DOWNLOADED_ASC - EPOCH_DATE_PUBLISHED_DESC - LANGUAGE_DESC - SOURCE_DOMAIN_ASC - TEXT_DESC - USER_DESC - EPOCH_DATE_SUBMITTED_ASC - IMAGE_URL_ASC - IMAGE_URL_DESC - REPORT_NUMBER_ASC - REPORT_NUMBER_DESC - CLOUDINARY_ID_ASC - CLOUDINARY_ID_DESC - DATE_PUBLISHED_DESC - EPOCH_DATE_MODIFIED_ASC - TITLE_DESC - USER_ASC - DATE_DOWNLOADED_ASC - DATE_MODIFIED_ASC - DATE_SUBMITTED_ASC - EDITOR_NOTES_DESC - PLAIN_TEXT_DESC + complete_entities_unset: Boolean + dummy_fields: [TaxaDummy_fieldUpdateInput] } input TaxaDummy_fieldQueryInput { - field_number_gt: String - field_number_in: [String] short_name_lte: String - field_number: String - field_number_ne: String short_name_gte: String + short_name_nin: [String] OR: [TaxaDummy_fieldQueryInput!] field_number_lte: String + short_name_ne: String + field_number_gt: String AND: [TaxaDummy_fieldQueryInput!] - short_name_nin: [String] - short_name_exists: Boolean - short_name_in: [String] - short_name_lt: String - short_name: String - field_number_lt: String + field_number: String field_number_exists: Boolean - short_name_gt: String + field_number_in: [String] field_number_nin: [String] field_number_gte: String - short_name_ne: String -} - -type IncidentNlp_similar_incident { - incident_id: Int - similarity: Float -} - -input ClassificationAttributeQueryInput { + field_number_lt: String + field_number_ne: String + short_name: String short_name_gt: String - AND: [ClassificationAttributeQueryInput!] - value_json: String - short_name_ne: String short_name_lt: String + short_name_in: [String] short_name_exists: Boolean - value_json_nin: [String] - short_name: String - short_name_gte: String - value_json_in: [String] - short_name_in: [String] - value_json_gt: String - value_json_gte: String - value_json_ne: String - value_json_exists: Boolean - OR: [ClassificationAttributeQueryInput!] - value_json_lte: String - short_name_nin: [String] - short_name_lte: String - value_json_lt: String } -type CreateVariantPayload { - incident_id: Int - report_number: Int +input ChecklistRiskQueryInput { + likelihood_gte: String + likelihood_lte: String + id_lte: String + generated: Boolean + likelihood_in: [String] + OR: [ChecklistRiskQueryInput!] + id_in: [String] + id_gt: String + risk_status_nin: [String] + title_gte: String + likelihood_exists: Boolean + risk_status_lt: String + severity_ne: String + tags_nin: [String] + generated_exists: Boolean + title_nin: [String] + id_exists: Boolean + severity_lte: String + title_ne: String + severity_nin: [String] + likelihood_ne: String + risk_notes: String + risk_status_lte: String + title_lte: String + risk_status: String + title_lt: String + precedents_in: [ChecklistRiskPrecedentQueryInput] + risk_status_exists: Boolean + touched: Boolean + touched_exists: Boolean + severity: String + risk_status_ne: String + risk_notes_nin: [String] + precedents: [ChecklistRiskPrecedentQueryInput] + id_nin: [String] + risk_status_in: [String] + title_in: [String] + id_ne: String + risk_notes_gt: String + risk_notes_lte: String + risk_notes_lt: String + tags_in: [String] + likelihood_gt: String + severity_exists: Boolean + title: String + risk_notes_gte: String + generated_ne: Boolean + likelihood_nin: [String] + tags_exists: Boolean + severity_in: [String] + risk_status_gte: String + title_gt: String + risk_status_gt: String + severity_gt: String + touched_ne: Boolean + risk_notes_in: [String] + tags: [String] + title_exists: Boolean + id: String + precedents_nin: [ChecklistRiskPrecedentQueryInput] + AND: [ChecklistRiskQueryInput!] + severity_lt: String + likelihood: String + risk_notes_exists: Boolean + id_lt: String + severity_gte: String + precedents_exists: Boolean + risk_notes_ne: String + id_gte: String + likelihood_lt: String } -input History_reportEmbeddingQueryInput { - from_text_hash_gt: String - from_text_hash_nin: [String] - from_text_hash_ne: String - vector_exists: Boolean - from_text_hash_lt: String +type History_reportEmbedding { + from_text_hash: String + vector: [Float] +} + +input IncidentEditorsRelationInput { + link: [String] + create: [UserInsertInput] +} + +input SubmissionEmbeddingQueryInput { from_text_hash_in: [String] - OR: [History_reportEmbeddingQueryInput!] - AND: [History_reportEmbeddingQueryInput!] + vector_nin: [Float] vector: [Float] + vector_exists: Boolean + AND: [SubmissionEmbeddingQueryInput!] from_text_hash_lte: String - from_text_hash_gte: String - from_text_hash_exists: Boolean + from_text_hash_nin: [String] vector_in: [Float] - vector_nin: [Float] from_text_hash: String + from_text_hash_lt: String + from_text_hash_exists: Boolean + from_text_hash_gt: String + OR: [SubmissionEmbeddingQueryInput!] + from_text_hash_gte: String + from_text_hash_ne: String } -input TaxaField_listItem_fieldComplete_fromQueryInput { - current: [String] - entities_ne: Boolean - current_in: [String] - all_nin: [String] - OR: [TaxaField_listItem_fieldComplete_fromQueryInput!] - all: [String] - all_in: [String] - AND: [TaxaField_listItem_fieldComplete_fromQueryInput!] - current_nin: [String] - current_exists: Boolean - all_exists: Boolean - entities_exists: Boolean - entities: Boolean +enum History_reportSortByInput { + EPOCH_DATE_DOWNLOADED_DESC + LANGUAGE_ASC + PLAIN_TEXT_DESC + REPORT_NUMBER_DESC + TITLE_DESC + CLOUDINARY_ID_ASC + DATE_MODIFIED_ASC + DATE_PUBLISHED_DESC + DATE_MODIFIED_DESC + DATE_SUBMITTED_DESC + DESCRIPTION_DESC + EPOCH_DATE_MODIFIED_ASC + EPOCH_DATE_PUBLISHED_ASC + _ID_ASC + CLOUDINARY_ID_DESC + DATE_DOWNLOADED_ASC + EPOCH_DATE_PUBLISHED_DESC + SOURCE_DOMAIN_ASC + URL_ASC + USER_DESC + DATE_DOWNLOADED_DESC + DATE_SUBMITTED_ASC + PLAIN_TEXT_ASC + SOURCE_DOMAIN_DESC + EDITOR_NOTES_DESC + EPOCH_DATE_MODIFIED_DESC + LANGUAGE_DESC + USER_ASC + DESCRIPTION_ASC + MODIFIEDBY_DESC + TEXT_ASC + REPORT_NUMBER_ASC + URL_DESC + DATE_PUBLISHED_ASC + IMAGE_URL_DESC + MODIFIEDBY_ASC + TITLE_ASC + _ID_DESC + EPOCH_DATE_SUBMITTED_ASC + IMAGE_URL_ASC + TEXT_DESC + EDITOR_NOTES_ASC + EPOCH_DATE_DOWNLOADED_ASC + EPOCH_DATE_SUBMITTED_DESC } -input LinkReportsToIncidentsInput { - report_numbers: [Int] - incident_ids: [Int] +input ReportUpdateInput { + date_published: DateTime + user: ReportUserRelationInput + authors_unset: Boolean + date_published_unset: Boolean + epoch_date_modified_inc: Int + inputs_outputs: [String] + flag_unset: Boolean + image_url_unset: Boolean + language: String + plain_text_unset: Boolean + date_modified: DateTime + text: String + date_submitted_unset: Boolean + epoch_date_published_unset: Boolean + epoch_date_submitted_unset: Boolean + title: String + is_incident_report: Boolean + is_incident_report_unset: Boolean + url_unset: Boolean + date_downloaded: DateTime + tags_unset: Boolean + embedding: ReportEmbeddingUpdateInput + cloudinary_id: String + flag: Boolean + report_number_inc: Int + plain_text: String + date_downloaded_unset: Boolean + editor_notes: String + epoch_date_downloaded_inc: Int + image_url: String + cloudinary_id_unset: Boolean + submitters: [String] + description_unset: Boolean + language_unset: Boolean + description: String + embedding_unset: Boolean + inputs_outputs_unset: Boolean + source_domain_unset: Boolean + epoch_date_modified: Int + epoch_date_submitted_inc: Int + quiet_unset: Boolean + epoch_date_downloaded_unset: Boolean + url: String + date_modified_unset: Boolean + submitters_unset: Boolean + epoch_date_modified_unset: Boolean + quiet: Boolean + epoch_date_published: Int + editor_notes_unset: Boolean + authors: [String] + epoch_date_downloaded: Int + source_domain: String + _id: ObjectId + title_unset: Boolean + report_number_unset: Boolean + date_submitted: DateTime + report_number: Int + text_unset: Boolean + tags: [String] + _id_unset: Boolean + user_unset: Boolean + epoch_date_published_inc: Int + epoch_date_submitted: Int } -input CandidateEmbeddingInsertInput { +input History_reportEmbeddingInsertInput { from_text_hash: String vector: [Float] } -input IncidentInsertInput { - nlp_similar_incidents: [IncidentNlp_similar_incidentInsertInput] - editor_notes: String - AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput - reports: IncidentReportsRelationInput! - flagged_dissimilar_incidents: [Int] - editor_similar_incidents: [Int] - epoch_date_modified: Int - AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput - incident_id: Int! - editors: IncidentEditorsRelationInput! - title: String! - AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput - _id: ObjectId - tsne: IncidentTsneInsertInput - description: String - editor_dissimilar_incidents: [Int] - embedding: IncidentEmbeddingInsertInput - date: String! +input IncidentEmbeddingUpdateInput { + vector: [Float] + vector_unset: Boolean + from_reports: [Int] + from_reports_unset: Boolean } -input History_incidentQueryInput { - flagged_dissimilar_incidents_nin: [Int] - date_ne: String - incident_id_nin: [Int] - description_lt: String - AllegedHarmedOrNearlyHarmedParties_nin: [String] - title_gt: String - incident_id_gte: Int - AllegedDeveloperOfAISystem_nin: [String] - date_lt: String - description_ne: String - reports_in: [Int] - AllegedDeveloperOfAISystem: [String] - incident_id_in: [Int] - flagged_dissimilar_incidents_exists: Boolean +input SubmissionUserRelationInput { + create: UserInsertInput + link: String +} + +type ChecklistRiskPrecedent { + description: String incident_id: Int - _id_lt: ObjectId - AllegedDeployerOfAISystem: [String] - editor_dissimilar_incidents_exists: Boolean - title_in: [String] - editor_notes_exists: Boolean - description_lte: String - incident_id_exists: Boolean - editors_nin: [String] - editor_dissimilar_incidents: [Int] - epoch_date_modified_gte: Int - _id_nin: [ObjectId] - editor_notes_in: [String] - embedding: History_incidentEmbeddingQueryInput - editor_notes_lte: String - _id_exists: Boolean - epoch_date_modified_lte: Int - AllegedDeployerOfAISystem_exists: Boolean - description_gt: String - title_gte: String - tsne: History_incidentTsneQueryInput - editor_similar_incidents_exists: Boolean - AND: [History_incidentQueryInput!] - embedding_exists: Boolean - editor_notes_nin: [String] - modifiedBy_in: [String] - modifiedBy_gte: String - epoch_date_modified_lt: Int - flagged_dissimilar_incidents_in: [Int] - editor_notes_lt: String - modifiedBy_lte: String - date_nin: [String] - editor_dissimilar_incidents_nin: [Int] - editor_dissimilar_incidents_in: [Int] - epoch_date_modified_nin: [Int] - date_gt: String - date_gte: String - title_lte: String - date: String - date_lte: String - tsne_exists: Boolean - _id_lte: ObjectId - epoch_date_modified_ne: Int - modifiedBy_lt: String - modifiedBy_exists: Boolean - title_ne: String - nlp_similar_incidents_in: [History_incidentNlp_similar_incidentQueryInput] - modifiedBy_nin: [String] - OR: [History_incidentQueryInput!] - reports: [Int] - AllegedDeveloperOfAISystem_exists: Boolean - AllegedHarmedOrNearlyHarmedParties_in: [String] - nlp_similar_incidents: [History_incidentNlp_similar_incidentQueryInput] - modifiedBy_gt: String - modifiedBy_ne: String - incident_id_lte: Int - nlp_similar_incidents_nin: [History_incidentNlp_similar_incidentQueryInput] - nlp_similar_incidents_exists: Boolean - AllegedDeployerOfAISystem_nin: [String] - editor_similar_incidents_in: [Int] - title_lt: String - editor_similar_incidents_nin: [Int] - editor_notes_gte: String - editor_notes: String - _id_in: [ObjectId] - incident_id_lt: Int - editors: [String] - incident_id_gt: Int + tags: [String] title: String - description_exists: Boolean - description_nin: [String] - editor_similar_incidents: [Int] - editors_in: [String] - title_exists: Boolean - reports_nin: [Int] - AllegedHarmedOrNearlyHarmedParties: [String] - description: String - editor_notes_ne: String - flagged_dissimilar_incidents: [Int] +} + +input NotificationUpdateInput { + userId_unset: Boolean + processed_unset: Boolean + sentDate: DateTime + type: String + _id_unset: Boolean + incident_id: Int + type_unset: Boolean + userId: NotificationUserIdRelationInput _id: ObjectId - epoch_date_modified_gt: Int - epoch_date_modified: Int - title_nin: [String] - editors_exists: Boolean - AllegedDeployerOfAISystem_in: [String] - epoch_date_modified_in: [Int] - _id_ne: ObjectId - AllegedHarmedOrNearlyHarmedParties_exists: Boolean - _id_gt: ObjectId - AllegedDeveloperOfAISystem_in: [String] - description_in: [String] - editor_notes_gt: String - incident_id_ne: Int - epoch_date_modified_exists: Boolean - description_gte: String - modifiedBy: String - _id_gte: ObjectId - reports_exists: Boolean - date_in: [String] - date_exists: Boolean + sentDate_unset: Boolean + incident_id_inc: Int + incident_id_unset: Boolean + processed: Boolean } -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 IncidentNlp_similar_incidentUpdateInput { + incident_id_unset: Boolean + similarity: Float + similarity_unset: Boolean + similarity_inc: Float + incident_id: Int + incident_id_inc: Int } -input ReportEmbeddingUpdateInput { - vector_unset: Boolean - from_text_hash: String - from_text_hash_unset: Boolean - vector: [Float] +input IncidentTsneInsertInput { + x: Float + y: Float } -type Entity { +input TaxaInsertInput { + dummy_fields: [TaxaDummy_fieldInsertInput] + field_list: [TaxaField_listInsertInput] + namespace: String + weight: Int _id: ObjectId - created_at: DateTime - date_modified: DateTime - entity_id: String! - name: String! + complete_entities: Boolean + description: String } -input UpdateOneReportTranslationInput { - language: String! - plain_text: String! - report_number: Int! - text: String! - title: String! +enum CandidateSortByInput { + _ID_ASC + DATE_DOWNLOADED_ASC + EPOCH_DATE_DOWNLOADED_ASC + LANGUAGE_ASC + PLAIN_TEXT_DESC + TEXT_ASC + _ID_DESC + DATE_DOWNLOADED_DESC + DATE_PUBLISHED_DESC + EPOCH_DATE_DOWNLOADED_DESC + EPOCH_DATE_PUBLISHED_ASC + IMAGE_URL_ASC + LANGUAGE_DESC + PLAIN_TEXT_ASC + SIMILARITY_ASC + SOURCE_DOMAIN_DESC + TITLE_DESC + DATE_PUBLISHED_ASC + SIMILARITY_DESC + SOURCE_DOMAIN_ASC + TEXT_DESC + TITLE_ASC + URL_ASC + EPOCH_DATE_PUBLISHED_DESC + IMAGE_URL_DESC + URL_DESC } -input History_incidentEmbeddingInsertInput { - vector: [Float] - from_reports: [Int] +input PromoteSubmissionToReportInput { + incident_ids: [Int] + is_incident_report: Boolean + submission_id: ObjectId } -input IncidentUpdateInput { - AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput - reports: IncidentReportsRelationInput - AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput - tsne: IncidentTsneUpdateInput - epoch_date_modified: Int - _id_unset: Boolean - reports_unset: Boolean +input SubmissionNlp_similar_incidentUpdateInput { + incident_id: Int + incident_id_inc: Int incident_id_unset: Boolean - tsne_unset: Boolean - description: String - flagged_dissimilar_incidents: [Int] - editors_unset: Boolean - embedding_unset: Boolean - epoch_date_modified_unset: Boolean - editor_notes_unset: Boolean - AllegedDeveloperOfAISystem_unset: Boolean - description_unset: Boolean - AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput - editor_similar_incidents_unset: Boolean - AllegedHarmedOrNearlyHarmedParties_unset: Boolean - date: String - epoch_date_modified_inc: Int - AllegedDeployerOfAISystem_unset: Boolean - editor_dissimilar_incidents: [Int] - embedding: IncidentEmbeddingUpdateInput - incident_id_inc: Int - editor_notes: String - nlp_similar_incidents: [IncidentNlp_similar_incidentUpdateInput] - _id: ObjectId - editor_dissimilar_incidents_unset: Boolean - editor_similar_incidents: [Int] - title: String - editors: IncidentEditorsRelationInput - date_unset: Boolean - flagged_dissimilar_incidents_unset: Boolean - title_unset: Boolean - incident_id: Int - nlp_similar_incidents_unset: Boolean + similarity: Float + similarity_inc: Float + similarity_unset: Boolean } -input IncidentEmbeddingUpdateInput { - from_reports: [Int] - from_reports_unset: Boolean - vector: [Float] - vector_unset: Boolean +input QuickaddQueryInput { + incident_id_in: [Long] + source_domain_lte: String + OR: [QuickaddQueryInput!] + _id_gte: ObjectId + date_submitted_nin: [String] + incident_id_nin: [Long] + source_domain_lt: String + AND: [QuickaddQueryInput!] + incident_id_gte: Long + url_gt: String + incident_id_exists: Boolean + _id_gt: ObjectId + date_submitted_gt: String + _id_nin: [ObjectId] + date_submitted_in: [String] + source_domain_in: [String] + url_nin: [String] + url_ne: String + incident_id_ne: Long + _id_lte: ObjectId + incident_id_lte: Long + source_domain_ne: String + date_submitted: String + incident_id: Long + _id: ObjectId + url_exists: Boolean + date_submitted_ne: String + source_domain_gt: String + _id_lt: ObjectId + date_submitted_lte: String + _id_ne: ObjectId + url_in: [String] + source_domain_nin: [String] + _id_in: [ObjectId] + url_lt: String + date_submitted_exists: Boolean + url_gte: String + source_domain_gte: String + source_domain: String + source_domain_exists: Boolean + date_submitted_gte: String + url: String + date_submitted_lt: String + incident_id_lt: Long + url_lte: String + _id_exists: Boolean + incident_id_gt: Long } type Classification { @@ -908,2406 +1010,2363 @@ type Classification { reports: [Report]! } -input SubmissionNlp_similar_incidentUpdateInput { - similarity_inc: Float - similarity_unset: Boolean - incident_id: Int - incident_id_inc: Int - incident_id_unset: Boolean - similarity: Float -} - -input ChecklistRiskPrecedentUpdateInput { - incident_id_unset: Boolean - tags_unset: Boolean - title_unset: Boolean - incident_id: Int - incident_id_inc: Int - description: String - tags: [String] - description_unset: Boolean - title: String -} - -input History_reportEmbeddingUpdateInput { - vector_unset: Boolean - from_text_hash: String - from_text_hash_unset: Boolean +input History_incidentEmbeddingQueryInput { + vector_exists: Boolean + AND: [History_incidentEmbeddingQueryInput!] + from_reports_exists: Boolean vector: [Float] + vector_nin: [Float] + OR: [History_incidentEmbeddingQueryInput!] + from_reports_in: [Int] + vector_in: [Float] + from_reports_nin: [Int] + from_reports: [Int] } -type Duplicate { - _id: ObjectId - duplicate_incident_number: Int - true_incident_number: Int +type LogReportHistoryPayload { + report_number: Int } -type DeleteManyPayload { - deletedCount: Int! +input IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput { + create: [EntityInsertInput] + link: [String] } -input EntityInsertInput { - name: String! +input IncidentInsertInput { + flagged_dissimilar_incidents: [Int] + reports: IncidentReportsRelationInput! + editor_notes: String + embedding: IncidentEmbeddingInsertInput + epoch_date_modified: Int _id: ObjectId - created_at: DateTime - date_modified: DateTime - entity_id: String! + tsne: IncidentTsneInsertInput + incident_id: Int! + editor_similar_incidents: [Int] + nlp_similar_incidents: [IncidentNlp_similar_incidentInsertInput] + title: String! + editor_dissimilar_incidents: [Int] + date: String! + implicated_systems: IncidentImplicated_systemsRelationInput + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput + editors: IncidentEditorsRelationInput! + description: String + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput } -input SubmissionEmbeddingUpdateInput { +input ReportEmbeddingInsertInput { from_text_hash: String - from_text_hash_unset: Boolean vector: [Float] - vector_unset: Boolean } -input ChecklistQueryInput { - about_exists: Boolean - tags_goals_nin: [String] - id_lt: String - date_updated_lt: DateTime - _id: ObjectId - date_created_gt: DateTime +input NotificationQueryInput { + sentDate: DateTime + processed_exists: Boolean + _id_lte: ObjectId + OR: [NotificationQueryInput!] + type: String + type_nin: [String] + _id_gt: ObjectId _id_gte: ObjectId - tags_other: [String] - date_updated_in: [DateTime] - tags_goals_exists: Boolean - owner_id: String - date_updated: DateTime - tags_methods: [String] - entity_id_ne: String - tags_other_exists: Boolean - about_gt: String + processed: Boolean + type_in: [String] + incident_id_ne: Int + type_exists: Boolean + sentDate_in: [DateTime] + _id_exists: Boolean + type_gte: String + incident_id_in: [Int] + AND: [NotificationQueryInput!] + incident_id_nin: [Int] + incident_id_lte: Int + sentDate_gt: DateTime + sentDate_lte: DateTime + type_lt: String + incident_id_gte: Int + incident_id_exists: Boolean + sentDate_nin: [DateTime] + incident_id: Int _id_in: [ObjectId] - name_lte: String - about_lt: String - _id_ne: ObjectId - tags_goals_in: [String] - tags_methods_nin: [String] - entity_id_nin: [String] - name: String - entity_id_gte: String - about_gte: String - risks_nin: [ChecklistRiskQueryInput] - name_lt: String - id_exists: Boolean - tags_goals: [String] - date_created_in: [DateTime] - date_created_lt: DateTime - entity_id_lt: String - entity_id_exists: Boolean - name_gt: String - entity_id_gt: String + type_gt: String + type_lte: String _id_lt: ObjectId - date_updated_exists: Boolean - date_updated_nin: [DateTime] - date_created_lte: DateTime - about: String - about_nin: [String] - date_updated_lte: DateTime - risks_exists: Boolean - owner_id_nin: [String] - _id_exists: Boolean - entity_id_lte: String - date_created: DateTime - id_ne: String - date_created_nin: [DateTime] - _id_gt: ObjectId - id_lte: String - entity_id: String - name_in: [String] - id_gt: String - owner_id_in: [String] - name_ne: String - date_updated_gt: DateTime - _id_lte: ObjectId - about_ne: String - risks_in: [ChecklistRiskQueryInput] - id_nin: [String] - tags_methods_in: [String] - date_created_exists: Boolean - owner_id_exists: Boolean - about_lte: String - owner_id_gte: String - owner_id_gt: String - date_updated_gte: DateTime - name_exists: Boolean - owner_id_ne: String + _id_ne: ObjectId + processed_ne: Boolean _id_nin: [ObjectId] - tags_methods_exists: Boolean - entity_id_in: [String] - about_in: [String] - owner_id_lt: String - owner_id_lte: String - tags_other_nin: [String] - date_created_ne: DateTime - id: String - name_nin: [String] - risks: [ChecklistRiskQueryInput] - OR: [ChecklistQueryInput!] - date_created_gte: DateTime - id_gte: String - AND: [ChecklistQueryInput!] - tags_other_in: [String] - name_gte: String - id_in: [String] - date_updated_ne: DateTime -} - -input History_incidentUpdateInput { - AllegedHarmedOrNearlyHarmedParties: [String] - editor_dissimilar_incidents_unset: Boolean - flagged_dissimilar_incidents_unset: Boolean - modifiedBy_unset: Boolean - AllegedHarmedOrNearlyHarmedParties_unset: Boolean - embedding: History_incidentEmbeddingUpdateInput - reports: [Int] - AllegedDeveloperOfAISystem: [String] - AllegedDeployerOfAISystem: [String] - editor_dissimilar_incidents: [Int] - flagged_dissimilar_incidents: [Int] - date: String - tsne: History_incidentTsneUpdateInput - incident_id: Int - nlp_similar_incidents_unset: Boolean - epoch_date_modified_inc: Int - editor_notes: String - title_unset: Boolean - incident_id_inc: Int - nlp_similar_incidents: [History_incidentNlp_similar_incidentUpdateInput] - editor_similar_incidents: [Int] - _id_unset: Boolean - epoch_date_modified_unset: Boolean - editors_unset: Boolean - title: String - AllegedDeveloperOfAISystem_unset: Boolean - incident_id_unset: Boolean - tsne_unset: Boolean - AllegedDeployerOfAISystem_unset: Boolean + sentDate_gte: DateTime + sentDate_exists: Boolean + sentDate_ne: DateTime + userId_exists: Boolean + type_ne: String + incident_id_lt: Int + userId: UserQueryInput + incident_id_gt: Int _id: ObjectId - description_unset: Boolean - date_unset: Boolean - epoch_date_modified: Int - editor_similar_incidents_unset: Boolean - reports_unset: Boolean - editor_notes_unset: Boolean - editors: [String] - modifiedBy: String - embedding_unset: Boolean - description: String -} - -input SubmissionEmbeddingInsertInput { - vector: [Float] - from_text_hash: String -} - -input ClassificationReportsRelationInput { - create: [ReportInsertInput] - link: [Int] -} - -input History_reportEmbeddingInsertInput { - from_text_hash: String - vector: [Float] -} - -type History_reportEmbedding { - from_text_hash: String - vector: [Float] -} - -type TaxaDummy_field { - field_number: String - short_name: String + sentDate_lt: DateTime } -input UserUpdateInput { - last_name_unset: Boolean - first_name_unset: Boolean - roles: [String] - _id_unset: Boolean - first_name: String - roles_unset: Boolean - userId_unset: Boolean - last_name: String - userId: String - _id: ObjectId +input IncidentImplicated_systemsRelationInput { + create: [EntityInsertInput] + link: [String] } -input ClassificationInsertInput { - attributes: [ClassificationAttributeInsertInput] - incidents: ClassificationIncidentsRelationInput! - namespace: String! - notes: String - publish: Boolean - reports: ClassificationReportsRelationInput! +input SubmissionInsertInput { + submitters: [String]! + epoch_date_modified: Int + cloudinary_id: String + title: String! + url: String! _id: ObjectId + date_downloaded: String! + user: SubmissionUserRelationInput + date_published: String! + image_url: String! + incident_editors: SubmissionIncident_editorsRelationInput + editor_similar_incidents: [Int] + text: String! + date_submitted: String! + embedding: SubmissionEmbeddingInsertInput + date_modified: String! + tags: [String]! + incident_title: String + deployers: SubmissionDeployersRelationInput + nlp_similar_incidents: [SubmissionNlp_similar_incidentInsertInput] + plain_text: String + authors: [String]! + editor_notes: String + incident_ids: [Int] + harmed_parties: SubmissionHarmed_partiesRelationInput + quiet: Boolean + description: String + developers: SubmissionDevelopersRelationInput + language: String! + implicated_systems: SubmissionImplicated_systemsRelationInput + source_domain: String! + status: String + editor_dissimilar_incidents: [Int] + incident_date: String } -input CandidateQueryInput { - image_url_lt: String - plain_text_gte: String - url_ne: String - _id_gte: ObjectId - similarity_in: [Float] - image_url_in: [String] - image_url_gt: String - similarity_lte: Float - date_downloaded_gt: String - plain_text_exists: Boolean - url_lt: String - classification_similarity_in: [CandidateClassification_similarityQueryInput] - plain_text_ne: String - epoch_date_downloaded_gt: Int - epoch_date_published_gte: Int - classification_similarity_exists: Boolean - source_domain_lte: String - embedding_exists: Boolean - text_ne: String - image_url_ne: String - epoch_date_downloaded_nin: [Int] - source_domain: String - url_exists: Boolean - authors: [String] - text_gt: String +input ChecklistRiskPrecedentQueryInput { + title_exists: Boolean + tags_exists: Boolean + incident_id_exists: Boolean title_gte: String - source_domain_ne: String - epoch_date_downloaded_gte: Int - image_url_exists: Boolean - date_published_in: [String] - plain_text_in: [String] - classification_similarity_nin: [CandidateClassification_similarityQueryInput] - language_ne: String - date_downloaded_lt: String + title: String + description_lte: String + incident_id_lte: Int + incident_id_gte: Int + description_nin: [String] + description: String + incident_id_ne: Int + title_lt: String + tags: [String] + incident_id_in: [Int] + description_lt: String + title_nin: [String] + OR: [ChecklistRiskPrecedentQueryInput!] + description_exists: Boolean + tags_in: [String] + incident_id: Int + title_ne: String + description_ne: String + description_gte: String + incident_id_gt: Int + tags_nin: [String] + incident_id_lt: Int + title_gt: String title_in: [String] - text_lte: String - similarity_ne: Float - matching_entities_exists: Boolean - authors_nin: [String] - epoch_date_downloaded_exists: Boolean - epoch_date_published_ne: Int - source_domain_gt: String - text_nin: [String] - url_in: [String] - _id_nin: [ObjectId] - matching_entities: [String] - matching_harm_keywords_exists: Boolean - match: Boolean - date_published_gt: String - match_ne: Boolean - epoch_date_downloaded_lt: Int - epoch_date_published: Int - date_published_exists: Boolean + incident_id_nin: [Int] + title_lte: String + AND: [ChecklistRiskPrecedentQueryInput!] + description_in: [String] + description_gt: String +} + +input SubmissionQueryInput { + cloudinary_id_ne: String + submitters_nin: [String] title_ne: String - plain_text_lt: String - epoch_date_published_lt: Int - matching_keywords_exists: Boolean + date_downloaded_nin: [String] + incident_ids_exists: Boolean + language_gt: String + editor_similar_incidents_nin: [Int] date_published_ne: String - dismissed: Boolean - epoch_date_published_nin: [Int] + title_nin: [String] + date_modified_in: [String] + _id_nin: [ObjectId] + incident_date_exists: Boolean + AND: [SubmissionQueryInput!] + incident_editors_exists: Boolean + nlp_similar_incidents_nin: [SubmissionNlp_similar_incidentQueryInput] url_gte: String + url_gt: String + cloudinary_id_in: [String] + incident_editors: [UserQueryInput] + nlp_similar_incidents_exists: Boolean + date_modified_lte: String plain_text_gt: String - title_lte: String - language_gt: String - similarity_exists: Boolean - similarity: Float - date_downloaded_lte: String - language: String - text_gte: String - _id_lt: ObjectId - date_published_gte: String - language_exists: Boolean - source_domain_exists: Boolean - epoch_date_downloaded_ne: Int - date_downloaded_gte: String - plain_text: String - date_downloaded_ne: String + user: UserQueryInput + embedding_exists: Boolean + language_lt: String + url_lte: String + incident_title: String + _id: ObjectId + submitters_in: [String] + quiet_exists: Boolean + image_url_lt: String + image_url_exists: Boolean + text_lte: String + epoch_date_modified_lt: Int + editor_notes_lt: String + language_in: [String] title_lt: String - dismissed_ne: Boolean + _id_in: [ObjectId] + date_downloaded_lt: String + developers: [EntityQueryInput] + incident_title_lte: String + incident_ids: [Int] + description_ne: String + plain_text_gte: String + harmed_parties_in: [EntityQueryInput] + incident_date: String + developers_nin: [EntityQueryInput] + date_submitted_exists: Boolean + image_url_ne: String + authors_nin: [String] + incident_editors_nin: [UserQueryInput] + implicated_systems_in: [EntityQueryInput] + plain_text_lt: String + description_lt: String + nlp_similar_incidents: [SubmissionNlp_similar_incidentQueryInput] + epoch_date_modified: Int + status_gte: String + url_lt: String image_url_gte: String - similarity_gte: Float - title: String - text_in: [String] - epoch_date_downloaded_in: [Int] - similarity_lt: Float - epoch_date_published_gt: Int - date_downloaded_exists: Boolean - epoch_date_downloaded: Int - language_gte: String - epoch_date_published_lte: Int - classification_similarity: [CandidateClassification_similarityQueryInput] - language_lte: String - source_domain_lt: String - language_nin: [String] - date_downloaded: String - title_gt: String - date_downloaded_nin: [String] - date_published: String - image_url_lte: String - plain_text_nin: [String] - title_nin: [String] + editor_notes_gt: String + editor_similar_incidents_exists: Boolean + plain_text: String + editor_dissimilar_incidents_nin: [Int] + cloudinary_id_lt: String + date_downloaded_ne: String + incident_date_lt: String _id_exists: Boolean - similarity_gt: Float - image_url_nin: [String] - epoch_date_published_in: [Int] - date_published_nin: [String] - matching_harm_keywords: [String] + tags_nin: [String] + epoch_date_modified_nin: [Int] _id_ne: ObjectId - OR: [CandidateQueryInput!] + epoch_date_modified_in: [Int] + editor_notes_in: [String] + image_url: String + deployers_in: [EntityQueryInput] + text_nin: [String] + implicated_systems_nin: [EntityQueryInput] + date_downloaded: String + source_domain_nin: [String] + date_published_lt: String + text_gte: String + description_exists: Boolean + title_lte: String + editor_dissimilar_incidents_in: [Int] + source_domain: String + url_in: [String] + incident_editors_in: [UserQueryInput] + plain_text_lte: String + date_modified_lt: String + status_gt: String + _id_lt: ObjectId + source_domain_exists: Boolean + developers_exists: Boolean + cloudinary_id_gt: String + editor_dissimilar_incidents: [Int] + plain_text_ne: String + user_exists: Boolean + editor_notes: String + authors_exists: Boolean + date_submitted_lt: String + text_exists: Boolean + epoch_date_modified_lte: Int + submitters_exists: Boolean + description: String + date_submitted_lte: String + date_modified: String + editor_similar_incidents: [Int] + status: String title_exists: Boolean - matching_keywords: [String] - language_in: [String] - matching_entities_nin: [String] - matching_keywords_in: [String] - url_gt: String - _id_in: [ObjectId] - epoch_date_published_exists: Boolean - matching_harm_keywords_in: [String] - _id_gt: ObjectId + incident_title_lt: String + date_published_nin: [String] + epoch_date_modified_exists: Boolean + language_lte: String + date_downloaded_gt: String + date_downloaded_in: [String] + deployers_exists: Boolean + _id_lte: ObjectId + date_published_exists: Boolean + date_modified_nin: [String] + date_submitted_ne: String + date_downloaded_exists: Boolean + quiet: Boolean + date_submitted: String + plain_text_exists: Boolean + title_gte: String + epoch_date_modified_gt: Int + implicated_systems_exists: Boolean + incident_title_in: [String] + epoch_date_modified_ne: Int + harmed_parties: [EntityQueryInput] + epoch_date_modified_gte: Int + deployers_nin: [EntityQueryInput] + OR: [SubmissionQueryInput!] + cloudinary_id_gte: String + incident_date_ne: String + cloudinary_id_nin: [String] + date_downloaded_gte: String + editor_similar_incidents_in: [Int] + date_modified_gt: String + date_published_gt: String + date_published_lte: String + date_submitted_in: [String] + incident_title_gte: String + text_in: [String] + date_submitted_gt: String + source_domain_gte: String + incident_title_exists: Boolean + status_lte: String + implicated_systems: [EntityQueryInput] + incident_title_gt: String + language_ne: String + incident_date_nin: [String] + title_in: [String] + language_gte: String + description_lte: String + harmed_parties_exists: Boolean + url_exists: Boolean url_nin: [String] - dismissed_exists: Boolean - url_lte: String + incident_date_gte: String + date_downloaded_lte: String + source_domain_lt: String + status_nin: [String] + title: String + _id_gt: ObjectId + incident_title_nin: [String] + embedding: SubmissionEmbeddingQueryInput + incident_ids_nin: [Int] + date_published: String + authors: [String] + editor_dissimilar_incidents_exists: Boolean + incident_title_ne: String + language_exists: Boolean + source_domain_ne: String + cloudinary_id_lte: String + date_modified_ne: String + developers_in: [EntityQueryInput] + cloudinary_id_exists: Boolean + status_ne: String + status_lt: String + incident_date_in: [String] + tags_exists: Boolean + _id_gte: ObjectId + status_exists: Boolean + incident_ids_in: [Int] + deployers: [EntityQueryInput] + url_ne: String + description_gt: String url: String - matching_harm_keywords_nin: [String] - AND: [CandidateQueryInput!] - source_domain_nin: [String] - date_downloaded_in: [String] - language_lt: String - epoch_date_downloaded_lte: Int + date_published_gte: String + language_nin: [String] authors_in: [String] - embedding: CandidateEmbeddingQueryInput - similarity_nin: [Float] - text_exists: Boolean - matching_keywords_nin: [String] - date_published_lte: String + description_gte: String + description_nin: [String] + plain_text_in: [String] + date_modified_exists: Boolean + description_in: [String] + text_gt: String source_domain_in: [String] - _id: ObjectId - matching_entities_in: [String] - image_url: String - authors_exists: Boolean - _id_lte: ObjectId + image_url_lte: String text: String - date_published_lt: String + source_domain_gt: String + title_gt: String + nlp_similar_incidents_in: [SubmissionNlp_similar_incidentQueryInput] + image_url_nin: [String] + editor_notes_lte: String + editor_notes_exists: Boolean + image_url_gt: String + submitters: [String] + editor_notes_nin: [String] + date_published_in: [String] + incident_date_lte: String + status_in: [String] + plain_text_nin: [String] text_lt: String - plain_text_lte: String - source_domain_gte: String - match_exists: Boolean -} - -type CandidateClassification_similarity { - classification: String - similarity: Float -} - -input ReportEmbeddingInsertInput { - from_text_hash: String - vector: [Float] -} - -scalar DateTime - -type ChecklistRiskPrecedent { - description: String - incident_id: Int + editor_notes_ne: String + text_ne: String + harmed_parties_nin: [EntityQueryInput] + date_submitted_nin: [String] + date_submitted_gte: String + date_modified_gte: String + image_url_in: [String] + source_domain_lte: String + incident_date_gt: String + editor_notes_gte: String + tags_in: [String] + language: String tags: [String] - title: String + cloudinary_id: String + quiet_ne: Boolean } -input ReportUserRelationInput { - create: UserInsertInput - link: String +input EntityInsertInput { + _id: ObjectId + created_at: DateTime + date_modified: DateTime + entity_id: String! + name: String! } -type Quickadd { +type LogIncidentHistoryPayload { + incident_id: Int +} + +type History_report { _id: ObjectId - date_submitted: String! - incident_id: Long - source_domain: String + 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! + quiet: Boolean + report_number: Int! + source_domain: String! + submitters: [String]! + tags: [String]! + text: String! + title: String! url: String! + user: String } -input DuplicateInsertInput { - _id: ObjectId - duplicate_incident_number: Int - true_incident_number: Int +enum ReportSortByInput { + CLOUDINARY_ID_ASC + DATE_DOWNLOADED_DESC + EPOCH_DATE_DOWNLOADED_DESC + EPOCH_DATE_SUBMITTED_DESC + IMAGE_URL_DESC + _ID_DESC + TITLE_DESC + DATE_PUBLISHED_ASC + EDITOR_NOTES_DESC + LANGUAGE_ASC + LANGUAGE_DESC + SOURCE_DOMAIN_DESC + TEXT_ASC + IMAGE_URL_ASC + URL_ASC + _ID_ASC + DATE_SUBMITTED_ASC + DATE_SUBMITTED_DESC + EPOCH_DATE_PUBLISHED_ASC + EPOCH_DATE_PUBLISHED_DESC + EPOCH_DATE_SUBMITTED_ASC + URL_DESC + DESCRIPTION_ASC + EDITOR_NOTES_ASC + REPORT_NUMBER_ASC + TEXT_DESC + USER_ASC + DATE_MODIFIED_ASC + PLAIN_TEXT_DESC + REPORT_NUMBER_DESC + EPOCH_DATE_DOWNLOADED_ASC + TITLE_ASC + USER_DESC + EPOCH_DATE_MODIFIED_DESC + PLAIN_TEXT_ASC + CLOUDINARY_ID_DESC + DATE_DOWNLOADED_ASC + DATE_MODIFIED_DESC + DATE_PUBLISHED_DESC + DESCRIPTION_DESC + EPOCH_DATE_MODIFIED_ASC + SOURCE_DOMAIN_ASC } -input CreateDefaultAdminUserInput { - password: String - email: String +enum NotificationSortByInput { + USERID_ASC + _ID_DESC + INCIDENT_ID_ASC + SENTDATE_ASC + SENTDATE_DESC + TYPE_DESC + _ID_ASC + INCIDENT_ID_DESC + TYPE_ASC + USERID_DESC } -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 CandidateClassification_similarityUpdateInput { + similarity_unset: Boolean + classification: String + classification_unset: Boolean + similarity: Float + similarity_inc: Float } -type IncidentTsne { - x: Float - y: Float +input History_incidentEmbeddingUpdateInput { + from_reports: [Int] + from_reports_unset: Boolean + vector: [Float] + vector_unset: Boolean } -type LogIncidentHistoryPayload { - incident_id: Int +input LinkReportsToIncidentsInput { + incident_ids: [Int] + report_numbers: [Int] } -input History_reportQueryInput { +input IncidentEmbeddingQueryInput { + from_reports_nin: [Int] + vector_in: [Float] + vector_nin: [Float] + vector_exists: Boolean + AND: [IncidentEmbeddingQueryInput!] + from_reports_exists: Boolean + vector: [Float] + OR: [IncidentEmbeddingQueryInput!] + from_reports: [Int] + from_reports_in: [Int] +} + +input History_incidentTsneInsertInput { + y: Float + x: Float +} + +input ReportQueryInput { + AND: [ReportQueryInput!] + date_published: DateTime + date_submitted_lte: DateTime + _id_nin: [ObjectId] + date_downloaded: DateTime + language: String + embedding_exists: Boolean + editor_notes_nin: [String] + date_modified_ne: DateTime + epoch_date_published_gte: Int + submitters: [String] + editor_notes_in: [String] + epoch_date_published_in: [Int] + date_published_lte: DateTime + text_gte: String + epoch_date_downloaded: Int + date_published_ne: DateTime + epoch_date_submitted_lt: Int image_url_in: [String] + title_exists: Boolean + date_submitted_ne: DateTime + editor_notes: String + authors_exists: Boolean + source_domain_gt: String + description_gte: String + image_url: String + date_downloaded_exists: Boolean + text_nin: [String] + is_incident_report_ne: Boolean + epoch_date_submitted_ne: Int + language_exists: Boolean + image_url_nin: [String] + _id_ne: ObjectId + date_modified_nin: [DateTime] + plain_text_exists: Boolean + source_domain: String + url_ne: String + editor_notes_lt: String + tags_exists: Boolean + image_url_lt: String epoch_date_submitted_lte: Int - date_published_ne: DateTime + date_downloaded_gt: DateTime + user: UserQueryInput + source_domain_lt: String + quiet_ne: Boolean + quiet_exists: Boolean + date_downloaded_lte: DateTime epoch_date_published_lte: Int - epoch_date_submitted_ne: Int - epoch_date_modified_gte: Int - report_number_gte: Int - quiet: Boolean - title: String + flag_exists: Boolean + date_downloaded_ne: DateTime + submitters_nin: [String] + cloudinary_id_exists: Boolean + epoch_date_downloaded_gte: Int + text: String + language_lt: String + title_lte: String + epoch_date_downloaded_lte: Int + date_published_lt: DateTime + cloudinary_id_gte: String + date_submitted_in: [DateTime] date_downloaded_gte: DateTime - flag_ne: Boolean - url_gte: String - url_exists: Boolean - modifiedBy_in: [String] - date_downloaded: DateTime - date_published_exists: Boolean + date_submitted_exists: Boolean + image_url_ne: String + tags_in: [String] + plain_text: String + plain_text_lt: String + epoch_date_downloaded_gt: Int report_number_nin: [Int] - tags_exists: Boolean - user: String - _id_gte: ObjectId - title_ne: String - modifiedBy_gte: String - title_gte: String - editor_notes_gte: String - embedding: History_reportEmbeddingQueryInput - text_in: [String] - source_domain_nin: [String] - epoch_date_submitted_nin: [Int] - epoch_date_downloaded_ne: Int - date_modified: DateTime - date_downloaded_lt: DateTime - text_ne: String - date_submitted_lt: DateTime - cloudinary_id: String - date_downloaded_lte: DateTime - cloudinary_id_nin: [String] - epoch_date_downloaded_lte: Int - date_submitted: DateTime - tags: [String] - user_lt: String + date_published_gt: DateTime + plain_text_in: [String] + epoch_date_modified: Int + date_modified_gte: DateTime + submitters_in: [String] + epoch_date_submitted_gte: Int + url_lte: String + source_domain_ne: String + epoch_date_submitted_gt: Int editor_notes_exists: Boolean - description: String + flag: Boolean + plain_text_gt: String + source_domain_nin: [String] + source_domain_exists: Boolean url: String - epoch_date_submitted_in: [Int] - epoch_date_submitted_gte: Int - _id: ObjectId - date_modified_gte: DateTime - _id_exists: Boolean - language_lte: String - authors_in: [String] + date_submitted_gte: DateTime + report_number_exists: Boolean description_lte: String - source_domain_exists: Boolean - authors_nin: [String] - editor_notes_gt: String - modifiedBy_lte: String - text_gte: String - image_url_lt: String - title_exists: Boolean - modifiedBy_ne: String - source_domain_in: [String] + text_exists: Boolean date_submitted_gt: DateTime + cloudinary_id: String + title: String + cloudinary_id_lte: String + date_published_gte: DateTime + epoch_date_modified_in: [Int] + source_domain_in: [String] + date_submitted_lt: DateTime + tags_nin: [String] + epoch_date_downloaded_in: [Int] + date_modified_gt: DateTime + inputs_outputs_exists: Boolean date_downloaded_nin: [DateTime] - date_published_gt: DateTime - _id_in: [ObjectId] - modifiedBy_gt: String - modifiedBy_lt: String - description_in: [String] - url_gt: String - date_submitted_ne: DateTime - date_submitted_gte: DateTime - epoch_date_published: Int - epoch_date_downloaded_gte: Int - quiet_exists: Boolean - plain_text_gte: String - language_gt: String - language_lt: String source_domain_lte: String - report_number_ne: Int - epoch_date_submitted: Int - plain_text_lte: String - cloudinary_id_in: [String] - url_in: [String] - plain_text_lt: String - text_exists: Boolean - epoch_date_modified_gt: Int - url_lte: String - epoch_date_downloaded_gt: Int - cloudinary_id_lt: String - text_lt: String - date_downloaded_in: [DateTime] - is_incident_report_ne: Boolean - inputs_outputs_in: [String] - report_number_exists: Boolean - date_submitted_nin: [DateTime] - authors_exists: Boolean _id_lte: ObjectId - language_ne: String - date_published_lt: DateTime - title_lte: String - epoch_date_modified: Int - date_published_gte: DateTime - cloudinary_id_ne: String - date_downloaded_ne: DateTime + date_submitted_nin: [DateTime] + epoch_date_submitted_exists: Boolean + report_number_gt: Int + editor_notes_ne: String + _id: ObjectId + text_lte: String + user_exists: Boolean + epoch_date_published_ne: Int is_incident_report_exists: Boolean - date_submitted_lte: DateTime - user_nin: [String] - source_domain_ne: String - user_gte: String - date_published_nin: [DateTime] - modifiedBy: String - description_exists: Boolean - language_exists: Boolean - epoch_date_downloaded_exists: Boolean - date_modified_gt: DateTime - date_downloaded_exists: Boolean - cloudinary_id_lte: String - image_url_nin: [String] - title_gt: String - epoch_date_modified_ne: Int - submitters_nin: [String] - editor_notes_nin: [String] - flag: Boolean - epoch_date_downloaded_lt: Int - epoch_date_submitted_gt: Int - embedding_exists: Boolean - image_url_exists: Boolean - url_lt: String - text_nin: [String] + inputs_outputs_in: [String] url_nin: [String] - report_number_lt: Int - _id_nin: [ObjectId] - editor_notes_lte: String - image_url: String - tags_nin: [String] - epoch_date_submitted_exists: Boolean + description_ne: String + description_lt: String epoch_date_published_lt: Int - submitters: [String] - language_in: [String] - source_domain_lt: String - date_submitted_exists: Boolean - url_ne: String - quiet_ne: Boolean - title_nin: [String] - epoch_date_modified_nin: [Int] - epoch_date_modified_exists: Boolean - date_submitted_in: [DateTime] - epoch_date_published_ne: Int - date_modified_lt: DateTime - language_nin: [String] - inputs_outputs_nin: [String] - epoch_date_modified_lte: Int - report_number: Int - authors: [String] - user_lte: String - cloudinary_id_exists: Boolean - date_modified_ne: DateTime + date_submitted: DateTime + _id_lt: ObjectId + _id_gt: ObjectId + cloudinary_id_in: [String] + cloudinary_id_gt: String title_in: [String] - language_gte: String - submitters_exists: Boolean - epoch_date_submitted_lt: Int - image_url_gte: String - is_incident_report: Boolean - plain_text_ne: String - description_gte: String + epoch_date_published_gt: Int + date_modified_exists: Boolean epoch_date_modified_lt: Int + cloudinary_id_ne: String + epoch_date_downloaded_lt: Int + date_modified_lte: DateTime + title_lt: String inputs_outputs: [String] + plain_text_lte: String + epoch_date_submitted_in: [Int] + text_lt: String + description_exists: Boolean + epoch_date_submitted_nin: [Int] + epoch_date_modified_gt: Int + epoch_date_published: Int epoch_date_published_nin: [Int] - user_in: [String] - submitters_in: [String] - language: String - date_modified_lte: DateTime - editor_notes: String - plain_text: String - tags_in: [String] - source_domain_gte: String - epoch_date_published_in: [Int] date_published_in: [DateTime] - description_nin: [String] - image_url_ne: String - text_lte: String + image_url_lte: String + epoch_date_modified_exists: Boolean + title_gte: String + text_ne: String + submitters_exists: Boolean + image_url_gte: String + date_modified_in: [DateTime] + epoch_date_downloaded_exists: Boolean + date_downloaded_in: [DateTime] + image_url_exists: Boolean + url_lt: String + epoch_date_submitted: Int + cloudinary_id_lt: String + report_number_in: [Int] + title_nin: [String] + editor_notes_gte: String + epoch_date_modified_gte: Int + embedding: ReportEmbeddingQueryInput + authors: [String] + authors_nin: [String] + image_url_gt: String + date_published_exists: Boolean + url_gte: String + quiet: Boolean + description_in: [String] + url_exists: Boolean description_gt: String + source_domain_gte: String + title_ne: String + epoch_date_modified_lte: Int + plain_text_ne: String + is_incident_report: Boolean + language_nin: [String] + language_ne: String + date_downloaded_lt: DateTime + language_lte: String + OR: [ReportQueryInput!] + date_modified: DateTime text_gt: String - image_url_gt: String - date_modified_nin: [DateTime] - epoch_date_published_exists: Boolean - flag_exists: Boolean - report_number_lte: Int + editor_notes_lte: String + authors_in: [String] + language_gt: String + url_in: [String] + text_in: [String] + report_number_gte: Int + inputs_outputs_nin: [String] + cloudinary_id_nin: [String] + plain_text_gte: String + report_number_ne: Int + epoch_date_downloaded_ne: Int + language_gte: String + report_number_lt: Int epoch_date_downloaded_nin: [Int] - plain_text_gt: String - date_modified_exists: Boolean - plain_text_in: [String] + tags: [String] + url_gt: String + report_number: Int + description: String + description_nin: [String] + title_gt: String + _id_in: [ObjectId] plain_text_nin: [String] - date_published_lte: DateTime - _id_ne: ObjectId - image_url_lte: String - date_downloaded_gt: DateTime - text: String - _id_gt: ObjectId - OR: [History_reportQueryInput!] - report_number_gt: Int - _id_lt: ObjectId - source_domain_gt: String - user_ne: String - user_gt: String - cloudinary_id_gt: String - epoch_date_modified_in: [Int] - modifiedBy_exists: Boolean - editor_notes_ne: String - user_exists: Boolean - report_number_in: [Int] - epoch_date_published_gte: Int - description_lt: String - epoch_date_published_gt: Int - source_domain: String - title_lt: String - cloudinary_id_gte: String - editor_notes_in: [String] - date_published: DateTime - epoch_date_downloaded_in: [Int] - modifiedBy_nin: [String] - date_modified_in: [DateTime] - inputs_outputs_exists: Boolean - epoch_date_downloaded: Int - plain_text_exists: Boolean - AND: [History_reportQueryInput!] - description_ne: String - editor_notes_lt: String + _id_exists: Boolean + epoch_date_modified_ne: Int + report_number_lte: Int + language_in: [String] + flag_ne: Boolean + editor_notes_gt: String + epoch_date_published_exists: Boolean + date_published_nin: [DateTime] + _id_gte: ObjectId + epoch_date_modified_nin: [Int] + date_modified_lt: DateTime } -input SubmissionIncident_editorsRelationInput { - link: [String] - create: [UserInsertInput] +input ClassificationUpdateInput { + reports_unset: Boolean + notes: String + reports: ClassificationReportsRelationInput + _id: ObjectId + incidents: ClassificationIncidentsRelationInput + incidents_unset: Boolean + notes_unset: Boolean + attributes_unset: Boolean + _id_unset: Boolean + attributes: [ClassificationAttributeUpdateInput] + namespace_unset: Boolean + publish_unset: Boolean + namespace: String + publish: Boolean } -input ClassificationIncidentsRelationInput { - link: [Int] - create: [IncidentInsertInput] +input History_incidentTsneUpdateInput { + x: Float + x_inc: Float + x_unset: Boolean + y: Float + y_inc: Float + y_unset: Boolean } -input SubscriptionQueryInput { - type_exists: Boolean - type_gte: String - userId_exists: Boolean - _id_nin: [ObjectId] - _id_ne: ObjectId - incident_id_exists: Boolean - entityId: EntityQueryInput - AND: [SubscriptionQueryInput!] - type_gt: String - incident_id: IncidentQueryInput - type: String - _id_lt: ObjectId - _id_lte: ObjectId - _id_in: [ObjectId] - userId: UserQueryInput - type_lte: String - type_lt: String - entityId_exists: Boolean - _id_gt: ObjectId - type_ne: String - OR: [SubscriptionQueryInput!] +input QuickaddInsertInput { + date_submitted: String! + incident_id: Long + source_domain: String + url: String! _id: ObjectId - _id_exists: Boolean - _id_gte: ObjectId - type_in: [String] - type_nin: [String] } -input ClassificationAttributeInsertInput { - short_name: String - value_json: String +input History_reportEmbeddingUpdateInput { + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] + vector_unset: Boolean } -input TaxaField_listInsertInput { - long_name: String - complete_from: TaxaField_listComplete_fromInsertInput - public: Boolean - permitted_values: [String] - field_number: String - display_type: String - placeholder: String - default: String - short_name: String - hide_search: Boolean - short_description: String - weight: Int - required: Boolean - instant_facet: Boolean - item_fields: TaxaField_listItem_fieldInsertInput - mongo_type: String - long_description: String +input SubmissionEmbeddingUpdateInput { + from_text_hash: String + from_text_hash_unset: Boolean + vector: [Float] + vector_unset: Boolean } -input TaxaField_listItem_fieldComplete_fromUpdateInput { - all_unset: Boolean - current: [String] - current_unset: Boolean - entities: Boolean - entities_unset: Boolean - all: [String] +input DuplicateInsertInput { + _id: ObjectId + duplicate_incident_number: Int + true_incident_number: Int } -input TaxaField_listQueryInput { - mongo_type_nin: [String] - long_name_nin: [String] - placeholder_in: [String] - short_description_lte: String - field_number_nin: [String] - short_description: String - display_type_ne: String - long_description_in: [String] - placeholder_gt: String - instant_facet_exists: Boolean - permitted_values_nin: [String] - display_type_lt: String - weight_ne: Int - field_number_ne: String - long_name_exists: Boolean - public_exists: Boolean - required: Boolean - OR: [TaxaField_listQueryInput!] - short_description_gt: String - mongo_type_lt: String - long_description_lt: String - default_lt: String - display_type_lte: String - display_type_nin: [String] - short_name_lte: String - placeholder_ne: String - long_name_lte: String - default_gt: String - field_number_in: [String] - weight: Int - weight_gt: Int - public_ne: Boolean - instant_facet: Boolean - field_number_exists: Boolean - AND: [TaxaField_listQueryInput!] - instant_facet_ne: Boolean - short_name_gte: String - short_description_ne: String - short_description_nin: [String] - complete_from_exists: Boolean - mongo_type_exists: Boolean - mongo_type_ne: String - long_description_gt: String - short_name_lt: String - required_exists: Boolean - mongo_type: String - default_gte: String - complete_from: TaxaField_listComplete_fromQueryInput - weight_exists: Boolean - public: Boolean - short_name_exists: Boolean - mongo_type_gte: String - short_description_in: [String] - long_name_ne: String - mongo_type_in: [String] - field_number_lte: String - placeholder: String - permitted_values_exists: Boolean - long_description_lte: String - long_description_nin: [String] - long_description_gte: String - short_description_lt: String - long_description: String - hide_search_exists: Boolean - default_in: [String] - field_number_gte: String - placeholder_exists: Boolean - placeholder_lt: String - short_description_gte: String - placeholder_lte: String - permitted_values_in: [String] - default: String - short_name_gt: String - short_name_ne: String - long_name_in: [String] - long_name: String - weight_nin: [Int] - item_fields_exists: Boolean - short_name_in: [String] - permitted_values: [String] - display_type_exists: Boolean - long_description_exists: Boolean - default_exists: Boolean - weight_lt: Int - short_description_exists: Boolean - weight_in: [Int] - display_type_gt: String - mongo_type_lte: String - hide_search_ne: Boolean - hide_search: Boolean - display_type: String - short_name: String - short_name_nin: [String] - default_nin: [String] - placeholder_nin: [String] - display_type_gte: String - mongo_type_gt: String - item_fields: TaxaField_listItem_fieldQueryInput - field_number_gt: String - required_ne: Boolean - display_type_in: [String] - field_number: String - long_name_lt: String - long_description_ne: String - weight_lte: Int - weight_gte: Int - long_name_gte: String - long_name_gt: String - field_number_lt: String - default_ne: String - placeholder_gte: String - default_lte: String -} - -type ClassificationAttribute { - short_name: String - value_json: String -} - -input CandidateUpdateInput { - date_downloaded_unset: Boolean - embedding: CandidateEmbeddingUpdateInput - date_published_unset: Boolean - language: String - language_unset: Boolean - date_published: String - epoch_date_published: Int - epoch_date_downloaded_unset: Boolean - _id: ObjectId - url: String - matching_keywords_unset: Boolean - plain_text_unset: Boolean - plain_text: String - similarity: Float - authors: [String] - text_unset: Boolean - epoch_date_published_unset: Boolean - match: Boolean - dismissed: Boolean - url_unset: Boolean - title: String - image_url_unset: Boolean - similarity_inc: Float - source_domain_unset: Boolean - classification_similarity: [CandidateClassification_similarityUpdateInput] - title_unset: Boolean - dismissed_unset: Boolean - source_domain: String - _id_unset: Boolean - classification_similarity_unset: Boolean - match_unset: Boolean - matching_entities_unset: Boolean - text: String - date_downloaded: String - similarity_unset: Boolean - matching_harm_keywords_unset: Boolean - matching_keywords: [String] - epoch_date_downloaded: Int - epoch_date_downloaded_inc: Int - image_url: String - matching_entities: [String] - embedding_unset: Boolean - epoch_date_published_inc: Int - authors_unset: Boolean - matching_harm_keywords: [String] -} - -input TaxaField_listItem_fieldComplete_fromInsertInput { - all: [String] - current: [String] - entities: Boolean -} - -input DuplicateQueryInput { - _id_ne: ObjectId - _id_nin: [ObjectId] - duplicate_incident_number_gte: Int - duplicate_incident_number_lte: Int - true_incident_number_ne: Int - true_incident_number_lt: Int - true_incident_number_in: [Int] - AND: [DuplicateQueryInput!] - OR: [DuplicateQueryInput!] - _id: ObjectId - _id_lte: ObjectId - duplicate_incident_number_exists: Boolean - true_incident_number_exists: Boolean - _id_lt: ObjectId - _id_gt: ObjectId - duplicate_incident_number_in: [Int] - _id_exists: Boolean - true_incident_number_nin: [Int] - duplicate_incident_number_nin: [Int] - duplicate_incident_number_gt: Int - duplicate_incident_number: Int - _id_in: [ObjectId] - true_incident_number_gt: Int - duplicate_incident_number_ne: Int - true_incident_number: Int +input History_reportQueryInput { + text_ne: String + authors_in: [String] + date_published_gt: DateTime _id_gte: ObjectId - duplicate_incident_number_lt: Int - true_incident_number_lte: Int - true_incident_number_gte: Int -} - -type SubmissionEmbedding { - from_text_hash: String - vector: [Float] -} - -type RisksPayloadPrecedentEmbedding { - from_reports: [Int] - vector: [Float] -} - -input History_incidentInsertInput { - epoch_date_modified: Int - flagged_dissimilar_incidents: [Int] - AllegedHarmedOrNearlyHarmedParties: [String] - nlp_similar_incidents: [History_incidentNlp_similar_incidentInsertInput] - title: String! - editor_dissimilar_incidents: [Int] - modifiedBy: String - incident_id: Int! - AllegedDeveloperOfAISystem: [String] - _id: ObjectId - description: String - editor_similar_incidents: [Int] - editors: [String]! - AllegedDeployerOfAISystem: [String] - date: String! - embedding: History_incidentEmbeddingInsertInput - reports: [Int]! - editor_notes: String - tsne: History_incidentTsneInsertInput -} - -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 -} - -input IncidentAllegedDeployerOfAISystemRelationInput { - create: [EntityInsertInput] - link: [String] -} - -input DuplicateUpdateInput { - true_incident_number: Int - true_incident_number_inc: Int - true_incident_number_unset: Boolean - _id: ObjectId - _id_unset: Boolean - duplicate_incident_number: Int - duplicate_incident_number_inc: Int - duplicate_incident_number_unset: Boolean -} - -input SubscriptionUserIdRelationInput { - create: UserInsertInput - link: String -} - -type UpdateManyPayload { - matchedCount: Int! - modifiedCount: Int! -} - -input History_reportInsertInput { - text: String! - user: String - plain_text: String! - report_number: Int! - embedding: History_reportEmbeddingInsertInput - inputs_outputs: [String] - language: String! - authors: [String]! - title: String! - date_downloaded: DateTime! - date_published: DateTime! - date_modified: DateTime! - epoch_date_submitted: Int! - quiet: Boolean - epoch_date_published: Int! - editor_notes: String - _id: ObjectId - description: String - epoch_date_downloaded: Int! - url: String! - image_url: String! - date_submitted: DateTime! - is_incident_report: Boolean - source_domain: String! - tags: [String]! - flag: Boolean - submitters: [String]! - modifiedBy: String - cloudinary_id: String! - epoch_date_modified: Int! -} - -input SubscriptionUpdateInput { - userId: SubscriptionUserIdRelationInput - userId_unset: Boolean - entityId: SubscriptionEntityIdRelationInput - entityId_unset: Boolean - type: String - incident_id: SubscriptionIncident_idRelationInput - type_unset: Boolean - _id_unset: Boolean - incident_id_unset: Boolean - _id: ObjectId -} - -input IncidentNlp_similar_incidentQueryInput { - incident_id_lt: Int - incident_id: Int - similarity_in: [Float] - AND: [IncidentNlp_similar_incidentQueryInput!] - incident_id_in: [Int] - incident_id_exists: Boolean - OR: [IncidentNlp_similar_incidentQueryInput!] - incident_id_gte: Int - similarity_nin: [Float] - similarity_exists: Boolean - incident_id_nin: [Int] - similarity: Float - incident_id_gt: Int - incident_id_ne: Int - similarity_gt: Float - similarity_gte: Float - similarity_lt: Float - similarity_ne: Float - similarity_lte: Float - incident_id_lte: 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 -} - -input TaxaField_listItem_fieldUpdateInput { - long_name: String - permitted_values: [String] - placeholder: String - default_unset: Boolean - short_name: String - complete_from_unset: Boolean - field_number: String - required_unset: Boolean - display_type: String - display_type_unset: Boolean - mongo_type: String - mongo_type_unset: Boolean - weight_inc: Int - complete_from: TaxaField_listItem_fieldComplete_fromUpdateInput - public: Boolean - short_description_unset: Boolean - weight_unset: Boolean - long_name_unset: Boolean - weight: Int - public_unset: Boolean - placeholder_unset: Boolean - default: String - instant_facet: Boolean - long_description: String - permitted_values_unset: Boolean - short_description: String - field_number_unset: Boolean - long_description_unset: Boolean - required: Boolean - short_name_unset: Boolean - instant_facet_unset: Boolean -} - -input IncidentEmbeddingQueryInput { - from_reports: [Int] - from_reports_in: [Int] - vector_in: [Float] - vector_nin: [Float] - from_reports_exists: Boolean - from_reports_nin: [Int] - vector: [Float] - AND: [IncidentEmbeddingQueryInput!] - vector_exists: Boolean - OR: [IncidentEmbeddingQueryInput!] -} - -input IncidentQueryInput { - description_lte: String - description: String - nlp_similar_incidents_nin: [IncidentNlp_similar_incidentQueryInput] - AllegedDeveloperOfAISystem_nin: [EntityQueryInput] - description_gte: String - incident_id_gt: Int + source_domain_gte: String + text: String + inputs_outputs_in: [String] + editor_notes_in: [String] + epoch_date_modified_gt: Int + url_ne: String + image_url_lt: String + url_lte: String + description_in: [String] + report_number_in: [Int] + user_gte: String + inputs_outputs_nin: [String] + url_in: [String] + text_lte: String + epoch_date_downloaded_gte: Int + _id_in: [ObjectId] + quiet_ne: Boolean + url_gte: String + date_submitted_lte: DateTime title_lte: String - editor_notes_gte: String - editor_dissimilar_incidents_in: [Int] - AllegedDeveloperOfAISystem_in: [EntityQueryInput] - editors_exists: Boolean - incident_id_lt: Int - _id_gte: ObjectId - editor_notes_ne: String - date: String - nlp_similar_incidents_in: [IncidentNlp_similar_incidentQueryInput] - editor_notes_exists: Boolean - AllegedDeployerOfAISystem: [EntityQueryInput] - editors_in: [UserQueryInput] - tsne: IncidentTsneQueryInput - AllegedHarmedOrNearlyHarmedParties_exists: Boolean + title_gte: String + epoch_date_modified_nin: [Int] + date_published: DateTime + plain_text_gte: String + text_gt: String + epoch_date_submitted_in: [Int] + user_lt: String + date_downloaded: DateTime + report_number_gt: Int + date_downloaded_gte: DateTime + report_number_lte: Int + user_gt: String + submitters_in: [String] + epoch_date_submitted_gt: Int + OR: [History_reportQueryInput!] + date_modified_ne: DateTime + user_lte: String + cloudinary_id_nin: [String] + date_submitted_ne: DateTime + quiet: Boolean + image_url_gt: String description_gt: String + text_gte: String description_nin: [String] - date_in: [String] - _id_ne: ObjectId - _id_lte: ObjectId - epoch_date_modified_nin: [Int] - date_nin: [String] - editor_dissimilar_incidents_exists: Boolean - reports: [ReportQueryInput] - reports_exists: Boolean - tsne_exists: Boolean - epoch_date_modified_lt: Int - editor_notes_lte: String - title: String - title_ne: String - epoch_date_modified: Int - incident_id_lte: Int - reports_nin: [ReportQueryInput] - editor_similar_incidents_nin: [Int] - editor_similar_incidents: [Int] - flagged_dissimilar_incidents_exists: Boolean - epoch_date_modified_ne: Int - embedding_exists: Boolean - AllegedDeployerOfAISystem_in: [EntityQueryInput] - AllegedHarmedOrNearlyHarmedParties_in: [EntityQueryInput] - date_lt: String + date_submitted_in: [DateTime] + language_lte: String + plain_text_lt: String + date_downloaded_lt: DateTime + report_number_exists: Boolean + epoch_date_downloaded: Int + language_gte: String + description_exists: Boolean + title_gt: String title_nin: [String] - editor_dissimilar_incidents_nin: [Int] - editor_notes_lt: String - flagged_dissimilar_incidents: [Int] - editor_notes_in: [String] - AllegedDeveloperOfAISystem_exists: Boolean - editor_similar_incidents_exists: Boolean - _id_lt: ObjectId + image_url_gte: String + url_gt: String + date_downloaded_in: [DateTime] + plain_text_ne: String + source_domain_lte: String + submitters_nin: [String] + authors_nin: [String] + date_modified: DateTime + epoch_date_downloaded_nin: [Int] + cloudinary_id_ne: String + plain_text_nin: [String] + text_in: [String] _id_exists: Boolean - reports_in: [ReportQueryInput] - editor_dissimilar_incidents: [Int] - AllegedDeveloperOfAISystem: [EntityQueryInput] - AllegedHarmedOrNearlyHarmedParties_nin: [EntityQueryInput] - description_in: [String] - editor_notes_nin: [String] - _id_in: [ObjectId] - incident_id_exists: Boolean - date_gte: String - nlp_similar_incidents: [IncidentNlp_similar_incidentQueryInput] - title_gt: String - embedding: IncidentEmbeddingQueryInput - AllegedDeployerOfAISystem_exists: Boolean - nlp_similar_incidents_exists: Boolean - epoch_date_modified_gte: Int - AND: [IncidentQueryInput!] - incident_id: Int - OR: [IncidentQueryInput!] - title_in: [String] - editor_similar_incidents_in: [Int] - editors_nin: [UserQueryInput] - description_exists: Boolean - incident_id_gte: Int - date_gt: String - description_lt: String - _id_gt: ObjectId - date_exists: Boolean - title_gte: String - epoch_date_modified_gt: Int - title_lt: String - incident_id_ne: Int - incident_id_nin: [Int] + AND: [History_reportQueryInput!] + epoch_date_published: Int + epoch_date_published_gte: Int + submitters: [String] + modifiedBy_ne: String + image_url_nin: [String] + inputs_outputs: [String] + authors_exists: Boolean + modifiedBy_exists: Boolean + url_exists: Boolean + date_modified_gt: DateTime + description_ne: String + text_nin: [String] epoch_date_modified_lte: Int - AllegedDeployerOfAISystem_nin: [EntityQueryInput] - _id: ObjectId + is_incident_report: Boolean + date_modified_gte: DateTime editor_notes: String - editors: [UserQueryInput] - date_lte: String + user_exists: Boolean + epoch_date_published_lte: Int + epoch_date_submitted_gte: Int + date_submitted_gt: DateTime + epoch_date_submitted: Int + source_domain: String + date_published_gte: DateTime + report_number_nin: [Int] + image_url_exists: Boolean + user_ne: String + embedding_exists: Boolean + epoch_date_published_ne: Int epoch_date_modified_in: [Int] - AllegedHarmedOrNearlyHarmedParties: [EntityQueryInput] + text_exists: Boolean + image_url: String + date_modified_nin: [DateTime] + epoch_date_published_lt: Int + language_nin: [String] + _id_lt: ObjectId + source_domain_nin: [String] + date_modified_lte: DateTime + language_gt: String + inputs_outputs_exists: Boolean + date_submitted_lt: DateTime + description_lt: String + epoch_date_submitted_exists: Boolean + title_ne: String + editor_notes_lte: String + editor_notes_exists: Boolean + title: String + cloudinary_id_lt: String + language_in: [String] + report_number_gte: Int + epoch_date_downloaded_exists: Boolean + date_downloaded_exists: Boolean + plain_text_lte: String + epoch_date_downloaded_ne: Int + user: String + date_published_ne: DateTime + date_downloaded_gt: DateTime + modifiedBy_lt: String + epoch_date_published_gt: Int + language: String + epoch_date_submitted_ne: Int + plain_text_in: [String] + title_lt: String + date_modified_exists: Boolean + tags_in: [String] + date_modified_lt: DateTime + modifiedBy_gt: String + user_nin: [String] + _id_gt: ObjectId + source_domain_gt: String + epoch_date_published_nin: [Int] + editor_notes_ne: String + tags_nin: [String] + epoch_date_modified_ne: Int + source_domain_ne: String + date_downloaded_nin: [DateTime] + modifiedBy_lte: String + date_published_in: [DateTime] + plain_text_gt: String + epoch_date_modified: Int + modifiedBy: String + url_lt: String + epoch_date_modified_lt: Int + date_published_exists: Boolean + report_number_lt: Int + tags_exists: Boolean + flag_exists: Boolean + language_ne: String + epoch_date_published_in: [Int] + epoch_date_downloaded_lte: Int + submitters_exists: Boolean + quiet_exists: Boolean + date_published_nin: [DateTime] + _id_lte: ObjectId + date_published_lte: DateTime + cloudinary_id: String + modifiedBy_nin: [String] + editor_notes_lt: String + date_submitted_exists: Boolean + modifiedBy_gte: String + description_gte: String + report_number_ne: Int + image_url_ne: String + date_downloaded_ne: DateTime + language_lt: String + image_url_in: [String] + description: String + user_in: [String] + is_incident_report_exists: Boolean + epoch_date_downloaded_gt: Int + cloudinary_id_exists: Boolean + date_submitted_nin: [DateTime] + cloudinary_id_gte: String + is_incident_report_ne: Boolean + editor_notes_nin: [String] + epoch_date_downloaded_in: [Int] + epoch_date_submitted_lte: Int + plain_text: String + source_domain_in: [String] + plain_text_exists: Boolean + epoch_date_published_exists: Boolean + epoch_date_modified_exists: Boolean + date_submitted: DateTime + epoch_date_downloaded_lt: Int + modifiedBy_in: [String] + date_published_lt: DateTime + language_exists: Boolean + epoch_date_submitted_lt: Int + report_number: Int + editor_notes_gt: String + _id: ObjectId + date_modified_in: [DateTime] + cloudinary_id_gt: String + embedding: History_reportEmbeddingQueryInput + source_domain_exists: Boolean + title_in: [String] + url_nin: [String] + _id_ne: ObjectId + epoch_date_modified_gte: Int + description_lte: String _id_nin: [ObjectId] + flag_ne: Boolean title_exists: Boolean - editor_notes_gt: String - description_ne: String - incident_id_in: [Int] - flagged_dissimilar_incidents_nin: [Int] - flagged_dissimilar_incidents_in: [Int] - epoch_date_modified_exists: Boolean - date_ne: String + source_domain_lt: String + epoch_date_submitted_nin: [Int] + date_downloaded_lte: DateTime + text_lt: String + editor_notes_gte: String + tags: [String] + date_submitted_gte: DateTime + flag: Boolean + authors: [String] + cloudinary_id_lte: String + url: String + image_url_lte: String + cloudinary_id_in: [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(data: CandidateInsertInput!, query: CandidateQueryInput): 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(data: NotificationInsertInput!, query: NotificationQueryInput): Notification - replaceOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd - replaceOneReport(query: ReportQueryInput, data: ReportInsertInput!): Report - replaceOneSubmission(data: SubmissionInsertInput!, query: SubmissionQueryInput): 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(set: SubmissionUpdateInput!, query: SubmissionQueryInput): UpdateManyPayload - updateManySubscriptions(query: SubscriptionQueryInput, set: SubscriptionUpdateInput!): UpdateManyPayload - updateManyTaxas(query: TaxaQueryInput, set: TaxaUpdateInput!): UpdateManyPayload - updateManyUsers(set: UserUpdateInput!, query: UserQueryInput): 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(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(query: IncidentQueryInput, data: IncidentInsertInput!): 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(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa - upsertOneUser(query: UserQueryInput, data: UserInsertInput!): User +type History_incidentEmbedding { + from_reports: [Int] + vector: [Float] } -input QuickaddUpdateInput { +input IncidentTsneUpdateInput { + y_inc: Float + y_unset: Boolean + x: Float + x_inc: Float + x_unset: Boolean + y: Float +} + +input ClassificationInsertInput { + attributes: [ClassificationAttributeInsertInput] + incidents: ClassificationIncidentsRelationInput! + namespace: String! + notes: String + publish: Boolean + reports: ClassificationReportsRelationInput! + _id: ObjectId +} + +type Quickadd { + _id: ObjectId + date_submitted: String! + incident_id: Long + source_domain: String + url: String! +} + +type IncidentTsne { + x: Float + y: Float +} + +input ClassificationIncidentsRelationInput { + create: [IncidentInsertInput] + link: [Int] +} + +input ClassificationReportsRelationInput { + create: [ReportInsertInput] + link: [Int] +} + +input CandidateEmbeddingQueryInput { + vector_nin: [Float] + from_text_hash: String + OR: [CandidateEmbeddingQueryInput!] + vector_exists: Boolean + AND: [CandidateEmbeddingQueryInput!] + from_text_hash_exists: Boolean + from_text_hash_gt: String + from_text_hash_lt: String + from_text_hash_gte: String + from_text_hash_nin: [String] + from_text_hash_ne: String + from_text_hash_in: [String] + from_text_hash_lte: String + vector: [Float] + vector_in: [Float] +} + +input TaxaDummy_fieldUpdateInput { + field_number: String + field_number_unset: Boolean + short_name: String + short_name_unset: Boolean +} + +input CandidateUpdateInput { + url: String + plain_text_unset: Boolean + date_published: String + image_url: String + epoch_date_downloaded: Int + matching_harm_keywords: [String] + _id: ObjectId + classification_similarity_unset: Boolean + epoch_date_downloaded_unset: Boolean + authors_unset: Boolean + embedding_unset: Boolean + title_unset: Boolean + similarity_unset: Boolean + matching_harm_keywords_unset: Boolean + match_unset: Boolean + epoch_date_published: Int + similarity: Float + epoch_date_downloaded_inc: Int + matching_entities: [String] + date_downloaded_unset: Boolean + dismissed: Boolean + matching_entities_unset: Boolean source_domain: String + plain_text: String + epoch_date_published_unset: Boolean + matching_keywords_unset: Boolean + title: String + authors: [String] + text: String + dismissed_unset: Boolean + language: String + similarity_inc: Float + classification_similarity: [CandidateClassification_similarityUpdateInput] + date_downloaded: String + date_published_unset: Boolean + image_url_unset: Boolean + url_unset: Boolean + epoch_date_published_inc: Int + match: Boolean _id_unset: Boolean - incident_id: Long + matching_keywords: [String] source_domain_unset: Boolean - date_submitted: String - date_submitted_unset: Boolean - url_unset: Boolean - _id: ObjectId - incident_id_unset: Boolean - url: String + text_unset: Boolean + embedding: CandidateEmbeddingUpdateInput + language_unset: Boolean } -enum SubscriptionSortByInput { - _ID_DESC - ENTITYID_DESC - INCIDENT_ID_ASC - INCIDENT_ID_DESC - TYPE_ASC - TYPE_DESC - _ID_ASC - ENTITYID_ASC - USERID_ASC - USERID_DESC +input ClassificationQueryInput { + notes_lte: String + namespace_nin: [String] + namespace_exists: Boolean + _id_gte: ObjectId + _id_ne: ObjectId + namespace_gte: String + _id: ObjectId + _id_lt: ObjectId + notes_gt: String + notes_lt: String + reports_nin: [ReportQueryInput] + incidents_nin: [IncidentQueryInput] + publish: Boolean + notes_in: [String] + namespace: String + _id_nin: [ObjectId] + namespace_in: [String] + namespace_gt: String + AND: [ClassificationQueryInput!] + attributes_in: [ClassificationAttributeQueryInput] + notes: String + reports_exists: Boolean + OR: [ClassificationQueryInput!] + attributes: [ClassificationAttributeQueryInput] + _id_lte: ObjectId + notes_nin: [String] + _id_gt: ObjectId + notes_ne: String + namespace_ne: String + publish_exists: Boolean + publish_ne: Boolean + incidents: [IncidentQueryInput] + reports_in: [ReportQueryInput] + reports: [ReportQueryInput] + incidents_in: [IncidentQueryInput] + namespace_lte: String + incidents_exists: Boolean + notes_gte: String + notes_exists: Boolean + _id_in: [ObjectId] + attributes_nin: [ClassificationAttributeQueryInput] + attributes_exists: Boolean + namespace_lt: String + _id_exists: Boolean } -input SubmissionUpdateInput { - user_unset: Boolean - text: String - status: String - submitters_unset: Boolean - nlp_similar_incidents: [SubmissionNlp_similar_incidentUpdateInput] - quiet: Boolean - developers_unset: Boolean - date_modified_unset: Boolean - epoch_date_modified_unset: Boolean - image_url_unset: Boolean - authors_unset: Boolean - description_unset: Boolean - epoch_date_modified: Int - editor_similar_incidents: [Int] - embedding_unset: Boolean - plain_text_unset: Boolean - deployers: SubmissionDeployersRelationInput - incident_date: String - incident_editors_unset: Boolean - harmed_parties_unset: Boolean - incident_title_unset: Boolean - epoch_date_modified_inc: Int - incident_title: String - text_unset: Boolean - embedding: SubmissionEmbeddingUpdateInput - url_unset: Boolean - quiet_unset: Boolean +input CandidateInsertInput { _id: ObjectId - cloudinary_id_unset: Boolean - nlp_similar_incidents_unset: Boolean - date_published_unset: Boolean - date_submitted_unset: Boolean - source_domain_unset: Boolean + epoch_date_downloaded: Int + classification_similarity: [CandidateClassification_similarityInsertInput] image_url: String - editor_similar_incidents_unset: Boolean - date_downloaded: String - harmed_parties: SubmissionHarmed_partiesRelationInput - developers: SubmissionDevelopersRelationInput - incident_date_unset: Boolean - deployers_unset: Boolean - tags: [String] - source_domain: String - url: String - editor_notes_unset: Boolean - _id_unset: Boolean - language_unset: Boolean - date_published: String - title: String - incident_ids_unset: Boolean - title_unset: Boolean + epoch_date_published: Int language: String - incident_ids: [Int] - incident_editors: SubmissionIncident_editorsRelationInput - status_unset: Boolean - editor_notes: String - submitters: [String] - tags_unset: Boolean - date_modified: String - description: String - editor_dissimilar_incidents: [Int] - editor_dissimilar_incidents_unset: Boolean - cloudinary_id: String - date_downloaded_unset: Boolean - date_submitted: String - user: SubmissionUserRelationInput + matching_entities: [String] + text: String + source_domain: String authors: [String] + matching_keywords: [String] plain_text: String + url: String! + date_published: String + dismissed: Boolean + similarity: Float + title: String + embedding: CandidateEmbeddingInsertInput + match: Boolean! + matching_harm_keywords: [String] + date_downloaded: String } -scalar ObjectId - -input CandidateEmbeddingQueryInput { - from_text_hash_lte: String - OR: [CandidateEmbeddingQueryInput!] - from_text_hash_nin: [String] - from_text_hash_ne: String - vector_nin: [Float] - AND: [CandidateEmbeddingQueryInput!] - vector_in: [Float] - from_text_hash_exists: Boolean - from_text_hash_lt: String - from_text_hash_gt: String - vector_exists: Boolean - from_text_hash: String - from_text_hash_gte: String - vector: [Float] - from_text_hash_in: [String] +input TaxaField_listItem_fieldComplete_fromQueryInput { + all_exists: Boolean + entities_exists: Boolean + entities_ne: Boolean + current: [String] + entities: Boolean + all: [String] + all_nin: [String] + AND: [TaxaField_listItem_fieldComplete_fromQueryInput!] + current_nin: [String] + current_exists: Boolean + current_in: [String] + OR: [TaxaField_listItem_fieldComplete_fromQueryInput!] + all_in: [String] } -input History_incidentTsneQueryInput { - x_lt: Float - y_lte: Float - x_gte: Float - x_in: [Float] - y: Float - y_gt: Float - y_exists: Boolean - y_gte: Float - x_lte: Float - x: Float - x_exists: Boolean - y_ne: Float - y_lt: Float - AND: [History_incidentTsneQueryInput!] - y_nin: [Float] - OR: [History_incidentTsneQueryInput!] - x_nin: [Float] - y_in: [Float] - x_ne: Float - x_gt: Float +enum SubscriptionSortByInput { + ENTITYID_ASC + ENTITYID_DESC + INCIDENT_ID_DESC + USERID_ASC + USERID_DESC + _ID_ASC + _ID_DESC + INCIDENT_ID_ASC + TYPE_ASC + TYPE_DESC } -input IncidentTsneUpdateInput { +type RisksPayloadPrecedentTsne { x: Float - x_inc: Float - x_unset: Boolean y: Float - y_inc: Float - y_unset: Boolean } -type History_incidentEmbedding { - from_reports: [Int] - vector: [Float] +input TaxaField_listItem_fieldUpdateInput { + field_number: String + display_type_unset: Boolean + placeholder: String + mongo_type: String + short_description: String + short_description_unset: Boolean + weight_unset: Boolean + complete_from: TaxaField_listItem_fieldComplete_fromUpdateInput + field_number_unset: Boolean + default: String + long_description_unset: Boolean + complete_from_unset: Boolean + public_unset: Boolean + long_description: String + permitted_values: [String] + required: Boolean + mongo_type_unset: Boolean + long_name: String + public: Boolean + required_unset: Boolean + short_name_unset: Boolean + permitted_values_unset: Boolean + instant_facet_unset: Boolean + long_name_unset: Boolean + display_type: String + placeholder_unset: Boolean + weight: Int + instant_facet: Boolean + weight_inc: Int + default_unset: Boolean + short_name: String } input TaxaField_listItem_fieldQueryInput { - long_name: String - default_in: [String] - weight_in: [Int] - short_name: String short_description_lt: String + public_ne: Boolean + short_name_nin: [String] + mongo_type_lt: String + public: Boolean + long_name_gte: String + placeholder_gte: String + mongo_type_nin: [String] + long_description_lte: String + placeholder_ne: String + short_name_exists: Boolean + display_type_exists: Boolean + display_type_in: [String] + field_number_gt: String + weight_ne: Int + default_ne: String + complete_from_exists: Boolean weight_nin: [Int] - long_description_in: [String] - short_description_ne: String - short_description_gt: String - short_name_ne: String - field_number_gte: String - long_name_ne: String - display_type_lte: String - permitted_values_exists: Boolean + required_ne: Boolean + short_name_gte: String + long_name_exists: Boolean + display_type_gt: String + long_description_gt: String + default_gt: String + field_number_exists: Boolean field_number_ne: String - display_type: String - default_lte: String - mongo_type_exists: Boolean - placeholder_nin: [String] - short_description_in: [String] - field_number_lte: String - long_name_nin: [String] - field_number_gt: String - mongo_type: String - AND: [TaxaField_listItem_fieldQueryInput!] + long_name_in: [String] + placeholder_exists: Boolean short_name_lte: String - mongo_type_ne: String - mongo_type_lte: String - complete_from: TaxaField_listItem_fieldComplete_fromQueryInput - display_type_gt: String - short_description_gte: String - required: Boolean - mongo_type_in: [String] - short_name_nin: [String] - instant_facet_exists: Boolean - default: String - short_description_exists: Boolean - long_description_ne: String - display_type_exists: Boolean - default_gte: String + short_description: String + field_number_in: [String] + long_name_gt: String + permitted_values_exists: Boolean + display_type_ne: String + AND: [TaxaField_listItem_fieldQueryInput!] + display_type: String + long_description_lt: String display_type_lt: String - long_description: String - weight_gte: Int + complete_from: TaxaField_listItem_fieldComplete_fromQueryInput + weight_lte: Int + placeholder_nin: [String] + long_name: String mongo_type_gte: String - placeholder_lt: String - long_name_lte: String - short_name_gte: String - short_description_nin: [String] - display_type_in: [String] - long_description_exists: Boolean - display_type_ne: String - weight_exists: Boolean - short_name_exists: Boolean + default_lte: String placeholder: String - long_name_lt: String - placeholder_exists: Boolean - mongo_type_nin: [String] - long_name_gt: String - field_number: String - long_description_lte: String - placeholder_in: [String] - field_number_in: [String] + instant_facet_exists: Boolean + mongo_type_in: [String] + long_name_lte: String + default: String + permitted_values: [String] instant_facet: Boolean - placeholder_lte: String - placeholder_gte: String - short_description_lte: String - public: Boolean - long_name_in: [String] - long_name_exists: Boolean - default_ne: String - long_description_gte: String + display_type_lte: String + long_description: String field_number_lt: String - default_gt: String weight_lt: Int - placeholder_gt: String - weight_lte: Int - default_exists: Boolean - permitted_values_in: [String] - default_nin: [String] mongo_type_gt: String - required_ne: Boolean - required_exists: Boolean - long_description_nin: [String] - display_type_gte: String permitted_values_nin: [String] - complete_from_exists: Boolean - placeholder_ne: String - long_description_gt: String - short_name_in: [String] - short_description: String - short_name_gt: String - public_ne: Boolean + long_name_ne: String + mongo_type_lte: String + short_description_exists: Boolean + permitted_values_in: [String] + weight_exists: Boolean default_lt: String + public_exists: Boolean + mongo_type_ne: String + weight_in: [Int] + short_name_in: [String] weight_gt: Int - OR: [TaxaField_listItem_fieldQueryInput!] - mongo_type_lt: String - instant_facet_ne: Boolean - display_type_nin: [String] - long_description_lt: String + field_number_lte: String + short_name_gt: String + field_number_gte: String + weight: Int + long_name_nin: [String] + long_description_gte: String + short_description_ne: String + mongo_type_exists: Boolean field_number_nin: [String] - weight_ne: Int + mongo_type: String + short_description_gt: String + instant_facet_ne: Boolean + default_exists: Boolean + default_gte: String + required_exists: Boolean + long_name_lt: String short_name_lt: String - permitted_values: [String] - long_name_gte: String - field_number_exists: Boolean - weight: Int - public_exists: Boolean + long_description_in: [String] + short_name_ne: String + OR: [TaxaField_listItem_fieldQueryInput!] + field_number: String + long_description_exists: Boolean + long_description_nin: [String] + short_description_gte: String + placeholder_in: [String] + display_type_nin: [String] + placeholder_gt: String + display_type_gte: String + placeholder_lt: String + short_description_in: [String] + short_description_lte: String + short_description_nin: [String] + default_nin: [String] + long_description_ne: String + required: Boolean + weight_gte: Int + placeholder_lte: String + default_in: [String] + short_name: String } -input CandidateInsertInput { - date_downloaded: String +type RisksPayloadItem { + precedents: [RisksPayloadPrecedent] + tag: String + tags: [String] + title: String +} + +input IncidentAllegedDeployerOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] +} + +type UpdateManyPayload { + matchedCount: Int! + modifiedCount: Int! +} + +type Entity { + _id: ObjectId + created_at: DateTime + date_modified: DateTime + entity_id: String! + name: String! +} + +type TaxaField_listItem_fieldComplete_from { + all: [String] + current: [String] + entities: Boolean +} + +type CreateVariantPayload { + incident_id: Int + report_number: Int +} + +input History_reportUpdateInput { + title_unset: Boolean + quiet_unset: Boolean + report_number_unset: Boolean + embedding_unset: Boolean + epoch_date_submitted_inc: Int + epoch_date_submitted_unset: Boolean + editor_notes_unset: Boolean + source_domain_unset: Boolean + description_unset: Boolean + authors: [String] + user_unset: Boolean + date_published_unset: Boolean + epoch_date_downloaded: Int + epoch_date_modified_inc: Int + epoch_date_downloaded_inc: Int + quiet: Boolean + authors_unset: Boolean + epoch_date_modified: Int + tags_unset: Boolean + date_modified_unset: Boolean + plain_text_unset: Boolean + image_url_unset: Boolean + description: String + source_domain: String + date_published: DateTime + language_unset: Boolean + text_unset: Boolean + url_unset: Boolean + cloudinary_id: String + epoch_date_published_unset: Boolean + epoch_date_modified_unset: Boolean + report_number: Int + submitters_unset: Boolean + flag_unset: Boolean + date_downloaded_unset: Boolean + submitters: [String] image_url: String - similarity: Float - date_published: String - dismissed: Boolean - match: Boolean! - url: String! - authors: [String] + date_submitted: DateTime + report_number_inc: Int + epoch_date_published: Int plain_text: String + text: String + flag: Boolean + is_incident_report_unset: Boolean + embedding: History_reportEmbeddingUpdateInput + date_downloaded: DateTime + is_incident_report: Boolean _id: ObjectId + epoch_date_submitted: Int + _id_unset: Boolean + editor_notes: String + cloudinary_id_unset: Boolean + tags: [String] + epoch_date_downloaded_unset: Boolean + url: String + inputs_outputs_unset: Boolean + date_modified: DateTime + modifiedBy_unset: Boolean title: String - epoch_date_published: Int - source_domain: String - embedding: CandidateEmbeddingInsertInput + date_submitted_unset: Boolean + modifiedBy: String + user: String + epoch_date_published_inc: Int language: String - matching_harm_keywords: [String] - text: String - classification_similarity: [CandidateClassification_similarityInsertInput] - matching_keywords: [String] - epoch_date_downloaded: Int - matching_entities: [String] + inputs_outputs: [String] } -input ChecklistRiskPrecedentInsertInput { - description: String - incident_id: Int - tags: [String] - title: String +type ClassificationAttribute { + short_name: String + value_json: String } -scalar Long - -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 +type TaxaField_listComplete_from { + all: [String] + current: [String] } -input SubmissionNlp_similar_incidentQueryInput { +input History_incidentNlp_similar_incidentQueryInput { + similarity_exists: Boolean + incident_id_gt: Int + incident_id_lt: Int + AND: [History_incidentNlp_similar_incidentQueryInput!] incident_id_in: [Int] incident_id_ne: Int + similarity_ne: Float + similarity_lte: Float + similarity_in: [Float] similarity_nin: [Float] - OR: [SubmissionNlp_similar_incidentQueryInput!] - similarity: Float similarity_gt: Float - similarity_gte: Float - incident_id_lt: Int - similarity_ne: Float + similarity: Float incident_id_gte: Int - AND: [SubmissionNlp_similar_incidentQueryInput!] + OR: [History_incidentNlp_similar_incidentQueryInput!] incident_id: Int - incident_id_lte: Int - incident_id_nin: [Int] - similarity_in: [Float] incident_id_exists: Boolean - similarity_lte: Float + incident_id_lte: Int + similarity_gte: Float similarity_lt: Float - incident_id_gt: Int - similarity_exists: Boolean -} - -input IncidentTsneInsertInput { - x: Float - y: Float -} - -type Query { - candidate(query: CandidateQueryInput): Candidate - candidates(sortBy: CandidateSortByInput, query: CandidateQueryInput, limit: Int = 100): [Candidate]! - checklist(query: ChecklistQueryInput): Checklist - checklists(limit: Int = 100, sortBy: ChecklistSortByInput, query: ChecklistQueryInput): [Checklist]! - classification(query: ClassificationQueryInput): Classification - classifications(query: ClassificationQueryInput, limit: Int = 100, sortBy: ClassificationSortByInput): [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(sortBy: History_incidentSortByInput, query: History_incidentQueryInput, limit: Int = 100): [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(limit: Int = 100, sortBy: ReportSortByInput, query: ReportQueryInput): [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]! + incident_id_nin: [Int] } -enum TaxaSortByInput { - _ID_ASC - _ID_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - NAMESPACE_ASC - NAMESPACE_DESC - WEIGHT_ASC - WEIGHT_DESC +input ChecklistRiskPrecedentUpdateInput { + tags: [String] + title: String + incident_id_inc: Int + incident_id_unset: Boolean + incident_id: Int + tags_unset: Boolean + title_unset: Boolean + description: String + description_unset: Boolean } -input SubmissionHarmed_partiesRelationInput { - link: [String] - create: [EntityInsertInput] +type User { + _id: ObjectId + adminData: UserAdminDatum + first_name: String + last_name: String + roles: [String]! + userId: String! } -type History_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: History_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 + implicated_systems: [Entity] + incident_date: String + incident_editors: [User] + incident_ids: [Int] + incident_title: String language: String! - modifiedBy: String - plain_text: String! + nlp_similar_incidents: [SubmissionNlp_similar_incident] + plain_text: String quiet: Boolean - report_number: Int! source_domain: String! + status: String submitters: [String]! tags: [String]! text: String! title: String! url: String! - user: String + user: User +} + +input SubmissionIncident_editorsRelationInput { + link: [String] + create: [UserInsertInput] +} + +input DuplicateQueryInput { + _id_gt: ObjectId + true_incident_number_lt: Int + true_incident_number: Int + true_incident_number_in: [Int] + _id_exists: Boolean + duplicate_incident_number_nin: [Int] + AND: [DuplicateQueryInput!] + _id_gte: ObjectId + duplicate_incident_number_lt: Int + duplicate_incident_number_in: [Int] + true_incident_number_ne: Int + _id_lt: ObjectId + duplicate_incident_number_gt: Int + OR: [DuplicateQueryInput!] + duplicate_incident_number_lte: Int + true_incident_number_lte: Int + _id: ObjectId + true_incident_number_gte: Int + true_incident_number_exists: Boolean + duplicate_incident_number_gte: Int + _id_nin: [ObjectId] + _id_lte: ObjectId + _id_in: [ObjectId] + _id_ne: ObjectId + duplicate_incident_number_exists: Boolean + true_incident_number_nin: [Int] + duplicate_incident_number: Int + true_incident_number_gt: Int + duplicate_incident_number_ne: Int +} + +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 History_reportEmbeddingQueryInput { + vector_exists: Boolean + from_text_hash_gte: String + from_text_hash_in: [String] + from_text_hash: String + AND: [History_reportEmbeddingQueryInput!] + vector: [Float] + from_text_hash_exists: Boolean + vector_in: [Float] + from_text_hash_nin: [String] + vector_nin: [Float] + from_text_hash_gt: String + from_text_hash_ne: String + OR: [History_reportEmbeddingQueryInput!] + from_text_hash_lt: String + from_text_hash_lte: String } -input SubmissionQueryInput { - title: String - status_exists: Boolean - submitters_nin: [String] - title_lt: String - cloudinary_id_nin: [String] - url_gt: String - url_in: [String] - text_ne: String - description: String - incident_ids: [Int] - title_lte: String - image_url_lte: String - source_domain_lt: String - harmed_parties_exists: Boolean - incident_ids_nin: [Int] - title_ne: String - user: UserQueryInput - incident_editors_nin: [UserQueryInput] - image_url_gte: String - date_submitted_gte: String - text_lte: String - date_published_gte: String - plain_text_lte: String - date_downloaded_lt: String - editor_notes_gt: String - description_exists: Boolean - _id: ObjectId - url_gte: String +type History_incidentTsne { + x: Float + y: Float +} + +input IncidentQueryInput { + description_gt: String + implicated_systems: [EntityQueryInput] epoch_date_modified_gt: Int - status: String - incident_date_in: [String] - plain_text_in: [String] - title_in: [String] - image_url_lt: String - title_gte: String - incident_title_exists: Boolean - date_submitted_in: [String] - submitters_in: [String] - date_modified_exists: Boolean - date_downloaded: String - cloudinary_id: String - epoch_date_modified: Int - incident_editors_exists: Boolean - epoch_date_modified_lt: Int - incident_date_lt: String - incident_title_nin: [String] - date_submitted_exists: Boolean - embedding_exists: Boolean - incident_title_gte: String - date_published_lte: String - deployers: [EntityQueryInput] - date_modified_in: [String] - authors_in: [String] - developers_nin: [EntityQueryInput] - nlp_similar_incidents_in: [SubmissionNlp_similar_incidentQueryInput] - cloudinary_id_exists: Boolean - source_domain_gte: String - image_url_ne: String - text_nin: [String] - source_domain_ne: String - nlp_similar_incidents: [SubmissionNlp_similar_incidentQueryInput] editor_notes_nin: [String] - plain_text_gte: String - harmed_parties_nin: [EntityQueryInput] - date_modified_gt: String - submitters_exists: Boolean - editor_dissimilar_incidents_exists: Boolean - plain_text_gt: String - developers_in: [EntityQueryInput] - epoch_date_modified_lte: Int - cloudinary_id_in: [String] - language: String - date_published_nin: [String] - url_lte: String - status_nin: [String] - date_modified: String - incident_title_ne: String editor_notes_lt: String - url_nin: [String] - user_exists: Boolean - developers_exists: Boolean - incident_date: String - editor_similar_incidents_in: [Int] - source_domain_nin: [String] - source_domain: String + incident_id_lte: Int + AllegedHarmedOrNearlyHarmedParties_in: [EntityQueryInput] + title_exists: Boolean + description_gte: String + date_lt: String editor_notes_in: [String] - date_submitted_lt: String + nlp_similar_incidents_exists: Boolean + title_lt: String + date_lte: String + description_lte: String + embedding_exists: Boolean + tsne_exists: Boolean + date: String + incident_id_ne: Int + epoch_date_modified_exists: Boolean + incident_id_gt: Int + editor_similar_incidents_nin: [Int] + editor_notes_exists: Boolean + AllegedDeployerOfAISystem_nin: [EntityQueryInput] + reports_nin: [ReportQueryInput] + embedding: IncidentEmbeddingQueryInput editor_similar_incidents_exists: Boolean - description_gt: String - quiet_ne: Boolean - date_submitted: String - description_gte: String - url_exists: Boolean - tags: [String] - OR: [SubmissionQueryInput!] - tags_nin: [String] - editor_dissimilar_incidents: [Int] - description_in: [String] - source_domain_exists: Boolean - text_gte: String - epoch_date_modified_in: [Int] - date_modified_ne: String - incident_editors_in: [UserQueryInput] + AllegedDeveloperOfAISystem_in: [EntityQueryInput] + _id: ObjectId _id_in: [ObjectId] - submitters: [String] - editor_notes_exists: Boolean - _id_gte: ObjectId - authors_exists: Boolean - _id_nin: [ObjectId] - language_nin: [String] - incident_editors: [UserQueryInput] + editor_dissimilar_incidents_exists: Boolean + AllegedDeveloperOfAISystem: [EntityQueryInput] + epoch_date_modified_in: [Int] + description_nin: [String] + _id_lte: ObjectId + reports_in: [ReportQueryInput] + nlp_similar_incidents: [IncidentNlp_similar_incidentQueryInput] + OR: [IncidentQueryInput!] + AllegedHarmedOrNearlyHarmedParties_exists: Boolean + AllegedDeployerOfAISystem_exists: Boolean + description_exists: Boolean + incident_id_lt: Int + tsne: IncidentTsneQueryInput + implicated_systems_in: [EntityQueryInput] + editor_dissimilar_incidents: [Int] + title_nin: [String] editor_dissimilar_incidents_in: [Int] - source_domain_in: [String] - incident_title: String - _id_exists: Boolean - nlp_similar_incidents_exists: Boolean - language_gt: String - tags_in: [String] - incident_date_exists: Boolean - epoch_date_modified_exists: Boolean - date_modified_lte: String - date_downloaded_ne: String - date_modified_nin: [String] - date_downloaded_nin: [String] + incident_id_in: [Int] + editor_similar_incidents: [Int] + editor_dissimilar_incidents_nin: [Int] + date_exists: Boolean + title_ne: String + nlp_similar_incidents_in: [IncidentNlp_similar_incidentQueryInput] + implicated_systems_nin: [EntityQueryInput] + epoch_date_modified: Int + implicated_systems_exists: Boolean + description_in: [String] + editor_notes_lte: String + flagged_dissimilar_incidents_exists: Boolean + date_nin: [String] + flagged_dissimilar_incidents: [Int] + AllegedDeveloperOfAISystem_nin: [EntityQueryInput] + title_in: [String] + AllegedDeployerOfAISystem_in: [EntityQueryInput] + description: String + AllegedDeployerOfAISystem: [EntityQueryInput] + flagged_dissimilar_incidents_nin: [Int] + AllegedHarmedOrNearlyHarmedParties: [EntityQueryInput] + incident_id: Int + epoch_date_modified_lt: Int + date_in: [String] editor_notes_gte: String - image_url_exists: Boolean - language_gte: String - incident_date_ne: String - text_lt: String - incident_title_lt: String - text_gt: String - quiet: Boolean - title_exists: Boolean - status_lte: String - plain_text_ne: String + date_gte: String epoch_date_modified_gte: Int - text_exists: Boolean - incident_date_lte: String - deployers_exists: Boolean - cloudinary_id_gt: String - language_ne: String - date_published_lt: String - source_domain_lte: String - description_lt: String - editor_notes: String - editor_dissimilar_incidents_nin: [Int] - _id_ne: ObjectId - plain_text_nin: [String] - date_modified_gte: String - title_nin: [String] - incident_date_nin: [String] - source_domain_gt: String - deployers_nin: [EntityQueryInput] - date_published_gt: String - cloudinary_id_lte: String - text_in: [String] - status_in: [String] - incident_title_gt: String - incident_title_lte: String - _id_lt: ObjectId - date_published_in: [String] - status_gte: String - cloudinary_id_ne: String - plain_text_exists: Boolean - language_in: [String] - date_submitted_lte: String - date_downloaded_exists: Boolean - image_url_gt: String - deployers_in: [EntityQueryInput] - embedding: SubmissionEmbeddingQueryInput - description_nin: [String] - date_submitted_nin: [String] - cloudinary_id_gte: String - date_downloaded_in: [String] - date_modified_lt: String - image_url: String - image_url_in: [String] - incident_ids_exists: Boolean + epoch_date_modified_lte: Int + editors_exists: Boolean + AllegedDeveloperOfAISystem_exists: Boolean + editors_nin: [UserQueryInput] + date_gt: String + title: String + incident_id_gte: Int + description_lt: String + editor_similar_incidents_in: [Int] _id_gt: ObjectId - date_published: String - AND: [SubmissionQueryInput!] - date_submitted_ne: String - date_downloaded_lte: String - text: String - incident_ids_in: [Int] - editor_notes_lte: String - tags_exists: Boolean - date_downloaded_gte: String - nlp_similar_incidents_nin: [SubmissionNlp_similar_incidentQueryInput] + date_ne: String epoch_date_modified_nin: [Int] - incident_title_in: [String] - language_lt: String - status_ne: String - _id_lte: ObjectId - image_url_nin: [String] - description_lte: String - harmed_parties: [EntityQueryInput] - authors_nin: [String] - quiet_exists: Boolean - incident_date_gt: String - status_gt: String - editor_similar_incidents: [Int] - developers: [EntityQueryInput] - url: String - date_published_exists: Boolean - editor_notes_ne: String - harmed_parties_in: [EntityQueryInput] - cloudinary_id_lt: String - incident_date_gte: String - url_ne: String + epoch_date_modified_ne: Int + title_gt: String + incident_id_exists: Boolean description_ne: String - status_lt: String + _id_nin: [ObjectId] + reports: [ReportQueryInput] + _id_lt: ObjectId + AllegedHarmedOrNearlyHarmedParties_nin: [EntityQueryInput] + nlp_similar_incidents_nin: [IncidentNlp_similar_incidentQueryInput] + _id_exists: Boolean + editor_notes_ne: String + flagged_dissimilar_incidents_in: [Int] + editors: [UserQueryInput] + AND: [IncidentQueryInput!] + reports_exists: Boolean + incident_id_nin: [Int] + title_gte: String + title_lte: String + _id_gte: ObjectId + editor_notes_gt: String + editors_in: [UserQueryInput] + editor_notes: String + _id_ne: ObjectId +} + +input TaxaField_listComplete_fromQueryInput { + all_exists: Boolean + current_exists: Boolean + AND: [TaxaField_listComplete_fromQueryInput!] + all_in: [String] + all_nin: [String] + all: [String] + OR: [TaxaField_listComplete_fromQueryInput!] + current: [String] + current_in: [String] + current_nin: [String] +} + +input SubscriptionQueryInput { + _id_ne: ObjectId + _id_nin: [ObjectId] + _id_gt: ObjectId + entityId_exists: Boolean + type_exists: Boolean + incident_id: IncidentQueryInput + _id_exists: Boolean + type_lte: String + entityId: EntityQueryInput + type_ne: String + userId: UserQueryInput + OR: [SubscriptionQueryInput!] + type: String + type_gte: String + _id_in: [ObjectId] + type_gt: String + userId_exists: Boolean + _id_lte: ObjectId + type_nin: [String] + type_lt: String + _id: ObjectId + AND: [SubscriptionQueryInput!] + incident_id_exists: Boolean + type_in: [String] + _id_gte: ObjectId + _id_lt: ObjectId +} + +type Candidate { + _id: ObjectId authors: [String] - date_submitted_gt: String - url_lt: String - date_downloaded_gt: String - date_published_ne: String - title_gt: String - editor_similar_incidents_nin: [Int] - epoch_date_modified_ne: Int - plain_text_lt: String - language_lte: String - language_exists: Boolean + 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 ReportInsertInput { - user: ReportUserRelationInput +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 +} + +input NotificationUserIdRelationInput { + create: UserInsertInput + link: String +} + +type ReportTranslation { + text: String + title: String +} + +type ReportEmbedding { + from_text_hash: String + vector: [Float] +} + +input SubmissionNlp_similar_incidentQueryInput { + similarity_gte: Float + similarity_in: [Float] + incident_id_gte: Int + incident_id_in: [Int] + similarity_exists: Boolean + incident_id_nin: [Int] + similarity_lt: Float + incident_id_exists: Boolean + AND: [SubmissionNlp_similar_incidentQueryInput!] + similarity: Float + similarity_ne: Float + incident_id: Int + incident_id_gt: Int + similarity_nin: [Float] + similarity_gt: Float + similarity_lte: Float + OR: [SubmissionNlp_similar_incidentQueryInput!] + incident_id_lt: Int + incident_id_lte: Int + incident_id_ne: Int +} + +input SubmissionHarmed_partiesRelationInput { + link: [String] + create: [EntityInsertInput] +} + +input History_reportInsertInput { tags: [String]! - quiet: Boolean + language: String! + source_domain: String! + is_incident_report: Boolean + epoch_date_downloaded: Int! description: String - submitters: [String]! + editor_notes: String report_number: Int! + date_submitted: DateTime! + _id: ObjectId + image_url: String! + quiet: Boolean + user: String + modifiedBy: String + epoch_date_published: Int! + flag: Boolean date_published: DateTime! + title: String! authors: [String]! - epoch_date_published: Int! - text: String! + embedding: History_reportEmbeddingInsertInput + plain_text: String! date_modified: DateTime! - source_domain: String! - title: String! epoch_date_modified: Int! - flag: Boolean - plain_text: String! - date_submitted: DateTime! cloudinary_id: String! - url: String! - is_incident_report: Boolean epoch_date_submitted: Int! - epoch_date_downloaded: Int! - editor_notes: String - embedding: ReportEmbeddingInsertInput inputs_outputs: [String] - _id: ObjectId date_downloaded: DateTime! - image_url: String! - language: String! + text: String! + url: String! + submitters: [String]! +} + +type SubmissionEmbedding { + from_text_hash: String + vector: [Float] +} + +input CandidateClassification_similarityQueryInput { + similarity_lte: Float + similarity_gte: Float + similarity_lt: Float + classification_in: [String] + classification_gt: String + similarity: Float + similarity_in: [Float] + similarity_gt: Float + classification_lte: String + similarity_ne: Float + classification_exists: Boolean + classification_gte: String + similarity_exists: Boolean + AND: [CandidateClassification_similarityQueryInput!] + classification_lt: String + classification_nin: [String] + classification: String + similarity_nin: [Float] + classification_ne: String + OR: [CandidateClassification_similarityQueryInput!] } -input ClassificationQueryInput { - namespace: String - _id_lt: ObjectId - _id_in: [ObjectId] - notes_ne: String - reports_nin: [ReportQueryInput] - namespace_lte: String - namespace_nin: [String] - publish_ne: Boolean - notes_gt: String - _id: ObjectId - namespace_ne: String - _id_lte: ObjectId - namespace_in: [String] - AND: [ClassificationQueryInput!] - attributes_in: [ClassificationAttributeQueryInput] - notes_gte: String - publish: Boolean - _id_exists: Boolean - OR: [ClassificationQueryInput!] - _id_ne: ObjectId - attributes_exists: Boolean - notes_in: [String] - notes_exists: Boolean - _id_gt: ObjectId - reports_in: [ReportQueryInput] - notes_lt: String - _id_gte: ObjectId - attributes_nin: [ClassificationAttributeQueryInput] - incidents_exists: Boolean - _id_nin: [ObjectId] - attributes: [ClassificationAttributeQueryInput] - namespace_lt: String - namespace_gte: String - incidents: [IncidentQueryInput] - reports: [ReportQueryInput] - reports_exists: Boolean - publish_exists: Boolean - namespace_gt: String - notes_lte: String - notes: String - notes_nin: [String] - namespace_exists: Boolean - incidents_nin: [IncidentQueryInput] - incidents_in: [IncidentQueryInput] +input ChecklistRiskUpdateInput { + touched: Boolean + tags: [String] + severity_unset: Boolean + generated_unset: Boolean + precedents_unset: Boolean + precedents: [ChecklistRiskPrecedentUpdateInput] + title: String + id_unset: Boolean + risk_notes: String + risk_status_unset: Boolean + touched_unset: Boolean + risk_status: String + tags_unset: Boolean + title_unset: Boolean + severity: String + generated: Boolean + id: String + risk_notes_unset: Boolean + likelihood: String + likelihood_unset: Boolean } -enum ClassificationSortByInput { - _ID_ASC - _ID_DESC - NAMESPACE_ASC - NAMESPACE_DESC - NOTES_ASC - NOTES_DESC +input TaxaField_listComplete_fromInsertInput { + all: [String] + current: [String] } -type AppUser { +input CreateDefaultAdminUserInput { email: String + password: String } -input ChecklistInsertInput { - date_created: DateTime - id: String - owner_id: String - tags_other: [String] - _id: ObjectId - name: String - tags_goals: [String] - entity_id: String - tags_methods: [String] - about: String - date_updated: DateTime - risks: [ChecklistRiskInsertInput] +input SubmissionEmbeddingInsertInput { + from_text_hash: String + vector: [Float] } -type User { - _id: ObjectId - adminData: UserAdminDatum - first_name: String - last_name: String - roles: [String]! - userId: String! +input TaxaField_listItem_fieldInsertInput { + weight: Int + public: Boolean + instant_facet: Boolean + display_type: String + long_description: String + short_description: String + placeholder: String + long_name: String + field_number: String + complete_from: TaxaField_listItem_fieldComplete_fromInsertInput + required: Boolean + mongo_type: String + short_name: String + default: String + permitted_values: [String] } -type Taxa { - _id: ObjectId - complete_entities: Boolean - description: String - dummy_fields: [TaxaDummy_field] - field_list: [TaxaField_list] - namespace: 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 DefaultAdminUser { - message: String - status: Int - userId: String +enum TaxaSortByInput { + WEIGHT_ASC + WEIGHT_DESC + _ID_ASC + _ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + NAMESPACE_ASC + NAMESPACE_DESC } -input History_reportUpdateInput { - authors: [String] - epoch_date_downloaded_unset: Boolean - epoch_date_submitted: Int - modifiedBy_unset: Boolean - date_published_unset: Boolean - image_url: String - user_unset: Boolean - text_unset: Boolean - date_modified: DateTime - is_incident_report: Boolean - epoch_date_submitted_unset: Boolean - date_modified_unset: Boolean - date_downloaded_unset: Boolean - modifiedBy: String - editor_notes_unset: Boolean - epoch_date_published_inc: Int - epoch_date_modified_inc: Int - source_domain: String - language_unset: Boolean - quiet_unset: Boolean - embedding: History_reportEmbeddingUpdateInput - quiet: Boolean - description: String - epoch_date_published_unset: Boolean - submitters_unset: Boolean - cloudinary_id_unset: Boolean - plain_text: String - date_published: DateTime - description_unset: Boolean - plain_text_unset: Boolean - title: String - user: String - epoch_date_downloaded: Int - submitters: [String] - authors_unset: Boolean - epoch_date_modified_unset: Boolean - date_submitted_unset: Boolean - inputs_outputs_unset: Boolean - url: String - date_submitted: DateTime - text: String - epoch_date_submitted_inc: Int - title_unset: Boolean - epoch_date_modified: Int - report_number: Int - tags: [String] - report_number_unset: Boolean - embedding_unset: Boolean - report_number_inc: Int - flag: Boolean - language: String - source_domain_unset: Boolean - is_incident_report_unset: Boolean - cloudinary_id: String - url_unset: Boolean - _id: ObjectId - inputs_outputs: [String] - epoch_date_downloaded_inc: Int - _id_unset: Boolean - date_downloaded: DateTime - editor_notes: String - epoch_date_published: Int - image_url_unset: Boolean - flag_unset: Boolean - tags_unset: Boolean +type UserAdminDatum { + creationDate: DateTime + disabled: Boolean + email: String + lastAuthenticationDate: DateTime } -type PromoteSubmissionToReportPayload { - incident_ids: [Int] - report_number: Int +input ClassificationAttributeQueryInput { + value_json_gt: String + short_name_nin: [String] + value_json: String + short_name_lt: String + short_name: String + short_name_lte: String + value_json_in: [String] + value_json_nin: [String] + short_name_in: [String] + short_name_gte: String + value_json_exists: Boolean + short_name_ne: String + value_json_lt: String + value_json_ne: String + AND: [ClassificationAttributeQueryInput!] + short_name_gt: String + value_json_lte: String + short_name_exists: Boolean + value_json_gte: String + OR: [ClassificationAttributeQueryInput!] } -input IncidentReportsRelationInput { - create: [ReportInsertInput] - link: [Int] +input EntityQueryInput { + entity_id_lt: String + name_gt: String + date_modified_gt: DateTime + _id_in: [ObjectId] + created_at_gte: DateTime + OR: [EntityQueryInput!] + entity_id_nin: [String] + date_modified_ne: DateTime + name_gte: String + created_at_ne: DateTime + _id_nin: [ObjectId] + date_modified_lt: DateTime + created_at_gt: DateTime + name_in: [String] + entity_id_gte: String + entity_id: String + name_ne: String + created_at_lte: DateTime + created_at_exists: Boolean + _id_lt: ObjectId + date_modified_gte: DateTime + date_modified_nin: [DateTime] + name_exists: Boolean + name: String + entity_id_in: [String] + created_at: DateTime + date_modified_lte: DateTime + name_lt: String + name_nin: [String] + AND: [EntityQueryInput!] + created_at_lt: DateTime + name_lte: String + _id_gte: ObjectId + _id: ObjectId + _id_exists: Boolean + entity_id_gt: String + _id_ne: ObjectId + date_modified_in: [DateTime] + created_at_in: [DateTime] + _id_lte: ObjectId + date_modified: DateTime + entity_id_exists: Boolean + date_modified_exists: Boolean + _id_gt: ObjectId + entity_id_lte: String + created_at_nin: [DateTime] + entity_id_ne: String } -input TaxaUpdateInput { - dummy_fields: [TaxaDummy_fieldUpdateInput] - weight_inc: Int - field_list: [TaxaField_listUpdateInput] - weight: Int - description: String - namespace_unset: Boolean - weight_unset: Boolean - namespace: String - complete_entities: Boolean - dummy_fields_unset: Boolean - field_list_unset: Boolean - description_unset: Boolean - _id: ObjectId - _id_unset: Boolean - complete_entities_unset: Boolean +input History_incidentEmbeddingInsertInput { + vector: [Float] + from_reports: [Int] } -input TaxaField_listComplete_fromUpdateInput { - all: [String] - all_unset: Boolean - current: [String] - current_unset: Boolean +type DefaultAdminUser { + message: String + status: Int + userId: String } -input TaxaField_listComplete_fromInsertInput { - all: [String] - current: [String] +input ChecklistRiskPrecedentInsertInput { + title: String + description: String + incident_id: Int + tags: [String] } -input ClassificationAttributeUpdateInput { - value_json_unset: Boolean - short_name: String - short_name_unset: Boolean - value_json: String +type CandidateClassification_similarity { + classification: String + similarity: Float } -input CreateVariantInputVariant { - submitters: [String] - text: String - date_published: String - inputs_outputs: [String] +input ChecklistInsertInput { + risks: [ChecklistRiskInsertInput] + name: String + tags_methods: [String] + owner_id: String + _id: ObjectId + about: String + date_created: DateTime + tags_goals: [String] + date_updated: DateTime + entity_id: String + id: String + tags_other: [String] } -type UserAdminDatum { - creationDate: DateTime - disabled: Boolean - email: String - lastAuthenticationDate: DateTime +type SubmissionNlp_similar_incident { + incident_id: Int + similarity: Float } -input History_incidentNlp_similar_incidentQueryInput { - similarity_gte: Float - similarity_lte: Float - incident_id_lt: Int - incident_id_nin: [Int] - similarity_in: [Float] - similarity_ne: Float - incident_id_exists: Boolean +input IncidentNlp_similar_incidentQueryInput { similarity_gt: Float + AND: [IncidentNlp_similar_incidentQueryInput!] incident_id_gt: Int - similarity: Float - incident_id: Int similarity_lt: Float - similarity_nin: [Float] - similarity_exists: Boolean - AND: [History_incidentNlp_similar_incidentQueryInput!] - incident_id_in: [Int] - OR: [History_incidentNlp_similar_incidentQueryInput!] - incident_id_ne: Int incident_id_gte: Int + similarity_exists: Boolean + incident_id_lt: Int incident_id_lte: Int + similarity_gte: Float + OR: [IncidentNlp_similar_incidentQueryInput!] + incident_id_exists: Boolean + similarity: Float + incident_id: Int + incident_id_nin: [Int] + incident_id_ne: Int + incident_id_in: [Int] + similarity_ne: Float + similarity_in: [Float] + similarity_nin: [Float] + similarity_lte: Float } -enum NotificationSortByInput { - INCIDENT_ID_DESC - TYPE_ASC - TYPE_DESC +enum UserSortByInput { USERID_DESC _ID_ASC _ID_DESC - INCIDENT_ID_ASC - SENTDATE_ASC - SENTDATE_DESC + FIRST_NAME_ASC + FIRST_NAME_DESC + LAST_NAME_ASC + LAST_NAME_DESC USERID_ASC } -input PromoteSubmissionToReportInput { - submission_id: ObjectId - incident_ids: [Int] - is_incident_report: Boolean +input ChecklistQueryInput { + date_created_gte: DateTime + owner_id_gte: String + risks: [ChecklistRiskQueryInput] + about_gte: String + tags_goals_nin: [String] + _id_lt: ObjectId + owner_id: String + tags_other_in: [String] + _id_exists: Boolean + name_gt: String + risks_in: [ChecklistRiskQueryInput] + entity_id_exists: Boolean + date_updated_exists: Boolean + tags_other_exists: Boolean + tags_goals_exists: Boolean + name_lt: String + tags_other_nin: [String] + about_gt: String + date_created_ne: DateTime + tags_other: [String] + date_created: DateTime + owner_id_ne: String + owner_id_in: [String] + _id_nin: [ObjectId] + entity_id_gte: String + tags_methods: [String] + date_updated_gt: DateTime + _id_in: [ObjectId] + owner_id_gt: String + date_updated_nin: [DateTime] + _id_ne: ObjectId + owner_id_lte: String + id_gte: String + about_lte: String + _id_gte: ObjectId + name_ne: String + entity_id_ne: String + tags_goals: [String] + tags_methods_exists: Boolean + date_updated_ne: DateTime + about: String + id: String + date_created_nin: [DateTime] + id_exists: Boolean + tags_methods_in: [String] + about_ne: String + entity_id_lte: String + date_updated_lt: DateTime + name_lte: String + id_nin: [String] + _id_gt: ObjectId + id_lte: String + owner_id_nin: [String] + id_in: [String] + entity_id_in: [String] + about_lt: String + entity_id_nin: [String] + date_updated_in: [DateTime] + risks_exists: Boolean + owner_id_exists: Boolean + _id: ObjectId + entity_id_gt: String + id_ne: String + _id_lte: ObjectId + date_updated_gte: DateTime + date_created_lte: DateTime + risks_nin: [ChecklistRiskQueryInput] + OR: [ChecklistQueryInput!] + AND: [ChecklistQueryInput!] + date_updated: DateTime + id_lt: String + id_gt: String + tags_goals_in: [String] + date_created_in: [DateTime] + name: String + about_nin: [String] + about_exists: Boolean + about_in: [String] + owner_id_lt: String + entity_id: String + name_exists: Boolean + tags_methods_nin: [String] + date_created_lt: DateTime + name_in: [String] + date_created_exists: Boolean + date_created_gt: DateTime + name_gte: String + entity_id_lt: String + date_updated_lte: DateTime + name_nin: [String] +} + +type TaxaDummy_field { + field_number: String + short_name: String } -input IncidentNlp_similar_incidentUpdateInput { - incident_id: Int - incident_id_unset: Boolean - incident_id_inc: Int - similarity: Float - similarity_inc: Float - similarity_unset: Boolean +input ReportEmbeddingQueryInput { + from_text_hash_nin: [String] + from_text_hash_lte: String + from_text_hash_exists: Boolean + AND: [ReportEmbeddingQueryInput!] + from_text_hash_in: [String] + OR: [ReportEmbeddingQueryInput!] + vector: [Float] + from_text_hash_lt: String + from_text_hash: String + vector_in: [Float] + vector_nin: [Float] + from_text_hash_ne: String + from_text_hash_gt: String + from_text_hash_gte: String + vector_exists: Boolean } -input IncidentNlp_similar_incidentInsertInput { - incident_id: Int - similarity: 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 } input History_incidentNlp_similar_incidentInsertInput { @@ -3315,878 +3374,953 @@ input History_incidentNlp_similar_incidentInsertInput { similarity: Float } -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] +type DeleteManyPayload { + deletedCount: Int! } -input ReportQueryInput { - editor_notes_lt: String - source_domain_lte: String - source_domain: String - report_number_in: [Int] +input UserQueryInput { + _id_gt: ObjectId + _id_lte: ObjectId + userId_lte: String + _id_ne: ObjectId + userId_lt: String + last_name_ne: String + last_name_gte: String + AND: [UserQueryInput!] + userId_gte: String + userId: String + first_name_ne: String + last_name_gt: String + first_name_lte: String + first_name_nin: [String] + last_name_exists: Boolean + _id_exists: Boolean + first_name_exists: Boolean + last_name_lte: String + first_name_gt: String + first_name_lt: String + userId_ne: String + _id_lt: ObjectId _id_in: [ObjectId] - submitters: [String] - embedding_exists: Boolean - date_modified_nin: [DateTime] - editor_notes_exists: Boolean - date_submitted_nin: [DateTime] - language_lt: String - inputs_outputs_exists: Boolean - date_published_lte: DateTime - source_domain_exists: Boolean - report_number_gte: Int + last_name_lt: String + _id_gte: ObjectId + roles: [String] _id_nin: [ObjectId] - _id_ne: ObjectId - language: String - plain_text_ne: String - epoch_date_downloaded_exists: Boolean - source_domain_ne: String - date_modified_lte: DateTime - cloudinary_id_lt: String - date_submitted_exists: Boolean - date_published_gt: DateTime - epoch_date_published_gt: Int - date_published: DateTime - language_gte: String - epoch_date_modified_exists: Boolean - date_submitted_ne: DateTime - cloudinary_id_ne: String - authors_exists: Boolean - url_lt: String - cloudinary_id_gt: String - plain_text_exists: Boolean - authors_in: [String] - epoch_date_modified_ne: Int - date_submitted_lt: DateTime - date_published_exists: Boolean - epoch_date_published_ne: Int - report_number_gt: Int - source_domain_gte: String + last_name: String + last_name_nin: [String] + userId_exists: Boolean + roles_nin: [String] + first_name: String + userId_gt: String + userId_in: [String] + last_name_in: [String] + first_name_in: [String] _id: ObjectId - url_in: [String] - date_modified_gt: DateTime - date_published_in: [DateTime] - epoch_date_modified_lte: Int - date_published_nin: [DateTime] - url_ne: String - is_incident_report_exists: Boolean - description_lte: String - date_downloaded_lt: DateTime - language_in: [String] - image_url_ne: String - epoch_date_published_in: [Int] - description_gt: String - tags_nin: [String] - language_gt: String - epoch_date_downloaded: Int - title_exists: Boolean - is_incident_report_ne: Boolean - text_gte: String - quiet: Boolean - title: String - quiet_ne: Boolean - editor_notes_nin: [String] - date_submitted_lte: DateTime - date_downloaded_ne: DateTime - editor_notes_gte: String - date_submitted_in: [DateTime] - url_exists: Boolean - epoch_date_submitted_gt: Int - plain_text_nin: [String] - text_gt: String - date_downloaded: DateTime - description: String - cloudinary_id_in: [String] - epoch_date_downloaded_in: [Int] - epoch_date_submitted_in: [Int] - AND: [ReportQueryInput!] - editor_notes_ne: String - title_gt: String - cloudinary_id: String - report_number_nin: [Int] - title_in: [String] - plain_text_in: [String] - title_lte: String - date_published_ne: DateTime - _id_lt: ObjectId - image_url_lte: String - date_downloaded_nin: [DateTime] - title_ne: String - tags_in: [String] - epoch_date_modified_gte: Int - user: UserQueryInput - flag_ne: Boolean - epoch_date_modified_gt: Int - text_ne: String - editor_notes_gt: String - image_url_nin: [String] - epoch_date_downloaded_nin: [Int] - title_nin: [String] - date_submitted_gte: DateTime - text: String - epoch_date_downloaded_lt: Int - epoch_date_submitted_ne: Int - epoch_date_submitted_exists: Boolean - description_exists: Boolean - inputs_outputs_in: [String] - inputs_outputs_nin: [String] - date_modified_lt: DateTime - date_modified_ne: DateTime - text_lt: String - _id_exists: Boolean - epoch_date_published_lte: Int - date_downloaded_lte: DateTime - description_lt: String - url_gt: String - is_incident_report: Boolean - text_in: [String] - report_number: Int - plain_text: String - source_domain_lt: String - date_submitted: DateTime - date_downloaded_gte: DateTime - _id_lte: ObjectId - OR: [ReportQueryInput!] - text_nin: [String] - epoch_date_published: Int - epoch_date_downloaded_ne: Int - description_ne: String - language_ne: String - text_exists: Boolean - date_published_lt: DateTime - date_modified_in: [DateTime] - authors: [String] - language_lte: String - _id_gt: ObjectId - language_exists: Boolean - image_url: String - report_number_lte: Int - date_modified_exists: Boolean - cloudinary_id_lte: String - submitters_in: [String] - report_number_lt: Int - image_url_lt: String - title_gte: String - report_number_exists: Boolean - epoch_date_downloaded_lte: Int - date_modified: DateTime - image_url_gte: String - url_lte: String - epoch_date_modified_in: [Int] + first_name_gte: String + userId_nin: [String] + roles_exists: Boolean + OR: [UserQueryInput!] + roles_in: [String] +} + +input QuickaddUpdateInput { + source_domain: String + url: String + source_domain_unset: Boolean + url_unset: Boolean + _id: ObjectId + incident_id_unset: Boolean + date_submitted_unset: Boolean + incident_id: Long + _id_unset: Boolean + date_submitted: String +} + +input TaxaField_listComplete_fromUpdateInput { + all: [String] + all_unset: Boolean + current: [String] + current_unset: Boolean +} + +input ChecklistRiskInsertInput { + touched: Boolean + generated: Boolean + title: String + likelihood: String + risk_status: String + precedents: [ChecklistRiskPrecedentInsertInput] + risk_notes: String + severity: String tags: [String] - epoch_date_published_nin: [Int] - epoch_date_published_exists: Boolean - date_modified_gte: DateTime - image_url_gt: String - cloudinary_id_exists: Boolean - title_lt: String - editor_notes_in: [String] - date_published_gte: DateTime + id: String +} + +input SubscriptionUpdateInput { + incident_id: SubscriptionIncident_idRelationInput + type_unset: Boolean + _id_unset: Boolean + type: String + _id: ObjectId + entityId_unset: Boolean + incident_id_unset: Boolean + userId: SubscriptionUserIdRelationInput + userId_unset: Boolean + entityId: SubscriptionEntityIdRelationInput +} + +input IncidentAllegedDeveloperOfAISystemRelationInput { + create: [EntityInsertInput] + link: [String] +} + +input CreateVariantInputVariant { + date_published: String inputs_outputs: [String] - epoch_date_submitted: Int - source_domain_in: [String] - epoch_date_downloaded_gt: Int - epoch_date_submitted_lt: Int - description_nin: [String] - date_downloaded_exists: Boolean - editor_notes: String - date_downloaded_gt: DateTime - epoch_date_published_lt: Int - date_downloaded_in: [DateTime] - cloudinary_id_nin: [String] - plain_text_gte: String - submitters_nin: [String] - quiet_exists: Boolean - text_lte: String - url_gte: String - flag_exists: Boolean - epoch_date_submitted_gte: Int - description_gte: String - editor_notes_lte: String - image_url_exists: Boolean - url: String - flag: Boolean - source_domain_nin: [String] - epoch_date_downloaded_gte: Int - _id_gte: ObjectId - url_nin: [String] - epoch_date_modified: Int - submitters_exists: Boolean - epoch_date_submitted_lte: Int - epoch_date_submitted_nin: [Int] - epoch_date_modified_lt: Int - plain_text_lte: String - tags_exists: Boolean - language_nin: [String] - date_submitted_gt: DateTime - epoch_date_published_gte: Int - epoch_date_modified_nin: [Int] - authors_nin: [String] - source_domain_gt: String - cloudinary_id_gte: String - embedding: ReportEmbeddingQueryInput - plain_text_gt: String - image_url_in: [String] - report_number_ne: Int - plain_text_lt: String - user_exists: Boolean - description_in: [String] + submitters: [String] + text: String } -input IncidentTsneQueryInput { +input SubmissionNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float +} + +type Taxa { + _id: ObjectId + complete_entities: Boolean + description: String + dummy_fields: [TaxaDummy_field] + field_list: [TaxaField_list] + namespace: String + weight: Int +} + +input History_incidentTsneQueryInput { + AND: [History_incidentTsneQueryInput!] + x_ne: Float + x_gte: Float + y_gte: Float y_lt: Float - OR: [IncidentTsneQueryInput!] - x_nin: [Float] - y_nin: [Float] - y_exists: Boolean x_in: [Float] - x_ne: Float - x_gt: Float - y_gt: Float - x: Float - x_lt: Float + x_exists: Boolean y_ne: Float x_lte: Float - y_gte: Float - y_in: [Float] - y_lte: Float - AND: [IncidentTsneQueryInput!] - x_exists: Boolean - x_gte: Float y: Float + x_gt: Float + y_lte: Float + x_lt: Float + x: Float + y_exists: Boolean + x_nin: [Float] + y_gt: Float + y_in: [Float] + y_nin: [Float] + OR: [History_incidentTsneQueryInput!] } -type TaxaField_listComplete_from { - all: [String] - current: [String] +type Subscription { + _id: ObjectId + entityId: Entity + incident_id: Incident + type: String! + userId: User! } -input SubscriptionEntityIdRelationInput { - create: EntityInsertInput - link: String +type History_incidentNlp_similar_incident { + incident_id: Int + similarity: Float } -type RisksPayloadItem { - precedents: [RisksPayloadPrecedent] - tag: String - tags: [String] - title: String +type AppUser { + email: String } -enum IncidentSortByInput { - DATE_ASC +enum ChecklistSortByInput { + _ID_DESC + ABOUT_ASC + DATE_UPDATED_ASC + ENTITY_ID_DESC + NAME_ASC + OWNER_ID_ASC + _ID_ASC + DATE_CREATED_DESC + ENTITY_ID_ASC + OWNER_ID_DESC + ID_ASC + NAME_DESC + ABOUT_DESC + DATE_CREATED_ASC + DATE_UPDATED_DESC + ID_DESC +} + +enum SubmissionSortByInput { + DATE_DOWNLOADED_DESC + DATE_SUBMITTED_ASC DESCRIPTION_DESC - EPOCH_DATE_MODIFIED_DESC - TITLE_ASC + EDITOR_NOTES_DESC + IMAGE_URL_ASC _ID_DESC + CLOUDINARY_ID_DESC + DATE_DOWNLOADED_ASC + TEXT_ASC EPOCH_DATE_MODIFIED_ASC - INCIDENT_ID_ASC + LANGUAGE_ASC + DATE_PUBLISHED_DESC TITLE_DESC + USER_ASC + CLOUDINARY_ID_ASC + DATE_MODIFIED_ASC + DATE_MODIFIED_DESC + DATE_SUBMITTED_DESC + STATUS_DESC + URL_ASC _ID_ASC - DESCRIPTION_ASC + LANGUAGE_DESC + SOURCE_DOMAIN_DESC EDITOR_NOTES_ASC - EDITOR_NOTES_DESC - INCIDENT_ID_DESC - DATE_DESC + INCIDENT_DATE_ASC + INCIDENT_DATE_DESC + INCIDENT_TITLE_ASC + INCIDENT_TITLE_DESC + TEXT_DESC + DATE_PUBLISHED_ASC + EPOCH_DATE_MODIFIED_DESC + IMAGE_URL_DESC + TITLE_ASC + URL_DESC + SOURCE_DOMAIN_ASC + STATUS_ASC + USER_DESC + DESCRIPTION_ASC + PLAIN_TEXT_ASC + PLAIN_TEXT_DESC } -input UserInsertInput { - roles: [String]! - userId: String! +type Duplicate { _id: ObjectId - first_name: String - last_name: String + duplicate_incident_number: Int + true_incident_number: Int } -input SubscriptionInsertInput { - incident_id: SubscriptionIncident_idRelationInput - type: String! - userId: SubscriptionUserIdRelationInput! - _id: ObjectId - entityId: SubscriptionEntityIdRelationInput +scalar DateTime + +enum ClassificationSortByInput { + NAMESPACE_ASC + NAMESPACE_DESC + NOTES_ASC + NOTES_DESC + _ID_ASC + _ID_DESC } -input NotificationInsertInput { - type: String - userId: NotificationUserIdRelationInput - _id: ObjectId - incident_id: Int - processed: Boolean - sentDate: DateTime +input SubscriptionEntityIdRelationInput { + create: EntityInsertInput + link: String } -input EntityQueryInput { - date_modified_lt: DateTime - created_at_nin: [DateTime] - name_gte: String - entity_id_lt: String - created_at_gt: DateTime - name_lte: String - name_gt: String - name_exists: Boolean - entity_id_ne: String - date_modified_gt: DateTime - name_lt: String - entity_id_exists: Boolean - _id_lte: ObjectId - _id_gt: ObjectId - entity_id_nin: [String] - AND: [EntityQueryInput!] - _id_ne: ObjectId - entity_id_lte: String - name_nin: [String] - date_modified_exists: Boolean - date_modified_ne: DateTime - entity_id_gte: String - created_at_lt: DateTime +input ChecklistUpdateInput { + risks: [ChecklistRiskUpdateInput] + name_unset: Boolean + owner_id: String + date_created_unset: Boolean name: String - name_in: [String] - _id_exists: Boolean - created_at_ne: DateTime - date_modified_gte: DateTime - created_at: DateTime - _id_gte: ObjectId - created_at_lte: DateTime - created_at_exists: Boolean + _id_unset: Boolean + about_unset: Boolean + tags_methods_unset: Boolean + id_unset: Boolean _id: ObjectId - created_at_in: [DateTime] - _id_lt: ObjectId - created_at_gte: DateTime + entity_id_unset: Boolean + tags_methods: [String] + date_updated_unset: Boolean + tags_other_unset: Boolean + about: String + owner_id_unset: Boolean + tags_other: [String] + date_updated: DateTime + tags_goals: [String] + tags_goals_unset: Boolean entity_id: String - _id_in: [ObjectId] - date_modified: DateTime - OR: [EntityQueryInput!] - entity_id_gt: String - date_modified_lte: DateTime - entity_id_in: [String] - date_modified_nin: [DateTime] - _id_nin: [ObjectId] - date_modified_in: [DateTime] - name_ne: String + id: String + date_created: DateTime + risks_unset: Boolean } -input IncidentAllegedDeveloperOfAISystemRelationInput { - create: [EntityInsertInput] - link: [String] +input History_incidentInsertInput { + title: String! + editor_dissimilar_incidents: [Int] + flagged_dissimilar_incidents: [Int] + implicated_systems: [String] + date: String! + editors: [String]! + AllegedDeveloperOfAISystem: [String] + embedding: History_incidentEmbeddingInsertInput + nlp_similar_incidents: [History_incidentNlp_similar_incidentInsertInput] + _id: ObjectId + editor_similar_incidents: [Int] + reports: [Int]! + editor_notes: String + modifiedBy: String + incident_id: Int! + tsne: History_incidentTsneInsertInput + AllegedHarmedOrNearlyHarmedParties: [String] + description: String + AllegedDeployerOfAISystem: [String] + epoch_date_modified: Int } -input NotificationUserIdRelationInput { - create: UserInsertInput - link: String +type CandidateEmbedding { + from_text_hash: String + vector: [Float] } -input TaxaField_listUpdateInput { - long_description_unset: Boolean - long_name: String - weight: Int - placeholder: String - instant_facet: Boolean - instant_facet_unset: Boolean - hide_search: Boolean - default_unset: Boolean - long_name_unset: Boolean - permitted_values_unset: Boolean - public: Boolean - field_number_unset: Boolean - permitted_values: [String] - display_type_unset: Boolean - short_description_unset: Boolean - short_name: String - item_fields: TaxaField_listItem_fieldUpdateInput - short_description: String - default: String - required: Boolean - placeholder_unset: Boolean - weight_inc: Int - complete_from: TaxaField_listComplete_fromUpdateInput - item_fields_unset: Boolean - complete_from_unset: Boolean - mongo_type_unset: Boolean - public_unset: Boolean - weight_unset: Boolean - required_unset: Boolean - short_name_unset: Boolean - hide_search_unset: Boolean - mongo_type: String - long_description: String - field_number: String - display_type: 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(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(data: IncidentInsertInput!, query: IncidentQueryInput): Incident + replaceOneNotification(data: NotificationInsertInput!, query: NotificationQueryInput): Notification + replaceOneQuickadd(query: QuickaddQueryInput, data: QuickaddInsertInput!): Quickadd + replaceOneReport(data: ReportInsertInput!, query: ReportQueryInput): Report + replaceOneSubmission(query: SubmissionQueryInput, data: SubmissionInsertInput!): Submission + replaceOneSubscription(query: SubscriptionQueryInput, data: SubscriptionInsertInput!): Subscription + replaceOneTaxa(query: TaxaQueryInput, data: TaxaInsertInput!): Taxa + replaceOneUser(data: UserInsertInput!, query: UserQueryInput): 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(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(set: History_reportUpdateInput!, query: History_reportQueryInput): 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(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(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(query: IncidentQueryInput, data: IncidentInsertInput!): Incident + upsertOneNotification(query: NotificationQueryInput, data: NotificationInsertInput!): 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 } -type RisksPayloadPrecedentTsne { - x: Float - y: Float +input EntityUpdateInput { + date_modified: DateTime + _id_unset: Boolean + entity_id_unset: Boolean + name_unset: Boolean + _id: ObjectId + created_at_unset: Boolean + date_modified_unset: Boolean + entity_id: String + name: String + created_at: DateTime } -input History_incidentTsneInsertInput { - x: Float - y: Float +input IncidentNlp_similar_incidentInsertInput { + incident_id: Int + similarity: Float } -input TaxaField_listItem_fieldInsertInput { - long_description: String - required: Boolean - instant_facet: Boolean - default: String - short_name: String - public: Boolean - field_number: String - weight: Int - placeholder: String - mongo_type: String - short_description: String - permitted_values: [String] - long_name: String - complete_from: TaxaField_listItem_fieldComplete_fromInsertInput - display_type: String +type IncidentEmbedding { + from_reports: [Int] + vector: [Float] } -input IncidentEditorsRelationInput { - link: [String] - create: [UserInsertInput] +type RisksPayloadPrecedentNlp_similar_incident { + incident_id: Int + similarity: Float } -input ChecklistRiskPrecedentQueryInput { - description_lt: String - incident_id_gte: Int - title_in: [String] - description_gt: String - description_nin: [String] - incident_id_lte: Int - description_gte: String +type InsertManyPayload { + insertedIds: [ObjectId]! +} + +input SubscriptionUserIdRelationInput { + create: UserInsertInput + link: String +} + +input TaxaQueryInput { + _id_gt: ObjectId + weight_lt: Int + namespace_exists: Boolean + _id_gte: ObjectId + description_ne: String + weight_gt: Int + AND: [TaxaQueryInput!] + _id_lte: ObjectId + _id_in: [ObjectId] description_exists: Boolean + namespace_gt: String + _id_lt: ObjectId + complete_entities_exists: Boolean + field_list: [TaxaField_listQueryInput] + OR: [TaxaQueryInput!] + weight_lte: Int + complete_entities_ne: Boolean + _id: ObjectId + field_list_in: [TaxaField_listQueryInput] + weight_ne: Int + namespace_nin: [String] + namespace: String + namespace_ne: String + field_list_nin: [TaxaField_listQueryInput] + weight_nin: [Int] description_in: [String] - incident_id_gt: Int - incident_id: Int + dummy_fields_exists: Boolean + _id_nin: [ObjectId] + weight_in: [Int] + namespace_lte: String + description_lte: String description: String - incident_id_nin: [Int] - AND: [ChecklistRiskPrecedentQueryInput!] - incident_id_in: [Int] + description_gte: String + dummy_fields_nin: [TaxaDummy_fieldQueryInput] + namespace_lt: String + weight_exists: Boolean + namespace_in: [String] + _id_ne: ObjectId + dummy_fields: [TaxaDummy_fieldQueryInput] + dummy_fields_in: [TaxaDummy_fieldQueryInput] + namespace_gte: String + description_gt: String + description_nin: [String] + complete_entities: Boolean + weight_gte: Int + description_lt: String + _id_exists: Boolean + weight: Int + field_list_exists: Boolean +} + +input CandidateQueryInput { + _id: ObjectId + _id_in: [ObjectId] + epoch_date_downloaded_lt: Int + matching_entities: [String] + text_in: [String] + title_lt: String + matching_harm_keywords_exists: Boolean + plain_text_lte: String + epoch_date_downloaded: Int + source_domain_lte: String + _id_exists: Boolean + date_published_ne: String + plain_text_lt: String + title_ne: String + epoch_date_published_gt: Int + image_url_ne: String + text_lt: String + matching_entities_exists: Boolean title_exists: Boolean - tags: [String] + date_published_nin: [String] + epoch_date_downloaded_gte: Int + text_nin: [String] + url: String + source_domain: String + similarity_lt: Float + dismissed_exists: Boolean + image_url_nin: [String] + date_published_lte: String + title_gt: String + similarity_nin: [Float] + plain_text_in: [String] + image_url_lt: String + matching_keywords_in: [String] + epoch_date_downloaded_ne: Int + text: String + date_downloaded_lte: String + source_domain_lt: String + language_nin: [String] + epoch_date_downloaded_gt: Int + matching_harm_keywords: [String] + source_domain_gte: String + plain_text_gt: String + epoch_date_downloaded_exists: Boolean + date_downloaded_exists: Boolean + date_published_exists: Boolean + image_url_gte: String + url_ne: String + language_exists: Boolean + similarity_in: [Float] + _id_lte: ObjectId + plain_text_nin: [String] + _id_gte: ObjectId + _id_nin: [ObjectId] + url_lt: String + similarity: Float + similarity_exists: Boolean + dismissed_ne: Boolean + url_gte: String + date_published_in: [String] + matching_entities_nin: [String] + language_lte: String + match: Boolean + authors_nin: [String] + url_lte: String + plain_text_gte: String + title_in: [String] + _id_ne: ObjectId + AND: [CandidateQueryInput!] + date_downloaded_lt: String + matching_keywords: [String] + source_domain_gt: String + authors_in: [String] + plain_text: String + url_nin: [String] + classification_similarity: [CandidateClassification_similarityQueryInput] + date_published_gte: String + classification_similarity_nin: [CandidateClassification_similarityQueryInput] + image_url: String + language_ne: String + source_domain_nin: [String] + similarity_gt: Float + similarity_lte: Float + epoch_date_published_gte: Int + authors: [String] + epoch_date_published_exists: Boolean + language: String + authors_exists: Boolean + matching_harm_keywords_nin: [String] + text_exists: Boolean + epoch_date_published_lt: Int + date_downloaded: String + text_lte: String + dismissed: Boolean + matching_keywords_nin: [String] + title_gte: String + epoch_date_published_nin: [Int] + OR: [CandidateQueryInput!] + plain_text_ne: String + image_url_exists: Boolean + date_published: String + date_published_gt: String + similarity_gte: Float + url_in: [String] + _id_gt: ObjectId + date_published_lt: String + matching_entities_in: [String] + image_url_in: [String] + date_downloaded_nin: [String] + text_gte: String + matching_keywords_exists: Boolean + source_domain_in: [String] + source_domain_exists: Boolean + classification_similarity_in: [CandidateClassification_similarityQueryInput] + epoch_date_downloaded_nin: [Int] + date_downloaded_in: [String] + similarity_ne: Float + language_lt: String + language_in: [String] + epoch_date_downloaded_lte: Int + text_ne: String + language_gte: String + image_url_lte: String + embedding: CandidateEmbeddingQueryInput title_lte: String + classification_similarity_exists: Boolean + plain_text_exists: Boolean + epoch_date_published: Int + embedding_exists: Boolean + date_downloaded_gte: String + _id_lt: ObjectId + matching_harm_keywords_in: [String] + match_exists: Boolean + date_downloaded_gt: String + text_gt: String + epoch_date_published_in: [Int] + source_domain_ne: String title: String - incident_id_lt: Int - title_lt: String - title_gte: String - OR: [ChecklistRiskPrecedentQueryInput!] - incident_id_exists: Boolean - title_gt: String - description_ne: String - tags_in: [String] - tags_exists: Boolean - tags_nin: [String] - description_lte: String + epoch_date_published_ne: Int + url_exists: Boolean title_nin: [String] - incident_id_ne: Int - title_ne: String -} - -enum SubmissionSortByInput { - _ID_ASC - DATE_MODIFIED_ASC - DATE_SUBMITTED_ASC - DESCRIPTION_DESC - LANGUAGE_DESC - DATE_DOWNLOADED_DESC - DATE_PUBLISHED_ASC - INCIDENT_TITLE_DESC - TITLE_ASC - URL_ASC - CLOUDINARY_ID_DESC - EPOCH_DATE_MODIFIED_ASC - IMAGE_URL_DESC - INCIDENT_DATE_ASC - LANGUAGE_ASC - PLAIN_TEXT_ASC - CLOUDINARY_ID_ASC - PLAIN_TEXT_DESC - TITLE_DESC - USER_ASC - STATUS_DESC - DATE_PUBLISHED_DESC - INCIDENT_TITLE_ASC - TEXT_ASC - URL_DESC - _ID_DESC - DESCRIPTION_ASC - EDITOR_NOTES_ASC - IMAGE_URL_ASC - DATE_DOWNLOADED_ASC - EDITOR_NOTES_DESC - EPOCH_DATE_MODIFIED_DESC - INCIDENT_DATE_DESC - SOURCE_DOMAIN_ASC - TEXT_DESC - DATE_MODIFIED_DESC - DATE_SUBMITTED_DESC - SOURCE_DOMAIN_DESC - USER_DESC - STATUS_ASC + url_gt: String + match_ne: Boolean + epoch_date_published_lte: Int + image_url_gt: String + language_gt: String + date_downloaded_ne: String + epoch_date_downloaded_in: [Int] } input RisksInput { tags: [String] } -input IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput { - link: [String] - create: [EntityInsertInput] -} - -type ReportEmbedding { - from_text_hash: String - vector: [Float] -} - -input CandidateClassification_similarityQueryInput { - classification_ne: String - classification: String - similarity_ne: Float - similarity_lt: Float - classification_exists: Boolean - classification_gte: String - classification_gt: String - similarity_gte: Float - OR: [CandidateClassification_similarityQueryInput!] - similarity_nin: [Float] - similarity_in: [Float] - similarity: Float - similarity_exists: Boolean - similarity_gt: Float - classification_in: [String] - similarity_lte: Float - AND: [CandidateClassification_similarityQueryInput!] - classification_nin: [String] - classification_lte: String - classification_lt: String -} - -input TaxaField_listComplete_fromQueryInput { - all_nin: [String] - all: [String] - current_exists: Boolean - current_nin: [String] - OR: [TaxaField_listComplete_fromQueryInput!] - all_exists: Boolean - current: [String] - current_in: [String] - AND: [TaxaField_listComplete_fromQueryInput!] - all_in: [String] +input CreateVariantInput { + incidentId: Int + variant: CreateVariantInputVariant } -type RisksPayloadPrecedentNlp_similar_incident { +type IncidentNlp_similar_incident { incident_id: Int similarity: Float } -input History_incidentTsneUpdateInput { - x_inc: Float - x_unset: Boolean - y: Float - y_inc: Float - y_unset: Boolean - x: Float -} - -input ChecklistRiskUpdateInput { - precedents: [ChecklistRiskPrecedentUpdateInput] - risk_notes: String - generated_unset: Boolean - precedents_unset: Boolean - likelihood_unset: Boolean - severity_unset: Boolean - touched_unset: Boolean - id_unset: Boolean - title: String - tags_unset: Boolean - severity: String - risk_status: String - generated: Boolean - risk_status_unset: Boolean - id: String - risk_notes_unset: Boolean - tags: [String] - title_unset: Boolean - likelihood: String - touched: Boolean -} - -input GetUserInput { - userId: ObjectId -} - -type IncidentEmbedding { - from_reports: [Int] +input ReportEmbeddingUpdateInput { vector: [Float] + vector_unset: Boolean + from_text_hash: String + from_text_hash_unset: Boolean } -enum UserSortByInput { - USERID_ASC - USERID_DESC +enum QuickaddSortByInput { + INCIDENT_ID_DESC + URL_ASC + URL_DESC _ID_ASC + DATE_SUBMITTED_DESC + INCIDENT_ID_ASC + SOURCE_DOMAIN_DESC _ID_DESC - FIRST_NAME_ASC - FIRST_NAME_DESC - LAST_NAME_ASC - LAST_NAME_DESC -} - -input ChecklistRiskInsertInput { - risk_status: String - title: String - touched: Boolean - likelihood: String - id: String - precedents: [ChecklistRiskPrecedentInsertInput] - risk_notes: String - severity: String - generated: Boolean - tags: [String] + DATE_SUBMITTED_ASC + SOURCE_DOMAIN_ASC } -input SubmissionInsertInput { - epoch_date_modified: Int - language: String! - editor_similar_incidents: [Int] - incident_editors: SubmissionIncident_editorsRelationInput - description: String - developers: SubmissionDevelopersRelationInput - incident_date: String - incident_title: String - date_downloaded: String! +input IncidentUpdateInput { + editors_unset: Boolean + flagged_dissimilar_incidents_unset: Boolean + embedding_unset: Boolean + implicated_systems: IncidentImplicated_systemsRelationInput _id: ObjectId + AllegedHarmedOrNearlyHarmedParties: IncidentAllegedHarmedOrNearlyHarmedPartiesRelationInput + implicated_systems_unset: Boolean + AllegedDeployerOfAISystem_unset: Boolean + description_unset: Boolean + AllegedDeveloperOfAISystem: IncidentAllegedDeveloperOfAISystemRelationInput + incident_id: Int + reports_unset: Boolean + incident_id_inc: Int + AllegedHarmedOrNearlyHarmedParties_unset: Boolean editor_dissimilar_incidents: [Int] - authors: [String]! - date_submitted: String! - incident_ids: [Int] - tags: [String]! - user: SubmissionUserRelationInput - quiet: Boolean - submitters: [String]! - text: String! - deployers: SubmissionDeployersRelationInput - source_domain: String! - url: String! - date_modified: String! - cloudinary_id: String + description: String + epoch_date_modified: Int + title: String + _id_unset: Boolean + title_unset: Boolean + tsne_unset: Boolean + incident_id_unset: Boolean + editor_similar_incidents: [Int] + reports: IncidentReportsRelationInput + editor_notes_unset: Boolean + epoch_date_modified_unset: Boolean + flagged_dissimilar_incidents: [Int] + editor_dissimilar_incidents_unset: Boolean + tsne: IncidentTsneUpdateInput + epoch_date_modified_inc: Int + date: String editor_notes: String - embedding: SubmissionEmbeddingInsertInput - nlp_similar_incidents: [SubmissionNlp_similar_incidentInsertInput] - title: String! - date_published: String! - status: String - plain_text: String - image_url: String! - harmed_parties: SubmissionHarmed_partiesRelationInput + nlp_similar_incidents: [IncidentNlp_similar_incidentUpdateInput] + editors: IncidentEditorsRelationInput + embedding: IncidentEmbeddingUpdateInput + nlp_similar_incidents_unset: Boolean + AllegedDeveloperOfAISystem_unset: Boolean + AllegedDeployerOfAISystem: IncidentAllegedDeployerOfAISystemRelationInput + editor_similar_incidents_unset: Boolean + date_unset: Boolean } -input History_incidentEmbeddingUpdateInput { - from_reports_unset: Boolean - vector: [Float] - vector_unset: Boolean - from_reports: [Int] +input UpdateOneReportTranslationInput { + language: String! + plain_text: String! + report_number: Int! + text: String! + title: String! } input SubscriptionIncident_idRelationInput { - create: IncidentInsertInput link: Int + create: IncidentInsertInput } -type History_incidentNlp_similar_incident { - incident_id: Int - similarity: Float +input TaxaField_listQueryInput { + field_number_exists: Boolean + default_lt: String + default_lte: String + short_name_nin: [String] + field_number_nin: [String] + long_name_gte: String + default_ne: String + short_name: String + field_number_ne: String + placeholder_gte: String + field_number_in: [String] + weight_in: [Int] + placeholder_nin: [String] + display_type_gt: String + default_gt: String + short_description_ne: String + field_number_gte: String + long_description_gte: String + complete_from: TaxaField_listComplete_fromQueryInput + display_type_gte: String + weight_nin: [Int] + hide_search_ne: Boolean + short_description_exists: Boolean + field_number_lt: String + short_name_gt: String + permitted_values_in: [String] + long_name_nin: [String] + long_description_ne: String + item_fields: TaxaField_listItem_fieldQueryInput + permitted_values_nin: [String] + long_name_gt: String + long_description_in: [String] + short_name_lt: String + short_description_nin: [String] + mongo_type_ne: String + short_name_exists: Boolean + public_ne: Boolean + public: Boolean + long_description_lte: String + mongo_type_gte: String + mongo_type: String + long_name_exists: Boolean + display_type_nin: [String] + long_description: String + short_name_gte: String + required_ne: Boolean + weight_exists: Boolean + default_gte: String + weight_gte: Int + placeholder_lte: String + mongo_type_nin: [String] + default: String + short_description_gt: String + long_name: String + long_description_gt: String + display_type_ne: String + AND: [TaxaField_listQueryInput!] + long_name_lt: String + display_type_lt: String + default_nin: [String] + OR: [TaxaField_listQueryInput!] + short_description: String + required: Boolean + short_name_ne: String + mongo_type_lt: String + long_description_nin: [String] + weight: Int + long_name_ne: String + field_number: String + mongo_type_lte: String + placeholder_lt: String + hide_search: Boolean + instant_facet_exists: Boolean + mongo_type_in: [String] + long_description_lt: String + permitted_values_exists: Boolean + placeholder: String + display_type_lte: String + short_name_lte: String + weight_ne: Int + permitted_values: [String] + default_exists: Boolean + complete_from_exists: Boolean + short_description_gte: String + public_exists: Boolean + placeholder_gt: String + field_number_gt: String + short_description_lte: String + short_description_in: [String] + mongo_type_exists: Boolean + item_fields_exists: Boolean + display_type_exists: Boolean + required_exists: Boolean + instant_facet: Boolean + display_type_in: [String] + weight_lt: Int + instant_facet_ne: Boolean + weight_lte: Int + placeholder_in: [String] + short_description_lt: String + long_name_in: [String] + short_name_in: [String] + long_description_exists: Boolean + field_number_lte: String + hide_search_exists: Boolean + placeholder_exists: Boolean + default_in: [String] + long_name_lte: String + placeholder_ne: String + display_type: String + weight_gt: Int + mongo_type_gt: String } -type Subscription { +input NotificationInsertInput { + sentDate: DateTime + type: String + userId: NotificationUserIdRelationInput _id: ObjectId - entityId: Entity - incident_id: Incident - type: String! - userId: User! -} - -input SubmissionDeployersRelationInput { - create: [EntityInsertInput] - link: [String] -} - -enum History_incidentSortByInput { - TITLE_DESC - DATE_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - INCIDENT_ID_ASC - _ID_DESC - DATE_ASC - EDITOR_NOTES_ASC - EPOCH_DATE_MODIFIED_ASC - EPOCH_DATE_MODIFIED_DESC - INCIDENT_ID_DESC - TITLE_ASC - _ID_ASC - MODIFIEDBY_ASC - MODIFIEDBY_DESC - EDITOR_NOTES_DESC -} - -input SubmissionUserRelationInput { - create: UserInsertInput - link: String + incident_id: Int + processed: Boolean } -type LogReportHistoryPayload { - report_number: Int +input UserUpdateInput { + roles: [String] + last_name_unset: Boolean + roles_unset: Boolean + userId_unset: Boolean + first_name: String + first_name_unset: Boolean + last_name: String + _id: ObjectId + _id_unset: Boolean + userId: String } -enum History_reportSortByInput { - DATE_MODIFIED_ASC - URL_DESC - PLAIN_TEXT_ASC - PLAIN_TEXT_DESC - TITLE_ASC - USER_DESC - DATE_SUBMITTED_ASC - DESCRIPTION_ASC - MODIFIEDBY_DESC - LANGUAGE_DESC - LANGUAGE_ASC - URL_ASC - DATE_PUBLISHED_DESC - DATE_SUBMITTED_DESC - EPOCH_DATE_MODIFIED_ASC - IMAGE_URL_DESC - SOURCE_DOMAIN_DESC - TITLE_DESC - CLOUDINARY_ID_DESC - DATE_DOWNLOADED_ASC - EPOCH_DATE_MODIFIED_DESC - SOURCE_DOMAIN_ASC - EPOCH_DATE_PUBLISHED_DESC - TEXT_DESC - USER_ASC - _ID_ASC - _ID_DESC - MODIFIEDBY_ASC - EPOCH_DATE_DOWNLOADED_DESC - TEXT_ASC - DESCRIPTION_DESC - EDITOR_NOTES_DESC - EPOCH_DATE_SUBMITTED_DESC - REPORT_NUMBER_ASC - DATE_DOWNLOADED_DESC - EPOCH_DATE_PUBLISHED_ASC - EPOCH_DATE_SUBMITTED_ASC - REPORT_NUMBER_DESC - EPOCH_DATE_DOWNLOADED_ASC - IMAGE_URL_ASC - CLOUDINARY_ID_ASC - DATE_MODIFIED_DESC - DATE_PUBLISHED_ASC - EDITOR_NOTES_ASC +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 } -input ReportEmbeddingQueryInput { - from_text_hash_lte: String - from_text_hash: String - OR: [ReportEmbeddingQueryInput!] - from_text_hash_exists: Boolean - vector_nin: [Float] - AND: [ReportEmbeddingQueryInput!] - vector_exists: Boolean - from_text_hash_ne: String - vector: [Float] - from_text_hash_in: [String] - from_text_hash_gt: String - vector_in: [Float] - from_text_hash_nin: [String] - from_text_hash_gte: String - from_text_hash_lt: String +input IncidentReportsRelationInput { + create: [ReportInsertInput] + link: [Int] +} + +type PromoteSubmissionToReportPayload { + incident_ids: [Int] + report_number: Int } input CandidateEmbeddingUpdateInput { - vector: [Float] - vector_unset: Boolean from_text_hash: String from_text_hash_unset: Boolean -} - -input EntityUpdateInput { - entity_id_unset: Boolean - _id_unset: Boolean - date_modified: DateTime - date_modified_unset: Boolean - entity_id: String - name: String - _id: ObjectId - created_at_unset: Boolean - name_unset: Boolean - created_at: DateTime -} - -input UserQueryInput { - last_name_exists: Boolean - last_name_nin: [String] - last_name_lt: String - userId_ne: String - _id_in: [ObjectId] - userId: String - first_name: String - roles_nin: [String] - _id_exists: Boolean - last_name_lte: String - _id_nin: [ObjectId] - userId_lte: String - roles_exists: Boolean - _id_gte: ObjectId - userId_gte: String - roles_in: [String] - first_name_exists: Boolean - first_name_in: [String] - OR: [UserQueryInput!] - _id: ObjectId - userId_nin: [String] - roles: [String] - last_name_in: [String] - AND: [UserQueryInput!] - userId_exists: Boolean - _id_lt: ObjectId - first_name_gte: String - last_name: String - userId_gt: String - first_name_nin: [String] - userId_in: [String] - _id_ne: ObjectId - userId_lt: String - last_name_gt: String - _id_lte: ObjectId - first_name_ne: String - last_name_ne: String - _id_gt: ObjectId - first_name_gt: String - last_name_gte: String - first_name_lt: String - first_name_lte: String -} - -enum DuplicateSortByInput { - DUPLICATE_INCIDENT_NUMBER_ASC - DUPLICATE_INCIDENT_NUMBER_DESC - TRUE_INCIDENT_NUMBER_ASC - TRUE_INCIDENT_NUMBER_DESC - _ID_ASC - _ID_DESC + vector: [Float] + vector_unset: Boolean } type Notification { @@ -4198,139 +4332,39 @@ type Notification { userId: User } -input CandidateClassification_similarityUpdateInput { - similarity: Float - similarity_inc: Float - similarity_unset: Boolean - classification: String - classification_unset: Boolean -} - -input CandidateClassification_similarityInsertInput { - similarity: Float - classification: String -} - -enum CandidateSortByInput { - TEXT_ASC - URL_DESC - PLAIN_TEXT_DESC - SIMILARITY_ASC - SOURCE_DOMAIN_DESC - DATE_PUBLISHED_DESC - IMAGE_URL_ASC - SOURCE_DOMAIN_ASC - DATE_DOWNLOADED_ASC - EPOCH_DATE_DOWNLOADED_DESC - IMAGE_URL_DESC - SIMILARITY_DESC - EPOCH_DATE_DOWNLOADED_ASC - _ID_DESC - EPOCH_DATE_PUBLISHED_ASC - PLAIN_TEXT_ASC - TEXT_DESC - _ID_ASC - TITLE_ASC - EPOCH_DATE_PUBLISHED_DESC - DATE_PUBLISHED_ASC - LANGUAGE_DESC - TITLE_DESC - LANGUAGE_ASC - URL_ASC - DATE_DOWNLOADED_DESC -} - -type Candidate { +type History_incident { + AllegedDeployerOfAISystem: [String] + AllegedDeveloperOfAISystem: [String] + AllegedHarmedOrNearlyHarmedParties: [String] _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! + 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] + implicated_systems: [String] + incident_id: Int! + modifiedBy: String + nlp_similar_incidents: [History_incidentNlp_similar_incident] + reports: [Int]! + title: String! + tsne: History_incidentTsne } -input TaxaQueryInput { - field_list_exists: Boolean - namespace_exists: Boolean - weight_gt: Int - _id_gt: ObjectId - OR: [TaxaQueryInput!] - description_in: [String] - weight: Int - complete_entities_exists: Boolean - dummy_fields_exists: Boolean - _id_nin: [ObjectId] - _id_in: [ObjectId] - field_list_nin: [TaxaField_listQueryInput] - description_gt: String - field_list_in: [TaxaField_listQueryInput] - weight_lt: Int - weight_ne: Int - namespace: String - description: String - namespace_gte: String - namespace_ne: String - _id_exists: Boolean - namespace_in: [String] - _id_lt: ObjectId - dummy_fields: [TaxaDummy_fieldQueryInput] - description_lt: String - _id_gte: ObjectId - field_list: [TaxaField_listQueryInput] - weight_in: [Int] - description_nin: [String] - description_gte: String - namespace_nin: [String] - description_exists: Boolean - dummy_fields_in: [TaxaDummy_fieldQueryInput] - complete_entities_ne: Boolean - _id_ne: ObjectId +input UserInsertInput { _id: ObjectId - _id_lte: ObjectId - namespace_gt: String - complete_entities: Boolean - description_lte: String - AND: [TaxaQueryInput!] - namespace_lt: String - namespace_lte: String - description_ne: String - weight_lte: Int - weight_gte: Int - weight_exists: Boolean - dummy_fields_nin: [TaxaDummy_fieldQueryInput] - weight_nin: [Int] + first_name: String + last_name: String + roles: [String]! + userId: String! } -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 +input SubmissionImplicated_systemsRelationInput { + create: [EntityInsertInput] + link: [String] } `; diff --git a/site/gatsby-site/src/components/submissions/SubmissionEdit.js b/site/gatsby-site/src/components/submissions/SubmissionEdit.js index d9e19152b9..0daa8901f9 100644 --- a/site/gatsby-site/src/components/submissions/SubmissionEdit.js +++ b/site/gatsby-site/src/components/submissions/SubmissionEdit.js @@ -67,6 +67,12 @@ const SubmissionEdit = ({ id }) => { createEntityMutation ); + update.implicated_systems = await processEntities( + entities, + values.implicated_systems, + createEntityMutation + ); + if (update.nlp_similar_incidents) { update.nlp_similar_incidents = update.nlp_similar_incidents.map((nlp) => { return { ...nlp, __typename: undefined }; @@ -176,7 +182,8 @@ const SubmissionEdit = ({ id }) => { ? [] : submission.harmed_parties.map((item) => item.name || item), implicated_systems: - submission.implicated_systems === null + submission.implicated_systems === null || + submission.implicated_systems === undefined ? [] : submission.implicated_systems.map((item) => item.name || item), }} diff --git a/site/gatsby-site/src/graphql/schema.js b/site/gatsby-site/src/graphql/schema.js index 441bb2718f..a738d14929 100644 --- a/site/gatsby-site/src/graphql/schema.js +++ b/site/gatsby-site/src/graphql/schema.js @@ -2811,6 +2811,7 @@ input SubmissionUpdateInput { incident_date_unset: Boolean image_url: String cloudinary_id: String + implicated_systems: SubmissionImplicatedSystemsRelationInput } input RisksInput { @@ -3662,6 +3663,8 @@ input SubmissionQueryInput { epoch_date_modified_in: [Int] deployers_exists: Boolean title_nin: [String] + implicated_systems_nin: [EntityQueryInput] + implicated_systems: [EntityQueryInput] } input TaxaField_listInsertInput { @@ -3866,6 +3869,11 @@ input SubmissionDeployersRelationInput { link: [String] } +input SubmissionImplicatedSystemsRelationInput { + create: [EntityInsertInput] + link: [String] +} + input CandidateClassification_similarityInsertInput { classification: String similarity: Float @@ -3932,6 +3940,7 @@ type Submission { title: String! url: String! user: User + implicated_systems: [Entity] } input SubmissionIncident_editorsRelationInput { @@ -4272,6 +4281,7 @@ input SubmissionInsertInput { epoch_date_modified: Int tags: [String]! date_downloaded: String! + implicated_systems: SubmissionImplicatedSystemsRelationInput } input ClassificationAttributeUpdateInput { diff --git a/site/gatsby-site/src/graphql/submissions.js b/site/gatsby-site/src/graphql/submissions.js index e73bbacafe..2da6c3094b 100644 --- a/site/gatsby-site/src/graphql/submissions.js +++ b/site/gatsby-site/src/graphql/submissions.js @@ -166,6 +166,10 @@ export const UPDATE_SUBMISSION = gql` } editor_similar_incidents editor_dissimilar_incidents + implicated_systems { + entity_id + name + } } } `; From 0592698bd1985afce2b1ce78a55ca48d689c5799 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Fri, 26 Jul 2024 13:06:52 -0300 Subject: [PATCH 04/33] Add implicated systems to submit form & add migration for incidents and submissions --- site/gatsby-site/i18n/locales/es/submit.json | 4 +- .../i18n/locales/es/translation.json | 3 +- .../i18n/locales/es/validation.json | 4 +- site/gatsby-site/i18n/locales/fr/submit.json | 4 +- .../i18n/locales/fr/translation.json | 3 +- .../i18n/locales/fr/validation.json | 4 +- site/gatsby-site/i18n/locales/ja/submit.json | 4 +- .../i18n/locales/ja/validation.json | 4 +- ...4.07.25T14.51.08.set-implicated-systems.js | 77 +++++++++++++++++++ .../forms/SubmissionWizard/StepThree.js | 29 +++++++ .../src/components/forms/SubmitForm.js | 6 ++ .../components/incidents/IncidentsTable.js | 6 ++ site/gatsby-site/src/graphql/incidents.js | 4 + site/gatsby-site/src/graphql/submissions.js | 4 + 14 files changed, 148 insertions(+), 8 deletions(-) create mode 100644 site/gatsby-site/migrations/2024.07.25T14.51.08.set-implicated-systems.js diff --git a/site/gatsby-site/i18n/locales/es/submit.json b/site/gatsby-site/i18n/locales/es/submit.json index 2694794c45..6a30726b4f 100644 --- a/site/gatsby-site/i18n/locales/es/submit.json +++ b/site/gatsby-site/i18n/locales/es/submit.json @@ -61,5 +61,7 @@ "Saving changes...": "Guardando cambios...", "Submit a new incident report to the Artificial Intelligence Incident Database": "Enviar un nuevo informe de incidente a la Base de Datos de Incidentes de Inteligencia Artificial", "Draft saved": "Borrador guardado", - "Saving as draft...": "Guardando como borrador..." + "Saving as draft...": "Guardando como borrador...", + "Implicated Systems": "Sistemas Implicados", + "What systems were involved in the incident?": "¿Qué sistemas estuvieron involucrados en el incidente?" } diff --git a/site/gatsby-site/i18n/locales/es/translation.json b/site/gatsby-site/i18n/locales/es/translation.json index 952ca78d69..d318cfd368 100644 --- a/site/gatsby-site/i18n/locales/es/translation.json +++ b/site/gatsby-site/i18n/locales/es/translation.json @@ -563,5 +563,6 @@ "Read the Source": "Leer la Fuente", "Redirecting...": "Redirigiendo", "Random Incident": "Incidente aleatorio", - "Risk Checklists": "Control de Riesgos" + "Risk Checklists": "Control de Riesgos", + "Implicated Systems": "Sistemas Implicados" } diff --git a/site/gatsby-site/i18n/locales/es/validation.json b/site/gatsby-site/i18n/locales/es/validation.json index 778cf63f7c..8b25ed4c09 100644 --- a/site/gatsby-site/i18n/locales/es/validation.json +++ b/site/gatsby-site/i18n/locales/es/validation.json @@ -34,5 +34,7 @@ "*Description is required": "*La descripción es obligatoria", "*Incident Date is required": "*Fecha del incidente es obligatoria", "*Incident Date required": "*Fecha del incidente es obligatoria", - "*Incident ID(s) must be a number": "*El ID del incidente debe ser un número" + "*Incident ID(s) must be a number": "*El ID del incidente debe ser un número", + "Implicated Systems must have at least 3 characters": "Los sistemas implicados deben tener al menos 3 caracteres", + "Implicated Systems can't be longer than 200 characters": "Los sistemas implicados no pueden tener más de 200 caracteres" } diff --git a/site/gatsby-site/i18n/locales/fr/submit.json b/site/gatsby-site/i18n/locales/fr/submit.json index f5ce8c399d..a773410047 100644 --- a/site/gatsby-site/i18n/locales/fr/submit.json +++ b/site/gatsby-site/i18n/locales/fr/submit.json @@ -58,5 +58,7 @@ "Saving changes...": "Enregistrement des modifications...", "Submit a new incident report to the Artificial Intelligence Incident Database.": "Soumettre un nouveau rapport d'incident à la base de données des incidents d'intelligence artificielle.", "Draft saved": "Brouillon enregistré", - "Saving as draft...": "Enregistrement en tant que brouillon..." + "Saving as draft...": "Enregistrement en tant que brouillon...", + "Implicated Systems": "Systèmes impliqués", + "What systems were involved in the incident?": "Quels systèmes étaient impliqués dans l'incident ?" } diff --git a/site/gatsby-site/i18n/locales/fr/translation.json b/site/gatsby-site/i18n/locales/fr/translation.json index 6ccf56f411..25e241662d 100644 --- a/site/gatsby-site/i18n/locales/fr/translation.json +++ b/site/gatsby-site/i18n/locales/fr/translation.json @@ -550,5 +550,6 @@ "Redirecting...": "En train de rediriger...", "Random Incident": "Incident au hasard", "Read the Source": "Lire la source", - "Risk Checklists": "Contrôle des risques" + "Risk Checklists": "Contrôle des risques", + "Implicated Systems": "Systèmes impliqués" } diff --git a/site/gatsby-site/i18n/locales/fr/validation.json b/site/gatsby-site/i18n/locales/fr/validation.json index 1701f0da92..75fb77e759 100644 --- a/site/gatsby-site/i18n/locales/fr/validation.json +++ b/site/gatsby-site/i18n/locales/fr/validation.json @@ -28,5 +28,7 @@ "*Description is required": "*La description est requise", "*Incident Date is required": "*Date de l'incident requise", "*Incident Date required": "*Date de l'incident requise", - "*Incident ID(s) must be a number": "*L'ID de l'incident doit être un nombre" + "*Incident ID(s) must be a number": "*L'ID de l'incident doit être un nombre", + "Implicated Systems must have at least 3 characters": "Les systèmes impliqués doivent comporter au moins 3 caractères", + "Implicated Systems can't be longer than 200 characters": "Les systèmes impliqués ne peuvent pas comporter plus de 200 caractères" } diff --git a/site/gatsby-site/i18n/locales/ja/submit.json b/site/gatsby-site/i18n/locales/ja/submit.json index 39435b4576..a1b4df154f 100644 --- a/site/gatsby-site/i18n/locales/ja/submit.json +++ b/site/gatsby-site/i18n/locales/ja/submit.json @@ -60,5 +60,7 @@ "Clear Form": "フォームをクリアする", "Saving changes...": "変更を保存中...", "Draft saved": "下書きが保存されました", - "Saving as draft...": "下書きとして保存中..." + "Saving as draft...": "下書きとして保存中...", + "Implicated Systems": "関連システム", + "What systems were involved in the incident?": "このインシデントに関わるシステムは何ですか?" } diff --git a/site/gatsby-site/i18n/locales/ja/validation.json b/site/gatsby-site/i18n/locales/ja/validation.json index 9dcfd40b74..2f030128d5 100644 --- a/site/gatsby-site/i18n/locales/ja/validation.json +++ b/site/gatsby-site/i18n/locales/ja/validation.json @@ -13,5 +13,7 @@ "Please review report. Some data is missing.": "レポートを確認してください。足りない情報があります", "Please review submission. Some data is missing.": "投稿を確認してください。足りない情報があります", "Some data is missing.": "足りない情報があります", - "Please review. Some data is missing.": "確認してください。足りない情報があります" + "Please review. Some data is missing.": "確認してください。足りない情報があります", + "Implicated Systems must have at least 3 characters": "関連システムは3文字以上でなければいけません", + "Implicated Systems can't be longer than 200 characters": "関連システムは200文字を超えることはできません" } diff --git a/site/gatsby-site/migrations/2024.07.25T14.51.08.set-implicated-systems.js b/site/gatsby-site/migrations/2024.07.25T14.51.08.set-implicated-systems.js new file mode 100644 index 0000000000..3dc56c9274 --- /dev/null +++ b/site/gatsby-site/migrations/2024.07.25T14.51.08.set-implicated-systems.js @@ -0,0 +1,77 @@ +const config = require('../config'); +/** + * + * @param {{context: {client: import('mongodb').MongoClient}}} context + */ + +exports.up = async ({ context: { client } }) => { + await client.connect(); + + // New implicated_systems field on submissions and incidents collections from production db and history db + + const submissionsCollection = client + .db(config.realm.production_db.db_name) + .collection('submissions'); + + const submissionsHistoryCollection = client + .db(config.realm.production_db.db_history_name) + .collection('submissions'); + + const incidentsCollection = client.db(config.realm.production_db.db_name).collection('incidents'); + + const incidentsHistoryCollection = client + .db(config.realm.production_db.db_history_name) + .collection('incidents'); + + const submissionsUpdates = await submissionsCollection.updateMany( + {}, + { + $set: { + implicated_systems: [], + }, + } + ); + + console.log( + `Updated ${submissionsUpdates.modifiedCount} submissions with new implicated_systems field` + ); + + const submissionsHistoryUpdates = await submissionsHistoryCollection.updateMany( + {}, + { + $set: { + implicated_systems: [], + }, + } + ); + + console.log( + `Updated ${submissionsHistoryUpdates.modifiedCount} submissions history with new created_at field` + ); + + const incidentsUpdates = await incidentsCollection.updateMany( + {}, + { + $set: { + implicated_systems: [], + }, + } + ); + + console.log( + `Updated ${incidentsUpdates.modifiedCount} submissions with new implicated_systems field` + ); + + const incidentsHistoryUpdates = await incidentsHistoryCollection.updateMany( + {}, + { + $set: { + implicated_systems: [], + }, + } + ); + + console.log( + `Updated ${incidentsHistoryUpdates.modifiedCount} submissions history with new created_at field` + ); +}; diff --git a/site/gatsby-site/src/components/forms/SubmissionWizard/StepThree.js b/site/gatsby-site/src/components/forms/SubmissionWizard/StepThree.js index 5bf742fe58..27a93e0376 100644 --- a/site/gatsby-site/src/components/forms/SubmissionWizard/StepThree.js +++ b/site/gatsby-site/src/components/forms/SubmissionWizard/StepThree.js @@ -18,6 +18,7 @@ import { faStickyNote, faPenNib, faTenge, + faGear, } from '@fortawesome/free-solid-svg-icons'; import { debounce } from 'debounce'; import UsersInputGroup from '../UsersInputGroup'; @@ -73,6 +74,17 @@ const StepThree = (props) => { message: "Harmed Parties can't be longer than 200 characters", }) .nullable(), + implicated_systems: yup + .string() + .matches(/^.{3,}$/, { + excludeEmptyString: true, + message: 'Implicated Systems must have at least 3 characters', + }) + .matches(/^.{3,200}$/, { + excludeEmptyString: true, + message: "Implicated Systems can't be longer than 200 characters", + }) + .nullable(), }); const handleSubmit = (values) => { @@ -306,6 +318,23 @@ const FormDetails = ({ errors={errors} /> + + + + )} diff --git a/site/gatsby-site/src/components/forms/SubmitForm.js b/site/gatsby-site/src/components/forms/SubmitForm.js index 3d4b847029..699296f6a5 100644 --- a/site/gatsby-site/src/components/forms/SubmitForm.js +++ b/site/gatsby-site/src/components/forms/SubmitForm.js @@ -209,6 +209,12 @@ const SubmitForm = () => { createEntityMutation ); + submission.implicated_systems = await processEntities( + allEntities, + values.implicated_systems, + createEntityMutation + ); + await insertSubmission({ variables: { submission } }); addToast({ diff --git a/site/gatsby-site/src/components/incidents/IncidentsTable.js b/site/gatsby-site/src/components/incidents/IncidentsTable.js index 6ea9c220e7..e3c3a6d38f 100644 --- a/site/gatsby-site/src/components/incidents/IncidentsTable.js +++ b/site/gatsby-site/src/components/incidents/IncidentsTable.js @@ -113,6 +113,12 @@ export default function IncidentsTable({ data, isLiveData, setIsLiveData }) { data.AllegedHarmedOrNearlyHarmedParties?.map((i) => `${i.name} ${i.id ?? i.entity_id}`), Cell: ListCell, }, + { + title: t('Implicated Systems'), + id: 'implicated_systems', + accessor: (data) => data.implicated_systems?.map((i) => `${i.name} ${i.id ?? i.entity_id}`), + Cell: ListCell, + }, ]; if (isRole('incident_editor')) { diff --git a/site/gatsby-site/src/graphql/incidents.js b/site/gatsby-site/src/graphql/incidents.js index ebee9d4b53..03415de579 100644 --- a/site/gatsby-site/src/graphql/incidents.js +++ b/site/gatsby-site/src/graphql/incidents.js @@ -70,6 +70,10 @@ export const FIND_INCIDENTS_TABLE = gql` reports { report_number } + implicated_systems { + entity_id + name + } } } `; diff --git a/site/gatsby-site/src/graphql/submissions.js b/site/gatsby-site/src/graphql/submissions.js index 2da6c3094b..ec8d74e334 100644 --- a/site/gatsby-site/src/graphql/submissions.js +++ b/site/gatsby-site/src/graphql/submissions.js @@ -116,6 +116,10 @@ export const FIND_SUBMISSION = gql` editor_dissimilar_incidents status quiet + implicated_systems { + entity_id + name + } } } `; From adb0ab91f3223c7ad34dc226c73ebae5278e8bc9 Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Fri, 26 Jul 2024 13:21:43 -0300 Subject: [PATCH 05/33] Update submit test with implicated_systems --- site/gatsby-site/playwright/e2e/submit.spec.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/site/gatsby-site/playwright/e2e/submit.spec.ts b/site/gatsby-site/playwright/e2e/submit.spec.ts index f28828353a..56a487dd59 100644 --- a/site/gatsby-site/playwright/e2e/submit.spec.ts +++ b/site/gatsby-site/playwright/e2e/submit.spec.ts @@ -166,6 +166,9 @@ test.describe('The Submit form', () => { await page.locator('input[name="deployers"]').fill('NewDeployer'); await page.keyboard.press('Enter'); + + await page.locator('input[name="implicated_systems"]').fill('New implicated system'); + await page.keyboard.press('Enter'); await page.locator('button[type="submit"]').click(); const updateReportRequest = await waitForRequest('insertSubmission'); @@ -184,6 +187,7 @@ test.describe('The Submit form', () => { url: `https://www.arstechnica.com/gadgets/2017/11/youtube-to-crack-down-on-inappropriate-content-masked-as-kids-cartoons/`, source_domain: `arstechnica.com`, deployers: { link: ['youtube', 'newdeployer'] }, + implicated_systems: { link: ['new-implicated-system'] }, }); await expect(page.locator('.tw-toast:has-text("Report successfully added to review queue. You can see your submission")')).toBeVisible(); @@ -1493,7 +1497,7 @@ test.describe('The Submit form', () => { }); }); - test('Should hide incident_date, description, deployers, developers & harmed_parties if incident_ids is set', async ({ page }) => { + test('Should hide incident_date, description, deployers, developers, harmed_parties & implicated_systems if incident_ids is set', async ({ page }) => { await conditionalIntercept( page, '**/graphql', @@ -1588,6 +1592,7 @@ test.describe('The Submit form', () => { await expect(page.locator('input[name="deployers"]')).not.toBeVisible(); await expect(page.locator('input[name="developers"]')).not.toBeVisible(); await expect(page.locator('input[name="harmed_parties"]')).not.toBeVisible(); + await expect(page.locator('input[name="implicated_systems"]')).not.toBeVisible(); await page.locator('button[type="submit"]').click(); @@ -1800,6 +1805,7 @@ test.describe('The Submit form', () => { developers: 'test developer', deployers: 'test deployer', harmed_parties: 'test harmed_parties', + implicated_systems: 'test implicated_systems', editor_notes: 'Here are some notes', }; @@ -1824,6 +1830,7 @@ test.describe('The Submit form', () => { developers: [valuesStep3.developers], deployers: [valuesStep3.deployers], harmed_parties: [valuesStep3.harmed_parties], + implicated_systems: [valuesStep3.implicated_systems], nlp_similar_incidents: [], cloudinary_id: `reports/incidentdatabase.ai/image.jpg`, text: 'Sit quo accusantium quia assumenda. Quod delectus similique labore optio quaease', From a21e4bd378659a596eda61be1c4ceacdeee24abd Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Mon, 29 Jul 2024 11:15:10 -0300 Subject: [PATCH 06/33] Add implicated_systems to incident history schema --- .../src/components/incidents/IncidentForm.js | 13 ++++++++++++ site/gatsby-site/src/graphql/incidents.js | 4 ++++ site/gatsby-site/src/pages/incidents/edit.js | 20 ++++++++++++++++++- site/gatsby-site/src/utils/cite.js | 9 +++++++++ 4 files changed, 45 insertions(+), 1 deletion(-) diff --git a/site/gatsby-site/src/components/incidents/IncidentForm.js b/site/gatsby-site/src/components/incidents/IncidentForm.js index dbb82972f8..c0d1cd6b4a 100644 --- a/site/gatsby-site/src/components/incidents/IncidentForm.js +++ b/site/gatsby-site/src/components/incidents/IncidentForm.js @@ -34,6 +34,7 @@ export const schema = Yup.object().shape({ AllegedHarmedOrNearlyHarmedParties: Yup.array().required(), editors: Yup.array().of(Yup.string()).required(), editor_notes: Yup.string().nullable(), + implicated_systems: Yup.array().required(), }); function IncidentForm() { @@ -194,6 +195,18 @@ function IncidentForm() { /> + + + +