graphlit-client 1.0.20251127001 → 1.0.20251129001

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -156,6 +156,7 @@ declare class Graphlit {
156
156
  summarizeContents(summarizations: Types.SummarizationStrategyInput[], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.SummarizeContentsMutation>;
157
157
  extractText(prompt: string, text: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, textType?: Types.TextTypes, correlationId?: string): Promise<Types.ExtractTextMutation>;
158
158
  extractContents(prompt: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
159
+ extractObservables(text: string, textType?: Types.TextTypes, specification?: Types.EntityReferenceInput, observableTypes?: Types.ObservableTypes[], correlationId?: string): Promise<Types.ExtractObservablesMutation>;
159
160
  publishContents(publishPrompt: string, connector: Types.ContentPublishingConnectorInput, summaryPrompt?: string, summarySpecification?: Types.EntityReferenceInput, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, includeDetails?: boolean, correlationId?: string): Promise<Types.PublishContentsMutation>;
160
161
  publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, correlationId?: string): Promise<Types.PublishTextMutation>;
161
162
  researchContents(connector: Types.ContentPublishingConnectorInput, filter?: Types.ContentFilter, name?: string, summarySpecification?: Types.EntityReferenceInput, publishSpecification?: Types.EntityReferenceInput, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ResearchContentsMutation>;
@@ -442,6 +443,9 @@ declare class Graphlit {
442
443
  createObservation(observation: Types.ObservationInput): Promise<Types.CreateObservationMutation>;
443
444
  updateObservation(observation: Types.ObservationUpdateInput): Promise<Types.UpdateObservationMutation>;
444
445
  deleteObservation(id: string): Promise<Types.DeleteObservationMutation>;
446
+ matchEntity(observable: Types.ObservableInput, candidates: Types.EntityReferenceInput[], specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.MatchEntityMutation>;
447
+ resolveEntities(type: Types.ObservableTypes, entities: Types.EntityReferenceInput[], threshold?: number, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ResolveEntitiesMutation>;
448
+ resolveEntity(type: Types.ObservableTypes, source: Types.EntityReferenceInput, target: Types.EntityReferenceInput, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ResolveEntityMutation>;
445
449
  createInvestment(investment: Types.InvestmentInput): Promise<Types.CreateInvestmentMutation>;
446
450
  updateInvestment(investment: Types.InvestmentUpdateInput): Promise<Types.UpdateInvestmentMutation>;
447
451
  deleteInvestment(id: string): Promise<Types.DeleteInvestmentMutation>;
package/dist/client.js CHANGED
@@ -704,6 +704,15 @@ class Graphlit {
704
704
  correlationId: correlationId,
705
705
  });
706
706
  }
707
+ async extractObservables(text, textType, specification, observableTypes, correlationId) {
708
+ return this.mutateAndCheckError(Documents.ExtractObservables, {
709
+ text: text,
710
+ textType: textType,
711
+ specification: specification,
712
+ observableTypes: observableTypes,
713
+ correlationId: correlationId,
714
+ });
715
+ }
707
716
  async publishContents(publishPrompt, connector, summaryPrompt, summarySpecification, publishSpecification, name, filter, workflow, isSynchronous, includeDetails, correlationId) {
708
717
  return this.mutateAndCheckError(Documents.PublishContents, {
709
718
  summaryPrompt: summaryPrompt,
@@ -1998,6 +2007,32 @@ class Graphlit {
1998
2007
  async deleteObservation(id) {
1999
2008
  return this.mutateAndCheckError(Documents.DeleteObservation, { id: id });
2000
2009
  }
2010
+ async matchEntity(observable, candidates, specification, correlationId) {
2011
+ return this.mutateAndCheckError(Documents.MatchEntity, {
2012
+ observable: observable,
2013
+ candidates: candidates,
2014
+ specification: specification,
2015
+ correlationId: correlationId,
2016
+ });
2017
+ }
2018
+ async resolveEntities(type, entities, threshold, specification, correlationId) {
2019
+ return this.mutateAndCheckError(Documents.ResolveEntities, {
2020
+ type: type,
2021
+ entities: entities,
2022
+ threshold: threshold,
2023
+ specification: specification,
2024
+ correlationId: correlationId,
2025
+ });
2026
+ }
2027
+ async resolveEntity(type, source, target, specification, correlationId) {
2028
+ return this.mutateAndCheckError(Documents.ResolveEntity, {
2029
+ type: type,
2030
+ source: source,
2031
+ target: target,
2032
+ specification: specification,
2033
+ correlationId: correlationId,
2034
+ });
2035
+ }
2001
2036
  async createInvestment(investment) {
2002
2037
  return this.mutateAndCheckError(Documents.CreateInvestment, { investment: investment });
2003
2038
  }
@@ -41,6 +41,7 @@ export declare const DeleteContents: import("graphql").DocumentNode;
41
41
  export declare const DescribeEncodedImage: import("graphql").DocumentNode;
42
42
  export declare const DescribeImage: import("graphql").DocumentNode;
43
43
  export declare const ExtractContents: import("graphql").DocumentNode;
44
+ export declare const ExtractObservables: import("graphql").DocumentNode;
44
45
  export declare const ExtractText: import("graphql").DocumentNode;
45
46
  export declare const GetContent: import("graphql").DocumentNode;
46
47
  export declare const IngestBatch: import("graphql").DocumentNode;
@@ -247,6 +248,9 @@ export declare const UpdateMedicalTherapy: import("graphql").DocumentNode;
247
248
  export declare const SendNotification: import("graphql").DocumentNode;
248
249
  export declare const CreateObservation: import("graphql").DocumentNode;
249
250
  export declare const DeleteObservation: import("graphql").DocumentNode;
251
+ export declare const MatchEntity: import("graphql").DocumentNode;
252
+ export declare const ResolveEntities: import("graphql").DocumentNode;
253
+ export declare const ResolveEntity: import("graphql").DocumentNode;
250
254
  export declare const UpdateObservation: import("graphql").DocumentNode;
251
255
  export declare const CountOrganizations: import("graphql").DocumentNode;
252
256
  export declare const CreateOrganization: import("graphql").DocumentNode;
@@ -1153,6 +1153,106 @@ export const ExtractContents = gql `
1153
1153
  }
1154
1154
  }
1155
1155
  `;
1156
+ export const ExtractObservables = gql `
1157
+ mutation ExtractObservables($text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $observableTypes: [ObservableTypes!], $correlationId: String) {
1158
+ extractObservables(
1159
+ text: $text
1160
+ textType: $textType
1161
+ specification: $specification
1162
+ observableTypes: $observableTypes
1163
+ correlationId: $correlationId
1164
+ ) {
1165
+ labels {
1166
+ name
1167
+ metadata
1168
+ }
1169
+ categories {
1170
+ name
1171
+ metadata
1172
+ }
1173
+ persons {
1174
+ name
1175
+ metadata
1176
+ }
1177
+ organizations {
1178
+ name
1179
+ metadata
1180
+ }
1181
+ places {
1182
+ name
1183
+ metadata
1184
+ }
1185
+ events {
1186
+ name
1187
+ metadata
1188
+ }
1189
+ products {
1190
+ name
1191
+ metadata
1192
+ }
1193
+ softwares {
1194
+ name
1195
+ metadata
1196
+ }
1197
+ repos {
1198
+ name
1199
+ metadata
1200
+ }
1201
+ investments {
1202
+ name
1203
+ metadata
1204
+ }
1205
+ investmentFunds {
1206
+ name
1207
+ metadata
1208
+ }
1209
+ medicalStudies {
1210
+ name
1211
+ metadata
1212
+ }
1213
+ medicalConditions {
1214
+ name
1215
+ metadata
1216
+ }
1217
+ medicalGuidelines {
1218
+ name
1219
+ metadata
1220
+ }
1221
+ medicalDrugs {
1222
+ name
1223
+ metadata
1224
+ }
1225
+ medicalDrugClasses {
1226
+ name
1227
+ metadata
1228
+ }
1229
+ medicalIndications {
1230
+ name
1231
+ metadata
1232
+ }
1233
+ medicalContraindications {
1234
+ name
1235
+ metadata
1236
+ }
1237
+ medicalProcedures {
1238
+ name
1239
+ metadata
1240
+ }
1241
+ medicalTherapies {
1242
+ name
1243
+ metadata
1244
+ }
1245
+ medicalDevices {
1246
+ name
1247
+ metadata
1248
+ }
1249
+ medicalTests {
1250
+ name
1251
+ metadata
1252
+ }
1253
+ }
1254
+ }
1255
+ `;
1156
1256
  export const ExtractText = gql `
1157
1257
  mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
1158
1258
  extractText(
@@ -10541,6 +10641,82 @@ export const DeleteObservation = gql `
10541
10641
  }
10542
10642
  }
10543
10643
  `;
10644
+ export const MatchEntity = gql `
10645
+ mutation MatchEntity($observable: ObservableInput!, $candidates: [EntityReferenceInput!]!, $specification: EntityReferenceInput, $correlationId: String) {
10646
+ matchEntity(
10647
+ observable: $observable
10648
+ candidates: $candidates
10649
+ specification: $specification
10650
+ correlationId: $correlationId
10651
+ ) {
10652
+ reference {
10653
+ type
10654
+ observable {
10655
+ id
10656
+ name
10657
+ }
10658
+ }
10659
+ relevance
10660
+ reasoning
10661
+ }
10662
+ }
10663
+ `;
10664
+ export const ResolveEntities = gql `
10665
+ mutation ResolveEntities($type: ObservableTypes!, $entities: [EntityReferenceInput!]!, $threshold: Float, $specification: EntityReferenceInput, $correlationId: String) {
10666
+ resolveEntities(
10667
+ type: $type
10668
+ entities: $entities
10669
+ threshold: $threshold
10670
+ specification: $specification
10671
+ correlationId: $correlationId
10672
+ ) {
10673
+ type
10674
+ primary {
10675
+ id
10676
+ }
10677
+ resolved {
10678
+ id
10679
+ }
10680
+ relevance
10681
+ reasoning
10682
+ primaryCluster {
10683
+ entities {
10684
+ id
10685
+ name
10686
+ }
10687
+ similarity
10688
+ }
10689
+ outlierClusters {
10690
+ entities {
10691
+ id
10692
+ name
10693
+ }
10694
+ similarity
10695
+ }
10696
+ }
10697
+ }
10698
+ `;
10699
+ export const ResolveEntity = gql `
10700
+ mutation ResolveEntity($type: ObservableTypes!, $source: EntityReferenceInput!, $target: EntityReferenceInput!, $specification: EntityReferenceInput, $correlationId: String) {
10701
+ resolveEntity(
10702
+ type: $type
10703
+ source: $source
10704
+ target: $target
10705
+ specification: $specification
10706
+ correlationId: $correlationId
10707
+ ) {
10708
+ reference {
10709
+ type
10710
+ observable {
10711
+ id
10712
+ name
10713
+ }
10714
+ }
10715
+ relevance
10716
+ reasoning
10717
+ }
10718
+ }
10719
+ `;
10544
10720
  export const UpdateObservation = gql `
10545
10721
  mutation UpdateObservation($observation: ObservationUpdateInput!) {
10546
10722
  updateObservation(observation: $observation) {
@@ -11890,6 +12066,14 @@ export const DeleteRepos = gql `
11890
12066
  export const GetRepo = gql `
11891
12067
  query GetRepo($id: ID!, $correlationId: String) {
11892
12068
  repo(id: $id, correlationId: $correlationId) {
12069
+ id
12070
+ name
12071
+ creationDate
12072
+ modifiedDate
12073
+ owner {
12074
+ id
12075
+ }
12076
+ state
11893
12077
  alternateNames
11894
12078
  uri
11895
12079
  description
@@ -11908,6 +12092,28 @@ export const GetRepo = gql `
11908
12092
  id
11909
12093
  name
11910
12094
  }
12095
+ location {
12096
+ latitude
12097
+ longitude
12098
+ }
12099
+ h3 {
12100
+ h3r0
12101
+ h3r1
12102
+ h3r2
12103
+ h3r3
12104
+ h3r4
12105
+ h3r5
12106
+ h3r6
12107
+ h3r7
12108
+ h3r8
12109
+ h3r9
12110
+ h3r10
12111
+ h3r11
12112
+ h3r12
12113
+ h3r13
12114
+ h3r14
12115
+ h3r15
12116
+ }
11911
12117
  }
11912
12118
  }
11913
12119
  `;
@@ -11915,6 +12121,15 @@ export const QueryRepos = gql `
11915
12121
  query QueryRepos($filter: RepoFilter, $correlationId: String) {
11916
12122
  repos(filter: $filter, correlationId: $correlationId) {
11917
12123
  results {
12124
+ id
12125
+ name
12126
+ creationDate
12127
+ modifiedDate
12128
+ relevance
12129
+ owner {
12130
+ id
12131
+ }
12132
+ state
11918
12133
  alternateNames
11919
12134
  uri
11920
12135
  description
@@ -11933,6 +12148,28 @@ export const QueryRepos = gql `
11933
12148
  id
11934
12149
  name
11935
12150
  }
12151
+ location {
12152
+ latitude
12153
+ longitude
12154
+ }
12155
+ h3 {
12156
+ h3r0
12157
+ h3r1
12158
+ h3r2
12159
+ h3r3
12160
+ h3r4
12161
+ h3r5
12162
+ h3r6
12163
+ h3r7
12164
+ h3r8
12165
+ h3r9
12166
+ h3r10
12167
+ h3r11
12168
+ h3r12
12169
+ h3r13
12170
+ h3r14
12171
+ h3r15
12172
+ }
11936
12173
  }
11937
12174
  }
11938
12175
  }
@@ -12020,8 +12257,14 @@ export const DeleteSoftwares = gql `
12020
12257
  export const GetSoftware = gql `
12021
12258
  query GetSoftware($id: ID!, $correlationId: String) {
12022
12259
  software(id: $id, correlationId: $correlationId) {
12023
- releaseDate
12024
- developer
12260
+ id
12261
+ name
12262
+ creationDate
12263
+ modifiedDate
12264
+ owner {
12265
+ id
12266
+ }
12267
+ state
12025
12268
  alternateNames
12026
12269
  uri
12027
12270
  description
@@ -12040,6 +12283,30 @@ export const GetSoftware = gql `
12040
12283
  id
12041
12284
  name
12042
12285
  }
12286
+ location {
12287
+ latitude
12288
+ longitude
12289
+ }
12290
+ h3 {
12291
+ h3r0
12292
+ h3r1
12293
+ h3r2
12294
+ h3r3
12295
+ h3r4
12296
+ h3r5
12297
+ h3r6
12298
+ h3r7
12299
+ h3r8
12300
+ h3r9
12301
+ h3r10
12302
+ h3r11
12303
+ h3r12
12304
+ h3r13
12305
+ h3r14
12306
+ h3r15
12307
+ }
12308
+ releaseDate
12309
+ developer
12043
12310
  }
12044
12311
  }
12045
12312
  `;
@@ -12047,8 +12314,15 @@ export const QuerySoftwares = gql `
12047
12314
  query QuerySoftwares($filter: SoftwareFilter, $correlationId: String) {
12048
12315
  softwares(filter: $filter, correlationId: $correlationId) {
12049
12316
  results {
12050
- releaseDate
12051
- developer
12317
+ id
12318
+ name
12319
+ creationDate
12320
+ modifiedDate
12321
+ relevance
12322
+ owner {
12323
+ id
12324
+ }
12325
+ state
12052
12326
  alternateNames
12053
12327
  uri
12054
12328
  description
@@ -12067,6 +12341,30 @@ export const QuerySoftwares = gql `
12067
12341
  id
12068
12342
  name
12069
12343
  }
12344
+ location {
12345
+ latitude
12346
+ longitude
12347
+ }
12348
+ h3 {
12349
+ h3r0
12350
+ h3r1
12351
+ h3r2
12352
+ h3r3
12353
+ h3r4
12354
+ h3r5
12355
+ h3r6
12356
+ h3r7
12357
+ h3r8
12358
+ h3r9
12359
+ h3r10
12360
+ h3r11
12361
+ h3r12
12362
+ h3r13
12363
+ h3r14
12364
+ h3r15
12365
+ }
12366
+ releaseDate
12367
+ developer
12070
12368
  }
12071
12369
  }
12072
12370
  }
@@ -14213,6 +14511,13 @@ export const CreateWorkflow = gql `
14213
14511
  }
14214
14512
  }
14215
14513
  }
14514
+ entityResolution {
14515
+ strategy
14516
+ threshold
14517
+ specification {
14518
+ id
14519
+ }
14520
+ }
14216
14521
  }
14217
14522
  storage {
14218
14523
  policy {
@@ -14477,6 +14782,13 @@ export const GetWorkflow = gql `
14477
14782
  }
14478
14783
  }
14479
14784
  }
14785
+ entityResolution {
14786
+ strategy
14787
+ threshold
14788
+ specification {
14789
+ id
14790
+ }
14791
+ }
14480
14792
  }
14481
14793
  storage {
14482
14794
  policy {
@@ -14715,6 +15027,13 @@ export const QueryWorkflows = gql `
14715
15027
  }
14716
15028
  }
14717
15029
  }
15030
+ entityResolution {
15031
+ strategy
15032
+ threshold
15033
+ specification {
15034
+ id
15035
+ }
15036
+ }
14718
15037
  }
14719
15038
  storage {
14720
15039
  policy {
@@ -14947,6 +15266,13 @@ export const UpdateWorkflow = gql `
14947
15266
  }
14948
15267
  }
14949
15268
  }
15269
+ entityResolution {
15270
+ strategy
15271
+ threshold
15272
+ specification {
15273
+ id
15274
+ }
15275
+ }
14950
15276
  }
14951
15277
  storage {
14952
15278
  policy {
@@ -15178,6 +15504,13 @@ export const UpsertWorkflow = gql `
15178
15504
  }
15179
15505
  }
15180
15506
  }
15507
+ entityResolution {
15508
+ strategy
15509
+ threshold
15510
+ specification {
15511
+ id
15512
+ }
15513
+ }
15181
15514
  }
15182
15515
  storage {
15183
15516
  policy {