tako-sdk 1.0.3 → 1.0.5

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/index.js CHANGED
@@ -359,135 +359,65 @@ function KnowledgeCardMethodologyToJSONTyped(value, ignoreDiscriminator = false)
359
359
  };
360
360
  }
361
361
 
362
- // src/generated/models/CardSourceIndex.ts
363
- var CardSourceIndex = {
364
- Tako: "tako",
365
- Web: "web",
366
- ConnectedData: "connected_data",
367
- TakoDeepV2: "tako_deep_v2"
362
+ // src/generated/models/TakoSourceIndex.ts
363
+ var TakoSourceIndex = {
364
+ Data: "data",
365
+ Web: "web"
368
366
  };
369
- function instanceOfCardSourceIndex(value) {
370
- for (const key in CardSourceIndex) {
371
- if (Object.prototype.hasOwnProperty.call(CardSourceIndex, key)) {
372
- if (CardSourceIndex[key] === value) {
367
+ function instanceOfTakoSourceIndex(value) {
368
+ for (const key in TakoSourceIndex) {
369
+ if (Object.prototype.hasOwnProperty.call(TakoSourceIndex, key)) {
370
+ if (TakoSourceIndex[key] === value) {
373
371
  return true;
374
372
  }
375
373
  }
376
374
  }
377
375
  return false;
378
376
  }
379
- function CardSourceIndexFromJSON(json) {
380
- return CardSourceIndexFromJSONTyped(json, false);
377
+ function TakoSourceIndexFromJSON(json) {
378
+ return TakoSourceIndexFromJSONTyped(json, false);
381
379
  }
382
- function CardSourceIndexFromJSONTyped(json, ignoreDiscriminator) {
380
+ function TakoSourceIndexFromJSONTyped(json, ignoreDiscriminator) {
383
381
  return json;
384
382
  }
385
- function CardSourceIndexToJSON(value) {
383
+ function TakoSourceIndexToJSON(value) {
386
384
  return value;
387
385
  }
388
- function CardSourceIndexToJSONTyped(value, ignoreDiscriminator) {
386
+ function TakoSourceIndexToJSONTyped(value, ignoreDiscriminator) {
389
387
  return value;
390
388
  }
391
389
 
392
- // src/generated/models/KnowledgeCardSourceIndexesInner.ts
393
- function instanceOfKnowledgeCardSourceIndexesInner(value) {
394
- if (!("index_type" in value) || value["index_type"] === void 0) return false;
395
- if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
396
- return true;
397
- }
398
- function KnowledgeCardSourceIndexesInnerFromJSON(json) {
399
- return KnowledgeCardSourceIndexesInnerFromJSONTyped(json, false);
400
- }
401
- function KnowledgeCardSourceIndexesInnerFromJSONTyped(json, ignoreDiscriminator) {
402
- if (json == null) {
403
- return json;
404
- }
405
- return {
406
- "index_type": CardSourceIndexFromJSON(json["index_type"]),
407
- "segment_id": json["segment_id"]
408
- };
409
- }
410
- function KnowledgeCardSourceIndexesInnerToJSON(json) {
411
- return KnowledgeCardSourceIndexesInnerToJSONTyped(json, false);
412
- }
413
- function KnowledgeCardSourceIndexesInnerToJSONTyped(value, ignoreDiscriminator = false) {
414
- if (value == null) {
415
- return value;
416
- }
417
- return {
418
- "index_type": CardSourceIndexToJSON(value["index_type"]),
419
- "segment_id": value["segment_id"]
420
- };
421
- }
422
-
423
- // src/generated/models/SourceIndex.ts
424
- function instanceOfSourceIndex(value) {
425
- if (!("index_type" in value) || value["index_type"] === void 0) return false;
426
- if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
427
- if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
428
- return true;
429
- }
430
- function SourceIndexFromJSON(json) {
431
- return SourceIndexFromJSONTyped(json, false);
432
- }
433
- function SourceIndexFromJSONTyped(json, ignoreDiscriminator) {
434
- if (json == null) {
435
- return json;
436
- }
437
- return {
438
- "index_type": CardSourceIndexFromJSON(json["index_type"]),
439
- "segment_id": json["segment_id"],
440
- "private_index_id": json["private_index_id"]
441
- };
442
- }
443
- function SourceIndexToJSON(json) {
444
- return SourceIndexToJSONTyped(json, false);
445
- }
446
- function SourceIndexToJSONTyped(value, ignoreDiscriminator = false) {
447
- if (value == null) {
448
- return value;
449
- }
450
- return {
451
- "index_type": CardSourceIndexToJSON(value["index_type"]),
452
- "segment_id": value["segment_id"],
453
- "private_index_id": value["private_index_id"]
454
- };
455
- }
456
-
457
- // src/generated/models/KnowledgeCardSource.ts
458
- function instanceOfKnowledgeCardSource(value) {
459
- if (!("source_name" in value) || value["source_name"] === void 0) return false;
460
- if (!("source_description" in value) || value["source_description"] === void 0) return false;
390
+ // src/generated/models/TakoCardSource.ts
391
+ function instanceOfTakoCardSource(value) {
461
392
  if (!("source_index" in value) || value["source_index"] === void 0) return false;
462
- if (!("url" in value) || value["url"] === void 0) return false;
463
393
  return true;
464
394
  }
465
- function KnowledgeCardSourceFromJSON(json) {
466
- return KnowledgeCardSourceFromJSONTyped(json, false);
395
+ function TakoCardSourceFromJSON(json) {
396
+ return TakoCardSourceFromJSONTyped(json, false);
467
397
  }
468
- function KnowledgeCardSourceFromJSONTyped(json, ignoreDiscriminator) {
398
+ function TakoCardSourceFromJSONTyped(json, ignoreDiscriminator) {
469
399
  if (json == null) {
470
400
  return json;
471
401
  }
472
402
  return {
473
- "source_name": json["source_name"],
474
- "source_description": json["source_description"],
475
- "source_index": SourceIndexFromJSON(json["source_index"]),
476
- "url": json["url"],
403
+ "source_name": json["source_name"] == null ? void 0 : json["source_name"],
404
+ "source_description": json["source_description"] == null ? void 0 : json["source_description"],
405
+ "source_index": TakoSourceIndexFromJSON(json["source_index"]),
406
+ "url": json["url"] == null ? void 0 : json["url"],
477
407
  "source_text": json["source_text"] == null ? void 0 : json["source_text"]
478
408
  };
479
409
  }
480
- function KnowledgeCardSourceToJSON(json) {
481
- return KnowledgeCardSourceToJSONTyped(json, false);
410
+ function TakoCardSourceToJSON(json) {
411
+ return TakoCardSourceToJSONTyped(json, false);
482
412
  }
483
- function KnowledgeCardSourceToJSONTyped(value, ignoreDiscriminator = false) {
413
+ function TakoCardSourceToJSONTyped(value, ignoreDiscriminator = false) {
484
414
  if (value == null) {
485
415
  return value;
486
416
  }
487
417
  return {
488
418
  "source_name": value["source_name"],
489
419
  "source_description": value["source_description"],
490
- "source_index": SourceIndexToJSON(value["source_index"]),
420
+ "source_index": TakoSourceIndexToJSON(value["source_index"]),
491
421
  "url": value["url"],
492
422
  "source_text": value["source_text"]
493
423
  };
@@ -605,9 +535,9 @@ function TakoCardFromJSONTyped(json, ignoreDiscriminator) {
605
535
  "webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
606
536
  "image_url": json["image_url"] == null ? void 0 : json["image_url"],
607
537
  "embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
608
- "sources": json["sources"] == null ? void 0 : json["sources"].map(KnowledgeCardSourceFromJSON),
538
+ "sources": json["sources"] == null ? void 0 : json["sources"].map(TakoCardSourceFromJSON),
609
539
  "methodologies": json["methodologies"] == null ? void 0 : json["methodologies"].map(KnowledgeCardMethodologyFromJSON),
610
- "source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(KnowledgeCardSourceIndexesInnerFromJSON),
540
+ "source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(TakoSourceIndexFromJSON),
611
541
  "card_type": json["card_type"] == null ? void 0 : json["card_type"],
612
542
  "relevance": json["relevance"] == null ? void 0 : KnowledgeCardRelevanceFromJSON(json["relevance"]),
613
543
  "content": json["content"] == null ? void 0 : ResultContentFromJSON(json["content"]),
@@ -629,9 +559,9 @@ function TakoCardToJSONTyped(value, ignoreDiscriminator = false) {
629
559
  "webpage_url": value["webpage_url"],
630
560
  "image_url": value["image_url"],
631
561
  "embed_url": value["embed_url"],
632
- "sources": value["sources"] == null ? void 0 : value["sources"].map(KnowledgeCardSourceToJSON),
562
+ "sources": value["sources"] == null ? void 0 : value["sources"].map(TakoCardSourceToJSON),
633
563
  "methodologies": value["methodologies"] == null ? void 0 : value["methodologies"].map(KnowledgeCardMethodologyToJSON),
634
- "source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(KnowledgeCardSourceIndexesInnerToJSON),
564
+ "source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(TakoSourceIndexToJSON),
635
565
  "card_type": value["card_type"],
636
566
  "relevance": KnowledgeCardRelevanceToJSON(value["relevance"]),
637
567
  "content": ResultContentToJSON(value["content"]),
@@ -1045,95 +975,6 @@ function AnswerResponseToJSONTyped(value, ignoreDiscriminator = false) {
1045
975
  };
1046
976
  }
1047
977
 
1048
- // src/generated/models/ClassifyRequest.ts
1049
- function instanceOfClassifyRequest(value) {
1050
- if (!("queries" in value) || value["queries"] === void 0) return false;
1051
- return true;
1052
- }
1053
- function ClassifyRequestFromJSON(json) {
1054
- return ClassifyRequestFromJSONTyped(json, false);
1055
- }
1056
- function ClassifyRequestFromJSONTyped(json, ignoreDiscriminator) {
1057
- if (json == null) {
1058
- return json;
1059
- }
1060
- return {
1061
- "queries": json["queries"]
1062
- };
1063
- }
1064
- function ClassifyRequestToJSON(json) {
1065
- return ClassifyRequestToJSONTyped(json, false);
1066
- }
1067
- function ClassifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
1068
- if (value == null) {
1069
- return value;
1070
- }
1071
- return {
1072
- "queries": value["queries"]
1073
- };
1074
- }
1075
-
1076
- // src/generated/models/QueryClassification.ts
1077
- function instanceOfQueryClassification(value) {
1078
- if (!("query" in value) || value["query"] === void 0) return false;
1079
- if (!("score" in value) || value["score"] === void 0) return false;
1080
- if (!("keep" in value) || value["keep"] === void 0) return false;
1081
- return true;
1082
- }
1083
- function QueryClassificationFromJSON(json) {
1084
- return QueryClassificationFromJSONTyped(json, false);
1085
- }
1086
- function QueryClassificationFromJSONTyped(json, ignoreDiscriminator) {
1087
- if (json == null) {
1088
- return json;
1089
- }
1090
- return {
1091
- "query": json["query"],
1092
- "score": json["score"],
1093
- "keep": json["keep"]
1094
- };
1095
- }
1096
- function QueryClassificationToJSON(json) {
1097
- return QueryClassificationToJSONTyped(json, false);
1098
- }
1099
- function QueryClassificationToJSONTyped(value, ignoreDiscriminator = false) {
1100
- if (value == null) {
1101
- return value;
1102
- }
1103
- return {
1104
- "query": value["query"],
1105
- "score": value["score"],
1106
- "keep": value["keep"]
1107
- };
1108
- }
1109
-
1110
- // src/generated/models/ClassifyResponse.ts
1111
- function instanceOfClassifyResponse(value) {
1112
- return true;
1113
- }
1114
- function ClassifyResponseFromJSON(json) {
1115
- return ClassifyResponseFromJSONTyped(json, false);
1116
- }
1117
- function ClassifyResponseFromJSONTyped(json, ignoreDiscriminator) {
1118
- if (json == null) {
1119
- return json;
1120
- }
1121
- return {
1122
- "results": json["results"] == null ? void 0 : json["results"].map(QueryClassificationFromJSON)
1123
- };
1124
- }
1125
- function ClassifyResponseToJSON(json) {
1126
- return ClassifyResponseToJSONTyped(json, false);
1127
- }
1128
- function ClassifyResponseToJSONTyped(value, ignoreDiscriminator = false) {
1129
- if (value == null) {
1130
- return value;
1131
- }
1132
- return {
1133
- "results": value["results"] == null ? void 0 : value["results"].map(QueryClassificationToJSON)
1134
- };
1135
- }
1136
-
1137
978
  // src/generated/models/ContentsDeliveryMode.ts
1138
979
  var ContentsDeliveryMode = {
1139
980
  Url: "url",
@@ -1386,104 +1227,343 @@ function CreateCardRequestToJSONTyped(value, ignoreDiscriminator = false) {
1386
1227
  };
1387
1228
  }
1388
1229
 
1389
- // src/generated/models/IdealVizDecision.ts
1390
- function instanceOfIdealVizDecision(value) {
1391
- if (!("property_path" in value) || value["property_path"] === void 0) return false;
1392
- if (!("reason" in value) || value["reason"] === void 0) return false;
1230
+ // src/generated/models/EntityClassName.ts
1231
+ var EntityClassName = {
1232
+ Companies: "Companies",
1233
+ Cryptocurrencies: "Cryptocurrencies",
1234
+ FinancialInstruments: "Financial Instruments",
1235
+ InternetBrowsers: "Internet Browsers",
1236
+ Commodities: "Commodities",
1237
+ People: "People",
1238
+ Currencies: "Currencies",
1239
+ StockExchanges: "Stock Exchanges",
1240
+ Securities: "Securities",
1241
+ Ipos: "IPOs",
1242
+ GovernmentDebtInstruments: "Government Debt Instruments",
1243
+ TreasurySecurities: "Treasury Securities",
1244
+ Airports: "Airports",
1245
+ Airlines: "Airlines",
1246
+ VehicleTypes: "Vehicle Types",
1247
+ TransportationModes: "Transportation Modes",
1248
+ Drugs: "Drugs",
1249
+ DrugCategories: "Drug Categories",
1250
+ Diseases: "Diseases",
1251
+ ChemicalElements: "Chemical Elements",
1252
+ ChemicalCompounds: "Chemical Compounds",
1253
+ CelestialBodies: "Celestial Bodies",
1254
+ Occupations: "Occupations",
1255
+ SocialMediaPlatforms: "Social Media Platforms",
1256
+ OperatingSystems: "Operating Systems",
1257
+ SearchEngines: "Search Engines",
1258
+ DeviceTypes: "Device Types",
1259
+ Llms: "LLMs",
1260
+ LlmFamilies: "LLM Families",
1261
+ LlmBenchmarks: "LLM Benchmarks",
1262
+ Industries: "Industries",
1263
+ NaicsIndustries: "NAICS Industries",
1264
+ BlsIndustries: "BLS Industries",
1265
+ PscCategories: "PSC Categories",
1266
+ FederalContractors: "Federal Contractors",
1267
+ FederalAgencies: "Federal Agencies",
1268
+ FederalSubagencies: "Federal Subagencies",
1269
+ IceContracts: "ICE Contracts",
1270
+ IceContractors: "ICE Contractors",
1271
+ Elections: "Elections",
1272
+ PoliticalOffices: "Political Offices",
1273
+ Pollsters: "Pollsters",
1274
+ AgriculturalProducts: "Agricultural Products",
1275
+ TobaccoProducts: "Tobacco Products",
1276
+ PredictionMarkets: "Prediction Markets",
1277
+ PredictionEvents: "Prediction Events",
1278
+ RealEstatePropertyTypes: "Real Estate Property Types",
1279
+ Continents: "Continents",
1280
+ WorldRegions: "World Regions",
1281
+ Countries: "Countries",
1282
+ States: "States",
1283
+ Counties: "Counties",
1284
+ MetroAreas: "Metro Areas",
1285
+ Cities: "Cities",
1286
+ F1Drivers: "F1 Drivers",
1287
+ F1Teams: "F1 Teams",
1288
+ F1Circuits: "F1 Circuits",
1289
+ F1Events: "F1 Events",
1290
+ NascarDrivers: "NASCAR Drivers",
1291
+ NascarTeams: "NASCAR Teams",
1292
+ NascarTracks: "NASCAR Tracks",
1293
+ NascarEvents: "NASCAR Events",
1294
+ NascarRaces: "NASCAR Races",
1295
+ NascarOwners: "NASCAR Owners",
1296
+ NascarManufacturers: "NASCAR Manufacturers",
1297
+ SoccerTeams: "Soccer Teams",
1298
+ SoccerPlayers: "Soccer Players",
1299
+ SoccerCompetitions: "Soccer Competitions",
1300
+ SoccerConferences: "Soccer Conferences",
1301
+ BasketballTeams: "Basketball Teams",
1302
+ BasketballPlayers: "Basketball Players",
1303
+ BasketballConferences: "Basketball Conferences",
1304
+ BasketballDivisions: "Basketball Divisions",
1305
+ BaseballTeams: "Baseball Teams",
1306
+ BaseballPlayers: "Baseball Players",
1307
+ BaseballConferences: "Baseball Conferences",
1308
+ BaseballDivisions: "Baseball Divisions",
1309
+ BaseballCompetitions: "Baseball Competitions",
1310
+ FootballTeams: "Football Teams",
1311
+ FootballPlayers: "Football Players",
1312
+ FootballConferences: "Football Conferences",
1313
+ FootballDivisions: "Football Divisions",
1314
+ Sports: "Sports",
1315
+ SportsLeagues: "Sports Leagues"
1316
+ };
1317
+ function instanceOfEntityClassName(value) {
1318
+ for (const key in EntityClassName) {
1319
+ if (Object.prototype.hasOwnProperty.call(EntityClassName, key)) {
1320
+ if (EntityClassName[key] === value) {
1321
+ return true;
1322
+ }
1323
+ }
1324
+ }
1325
+ return false;
1326
+ }
1327
+ function EntityClassNameFromJSON(json) {
1328
+ return EntityClassNameFromJSONTyped(json, false);
1329
+ }
1330
+ function EntityClassNameFromJSONTyped(json, ignoreDiscriminator) {
1331
+ return json;
1332
+ }
1333
+ function EntityClassNameToJSON(value) {
1334
+ return value;
1335
+ }
1336
+ function EntityClassNameToJSONTyped(value, ignoreDiscriminator) {
1337
+ return value;
1338
+ }
1339
+
1340
+ // src/generated/models/GraphNodeType.ts
1341
+ var GraphNodeType = {
1342
+ Source: "source",
1343
+ Metric: "metric",
1344
+ Entity: "entity"
1345
+ };
1346
+ function instanceOfGraphNodeType(value) {
1347
+ for (const key in GraphNodeType) {
1348
+ if (Object.prototype.hasOwnProperty.call(GraphNodeType, key)) {
1349
+ if (GraphNodeType[key] === value) {
1350
+ return true;
1351
+ }
1352
+ }
1353
+ }
1354
+ return false;
1355
+ }
1356
+ function GraphNodeTypeFromJSON(json) {
1357
+ return GraphNodeTypeFromJSONTyped(json, false);
1358
+ }
1359
+ function GraphNodeTypeFromJSONTyped(json, ignoreDiscriminator) {
1360
+ return json;
1361
+ }
1362
+ function GraphNodeTypeToJSON(value) {
1363
+ return value;
1364
+ }
1365
+ function GraphNodeTypeToJSONTyped(value, ignoreDiscriminator) {
1366
+ return value;
1367
+ }
1368
+
1369
+ // src/generated/models/GraphNode.ts
1370
+ function instanceOfGraphNode(value) {
1371
+ if (!("id" in value) || value["id"] === void 0) return false;
1372
+ if (!("type" in value) || value["type"] === void 0) return false;
1373
+ if (!("name" in value) || value["name"] === void 0) return false;
1393
1374
  return true;
1394
1375
  }
1395
- function IdealVizDecisionFromJSON(json) {
1396
- return IdealVizDecisionFromJSONTyped(json, false);
1376
+ function GraphNodeFromJSON(json) {
1377
+ return GraphNodeFromJSONTyped(json, false);
1397
1378
  }
1398
- function IdealVizDecisionFromJSONTyped(json, ignoreDiscriminator) {
1379
+ function GraphNodeFromJSONTyped(json, ignoreDiscriminator) {
1399
1380
  if (json == null) {
1400
1381
  return json;
1401
1382
  }
1402
1383
  return {
1403
- "property_path": json["property_path"],
1404
- "property_path_display_name": json["property_path_display_name"] == null ? void 0 : json["property_path_display_name"],
1405
- "reason": json["reason"]
1384
+ "id": json["id"],
1385
+ "type": GraphNodeTypeFromJSON(json["type"]),
1386
+ "name": json["name"],
1387
+ "aliases": json["aliases"] == null ? void 0 : json["aliases"],
1388
+ "description": json["description"] == null ? void 0 : json["description"],
1389
+ "subtype": json["subtype"] == null ? void 0 : EntityClassNameFromJSON(json["subtype"])
1406
1390
  };
1407
1391
  }
1408
- function IdealVizDecisionToJSON(json) {
1409
- return IdealVizDecisionToJSONTyped(json, false);
1392
+ function GraphNodeToJSON(json) {
1393
+ return GraphNodeToJSONTyped(json, false);
1410
1394
  }
1411
- function IdealVizDecisionToJSONTyped(value, ignoreDiscriminator = false) {
1395
+ function GraphNodeToJSONTyped(value, ignoreDiscriminator = false) {
1412
1396
  if (value == null) {
1413
1397
  return value;
1414
1398
  }
1415
1399
  return {
1416
- "property_path": value["property_path"],
1417
- "property_path_display_name": value["property_path_display_name"],
1418
- "reason": value["reason"]
1400
+ "id": value["id"],
1401
+ "type": GraphNodeTypeToJSON(value["type"]),
1402
+ "name": value["name"],
1403
+ "aliases": value["aliases"],
1404
+ "description": value["description"],
1405
+ "subtype": EntityClassNameToJSON(value["subtype"])
1419
1406
  };
1420
1407
  }
1421
1408
 
1422
- // src/generated/models/KnowledgeCard.ts
1423
- function instanceOfKnowledgeCard(value) {
1424
- if (!("card_id" in value) || value["card_id"] === void 0) return false;
1425
- if (!("title" in value) || value["title"] === void 0) return false;
1426
- if (!("description" in value) || value["description"] === void 0) return false;
1427
- if (!("webpage_url" in value) || value["webpage_url"] === void 0) return false;
1428
- if (!("image_url" in value) || value["image_url"] === void 0) return false;
1429
- if (!("embed_url" in value) || value["embed_url"] === void 0) return false;
1409
+ // src/generated/models/RelationGroup.ts
1410
+ function instanceOfRelationGroup(value) {
1411
+ if (!("items" in value) || value["items"] === void 0) return false;
1412
+ if (!("total" in value) || value["total"] === void 0) return false;
1413
+ return true;
1414
+ }
1415
+ function RelationGroupFromJSON(json) {
1416
+ return RelationGroupFromJSONTyped(json, false);
1417
+ }
1418
+ function RelationGroupFromJSONTyped(json, ignoreDiscriminator) {
1419
+ if (json == null) {
1420
+ return json;
1421
+ }
1422
+ return {
1423
+ "items": json["items"].map(GraphNodeFromJSON),
1424
+ "total": json["total"]
1425
+ };
1426
+ }
1427
+ function RelationGroupToJSON(json) {
1428
+ return RelationGroupToJSONTyped(json, false);
1429
+ }
1430
+ function RelationGroupToJSONTyped(value, ignoreDiscriminator = false) {
1431
+ if (value == null) {
1432
+ return value;
1433
+ }
1434
+ return {
1435
+ "items": value["items"].map(GraphNodeToJSON),
1436
+ "total": value["total"]
1437
+ };
1438
+ }
1439
+
1440
+ // src/generated/models/RelatedGroups.ts
1441
+ function instanceOfRelatedGroups(value) {
1430
1442
  if (!("sources" in value) || value["sources"] === void 0) return false;
1431
- if (!("methodologies" in value) || value["methodologies"] === void 0) return false;
1432
- if (!("source_indexes" in value) || value["source_indexes"] === void 0) return false;
1433
- if (!("card_type" in value) || value["card_type"] === void 0) return false;
1434
- if (!("data_url" in value) || value["data_url"] === void 0) return false;
1435
- if (!("relevance" in value) || value["relevance"] === void 0) return false;
1436
- if (!("visualization_data" in value) || value["visualization_data"] === void 0) return false;
1443
+ if (!("metrics" in value) || value["metrics"] === void 0) return false;
1444
+ if (!("entities" in value) || value["entities"] === void 0) return false;
1437
1445
  return true;
1438
1446
  }
1439
- function KnowledgeCardFromJSON(json) {
1440
- return KnowledgeCardFromJSONTyped(json, false);
1447
+ function RelatedGroupsFromJSON(json) {
1448
+ return RelatedGroupsFromJSONTyped(json, false);
1441
1449
  }
1442
- function KnowledgeCardFromJSONTyped(json, ignoreDiscriminator) {
1450
+ function RelatedGroupsFromJSONTyped(json, ignoreDiscriminator) {
1443
1451
  if (json == null) {
1444
1452
  return json;
1445
1453
  }
1446
1454
  return {
1447
- "card_id": json["card_id"],
1448
- "title": json["title"],
1449
- "description": json["description"],
1450
- "semantic_description": json["semantic_description"] == null ? void 0 : json["semantic_description"],
1451
- "webpage_url": json["webpage_url"],
1452
- "image_url": json["image_url"],
1453
- "embed_url": json["embed_url"],
1454
- "sources": json["sources"] == null ? null : json["sources"].map(KnowledgeCardSourceFromJSON),
1455
- "methodologies": json["methodologies"] == null ? null : json["methodologies"].map(KnowledgeCardMethodologyFromJSON),
1456
- "source_indexes": json["source_indexes"] == null ? null : json["source_indexes"].map(KnowledgeCardSourceIndexesInnerFromJSON),
1457
- "card_type": json["card_type"],
1458
- "data_url": json["data_url"],
1459
- "relevance": KnowledgeCardRelevanceFromJSON(json["relevance"]),
1460
- "visualization_data": json["visualization_data"],
1461
- "ideal_viz_decisions": json["ideal_viz_decisions"] == null ? void 0 : json["ideal_viz_decisions"].map(IdealVizDecisionFromJSON)
1462
- };
1463
- }
1464
- function KnowledgeCardToJSON(json) {
1465
- return KnowledgeCardToJSONTyped(json, false);
1466
- }
1467
- function KnowledgeCardToJSONTyped(value, ignoreDiscriminator = false) {
1455
+ "sources": RelationGroupFromJSON(json["sources"]),
1456
+ "metrics": RelationGroupFromJSON(json["metrics"]),
1457
+ "entities": RelationGroupFromJSON(json["entities"])
1458
+ };
1459
+ }
1460
+ function RelatedGroupsToJSON(json) {
1461
+ return RelatedGroupsToJSONTyped(json, false);
1462
+ }
1463
+ function RelatedGroupsToJSONTyped(value, ignoreDiscriminator = false) {
1468
1464
  if (value == null) {
1469
1465
  return value;
1470
1466
  }
1471
1467
  return {
1472
- "card_id": value["card_id"],
1473
- "title": value["title"],
1474
- "description": value["description"],
1475
- "semantic_description": value["semantic_description"],
1476
- "webpage_url": value["webpage_url"],
1477
- "image_url": value["image_url"],
1478
- "embed_url": value["embed_url"],
1479
- "sources": value["sources"] == null ? null : value["sources"].map(KnowledgeCardSourceToJSON),
1480
- "methodologies": value["methodologies"] == null ? null : value["methodologies"].map(KnowledgeCardMethodologyToJSON),
1481
- "source_indexes": value["source_indexes"] == null ? null : value["source_indexes"].map(KnowledgeCardSourceIndexesInnerToJSON),
1482
- "card_type": value["card_type"],
1483
- "data_url": value["data_url"],
1484
- "relevance": KnowledgeCardRelevanceToJSON(value["relevance"]),
1485
- "visualization_data": value["visualization_data"],
1486
- "ideal_viz_decisions": value["ideal_viz_decisions"] == null ? void 0 : value["ideal_viz_decisions"].map(IdealVizDecisionToJSON)
1468
+ "sources": RelationGroupToJSON(value["sources"]),
1469
+ "metrics": RelationGroupToJSON(value["metrics"]),
1470
+ "entities": RelationGroupToJSON(value["entities"])
1471
+ };
1472
+ }
1473
+
1474
+ // src/generated/models/GraphRelationPage.ts
1475
+ function instanceOfGraphRelationPage(value) {
1476
+ if (!("relation_type" in value) || value["relation_type"] === void 0) return false;
1477
+ if (!("items" in value) || value["items"] === void 0) return false;
1478
+ if (!("total" in value) || value["total"] === void 0) return false;
1479
+ return true;
1480
+ }
1481
+ function GraphRelationPageFromJSON(json) {
1482
+ return GraphRelationPageFromJSONTyped(json, false);
1483
+ }
1484
+ function GraphRelationPageFromJSONTyped(json, ignoreDiscriminator) {
1485
+ if (json == null) {
1486
+ return json;
1487
+ }
1488
+ return {
1489
+ "relation_type": GraphNodeTypeFromJSON(json["relation_type"]),
1490
+ "items": json["items"].map(GraphNodeFromJSON),
1491
+ "total": json["total"],
1492
+ "next_cursor": json["next_cursor"] == null ? void 0 : json["next_cursor"]
1493
+ };
1494
+ }
1495
+ function GraphRelationPageToJSON(json) {
1496
+ return GraphRelationPageToJSONTyped(json, false);
1497
+ }
1498
+ function GraphRelationPageToJSONTyped(value, ignoreDiscriminator = false) {
1499
+ if (value == null) {
1500
+ return value;
1501
+ }
1502
+ return {
1503
+ "relation_type": GraphNodeTypeToJSON(value["relation_type"]),
1504
+ "items": value["items"].map(GraphNodeToJSON),
1505
+ "total": value["total"],
1506
+ "next_cursor": value["next_cursor"]
1507
+ };
1508
+ }
1509
+
1510
+ // src/generated/models/GraphRelatedResponse.ts
1511
+ function instanceOfGraphRelatedResponse(value) {
1512
+ if (!("node" in value) || value["node"] === void 0) return false;
1513
+ return true;
1514
+ }
1515
+ function GraphRelatedResponseFromJSON(json) {
1516
+ return GraphRelatedResponseFromJSONTyped(json, false);
1517
+ }
1518
+ function GraphRelatedResponseFromJSONTyped(json, ignoreDiscriminator) {
1519
+ if (json == null) {
1520
+ return json;
1521
+ }
1522
+ return {
1523
+ "node": GraphNodeFromJSON(json["node"]),
1524
+ "related": json["related"] == null ? void 0 : RelatedGroupsFromJSON(json["related"]),
1525
+ "relation": json["relation"] == null ? void 0 : GraphRelationPageFromJSON(json["relation"])
1526
+ };
1527
+ }
1528
+ function GraphRelatedResponseToJSON(json) {
1529
+ return GraphRelatedResponseToJSONTyped(json, false);
1530
+ }
1531
+ function GraphRelatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
1532
+ if (value == null) {
1533
+ return value;
1534
+ }
1535
+ return {
1536
+ "node": GraphNodeToJSON(value["node"]),
1537
+ "related": RelatedGroupsToJSON(value["related"]),
1538
+ "relation": GraphRelationPageToJSON(value["relation"])
1539
+ };
1540
+ }
1541
+
1542
+ // src/generated/models/GraphSearchResponse.ts
1543
+ function instanceOfGraphSearchResponse(value) {
1544
+ if (!("results" in value) || value["results"] === void 0) return false;
1545
+ return true;
1546
+ }
1547
+ function GraphSearchResponseFromJSON(json) {
1548
+ return GraphSearchResponseFromJSONTyped(json, false);
1549
+ }
1550
+ function GraphSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
1551
+ if (json == null) {
1552
+ return json;
1553
+ }
1554
+ return {
1555
+ "results": json["results"].map(GraphNodeFromJSON)
1556
+ };
1557
+ }
1558
+ function GraphSearchResponseToJSON(json) {
1559
+ return GraphSearchResponseToJSONTyped(json, false);
1560
+ }
1561
+ function GraphSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
1562
+ if (value == null) {
1563
+ return value;
1564
+ }
1565
+ return {
1566
+ "results": value["results"].map(GraphNodeToJSON)
1487
1567
  };
1488
1568
  }
1489
1569
 
@@ -1545,37 +1625,6 @@ function OutputSettingsToJSONTyped(value, ignoreDiscriminator = false) {
1545
1625
  };
1546
1626
  }
1547
1627
 
1548
- // src/generated/models/TakoSourceSettings.ts
1549
- function instanceOfTakoSourceSettings(value) {
1550
- return true;
1551
- }
1552
- function TakoSourceSettingsFromJSON(json) {
1553
- return TakoSourceSettingsFromJSONTyped(json, false);
1554
- }
1555
- function TakoSourceSettingsFromJSONTyped(json, ignoreDiscriminator) {
1556
- if (json == null) {
1557
- return json;
1558
- }
1559
- return {
1560
- "count": json["count"] == null ? void 0 : json["count"],
1561
- "include_contents": json["include_contents"] == null ? void 0 : json["include_contents"],
1562
- "defer_data_retrieval": json["defer_data_retrieval"] == null ? void 0 : json["defer_data_retrieval"]
1563
- };
1564
- }
1565
- function TakoSourceSettingsToJSON(json) {
1566
- return TakoSourceSettingsToJSONTyped(json, false);
1567
- }
1568
- function TakoSourceSettingsToJSONTyped(value, ignoreDiscriminator = false) {
1569
- if (value == null) {
1570
- return value;
1571
- }
1572
- return {
1573
- "count": value["count"],
1574
- "include_contents": value["include_contents"],
1575
- "defer_data_retrieval": value["defer_data_retrieval"]
1576
- };
1577
- }
1578
-
1579
1628
  // src/generated/models/SourceSettings.ts
1580
1629
  function instanceOfSourceSettings(value) {
1581
1630
  return true;
@@ -1617,7 +1666,7 @@ function SourcesFromJSONTyped(json, ignoreDiscriminator) {
1617
1666
  return json;
1618
1667
  }
1619
1668
  return {
1620
- "data": json["data"] == null ? void 0 : TakoSourceSettingsFromJSON(json["data"]),
1669
+ "data": json["data"] == null ? void 0 : SourceSettingsFromJSON(json["data"]),
1621
1670
  "web": json["web"] == null ? void 0 : SourceSettingsFromJSON(json["web"])
1622
1671
  };
1623
1672
  }
@@ -1629,7 +1678,7 @@ function SourcesToJSONTyped(value, ignoreDiscriminator = false) {
1629
1678
  return value;
1630
1679
  }
1631
1680
  return {
1632
- "data": TakoSourceSettingsToJSON(value["data"]),
1681
+ "data": SourceSettingsToJSON(value["data"]),
1633
1682
  "web": SourceSettingsToJSON(value["web"])
1634
1683
  };
1635
1684
  }
@@ -1708,6 +1757,53 @@ function SearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
1708
1757
  };
1709
1758
  }
1710
1759
 
1760
+ // src/generated/models/ThinVizCard.ts
1761
+ var ThinVizCardEmbedModeEnum = {
1762
+ Post: "post",
1763
+ Postmessage: "postmessage"
1764
+ };
1765
+ function instanceOfThinVizCard(value) {
1766
+ return true;
1767
+ }
1768
+ function ThinVizCardFromJSON(json) {
1769
+ return ThinVizCardFromJSONTyped(json, false);
1770
+ }
1771
+ function ThinVizCardFromJSONTyped(json, ignoreDiscriminator) {
1772
+ if (json == null) {
1773
+ return json;
1774
+ }
1775
+ return {
1776
+ "card_id": json["card_id"] == null ? void 0 : json["card_id"],
1777
+ "title": json["title"] == null ? void 0 : json["title"],
1778
+ "description": json["description"] == null ? void 0 : json["description"],
1779
+ "webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
1780
+ "image_url": json["image_url"] == null ? void 0 : json["image_url"],
1781
+ "embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
1782
+ "card_type": json["card_type"] == null ? void 0 : json["card_type"],
1783
+ "visualization_data": json["visualization_data"] == null ? void 0 : json["visualization_data"],
1784
+ "embed_mode": json["embed_mode"] == null ? void 0 : json["embed_mode"]
1785
+ };
1786
+ }
1787
+ function ThinVizCardToJSON(json) {
1788
+ return ThinVizCardToJSONTyped(json, false);
1789
+ }
1790
+ function ThinVizCardToJSONTyped(value, ignoreDiscriminator = false) {
1791
+ if (value == null) {
1792
+ return value;
1793
+ }
1794
+ return {
1795
+ "card_id": value["card_id"],
1796
+ "title": value["title"],
1797
+ "description": value["description"],
1798
+ "webpage_url": value["webpage_url"],
1799
+ "image_url": value["image_url"],
1800
+ "embed_url": value["embed_url"],
1801
+ "card_type": value["card_type"],
1802
+ "visualization_data": value["visualization_data"],
1803
+ "embed_mode": value["embed_mode"]
1804
+ };
1805
+ }
1806
+
1711
1807
  // src/generated/apis/TakoApi.ts
1712
1808
  var TakoApi = class extends BaseAPI {
1713
1809
  /**
@@ -1746,42 +1842,6 @@ var TakoApi = class extends BaseAPI {
1746
1842
  const response = await this.answerRaw(requestParameters, initOverrides);
1747
1843
  return await response.value();
1748
1844
  }
1749
- /**
1750
- * Creates request options for classify without sending the request
1751
- */
1752
- async classifyRequestOpts(requestParameters) {
1753
- const queryParameters = {};
1754
- const headerParameters = {};
1755
- headerParameters["Content-Type"] = "application/json";
1756
- if (this.configuration && this.configuration.apiKey) {
1757
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
1758
- }
1759
- let urlPath = `/v1/classify`;
1760
- return {
1761
- path: urlPath,
1762
- method: "POST",
1763
- headers: headerParameters,
1764
- query: queryParameters,
1765
- body: ClassifyRequestToJSON(requestParameters["classifyRequest"])
1766
- };
1767
- }
1768
- /**
1769
- * Score a batch of queries for whether Tako search will return a result. Returns a probability and a recall-skewed keep flag per query. Free; intended for pre-filtering before /v3/search.
1770
- * Classify queries
1771
- */
1772
- async classifyRaw(requestParameters, initOverrides) {
1773
- const requestOptions = await this.classifyRequestOpts(requestParameters);
1774
- const response = await this.request(requestOptions, initOverrides);
1775
- return new JSONApiResponse(response, (jsonValue) => ClassifyResponseFromJSON(jsonValue));
1776
- }
1777
- /**
1778
- * Score a batch of queries for whether Tako search will return a result. Returns a probability and a recall-skewed keep flag per query. Free; intended for pre-filtering before /v3/search.
1779
- * Classify queries
1780
- */
1781
- async classify(requestParameters = {}, initOverrides) {
1782
- const response = await this.classifyRaw(requestParameters, initOverrides);
1783
- return await response.value();
1784
- }
1785
1845
  /**
1786
1846
  * Creates request options for contents without sending the request
1787
1847
  */
@@ -1843,7 +1903,7 @@ var TakoApi = class extends BaseAPI {
1843
1903
  async createCardRaw(requestParameters, initOverrides) {
1844
1904
  const requestOptions = await this.createCardRequestOpts(requestParameters);
1845
1905
  const response = await this.request(requestOptions, initOverrides);
1846
- return new JSONApiResponse(response, (jsonValue) => KnowledgeCardFromJSON(jsonValue));
1906
+ return new JSONApiResponse(response, (jsonValue) => ThinVizCardFromJSON(jsonValue));
1847
1907
  }
1848
1908
  /**
1849
1909
  * Create a visualization card directly from component configurations. Supported component types: header, generic_timeseries, categorical_bar, stock_boxes, financial_boxes, table.
@@ -1852,6 +1912,107 @@ var TakoApi = class extends BaseAPI {
1852
1912
  const response = await this.createCardRaw(requestParameters, initOverrides);
1853
1913
  return await response.value();
1854
1914
  }
1915
+ /**
1916
+ * Creates request options for graphRelated without sending the request
1917
+ */
1918
+ async graphRelatedRequestOpts(requestParameters) {
1919
+ if (requestParameters["nodeId"] == null) {
1920
+ throw new RequiredError(
1921
+ "nodeId",
1922
+ 'Required parameter "nodeId" was null or undefined when calling graphRelated().'
1923
+ );
1924
+ }
1925
+ const queryParameters = {};
1926
+ if (requestParameters["nodeId"] != null) {
1927
+ queryParameters["node_id"] = requestParameters["nodeId"];
1928
+ }
1929
+ if (requestParameters["relationType"] != null) {
1930
+ queryParameters["relation_type"] = requestParameters["relationType"];
1931
+ }
1932
+ if (requestParameters["q"] != null) {
1933
+ queryParameters["q"] = requestParameters["q"];
1934
+ }
1935
+ if (requestParameters["cursor"] != null) {
1936
+ queryParameters["cursor"] = requestParameters["cursor"];
1937
+ }
1938
+ if (requestParameters["limit"] != null) {
1939
+ queryParameters["limit"] = requestParameters["limit"];
1940
+ }
1941
+ const headerParameters = {};
1942
+ let urlPath = `/beta/graph/related`;
1943
+ return {
1944
+ path: urlPath,
1945
+ method: "GET",
1946
+ headers: headerParameters,
1947
+ query: queryParameters
1948
+ };
1949
+ }
1950
+ /**
1951
+ * Explore what a node connects to: a source\'s metrics and entities, a metric\'s sources and the entities it\'s tracked for, or an entity\'s available metrics. Use it to find which entity + metric combinations Tako covers, then query /v3/search or /v1/answer for that combination. Pass relation_type + cursor to paginate one facet, and the optional q to narrow that facet by a case-insensitive substring on name/aliases (e.g. metrics for an entity matching \'gdp\'). Public and unauthenticated.
1952
+ * Get a graph node\'s related nodes
1953
+ */
1954
+ async graphRelatedRaw(requestParameters, initOverrides) {
1955
+ const requestOptions = await this.graphRelatedRequestOpts(requestParameters);
1956
+ const response = await this.request(requestOptions, initOverrides);
1957
+ return new JSONApiResponse(response, (jsonValue) => GraphRelatedResponseFromJSON(jsonValue));
1958
+ }
1959
+ /**
1960
+ * Explore what a node connects to: a source\'s metrics and entities, a metric\'s sources and the entities it\'s tracked for, or an entity\'s available metrics. Use it to find which entity + metric combinations Tako covers, then query /v3/search or /v1/answer for that combination. Pass relation_type + cursor to paginate one facet, and the optional q to narrow that facet by a case-insensitive substring on name/aliases (e.g. metrics for an entity matching \'gdp\'). Public and unauthenticated.
1961
+ * Get a graph node\'s related nodes
1962
+ */
1963
+ async graphRelated(requestParameters, initOverrides) {
1964
+ const response = await this.graphRelatedRaw(requestParameters, initOverrides);
1965
+ return await response.value();
1966
+ }
1967
+ /**
1968
+ * Creates request options for graphSearch without sending the request
1969
+ */
1970
+ async graphSearchRequestOpts(requestParameters) {
1971
+ if (requestParameters["q"] == null) {
1972
+ throw new RequiredError(
1973
+ "q",
1974
+ 'Required parameter "q" was null or undefined when calling graphSearch().'
1975
+ );
1976
+ }
1977
+ const queryParameters = {};
1978
+ if (requestParameters["q"] != null) {
1979
+ queryParameters["q"] = requestParameters["q"];
1980
+ }
1981
+ if (requestParameters["types"] != null) {
1982
+ queryParameters["types"] = requestParameters["types"];
1983
+ }
1984
+ if (requestParameters["limit"] != null) {
1985
+ queryParameters["limit"] = requestParameters["limit"];
1986
+ }
1987
+ if (requestParameters["subtype"] != null) {
1988
+ queryParameters["subtype"] = requestParameters["subtype"];
1989
+ }
1990
+ const headerParameters = {};
1991
+ let urlPath = `/beta/graph/search`;
1992
+ return {
1993
+ path: urlPath,
1994
+ method: "GET",
1995
+ headers: headerParameters,
1996
+ query: queryParameters
1997
+ };
1998
+ }
1999
+ /**
2000
+ * Resolve a data source, metric, or entity in Tako\'s data graph by name. Use this to discover and confirm what data exists before querying — e.g. resolve the metric and the entity you care about here, then ask /v3/search or /v1/answer for that specific entity + metric combination. Public and unauthenticated. Note: results are not yet filtered to the production-ready inventory, so a returned metric or entity that is not backed by a production fact table may 404 when passed to /beta/graph/related. Pass subtype to scope results to one entity class (see the subtype enum).
2001
+ * Search the data graph
2002
+ */
2003
+ async graphSearchRaw(requestParameters, initOverrides) {
2004
+ const requestOptions = await this.graphSearchRequestOpts(requestParameters);
2005
+ const response = await this.request(requestOptions, initOverrides);
2006
+ return new JSONApiResponse(response, (jsonValue) => GraphSearchResponseFromJSON(jsonValue));
2007
+ }
2008
+ /**
2009
+ * Resolve a data source, metric, or entity in Tako\'s data graph by name. Use this to discover and confirm what data exists before querying — e.g. resolve the metric and the entity you care about here, then ask /v3/search or /v1/answer for that specific entity + metric combination. Public and unauthenticated. Note: results are not yet filtered to the production-ready inventory, so a returned metric or entity that is not backed by a production fact table may 404 when passed to /beta/graph/related. Pass subtype to scope results to one entity class (see the subtype enum).
2010
+ * Search the data graph
2011
+ */
2012
+ async graphSearch(requestParameters, initOverrides) {
2013
+ const response = await this.graphSearchRaw(requestParameters, initOverrides);
2014
+ return await response.value();
2015
+ }
1855
2016
  /**
1856
2017
  * Creates request options for search without sending the request
1857
2018
  */
@@ -1889,6 +2050,92 @@ var TakoApi = class extends BaseAPI {
1889
2050
  return await response.value();
1890
2051
  }
1891
2052
  };
2053
+ var GraphSearchSubtypeEnum = {
2054
+ Companies: "Companies",
2055
+ Cryptocurrencies: "Cryptocurrencies",
2056
+ FinancialInstruments: "Financial Instruments",
2057
+ InternetBrowsers: "Internet Browsers",
2058
+ Commodities: "Commodities",
2059
+ People: "People",
2060
+ Currencies: "Currencies",
2061
+ StockExchanges: "Stock Exchanges",
2062
+ Securities: "Securities",
2063
+ Ipos: "IPOs",
2064
+ GovernmentDebtInstruments: "Government Debt Instruments",
2065
+ TreasurySecurities: "Treasury Securities",
2066
+ Airports: "Airports",
2067
+ Airlines: "Airlines",
2068
+ VehicleTypes: "Vehicle Types",
2069
+ TransportationModes: "Transportation Modes",
2070
+ Drugs: "Drugs",
2071
+ DrugCategories: "Drug Categories",
2072
+ Diseases: "Diseases",
2073
+ ChemicalElements: "Chemical Elements",
2074
+ ChemicalCompounds: "Chemical Compounds",
2075
+ CelestialBodies: "Celestial Bodies",
2076
+ Occupations: "Occupations",
2077
+ SocialMediaPlatforms: "Social Media Platforms",
2078
+ OperatingSystems: "Operating Systems",
2079
+ SearchEngines: "Search Engines",
2080
+ DeviceTypes: "Device Types",
2081
+ Llms: "LLMs",
2082
+ LlmFamilies: "LLM Families",
2083
+ LlmBenchmarks: "LLM Benchmarks",
2084
+ Industries: "Industries",
2085
+ NaicsIndustries: "NAICS Industries",
2086
+ BlsIndustries: "BLS Industries",
2087
+ PscCategories: "PSC Categories",
2088
+ FederalContractors: "Federal Contractors",
2089
+ FederalAgencies: "Federal Agencies",
2090
+ FederalSubagencies: "Federal Subagencies",
2091
+ IceContracts: "ICE Contracts",
2092
+ IceContractors: "ICE Contractors",
2093
+ Elections: "Elections",
2094
+ PoliticalOffices: "Political Offices",
2095
+ Pollsters: "Pollsters",
2096
+ AgriculturalProducts: "Agricultural Products",
2097
+ TobaccoProducts: "Tobacco Products",
2098
+ PredictionMarkets: "Prediction Markets",
2099
+ PredictionEvents: "Prediction Events",
2100
+ RealEstatePropertyTypes: "Real Estate Property Types",
2101
+ Continents: "Continents",
2102
+ WorldRegions: "World Regions",
2103
+ Countries: "Countries",
2104
+ States: "States",
2105
+ Counties: "Counties",
2106
+ MetroAreas: "Metro Areas",
2107
+ Cities: "Cities",
2108
+ F1Drivers: "F1 Drivers",
2109
+ F1Teams: "F1 Teams",
2110
+ F1Circuits: "F1 Circuits",
2111
+ F1Events: "F1 Events",
2112
+ NascarDrivers: "NASCAR Drivers",
2113
+ NascarTeams: "NASCAR Teams",
2114
+ NascarTracks: "NASCAR Tracks",
2115
+ NascarEvents: "NASCAR Events",
2116
+ NascarRaces: "NASCAR Races",
2117
+ NascarOwners: "NASCAR Owners",
2118
+ NascarManufacturers: "NASCAR Manufacturers",
2119
+ SoccerTeams: "Soccer Teams",
2120
+ SoccerPlayers: "Soccer Players",
2121
+ SoccerCompetitions: "Soccer Competitions",
2122
+ SoccerConferences: "Soccer Conferences",
2123
+ BasketballTeams: "Basketball Teams",
2124
+ BasketballPlayers: "Basketball Players",
2125
+ BasketballConferences: "Basketball Conferences",
2126
+ BasketballDivisions: "Basketball Divisions",
2127
+ BaseballTeams: "Baseball Teams",
2128
+ BaseballPlayers: "Baseball Players",
2129
+ BaseballConferences: "Baseball Conferences",
2130
+ BaseballDivisions: "Baseball Divisions",
2131
+ BaseballCompetitions: "Baseball Competitions",
2132
+ FootballTeams: "Football Teams",
2133
+ FootballPlayers: "Football Players",
2134
+ FootballConferences: "Football Conferences",
2135
+ FootballDivisions: "Football Divisions",
2136
+ Sports: "Sports",
2137
+ SportsLeagues: "Sports Leagues"
2138
+ };
1892
2139
 
1893
2140
  // src/generated/models/APIErrorType.ts
1894
2141
  var APIErrorType = {
@@ -2588,70 +2835,6 @@ function BaseAPIErrorToJSONTyped(value, ignoreDiscriminator = false) {
2588
2835
  };
2589
2836
  }
2590
2837
 
2591
- // src/generated/models/CardSourceIndexSegment.ts
2592
- function instanceOfCardSourceIndexSegment(value) {
2593
- if (!("index_type" in value) || value["index_type"] === void 0) return false;
2594
- if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
2595
- return true;
2596
- }
2597
- function CardSourceIndexSegmentFromJSON(json) {
2598
- return CardSourceIndexSegmentFromJSONTyped(json, false);
2599
- }
2600
- function CardSourceIndexSegmentFromJSONTyped(json, ignoreDiscriminator) {
2601
- if (json == null) {
2602
- return json;
2603
- }
2604
- return {
2605
- "index_type": CardSourceIndexFromJSON(json["index_type"]),
2606
- "segment_id": json["segment_id"]
2607
- };
2608
- }
2609
- function CardSourceIndexSegmentToJSON(json) {
2610
- return CardSourceIndexSegmentToJSONTyped(json, false);
2611
- }
2612
- function CardSourceIndexSegmentToJSONTyped(value, ignoreDiscriminator = false) {
2613
- if (value == null) {
2614
- return value;
2615
- }
2616
- return {
2617
- "index_type": CardSourceIndexToJSON(value["index_type"]),
2618
- "segment_id": value["segment_id"]
2619
- };
2620
- }
2621
-
2622
- // src/generated/models/CardSourcePrivateIndex.ts
2623
- function instanceOfCardSourcePrivateIndex(value) {
2624
- if (!("index_type" in value) || value["index_type"] === void 0) return false;
2625
- if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
2626
- return true;
2627
- }
2628
- function CardSourcePrivateIndexFromJSON(json) {
2629
- return CardSourcePrivateIndexFromJSONTyped(json, false);
2630
- }
2631
- function CardSourcePrivateIndexFromJSONTyped(json, ignoreDiscriminator) {
2632
- if (json == null) {
2633
- return json;
2634
- }
2635
- return {
2636
- "index_type": CardSourceIndexFromJSON(json["index_type"]),
2637
- "segment_id": json["segment_id"] == null ? void 0 : json["segment_id"],
2638
- "private_index_id": json["private_index_id"]
2639
- };
2640
- }
2641
- function CardSourcePrivateIndexToJSON(json) {
2642
- return CardSourcePrivateIndexToJSONTyped(json, false);
2643
- }
2644
- function CardSourcePrivateIndexToJSONTyped(value, ignoreDiscriminator = false) {
2645
- if (value == null) {
2646
- return value;
2647
- }
2648
- return {
2649
- "index_type": CardSourceIndexToJSON(value["index_type"]),
2650
- "segment_id": value["segment_id"],
2651
- "private_index_id": value["private_index_id"]
2652
- };
2653
- }
2654
-
2655
2838
  // src/generated/models/CreateCard400Response.ts
2656
2839
  function instanceOfCreateCard400Response(value) {
2657
2840
  if (!("error" in value) || value["error"] === void 0) return false;
@@ -2884,6 +3067,14 @@ var Tako = class {
2884
3067
  createCard(request) {
2885
3068
  return this.api.createCard({ createCardRequest: request });
2886
3069
  }
3070
+ // /beta/graph/search and /beta/graph/related are GET endpoints, so the
3071
+ // generated request type is the query-param object itself (no body wrapper).
3072
+ graphSearch(request) {
3073
+ return this.api.graphSearch(request);
3074
+ }
3075
+ graphRelated(request) {
3076
+ return this.api.graphRelated(request);
3077
+ }
2887
3078
  };
2888
3079
  export {
2889
3080
  APIErrorType,
@@ -2951,27 +3142,6 @@ export {
2951
3142
  BlockToJSON,
2952
3143
  BlockToJSONTyped,
2953
3144
  COLLECTION_FORMATS,
2954
- CardSourceIndex,
2955
- CardSourceIndexFromJSON,
2956
- CardSourceIndexFromJSONTyped,
2957
- CardSourceIndexSegmentFromJSON,
2958
- CardSourceIndexSegmentFromJSONTyped,
2959
- CardSourceIndexSegmentToJSON,
2960
- CardSourceIndexSegmentToJSONTyped,
2961
- CardSourceIndexToJSON,
2962
- CardSourceIndexToJSONTyped,
2963
- CardSourcePrivateIndexFromJSON,
2964
- CardSourcePrivateIndexFromJSONTyped,
2965
- CardSourcePrivateIndexToJSON,
2966
- CardSourcePrivateIndexToJSONTyped,
2967
- ClassifyRequestFromJSON,
2968
- ClassifyRequestFromJSONTyped,
2969
- ClassifyRequestToJSON,
2970
- ClassifyRequestToJSONTyped,
2971
- ClassifyResponseFromJSON,
2972
- ClassifyResponseFromJSONTyped,
2973
- ClassifyResponseToJSON,
2974
- ClassifyResponseToJSONTyped,
2975
3145
  ComponentConfigFromJSON,
2976
3146
  ComponentConfigFromJSONTyped,
2977
3147
  ComponentConfigToJSON,
@@ -3018,23 +3188,44 @@ export {
3018
3188
  DataPipelineAnswerEventToJSON,
3019
3189
  DataPipelineAnswerEventToJSONTyped,
3020
3190
  DefaultConfig,
3191
+ EntityClassName,
3192
+ EntityClassNameFromJSON,
3193
+ EntityClassNameFromJSONTyped,
3194
+ EntityClassNameToJSON,
3195
+ EntityClassNameToJSONTyped,
3021
3196
  ErrorObjectFromJSON,
3022
3197
  ErrorObjectFromJSONTyped,
3023
3198
  ErrorObjectToJSON,
3024
3199
  ErrorObjectToJSONTyped,
3025
3200
  FetchError,
3201
+ GraphNodeFromJSON,
3202
+ GraphNodeFromJSONTyped,
3203
+ GraphNodeToJSON,
3204
+ GraphNodeToJSONTyped,
3205
+ GraphNodeType,
3206
+ GraphNodeTypeFromJSON,
3207
+ GraphNodeTypeFromJSONTyped,
3208
+ GraphNodeTypeToJSON,
3209
+ GraphNodeTypeToJSONTyped,
3210
+ GraphRelatedResponseFromJSON,
3211
+ GraphRelatedResponseFromJSONTyped,
3212
+ GraphRelatedResponseToJSON,
3213
+ GraphRelatedResponseToJSONTyped,
3214
+ GraphRelationPageFromJSON,
3215
+ GraphRelationPageFromJSONTyped,
3216
+ GraphRelationPageToJSON,
3217
+ GraphRelationPageToJSONTyped,
3218
+ GraphSearchResponseFromJSON,
3219
+ GraphSearchResponseFromJSONTyped,
3220
+ GraphSearchResponseToJSON,
3221
+ GraphSearchResponseToJSONTyped,
3222
+ GraphSearchSubtypeEnum,
3026
3223
  HeartbeatEventFromJSON,
3027
3224
  HeartbeatEventFromJSONTyped,
3028
3225
  HeartbeatEventKindEnum,
3029
3226
  HeartbeatEventToJSON,
3030
3227
  HeartbeatEventToJSONTyped,
3031
- IdealVizDecisionFromJSON,
3032
- IdealVizDecisionFromJSONTyped,
3033
- IdealVizDecisionToJSON,
3034
- IdealVizDecisionToJSONTyped,
3035
3228
  JSONApiResponse,
3036
- KnowledgeCardFromJSON,
3037
- KnowledgeCardFromJSONTyped,
3038
3229
  KnowledgeCardMethodologyFromJSON,
3039
3230
  KnowledgeCardMethodologyFromJSONTyped,
3040
3231
  KnowledgeCardMethodologyToJSON,
@@ -3044,29 +3235,23 @@ export {
3044
3235
  KnowledgeCardRelevanceFromJSONTyped,
3045
3236
  KnowledgeCardRelevanceToJSON,
3046
3237
  KnowledgeCardRelevanceToJSONTyped,
3047
- KnowledgeCardSourceFromJSON,
3048
- KnowledgeCardSourceFromJSONTyped,
3049
- KnowledgeCardSourceIndexesInnerFromJSON,
3050
- KnowledgeCardSourceIndexesInnerFromJSONTyped,
3051
- KnowledgeCardSourceIndexesInnerToJSON,
3052
- KnowledgeCardSourceIndexesInnerToJSONTyped,
3053
- KnowledgeCardSourceToJSON,
3054
- KnowledgeCardSourceToJSONTyped,
3055
- KnowledgeCardToJSON,
3056
- KnowledgeCardToJSONTyped,
3057
3238
  OutputSettingsFromJSON,
3058
3239
  OutputSettingsFromJSONTyped,
3059
3240
  OutputSettingsToJSON,
3060
3241
  OutputSettingsToJSONTyped,
3061
- QueryClassificationFromJSON,
3062
- QueryClassificationFromJSONTyped,
3063
- QueryClassificationToJSON,
3064
- QueryClassificationToJSONTyped,
3065
3242
  ReasoningEventFromJSON,
3066
3243
  ReasoningEventFromJSONTyped,
3067
3244
  ReasoningEventKindEnum,
3068
3245
  ReasoningEventToJSON,
3069
3246
  ReasoningEventToJSONTyped,
3247
+ RelatedGroupsFromJSON,
3248
+ RelatedGroupsFromJSONTyped,
3249
+ RelatedGroupsToJSON,
3250
+ RelatedGroupsToJSONTyped,
3251
+ RelationGroupFromJSON,
3252
+ RelationGroupFromJSONTyped,
3253
+ RelationGroupToJSON,
3254
+ RelationGroupToJSONTyped,
3070
3255
  RequiredError,
3071
3256
  ResponseError,
3072
3257
  ResultContentFromJSON,
@@ -3086,10 +3271,6 @@ export {
3086
3271
  SearchResponseFromJSONTyped,
3087
3272
  SearchResponseToJSON,
3088
3273
  SearchResponseToJSONTyped,
3089
- SourceIndexFromJSON,
3090
- SourceIndexFromJSONTyped,
3091
- SourceIndexToJSON,
3092
- SourceIndexToJSONTyped,
3093
3274
  SourceSettingsFromJSON,
3094
3275
  SourceSettingsFromJSONTyped,
3095
3276
  SourceSettingsToJSON,
@@ -3128,18 +3309,28 @@ export {
3128
3309
  TakoApi,
3129
3310
  TakoCardFromJSON,
3130
3311
  TakoCardFromJSONTyped,
3312
+ TakoCardSourceFromJSON,
3313
+ TakoCardSourceFromJSONTyped,
3314
+ TakoCardSourceToJSON,
3315
+ TakoCardSourceToJSONTyped,
3131
3316
  TakoCardToJSON,
3132
3317
  TakoCardToJSONTyped,
3133
- TakoSourceSettingsFromJSON,
3134
- TakoSourceSettingsFromJSONTyped,
3135
- TakoSourceSettingsToJSON,
3136
- TakoSourceSettingsToJSONTyped,
3318
+ TakoSourceIndex,
3319
+ TakoSourceIndexFromJSON,
3320
+ TakoSourceIndexFromJSONTyped,
3321
+ TakoSourceIndexToJSON,
3322
+ TakoSourceIndexToJSONTyped,
3137
3323
  TextApiResponse,
3138
3324
  TextEventFromJSON,
3139
3325
  TextEventFromJSONTyped,
3140
3326
  TextEventKindEnum,
3141
3327
  TextEventToJSON,
3142
3328
  TextEventToJSONTyped,
3329
+ ThinVizCardEmbedModeEnum,
3330
+ ThinVizCardFromJSON,
3331
+ ThinVizCardFromJSONTyped,
3332
+ ThinVizCardToJSON,
3333
+ ThinVizCardToJSONTyped,
3143
3334
  ToolCallEventFromJSON,
3144
3335
  ToolCallEventFromJSONTyped,
3145
3336
  ToolCallEventKindEnum,
@@ -3179,11 +3370,6 @@ export {
3179
3370
  instanceOfAgentUsage,
3180
3371
  instanceOfAnswerResponse,
3181
3372
  instanceOfBaseAPIError,
3182
- instanceOfCardSourceIndex,
3183
- instanceOfCardSourceIndexSegment,
3184
- instanceOfCardSourcePrivateIndex,
3185
- instanceOfClassifyRequest,
3186
- instanceOfClassifyResponse,
3187
3373
  instanceOfComponentConfig,
3188
3374
  instanceOfComponentTypeEnum,
3189
3375
  instanceOfContentFormat,
@@ -3194,22 +3380,24 @@ export {
3194
3380
  instanceOfCreateCard400Response,
3195
3381
  instanceOfCreateCardRequest,
3196
3382
  instanceOfDataPipelineAnswerEvent,
3383
+ instanceOfEntityClassName,
3197
3384
  instanceOfErrorObject,
3385
+ instanceOfGraphNode,
3386
+ instanceOfGraphNodeType,
3387
+ instanceOfGraphRelatedResponse,
3388
+ instanceOfGraphRelationPage,
3389
+ instanceOfGraphSearchResponse,
3198
3390
  instanceOfHeartbeatEvent,
3199
- instanceOfIdealVizDecision,
3200
- instanceOfKnowledgeCard,
3201
3391
  instanceOfKnowledgeCardMethodology,
3202
3392
  instanceOfKnowledgeCardRelevance,
3203
- instanceOfKnowledgeCardSource,
3204
- instanceOfKnowledgeCardSourceIndexesInner,
3205
3393
  instanceOfOutputSettings,
3206
- instanceOfQueryClassification,
3207
3394
  instanceOfReasoningEvent,
3395
+ instanceOfRelatedGroups,
3396
+ instanceOfRelationGroup,
3208
3397
  instanceOfResultContent,
3209
3398
  instanceOfSearchEffortLevel,
3210
3399
  instanceOfSearchRequest,
3211
3400
  instanceOfSearchResponse,
3212
- instanceOfSourceIndex,
3213
3401
  instanceOfSourceSettings,
3214
3402
  instanceOfSources,
3215
3403
  instanceOfStatusEvent,
@@ -3218,8 +3406,10 @@ export {
3218
3406
  instanceOfStreamResetEvent,
3219
3407
  instanceOfSubagentEvent,
3220
3408
  instanceOfTakoCard,
3221
- instanceOfTakoSourceSettings,
3409
+ instanceOfTakoCardSource,
3410
+ instanceOfTakoSourceIndex,
3222
3411
  instanceOfTextEvent,
3412
+ instanceOfThinVizCard,
3223
3413
  instanceOfToolCallEvent,
3224
3414
  instanceOfToolErrorEvent,
3225
3415
  instanceOfToolResultEvent,