graphlit-client 1.0.20251103005 → 1.0.20251112002

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Unstruk Data Inc.
3
+ Copyright (c) 2025 Unstruk Data Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -172,6 +172,7 @@ The deprecated `@google/generative-ai` SDK has been replaced with the new `@goog
172
172
  ### Migration Steps
173
173
 
174
174
  1. **Update your dependencies:**
175
+
175
176
  ```bash
176
177
  # Remove old SDK
177
178
  npm uninstall @google/generative-ai
@@ -181,6 +182,7 @@ npm install @google/genai
181
182
  ```
182
183
 
183
184
  2. **Update your client initialization:**
185
+
184
186
  ```typescript
185
187
  // Old (deprecated)
186
188
  import { GoogleGenerativeAI } from "@google/generative-ai";
package/dist/client.d.ts CHANGED
@@ -158,6 +158,7 @@ declare class Graphlit {
158
158
  extractContents(prompt: string, tools: Types.ToolDefinitionInput[], specification?: Types.EntityReferenceInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ExtractContentsMutation>;
159
159
  publishContents(publishPrompt: string, connector: Types.ContentPublishingConnectorInput, summaryPrompt?: string, summarySpecification?: Types.EntityReferenceInput, publishSpecification?: Types.EntityReferenceInput, name?: string, filter?: Types.ContentFilter, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, includeDetails?: boolean, correlationId?: string): Promise<Types.PublishContentsMutation>;
160
160
  publishText(text: string, textType: Types.TextTypes, connector: Types.ContentPublishingConnectorInput, name?: string, workflow?: Types.EntityReferenceInput, isSynchronous?: boolean, correlationId?: string): Promise<Types.PublishTextMutation>;
161
+ researchContents(connector: Types.ContentPublishingConnectorInput, filter?: Types.ContentFilter, name?: string, summarySpecification?: Types.EntityReferenceInput, publishSpecification?: Types.EntityReferenceInput, workflow?: Types.EntityReferenceInput, correlationId?: string): Promise<Types.ResearchContentsMutation>;
161
162
  getContent(id: string): Promise<Types.GetContentQuery>;
162
163
  lookupContents(ids: string[]): Promise<Types.LookupContentsResults>;
163
164
  queryObservables(filter?: Types.ContentFilter): Promise<Types.QueryObservablesQuery>;
@@ -414,6 +415,16 @@ declare class Graphlit {
414
415
  createObservation(observation: Types.ObservationInput): Promise<Types.CreateObservationMutation>;
415
416
  updateObservation(observation: Types.ObservationUpdateInput): Promise<Types.UpdateObservationMutation>;
416
417
  deleteObservation(id: string): Promise<Types.DeleteObservationMutation>;
418
+ createInvestment(investment: Types.InvestmentInput): Promise<Types.CreateInvestmentMutation>;
419
+ updateInvestment(investment: Types.InvestmentUpdateInput): Promise<Types.UpdateInvestmentMutation>;
420
+ deleteInvestment(id: string): Promise<Types.DeleteInvestmentMutation>;
421
+ deleteInvestments(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteInvestmentsMutation>;
422
+ deleteAllInvestments(filter?: Types.InvestmentFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllInvestmentsMutation>;
423
+ createInvestmentFund(investmentFund: Types.InvestmentFundInput): Promise<Types.CreateInvestmentFundMutation>;
424
+ updateInvestmentFund(investmentFund: Types.InvestmentFundUpdateInput): Promise<Types.UpdateInvestmentFundMutation>;
425
+ deleteInvestmentFund(id: string): Promise<Types.DeleteInvestmentFundMutation>;
426
+ deleteInvestmentFunds(ids: string[], isSynchronous?: boolean): Promise<Types.DeleteInvestmentFundsMutation>;
427
+ deleteAllInvestmentFunds(filter?: Types.InvestmentFundFilter, isSynchronous?: boolean, correlationId?: string): Promise<Types.DeleteAllInvestmentFundsMutation>;
417
428
  /**
418
429
  * Creates an event handler that supports UI streaming mode
419
430
  * @internal
package/dist/client.js CHANGED
@@ -730,6 +730,17 @@ class Graphlit {
730
730
  correlationId: correlationId,
731
731
  });
732
732
  }
733
+ async researchContents(connector, filter, name, summarySpecification, publishSpecification, workflow, correlationId) {
734
+ return this.mutateAndCheckError(Documents.ResearchContents, {
735
+ connector: connector,
736
+ filter: filter,
737
+ name: name,
738
+ summarySpecification: summarySpecification,
739
+ publishSpecification: publishSpecification,
740
+ workflow: workflow,
741
+ correlationId: correlationId,
742
+ });
743
+ }
733
744
  async getContent(id) {
734
745
  return this.queryAndCheckError(Documents.GetContent, { id: id });
735
746
  }
@@ -1169,10 +1180,7 @@ class Graphlit {
1169
1180
  public async connectorExists(
1170
1181
  filter?: Types.ConnectorFilter
1171
1182
  ): Promise<Types.ConnectorExistsQuery> {
1172
- return this.queryAndCheckError<
1173
- Types.QueryConnectorsQuery,
1174
- { filter?: Types.ConnectorFilter }
1175
- >(Documents.ConnectorExists, { filter: filter });
1183
+ return this.queryAndCheckError<Types.QueryConnectorsQuery, Types.QueryConnectorsQueryVariables>(Documents.ConnectorExists, { filter: filter });
1176
1184
  }
1177
1185
  */
1178
1186
  async createView(view) {
@@ -1505,10 +1513,10 @@ class Graphlit {
1505
1513
  return this.queryAndCheckError(Documents.QuerySoftwares, { filter: filter });
1506
1514
  }
1507
1515
  async createMedicalCondition(MedicalCondition) {
1508
- return this.mutateAndCheckError(Documents.CreateMedicalCondition, { MedicalCondition: MedicalCondition });
1516
+ return this.mutateAndCheckError(Documents.CreateMedicalCondition, { medicalCondition: MedicalCondition });
1509
1517
  }
1510
1518
  async updateMedicalCondition(MedicalCondition) {
1511
- return this.mutateAndCheckError(Documents.UpdateMedicalCondition, { MedicalCondition: MedicalCondition });
1519
+ return this.mutateAndCheckError(Documents.UpdateMedicalCondition, { medicalCondition: MedicalCondition });
1512
1520
  }
1513
1521
  async deleteMedicalCondition(id) {
1514
1522
  return this.mutateAndCheckError(Documents.DeleteMedicalCondition, { id: id });
@@ -1533,10 +1541,10 @@ class Graphlit {
1533
1541
  return this.queryAndCheckError(Documents.QueryMedicalConditions, { filter: filter });
1534
1542
  }
1535
1543
  async createMedicalGuideline(MedicalGuideline) {
1536
- return this.mutateAndCheckError(Documents.CreateMedicalGuideline, { MedicalGuideline: MedicalGuideline });
1544
+ return this.mutateAndCheckError(Documents.CreateMedicalGuideline, { medicalGuideline: MedicalGuideline });
1537
1545
  }
1538
1546
  async updateMedicalGuideline(MedicalGuideline) {
1539
- return this.mutateAndCheckError(Documents.UpdateMedicalGuideline, { MedicalGuideline: MedicalGuideline });
1547
+ return this.mutateAndCheckError(Documents.UpdateMedicalGuideline, { medicalGuideline: MedicalGuideline });
1540
1548
  }
1541
1549
  async deleteMedicalGuideline(id) {
1542
1550
  return this.mutateAndCheckError(Documents.DeleteMedicalGuideline, { id: id });
@@ -1561,10 +1569,10 @@ class Graphlit {
1561
1569
  return this.queryAndCheckError(Documents.QueryMedicalGuidelines, { filter: filter });
1562
1570
  }
1563
1571
  async createMedicalDrug(MedicalDrug) {
1564
- return this.mutateAndCheckError(Documents.CreateMedicalDrug, { MedicalDrug: MedicalDrug });
1572
+ return this.mutateAndCheckError(Documents.CreateMedicalDrug, { medicalDrug: MedicalDrug });
1565
1573
  }
1566
1574
  async updateMedicalDrug(MedicalDrug) {
1567
- return this.mutateAndCheckError(Documents.UpdateMedicalDrug, { MedicalDrug: MedicalDrug });
1575
+ return this.mutateAndCheckError(Documents.UpdateMedicalDrug, { medicalDrug: MedicalDrug });
1568
1576
  }
1569
1577
  async deleteMedicalDrug(id) {
1570
1578
  return this.mutateAndCheckError(Documents.DeleteMedicalDrug, { id: id });
@@ -1587,12 +1595,12 @@ class Graphlit {
1587
1595
  }
1588
1596
  async createMedicalIndication(MedicalIndication) {
1589
1597
  return this.mutateAndCheckError(Documents.CreateMedicalIndication, {
1590
- MedicalIndication: MedicalIndication,
1598
+ medicalIndication: MedicalIndication,
1591
1599
  });
1592
1600
  }
1593
1601
  async updateMedicalIndication(MedicalIndication) {
1594
1602
  return this.mutateAndCheckError(Documents.UpdateMedicalIndication, {
1595
- MedicalIndication: MedicalIndication,
1603
+ medicalIndication: MedicalIndication,
1596
1604
  });
1597
1605
  }
1598
1606
  async deleteMedicalIndication(id) {
@@ -1619,12 +1627,12 @@ class Graphlit {
1619
1627
  }
1620
1628
  async createMedicalContraindication(MedicalContraindication) {
1621
1629
  return this.mutateAndCheckError(Documents.CreateMedicalContraindication, {
1622
- MedicalContraindication: MedicalContraindication,
1630
+ medicalContraindication: MedicalContraindication,
1623
1631
  });
1624
1632
  }
1625
1633
  async updateMedicalContraindication(MedicalContraindication) {
1626
1634
  return this.mutateAndCheckError(Documents.UpdateMedicalContraindication, {
1627
- MedicalContraindication: MedicalContraindication,
1635
+ medicalContraindication: MedicalContraindication,
1628
1636
  });
1629
1637
  }
1630
1638
  async deleteMedicalContraindication(id) {
@@ -1650,10 +1658,10 @@ class Graphlit {
1650
1658
  return this.queryAndCheckError(Documents.QueryMedicalContraindications, { filter: filter });
1651
1659
  }
1652
1660
  async createMedicalTest(MedicalTest) {
1653
- return this.mutateAndCheckError(Documents.CreateMedicalTest, { MedicalTest: MedicalTest });
1661
+ return this.mutateAndCheckError(Documents.CreateMedicalTest, { medicalTest: MedicalTest });
1654
1662
  }
1655
1663
  async updateMedicalTest(MedicalTest) {
1656
- return this.mutateAndCheckError(Documents.UpdateMedicalTest, { MedicalTest: MedicalTest });
1664
+ return this.mutateAndCheckError(Documents.UpdateMedicalTest, { medicalTest: MedicalTest });
1657
1665
  }
1658
1666
  async deleteMedicalTest(id) {
1659
1667
  return this.mutateAndCheckError(Documents.DeleteMedicalTest, { id: id });
@@ -1675,10 +1683,10 @@ class Graphlit {
1675
1683
  return this.queryAndCheckError(Documents.QueryMedicalTests, { filter: filter });
1676
1684
  }
1677
1685
  async createMedicalDevice(MedicalDevice) {
1678
- return this.mutateAndCheckError(Documents.CreateMedicalDevice, { MedicalDevice: MedicalDevice });
1686
+ return this.mutateAndCheckError(Documents.CreateMedicalDevice, { medicalDevice: MedicalDevice });
1679
1687
  }
1680
1688
  async updateMedicalDevice(MedicalDevice) {
1681
- return this.mutateAndCheckError(Documents.UpdateMedicalDevice, { MedicalDevice: MedicalDevice });
1689
+ return this.mutateAndCheckError(Documents.UpdateMedicalDevice, { medicalDevice: MedicalDevice });
1682
1690
  }
1683
1691
  async deleteMedicalDevice(id) {
1684
1692
  return this.mutateAndCheckError(Documents.DeleteMedicalDevice, { id: id });
@@ -1703,10 +1711,10 @@ class Graphlit {
1703
1711
  return this.queryAndCheckError(Documents.QueryMedicalDevices, { filter: filter });
1704
1712
  }
1705
1713
  async createMedicalProcedure(MedicalProcedure) {
1706
- return this.mutateAndCheckError(Documents.CreateMedicalProcedure, { MedicalProcedure: MedicalProcedure });
1714
+ return this.mutateAndCheckError(Documents.CreateMedicalProcedure, { medicalProcedure: MedicalProcedure });
1707
1715
  }
1708
1716
  async updateMedicalProcedure(MedicalProcedure) {
1709
- return this.mutateAndCheckError(Documents.UpdateMedicalProcedure, { MedicalProcedure: MedicalProcedure });
1717
+ return this.mutateAndCheckError(Documents.UpdateMedicalProcedure, { medicalProcedure: MedicalProcedure });
1710
1718
  }
1711
1719
  async deleteMedicalProcedure(id) {
1712
1720
  return this.mutateAndCheckError(Documents.DeleteMedicalProcedure, { id: id });
@@ -1731,10 +1739,10 @@ class Graphlit {
1731
1739
  return this.queryAndCheckError(Documents.QueryMedicalProcedures, { filter: filter });
1732
1740
  }
1733
1741
  async createMedicalStudy(MedicalStudy) {
1734
- return this.mutateAndCheckError(Documents.CreateMedicalStudy, { MedicalStudy: MedicalStudy });
1742
+ return this.mutateAndCheckError(Documents.CreateMedicalStudy, { medicalStudy: MedicalStudy });
1735
1743
  }
1736
1744
  async updateMedicalStudy(MedicalStudy) {
1737
- return this.mutateAndCheckError(Documents.UpdateMedicalStudy, { MedicalStudy: MedicalStudy });
1745
+ return this.mutateAndCheckError(Documents.UpdateMedicalStudy, { medicalStudy: MedicalStudy });
1738
1746
  }
1739
1747
  async deleteMedicalStudy(id) {
1740
1748
  return this.mutateAndCheckError(Documents.DeleteMedicalStudy, { id: id });
@@ -1759,10 +1767,10 @@ class Graphlit {
1759
1767
  return this.queryAndCheckError(Documents.QueryMedicalStudies, { filter: filter });
1760
1768
  }
1761
1769
  async createMedicalDrugClass(MedicalDrugClass) {
1762
- return this.mutateAndCheckError(Documents.CreateMedicalDrugClass, { MedicalDrugClass: MedicalDrugClass });
1770
+ return this.mutateAndCheckError(Documents.CreateMedicalDrugClass, { medicalDrugClass: MedicalDrugClass });
1763
1771
  }
1764
1772
  async updateMedicalDrugClass(MedicalDrugClass) {
1765
- return this.mutateAndCheckError(Documents.UpdateMedicalDrugClass, { MedicalDrugClass: MedicalDrugClass });
1773
+ return this.mutateAndCheckError(Documents.UpdateMedicalDrugClass, { medicalDrugClass: MedicalDrugClass });
1766
1774
  }
1767
1775
  async deleteMedicalDrugClass(id) {
1768
1776
  return this.mutateAndCheckError(Documents.DeleteMedicalDrugClass, { id: id });
@@ -1787,10 +1795,10 @@ class Graphlit {
1787
1795
  return this.queryAndCheckError(Documents.QueryMedicalDrugClasses, { filter: filter });
1788
1796
  }
1789
1797
  async createMedicalTherapy(MedicalTherapy) {
1790
- return this.mutateAndCheckError(Documents.CreateMedicalTherapy, { MedicalTherapy: MedicalTherapy });
1798
+ return this.mutateAndCheckError(Documents.CreateMedicalTherapy, { medicalTherapy: MedicalTherapy });
1791
1799
  }
1792
1800
  async updateMedicalTherapy(MedicalTherapy) {
1793
- return this.mutateAndCheckError(Documents.UpdateMedicalTherapy, { MedicalTherapy: MedicalTherapy });
1801
+ return this.mutateAndCheckError(Documents.UpdateMedicalTherapy, { medicalTherapy: MedicalTherapy });
1794
1802
  }
1795
1803
  async deleteMedicalTherapy(id) {
1796
1804
  return this.mutateAndCheckError(Documents.DeleteMedicalTherapy, { id: id });
@@ -1823,6 +1831,50 @@ class Graphlit {
1823
1831
  async deleteObservation(id) {
1824
1832
  return this.mutateAndCheckError(Documents.DeleteObservation, { id: id });
1825
1833
  }
1834
+ async createInvestment(investment) {
1835
+ return this.mutateAndCheckError(Documents.CreateInvestment, { investment: investment });
1836
+ }
1837
+ async updateInvestment(investment) {
1838
+ return this.mutateAndCheckError(Documents.UpdateInvestment, { investment: investment });
1839
+ }
1840
+ async deleteInvestment(id) {
1841
+ return this.mutateAndCheckError(Documents.DeleteInvestment, { id: id });
1842
+ }
1843
+ async deleteInvestments(ids, isSynchronous) {
1844
+ return this.mutateAndCheckError(Documents.DeleteInvestments, {
1845
+ ids: ids,
1846
+ isSynchronous: isSynchronous,
1847
+ });
1848
+ }
1849
+ async deleteAllInvestments(filter, isSynchronous, correlationId) {
1850
+ return this.mutateAndCheckError(Documents.DeleteAllInvestments, {
1851
+ filter: filter,
1852
+ isSynchronous: isSynchronous,
1853
+ correlationId: correlationId,
1854
+ });
1855
+ }
1856
+ async createInvestmentFund(investmentFund) {
1857
+ return this.mutateAndCheckError(Documents.CreateInvestmentFund, { investmentFund: investmentFund });
1858
+ }
1859
+ async updateInvestmentFund(investmentFund) {
1860
+ return this.mutateAndCheckError(Documents.UpdateInvestmentFund, { investmentFund: investmentFund });
1861
+ }
1862
+ async deleteInvestmentFund(id) {
1863
+ return this.mutateAndCheckError(Documents.DeleteInvestmentFund, { id: id });
1864
+ }
1865
+ async deleteInvestmentFunds(ids, isSynchronous) {
1866
+ return this.mutateAndCheckError(Documents.DeleteInvestmentFunds, {
1867
+ ids: ids,
1868
+ isSynchronous: isSynchronous,
1869
+ });
1870
+ }
1871
+ async deleteAllInvestmentFunds(filter, isSynchronous, correlationId) {
1872
+ return this.mutateAndCheckError(Documents.DeleteAllInvestmentFunds, {
1873
+ filter: filter,
1874
+ isSynchronous: isSynchronous,
1875
+ correlationId: correlationId,
1876
+ });
1877
+ }
1826
1878
  /**
1827
1879
  * Creates an event handler that supports UI streaming mode
1828
1880
  * @internal
@@ -1854,7 +1906,7 @@ class Graphlit {
1854
1906
  case Types.ModelServiceTypes.Anthropic:
1855
1907
  return Anthropic !== undefined || this.anthropicClient !== undefined;
1856
1908
  case Types.ModelServiceTypes.Google:
1857
- return (GoogleGenAI !== undefined || this.googleClient !== undefined);
1909
+ return GoogleGenAI !== undefined || this.googleClient !== undefined;
1858
1910
  case Types.ModelServiceTypes.Groq:
1859
1911
  return Groq !== undefined || this.groqClient !== undefined;
1860
1912
  case Types.ModelServiceTypes.Cerebras:
@@ -58,7 +58,9 @@ export declare const QueryContents: import("graphql").DocumentNode;
58
58
  export declare const QueryContentsFacets: import("graphql").DocumentNode;
59
59
  export declare const QueryContentsGraph: import("graphql").DocumentNode;
60
60
  export declare const QueryContentsObservations: import("graphql").DocumentNode;
61
+ export declare const QueryGraph: import("graphql").DocumentNode;
61
62
  export declare const QueryObservables: import("graphql").DocumentNode;
63
+ export declare const ResearchContents: import("graphql").DocumentNode;
62
64
  export declare const ScreenshotPage: import("graphql").DocumentNode;
63
65
  export declare const SummarizeContents: import("graphql").DocumentNode;
64
66
  export declare const SummarizeText: import("graphql").DocumentNode;
@@ -127,6 +129,22 @@ export declare const QuerySharePointLibraries: import("graphql").DocumentNode;
127
129
  export declare const QuerySlackChannels: import("graphql").DocumentNode;
128
130
  export declare const TriggerFeed: import("graphql").DocumentNode;
129
131
  export declare const UpdateFeed: import("graphql").DocumentNode;
132
+ export declare const CountInvestments: import("graphql").DocumentNode;
133
+ export declare const CreateInvestment: import("graphql").DocumentNode;
134
+ export declare const DeleteAllInvestments: import("graphql").DocumentNode;
135
+ export declare const DeleteInvestment: import("graphql").DocumentNode;
136
+ export declare const DeleteInvestments: import("graphql").DocumentNode;
137
+ export declare const GetInvestment: import("graphql").DocumentNode;
138
+ export declare const QueryInvestments: import("graphql").DocumentNode;
139
+ export declare const UpdateInvestment: import("graphql").DocumentNode;
140
+ export declare const CountInvestmentFunds: import("graphql").DocumentNode;
141
+ export declare const CreateInvestmentFund: import("graphql").DocumentNode;
142
+ export declare const DeleteAllInvestmentFunds: import("graphql").DocumentNode;
143
+ export declare const DeleteInvestmentFund: import("graphql").DocumentNode;
144
+ export declare const DeleteInvestmentFunds: import("graphql").DocumentNode;
145
+ export declare const GetInvestmentFund: import("graphql").DocumentNode;
146
+ export declare const QueryInvestmentFunds: import("graphql").DocumentNode;
147
+ export declare const UpdateInvestmentFund: import("graphql").DocumentNode;
130
148
  export declare const CountLabels: import("graphql").DocumentNode;
131
149
  export declare const CreateLabel: import("graphql").DocumentNode;
132
150
  export declare const DeleteAllLabels: import("graphql").DocumentNode;