generated from IBM/template-graphql-typescript
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.gql
207 lines (181 loc) · 4.25 KB
/
schema.gql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
input ApproveCaseInput {
customerOutreach: String!
documents: [DocumentInput!]!
id: ID!
}
"""KYC Customer"""
type Customer {
countryOfResidence: String!
entityType: String!
industryType: String!
name: String!
personalIdentificationNumber: String!
}
input CustomerInput {
countryOfResidence: String!
entityType: String!
industryType: String!
name: String!
personalIdentificationNumber: String!
}
"""Customer risk assessment"""
type CustomerRiskAssessment {
error: String
rating: String!
score: Float!
}
"""Data extraction question"""
type DataExtractionQuestion {
id: ID!
inScope: Boolean!
question: String!
}
"""Data extraction question input"""
input DataExtractionQuestionIdInput {
id: ID!
}
"""Data extraction result"""
type DataExtractionResult {
expectedResponse: String!
id: ID!
inScope: Boolean!
model: String!
prompt: String!
question: String!
source: String!
tokens: Float!
watsonxResponse: String!
}
"""KYC Document"""
type Document {
id: ID!
name: String!
path: String!
}
input DocumentInput {
id: ID!
name: String!
path: String!
}
type DocumentOutput {
id: ID!
name: String
path: String
status: String
}
"""Object representing a key/value pair"""
type FormOption {
text: String!
value: String!
}
"""greeting"""
type Greeting {
greeting: String!
}
"""KYC Case"""
type KycCase {
caseSummary: KycCaseSummary
counterparty: Person
counterpartyNegativeScreening: NegativeScreening
customer: Customer!
customerOutreach: String
customerRiskAssessment: CustomerRiskAssessment
documents: [Document!]!
id: ID!
negativeScreening: NegativeScreening
status: String!
}
type KycCaseChangeEvent {
caseId: ID!
event: String!
}
"""KYC case summary"""
type KycCaseSummary {
error: String
summary: String!
}
input ListDocumentInput {
context: String
statuses: [String!]
}
type Mutation {
addDocumentToCase(caseId: ID!, documentName: String!, documentUrl: String!): KycCase!
approveCase(case: ApproveCaseInput!): KycCase!
createCase(customer: CustomerInput!): KycCase!
deleteCase(id: ID!): KycCase!
deleteDocument(id: ID!): Document!
processCase(id: ID!): KycCase!
removeDocumentFromCase(caseId: ID!, documentId: ID!): KycCase!
reviewCase(case: ReviewCaseInput!): KycCase!
}
"""Negative screening"""
type NegativeScreening {
error: String
negativeNews: [NewsItem!]!
negativeNewsCount: Float!
nonNegativeNews: [NewsItem!]!
nonNegativeNewsCount: Float!
subject: String!
summary: String!
totalScreened: Float!
unrelatedNews: [NewsItem!]!
unrelatedNewsCount: Float!
}
type NewsItem {
date: String!
hasNegativeNews: Boolean
link: String!
negativeNewsTopics: [String!]
snippet: String!
source: String!
summary: String
title: String!
}
"""KYC Person"""
type Person {
countryOfResidence: String!
name: String!
}
input PersonInput {
countryOfResidence: String!
name: String!
}
type Query {
extractDataForQuestion(customer: String!, question: DataExtractionQuestionIdInput!): DataExtractionResult!
extractDataForQuestions(customer: String!, questions: [DataExtractionQuestionIdInput!]!): [DataExtractionResult!]!
getCase(id: ID!): KycCase!
getDocument(id: ID!): Document!
helloWorld: Greeting!
listCases: [KycCase!]!
listCountries: [FormOption!]!
listDocuments: [Document!]!
listEntityTypes: [FormOption!]!
listFiles(input: ListDocumentInput): [DocumentOutput!]!
listIndustryTypes: [FormOption!]!
listQuestions: [DataExtractionQuestion!]!
screenNews(country: String, dateOfBirth: String, name: String!): NegativeScreening!
summarize(name: String!): SummaryResult!
validateUrl(url: String!): ValidatedUrl!
}
input ReviewCaseInput {
counterparty: PersonInput!
customerOutreach: String
documents: [DocumentInput!]!
id: ID!
}
type Subscription {
extractDataObservable(customer: String!, questions: [DataExtractionQuestionIdInput!]!): [DataExtractionResult!]!
subscribeToCaseChanges: KycCaseChangeEvent!
subscribeToCases: [KycCase!]!
watchCase(id: ID!): KycCase!
}
type SummaryResult {
result: String!
}
type ValidatedUrl {
isValid: Boolean!
link: String!
}