tako-sdk 1.0.3 → 1.0.4
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/README.md +2 -2
- package/dist/index.cjs +112 -348
- package/dist/index.d.cts +151 -412
- package/dist/index.d.ts +151 -412
- package/dist/index.js +95 -307
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -359,135 +359,65 @@ function KnowledgeCardMethodologyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
// src/generated/models/
|
|
363
|
-
var
|
|
364
|
-
|
|
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
|
|
370
|
-
for (const key in
|
|
371
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
372
|
-
if (
|
|
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
|
|
380
|
-
return
|
|
377
|
+
function TakoSourceIndexFromJSON(json) {
|
|
378
|
+
return TakoSourceIndexFromJSONTyped(json, false);
|
|
381
379
|
}
|
|
382
|
-
function
|
|
380
|
+
function TakoSourceIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
383
381
|
return json;
|
|
384
382
|
}
|
|
385
|
-
function
|
|
383
|
+
function TakoSourceIndexToJSON(value) {
|
|
386
384
|
return value;
|
|
387
385
|
}
|
|
388
|
-
function
|
|
386
|
+
function TakoSourceIndexToJSONTyped(value, ignoreDiscriminator) {
|
|
389
387
|
return value;
|
|
390
388
|
}
|
|
391
389
|
|
|
392
|
-
// src/generated/models/
|
|
393
|
-
function
|
|
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
|
|
466
|
-
return
|
|
395
|
+
function TakoCardSourceFromJSON(json) {
|
|
396
|
+
return TakoCardSourceFromJSONTyped(json, false);
|
|
467
397
|
}
|
|
468
|
-
function
|
|
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":
|
|
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
|
|
481
|
-
return
|
|
410
|
+
function TakoCardSourceToJSON(json) {
|
|
411
|
+
return TakoCardSourceToJSONTyped(json, false);
|
|
482
412
|
}
|
|
483
|
-
function
|
|
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":
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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"]),
|
|
@@ -1386,107 +1316,6 @@ function CreateCardRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1386
1316
|
};
|
|
1387
1317
|
}
|
|
1388
1318
|
|
|
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;
|
|
1393
|
-
return true;
|
|
1394
|
-
}
|
|
1395
|
-
function IdealVizDecisionFromJSON(json) {
|
|
1396
|
-
return IdealVizDecisionFromJSONTyped(json, false);
|
|
1397
|
-
}
|
|
1398
|
-
function IdealVizDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1399
|
-
if (json == null) {
|
|
1400
|
-
return json;
|
|
1401
|
-
}
|
|
1402
|
-
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"]
|
|
1406
|
-
};
|
|
1407
|
-
}
|
|
1408
|
-
function IdealVizDecisionToJSON(json) {
|
|
1409
|
-
return IdealVizDecisionToJSONTyped(json, false);
|
|
1410
|
-
}
|
|
1411
|
-
function IdealVizDecisionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1412
|
-
if (value == null) {
|
|
1413
|
-
return value;
|
|
1414
|
-
}
|
|
1415
|
-
return {
|
|
1416
|
-
"property_path": value["property_path"],
|
|
1417
|
-
"property_path_display_name": value["property_path_display_name"],
|
|
1418
|
-
"reason": value["reason"]
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
|
|
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;
|
|
1430
|
-
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;
|
|
1437
|
-
return true;
|
|
1438
|
-
}
|
|
1439
|
-
function KnowledgeCardFromJSON(json) {
|
|
1440
|
-
return KnowledgeCardFromJSONTyped(json, false);
|
|
1441
|
-
}
|
|
1442
|
-
function KnowledgeCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
1443
|
-
if (json == null) {
|
|
1444
|
-
return json;
|
|
1445
|
-
}
|
|
1446
|
-
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) {
|
|
1468
|
-
if (value == null) {
|
|
1469
|
-
return value;
|
|
1470
|
-
}
|
|
1471
|
-
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)
|
|
1487
|
-
};
|
|
1488
|
-
}
|
|
1489
|
-
|
|
1490
1319
|
// src/generated/models/SearchEffortLevel.ts
|
|
1491
1320
|
var SearchEffortLevel = {
|
|
1492
1321
|
Fast: "fast",
|
|
@@ -1708,6 +1537,53 @@ function SearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1708
1537
|
};
|
|
1709
1538
|
}
|
|
1710
1539
|
|
|
1540
|
+
// src/generated/models/ThinVizCard.ts
|
|
1541
|
+
var ThinVizCardEmbedModeEnum = {
|
|
1542
|
+
Post: "post",
|
|
1543
|
+
Postmessage: "postmessage"
|
|
1544
|
+
};
|
|
1545
|
+
function instanceOfThinVizCard(value) {
|
|
1546
|
+
return true;
|
|
1547
|
+
}
|
|
1548
|
+
function ThinVizCardFromJSON(json) {
|
|
1549
|
+
return ThinVizCardFromJSONTyped(json, false);
|
|
1550
|
+
}
|
|
1551
|
+
function ThinVizCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
1552
|
+
if (json == null) {
|
|
1553
|
+
return json;
|
|
1554
|
+
}
|
|
1555
|
+
return {
|
|
1556
|
+
"card_id": json["card_id"] == null ? void 0 : json["card_id"],
|
|
1557
|
+
"title": json["title"] == null ? void 0 : json["title"],
|
|
1558
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
1559
|
+
"webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
|
|
1560
|
+
"image_url": json["image_url"] == null ? void 0 : json["image_url"],
|
|
1561
|
+
"embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
|
|
1562
|
+
"card_type": json["card_type"] == null ? void 0 : json["card_type"],
|
|
1563
|
+
"visualization_data": json["visualization_data"] == null ? void 0 : json["visualization_data"],
|
|
1564
|
+
"embed_mode": json["embed_mode"] == null ? void 0 : json["embed_mode"]
|
|
1565
|
+
};
|
|
1566
|
+
}
|
|
1567
|
+
function ThinVizCardToJSON(json) {
|
|
1568
|
+
return ThinVizCardToJSONTyped(json, false);
|
|
1569
|
+
}
|
|
1570
|
+
function ThinVizCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1571
|
+
if (value == null) {
|
|
1572
|
+
return value;
|
|
1573
|
+
}
|
|
1574
|
+
return {
|
|
1575
|
+
"card_id": value["card_id"],
|
|
1576
|
+
"title": value["title"],
|
|
1577
|
+
"description": value["description"],
|
|
1578
|
+
"webpage_url": value["webpage_url"],
|
|
1579
|
+
"image_url": value["image_url"],
|
|
1580
|
+
"embed_url": value["embed_url"],
|
|
1581
|
+
"card_type": value["card_type"],
|
|
1582
|
+
"visualization_data": value["visualization_data"],
|
|
1583
|
+
"embed_mode": value["embed_mode"]
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1711
1587
|
// src/generated/apis/TakoApi.ts
|
|
1712
1588
|
var TakoApi = class extends BaseAPI {
|
|
1713
1589
|
/**
|
|
@@ -1843,7 +1719,7 @@ var TakoApi = class extends BaseAPI {
|
|
|
1843
1719
|
async createCardRaw(requestParameters, initOverrides) {
|
|
1844
1720
|
const requestOptions = await this.createCardRequestOpts(requestParameters);
|
|
1845
1721
|
const response = await this.request(requestOptions, initOverrides);
|
|
1846
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
1722
|
+
return new JSONApiResponse(response, (jsonValue) => ThinVizCardFromJSON(jsonValue));
|
|
1847
1723
|
}
|
|
1848
1724
|
/**
|
|
1849
1725
|
* Create a visualization card directly from component configurations. Supported component types: header, generic_timeseries, categorical_bar, stock_boxes, financial_boxes, table.
|
|
@@ -2588,70 +2464,6 @@ function BaseAPIErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2588
2464
|
};
|
|
2589
2465
|
}
|
|
2590
2466
|
|
|
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
2467
|
// src/generated/models/CreateCard400Response.ts
|
|
2656
2468
|
function instanceOfCreateCard400Response(value) {
|
|
2657
2469
|
if (!("error" in value) || value["error"] === void 0) return false;
|
|
@@ -2951,19 +2763,6 @@ export {
|
|
|
2951
2763
|
BlockToJSON,
|
|
2952
2764
|
BlockToJSONTyped,
|
|
2953
2765
|
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
2766
|
ClassifyRequestFromJSON,
|
|
2968
2767
|
ClassifyRequestFromJSONTyped,
|
|
2969
2768
|
ClassifyRequestToJSON,
|
|
@@ -3028,13 +2827,7 @@ export {
|
|
|
3028
2827
|
HeartbeatEventKindEnum,
|
|
3029
2828
|
HeartbeatEventToJSON,
|
|
3030
2829
|
HeartbeatEventToJSONTyped,
|
|
3031
|
-
IdealVizDecisionFromJSON,
|
|
3032
|
-
IdealVizDecisionFromJSONTyped,
|
|
3033
|
-
IdealVizDecisionToJSON,
|
|
3034
|
-
IdealVizDecisionToJSONTyped,
|
|
3035
2830
|
JSONApiResponse,
|
|
3036
|
-
KnowledgeCardFromJSON,
|
|
3037
|
-
KnowledgeCardFromJSONTyped,
|
|
3038
2831
|
KnowledgeCardMethodologyFromJSON,
|
|
3039
2832
|
KnowledgeCardMethodologyFromJSONTyped,
|
|
3040
2833
|
KnowledgeCardMethodologyToJSON,
|
|
@@ -3044,16 +2837,6 @@ export {
|
|
|
3044
2837
|
KnowledgeCardRelevanceFromJSONTyped,
|
|
3045
2838
|
KnowledgeCardRelevanceToJSON,
|
|
3046
2839
|
KnowledgeCardRelevanceToJSONTyped,
|
|
3047
|
-
KnowledgeCardSourceFromJSON,
|
|
3048
|
-
KnowledgeCardSourceFromJSONTyped,
|
|
3049
|
-
KnowledgeCardSourceIndexesInnerFromJSON,
|
|
3050
|
-
KnowledgeCardSourceIndexesInnerFromJSONTyped,
|
|
3051
|
-
KnowledgeCardSourceIndexesInnerToJSON,
|
|
3052
|
-
KnowledgeCardSourceIndexesInnerToJSONTyped,
|
|
3053
|
-
KnowledgeCardSourceToJSON,
|
|
3054
|
-
KnowledgeCardSourceToJSONTyped,
|
|
3055
|
-
KnowledgeCardToJSON,
|
|
3056
|
-
KnowledgeCardToJSONTyped,
|
|
3057
2840
|
OutputSettingsFromJSON,
|
|
3058
2841
|
OutputSettingsFromJSONTyped,
|
|
3059
2842
|
OutputSettingsToJSON,
|
|
@@ -3086,10 +2869,6 @@ export {
|
|
|
3086
2869
|
SearchResponseFromJSONTyped,
|
|
3087
2870
|
SearchResponseToJSON,
|
|
3088
2871
|
SearchResponseToJSONTyped,
|
|
3089
|
-
SourceIndexFromJSON,
|
|
3090
|
-
SourceIndexFromJSONTyped,
|
|
3091
|
-
SourceIndexToJSON,
|
|
3092
|
-
SourceIndexToJSONTyped,
|
|
3093
2872
|
SourceSettingsFromJSON,
|
|
3094
2873
|
SourceSettingsFromJSONTyped,
|
|
3095
2874
|
SourceSettingsToJSON,
|
|
@@ -3128,8 +2907,17 @@ export {
|
|
|
3128
2907
|
TakoApi,
|
|
3129
2908
|
TakoCardFromJSON,
|
|
3130
2909
|
TakoCardFromJSONTyped,
|
|
2910
|
+
TakoCardSourceFromJSON,
|
|
2911
|
+
TakoCardSourceFromJSONTyped,
|
|
2912
|
+
TakoCardSourceToJSON,
|
|
2913
|
+
TakoCardSourceToJSONTyped,
|
|
3131
2914
|
TakoCardToJSON,
|
|
3132
2915
|
TakoCardToJSONTyped,
|
|
2916
|
+
TakoSourceIndex,
|
|
2917
|
+
TakoSourceIndexFromJSON,
|
|
2918
|
+
TakoSourceIndexFromJSONTyped,
|
|
2919
|
+
TakoSourceIndexToJSON,
|
|
2920
|
+
TakoSourceIndexToJSONTyped,
|
|
3133
2921
|
TakoSourceSettingsFromJSON,
|
|
3134
2922
|
TakoSourceSettingsFromJSONTyped,
|
|
3135
2923
|
TakoSourceSettingsToJSON,
|
|
@@ -3140,6 +2928,11 @@ export {
|
|
|
3140
2928
|
TextEventKindEnum,
|
|
3141
2929
|
TextEventToJSON,
|
|
3142
2930
|
TextEventToJSONTyped,
|
|
2931
|
+
ThinVizCardEmbedModeEnum,
|
|
2932
|
+
ThinVizCardFromJSON,
|
|
2933
|
+
ThinVizCardFromJSONTyped,
|
|
2934
|
+
ThinVizCardToJSON,
|
|
2935
|
+
ThinVizCardToJSONTyped,
|
|
3143
2936
|
ToolCallEventFromJSON,
|
|
3144
2937
|
ToolCallEventFromJSONTyped,
|
|
3145
2938
|
ToolCallEventKindEnum,
|
|
@@ -3179,9 +2972,6 @@ export {
|
|
|
3179
2972
|
instanceOfAgentUsage,
|
|
3180
2973
|
instanceOfAnswerResponse,
|
|
3181
2974
|
instanceOfBaseAPIError,
|
|
3182
|
-
instanceOfCardSourceIndex,
|
|
3183
|
-
instanceOfCardSourceIndexSegment,
|
|
3184
|
-
instanceOfCardSourcePrivateIndex,
|
|
3185
2975
|
instanceOfClassifyRequest,
|
|
3186
2976
|
instanceOfClassifyResponse,
|
|
3187
2977
|
instanceOfComponentConfig,
|
|
@@ -3196,12 +2986,8 @@ export {
|
|
|
3196
2986
|
instanceOfDataPipelineAnswerEvent,
|
|
3197
2987
|
instanceOfErrorObject,
|
|
3198
2988
|
instanceOfHeartbeatEvent,
|
|
3199
|
-
instanceOfIdealVizDecision,
|
|
3200
|
-
instanceOfKnowledgeCard,
|
|
3201
2989
|
instanceOfKnowledgeCardMethodology,
|
|
3202
2990
|
instanceOfKnowledgeCardRelevance,
|
|
3203
|
-
instanceOfKnowledgeCardSource,
|
|
3204
|
-
instanceOfKnowledgeCardSourceIndexesInner,
|
|
3205
2991
|
instanceOfOutputSettings,
|
|
3206
2992
|
instanceOfQueryClassification,
|
|
3207
2993
|
instanceOfReasoningEvent,
|
|
@@ -3209,7 +2995,6 @@ export {
|
|
|
3209
2995
|
instanceOfSearchEffortLevel,
|
|
3210
2996
|
instanceOfSearchRequest,
|
|
3211
2997
|
instanceOfSearchResponse,
|
|
3212
|
-
instanceOfSourceIndex,
|
|
3213
2998
|
instanceOfSourceSettings,
|
|
3214
2999
|
instanceOfSources,
|
|
3215
3000
|
instanceOfStatusEvent,
|
|
@@ -3218,8 +3003,11 @@ export {
|
|
|
3218
3003
|
instanceOfStreamResetEvent,
|
|
3219
3004
|
instanceOfSubagentEvent,
|
|
3220
3005
|
instanceOfTakoCard,
|
|
3006
|
+
instanceOfTakoCardSource,
|
|
3007
|
+
instanceOfTakoSourceIndex,
|
|
3221
3008
|
instanceOfTakoSourceSettings,
|
|
3222
3009
|
instanceOfTextEvent,
|
|
3010
|
+
instanceOfThinVizCard,
|
|
3223
3011
|
instanceOfToolCallEvent,
|
|
3224
3012
|
instanceOfToolErrorEvent,
|
|
3225
3013
|
instanceOfToolResultEvent,
|