graphlit-client 1.0.20251224001 → 1.0.20251227002

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
@@ -263,6 +263,60 @@ declare class Graphlit {
263
263
  * @returns The count of alerts.
264
264
  */
265
265
  countAlerts(filter?: Types.AlertFilter): Promise<Types.CountAlertsQuery>;
266
+ /**
267
+ * Creates a fact.
268
+ * @param fact - The fact to create.
269
+ * @returns The created fact.
270
+ */
271
+ createFact(fact: Types.FactInput): Promise<Types.CreateFactMutation>;
272
+ /**
273
+ * Updates a fact.
274
+ * @param fact - The fact to update.
275
+ * @returns The updated fact.
276
+ */
277
+ updateFact(fact: Types.FactUpdateInput): Promise<Types.UpdateFactMutation>;
278
+ /**
279
+ * Deletes a fact.
280
+ * @param id - The ID of the fact to delete.
281
+ * @returns The deleted fact.
282
+ */
283
+ deleteFact(id: string): Promise<Types.DeleteFactMutation>;
284
+ /**
285
+ * Deletes multiple facts.
286
+ * @param ids - The IDs of the facts to delete.
287
+ * @param isSynchronous - Whether this mutation is synchronous.
288
+ * @returns The deleted facts.
289
+ */
290
+ deleteFacts(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteFactsMutation>;
291
+ /**
292
+ * Deletes all facts based on the provided filter criteria.
293
+ * @param filter - The filter criteria to apply when deleting facts.
294
+ * @param isSynchronous - Whether this mutation is synchronous.
295
+ * @param correlationId - The tenant correlation identifier, optional.
296
+ * @returns The result of the deletion.
297
+ */
298
+ deleteAllFacts(filter?: Types.FactFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllFactsMutation>;
299
+ /**
300
+ * Lookup a fact given its ID.
301
+ * @param id - ID of the fact.
302
+ * @param correlationId - The tenant correlation identifier, optional.
303
+ * @returns The fact.
304
+ */
305
+ getFact(id: string, correlationId?: string): Promise<Types.GetFactQuery>;
306
+ /**
307
+ * Retrieves facts based on the provided filter criteria.
308
+ * @param filter - The filter criteria to apply when retrieving facts.
309
+ * @param correlationId - The tenant correlation identifier, optional.
310
+ * @returns The facts.
311
+ */
312
+ queryFacts(filter?: Types.FactFilter, correlationId?: string): Promise<Types.QueryFactsQuery>;
313
+ /**
314
+ * Counts facts based on the provided filter criteria.
315
+ * @param filter - The filter criteria to apply when counting facts.
316
+ * @param correlationId - The tenant correlation identifier, optional.
317
+ * @returns The count of facts.
318
+ */
319
+ countFacts(filter?: Types.FactFilter, correlationId?: string): Promise<Types.CountFactsQuery>;
266
320
  /**
267
321
  * Creates a collection.
268
322
  * @param collection - The collection to create.
@@ -771,6 +825,24 @@ declare class Graphlit {
771
825
  * @returns The retrieved sources.
772
826
  */
773
827
  retrieveSources(prompt: string, filter?: Types.ContentFilter, augmentedFilter?: Types.ContentFilter, retrievalStrategy?: Types.RetrievalStrategyInput, rerankingStrategy?: Types.RerankingStrategyInput, correlationId?: string): Promise<Types.RetrieveSourcesMutation>;
828
+ /**
829
+ * Retrieves entities based on the provided prompt.
830
+ * @param prompt - The prompt for entity retrieval.
831
+ * @param types - The observable types to filter by, optional.
832
+ * @param searchType - The search type to use, optional.
833
+ * @param limit - The maximum number of results to return, optional.
834
+ * @param correlationId - The tenant correlation identifier, optional.
835
+ * @returns The retrieved entities.
836
+ */
837
+ retrieveEntities(prompt: string, types?: Types.ObservableTypes[], searchType?: Types.SearchTypes, limit?: number, correlationId?: string): Promise<Types.RetrieveEntitiesMutation>;
838
+ /**
839
+ * Retrieves facts based on the provided prompt.
840
+ * @param prompt - The prompt for fact retrieval.
841
+ * @param filter - The filter criteria to apply when retrieving facts, optional.
842
+ * @param correlationId - The tenant correlation identifier, optional.
843
+ * @returns The retrieved facts.
844
+ */
845
+ retrieveFacts(prompt: string, filter?: Types.FactFilter, correlationId?: string): Promise<Types.RetrieveFactsMutation>;
774
846
  /**
775
847
  * Formats a conversation for external LLM completion.
776
848
  * @param prompt - The prompt to format.
package/dist/client.js CHANGED
@@ -650,6 +650,80 @@ class Graphlit {
650
650
  async countAlerts(filter) {
651
651
  return this.queryAndCheckError(Documents.CountAlerts, { filter: filter });
652
652
  }
653
+ /**
654
+ * Creates a fact.
655
+ * @param fact - The fact to create.
656
+ * @returns The created fact.
657
+ */
658
+ async createFact(fact) {
659
+ return this.mutateAndCheckError(Documents.CreateFact, { fact: fact });
660
+ }
661
+ /**
662
+ * Updates a fact.
663
+ * @param fact - The fact to update.
664
+ * @returns The updated fact.
665
+ */
666
+ async updateFact(fact) {
667
+ return this.mutateAndCheckError(Documents.UpdateFact, { fact: fact });
668
+ }
669
+ /**
670
+ * Deletes a fact.
671
+ * @param id - The ID of the fact to delete.
672
+ * @returns The deleted fact.
673
+ */
674
+ async deleteFact(id) {
675
+ return this.mutateAndCheckError(Documents.DeleteFact, { id: id });
676
+ }
677
+ /**
678
+ * Deletes multiple facts.
679
+ * @param ids - The IDs of the facts to delete.
680
+ * @param isSynchronous - Whether this mutation is synchronous.
681
+ * @returns The deleted facts.
682
+ */
683
+ async deleteFacts(ids, isSynchronous) {
684
+ return this.mutateAndCheckError(Documents.DeleteFacts, { ids: ids, isSynchronous: isSynchronous });
685
+ }
686
+ /**
687
+ * Deletes all facts based on the provided filter criteria.
688
+ * @param filter - The filter criteria to apply when deleting facts.
689
+ * @param isSynchronous - Whether this mutation is synchronous.
690
+ * @param correlationId - The tenant correlation identifier, optional.
691
+ * @returns The result of the deletion.
692
+ */
693
+ async deleteAllFacts(filter, isSynchronous, correlationId) {
694
+ return this.mutateAndCheckError(Documents.DeleteAllFacts, {
695
+ filter: filter,
696
+ isSynchronous: isSynchronous,
697
+ correlationId: correlationId,
698
+ });
699
+ }
700
+ /**
701
+ * Lookup a fact given its ID.
702
+ * @param id - ID of the fact.
703
+ * @param correlationId - The tenant correlation identifier, optional.
704
+ * @returns The fact.
705
+ */
706
+ async getFact(id, correlationId) {
707
+ return this.queryAndCheckError(Documents.GetFact, { id: id, correlationId: correlationId });
708
+ }
709
+ /**
710
+ * Retrieves facts based on the provided filter criteria.
711
+ * @param filter - The filter criteria to apply when retrieving facts.
712
+ * @param correlationId - The tenant correlation identifier, optional.
713
+ * @returns The facts.
714
+ */
715
+ async queryFacts(filter, correlationId) {
716
+ return this.queryAndCheckError(Documents.QueryFacts, { filter: filter, correlationId: correlationId });
717
+ }
718
+ /**
719
+ * Counts facts based on the provided filter criteria.
720
+ * @param filter - The filter criteria to apply when counting facts.
721
+ * @param correlationId - The tenant correlation identifier, optional.
722
+ * @returns The count of facts.
723
+ */
724
+ async countFacts(filter, correlationId) {
725
+ return this.queryAndCheckError(Documents.CountFacts, { filter: filter, correlationId: correlationId });
726
+ }
653
727
  /**
654
728
  * Creates a collection.
655
729
  * @param collection - The collection to create.
@@ -1497,6 +1571,38 @@ class Graphlit {
1497
1571
  correlationId: correlationId,
1498
1572
  });
1499
1573
  }
1574
+ /**
1575
+ * Retrieves entities based on the provided prompt.
1576
+ * @param prompt - The prompt for entity retrieval.
1577
+ * @param types - The observable types to filter by, optional.
1578
+ * @param searchType - The search type to use, optional.
1579
+ * @param limit - The maximum number of results to return, optional.
1580
+ * @param correlationId - The tenant correlation identifier, optional.
1581
+ * @returns The retrieved entities.
1582
+ */
1583
+ async retrieveEntities(prompt, types, searchType, limit, correlationId) {
1584
+ return this.mutateAndCheckError(Documents.RetrieveEntities, {
1585
+ prompt: prompt,
1586
+ types: types,
1587
+ searchType: searchType,
1588
+ limit: limit,
1589
+ correlationId: correlationId,
1590
+ });
1591
+ }
1592
+ /**
1593
+ * Retrieves facts based on the provided prompt.
1594
+ * @param prompt - The prompt for fact retrieval.
1595
+ * @param filter - The filter criteria to apply when retrieving facts, optional.
1596
+ * @param correlationId - The tenant correlation identifier, optional.
1597
+ * @returns The retrieved facts.
1598
+ */
1599
+ async retrieveFacts(prompt, filter, correlationId) {
1600
+ return this.mutateAndCheckError(Documents.RetrieveFacts, {
1601
+ prompt: prompt,
1602
+ filter: filter,
1603
+ correlationId: correlationId,
1604
+ });
1605
+ }
1500
1606
  /**
1501
1607
  * Formats a conversation for external LLM completion.
1502
1608
  * @param prompt - The prompt to format.
@@ -84,6 +84,8 @@ export declare const Prompt: import("graphql").DocumentNode;
84
84
  export declare const PromptConversation: import("graphql").DocumentNode;
85
85
  export declare const PublishConversation: import("graphql").DocumentNode;
86
86
  export declare const QueryConversations: import("graphql").DocumentNode;
87
+ export declare const RetrieveEntities: import("graphql").DocumentNode;
88
+ export declare const RetrieveFacts: import("graphql").DocumentNode;
87
89
  export declare const RetrieveSources: import("graphql").DocumentNode;
88
90
  export declare const RetrieveView: import("graphql").DocumentNode;
89
91
  export declare const ReviseContent: import("graphql").DocumentNode;
@@ -101,6 +103,14 @@ export declare const GetEvent: import("graphql").DocumentNode;
101
103
  export declare const QueryEvents: import("graphql").DocumentNode;
102
104
  export declare const QueryEventsClusters: import("graphql").DocumentNode;
103
105
  export declare const UpdateEvent: import("graphql").DocumentNode;
106
+ export declare const CountFacts: import("graphql").DocumentNode;
107
+ export declare const CreateFact: import("graphql").DocumentNode;
108
+ export declare const DeleteAllFacts: import("graphql").DocumentNode;
109
+ export declare const DeleteFact: import("graphql").DocumentNode;
110
+ export declare const DeleteFacts: import("graphql").DocumentNode;
111
+ export declare const GetFact: import("graphql").DocumentNode;
112
+ export declare const QueryFacts: import("graphql").DocumentNode;
113
+ export declare const UpdateFact: import("graphql").DocumentNode;
104
114
  export declare const CountFeeds: import("graphql").DocumentNode;
105
115
  export declare const CreateFeed: import("graphql").DocumentNode;
106
116
  export declare const DeleteAllFeeds: import("graphql").DocumentNode;
@@ -6344,6 +6344,45 @@ export const QueryConversations = gql `
6344
6344
  }
6345
6345
  }
6346
6346
  `;
6347
+ export const RetrieveEntities = gql `
6348
+ mutation RetrieveEntities($prompt: String!, $types: [ObservableTypes!], $searchType: SearchTypes, $limit: Int, $correlationId: String) {
6349
+ retrieveEntities(
6350
+ prompt: $prompt
6351
+ types: $types
6352
+ searchType: $searchType
6353
+ limit: $limit
6354
+ correlationId: $correlationId
6355
+ ) {
6356
+ results {
6357
+ id
6358
+ name
6359
+ type
6360
+ relevance
6361
+ metadata
6362
+ }
6363
+ }
6364
+ }
6365
+ `;
6366
+ export const RetrieveFacts = gql `
6367
+ mutation RetrieveFacts($prompt: String!, $filter: FactFilter, $correlationId: String) {
6368
+ retrieveFacts(prompt: $prompt, filter: $filter, correlationId: $correlationId) {
6369
+ results {
6370
+ fact {
6371
+ id
6372
+ text
6373
+ status
6374
+ validAt
6375
+ invalidAt
6376
+ state
6377
+ }
6378
+ relevance
6379
+ content {
6380
+ id
6381
+ }
6382
+ }
6383
+ }
6384
+ }
6385
+ `;
6347
6386
  export const RetrieveSources = gql `
6348
6387
  mutation RetrieveSources($prompt: String!, $filter: ContentFilter, $augmentedFilter: ContentFilter, $retrievalStrategy: RetrievalStrategyInput, $rerankingStrategy: RerankingStrategyInput, $correlationId: String) {
6349
6388
  retrieveSources(
@@ -7301,6 +7340,91 @@ export const UpdateEvent = gql `
7301
7340
  }
7302
7341
  }
7303
7342
  `;
7343
+ export const CountFacts = gql `
7344
+ query CountFacts($filter: FactFilter, $correlationId: String) {
7345
+ countFacts(filter: $filter, correlationId: $correlationId) {
7346
+ count
7347
+ }
7348
+ }
7349
+ `;
7350
+ export const CreateFact = gql `
7351
+ mutation CreateFact($fact: FactInput!) {
7352
+ createFact(fact: $fact) {
7353
+ id
7354
+ state
7355
+ }
7356
+ }
7357
+ `;
7358
+ export const DeleteAllFacts = gql `
7359
+ mutation DeleteAllFacts($filter: FactFilter, $isSynchronous: Boolean, $correlationId: String) {
7360
+ deleteAllFacts(
7361
+ filter: $filter
7362
+ isSynchronous: $isSynchronous
7363
+ correlationId: $correlationId
7364
+ ) {
7365
+ id
7366
+ state
7367
+ }
7368
+ }
7369
+ `;
7370
+ export const DeleteFact = gql `
7371
+ mutation DeleteFact($id: ID!) {
7372
+ deleteFact(id: $id) {
7373
+ id
7374
+ state
7375
+ }
7376
+ }
7377
+ `;
7378
+ export const DeleteFacts = gql `
7379
+ mutation DeleteFacts($ids: [ID!]!, $isSynchronous: Boolean) {
7380
+ deleteFacts(ids: $ids, isSynchronous: $isSynchronous) {
7381
+ id
7382
+ state
7383
+ }
7384
+ }
7385
+ `;
7386
+ export const GetFact = gql `
7387
+ query GetFact($id: ID!, $correlationId: String) {
7388
+ fact(id: $id, correlationId: $correlationId) {
7389
+ id
7390
+ creationDate
7391
+ owner {
7392
+ id
7393
+ }
7394
+ text
7395
+ status
7396
+ validAt
7397
+ invalidAt
7398
+ relevance
7399
+ }
7400
+ }
7401
+ `;
7402
+ export const QueryFacts = gql `
7403
+ query QueryFacts($filter: FactFilter, $correlationId: String) {
7404
+ facts(filter: $filter, correlationId: $correlationId) {
7405
+ results {
7406
+ id
7407
+ creationDate
7408
+ owner {
7409
+ id
7410
+ }
7411
+ text
7412
+ status
7413
+ validAt
7414
+ invalidAt
7415
+ relevance
7416
+ }
7417
+ }
7418
+ }
7419
+ `;
7420
+ export const UpdateFact = gql `
7421
+ mutation UpdateFact($fact: FactUpdateInput!) {
7422
+ updateFact(fact: $fact) {
7423
+ id
7424
+ state
7425
+ }
7426
+ }
7427
+ `;
7304
7428
  export const CountFeeds = gql `
7305
7429
  query CountFeeds($filter: FeedFilter, $correlationId: String) {
7306
7430
  countFeeds(filter: $filter, correlationId: $correlationId) {
@@ -7535,6 +7659,8 @@ export const GetFeed = gql `
7535
7659
  uri
7536
7660
  repositoryOwner
7537
7661
  repositoryName
7662
+ clientId
7663
+ clientSecret
7538
7664
  refreshToken
7539
7665
  personalAccessToken
7540
7666
  connector {
@@ -7566,6 +7692,8 @@ export const GetFeed = gql `
7566
7692
  uri
7567
7693
  repositoryOwner
7568
7694
  repositoryName
7695
+ clientId
7696
+ clientSecret
7569
7697
  refreshToken
7570
7698
  personalAccessToken
7571
7699
  connector {
@@ -7581,6 +7709,8 @@ export const GetFeed = gql `
7581
7709
  uri
7582
7710
  repositoryOwner
7583
7711
  repositoryName
7712
+ clientId
7713
+ clientSecret
7584
7714
  refreshToken
7585
7715
  personalAccessToken
7586
7716
  connector {
@@ -7719,6 +7849,7 @@ export const GetFeed = gql `
7719
7849
  }
7720
7850
  teamId
7721
7851
  channelId
7852
+ includeAttachments
7722
7853
  }
7723
7854
  discord {
7724
7855
  readLimit
@@ -7983,6 +8114,8 @@ export const QueryFeeds = gql `
7983
8114
  uri
7984
8115
  repositoryOwner
7985
8116
  repositoryName
8117
+ clientId
8118
+ clientSecret
7986
8119
  refreshToken
7987
8120
  personalAccessToken
7988
8121
  connector {
@@ -8014,6 +8147,8 @@ export const QueryFeeds = gql `
8014
8147
  uri
8015
8148
  repositoryOwner
8016
8149
  repositoryName
8150
+ clientId
8151
+ clientSecret
8017
8152
  refreshToken
8018
8153
  personalAccessToken
8019
8154
  connector {
@@ -8029,6 +8164,8 @@ export const QueryFeeds = gql `
8029
8164
  uri
8030
8165
  repositoryOwner
8031
8166
  repositoryName
8167
+ clientId
8168
+ clientSecret
8032
8169
  refreshToken
8033
8170
  personalAccessToken
8034
8171
  connector {
@@ -8167,6 +8304,7 @@ export const QueryFeeds = gql `
8167
8304
  }
8168
8305
  teamId
8169
8306
  channelId
8307
+ includeAttachments
8170
8308
  }
8171
8309
  discord {
8172
8310
  readLimit
@@ -14130,6 +14268,9 @@ export const GetSpecification = gql `
14130
14268
  generateGraph
14131
14269
  observableLimit
14132
14270
  }
14271
+ factStrategy {
14272
+ factLimit
14273
+ }
14133
14274
  revisionStrategy {
14134
14275
  type
14135
14276
  customRevision
@@ -14508,6 +14649,9 @@ export const QuerySpecifications = gql `
14508
14649
  generateGraph
14509
14650
  observableLimit
14510
14651
  }
14652
+ factStrategy {
14653
+ factLimit
14654
+ }
14511
14655
  revisionStrategy {
14512
14656
  type
14513
14657
  customRevision
@@ -16138,6 +16282,7 @@ export const CreateWorkflow = gql `
16138
16282
  tokenThreshold
16139
16283
  timeBudget
16140
16284
  entityBudget
16285
+ extractionType
16141
16286
  }
16142
16287
  }
16143
16288
  }
@@ -16409,6 +16554,7 @@ export const GetWorkflow = gql `
16409
16554
  tokenThreshold
16410
16555
  timeBudget
16411
16556
  entityBudget
16557
+ extractionType
16412
16558
  }
16413
16559
  }
16414
16560
  }
@@ -16654,6 +16800,7 @@ export const QueryWorkflows = gql `
16654
16800
  tokenThreshold
16655
16801
  timeBudget
16656
16802
  entityBudget
16803
+ extractionType
16657
16804
  }
16658
16805
  }
16659
16806
  }
@@ -16893,6 +17040,7 @@ export const UpdateWorkflow = gql `
16893
17040
  tokenThreshold
16894
17041
  timeBudget
16895
17042
  entityBudget
17043
+ extractionType
16896
17044
  }
16897
17045
  }
16898
17046
  }
@@ -17131,6 +17279,7 @@ export const UpsertWorkflow = gql `
17131
17279
  tokenThreshold
17132
17280
  timeBudget
17133
17281
  entityBudget
17282
+ extractionType
17134
17283
  }
17135
17284
  }
17136
17285
  }
@@ -2096,6 +2096,8 @@ export type Content = {
2096
2096
  error?: Maybe<Scalars['String']['output']>;
2097
2097
  /** The content event metadata. */
2098
2098
  event?: Maybe<EventMetadata>;
2099
+ /** The facts extracted from this content. */
2100
+ facts?: Maybe<Array<Maybe<Fact>>>;
2099
2101
  /** The geo-tags of the content, as GeoJSON Features with Point geometry. */
2100
2102
  features?: Maybe<Scalars['String']['output']>;
2101
2103
  /** The feed where this content was sourced from. */
@@ -4322,6 +4324,8 @@ export declare enum EntityTypes {
4322
4324
  Conversation = "CONVERSATION",
4323
4325
  /** Event */
4324
4326
  Event = "EVENT",
4327
+ /** Fact */
4328
+ Fact = "FACT",
4325
4329
  /** Feed */
4326
4330
  Feed = "FEED",
4327
4331
  /** Investment */
@@ -4776,6 +4780,13 @@ export type ExtractCompletion = {
4776
4780
  /** The extracted JSON value from the called tool. */
4777
4781
  value: Scalars['String']['output'];
4778
4782
  };
4783
+ /** The type of extraction to perform. */
4784
+ export declare enum ExtractionTypes {
4785
+ /** Extract observable entities (Person, Organization, Place, etc.). */
4786
+ Entities = "ENTITIES",
4787
+ /** Extract factual assertions and claims from content. */
4788
+ Facts = "FACTS"
4789
+ }
4779
4790
  /** Represents an extraction workflow job. */
4780
4791
  export type ExtractionWorkflowJob = {
4781
4792
  __typename?: 'ExtractionWorkflowJob';
@@ -4818,6 +4829,145 @@ export declare enum FacetValueTypes {
4818
4829
  /** Facet by value */
4819
4830
  Value = "VALUE"
4820
4831
  }
4832
+ /** Represents a fact extracted from content. */
4833
+ export type Fact = {
4834
+ __typename?: 'Fact';
4835
+ /** The content from which the fact was extracted. */
4836
+ content?: Maybe<Content>;
4837
+ /** The creation date of the fact. */
4838
+ creationDate: Scalars['DateTime']['output'];
4839
+ /** The ID of the fact. */
4840
+ id: Scalars['ID']['output'];
4841
+ /** The date/time when this fact became invalid. */
4842
+ invalidAt?: Maybe<Scalars['DateTime']['output']>;
4843
+ /** The entities mentioned in this fact. */
4844
+ mentions?: Maybe<Array<Maybe<MentionReference>>>;
4845
+ /** The modified date of the fact. */
4846
+ modifiedDate?: Maybe<Scalars['DateTime']['output']>;
4847
+ /** The owner of the fact. */
4848
+ owner: Owner;
4849
+ /** The relevance score of the fact. */
4850
+ relevance?: Maybe<Scalars['Float']['output']>;
4851
+ /** The state of the fact (i.e. created, finished). */
4852
+ state: EntityState;
4853
+ /** The resolution status of the fact. */
4854
+ status?: Maybe<FactStatus>;
4855
+ /** The fact assertion text. */
4856
+ text: Scalars['String']['output'];
4857
+ /** The date/time when this fact became valid. */
4858
+ validAt?: Maybe<Scalars['DateTime']['output']>;
4859
+ };
4860
+ /** Represents a filter for facts. */
4861
+ export type FactFilter = {
4862
+ /** Filter by parent content. */
4863
+ content?: InputMaybe<EntityReferenceFilter>;
4864
+ /** Filter by creation date recent timespan. For example, a timespan of one day will return fact(s) created in the last 24 hours. */
4865
+ createdInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
4866
+ /** Filter fact(s) by their creation date range. */
4867
+ creationDateRange?: InputMaybe<DateRangeFilter>;
4868
+ /** The sort direction for query results. */
4869
+ direction?: InputMaybe<OrderDirectionTypes>;
4870
+ /** Whether to disable inheritance from project to owner, upon fact retrieval. Defaults to False. */
4871
+ disableInheritance?: InputMaybe<Scalars['Boolean']['input']>;
4872
+ /** Filter fact(s) by their unique ID. */
4873
+ id?: InputMaybe<Scalars['ID']['input']>;
4874
+ /** Limit the number of fact(s) to be returned. Defaults to 100. */
4875
+ limit?: InputMaybe<Scalars['Int']['input']>;
4876
+ /** Filter by mentioned entities. Multiple mentions use AND logic (all must match). */
4877
+ mentions?: InputMaybe<Array<InputMaybe<MentionReferenceFilter>>>;
4878
+ /** Filter fact(s) by their modified date range. */
4879
+ modifiedDateRange?: InputMaybe<DateRangeFilter>;
4880
+ /** Filter by modified date recent timespan. For example, a timespan of one day will return fact(s) modified in the last 24 hours. */
4881
+ modifiedInLast?: InputMaybe<Scalars['TimeSpan']['input']>;
4882
+ /** Filter fact(s) by their name. */
4883
+ name?: InputMaybe<Scalars['String']['input']>;
4884
+ /** When using similarity search, the number of similar items to be returned. Defaults to 100. */
4885
+ numberSimilar?: InputMaybe<Scalars['Int']['input']>;
4886
+ /** Skip the specified number of fact(s) from the beginning of the result set. Only supported on keyword search. */
4887
+ offset?: InputMaybe<Scalars['Int']['input']>;
4888
+ /** The sort order for query results. */
4889
+ orderBy?: InputMaybe<OrderByTypes>;
4890
+ /** The query syntax for the search text. Defaults to Simple. */
4891
+ queryType?: InputMaybe<SearchQueryTypes>;
4892
+ /** The relevance score threshold for vector and hybrid search. Results below this threshold will be filtered out. Hybrid search defaults to 0.006. Vector search defaults to 0.54, or 0.78 for OpenAI Ada-002, or 0.61 for Google embedding models. Not applicable to keyword search. */
4893
+ relevanceThreshold?: InputMaybe<Scalars['Float']['input']>;
4894
+ /** Filter fact(s) by searching for similar text. */
4895
+ search?: InputMaybe<Scalars['String']['input']>;
4896
+ /** The type of search to be used. Defaults to Vector. */
4897
+ searchType?: InputMaybe<SearchTypes>;
4898
+ /** Filter fact(s) by their states. */
4899
+ states?: InputMaybe<Array<EntityState>>;
4900
+ /** Filter by fact statuses. */
4901
+ statuses?: InputMaybe<Array<InputMaybe<FactStatus>>>;
4902
+ /** Point-in-time filter: returns facts that were valid at this date (ValidAt <= date AND (InvalidAt is null OR InvalidAt > date)). */
4903
+ validAt?: InputMaybe<Scalars['DateTime']['input']>;
4904
+ };
4905
+ /** Represents the configuration for retrieving the fact knowledge graph. */
4906
+ export type FactGraphInput = {
4907
+ /** Filter by entity types. */
4908
+ types?: InputMaybe<Array<ObservableTypes>>;
4909
+ };
4910
+ /** Represents a fact. */
4911
+ export type FactInput = {
4912
+ /** The content from which the fact was extracted. */
4913
+ content: EntityReferenceInput;
4914
+ /** The date/time when this fact became invalid. */
4915
+ invalidAt?: InputMaybe<Scalars['DateTime']['input']>;
4916
+ /** The resolution status of the fact. */
4917
+ status?: InputMaybe<FactStatus>;
4918
+ /** The fact assertion text. */
4919
+ text: Scalars['String']['input'];
4920
+ /** The date/time when this fact became valid. */
4921
+ validAt?: InputMaybe<Scalars['DateTime']['input']>;
4922
+ };
4923
+ /** Represents fact query results. */
4924
+ export type FactResults = {
4925
+ __typename?: 'FactResults';
4926
+ /** The knowledge graph generated from the retrieved facts. */
4927
+ graph?: Maybe<Graph>;
4928
+ /** The fact results. */
4929
+ results?: Maybe<Array<Maybe<Fact>>>;
4930
+ };
4931
+ /** The resolution status of a fact. */
4932
+ export declare enum FactStatus {
4933
+ /** Inactive or archived fact. */
4934
+ Archived = "ARCHIVED",
4935
+ /** Authoritative version of the fact. */
4936
+ Canonical = "CANONICAL",
4937
+ /** Duplicate of a canonical fact. */
4938
+ Duplicate = "DUPLICATE",
4939
+ /** Replaced by a newer fact. */
4940
+ Superseded = "SUPERSEDED"
4941
+ }
4942
+ /** Represents a fact injection strategy for RAG. */
4943
+ export type FactStrategy = {
4944
+ __typename?: 'FactStrategy';
4945
+ /** The maximum number of facts per content, defaults to all. */
4946
+ factLimit?: Maybe<Scalars['Int']['output']>;
4947
+ };
4948
+ /** Represents a fact injection strategy for RAG. */
4949
+ export type FactStrategyInput = {
4950
+ /** The maximum number of facts per content, defaults to all. */
4951
+ factLimit?: InputMaybe<Scalars['Int']['input']>;
4952
+ };
4953
+ /** Represents a fact injection strategy for RAG. */
4954
+ export type FactStrategyUpdateInput = {
4955
+ /** The maximum number of facts per content, defaults to all. */
4956
+ factLimit?: InputMaybe<Scalars['Int']['input']>;
4957
+ };
4958
+ /** Represents a fact. */
4959
+ export type FactUpdateInput = {
4960
+ /** The ID of the fact to update. */
4961
+ id: Scalars['ID']['input'];
4962
+ /** The date/time when this fact became invalid. */
4963
+ invalidAt?: InputMaybe<Scalars['DateTime']['input']>;
4964
+ /** The resolution status of the fact. */
4965
+ status?: InputMaybe<FactStatus>;
4966
+ /** The fact assertion text. */
4967
+ text?: InputMaybe<Scalars['String']['input']>;
4968
+ /** The date/time when this fact became valid. */
4969
+ validAt?: InputMaybe<Scalars['DateTime']['input']>;
4970
+ };
4821
4971
  /** Represents a feed. */
4822
4972
  export type Feed = {
4823
4973
  __typename?: 'Feed';
@@ -9820,6 +9970,21 @@ export type MedicalTherapyUpdateInput = {
9820
9970
  /** The medicaltherapy URI. */
9821
9971
  uri?: InputMaybe<Scalars['URL']['input']>;
9822
9972
  };
9973
+ /** Represents an entity mention in a fact. */
9974
+ export type MentionReference = {
9975
+ __typename?: 'MentionReference';
9976
+ /** The mentioned entity. */
9977
+ observable?: Maybe<NamedEntityReference>;
9978
+ /** The mentioned entity type. */
9979
+ type?: Maybe<ObservableTypes>;
9980
+ };
9981
+ /** Represents a filter for entity mentions in facts. */
9982
+ export type MentionReferenceFilter = {
9983
+ /** Filter by mentioned entity. */
9984
+ observable?: InputMaybe<EntityReferenceFilter>;
9985
+ /** Filter by mentioned entity type. */
9986
+ type?: InputMaybe<ObservableTypes>;
9987
+ };
9823
9988
  /** Represents message metadata. */
9824
9989
  export type MessageMetadata = {
9825
9990
  __typename?: 'MessageMetadata';
@@ -10577,6 +10742,8 @@ export type ModelTextExtractionProperties = {
10577
10742
  __typename?: 'ModelTextExtractionProperties';
10578
10743
  /** The total entity budget for entity extraction. Extraction will stop after this many entities are extracted across all types. */
10579
10744
  entityBudget?: Maybe<Scalars['Int']['output']>;
10745
+ /** The extraction type (Entities or Facts). Defaults to Entities. */
10746
+ extractionType?: Maybe<ExtractionTypes>;
10580
10747
  /** The LLM specification used for entity extraction. */
10581
10748
  specification?: Maybe<EntityReference>;
10582
10749
  /** The time budget for entity extraction. Extraction will stop after this duration. Defaults to 30 minutes. */
@@ -10588,6 +10755,8 @@ export type ModelTextExtractionProperties = {
10588
10755
  export type ModelTextExtractionPropertiesInput = {
10589
10756
  /** The total entity budget for entity extraction. Extraction will stop after this many entities are extracted across all types. */
10590
10757
  entityBudget?: InputMaybe<Scalars['Int']['input']>;
10758
+ /** The extraction type (Entities or Facts). Defaults to Entities. */
10759
+ extractionType?: InputMaybe<ExtractionTypes>;
10591
10760
  /** The LLM specification used for entity extraction. */
10592
10761
  specification?: InputMaybe<EntityReferenceInput>;
10593
10762
  /** The time budget for entity extraction. Extraction will stop after this duration. Defaults to 30 minutes. */
@@ -10643,6 +10812,8 @@ export type Mutation = {
10643
10812
  createConversation?: Maybe<Conversation>;
10644
10813
  /** Creates a new event. */
10645
10814
  createEvent?: Maybe<Event>;
10815
+ /** Creates a new fact. */
10816
+ createFact?: Maybe<Fact>;
10646
10817
  /** Creates a new feed. */
10647
10818
  createFeed?: Maybe<Feed>;
10648
10819
  /** Creates a new investment. */
@@ -10711,6 +10882,8 @@ export type Mutation = {
10711
10882
  deleteAllConversations?: Maybe<Array<Maybe<Conversation>>>;
10712
10883
  /** Bulk deletes events based on the provided filter criteria. */
10713
10884
  deleteAllEvents?: Maybe<Array<Maybe<Event>>>;
10885
+ /** Bulk deletes facts based on the provided filter criteria. */
10886
+ deleteAllFacts?: Maybe<Array<Maybe<Fact>>>;
10714
10887
  /** Bulk deletes feeds based on the provided filter criteria. */
10715
10888
  deleteAllFeeds?: Maybe<Array<Maybe<Feed>>>;
10716
10889
  /** Bulk deletes investment funds based on the provided filter criteria. */
@@ -10781,6 +10954,10 @@ export type Mutation = {
10781
10954
  deleteEvent?: Maybe<Event>;
10782
10955
  /** Bulk deletes events. */
10783
10956
  deleteEvents?: Maybe<Array<Maybe<Event>>>;
10957
+ /** Deletes a fact. */
10958
+ deleteFact?: Maybe<Fact>;
10959
+ /** Bulk deletes facts. */
10960
+ deleteFacts?: Maybe<Array<Maybe<Fact>>>;
10784
10961
  /** Deletes a feed. */
10785
10962
  deleteFeed?: Maybe<Feed>;
10786
10963
  /** Bulk deletes feeds. */
@@ -10971,6 +11148,10 @@ export type Mutation = {
10971
11148
  restartAllContents?: Maybe<Array<Maybe<Content>>>;
10972
11149
  /** Restarts workflow on content. */
10973
11150
  restartContent?: Maybe<Content>;
11151
+ /** Retrieve entities by semantic search over entity names and descriptions. */
11152
+ retrieveEntities?: Maybe<RetrievedEntityResults>;
11153
+ /** Retrieve facts by semantic search over fact text. */
11154
+ retrieveFacts?: Maybe<RetrievedFactResults>;
10974
11155
  /** Retrieve content sources. */
10975
11156
  retrieveSources?: Maybe<ContentSourceResults>;
10976
11157
  /** Retrieve content sources using a saved view. */
@@ -11011,6 +11192,8 @@ export type Mutation = {
11011
11192
  updateConversation?: Maybe<Conversation>;
11012
11193
  /** Updates an event. */
11013
11194
  updateEvent?: Maybe<Event>;
11195
+ /** Updates a fact. */
11196
+ updateFact?: Maybe<Fact>;
11014
11197
  /** Updates an existing feed. */
11015
11198
  updateFeed?: Maybe<Feed>;
11016
11199
  /** Updates a investment. */
@@ -11140,6 +11323,9 @@ export type MutationCreateConversationArgs = {
11140
11323
  export type MutationCreateEventArgs = {
11141
11324
  event: EventInput;
11142
11325
  };
11326
+ export type MutationCreateFactArgs = {
11327
+ fact: FactInput;
11328
+ };
11143
11329
  export type MutationCreateFeedArgs = {
11144
11330
  correlationId?: InputMaybe<Scalars['String']['input']>;
11145
11331
  feed: FeedInput;
@@ -11256,6 +11442,11 @@ export type MutationDeleteAllEventsArgs = {
11256
11442
  filter?: InputMaybe<EventFilter>;
11257
11443
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
11258
11444
  };
11445
+ export type MutationDeleteAllFactsArgs = {
11446
+ correlationId?: InputMaybe<Scalars['String']['input']>;
11447
+ filter?: InputMaybe<FactFilter>;
11448
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
11449
+ };
11259
11450
  export type MutationDeleteAllFeedsArgs = {
11260
11451
  correlationId?: InputMaybe<Scalars['String']['input']>;
11261
11452
  filter?: InputMaybe<FeedFilter>;
@@ -11414,6 +11605,13 @@ export type MutationDeleteEventsArgs = {
11414
11605
  ids: Array<Scalars['ID']['input']>;
11415
11606
  isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
11416
11607
  };
11608
+ export type MutationDeleteFactArgs = {
11609
+ id: Scalars['ID']['input'];
11610
+ };
11611
+ export type MutationDeleteFactsArgs = {
11612
+ ids: Array<Scalars['ID']['input']>;
11613
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
11614
+ };
11417
11615
  export type MutationDeleteFeedArgs = {
11418
11616
  id: Scalars['ID']['input'];
11419
11617
  };
@@ -11870,6 +12068,18 @@ export type MutationRestartAllContentsArgs = {
11870
12068
  export type MutationRestartContentArgs = {
11871
12069
  id: Scalars['ID']['input'];
11872
12070
  };
12071
+ export type MutationRetrieveEntitiesArgs = {
12072
+ correlationId?: InputMaybe<Scalars['String']['input']>;
12073
+ limit?: InputMaybe<Scalars['Int']['input']>;
12074
+ prompt: Scalars['String']['input'];
12075
+ searchType?: InputMaybe<SearchTypes>;
12076
+ types?: InputMaybe<Array<ObservableTypes>>;
12077
+ };
12078
+ export type MutationRetrieveFactsArgs = {
12079
+ correlationId?: InputMaybe<Scalars['String']['input']>;
12080
+ filter?: InputMaybe<FactFilter>;
12081
+ prompt: Scalars['String']['input'];
12082
+ };
11873
12083
  export type MutationRetrieveSourcesArgs = {
11874
12084
  augmentedFilter?: InputMaybe<ContentFilter>;
11875
12085
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -11971,6 +12181,9 @@ export type MutationUpdateConversationArgs = {
11971
12181
  export type MutationUpdateEventArgs = {
11972
12182
  event: EventUpdateInput;
11973
12183
  };
12184
+ export type MutationUpdateFactArgs = {
12185
+ fact: FactUpdateInput;
12186
+ };
11974
12187
  export type MutationUpdateFeedArgs = {
11975
12188
  feed: FeedUpdateInput;
11976
12189
  };
@@ -14753,6 +14966,8 @@ export type Query = {
14753
14966
  countConversations?: Maybe<CountResult>;
14754
14967
  /** Counts events based on the provided filter criteria. */
14755
14968
  countEvents?: Maybe<CountResult>;
14969
+ /** Counts facts based on the provided filter criteria. */
14970
+ countFacts?: Maybe<CountResult>;
14756
14971
  /** Counts feeds based on the provided filter criteria. */
14757
14972
  countFeeds?: Maybe<CountResult>;
14758
14973
  /** Counts investment funds based on the provided filter criteria. */
@@ -14815,6 +15030,10 @@ export type Query = {
14815
15030
  event?: Maybe<Event>;
14816
15031
  /** Retrieves events based on the provided filter criteria. */
14817
15032
  events?: Maybe<EventResults>;
15033
+ /** Lookup a fact given its ID. */
15034
+ fact?: Maybe<Fact>;
15035
+ /** Retrieves facts based on the provided filter criteria. */
15036
+ facts?: Maybe<FactResults>;
14818
15037
  /** Lookup a feed given its ID. */
14819
15038
  feed?: Maybe<Feed>;
14820
15039
  /** Returns whether any feed exists based on the provided filter criteria. */
@@ -15069,6 +15288,10 @@ export type QueryCountEventsArgs = {
15069
15288
  correlationId?: InputMaybe<Scalars['String']['input']>;
15070
15289
  filter?: InputMaybe<EventFilter>;
15071
15290
  };
15291
+ export type QueryCountFactsArgs = {
15292
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15293
+ filter?: InputMaybe<FactFilter>;
15294
+ };
15072
15295
  export type QueryCountFeedsArgs = {
15073
15296
  correlationId?: InputMaybe<Scalars['String']['input']>;
15074
15297
  filter?: InputMaybe<FeedFilter>;
@@ -15193,6 +15416,15 @@ export type QueryEventsArgs = {
15193
15416
  facets?: InputMaybe<Array<EventFacetInput>>;
15194
15417
  filter?: InputMaybe<EventFilter>;
15195
15418
  };
15419
+ export type QueryFactArgs = {
15420
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15421
+ id: Scalars['ID']['input'];
15422
+ };
15423
+ export type QueryFactsArgs = {
15424
+ correlationId?: InputMaybe<Scalars['String']['input']>;
15425
+ filter?: InputMaybe<FactFilter>;
15426
+ graph?: InputMaybe<FactGraphInput>;
15427
+ };
15196
15428
  export type QueryFeedArgs = {
15197
15429
  correlationId?: InputMaybe<Scalars['String']['input']>;
15198
15430
  id: Scalars['ID']['input'];
@@ -16163,6 +16395,42 @@ export type RetrievalStrategyUpdateInput = {
16163
16395
  /** The retrieval strategy type. */
16164
16396
  type?: InputMaybe<RetrievalStrategyTypes>;
16165
16397
  };
16398
+ /** Represents a retrieved entity with relevance score. */
16399
+ export type RetrievedEntity = {
16400
+ __typename?: 'RetrievedEntity';
16401
+ /** The entity identifier. */
16402
+ id: Scalars['ID']['output'];
16403
+ /** The entity metadata as JSON-LD. */
16404
+ metadata?: Maybe<Scalars['String']['output']>;
16405
+ /** The entity name. */
16406
+ name?: Maybe<Scalars['String']['output']>;
16407
+ /** The relevance score of the entity to the retrieval prompt. */
16408
+ relevance?: Maybe<Scalars['Float']['output']>;
16409
+ /** The entity type. */
16410
+ type: ObservableTypes;
16411
+ };
16412
+ /** Represents retrieved entity results. */
16413
+ export type RetrievedEntityResults = {
16414
+ __typename?: 'RetrievedEntityResults';
16415
+ /** The retrieved entity results. */
16416
+ results?: Maybe<Array<Maybe<RetrievedEntity>>>;
16417
+ };
16418
+ /** Represents a retrieved fact with relevance score. */
16419
+ export type RetrievedFact = {
16420
+ __typename?: 'RetrievedFact';
16421
+ /** The content from which the fact was extracted. */
16422
+ content?: Maybe<EntityReference>;
16423
+ /** The retrieved fact. */
16424
+ fact: Fact;
16425
+ /** The relevance score of the fact to the retrieval prompt. */
16426
+ relevance?: Maybe<Scalars['Float']['output']>;
16427
+ };
16428
+ /** Represents retrieved fact results. */
16429
+ export type RetrievedFactResults = {
16430
+ __typename?: 'RetrievedFactResults';
16431
+ /** The retrieved fact results. */
16432
+ results?: Maybe<Array<Maybe<RetrievedFact>>>;
16433
+ };
16166
16434
  /** Represents a prompted content revision. */
16167
16435
  export type ReviseContent = {
16168
16436
  __typename?: 'ReviseContent';
@@ -16824,6 +17092,8 @@ export type Specification = {
16824
17092
  customInstructions?: Maybe<Scalars['String']['output']>;
16825
17093
  /** The Deepseek model properties. */
16826
17094
  deepseek?: Maybe<DeepseekModelProperties>;
17095
+ /** The strategy for including extracted facts in RAG context. */
17096
+ factStrategy?: Maybe<FactStrategy>;
16827
17097
  /** The Google model properties. */
16828
17098
  google?: Maybe<GoogleModelProperties>;
16829
17099
  /** The strategy for GraphRAG retrieval. */
@@ -16930,6 +17200,8 @@ export type SpecificationInput = {
16930
17200
  customInstructions?: InputMaybe<Scalars['String']['input']>;
16931
17201
  /** The Deepseek model properties. */
16932
17202
  deepseek?: InputMaybe<DeepseekModelPropertiesInput>;
17203
+ /** The strategy for including extracted facts in RAG context. */
17204
+ factStrategy?: InputMaybe<FactStrategyInput>;
16933
17205
  /** The Google model properties. */
16934
17206
  google?: InputMaybe<GoogleModelPropertiesInput>;
16935
17207
  /** The strategy for GraphRAG retrieval. */
@@ -16979,7 +17251,7 @@ export type SpecificationResults = {
16979
17251
  };
16980
17252
  /** Specification type */
16981
17253
  export declare enum SpecificationTypes {
16982
- /** Agentic completion, used with formatConversation/completeConversation */
17254
+ /** Agentic completion */
16983
17255
  Agentic = "AGENTIC",
16984
17256
  /** Content classification */
16985
17257
  Classification = "CLASSIFICATION",
@@ -17016,6 +17288,8 @@ export type SpecificationUpdateInput = {
17016
17288
  customInstructions?: InputMaybe<Scalars['String']['input']>;
17017
17289
  /** The Deepseek model properties. */
17018
17290
  deepseek?: InputMaybe<DeepseekModelPropertiesUpdateInput>;
17291
+ /** The strategy for including extracted facts in RAG context. */
17292
+ factStrategy?: InputMaybe<FactStrategyUpdateInput>;
17019
17293
  /** The Google model properties. */
17020
17294
  google?: InputMaybe<GoogleModelPropertiesUpdateInput>;
17021
17295
  /** The strategy for GraphRAG retrieval. */
@@ -25470,6 +25744,55 @@ export type QueryConversationsQuery = {
25470
25744
  }> | null;
25471
25745
  } | null;
25472
25746
  };
25747
+ export type RetrieveEntitiesMutationVariables = Exact<{
25748
+ prompt: Scalars['String']['input'];
25749
+ types?: InputMaybe<Array<ObservableTypes> | ObservableTypes>;
25750
+ searchType?: InputMaybe<SearchTypes>;
25751
+ limit?: InputMaybe<Scalars['Int']['input']>;
25752
+ correlationId?: InputMaybe<Scalars['String']['input']>;
25753
+ }>;
25754
+ export type RetrieveEntitiesMutation = {
25755
+ __typename?: 'Mutation';
25756
+ retrieveEntities?: {
25757
+ __typename?: 'RetrievedEntityResults';
25758
+ results?: Array<{
25759
+ __typename?: 'RetrievedEntity';
25760
+ id: string;
25761
+ name?: string | null;
25762
+ type: ObservableTypes;
25763
+ relevance?: number | null;
25764
+ metadata?: string | null;
25765
+ } | null> | null;
25766
+ } | null;
25767
+ };
25768
+ export type RetrieveFactsMutationVariables = Exact<{
25769
+ prompt: Scalars['String']['input'];
25770
+ filter?: InputMaybe<FactFilter>;
25771
+ correlationId?: InputMaybe<Scalars['String']['input']>;
25772
+ }>;
25773
+ export type RetrieveFactsMutation = {
25774
+ __typename?: 'Mutation';
25775
+ retrieveFacts?: {
25776
+ __typename?: 'RetrievedFactResults';
25777
+ results?: Array<{
25778
+ __typename?: 'RetrievedFact';
25779
+ relevance?: number | null;
25780
+ fact: {
25781
+ __typename?: 'Fact';
25782
+ id: string;
25783
+ text: string;
25784
+ status?: FactStatus | null;
25785
+ validAt?: any | null;
25786
+ invalidAt?: any | null;
25787
+ state: EntityState;
25788
+ };
25789
+ content?: {
25790
+ __typename?: 'EntityReference';
25791
+ id: string;
25792
+ } | null;
25793
+ } | null> | null;
25794
+ } | null;
25795
+ };
25473
25796
  export type RetrieveSourcesMutationVariables = Exact<{
25474
25797
  prompt: Scalars['String']['input'];
25475
25798
  filter?: InputMaybe<ContentFilter>;
@@ -26534,6 +26857,120 @@ export type UpdateEventMutation = {
26534
26857
  name: string;
26535
26858
  } | null;
26536
26859
  };
26860
+ export type CountFactsQueryVariables = Exact<{
26861
+ filter?: InputMaybe<FactFilter>;
26862
+ correlationId?: InputMaybe<Scalars['String']['input']>;
26863
+ }>;
26864
+ export type CountFactsQuery = {
26865
+ __typename?: 'Query';
26866
+ countFacts?: {
26867
+ __typename?: 'CountResult';
26868
+ count?: any | null;
26869
+ } | null;
26870
+ };
26871
+ export type CreateFactMutationVariables = Exact<{
26872
+ fact: FactInput;
26873
+ }>;
26874
+ export type CreateFactMutation = {
26875
+ __typename?: 'Mutation';
26876
+ createFact?: {
26877
+ __typename?: 'Fact';
26878
+ id: string;
26879
+ state: EntityState;
26880
+ } | null;
26881
+ };
26882
+ export type DeleteAllFactsMutationVariables = Exact<{
26883
+ filter?: InputMaybe<FactFilter>;
26884
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
26885
+ correlationId?: InputMaybe<Scalars['String']['input']>;
26886
+ }>;
26887
+ export type DeleteAllFactsMutation = {
26888
+ __typename?: 'Mutation';
26889
+ deleteAllFacts?: Array<{
26890
+ __typename?: 'Fact';
26891
+ id: string;
26892
+ state: EntityState;
26893
+ } | null> | null;
26894
+ };
26895
+ export type DeleteFactMutationVariables = Exact<{
26896
+ id: Scalars['ID']['input'];
26897
+ }>;
26898
+ export type DeleteFactMutation = {
26899
+ __typename?: 'Mutation';
26900
+ deleteFact?: {
26901
+ __typename?: 'Fact';
26902
+ id: string;
26903
+ state: EntityState;
26904
+ } | null;
26905
+ };
26906
+ export type DeleteFactsMutationVariables = Exact<{
26907
+ ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
26908
+ isSynchronous?: InputMaybe<Scalars['Boolean']['input']>;
26909
+ }>;
26910
+ export type DeleteFactsMutation = {
26911
+ __typename?: 'Mutation';
26912
+ deleteFacts?: Array<{
26913
+ __typename?: 'Fact';
26914
+ id: string;
26915
+ state: EntityState;
26916
+ } | null> | null;
26917
+ };
26918
+ export type GetFactQueryVariables = Exact<{
26919
+ id: Scalars['ID']['input'];
26920
+ correlationId?: InputMaybe<Scalars['String']['input']>;
26921
+ }>;
26922
+ export type GetFactQuery = {
26923
+ __typename?: 'Query';
26924
+ fact?: {
26925
+ __typename?: 'Fact';
26926
+ id: string;
26927
+ creationDate: any;
26928
+ text: string;
26929
+ status?: FactStatus | null;
26930
+ validAt?: any | null;
26931
+ invalidAt?: any | null;
26932
+ relevance?: number | null;
26933
+ owner: {
26934
+ __typename?: 'Owner';
26935
+ id: string;
26936
+ };
26937
+ } | null;
26938
+ };
26939
+ export type QueryFactsQueryVariables = Exact<{
26940
+ filter?: InputMaybe<FactFilter>;
26941
+ correlationId?: InputMaybe<Scalars['String']['input']>;
26942
+ }>;
26943
+ export type QueryFactsQuery = {
26944
+ __typename?: 'Query';
26945
+ facts?: {
26946
+ __typename?: 'FactResults';
26947
+ results?: Array<{
26948
+ __typename?: 'Fact';
26949
+ id: string;
26950
+ creationDate: any;
26951
+ text: string;
26952
+ status?: FactStatus | null;
26953
+ validAt?: any | null;
26954
+ invalidAt?: any | null;
26955
+ relevance?: number | null;
26956
+ owner: {
26957
+ __typename?: 'Owner';
26958
+ id: string;
26959
+ };
26960
+ } | null> | null;
26961
+ } | null;
26962
+ };
26963
+ export type UpdateFactMutationVariables = Exact<{
26964
+ fact: FactUpdateInput;
26965
+ }>;
26966
+ export type UpdateFactMutation = {
26967
+ __typename?: 'Mutation';
26968
+ updateFact?: {
26969
+ __typename?: 'Fact';
26970
+ id: string;
26971
+ state: EntityState;
26972
+ } | null;
26973
+ };
26537
26974
  export type CountFeedsQueryVariables = Exact<{
26538
26975
  filter?: InputMaybe<FeedFilter>;
26539
26976
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -26829,6 +27266,8 @@ export type GetFeedQuery = {
26829
27266
  uri?: any | null;
26830
27267
  repositoryOwner: string;
26831
27268
  repositoryName: string;
27269
+ clientId?: string | null;
27270
+ clientSecret?: string | null;
26832
27271
  refreshToken?: string | null;
26833
27272
  personalAccessToken?: string | null;
26834
27273
  connector?: {
@@ -26867,6 +27306,8 @@ export type GetFeedQuery = {
26867
27306
  uri?: any | null;
26868
27307
  repositoryOwner: string;
26869
27308
  repositoryName: string;
27309
+ clientId?: string | null;
27310
+ clientSecret?: string | null;
26870
27311
  refreshToken?: string | null;
26871
27312
  personalAccessToken?: string | null;
26872
27313
  connector?: {
@@ -26885,6 +27326,8 @@ export type GetFeedQuery = {
26885
27326
  uri?: any | null;
26886
27327
  repositoryOwner: string;
26887
27328
  repositoryName: string;
27329
+ clientId?: string | null;
27330
+ clientSecret?: string | null;
26888
27331
  refreshToken?: string | null;
26889
27332
  personalAccessToken?: string | null;
26890
27333
  connector?: {
@@ -27042,6 +27485,7 @@ export type GetFeedQuery = {
27042
27485
  refreshToken?: string | null;
27043
27486
  teamId: string;
27044
27487
  channelId: string;
27488
+ includeAttachments?: boolean | null;
27045
27489
  connector?: {
27046
27490
  __typename?: 'EntityReference';
27047
27491
  id: string;
@@ -27373,6 +27817,8 @@ export type QueryFeedsQuery = {
27373
27817
  uri?: any | null;
27374
27818
  repositoryOwner: string;
27375
27819
  repositoryName: string;
27820
+ clientId?: string | null;
27821
+ clientSecret?: string | null;
27376
27822
  refreshToken?: string | null;
27377
27823
  personalAccessToken?: string | null;
27378
27824
  connector?: {
@@ -27411,6 +27857,8 @@ export type QueryFeedsQuery = {
27411
27857
  uri?: any | null;
27412
27858
  repositoryOwner: string;
27413
27859
  repositoryName: string;
27860
+ clientId?: string | null;
27861
+ clientSecret?: string | null;
27414
27862
  refreshToken?: string | null;
27415
27863
  personalAccessToken?: string | null;
27416
27864
  connector?: {
@@ -27429,6 +27877,8 @@ export type QueryFeedsQuery = {
27429
27877
  uri?: any | null;
27430
27878
  repositoryOwner: string;
27431
27879
  repositoryName: string;
27880
+ clientId?: string | null;
27881
+ clientSecret?: string | null;
27432
27882
  refreshToken?: string | null;
27433
27883
  personalAccessToken?: string | null;
27434
27884
  connector?: {
@@ -27586,6 +28036,7 @@ export type QueryFeedsQuery = {
27586
28036
  refreshToken?: string | null;
27587
28037
  teamId: string;
27588
28038
  channelId: string;
28039
+ includeAttachments?: boolean | null;
27589
28040
  connector?: {
27590
28041
  __typename?: 'EntityReference';
27591
28042
  id: string;
@@ -34834,6 +35285,10 @@ export type GetSpecificationQuery = {
34834
35285
  generateGraph?: boolean | null;
34835
35286
  observableLimit?: number | null;
34836
35287
  } | null;
35288
+ factStrategy?: {
35289
+ __typename?: 'FactStrategy';
35290
+ factLimit?: number | null;
35291
+ } | null;
34837
35292
  revisionStrategy?: {
34838
35293
  __typename?: 'RevisionStrategy';
34839
35294
  type: RevisionStrategyTypes;
@@ -35258,6 +35713,10 @@ export type QuerySpecificationsQuery = {
35258
35713
  generateGraph?: boolean | null;
35259
35714
  observableLimit?: number | null;
35260
35715
  } | null;
35716
+ factStrategy?: {
35717
+ __typename?: 'FactStrategy';
35718
+ factLimit?: number | null;
35719
+ } | null;
35261
35720
  revisionStrategy?: {
35262
35721
  __typename?: 'RevisionStrategy';
35263
35722
  type: RevisionStrategyTypes;
@@ -37311,6 +37770,7 @@ export type CreateWorkflowMutation = {
37311
37770
  tokenThreshold?: number | null;
37312
37771
  timeBudget?: any | null;
37313
37772
  entityBudget?: number | null;
37773
+ extractionType?: ExtractionTypes | null;
37314
37774
  specification?: {
37315
37775
  __typename?: 'EntityReference';
37316
37776
  id: string;
@@ -37652,6 +38112,7 @@ export type GetWorkflowQuery = {
37652
38112
  tokenThreshold?: number | null;
37653
38113
  timeBudget?: any | null;
37654
38114
  entityBudget?: number | null;
38115
+ extractionType?: ExtractionTypes | null;
37655
38116
  specification?: {
37656
38117
  __typename?: 'EntityReference';
37657
38118
  id: string;
@@ -37960,6 +38421,7 @@ export type QueryWorkflowsQuery = {
37960
38421
  tokenThreshold?: number | null;
37961
38422
  timeBudget?: any | null;
37962
38423
  entityBudget?: number | null;
38424
+ extractionType?: ExtractionTypes | null;
37963
38425
  specification?: {
37964
38426
  __typename?: 'EntityReference';
37965
38427
  id: string;
@@ -38259,6 +38721,7 @@ export type UpdateWorkflowMutation = {
38259
38721
  tokenThreshold?: number | null;
38260
38722
  timeBudget?: any | null;
38261
38723
  entityBudget?: number | null;
38724
+ extractionType?: ExtractionTypes | null;
38262
38725
  specification?: {
38263
38726
  __typename?: 'EntityReference';
38264
38727
  id: string;
@@ -38557,6 +39020,7 @@ export type UpsertWorkflowMutation = {
38557
39020
  tokenThreshold?: number | null;
38558
39021
  timeBudget?: any | null;
38559
39022
  entityBudget?: number | null;
39023
+ extractionType?: ExtractionTypes | null;
38560
39024
  specification?: {
38561
39025
  __typename?: 'EntityReference';
38562
39026
  id: string;
@@ -796,6 +796,8 @@ export var EntityTypes;
796
796
  EntityTypes["Conversation"] = "CONVERSATION";
797
797
  /** Event */
798
798
  EntityTypes["Event"] = "EVENT";
799
+ /** Fact */
800
+ EntityTypes["Fact"] = "FACT";
799
801
  /** Feed */
800
802
  EntityTypes["Feed"] = "FEED";
801
803
  /** Investment */
@@ -873,6 +875,14 @@ export var EventFacetTypes;
873
875
  /** Creation Date */
874
876
  EventFacetTypes["CreationDate"] = "CREATION_DATE";
875
877
  })(EventFacetTypes || (EventFacetTypes = {}));
878
+ /** The type of extraction to perform. */
879
+ export var ExtractionTypes;
880
+ (function (ExtractionTypes) {
881
+ /** Extract observable entities (Person, Organization, Place, etc.). */
882
+ ExtractionTypes["Entities"] = "ENTITIES";
883
+ /** Extract factual assertions and claims from content. */
884
+ ExtractionTypes["Facts"] = "FACTS";
885
+ })(ExtractionTypes || (ExtractionTypes = {}));
876
886
  /** Facet value types */
877
887
  export var FacetValueTypes;
878
888
  (function (FacetValueTypes) {
@@ -883,6 +893,18 @@ export var FacetValueTypes;
883
893
  /** Facet by value */
884
894
  FacetValueTypes["Value"] = "VALUE";
885
895
  })(FacetValueTypes || (FacetValueTypes = {}));
896
+ /** The resolution status of a fact. */
897
+ export var FactStatus;
898
+ (function (FactStatus) {
899
+ /** Inactive or archived fact. */
900
+ FactStatus["Archived"] = "ARCHIVED";
901
+ /** Authoritative version of the fact. */
902
+ FactStatus["Canonical"] = "CANONICAL";
903
+ /** Duplicate of a canonical fact. */
904
+ FactStatus["Duplicate"] = "DUPLICATE";
905
+ /** Replaced by a newer fact. */
906
+ FactStatus["Superseded"] = "SUPERSEDED";
907
+ })(FactStatus || (FactStatus = {}));
886
908
  /** Feed connector type */
887
909
  export var FeedConnectorTypes;
888
910
  (function (FeedConnectorTypes) {
@@ -2317,7 +2339,7 @@ export var SoftwareFacetTypes;
2317
2339
  /** Specification type */
2318
2340
  export var SpecificationTypes;
2319
2341
  (function (SpecificationTypes) {
2320
- /** Agentic completion, used with formatConversation/completeConversation */
2342
+ /** Agentic completion */
2321
2343
  SpecificationTypes["Agentic"] = "AGENTIC";
2322
2344
  /** Content classification */
2323
2345
  SpecificationTypes["Classification"] = "CLASSIFICATION";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20251224001",
3
+ "version": "1.0.20251227002",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",