graphlit-client 1.0.20260415001 → 1.0.20260415002

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
@@ -841,6 +841,23 @@ declare class Graphlit {
841
841
  * @returns The summarized contents.
842
842
  */
843
843
  summarizeContents(summarizations: Types.SummarizationStrategyInput[], filter?: Types.ContentFilter, correlationId?: string): Promise<Types.SummarizeContentsMutation>;
844
+ /**
845
+ * Classifies text using the specified classification connector.
846
+ * @param text - The text to classify.
847
+ * @param classification - The classification connector to use.
848
+ * @param textType - The type of text (plain, markdown, HTML), optional.
849
+ * @param correlationId - The tenant correlation identifier, optional.
850
+ * @returns The classification labels.
851
+ */
852
+ classifyText(text: string, classification: Types.ContentClassificationConnectorInput, textType?: Types.TextTypes, correlationId?: string): Promise<Types.ClassifyTextMutation>;
853
+ /**
854
+ * Classifies contents using the specified classification connector.
855
+ * @param classification - The classification connector to use.
856
+ * @param filter - The filter criteria to apply when retrieving contents.
857
+ * @param correlationId - The tenant correlation identifier, optional.
858
+ * @returns The classification results.
859
+ */
860
+ classifyContents(classification: Types.ContentClassificationConnectorInput, filter?: Types.ContentFilter, correlationId?: string): Promise<Types.ClassifyContentsMutation>;
844
861
  /**
845
862
  * Extracts structured data from text using tool definitions.
846
863
  * @param prompt - The prompt to guide extraction.
package/dist/client.js CHANGED
@@ -1628,6 +1628,36 @@ class Graphlit {
1628
1628
  correlationId: correlationId,
1629
1629
  });
1630
1630
  }
1631
+ /**
1632
+ * Classifies text using the specified classification connector.
1633
+ * @param text - The text to classify.
1634
+ * @param classification - The classification connector to use.
1635
+ * @param textType - The type of text (plain, markdown, HTML), optional.
1636
+ * @param correlationId - The tenant correlation identifier, optional.
1637
+ * @returns The classification labels.
1638
+ */
1639
+ async classifyText(text, classification, textType, correlationId) {
1640
+ return this.mutateAndCheckError(Documents.ClassifyText, {
1641
+ text: text,
1642
+ textType: textType,
1643
+ classification: classification,
1644
+ correlationId: correlationId,
1645
+ });
1646
+ }
1647
+ /**
1648
+ * Classifies contents using the specified classification connector.
1649
+ * @param classification - The classification connector to use.
1650
+ * @param filter - The filter criteria to apply when retrieving contents.
1651
+ * @param correlationId - The tenant correlation identifier, optional.
1652
+ * @returns The classification results.
1653
+ */
1654
+ async classifyContents(classification, filter, correlationId) {
1655
+ return this.mutateAndCheckError(Documents.ClassifyContents, {
1656
+ classification: classification,
1657
+ filter: filter,
1658
+ correlationId: correlationId,
1659
+ });
1660
+ }
1631
1661
  /**
1632
1662
  * Extracts structured data from text using tool definitions.
1633
1663
  * @param prompt - The prompt to guide extraction.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260415001",
3
+ "version": "1.0.20260415002",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",