graphlit-client 1.0.20240509002 → 1.0.20240516001

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.
@@ -652,6 +652,11 @@ exports.GetContent = (0, graphql_tag_1.default) `
652
652
  id
653
653
  name
654
654
  }
655
+ related {
656
+ id
657
+ name
658
+ }
659
+ relation
655
660
  occurrences {
656
661
  type
657
662
  confidence
@@ -1019,6 +1024,11 @@ exports.QueryContents = (0, graphql_tag_1.default) `
1019
1024
  id
1020
1025
  name
1021
1026
  }
1027
+ related {
1028
+ id
1029
+ name
1030
+ }
1031
+ relation
1022
1032
  occurrences {
1023
1033
  type
1024
1034
  confidence
@@ -1243,6 +1253,11 @@ exports.QueryContentsFacets = (0, graphql_tag_1.default) `
1243
1253
  id
1244
1254
  name
1245
1255
  }
1256
+ related {
1257
+ id
1258
+ name
1259
+ }
1260
+ relation
1246
1261
  occurrences {
1247
1262
  type
1248
1263
  confidence
@@ -1316,6 +1331,7 @@ exports.QueryContentsGraph = (0, graphql_tag_1.default) `
1316
1331
  edges {
1317
1332
  from
1318
1333
  to
1334
+ relation
1319
1335
  }
1320
1336
  }
1321
1337
  }
@@ -1558,6 +1574,18 @@ exports.PromptConversation = (0, graphql_tag_1.default) `
1558
1574
  }
1559
1575
  }
1560
1576
  }
1577
+ graph {
1578
+ nodes {
1579
+ id
1580
+ type
1581
+ metadata
1582
+ }
1583
+ edges {
1584
+ from
1585
+ to
1586
+ relation
1587
+ }
1588
+ }
1561
1589
  }
1562
1590
  }
1563
1591
  `;
@@ -1920,7 +1948,6 @@ exports.GetFeed = (0, graphql_tag_1.default) `
1920
1948
  }
1921
1949
  microsoft {
1922
1950
  type
1923
- tenantId
1924
1951
  refreshToken
1925
1952
  }
1926
1953
  }
@@ -2082,7 +2109,6 @@ exports.QueryFeeds = (0, graphql_tag_1.default) `
2082
2109
  }
2083
2110
  microsoft {
2084
2111
  type
2085
- tenantId
2086
2112
  refreshToken
2087
2113
  }
2088
2114
  }
@@ -2769,6 +2795,7 @@ exports.LookupCredits = (0, graphql_tag_1.default) `
2769
2795
  exports.LookupUsage = (0, graphql_tag_1.default) `
2770
2796
  query LookupUsage($correlationId: String!) {
2771
2797
  lookupUsage(correlationId: $correlationId) {
2798
+ id
2772
2799
  correlationId
2773
2800
  date
2774
2801
  credits
@@ -2793,6 +2820,8 @@ exports.LookupUsage = (0, graphql_tag_1.default) `
2793
2820
  completionTokens
2794
2821
  tokens
2795
2822
  count
2823
+ operation
2824
+ operationType
2796
2825
  request
2797
2826
  variables
2798
2827
  response
@@ -2819,6 +2848,7 @@ exports.QueryCredits = (0, graphql_tag_1.default) `
2819
2848
  exports.QueryUsage = (0, graphql_tag_1.default) `
2820
2849
  query QueryUsage($startDate: DateTime!, $duration: TimeSpan!) {
2821
2850
  usage(startDate: $startDate, duration: $duration) {
2851
+ id
2822
2852
  correlationId
2823
2853
  date
2824
2854
  credits
@@ -2843,6 +2873,8 @@ exports.QueryUsage = (0, graphql_tag_1.default) `
2843
2873
  completionTokens
2844
2874
  tokens
2845
2875
  count
2876
+ operation
2877
+ operationType
2846
2878
  request
2847
2879
  variables
2848
2880
  response
@@ -3088,6 +3120,14 @@ exports.GetSpecification = (0, graphql_tag_1.default) `
3088
3120
  rerankingStrategy {
3089
3121
  serviceType
3090
3122
  }
3123
+ graphStrategy {
3124
+ type
3125
+ }
3126
+ revisionStrategy {
3127
+ type
3128
+ customRevision
3129
+ count
3130
+ }
3091
3131
  openAI {
3092
3132
  tokenLimit
3093
3133
  completionTokenLimit
@@ -3218,6 +3258,14 @@ exports.QuerySpecifications = (0, graphql_tag_1.default) `
3218
3258
  rerankingStrategy {
3219
3259
  serviceType
3220
3260
  }
3261
+ graphStrategy {
3262
+ type
3263
+ }
3264
+ revisionStrategy {
3265
+ type
3266
+ customRevision
3267
+ count
3268
+ }
3221
3269
  openAI {
3222
3270
  tokenLimit
3223
3271
  completionTokenLimit
@@ -3346,6 +3394,7 @@ exports.CreateWorkflow = (0, graphql_tag_1.default) `
3346
3394
  contentTypes
3347
3395
  fileTypes
3348
3396
  extractedTypes
3397
+ extractedCount
3349
3398
  azureText {
3350
3399
  confidenceThreshold
3351
3400
  enablePII
@@ -3484,6 +3533,7 @@ exports.GetWorkflow = (0, graphql_tag_1.default) `
3484
3533
  contentTypes
3485
3534
  fileTypes
3486
3535
  extractedTypes
3536
+ extractedCount
3487
3537
  azureText {
3488
3538
  confidenceThreshold
3489
3539
  enablePII
@@ -3595,6 +3645,7 @@ exports.QueryWorkflows = (0, graphql_tag_1.default) `
3595
3645
  contentTypes
3596
3646
  fileTypes
3597
3647
  extractedTypes
3648
+ extractedCount
3598
3649
  azureText {
3599
3650
  confidenceThreshold
3600
3651
  enablePII
@@ -3702,6 +3753,7 @@ exports.UpdateWorkflow = (0, graphql_tag_1.default) `
3702
3753
  contentTypes
3703
3754
  fileTypes
3704
3755
  extractedTypes
3756
+ extractedCount
3705
3757
  azureText {
3706
3758
  confidenceThreshold
3707
3759
  enablePII
@@ -1375,7 +1375,7 @@ export type ContentResults = {
1375
1375
  __typename?: 'ContentResults';
1376
1376
  /** The content facets. */
1377
1377
  facets?: Maybe<Array<Maybe<ContentFacet>>>;
1378
- /** The knowledge graph generated from the content results. */
1378
+ /** The knowledge graph generated from the retrieved contents. */
1379
1379
  graph?: Maybe<Graph>;
1380
1380
  /** The content H3 facets. */
1381
1381
  h3?: Maybe<H3Facets>;
@@ -2140,6 +2140,8 @@ export type EntityExtractionConnector = {
2140
2140
  azureText?: Maybe<AzureTextExtractionProperties>;
2141
2141
  /** The content types to allow for entity extraction. */
2142
2142
  contentTypes?: Maybe<Array<ContentTypes>>;
2143
+ /** The maximum number of observable entities to be extracted, per entity type. Defaults to 25. */
2144
+ extractedCount?: Maybe<Scalars['Int']['output']>;
2143
2145
  /** The observable entity types to be extracted, defaults to all observables. */
2144
2146
  extractedTypes?: Maybe<Array<ObservableTypes>>;
2145
2147
  /** The file types to allow for entity extraction. */
@@ -2159,6 +2161,8 @@ export type EntityExtractionConnectorInput = {
2159
2161
  azureText?: InputMaybe<AzureTextExtractionPropertiesInput>;
2160
2162
  /** The content types to allow for entity extraction. */
2161
2163
  contentTypes?: InputMaybe<Array<ContentTypes>>;
2164
+ /** The maximum number of observable entities to be extracted, per entity type. Defaults to 25. */
2165
+ extractedCount?: InputMaybe<Scalars['Int']['input']>;
2162
2166
  /** The observable entity types to be extracted, defaults to all observables. */
2163
2167
  extractedTypes?: InputMaybe<Array<ObservableTypes>>;
2164
2168
  /** The file types to allow for entity extraction. */
@@ -3054,6 +3058,8 @@ export type GraphEdge = {
3054
3058
  __typename?: 'GraphEdge';
3055
3059
  /** The source node identifier of the knowledge graph edge. */
3056
3060
  from: Scalars['ID']['output'];
3061
+ /** The edge relationship between the nodes, i.e. A 'relates-to' B. */
3062
+ relation?: Maybe<Scalars['String']['output']>;
3057
3063
  /** The destination node identifier of the knowledge graph edge. */
3058
3064
  to: Scalars['ID']['output'];
3059
3065
  };
@@ -3069,6 +3075,31 @@ export type GraphNode = {
3069
3075
  /** The knowledge graph node type. */
3070
3076
  type: EntityTypes;
3071
3077
  };
3078
+ /** Represents a GraphRAG strategy. */
3079
+ export type GraphStrategy = {
3080
+ __typename?: 'GraphStrategy';
3081
+ /** The GraphRAG strategy type. */
3082
+ type: GraphStrategyTypes;
3083
+ };
3084
+ /** Represents a GraphRAG strategy. */
3085
+ export type GraphStrategyInput = {
3086
+ /** The GraphRAG strategy type. */
3087
+ type?: InputMaybe<GraphStrategyTypes>;
3088
+ };
3089
+ /** GraphRAG strategies */
3090
+ export declare enum GraphStrategyTypes {
3091
+ /** Extract named entities from prompt, and assign as observations filter */
3092
+ ExtractEntitiesFilter = "EXTRACT_ENTITIES_FILTER",
3093
+ /** Extract named entities from prompt, and aggregate vector search and graph query results */
3094
+ ExtractEntitiesGraph = "EXTRACT_ENTITIES_GRAPH",
3095
+ /** Use standard RAG */
3096
+ None = "NONE"
3097
+ }
3098
+ /** Represents a GraphRAG strategy. */
3099
+ export type GraphStrategyUpdateInput = {
3100
+ /** The GraphRAG strategy type. */
3101
+ type?: InputMaybe<GraphStrategyTypes>;
3102
+ };
3072
3103
  /** Represents Groq model properties. */
3073
3104
  export type GroqModelProperties = {
3074
3105
  __typename?: 'GroqModelProperties';
@@ -3901,8 +3932,6 @@ export type MicrosoftEmailFeedProperties = {
3901
3932
  __typename?: 'MicrosoftEmailFeedProperties';
3902
3933
  /** Microsoft refresh token. */
3903
3934
  refreshToken: Scalars['String']['output'];
3904
- /** Azure Active Directory tenant identifier. */
3905
- tenantId?: Maybe<Scalars['String']['output']>;
3906
3935
  /** Email listing type, i.e. past or new emails. */
3907
3936
  type?: Maybe<EmailListingTypes>;
3908
3937
  };
@@ -3910,8 +3939,6 @@ export type MicrosoftEmailFeedProperties = {
3910
3939
  export type MicrosoftEmailFeedPropertiesInput = {
3911
3940
  /** Microsoft refresh token. */
3912
3941
  refreshToken: Scalars['String']['input'];
3913
- /** Azure Active Directory tenant identifier. */
3914
- tenantId?: InputMaybe<Scalars['String']['input']>;
3915
3942
  /** Email listing type, i.e. past or new emails. */
3916
3943
  type?: InputMaybe<EmailListingTypes>;
3917
3944
  };
@@ -3919,8 +3946,6 @@ export type MicrosoftEmailFeedPropertiesInput = {
3919
3946
  export type MicrosoftEmailFeedPropertiesUpdateInput = {
3920
3947
  /** Microsoft refresh token. */
3921
3948
  refreshToken?: InputMaybe<Scalars['String']['input']>;
3922
- /** Azure Active Directory tenant identifier. */
3923
- tenantId?: InputMaybe<Scalars['String']['input']>;
3924
3949
  /** Email listing type, i.e. past or new emails. */
3925
3950
  type?: InputMaybe<EmailListingTypes>;
3926
3951
  };
@@ -3942,8 +3967,6 @@ export type MicrosoftTeamsChannelResults = {
3942
3967
  export type MicrosoftTeamsChannelsInput = {
3943
3968
  /** The Microsoft Graph refresh token. */
3944
3969
  refreshToken: Scalars['String']['input'];
3945
- /** Azure Active Directory tenant identifier. */
3946
- tenantId: Scalars['String']['input'];
3947
3970
  };
3948
3971
  /** Represents Microsoft Teams feed properties. */
3949
3972
  export type MicrosoftTeamsFeedProperties = {
@@ -3956,8 +3979,6 @@ export type MicrosoftTeamsFeedProperties = {
3956
3979
  refreshToken: Scalars['String']['output'];
3957
3980
  /** The Microsoft Teams team identifier. */
3958
3981
  teamId: Scalars['String']['output'];
3959
- /** Azure Active Directory tenant identifier. */
3960
- tenantId: Scalars['String']['output'];
3961
3982
  /** Feed listing type, i.e. past or new messages. */
3962
3983
  type?: Maybe<FeedListingTypes>;
3963
3984
  };
@@ -3971,8 +3992,6 @@ export type MicrosoftTeamsFeedPropertiesInput = {
3971
3992
  refreshToken: Scalars['String']['input'];
3972
3993
  /** The Microsoft Teams team identifier. */
3973
3994
  teamId: Scalars['String']['input'];
3974
- /** Azure Active Directory tenant identifier. */
3975
- tenantId: Scalars['String']['input'];
3976
3995
  /** Feed listing type, i.e. past or new messages. */
3977
3996
  type?: InputMaybe<FeedListingTypes>;
3978
3997
  };
@@ -3986,8 +4005,6 @@ export type MicrosoftTeamsFeedPropertiesUpdateInput = {
3986
4005
  refreshToken?: InputMaybe<Scalars['String']['input']>;
3987
4006
  /** The Microsoft Teams team identifier. */
3988
4007
  teamId: Scalars['String']['input'];
3989
- /** Azure Active Directory tenant identifier. */
3990
- tenantId?: InputMaybe<Scalars['String']['input']>;
3991
4008
  /** Feed listing type, i.e. past or new messages. */
3992
4009
  type?: InputMaybe<FeedListingTypes>;
3993
4010
  };
@@ -4009,8 +4026,6 @@ export type MicrosoftTeamsTeamResults = {
4009
4026
  export type MicrosoftTeamsTeamsInput = {
4010
4027
  /** The Microsoft Graph refresh token. */
4011
4028
  refreshToken: Scalars['String']['input'];
4012
- /** Azure Active Directory tenant identifier. */
4013
- tenantId: Scalars['String']['input'];
4014
4029
  };
4015
4030
  /** Represents Mistral model properties. */
4016
4031
  export type MistralModelProperties = {
@@ -4915,6 +4930,10 @@ export type Observation = {
4915
4930
  occurrences?: Maybe<Array<Maybe<ObservationOccurrence>>>;
4916
4931
  /** The owner of the observation. */
4917
4932
  owner: Owner;
4933
+ /** The related entity, optional. */
4934
+ related?: Maybe<NamedEntityReference>;
4935
+ /** The relationship between the observed entity and related entity, optional. */
4936
+ relation?: Maybe<Scalars['String']['output']>;
4918
4937
  /** The state of the observation (i.e. created, finished). */
4919
4938
  state: EntityState;
4920
4939
  /** The observed entity type. */
@@ -4947,6 +4966,10 @@ export type ObservationInput = {
4947
4966
  observable: NamedEntityReferenceInput;
4948
4967
  /** The observation occurrences. */
4949
4968
  occurrences: Array<ObservationOccurrenceInput>;
4969
+ /** The related entity, optional. */
4970
+ related?: InputMaybe<NamedEntityReferenceInput>;
4971
+ /** The relationship between the observed entity and related entity, optional. */
4972
+ relation?: InputMaybe<Scalars['String']['input']>;
4950
4973
  /** The observed entity type. */
4951
4974
  type: ObservableTypes;
4952
4975
  };
@@ -4998,6 +5021,10 @@ export type ObservationUpdateInput = {
4998
5021
  observable?: InputMaybe<NamedEntityReferenceInput>;
4999
5022
  /** The observation occurrences. */
5000
5023
  occurrences?: InputMaybe<Array<ObservationOccurrenceInput>>;
5024
+ /** The related entity, optional. */
5025
+ related?: InputMaybe<NamedEntityReferenceInput>;
5026
+ /** The relationship between the observed entity and related entity, optional. */
5027
+ relation?: InputMaybe<Scalars['String']['input']>;
5001
5028
  /** The observed entity type. */
5002
5029
  type?: InputMaybe<ObservableTypes>;
5003
5030
  };
@@ -5124,6 +5151,10 @@ export declare enum OpenAiModels {
5124
5151
  Custom = "CUSTOM",
5125
5152
  /** GPT-4 (Latest version) */
5126
5153
  Gpt4 = "GPT4",
5154
+ /** GPT-4o 128k (latest version) */
5155
+ Gpt4O_128K = "GPT4O_128K",
5156
+ /** GPT-4o 128k (2024-05-13 version) */
5157
+ Gpt4O_128K_20240513 = "GPT4O_128K_20240513",
5127
5158
  /** GPT-4 (0613 version) */
5128
5159
  Gpt4_0613 = "GPT4_0613",
5129
5160
  /** GPT-4 32k (Latest version) */
@@ -5168,6 +5199,12 @@ export declare enum OpenAiVisionDetailLevels {
5168
5199
  /** Low */
5169
5200
  Low = "LOW"
5170
5201
  }
5202
+ export declare enum OperationTypes {
5203
+ /** GraphQL Mutation */
5204
+ Mutation = "MUTATION",
5205
+ /** GraphQL Query */
5206
+ Query = "QUERY"
5207
+ }
5171
5208
  /** Order by type */
5172
5209
  export declare enum OrderByTypes {
5173
5210
  /** Order by creation date */
@@ -6278,7 +6315,7 @@ export type ProjectUpdateInput = {
6278
6315
  /** The default content workflow. */
6279
6316
  workflow?: InputMaybe<EntityReferenceInput>;
6280
6317
  };
6281
- /** Represents a correlated usage record. */
6318
+ /** Represents a usage record. */
6282
6319
  export type ProjectUsageRecord = {
6283
6320
  __typename?: 'ProjectUsageRecord';
6284
6321
  /** The LLM completion, if billable metric is 'Tokens'. */
@@ -6288,7 +6325,7 @@ export type ProjectUsageRecord = {
6288
6325
  /** The content type, if content usage record. */
6289
6326
  contentType?: Maybe<ContentTypes>;
6290
6327
  /** The tenant correlation identifier. */
6291
- correlationId?: Maybe<Scalars['String']['output']>;
6328
+ correlationId?: Maybe<Scalars['ID']['output']>;
6292
6329
  /** The count of processed units. */
6293
6330
  count?: Maybe<Scalars['Int']['output']>;
6294
6331
  /** The credits used. */
@@ -6303,6 +6340,8 @@ export type ProjectUsageRecord = {
6303
6340
  entityType?: Maybe<EntityTypes>;
6304
6341
  /** The file type, if content usage record. */
6305
6342
  fileType?: Maybe<FileTypes>;
6343
+ /** The usage record identifier. */
6344
+ id?: Maybe<Scalars['ID']['output']>;
6306
6345
  /** The billable metric type of the usage record, i.e. 'Tokens' or 'Units'. */
6307
6346
  metric?: Maybe<BillableMetrics>;
6308
6347
  /** For LLM operations, the LLM model name. Or, for transcription operations, the transcription model name. */
@@ -6311,6 +6350,10 @@ export type ProjectUsageRecord = {
6311
6350
  modelService?: Maybe<Scalars['String']['output']>;
6312
6351
  /** Descriptive name associated with the usage record, i.e. 'Prompt completion' or 'Search entities'. */
6313
6352
  name: Scalars['String']['output'];
6353
+ /** The GraphQL operation name, if billable metric is 'Request'. */
6354
+ operation?: Maybe<Scalars['String']['output']>;
6355
+ /** The GraphQL operation type, if billable metric is 'Request'. */
6356
+ operationType?: Maybe<OperationTypes>;
6314
6357
  /** The tenant identifier associated with the usage record. */
6315
6358
  ownerId: Scalars['ID']['output'];
6316
6359
  /** The service name when processing by external APIs. */
@@ -6353,6 +6396,8 @@ export type PromptConversation = {
6353
6396
  conversation?: Maybe<EntityReference>;
6354
6397
  /** The content facets referenced by the completed conversation message. */
6355
6398
  facets?: Maybe<Array<Maybe<ContentFacet>>>;
6399
+ /** The knowledge graph generated from the retrieved contents. */
6400
+ graph?: Maybe<Graph>;
6356
6401
  /** The completed conversation message. */
6357
6402
  message?: Maybe<ConversationMessage>;
6358
6403
  /** The conversation message count, after completion. */
@@ -7142,6 +7187,43 @@ export type RetrievalStrategyUpdateInput = {
7142
7187
  /** The retrieval strategy type. */
7143
7188
  type?: InputMaybe<RetrievalStrategyTypes>;
7144
7189
  };
7190
+ /** Represents a revision strategy. */
7191
+ export type RevisionStrategy = {
7192
+ __typename?: 'RevisionStrategy';
7193
+ /** The number of times LLM should revise the completion, defaults to 1. */
7194
+ count?: Maybe<Scalars['Int']['output']>;
7195
+ /** The custom revision prompt, if using custom strategy type. */
7196
+ customRevision?: Maybe<Scalars['String']['output']>;
7197
+ /** The revision strategy type. */
7198
+ type: RevisionStrategyTypes;
7199
+ };
7200
+ /** Represents a revision strategy. */
7201
+ export type RevisionStrategyInput = {
7202
+ /** The number of times LLM should revise the completion, defaults to 1. */
7203
+ count?: InputMaybe<Scalars['Int']['input']>;
7204
+ /** The custom revision prompt, if using custom strategy type. */
7205
+ customRevision?: InputMaybe<Scalars['String']['input']>;
7206
+ /** The revision strategy type. */
7207
+ type?: InputMaybe<RevisionStrategyTypes>;
7208
+ };
7209
+ /** Revision strategies */
7210
+ export declare enum RevisionStrategyTypes {
7211
+ /** Provide custom prompt for LLM to revise completion, and provide updated response */
7212
+ Custom = "CUSTOM",
7213
+ /** Use LLM completion */
7214
+ None = "NONE",
7215
+ /** Prompt LLM to revise completion, and provide updated response */
7216
+ Revise = "REVISE"
7217
+ }
7218
+ /** Represents a revision strategy. */
7219
+ export type RevisionStrategyUpdateInput = {
7220
+ /** The number of times LLM should revise the completion, defaults to 1. */
7221
+ count?: InputMaybe<Scalars['Int']['input']>;
7222
+ /** The custom revision prompt, if using custom strategy type. */
7223
+ customRevision?: InputMaybe<Scalars['String']['input']>;
7224
+ /** The revision strategy type. */
7225
+ type?: InputMaybe<RevisionStrategyTypes>;
7226
+ };
7145
7227
  /** Search query type */
7146
7228
  export declare enum SearchQueryTypes {
7147
7229
  /** Full (Lucene syntax) */
@@ -7561,6 +7643,8 @@ export type Specification = {
7561
7643
  customGuidance?: Maybe<Scalars['String']['output']>;
7562
7644
  /** Custom instructions which are injected into the LLM conversation prompt. */
7563
7645
  customInstructions?: Maybe<Scalars['String']['output']>;
7646
+ /** The strategy for GraphRAG retrieval. */
7647
+ graphStrategy?: Maybe<GraphStrategy>;
7564
7648
  /** The Groq model properties. */
7565
7649
  groq?: Maybe<GroqModelProperties>;
7566
7650
  /** The ID of the specification. */
@@ -7585,6 +7669,8 @@ export type Specification = {
7585
7669
  rerankingStrategy?: Maybe<RerankingStrategy>;
7586
7670
  /** The strategy for retrieving the relevant content for the RAG conversation. */
7587
7671
  retrievalStrategy?: Maybe<RetrievalStrategy>;
7672
+ /** The strategy for revising the LLM completion during a RAG conversation. */
7673
+ revisionStrategy?: Maybe<RevisionStrategy>;
7588
7674
  /** The content search type. */
7589
7675
  searchType?: Maybe<ConversationSearchTypes>;
7590
7676
  /** The LLM service type. */
@@ -7637,6 +7723,8 @@ export type SpecificationInput = {
7637
7723
  customGuidance?: InputMaybe<Scalars['String']['input']>;
7638
7724
  /** Custom instructions which are injected into the LLM conversation prompt. */
7639
7725
  customInstructions?: InputMaybe<Scalars['String']['input']>;
7726
+ /** The strategy for GraphRAG retrieval. */
7727
+ graphStrategy?: InputMaybe<GraphStrategyInput>;
7640
7728
  /** The Groq model properties. */
7641
7729
  groq?: InputMaybe<GroqModelPropertiesInput>;
7642
7730
  /** The Mistral model properties. */
@@ -7655,6 +7743,8 @@ export type SpecificationInput = {
7655
7743
  rerankingStrategy?: InputMaybe<RerankingStrategyInput>;
7656
7744
  /** The strategy for retrieving the relevant content for the RAG conversation. */
7657
7745
  retrievalStrategy?: InputMaybe<RetrievalStrategyInput>;
7746
+ /** The strategy for revising the LLM completion during a RAG conversation. */
7747
+ revisionStrategy?: InputMaybe<RevisionStrategyInput>;
7658
7748
  /** The content search type. */
7659
7749
  searchType?: InputMaybe<ConversationSearchTypes>;
7660
7750
  /** The LLM service type. */
@@ -7693,6 +7783,8 @@ export type SpecificationUpdateInput = {
7693
7783
  customGuidance?: InputMaybe<Scalars['String']['input']>;
7694
7784
  /** Custom instructions which are injected into the LLM conversation prompt. */
7695
7785
  customInstructions?: InputMaybe<Scalars['String']['input']>;
7786
+ /** The strategy for GraphRAG retrieval. */
7787
+ graphStrategy?: InputMaybe<GraphStrategyUpdateInput>;
7696
7788
  /** The Groq model properties. */
7697
7789
  groq?: InputMaybe<GroqModelPropertiesUpdateInput>;
7698
7790
  /** The ID of the specification to update. */
@@ -7713,6 +7805,8 @@ export type SpecificationUpdateInput = {
7713
7805
  rerankingStrategy?: InputMaybe<RerankingStrategyUpdateInput>;
7714
7806
  /** The strategy for retrieving the relevant content for the RAG conversation. */
7715
7807
  retrievalStrategy?: InputMaybe<RetrievalStrategyUpdateInput>;
7808
+ /** The strategy for revising the LLM completion during a RAG conversation. */
7809
+ revisionStrategy?: InputMaybe<RevisionStrategyUpdateInput>;
7716
7810
  /** The content search type. */
7717
7811
  searchType?: InputMaybe<ConversationSearchTypes>;
7718
7812
  /** The LLM service type. */
@@ -9046,12 +9140,18 @@ export type GetContentQuery = {
9046
9140
  __typename?: 'Observation';
9047
9141
  id: string;
9048
9142
  type: ObservableTypes;
9143
+ relation?: string | null;
9049
9144
  state: EntityState;
9050
9145
  observable: {
9051
9146
  __typename?: 'NamedEntityReference';
9052
9147
  id: string;
9053
9148
  name?: string | null;
9054
9149
  };
9150
+ related?: {
9151
+ __typename?: 'NamedEntityReference';
9152
+ id: string;
9153
+ name?: string | null;
9154
+ } | null;
9055
9155
  occurrences?: Array<{
9056
9156
  __typename?: 'ObservationOccurrence';
9057
9157
  type?: OccurrenceTypes | null;
@@ -9457,12 +9557,18 @@ export type QueryContentsQuery = {
9457
9557
  __typename?: 'Observation';
9458
9558
  id: string;
9459
9559
  type: ObservableTypes;
9560
+ relation?: string | null;
9460
9561
  state: EntityState;
9461
9562
  observable: {
9462
9563
  __typename?: 'NamedEntityReference';
9463
9564
  id: string;
9464
9565
  name?: string | null;
9465
9566
  };
9567
+ related?: {
9568
+ __typename?: 'NamedEntityReference';
9569
+ id: string;
9570
+ name?: string | null;
9571
+ } | null;
9466
9572
  occurrences?: Array<{
9467
9573
  __typename?: 'ObservationOccurrence';
9468
9574
  type?: OccurrenceTypes | null;
@@ -9713,12 +9819,18 @@ export type QueryContentsFacetsQuery = {
9713
9819
  __typename?: 'Observation';
9714
9820
  id: string;
9715
9821
  type: ObservableTypes;
9822
+ relation?: string | null;
9716
9823
  state: EntityState;
9717
9824
  observable: {
9718
9825
  __typename?: 'NamedEntityReference';
9719
9826
  id: string;
9720
9827
  name?: string | null;
9721
9828
  };
9829
+ related?: {
9830
+ __typename?: 'NamedEntityReference';
9831
+ id: string;
9832
+ name?: string | null;
9833
+ } | null;
9722
9834
  occurrences?: Array<{
9723
9835
  __typename?: 'ObservationOccurrence';
9724
9836
  type?: OccurrenceTypes | null;
@@ -9807,6 +9919,7 @@ export type QueryContentsGraphQuery = {
9807
9919
  __typename?: 'GraphEdge';
9808
9920
  from: string;
9809
9921
  to: string;
9922
+ relation?: string | null;
9810
9923
  } | null> | null;
9811
9924
  } | null;
9812
9925
  } | null;
@@ -10108,6 +10221,21 @@ export type PromptConversationMutation = {
10108
10221
  } | null;
10109
10222
  } | null;
10110
10223
  } | null> | null;
10224
+ graph?: {
10225
+ __typename?: 'Graph';
10226
+ nodes?: Array<{
10227
+ __typename?: 'GraphNode';
10228
+ id: string;
10229
+ type: EntityTypes;
10230
+ metadata?: string | null;
10231
+ } | null> | null;
10232
+ edges?: Array<{
10233
+ __typename?: 'GraphEdge';
10234
+ from: string;
10235
+ to: string;
10236
+ relation?: string | null;
10237
+ } | null> | null;
10238
+ } | null;
10111
10239
  } | null;
10112
10240
  };
10113
10241
  export type PublishConversationMutationVariables = Exact<{
@@ -10564,7 +10692,6 @@ export type GetFeedQuery = {
10564
10692
  microsoft?: {
10565
10693
  __typename?: 'MicrosoftEmailFeedProperties';
10566
10694
  type?: EmailListingTypes | null;
10567
- tenantId?: string | null;
10568
10695
  refreshToken: string;
10569
10696
  } | null;
10570
10697
  } | null;
@@ -10761,7 +10888,6 @@ export type QueryFeedsQuery = {
10761
10888
  microsoft?: {
10762
10889
  __typename?: 'MicrosoftEmailFeedProperties';
10763
10890
  type?: EmailListingTypes | null;
10764
- tenantId?: string | null;
10765
10891
  refreshToken: string;
10766
10892
  } | null;
10767
10893
  } | null;
@@ -11629,6 +11755,7 @@ export type LookupUsageQuery = {
11629
11755
  __typename?: 'Query';
11630
11756
  lookupUsage?: Array<{
11631
11757
  __typename?: 'ProjectUsageRecord';
11758
+ id?: string | null;
11632
11759
  correlationId?: string | null;
11633
11760
  date: any;
11634
11761
  credits?: any | null;
@@ -11653,6 +11780,8 @@ export type LookupUsageQuery = {
11653
11780
  completionTokens?: number | null;
11654
11781
  tokens?: number | null;
11655
11782
  count?: number | null;
11783
+ operation?: string | null;
11784
+ operationType?: OperationTypes | null;
11656
11785
  request?: string | null;
11657
11786
  variables?: string | null;
11658
11787
  response?: string | null;
@@ -11687,6 +11816,7 @@ export type QueryUsageQuery = {
11687
11816
  __typename?: 'Query';
11688
11817
  usage?: Array<{
11689
11818
  __typename?: 'ProjectUsageRecord';
11819
+ id?: string | null;
11690
11820
  correlationId?: string | null;
11691
11821
  date: any;
11692
11822
  credits?: any | null;
@@ -11711,6 +11841,8 @@ export type QueryUsageQuery = {
11711
11841
  completionTokens?: number | null;
11712
11842
  tokens?: number | null;
11713
11843
  count?: number | null;
11844
+ operation?: string | null;
11845
+ operationType?: OperationTypes | null;
11714
11846
  request?: string | null;
11715
11847
  variables?: string | null;
11716
11848
  response?: string | null;
@@ -12029,6 +12161,16 @@ export type GetSpecificationQuery = {
12029
12161
  __typename?: 'RerankingStrategy';
12030
12162
  serviceType: RerankingModelServiceTypes;
12031
12163
  } | null;
12164
+ graphStrategy?: {
12165
+ __typename?: 'GraphStrategy';
12166
+ type: GraphStrategyTypes;
12167
+ } | null;
12168
+ revisionStrategy?: {
12169
+ __typename?: 'RevisionStrategy';
12170
+ type: RevisionStrategyTypes;
12171
+ customRevision?: string | null;
12172
+ count?: number | null;
12173
+ } | null;
12032
12174
  openAI?: {
12033
12175
  __typename?: 'OpenAIModelProperties';
12034
12176
  tokenLimit?: number | null;
@@ -12182,6 +12324,16 @@ export type QuerySpecificationsQuery = {
12182
12324
  __typename?: 'RerankingStrategy';
12183
12325
  serviceType: RerankingModelServiceTypes;
12184
12326
  } | null;
12327
+ graphStrategy?: {
12328
+ __typename?: 'GraphStrategy';
12329
+ type: GraphStrategyTypes;
12330
+ } | null;
12331
+ revisionStrategy?: {
12332
+ __typename?: 'RevisionStrategy';
12333
+ type: RevisionStrategyTypes;
12334
+ customRevision?: string | null;
12335
+ count?: number | null;
12336
+ } | null;
12185
12337
  openAI?: {
12186
12338
  __typename?: 'OpenAIModelProperties';
12187
12339
  tokenLimit?: number | null;
@@ -12340,6 +12492,7 @@ export type CreateWorkflowMutation = {
12340
12492
  contentTypes?: Array<ContentTypes> | null;
12341
12493
  fileTypes?: Array<FileTypes> | null;
12342
12494
  extractedTypes?: Array<ObservableTypes> | null;
12495
+ extractedCount?: number | null;
12343
12496
  azureText?: {
12344
12497
  __typename?: 'AzureTextExtractionProperties';
12345
12498
  confidenceThreshold?: number | null;
@@ -12517,6 +12670,7 @@ export type GetWorkflowQuery = {
12517
12670
  contentTypes?: Array<ContentTypes> | null;
12518
12671
  fileTypes?: Array<FileTypes> | null;
12519
12672
  extractedTypes?: Array<ObservableTypes> | null;
12673
+ extractedCount?: number | null;
12520
12674
  azureText?: {
12521
12675
  __typename?: 'AzureTextExtractionProperties';
12522
12676
  confidenceThreshold?: number | null;
@@ -12660,6 +12814,7 @@ export type QueryWorkflowsQuery = {
12660
12814
  contentTypes?: Array<ContentTypes> | null;
12661
12815
  fileTypes?: Array<FileTypes> | null;
12662
12816
  extractedTypes?: Array<ObservableTypes> | null;
12817
+ extractedCount?: number | null;
12663
12818
  azureText?: {
12664
12819
  __typename?: 'AzureTextExtractionProperties';
12665
12820
  confidenceThreshold?: number | null;
@@ -12797,6 +12952,7 @@ export type UpdateWorkflowMutation = {
12797
12952
  contentTypes?: Array<ContentTypes> | null;
12798
12953
  fileTypes?: Array<FileTypes> | null;
12799
12954
  extractedTypes?: Array<ObservableTypes> | null;
12955
+ extractedCount?: number | null;
12800
12956
  azureText?: {
12801
12957
  __typename?: 'AzureTextExtractionProperties';
12802
12958
  confidenceThreshold?: number | null;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OpenAiModels = exports.OccurrenceTypes = exports.ObservableTypes = exports.NotionTypes = exports.ModelServiceTypes = exports.MistralModels = exports.MetadataTypes = exports.MailSensitivity = exports.MailPriority = exports.MailImportance = exports.LinkTypes = exports.LabelFacetTypes = exports.IntegrationServiceTypes = exports.ImageProjectionTypes = exports.H3ResolutionTypes = exports.GroqModels = exports.FileTypes = exports.FilePreparationServiceTypes = exports.FeedTypes = exports.FeedServiceTypes = exports.FeedListingTypes = exports.FeedConnectorTypes = exports.FacetValueTypes = exports.EventFacetTypes = exports.EnvironmentTypes = exports.EntityTypes = exports.EntityState = exports.EntityExtractionServiceTypes = exports.EntityEnrichmentServiceTypes = exports.EmailListingTypes = exports.ElevenLabsModels = exports.DeviceTypes = exports.DeepgramModels = exports.ConversationTypes = exports.ConversationStrategyTypes = exports.ConversationSearchTypes = exports.ConversationRoleTypes = exports.ContentTypes = exports.ContentPublishingServiceTypes = exports.ContentPublishingFormats = exports.ContentFacetTypes = exports.CollectionTypes = exports.CohereModels = exports.CategoryFacetTypes = exports.BillableMetrics = exports.AzureOpenAiModels = exports.AzureDocumentIntelligenceModels = exports.ApplyPolicy = exports.AnthropicModels = exports.AlertTypes = void 0;
4
- exports.YouTubeTypes = exports.UnitTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = exports.SiteTypes = exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchQueryTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OpenAiVisionDetailLevels = void 0;
3
+ exports.OccurrenceTypes = exports.ObservableTypes = exports.NotionTypes = exports.ModelServiceTypes = exports.MistralModels = exports.MetadataTypes = exports.MailSensitivity = exports.MailPriority = exports.MailImportance = exports.LinkTypes = exports.LabelFacetTypes = exports.IntegrationServiceTypes = exports.ImageProjectionTypes = exports.H3ResolutionTypes = exports.GroqModels = exports.GraphStrategyTypes = exports.FileTypes = exports.FilePreparationServiceTypes = exports.FeedTypes = exports.FeedServiceTypes = exports.FeedListingTypes = exports.FeedConnectorTypes = exports.FacetValueTypes = exports.EventFacetTypes = exports.EnvironmentTypes = exports.EntityTypes = exports.EntityState = exports.EntityExtractionServiceTypes = exports.EntityEnrichmentServiceTypes = exports.EmailListingTypes = exports.ElevenLabsModels = exports.DeviceTypes = exports.DeepgramModels = exports.ConversationTypes = exports.ConversationStrategyTypes = exports.ConversationSearchTypes = exports.ConversationRoleTypes = exports.ContentTypes = exports.ContentPublishingServiceTypes = exports.ContentPublishingFormats = exports.ContentFacetTypes = exports.CollectionTypes = exports.CohereModels = exports.CategoryFacetTypes = exports.BillableMetrics = exports.AzureOpenAiModels = exports.AzureDocumentIntelligenceModels = exports.ApplyPolicy = exports.AnthropicModels = exports.AlertTypes = void 0;
4
+ exports.YouTubeTypes = exports.UnitTypes = exports.TimedPolicyRecurrenceTypes = exports.TimeIntervalTypes = exports.TextTypes = exports.TextRoles = exports.SummarizationTypes = exports.SpecificationTypes = exports.SoftwareFacetTypes = exports.SiteTypes = exports.SharePointAuthenticationTypes = exports.SearchTypes = exports.SearchQueryTypes = exports.RevisionStrategyTypes = exports.RetrievalStrategyTypes = exports.ResourceConnectorTypes = exports.RerankingModelServiceTypes = exports.RepoFacetTypes = exports.ReplicateModels = exports.RenditionTypes = exports.PromptStrategyTypes = exports.ProductFacetTypes = exports.PolicyTimeTypes = exports.PlaceFacetTypes = exports.PersonFacetTypes = exports.OrientationTypes = exports.OrganizationFacetTypes = exports.OrderDirectionTypes = exports.OrderByTypes = exports.OperationTypes = exports.OpenAiVisionDetailLevels = exports.OpenAiModels = void 0;
5
5
  /** Alert type */
6
6
  var AlertTypes;
7
7
  (function (AlertTypes) {
@@ -614,6 +614,16 @@ var FileTypes;
614
614
  /** Video file */
615
615
  FileTypes["Video"] = "VIDEO";
616
616
  })(FileTypes || (exports.FileTypes = FileTypes = {}));
617
+ /** GraphRAG strategies */
618
+ var GraphStrategyTypes;
619
+ (function (GraphStrategyTypes) {
620
+ /** Extract named entities from prompt, and assign as observations filter */
621
+ GraphStrategyTypes["ExtractEntitiesFilter"] = "EXTRACT_ENTITIES_FILTER";
622
+ /** Extract named entities from prompt, and aggregate vector search and graph query results */
623
+ GraphStrategyTypes["ExtractEntitiesGraph"] = "EXTRACT_ENTITIES_GRAPH";
624
+ /** Use standard RAG */
625
+ GraphStrategyTypes["None"] = "NONE";
626
+ })(GraphStrategyTypes || (exports.GraphStrategyTypes = GraphStrategyTypes = {}));
617
627
  /** Groq model type */
618
628
  var GroqModels;
619
629
  (function (GroqModels) {
@@ -888,6 +898,10 @@ var OpenAiModels;
888
898
  OpenAiModels["Custom"] = "CUSTOM";
889
899
  /** GPT-4 (Latest version) */
890
900
  OpenAiModels["Gpt4"] = "GPT4";
901
+ /** GPT-4o 128k (latest version) */
902
+ OpenAiModels["Gpt4O_128K"] = "GPT4O_128K";
903
+ /** GPT-4o 128k (2024-05-13 version) */
904
+ OpenAiModels["Gpt4O_128K_20240513"] = "GPT4O_128K_20240513";
891
905
  /** GPT-4 (0613 version) */
892
906
  OpenAiModels["Gpt4_0613"] = "GPT4_0613";
893
907
  /** GPT-4 32k (Latest version) */
@@ -933,6 +947,13 @@ var OpenAiVisionDetailLevels;
933
947
  /** Low */
934
948
  OpenAiVisionDetailLevels["Low"] = "LOW";
935
949
  })(OpenAiVisionDetailLevels || (exports.OpenAiVisionDetailLevels = OpenAiVisionDetailLevels = {}));
950
+ var OperationTypes;
951
+ (function (OperationTypes) {
952
+ /** GraphQL Mutation */
953
+ OperationTypes["Mutation"] = "MUTATION";
954
+ /** GraphQL Query */
955
+ OperationTypes["Query"] = "QUERY";
956
+ })(OperationTypes || (exports.OperationTypes = OperationTypes = {}));
936
957
  /** Order by type */
937
958
  var OrderByTypes;
938
959
  (function (OrderByTypes) {
@@ -1083,6 +1104,16 @@ var RetrievalStrategyTypes;
1083
1104
  /** Section-level retrieval, or page-level or segment-level retrieval, if no sections */
1084
1105
  RetrievalStrategyTypes["Section"] = "SECTION";
1085
1106
  })(RetrievalStrategyTypes || (exports.RetrievalStrategyTypes = RetrievalStrategyTypes = {}));
1107
+ /** Revision strategies */
1108
+ var RevisionStrategyTypes;
1109
+ (function (RevisionStrategyTypes) {
1110
+ /** Provide custom prompt for LLM to revise completion, and provide updated response */
1111
+ RevisionStrategyTypes["Custom"] = "CUSTOM";
1112
+ /** Use LLM completion */
1113
+ RevisionStrategyTypes["None"] = "NONE";
1114
+ /** Prompt LLM to revise completion, and provide updated response */
1115
+ RevisionStrategyTypes["Revise"] = "REVISE";
1116
+ })(RevisionStrategyTypes || (exports.RevisionStrategyTypes = RevisionStrategyTypes = {}));
1086
1117
  /** Search query type */
1087
1118
  var SearchQueryTypes;
1088
1119
  (function (SearchQueryTypes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20240509002",
3
+ "version": "1.0.20240516001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",