graphlit-client 1.0.20241124001 → 1.0.20241201001

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
@@ -69,6 +69,8 @@ declare class Graphlit {
69
69
  reviseText(prompt: string, text: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseTextMutation>;
70
70
  reviseContent(prompt: string, content: Types.EntityReferenceInput, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ReviseContentMutation>;
71
71
  prompt(prompt: string, specification?: Types.EntityReferenceInput, messages?: [Types.ConversationMessageInput], correlationId?: string): Promise<Types.PromptMutation>;
72
+ formatConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.FormatConversationMutation>;
73
+ completeConversation(completion: string, id: string, correlationId?: string): Promise<Types.CompleteConversationMutation>;
72
74
  promptConversation(prompt: string, id?: string, specification?: Types.EntityReferenceInput, tools?: [Types.ToolDefinitionInput], requireTool?: boolean, correlationId?: string): Promise<Types.PromptConversationMutation>;
73
75
  continueConversation(id: string, responses: [Types.ConversationToolResponseInput], correlationId?: string): Promise<Types.ContinueConversationMutation>;
74
76
  publishConversation(id: string, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.PublishConversationMutation>;
package/dist/client.js CHANGED
@@ -403,6 +403,16 @@ class Graphlit {
403
403
  return this.mutateAndCheckError(Documents.Prompt, { prompt: prompt, specification: specification, messages: messages, correlationId: correlationId });
404
404
  });
405
405
  }
406
+ formatConversation(prompt, id, specification, correlationId) {
407
+ return __awaiter(this, void 0, void 0, function* () {
408
+ return this.mutateAndCheckError(Documents.FormatConversation, { prompt: prompt, id: id, specification: specification, correlationId: correlationId });
409
+ });
410
+ }
411
+ completeConversation(completion, id, correlationId) {
412
+ return __awaiter(this, void 0, void 0, function* () {
413
+ return this.mutateAndCheckError(Documents.CompleteConversation, { completion: completion, id: id, correlationId: correlationId });
414
+ });
415
+ }
406
416
  promptConversation(prompt, id, specification, tools, requireTool, correlationId) {
407
417
  return __awaiter(this, void 0, void 0, function* () {
408
418
  return this.mutateAndCheckError(Documents.PromptConversation, { prompt: prompt, id: id, specification: specification, tools: tools, requireTool: requireTool, correlationId: correlationId });
@@ -49,12 +49,14 @@ export declare const SummarizeContents: import("graphql").DocumentNode;
49
49
  export declare const UpdateContent: import("graphql").DocumentNode;
50
50
  export declare const ClearConversation: import("graphql").DocumentNode;
51
51
  export declare const CloseConversation: import("graphql").DocumentNode;
52
+ export declare const CompleteConversation: import("graphql").DocumentNode;
52
53
  export declare const ContinueConversation: import("graphql").DocumentNode;
53
54
  export declare const CountConversations: import("graphql").DocumentNode;
54
55
  export declare const CreateConversation: import("graphql").DocumentNode;
55
56
  export declare const DeleteAllConversations: import("graphql").DocumentNode;
56
57
  export declare const DeleteConversation: import("graphql").DocumentNode;
57
58
  export declare const DeleteConversations: import("graphql").DocumentNode;
59
+ export declare const FormatConversation: import("graphql").DocumentNode;
58
60
  export declare const GetConversation: import("graphql").DocumentNode;
59
61
  export declare const Prompt: import("graphql").DocumentNode;
60
62
  export declare const PromptConversation: import("graphql").DocumentNode;
@@ -4,11 +4,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.ClearConversation = exports.UpdateContent = exports.SummarizeContents = exports.QueryContentsGraph = exports.QueryContentsFacets = exports.QueryContents = exports.PublishText = exports.PublishContents = exports.IsContentDone = exports.IngestUri = exports.IngestTextBatch = exports.IngestText = exports.IngestEncodedFile = exports.IngestBatch = exports.GetContent = exports.ExtractContents = exports.DescribeImage = exports.DescribeEncodedImage = exports.DeleteContents = exports.DeleteContent = exports.DeleteAllContents = exports.CountContents = exports.UpdateCollection = exports.RemoveContentsFromCollection = exports.QueryCollections = exports.GetCollection = exports.DeleteCollections = exports.DeleteCollection = exports.DeleteAllCollections = exports.CreateCollection = exports.CountCollections = exports.AddContentsToCollections = exports.UpdateCategory = exports.QueryCategories = exports.GetCategory = exports.DeleteCategory = exports.DeleteCategories = exports.DeleteAllCategories = exports.CreateCategory = exports.CountCategories = exports.UpdateAlert = exports.QueryAlerts = exports.GetAlert = exports.EnableAlert = exports.DisableAlert = exports.DeleteAllAlerts = exports.DeleteAlerts = exports.DeleteAlert = exports.CreateAlert = exports.CountAlerts = void 0;
7
- exports.QueryLabels = exports.GetLabel = exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CloseConversation = void 0;
8
- exports.CountMedicalIndications = exports.UpdateMedicalGuideline = exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = exports.DeleteAllMedicalDrugClasses = exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpdateLabel = void 0;
9
- exports.UpdateOrganization = exports.QueryOrganizations = exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = exports.DeleteMedicalTherapy = exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = void 0;
10
- exports.DeleteAllSpecifications = exports.CreateSpecification = exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = exports.DeleteRepos = exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = void 0;
11
- exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = void 0;
7
+ exports.DeleteLabels = exports.DeleteLabel = exports.DeleteAllLabels = exports.CreateLabel = exports.CountLabels = exports.UpdateFeed = exports.QuerySharePointLibraries = exports.QuerySharePointFolders = exports.QueryOneDriveFolders = exports.QueryMicrosoftTeamsTeams = exports.QueryMicrosoftTeamsChannels = exports.QueryFeeds = exports.IsFeedDone = exports.GetSharePointConsentUri = exports.GetFeed = exports.EnableFeed = exports.DisableFeed = exports.DeleteFeeds = exports.DeleteFeed = exports.DeleteAllFeeds = exports.CreateFeed = exports.CountFeeds = exports.UpdateEvent = exports.QueryEvents = exports.GetEvent = exports.DeleteEvents = exports.DeleteEvent = exports.DeleteAllEvents = exports.CreateEvent = exports.CountEvents = exports.UpdateConversation = exports.SuggestConversation = exports.ReviseText = exports.ReviseImage = exports.ReviseEncodedImage = exports.ReviseContent = exports.QueryConversations = exports.PublishConversation = exports.PromptConversation = exports.Prompt = exports.GetConversation = exports.FormatConversation = exports.DeleteConversations = exports.DeleteConversation = exports.DeleteAllConversations = exports.CreateConversation = exports.CountConversations = exports.ContinueConversation = exports.CompleteConversation = exports.CloseConversation = void 0;
8
+ exports.QueryMedicalGuidelines = exports.GetMedicalGuideline = exports.DeleteMedicalGuidelines = exports.DeleteMedicalGuideline = exports.DeleteAllMedicalGuidelines = exports.CreateMedicalGuideline = exports.CountMedicalGuidelines = exports.UpdateMedicalDrugClass = exports.QueryMedicalDrugClasses = exports.GetMedicalDrugClass = exports.DeleteMedicalDrugClasses = exports.DeleteMedicalDrugClass = exports.DeleteAllMedicalDrugClasses = exports.CreateMedicalDrugClass = exports.CountMedicalDrugClasses = exports.UpdateMedicalDrug = exports.QueryMedicalDrugs = exports.GetMedicalDrug = exports.DeleteMedicalDrugs = exports.DeleteMedicalDrug = exports.DeleteAllMedicalDrugs = exports.CreateMedicalDrug = exports.CountMedicalDrugs = exports.UpdateMedicalDevice = exports.QueryMedicalDevices = exports.GetMedicalDevice = exports.DeleteMedicalDevices = exports.DeleteMedicalDevice = exports.DeleteAllMedicalDevices = exports.CreateMedicalDevice = exports.CountMedicalDevices = exports.UpdateMedicalContraindication = exports.QueryMedicalContraindications = exports.GetMedicalContraindication = exports.DeleteMedicalContraindications = exports.DeleteMedicalContraindication = exports.DeleteAllMedicalContraindications = exports.CreateMedicalContraindication = exports.CountMedicalContraindications = exports.UpdateMedicalCondition = exports.QueryMedicalConditions = exports.GetMedicalCondition = exports.DeleteMedicalConditions = exports.DeleteMedicalCondition = exports.DeleteAllMedicalConditions = exports.CreateMedicalCondition = exports.CountMedicalConditions = exports.UpdateLabel = exports.QueryLabels = exports.GetLabel = void 0;
9
+ exports.GetOrganization = exports.DeleteOrganizations = exports.DeleteOrganization = exports.DeleteAllOrganizations = exports.CreateOrganization = exports.CountOrganizations = exports.UpdateObservation = exports.DeleteObservation = exports.CreateObservation = exports.UpdateMedicalTherapy = exports.QueryMedicalTherapies = exports.GetMedicalTherapy = exports.DeleteMedicalTherapy = exports.DeleteMedicalTherapies = exports.DeleteAllMedicalTherapies = exports.CreateMedicalTherapy = exports.CountMedicalTherapies = exports.UpdateMedicalTest = exports.QueryMedicalTests = exports.GetMedicalTest = exports.DeleteMedicalTests = exports.DeleteMedicalTest = exports.DeleteAllMedicalTests = exports.CreateMedicalTest = exports.CountMedicalTests = exports.UpdateMedicalStudy = exports.QueryMedicalStudies = exports.GetMedicalStudy = exports.DeleteMedicalStudy = exports.DeleteMedicalStudies = exports.DeleteAllMedicalStudies = exports.CreateMedicalStudy = exports.CountMedicalStudies = exports.UpdateMedicalProcedure = exports.QueryMedicalProcedures = exports.GetMedicalProcedure = exports.DeleteMedicalProcedures = exports.DeleteMedicalProcedure = exports.DeleteAllMedicalProcedures = exports.CreateMedicalProcedure = exports.CountMedicalProcedures = exports.UpdateMedicalIndication = exports.QueryMedicalIndications = exports.GetMedicalIndication = exports.DeleteMedicalIndications = exports.DeleteMedicalIndication = exports.DeleteAllMedicalIndications = exports.CreateMedicalIndication = exports.CountMedicalIndications = exports.UpdateMedicalGuideline = void 0;
10
+ exports.CountSpecifications = exports.UpdateSoftware = exports.QuerySoftwares = exports.GetSoftware = exports.DeleteSoftwares = exports.DeleteSoftware = exports.DeleteAllSoftwares = exports.CreateSoftware = exports.CountSoftwares = exports.SearchWeb = exports.UpdateRepo = exports.QueryRepos = exports.GetRepo = exports.DeleteRepos = exports.DeleteRepo = exports.DeleteAllRepos = exports.CreateRepo = exports.CountRepos = exports.UpdateProject = exports.QueryUsage = exports.QueryCredits = exports.LookupUsage = exports.LookupCredits = exports.GetProject = exports.UpdateProduct = exports.QueryProducts = exports.GetProduct = exports.DeleteProducts = exports.DeleteProduct = exports.DeleteAllProducts = exports.CreateProduct = exports.CountProducts = exports.UpdatePlace = exports.QueryPlaces = exports.GetPlace = exports.DeletePlaces = exports.DeletePlace = exports.DeleteAllPlaces = exports.CreatePlace = exports.CountPlaces = exports.UpdatePerson = exports.QueryPersons = exports.GetPerson = exports.DeletePersons = exports.DeletePerson = exports.DeleteAllPersons = exports.CreatePerson = exports.CountPersons = exports.UpdateOrganization = exports.QueryOrganizations = void 0;
11
+ exports.UpdateWorkflow = exports.QueryWorkflows = exports.GetWorkflow = exports.DeleteWorkflows = exports.DeleteWorkflow = exports.DeleteAllWorkflows = exports.CreateWorkflow = exports.CountWorkflows = exports.UpdateSpecification = exports.QuerySpecifications = exports.PromptSpecifications = exports.GetSpecification = exports.DeleteSpecifications = exports.DeleteSpecification = exports.DeleteAllSpecifications = exports.CreateSpecification = void 0;
12
12
  const graphql_tag_1 = __importDefault(require("graphql-tag"));
13
13
  exports.CountAlerts = (0, graphql_tag_1.default) `
14
14
  query CountAlerts($filter: AlertFilter) {
@@ -1826,6 +1826,171 @@ exports.CloseConversation = (0, graphql_tag_1.default) `
1826
1826
  }
1827
1827
  }
1828
1828
  `;
1829
+ exports.CompleteConversation = (0, graphql_tag_1.default) `
1830
+ mutation CompleteConversation($completion: String!, $id: ID!, $correlationId: String) {
1831
+ completeConversation(
1832
+ completion: $completion
1833
+ id: $id
1834
+ correlationId: $correlationId
1835
+ ) {
1836
+ conversation {
1837
+ id
1838
+ }
1839
+ message {
1840
+ role
1841
+ author
1842
+ message
1843
+ citations {
1844
+ content {
1845
+ id
1846
+ name
1847
+ state
1848
+ originalDate
1849
+ identifier
1850
+ uri
1851
+ type
1852
+ fileType
1853
+ mimeType
1854
+ format
1855
+ formatName
1856
+ fileExtension
1857
+ fileName
1858
+ fileSize
1859
+ masterUri
1860
+ imageUri
1861
+ textUri
1862
+ audioUri
1863
+ transcriptUri
1864
+ summary
1865
+ customSummary
1866
+ keywords
1867
+ bullets
1868
+ headlines
1869
+ posts
1870
+ chapters
1871
+ questions
1872
+ video {
1873
+ width
1874
+ height
1875
+ duration
1876
+ make
1877
+ model
1878
+ software
1879
+ title
1880
+ description
1881
+ keywords
1882
+ author
1883
+ }
1884
+ audio {
1885
+ keywords
1886
+ author
1887
+ series
1888
+ episode
1889
+ episodeType
1890
+ season
1891
+ publisher
1892
+ copyright
1893
+ genre
1894
+ title
1895
+ description
1896
+ bitrate
1897
+ channels
1898
+ sampleRate
1899
+ bitsPerSample
1900
+ duration
1901
+ }
1902
+ image {
1903
+ width
1904
+ height
1905
+ resolutionX
1906
+ resolutionY
1907
+ bitsPerComponent
1908
+ components
1909
+ projectionType
1910
+ orientation
1911
+ description
1912
+ make
1913
+ model
1914
+ software
1915
+ lens
1916
+ focalLength
1917
+ exposureTime
1918
+ fNumber
1919
+ iso
1920
+ heading
1921
+ pitch
1922
+ }
1923
+ document {
1924
+ title
1925
+ subject
1926
+ summary
1927
+ author
1928
+ publisher
1929
+ description
1930
+ keywords
1931
+ pageCount
1932
+ worksheetCount
1933
+ slideCount
1934
+ wordCount
1935
+ lineCount
1936
+ paragraphCount
1937
+ isEncrypted
1938
+ hasDigitalSignature
1939
+ }
1940
+ }
1941
+ index
1942
+ text
1943
+ startTime
1944
+ endTime
1945
+ pageNumber
1946
+ frameNumber
1947
+ }
1948
+ toolCalls {
1949
+ id
1950
+ name
1951
+ arguments
1952
+ }
1953
+ tokens
1954
+ throughput
1955
+ completionTime
1956
+ timestamp
1957
+ modelService
1958
+ model
1959
+ }
1960
+ messageCount
1961
+ facets {
1962
+ type
1963
+ value
1964
+ range {
1965
+ from
1966
+ to
1967
+ }
1968
+ count
1969
+ facet
1970
+ observable {
1971
+ type
1972
+ observable {
1973
+ id
1974
+ name
1975
+ }
1976
+ }
1977
+ }
1978
+ graph {
1979
+ nodes {
1980
+ id
1981
+ name
1982
+ type
1983
+ metadata
1984
+ }
1985
+ edges {
1986
+ from
1987
+ to
1988
+ relation
1989
+ }
1990
+ }
1991
+ }
1992
+ }
1993
+ `;
1829
1994
  exports.ContinueConversation = (0, graphql_tag_1.default) `
1830
1995
  mutation ContinueConversation($id: ID!, $responses: [ConversationToolResponseInput!]!, $correlationId: String) {
1831
1996
  continueConversation(
@@ -2036,6 +2201,172 @@ exports.DeleteConversations = (0, graphql_tag_1.default) `
2036
2201
  }
2037
2202
  }
2038
2203
  `;
2204
+ exports.FormatConversation = (0, graphql_tag_1.default) `
2205
+ mutation FormatConversation($prompt: String!, $id: ID, $specification: EntityReferenceInput, $correlationId: String) {
2206
+ formatConversation(
2207
+ prompt: $prompt
2208
+ id: $id
2209
+ specification: $specification
2210
+ correlationId: $correlationId
2211
+ ) {
2212
+ conversation {
2213
+ id
2214
+ }
2215
+ message {
2216
+ role
2217
+ author
2218
+ message
2219
+ citations {
2220
+ content {
2221
+ id
2222
+ name
2223
+ state
2224
+ originalDate
2225
+ identifier
2226
+ uri
2227
+ type
2228
+ fileType
2229
+ mimeType
2230
+ format
2231
+ formatName
2232
+ fileExtension
2233
+ fileName
2234
+ fileSize
2235
+ masterUri
2236
+ imageUri
2237
+ textUri
2238
+ audioUri
2239
+ transcriptUri
2240
+ summary
2241
+ customSummary
2242
+ keywords
2243
+ bullets
2244
+ headlines
2245
+ posts
2246
+ chapters
2247
+ questions
2248
+ video {
2249
+ width
2250
+ height
2251
+ duration
2252
+ make
2253
+ model
2254
+ software
2255
+ title
2256
+ description
2257
+ keywords
2258
+ author
2259
+ }
2260
+ audio {
2261
+ keywords
2262
+ author
2263
+ series
2264
+ episode
2265
+ episodeType
2266
+ season
2267
+ publisher
2268
+ copyright
2269
+ genre
2270
+ title
2271
+ description
2272
+ bitrate
2273
+ channels
2274
+ sampleRate
2275
+ bitsPerSample
2276
+ duration
2277
+ }
2278
+ image {
2279
+ width
2280
+ height
2281
+ resolutionX
2282
+ resolutionY
2283
+ bitsPerComponent
2284
+ components
2285
+ projectionType
2286
+ orientation
2287
+ description
2288
+ make
2289
+ model
2290
+ software
2291
+ lens
2292
+ focalLength
2293
+ exposureTime
2294
+ fNumber
2295
+ iso
2296
+ heading
2297
+ pitch
2298
+ }
2299
+ document {
2300
+ title
2301
+ subject
2302
+ summary
2303
+ author
2304
+ publisher
2305
+ description
2306
+ keywords
2307
+ pageCount
2308
+ worksheetCount
2309
+ slideCount
2310
+ wordCount
2311
+ lineCount
2312
+ paragraphCount
2313
+ isEncrypted
2314
+ hasDigitalSignature
2315
+ }
2316
+ }
2317
+ index
2318
+ text
2319
+ startTime
2320
+ endTime
2321
+ pageNumber
2322
+ frameNumber
2323
+ }
2324
+ toolCalls {
2325
+ id
2326
+ name
2327
+ arguments
2328
+ }
2329
+ tokens
2330
+ throughput
2331
+ completionTime
2332
+ timestamp
2333
+ modelService
2334
+ model
2335
+ }
2336
+ messageCount
2337
+ facets {
2338
+ type
2339
+ value
2340
+ range {
2341
+ from
2342
+ to
2343
+ }
2344
+ count
2345
+ facet
2346
+ observable {
2347
+ type
2348
+ observable {
2349
+ id
2350
+ name
2351
+ }
2352
+ }
2353
+ }
2354
+ graph {
2355
+ nodes {
2356
+ id
2357
+ name
2358
+ type
2359
+ metadata
2360
+ }
2361
+ edges {
2362
+ from
2363
+ to
2364
+ relation
2365
+ }
2366
+ }
2367
+ }
2368
+ }
2369
+ `;
2039
2370
  exports.GetConversation = (0, graphql_tag_1.default) `
2040
2371
  query GetConversation($id: ID!) {
2041
2372
  conversation(id: $id) {
@@ -6521,6 +6521,8 @@ export type Mutation = {
6521
6521
  closeCollection?: Maybe<Collection>;
6522
6522
  /** Closes an existing conversation. */
6523
6523
  closeConversation?: Maybe<Conversation>;
6524
+ /** Complete a conversation with LLM assistant message. */
6525
+ completeConversation?: Maybe<PromptConversation>;
6524
6526
  /** Provide responses to called tools which continues prompted conversation. */
6525
6527
  continueConversation?: Maybe<PromptConversation>;
6526
6528
  /** Creates a new alert. */
@@ -6755,6 +6757,8 @@ export type Mutation = {
6755
6757
  enableFeed?: Maybe<Feed>;
6756
6758
  /** Extracts data using tool calling, from contents resulting from the provided filter criteria. */
6757
6759
  extractContents?: Maybe<Array<Maybe<ExtractCompletion>>>;
6760
+ /** Format a conversation LLM user prompt. */
6761
+ formatConversation?: Maybe<PromptConversation>;
6758
6762
  /** Ingests a batch of content by URI. Supports files and webpages. */
6759
6763
  ingestBatch?: Maybe<Array<Maybe<Content>>>;
6760
6764
  /** Ingests a file from Base64-encoded data. */
@@ -6891,6 +6895,11 @@ export type MutationCloseCollectionArgs = {
6891
6895
  export type MutationCloseConversationArgs = {
6892
6896
  id: Scalars['ID']['input'];
6893
6897
  };
6898
+ export type MutationCompleteConversationArgs = {
6899
+ completion: Scalars['String']['input'];
6900
+ correlationId?: InputMaybe<Scalars['String']['input']>;
6901
+ id: Scalars['ID']['input'];
6902
+ };
6894
6903
  export type MutationContinueConversationArgs = {
6895
6904
  correlationId?: InputMaybe<Scalars['String']['input']>;
6896
6905
  id: Scalars['ID']['input'];
@@ -7339,6 +7348,12 @@ export type MutationExtractContentsArgs = {
7339
7348
  specification: EntityReferenceInput;
7340
7349
  tools: Array<ToolDefinitionInput>;
7341
7350
  };
7351
+ export type MutationFormatConversationArgs = {
7352
+ correlationId?: InputMaybe<Scalars['String']['input']>;
7353
+ id?: InputMaybe<Scalars['ID']['input']>;
7354
+ prompt: Scalars['String']['input'];
7355
+ specification?: InputMaybe<EntityReferenceInput>;
7356
+ };
7342
7357
  export type MutationIngestBatchArgs = {
7343
7358
  collections?: InputMaybe<Array<EntityReferenceInput>>;
7344
7359
  correlationId?: InputMaybe<Scalars['String']['input']>;
@@ -10562,6 +10577,10 @@ export type SharePointFolderResults = {
10562
10577
  export type SharePointFoldersInput = {
10563
10578
  /** SharePoint authentication type. */
10564
10579
  authenticationType: SharePointAuthenticationTypes;
10580
+ /** Microsoft Entra ID client identifier, when using user authentication type. */
10581
+ clientId?: InputMaybe<Scalars['String']['input']>;
10582
+ /** Microsoft Entra ID client secret, when using user authentication type. */
10583
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
10565
10584
  /** Microsoft Entra ID refresh token, when using user authentication type. */
10566
10585
  refreshToken?: InputMaybe<Scalars['String']['input']>;
10567
10586
  /** Microsoft Entra ID tenant identifier, when using application authentication type. */
@@ -10571,6 +10590,10 @@ export type SharePointFoldersInput = {
10571
10590
  export type SharePointLibrariesInput = {
10572
10591
  /** SharePoint authentication type. */
10573
10592
  authenticationType: SharePointAuthenticationTypes;
10593
+ /** Microsoft Entra ID client identifier, when using user authentication type. */
10594
+ clientId?: InputMaybe<Scalars['String']['input']>;
10595
+ /** Microsoft Entra ID client secret, when using user authentication type. */
10596
+ clientSecret?: InputMaybe<Scalars['String']['input']>;
10574
10597
  /** Microsoft Entra ID refresh token, when using user authentication type. */
10575
10598
  refreshToken?: InputMaybe<Scalars['String']['input']>;
10576
10599
  /** Microsoft Entra ID tenant identifier, when using application authentication type. */
@@ -11271,6 +11294,8 @@ export declare enum TextRoles {
11271
11294
  Heading4 = "HEADING4",
11272
11295
  /** Heading 5 */
11273
11296
  Heading5 = "HEADING5",
11297
+ /** Heading 6 */
11298
+ Heading6 = "HEADING6",
11274
11299
  /** List Item */
11275
11300
  ListItem = "LIST_ITEM",
11276
11301
  /** Page Footer */
@@ -13877,6 +13902,188 @@ export type CloseConversationMutation = {
13877
13902
  type?: ConversationTypes | null;
13878
13903
  } | null;
13879
13904
  };
13905
+ export type CompleteConversationMutationVariables = Exact<{
13906
+ completion: Scalars['String']['input'];
13907
+ id: Scalars['ID']['input'];
13908
+ correlationId?: InputMaybe<Scalars['String']['input']>;
13909
+ }>;
13910
+ export type CompleteConversationMutation = {
13911
+ __typename?: 'Mutation';
13912
+ completeConversation?: {
13913
+ __typename?: 'PromptConversation';
13914
+ messageCount?: number | null;
13915
+ conversation?: {
13916
+ __typename?: 'EntityReference';
13917
+ id: string;
13918
+ } | null;
13919
+ message?: {
13920
+ __typename?: 'ConversationMessage';
13921
+ role: ConversationRoleTypes;
13922
+ author?: string | null;
13923
+ message?: string | null;
13924
+ tokens?: number | null;
13925
+ throughput?: number | null;
13926
+ completionTime?: any | null;
13927
+ timestamp?: any | null;
13928
+ modelService?: ModelServiceTypes | null;
13929
+ model?: string | null;
13930
+ citations?: Array<{
13931
+ __typename?: 'ConversationCitation';
13932
+ index?: number | null;
13933
+ text: string;
13934
+ startTime?: any | null;
13935
+ endTime?: any | null;
13936
+ pageNumber?: number | null;
13937
+ frameNumber?: number | null;
13938
+ content?: {
13939
+ __typename?: 'Content';
13940
+ id: string;
13941
+ name: string;
13942
+ state: EntityState;
13943
+ originalDate?: any | null;
13944
+ identifier?: string | null;
13945
+ uri?: any | null;
13946
+ type?: ContentTypes | null;
13947
+ fileType?: FileTypes | null;
13948
+ mimeType?: string | null;
13949
+ format?: string | null;
13950
+ formatName?: string | null;
13951
+ fileExtension?: string | null;
13952
+ fileName?: string | null;
13953
+ fileSize?: any | null;
13954
+ masterUri?: any | null;
13955
+ imageUri?: any | null;
13956
+ textUri?: any | null;
13957
+ audioUri?: any | null;
13958
+ transcriptUri?: any | null;
13959
+ summary?: string | null;
13960
+ customSummary?: string | null;
13961
+ keywords?: Array<string> | null;
13962
+ bullets?: Array<string> | null;
13963
+ headlines?: Array<string> | null;
13964
+ posts?: Array<string> | null;
13965
+ chapters?: Array<string> | null;
13966
+ questions?: Array<string> | null;
13967
+ video?: {
13968
+ __typename?: 'VideoMetadata';
13969
+ width?: number | null;
13970
+ height?: number | null;
13971
+ duration?: any | null;
13972
+ make?: string | null;
13973
+ model?: string | null;
13974
+ software?: string | null;
13975
+ title?: string | null;
13976
+ description?: string | null;
13977
+ keywords?: Array<string | null> | null;
13978
+ author?: string | null;
13979
+ } | null;
13980
+ audio?: {
13981
+ __typename?: 'AudioMetadata';
13982
+ keywords?: Array<string | null> | null;
13983
+ author?: string | null;
13984
+ series?: string | null;
13985
+ episode?: string | null;
13986
+ episodeType?: string | null;
13987
+ season?: string | null;
13988
+ publisher?: string | null;
13989
+ copyright?: string | null;
13990
+ genre?: string | null;
13991
+ title?: string | null;
13992
+ description?: string | null;
13993
+ bitrate?: number | null;
13994
+ channels?: number | null;
13995
+ sampleRate?: number | null;
13996
+ bitsPerSample?: number | null;
13997
+ duration?: any | null;
13998
+ } | null;
13999
+ image?: {
14000
+ __typename?: 'ImageMetadata';
14001
+ width?: number | null;
14002
+ height?: number | null;
14003
+ resolutionX?: number | null;
14004
+ resolutionY?: number | null;
14005
+ bitsPerComponent?: number | null;
14006
+ components?: number | null;
14007
+ projectionType?: ImageProjectionTypes | null;
14008
+ orientation?: OrientationTypes | null;
14009
+ description?: string | null;
14010
+ make?: string | null;
14011
+ model?: string | null;
14012
+ software?: string | null;
14013
+ lens?: string | null;
14014
+ focalLength?: number | null;
14015
+ exposureTime?: string | null;
14016
+ fNumber?: string | null;
14017
+ iso?: string | null;
14018
+ heading?: number | null;
14019
+ pitch?: number | null;
14020
+ } | null;
14021
+ document?: {
14022
+ __typename?: 'DocumentMetadata';
14023
+ title?: string | null;
14024
+ subject?: string | null;
14025
+ summary?: string | null;
14026
+ author?: string | null;
14027
+ publisher?: string | null;
14028
+ description?: string | null;
14029
+ keywords?: Array<string | null> | null;
14030
+ pageCount?: number | null;
14031
+ worksheetCount?: number | null;
14032
+ slideCount?: number | null;
14033
+ wordCount?: number | null;
14034
+ lineCount?: number | null;
14035
+ paragraphCount?: number | null;
14036
+ isEncrypted?: boolean | null;
14037
+ hasDigitalSignature?: boolean | null;
14038
+ } | null;
14039
+ } | null;
14040
+ } | null> | null;
14041
+ toolCalls?: Array<{
14042
+ __typename?: 'ConversationToolCall';
14043
+ id: string;
14044
+ name: string;
14045
+ arguments: string;
14046
+ } | null> | null;
14047
+ } | null;
14048
+ facets?: Array<{
14049
+ __typename?: 'ContentFacet';
14050
+ type?: FacetValueTypes | null;
14051
+ value?: string | null;
14052
+ count?: any | null;
14053
+ facet?: ContentFacetTypes | null;
14054
+ range?: {
14055
+ __typename?: 'StringRange';
14056
+ from?: string | null;
14057
+ to?: string | null;
14058
+ } | null;
14059
+ observable?: {
14060
+ __typename?: 'ObservableFacet';
14061
+ type?: ObservableTypes | null;
14062
+ observable?: {
14063
+ __typename?: 'NamedEntityReference';
14064
+ id: string;
14065
+ name?: string | null;
14066
+ } | null;
14067
+ } | null;
14068
+ } | null> | null;
14069
+ graph?: {
14070
+ __typename?: 'Graph';
14071
+ nodes?: Array<{
14072
+ __typename?: 'GraphNode';
14073
+ id: string;
14074
+ name: string;
14075
+ type: EntityTypes;
14076
+ metadata?: string | null;
14077
+ } | null> | null;
14078
+ edges?: Array<{
14079
+ __typename?: 'GraphEdge';
14080
+ from: string;
14081
+ to: string;
14082
+ relation?: string | null;
14083
+ } | null> | null;
14084
+ } | null;
14085
+ } | null;
14086
+ };
13880
14087
  export type ContinueConversationMutationVariables = Exact<{
13881
14088
  id: Scalars['ID']['input'];
13882
14089
  responses: Array<ConversationToolResponseInput> | ConversationToolResponseInput;
@@ -14119,6 +14326,189 @@ export type DeleteConversationsMutation = {
14119
14326
  state: EntityState;
14120
14327
  } | null> | null;
14121
14328
  };
14329
+ export type FormatConversationMutationVariables = Exact<{
14330
+ prompt: Scalars['String']['input'];
14331
+ id?: InputMaybe<Scalars['ID']['input']>;
14332
+ specification?: InputMaybe<EntityReferenceInput>;
14333
+ correlationId?: InputMaybe<Scalars['String']['input']>;
14334
+ }>;
14335
+ export type FormatConversationMutation = {
14336
+ __typename?: 'Mutation';
14337
+ formatConversation?: {
14338
+ __typename?: 'PromptConversation';
14339
+ messageCount?: number | null;
14340
+ conversation?: {
14341
+ __typename?: 'EntityReference';
14342
+ id: string;
14343
+ } | null;
14344
+ message?: {
14345
+ __typename?: 'ConversationMessage';
14346
+ role: ConversationRoleTypes;
14347
+ author?: string | null;
14348
+ message?: string | null;
14349
+ tokens?: number | null;
14350
+ throughput?: number | null;
14351
+ completionTime?: any | null;
14352
+ timestamp?: any | null;
14353
+ modelService?: ModelServiceTypes | null;
14354
+ model?: string | null;
14355
+ citations?: Array<{
14356
+ __typename?: 'ConversationCitation';
14357
+ index?: number | null;
14358
+ text: string;
14359
+ startTime?: any | null;
14360
+ endTime?: any | null;
14361
+ pageNumber?: number | null;
14362
+ frameNumber?: number | null;
14363
+ content?: {
14364
+ __typename?: 'Content';
14365
+ id: string;
14366
+ name: string;
14367
+ state: EntityState;
14368
+ originalDate?: any | null;
14369
+ identifier?: string | null;
14370
+ uri?: any | null;
14371
+ type?: ContentTypes | null;
14372
+ fileType?: FileTypes | null;
14373
+ mimeType?: string | null;
14374
+ format?: string | null;
14375
+ formatName?: string | null;
14376
+ fileExtension?: string | null;
14377
+ fileName?: string | null;
14378
+ fileSize?: any | null;
14379
+ masterUri?: any | null;
14380
+ imageUri?: any | null;
14381
+ textUri?: any | null;
14382
+ audioUri?: any | null;
14383
+ transcriptUri?: any | null;
14384
+ summary?: string | null;
14385
+ customSummary?: string | null;
14386
+ keywords?: Array<string> | null;
14387
+ bullets?: Array<string> | null;
14388
+ headlines?: Array<string> | null;
14389
+ posts?: Array<string> | null;
14390
+ chapters?: Array<string> | null;
14391
+ questions?: Array<string> | null;
14392
+ video?: {
14393
+ __typename?: 'VideoMetadata';
14394
+ width?: number | null;
14395
+ height?: number | null;
14396
+ duration?: any | null;
14397
+ make?: string | null;
14398
+ model?: string | null;
14399
+ software?: string | null;
14400
+ title?: string | null;
14401
+ description?: string | null;
14402
+ keywords?: Array<string | null> | null;
14403
+ author?: string | null;
14404
+ } | null;
14405
+ audio?: {
14406
+ __typename?: 'AudioMetadata';
14407
+ keywords?: Array<string | null> | null;
14408
+ author?: string | null;
14409
+ series?: string | null;
14410
+ episode?: string | null;
14411
+ episodeType?: string | null;
14412
+ season?: string | null;
14413
+ publisher?: string | null;
14414
+ copyright?: string | null;
14415
+ genre?: string | null;
14416
+ title?: string | null;
14417
+ description?: string | null;
14418
+ bitrate?: number | null;
14419
+ channels?: number | null;
14420
+ sampleRate?: number | null;
14421
+ bitsPerSample?: number | null;
14422
+ duration?: any | null;
14423
+ } | null;
14424
+ image?: {
14425
+ __typename?: 'ImageMetadata';
14426
+ width?: number | null;
14427
+ height?: number | null;
14428
+ resolutionX?: number | null;
14429
+ resolutionY?: number | null;
14430
+ bitsPerComponent?: number | null;
14431
+ components?: number | null;
14432
+ projectionType?: ImageProjectionTypes | null;
14433
+ orientation?: OrientationTypes | null;
14434
+ description?: string | null;
14435
+ make?: string | null;
14436
+ model?: string | null;
14437
+ software?: string | null;
14438
+ lens?: string | null;
14439
+ focalLength?: number | null;
14440
+ exposureTime?: string | null;
14441
+ fNumber?: string | null;
14442
+ iso?: string | null;
14443
+ heading?: number | null;
14444
+ pitch?: number | null;
14445
+ } | null;
14446
+ document?: {
14447
+ __typename?: 'DocumentMetadata';
14448
+ title?: string | null;
14449
+ subject?: string | null;
14450
+ summary?: string | null;
14451
+ author?: string | null;
14452
+ publisher?: string | null;
14453
+ description?: string | null;
14454
+ keywords?: Array<string | null> | null;
14455
+ pageCount?: number | null;
14456
+ worksheetCount?: number | null;
14457
+ slideCount?: number | null;
14458
+ wordCount?: number | null;
14459
+ lineCount?: number | null;
14460
+ paragraphCount?: number | null;
14461
+ isEncrypted?: boolean | null;
14462
+ hasDigitalSignature?: boolean | null;
14463
+ } | null;
14464
+ } | null;
14465
+ } | null> | null;
14466
+ toolCalls?: Array<{
14467
+ __typename?: 'ConversationToolCall';
14468
+ id: string;
14469
+ name: string;
14470
+ arguments: string;
14471
+ } | null> | null;
14472
+ } | null;
14473
+ facets?: Array<{
14474
+ __typename?: 'ContentFacet';
14475
+ type?: FacetValueTypes | null;
14476
+ value?: string | null;
14477
+ count?: any | null;
14478
+ facet?: ContentFacetTypes | null;
14479
+ range?: {
14480
+ __typename?: 'StringRange';
14481
+ from?: string | null;
14482
+ to?: string | null;
14483
+ } | null;
14484
+ observable?: {
14485
+ __typename?: 'ObservableFacet';
14486
+ type?: ObservableTypes | null;
14487
+ observable?: {
14488
+ __typename?: 'NamedEntityReference';
14489
+ id: string;
14490
+ name?: string | null;
14491
+ } | null;
14492
+ } | null;
14493
+ } | null> | null;
14494
+ graph?: {
14495
+ __typename?: 'Graph';
14496
+ nodes?: Array<{
14497
+ __typename?: 'GraphNode';
14498
+ id: string;
14499
+ name: string;
14500
+ type: EntityTypes;
14501
+ metadata?: string | null;
14502
+ } | null> | null;
14503
+ edges?: Array<{
14504
+ __typename?: 'GraphEdge';
14505
+ from: string;
14506
+ to: string;
14507
+ relation?: string | null;
14508
+ } | null> | null;
14509
+ } | null;
14510
+ } | null;
14511
+ };
14122
14512
  export type GetConversationQueryVariables = Exact<{
14123
14513
  id: Scalars['ID']['input'];
14124
14514
  }>;
@@ -1552,6 +1552,8 @@ var TextRoles;
1552
1552
  TextRoles["Heading4"] = "HEADING4";
1553
1553
  /** Heading 5 */
1554
1554
  TextRoles["Heading5"] = "HEADING5";
1555
+ /** Heading 6 */
1556
+ TextRoles["Heading6"] = "HEADING6";
1555
1557
  /** List Item */
1556
1558
  TextRoles["ListItem"] = "LIST_ITEM";
1557
1559
  /** Page Footer */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20241124001",
3
+ "version": "1.0.20241201001",
4
4
  "description": "Graphlit API TypeScript Client",
5
5
  "main": "dist/client.js",
6
6
  "types": "dist/client.d.ts",