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.
@@ -94,6 +94,10 @@ export var AssemblyAiModels;
94
94
  /** Nano */
95
95
  AssemblyAiModels["Nano"] = "NANO";
96
96
  })(AssemblyAiModels || (AssemblyAiModels = {}));
97
+ export var AttioAuthenticationTypes;
98
+ (function (AttioAuthenticationTypes) {
99
+ AttioAuthenticationTypes["ApiKey"] = "API_KEY";
100
+ })(AttioAuthenticationTypes || (AttioAuthenticationTypes = {}));
97
101
  /** Authentication service type */
98
102
  export var AuthenticationServiceTypes;
99
103
  (function (AuthenticationServiceTypes) {
@@ -462,6 +466,8 @@ export var ContentPublishingServiceTypes;
462
466
  ContentPublishingServiceTypes["OpenAiImage"] = "OPEN_AI_IMAGE";
463
467
  /** OpenAI Video publishing */
464
468
  ContentPublishingServiceTypes["OpenAiVideo"] = "OPEN_AI_VIDEO";
469
+ /** Parallel research publishing */
470
+ ContentPublishingServiceTypes["ParallelResearch"] = "PARALLEL_RESEARCH";
465
471
  /** Text publishing */
466
472
  ContentPublishingServiceTypes["Text"] = "TEXT";
467
473
  })(ContentPublishingServiceTypes || (ContentPublishingServiceTypes = {}));
@@ -666,6 +672,8 @@ export var EntityEnrichmentServiceTypes;
666
672
  EntityEnrichmentServiceTypes["Diffbot"] = "DIFFBOT";
667
673
  /** FHIR */
668
674
  EntityEnrichmentServiceTypes["Fhir"] = "FHIR";
675
+ /** Parallel */
676
+ EntityEnrichmentServiceTypes["Parallel"] = "PARALLEL";
669
677
  /** Wikipedia */
670
678
  EntityEnrichmentServiceTypes["Wikipedia"] = "WIKIPEDIA";
671
679
  })(EntityEnrichmentServiceTypes || (EntityEnrichmentServiceTypes = {}));
@@ -763,6 +771,10 @@ export var EntityTypes;
763
771
  EntityTypes["Event"] = "EVENT";
764
772
  /** Feed */
765
773
  EntityTypes["Feed"] = "FEED";
774
+ /** Investment */
775
+ EntityTypes["Investment"] = "INVESTMENT";
776
+ /** Investment fund */
777
+ EntityTypes["InvestmentFund"] = "INVESTMENT_FUND";
766
778
  /** Job */
767
779
  EntityTypes["Job"] = "JOB";
768
780
  /** Label */
@@ -851,6 +863,8 @@ export var FeedConnectorTypes;
851
863
  FeedConnectorTypes["Amazon"] = "AMAZON";
852
864
  /** Atlassian feed connector */
853
865
  FeedConnectorTypes["Atlassian"] = "ATLASSIAN";
866
+ /** Attio feed connector */
867
+ FeedConnectorTypes["Attio"] = "ATTIO";
854
868
  /** Microsoft Azure feed connector */
855
869
  FeedConnectorTypes["Azure"] = "AZURE";
856
870
  /** Box feed connector */
@@ -877,6 +891,8 @@ export var FeedConnectorTypes;
877
891
  FeedConnectorTypes["MicrosoftEmail"] = "MICROSOFT_EMAIL";
878
892
  /** Microsoft OneDrive feed connector */
879
893
  FeedConnectorTypes["OneDrive"] = "ONE_DRIVE";
894
+ /** Parallel feed connector */
895
+ FeedConnectorTypes["Parallel"] = "PARALLEL";
880
896
  /** Microsoft SharePoint feed connector */
881
897
  FeedConnectorTypes["SharePoint"] = "SHARE_POINT";
882
898
  /** Zendesk feed connector */
@@ -895,6 +911,12 @@ export var FeedServiceTypes;
895
911
  (function (FeedServiceTypes) {
896
912
  /** Atlassian Jira feed service */
897
913
  FeedServiceTypes["AtlassianJira"] = "ATLASSIAN_JIRA";
914
+ /** Attio Notes feed service */
915
+ FeedServiceTypes["AttioNotes"] = "ATTIO_NOTES";
916
+ /** Attio Objects feed service */
917
+ FeedServiceTypes["AttioObjects"] = "ATTIO_OBJECTS";
918
+ /** Attio Tasks feed service */
919
+ FeedServiceTypes["AttioTasks"] = "ATTIO_TASKS";
898
920
  /** Azure Blob feed service */
899
921
  FeedServiceTypes["AzureBlob"] = "AZURE_BLOB";
900
922
  /** Azure File feed service */
@@ -931,6 +953,8 @@ export var FeedServiceTypes;
931
953
  FeedServiceTypes["MicrosoftEmail"] = "MICROSOFT_EMAIL";
932
954
  /** Microsoft OneDrive feed service */
933
955
  FeedServiceTypes["OneDrive"] = "ONE_DRIVE";
956
+ /** Parallel feed service */
957
+ FeedServiceTypes["Parallel"] = "PARALLEL";
934
958
  /** AWS S3 Blob feed service */
935
959
  FeedServiceTypes["S3Blob"] = "S3_BLOB";
936
960
  /** Microsoft SharePoint feed service */
@@ -953,14 +977,20 @@ export var FeedSyncMode;
953
977
  /** Feed type */
954
978
  export var FeedTypes;
955
979
  (function (FeedTypes) {
980
+ /** Attio feed */
981
+ FeedTypes["Attio"] = "ATTIO";
956
982
  /** Calendar feed */
957
983
  FeedTypes["Calendar"] = "CALENDAR";
958
984
  /** Commit feed */
959
985
  FeedTypes["Commit"] = "COMMIT";
986
+ /** CRM feed */
987
+ FeedTypes["Crm"] = "CRM";
960
988
  /** Discord channel feed */
961
989
  FeedTypes["Discord"] = "DISCORD";
962
990
  /** Email feed */
963
991
  FeedTypes["Email"] = "EMAIL";
992
+ /** Entity discovery feed */
993
+ FeedTypes["Entity"] = "ENTITY";
964
994
  /** Intercom articles feed */
965
995
  FeedTypes["Intercom"] = "INTERCOM";
966
996
  /** Issue feed */
@@ -973,6 +1003,8 @@ export var FeedTypes;
973
1003
  FeedTypes["PullRequest"] = "PULL_REQUEST";
974
1004
  /** Reddit feed */
975
1005
  FeedTypes["Reddit"] = "REDDIT";
1006
+ /** Research feed */
1007
+ FeedTypes["Research"] = "RESEARCH";
976
1008
  /** RSS feed */
977
1009
  FeedTypes["Rss"] = "RSS";
978
1010
  /** Web Search feed */
@@ -1304,6 +1336,18 @@ export var IntegrationServiceTypes;
1304
1336
  /** HTTP WebHook integration service */
1305
1337
  IntegrationServiceTypes["WebHook"] = "WEB_HOOK";
1306
1338
  })(IntegrationServiceTypes || (IntegrationServiceTypes = {}));
1339
+ /** Investment facet types */
1340
+ export var InvestmentFacetTypes;
1341
+ (function (InvestmentFacetTypes) {
1342
+ /** Creation Date */
1343
+ InvestmentFacetTypes["CreationDate"] = "CREATION_DATE";
1344
+ })(InvestmentFacetTypes || (InvestmentFacetTypes = {}));
1345
+ /** Investment fund facet types */
1346
+ export var InvestmentFundFacetTypes;
1347
+ (function (InvestmentFundFacetTypes) {
1348
+ /** Creation Date */
1349
+ InvestmentFundFacetTypes["CreationDate"] = "CREATION_DATE";
1350
+ })(InvestmentFundFacetTypes || (InvestmentFundFacetTypes = {}));
1307
1351
  /** Jina model type */
1308
1352
  export var JinaModels;
1309
1353
  (function (JinaModels) {
@@ -1637,6 +1681,10 @@ export var ObservableTypes;
1637
1681
  ObservableTypes["Category"] = "CATEGORY";
1638
1682
  /** Event */
1639
1683
  ObservableTypes["Event"] = "EVENT";
1684
+ /** Investment */
1685
+ ObservableTypes["Investment"] = "INVESTMENT";
1686
+ /** Investment fund */
1687
+ ObservableTypes["InvestmentFund"] = "INVESTMENT_FUND";
1640
1688
  /** Label */
1641
1689
  ObservableTypes["Label"] = "LABEL";
1642
1690
  /** Medical condition */
@@ -1939,6 +1987,30 @@ export var OrientationTypes;
1939
1987
  /** Top right orientation */
1940
1988
  OrientationTypes["TopRight"] = "TOP_RIGHT";
1941
1989
  })(OrientationTypes || (OrientationTypes = {}));
1990
+ /** Parallel generator for Find All API quality/cost tradeoff */
1991
+ export var ParallelGenerators;
1992
+ (function (ParallelGenerators) {
1993
+ /** Base: Broad queries with many expected matches ($1 + $0.05/match) */
1994
+ ParallelGenerators["Base"] = "BASE";
1995
+ /** Core: Specific queries with moderate matches ($3 + $0.15/match) */
1996
+ ParallelGenerators["Core"] = "CORE";
1997
+ /** Pro: Rare, hard-to-find matches ($10 + $1.00/match) */
1998
+ ParallelGenerators["Pro"] = "PRO";
1999
+ })(ParallelGenerators || (ParallelGenerators = {}));
2000
+ /** Parallel processor type */
2001
+ export var ParallelProcessors;
2002
+ (function (ParallelProcessors) {
2003
+ /** Pro processor: Exploratory web research */
2004
+ ParallelProcessors["Pro"] = "PRO";
2005
+ /** Ultra processor: Extensive deep research */
2006
+ ParallelProcessors["Ultra"] = "ULTRA";
2007
+ /** Ultra2x processor: Advanced deep research with 2x compute */
2008
+ ParallelProcessors["Ultra2X"] = "ULTRA2X";
2009
+ /** Ultra4x processor: Advanced deep research with 4x compute */
2010
+ ParallelProcessors["Ultra4X"] = "ULTRA4X";
2011
+ /** Ultra8x processor: Advanced deep research with 8x compute */
2012
+ ParallelProcessors["Ultra8X"] = "ULTRA8X";
2013
+ })(ParallelProcessors || (ParallelProcessors = {}));
1942
2014
  /** Person facet types */
1943
2015
  export var PersonFacetTypes;
1944
2016
  (function (PersonFacetTypes) {
@@ -2108,6 +2180,10 @@ export var SearchServiceTypes;
2108
2180
  SearchServiceTypes["Exa"] = "EXA";
2109
2181
  /** Exa Code context search service */
2110
2182
  SearchServiceTypes["ExaCode"] = "EXA_CODE";
2183
+ /** Parallel search feed service */
2184
+ SearchServiceTypes["Parallel"] = "PARALLEL";
2185
+ /** Perplexity search feed service */
2186
+ SearchServiceTypes["Perplexity"] = "PERPLEXITY";
2111
2187
  /** Podscan search feed service */
2112
2188
  SearchServiceTypes["Podscan"] = "PODSCAN";
2113
2189
  /** Tavily search feed service */
@@ -114,13 +114,15 @@ export function formatMessagesForAnthropic(messages) {
114
114
  console.log(`🔍 [formatMessagesForAnthropic] Has tool calls: ${message.toolCalls?.length || 0}`);
115
115
  }
116
116
  // Check if message contains thinking content (for Anthropic compatibility)
117
- const hasThinking = trimmedMessage.includes('<thinking');
117
+ const hasThinking = trimmedMessage.includes("<thinking");
118
118
  if (hasThinking) {
119
119
  // Parse thinking and text content separately for proper Anthropic format
120
120
  const thinkingMatch = trimmedMessage.match(/<thinking(?:\s+signature="([^"]*)")?\s*>(.*?)<\/thinking>/s);
121
- const thinkingSignature = thinkingMatch ? thinkingMatch[1] : '';
122
- const thinkingContent = thinkingMatch ? thinkingMatch[2].trim() : '';
123
- const textContent = trimmedMessage.replace(/<thinking(?:\s+signature="[^"]*")?\s*>.*?<\/thinking>/s, '').trim();
121
+ const thinkingSignature = thinkingMatch ? thinkingMatch[1] : "";
122
+ const thinkingContent = thinkingMatch ? thinkingMatch[2].trim() : "";
123
+ const textContent = trimmedMessage
124
+ .replace(/<thinking(?:\s+signature="[^"]*")?\s*>.*?<\/thinking>/s, "")
125
+ .trim();
124
126
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
125
127
  console.log(`🔍 [formatMessagesForAnthropic] Found thinking content: ${thinkingContent.length} chars`);
126
128
  console.log(`🔍 [formatMessagesForAnthropic] Text content after thinking: "${textContent}"`);
@@ -157,7 +159,7 @@ export function formatMessagesForAnthropic(messages) {
157
159
  });
158
160
  }
159
161
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
160
- console.log(`🔍 [formatMessagesForAnthropic] Content array: ${content.map(c => c.type).join(', ')}`);
162
+ console.log(`🔍 [formatMessagesForAnthropic] Content array: ${content.map((c) => c.type).join(", ")}`);
161
163
  }
162
164
  // Add tool uses if present
163
165
  if (message.toolCalls && message.toolCalls.length > 0) {
@@ -864,7 +864,8 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
864
864
  console.log(`🧠 [Anthropic] Final stored message: "${messageWithThinking}"`);
865
865
  }
866
866
  }
867
- else if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING && completeThinkingContent.trim()) {
867
+ else if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING &&
868
+ completeThinkingContent.trim()) {
868
869
  console.log(`🧠 [Anthropic] Thinking content captured (${completeThinkingContent.length} chars) - not including (no tool calls)`);
869
870
  }
870
871
  onComplete(messageWithThinking, validToolCalls, usageData);
@@ -989,14 +990,19 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
989
990
  if (thinkingConfig) {
990
991
  // Google Gemini 2.5 supports thinking mode
991
992
  // -1 = dynamic thinking (model decides), 0 = disabled, >0 = specific budget
992
- const budget = thinkingConfig.budget_tokens === 0 ? 0 :
993
- thinkingConfig.budget_tokens || -1; // Default to dynamic if not specified
993
+ const budget = thinkingConfig.budget_tokens === 0
994
+ ? 0
995
+ : thinkingConfig.budget_tokens || -1; // Default to dynamic if not specified
994
996
  generationConfig.thinkingConfig = {
995
997
  thinkingBudget: budget,
996
998
  includeThoughts: budget !== 0, // Include thoughts unless explicitly disabled
997
999
  };
998
1000
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
999
- const mode = budget === -1 ? "dynamic" : budget === 0 ? "disabled" : `${budget} tokens`;
1001
+ const mode = budget === -1
1002
+ ? "dynamic"
1003
+ : budget === 0
1004
+ ? "disabled"
1005
+ : `${budget} tokens`;
1000
1006
  console.log(`🧠 [Google] Thinking mode: ${mode} | Include thoughts: ${budget !== 0}`);
1001
1007
  }
1002
1008
  }
@@ -1042,7 +1048,7 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
1042
1048
  const part = chunk.candidates[0].content.parts[i];
1043
1049
  console.log(`[Google] Part ${i}: thought=${!!part.thought}, text length=${part.text?.length || 0}`);
1044
1050
  if (part.thought && part.text) {
1045
- console.log(`[Google] THOUGHT CONTENT: "${part.text.substring(0, 100)}${part.text.length > 100 ? '...' : ''}"`);
1051
+ console.log(`[Google] THOUGHT CONTENT: "${part.text.substring(0, 100)}${part.text.length > 100 ? "..." : ""}"`);
1046
1052
  }
1047
1053
  }
1048
1054
  }
@@ -1072,7 +1078,7 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
1072
1078
  // Regular text part - add to message content
1073
1079
  regularText += part.text;
1074
1080
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
1075
- console.log(`[Google] Regular text part (NOT thought): "${part.text.substring(0, 100)}${part.text.length > 100 ? '...' : ''}"`);
1081
+ console.log(`[Google] Regular text part (NOT thought): "${part.text.substring(0, 100)}${part.text.length > 100 ? "..." : ""}"`);
1076
1082
  }
1077
1083
  }
1078
1084
  }
@@ -1080,11 +1086,11 @@ onEvent, onComplete, abortSignal, thinkingConfig) {
1080
1086
  // Use regularText to avoid including thought parts
1081
1087
  const text = regularText; // Only use text from non-thought parts
1082
1088
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING && text) {
1083
- console.log(`[Google] Text to add (excluding thoughts): "${text.substring(0, 100)}${text.length > 100 ? '...' : ''}" (${text.length} chars)`);
1089
+ console.log(`[Google] Text to add (excluding thoughts): "${text.substring(0, 100)}${text.length > 100 ? "..." : ""}" (${text.length} chars)`);
1084
1090
  }
1085
1091
  if (text) {
1086
1092
  if (process.env.DEBUG_GRAPHLIT_SDK_STREAMING) {
1087
- console.log(`[Google] Adding to fullMessage: "${text.substring(0, 50)}${text.length > 50 ? '...' : ''}" (${text.length} chars)`);
1093
+ console.log(`[Google] Adding to fullMessage: "${text.substring(0, 50)}${text.length > 50 ? "..." : ""}" (${text.length} chars)`);
1088
1094
  }
1089
1095
  fullMessage += text;
1090
1096
  tokenCount++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20251103005",
3
+ "version": "1.0.20251112002",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",