tako-sdk 1.0.2 → 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 +256 -449
- package/dist/index.d.cts +331 -542
- package/dist/index.d.ts +331 -542
- package/dist/index.js +234 -408
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -65,6 +65,10 @@ __export(index_exports, {
|
|
|
65
65
|
AgentStreamEnvelopeFromJSONTyped: () => AgentStreamEnvelopeFromJSONTyped,
|
|
66
66
|
AgentStreamEnvelopeToJSON: () => AgentStreamEnvelopeToJSON,
|
|
67
67
|
AgentStreamEnvelopeToJSONTyped: () => AgentStreamEnvelopeToJSONTyped,
|
|
68
|
+
AgentUsageFromJSON: () => AgentUsageFromJSON,
|
|
69
|
+
AgentUsageFromJSONTyped: () => AgentUsageFromJSONTyped,
|
|
70
|
+
AgentUsageToJSON: () => AgentUsageToJSON,
|
|
71
|
+
AgentUsageToJSONTyped: () => AgentUsageToJSONTyped,
|
|
68
72
|
AnswerResponseFromJSON: () => AnswerResponseFromJSON,
|
|
69
73
|
AnswerResponseFromJSONTyped: () => AnswerResponseFromJSONTyped,
|
|
70
74
|
AnswerResponseToJSON: () => AnswerResponseToJSON,
|
|
@@ -81,19 +85,6 @@ __export(index_exports, {
|
|
|
81
85
|
BlockToJSON: () => BlockToJSON,
|
|
82
86
|
BlockToJSONTyped: () => BlockToJSONTyped,
|
|
83
87
|
COLLECTION_FORMATS: () => COLLECTION_FORMATS,
|
|
84
|
-
CardSourceIndex: () => CardSourceIndex,
|
|
85
|
-
CardSourceIndexFromJSON: () => CardSourceIndexFromJSON,
|
|
86
|
-
CardSourceIndexFromJSONTyped: () => CardSourceIndexFromJSONTyped,
|
|
87
|
-
CardSourceIndexSegmentFromJSON: () => CardSourceIndexSegmentFromJSON,
|
|
88
|
-
CardSourceIndexSegmentFromJSONTyped: () => CardSourceIndexSegmentFromJSONTyped,
|
|
89
|
-
CardSourceIndexSegmentToJSON: () => CardSourceIndexSegmentToJSON,
|
|
90
|
-
CardSourceIndexSegmentToJSONTyped: () => CardSourceIndexSegmentToJSONTyped,
|
|
91
|
-
CardSourceIndexToJSON: () => CardSourceIndexToJSON,
|
|
92
|
-
CardSourceIndexToJSONTyped: () => CardSourceIndexToJSONTyped,
|
|
93
|
-
CardSourcePrivateIndexFromJSON: () => CardSourcePrivateIndexFromJSON,
|
|
94
|
-
CardSourcePrivateIndexFromJSONTyped: () => CardSourcePrivateIndexFromJSONTyped,
|
|
95
|
-
CardSourcePrivateIndexToJSON: () => CardSourcePrivateIndexToJSON,
|
|
96
|
-
CardSourcePrivateIndexToJSONTyped: () => CardSourcePrivateIndexToJSONTyped,
|
|
97
88
|
ClassifyRequestFromJSON: () => ClassifyRequestFromJSON,
|
|
98
89
|
ClassifyRequestFromJSONTyped: () => ClassifyRequestFromJSONTyped,
|
|
99
90
|
ClassifyRequestToJSON: () => ClassifyRequestToJSON,
|
|
@@ -158,13 +149,7 @@ __export(index_exports, {
|
|
|
158
149
|
HeartbeatEventKindEnum: () => HeartbeatEventKindEnum,
|
|
159
150
|
HeartbeatEventToJSON: () => HeartbeatEventToJSON,
|
|
160
151
|
HeartbeatEventToJSONTyped: () => HeartbeatEventToJSONTyped,
|
|
161
|
-
IdealVizDecisionFromJSON: () => IdealVizDecisionFromJSON,
|
|
162
|
-
IdealVizDecisionFromJSONTyped: () => IdealVizDecisionFromJSONTyped,
|
|
163
|
-
IdealVizDecisionToJSON: () => IdealVizDecisionToJSON,
|
|
164
|
-
IdealVizDecisionToJSONTyped: () => IdealVizDecisionToJSONTyped,
|
|
165
152
|
JSONApiResponse: () => JSONApiResponse,
|
|
166
|
-
KnowledgeCardFromJSON: () => KnowledgeCardFromJSON,
|
|
167
|
-
KnowledgeCardFromJSONTyped: () => KnowledgeCardFromJSONTyped,
|
|
168
153
|
KnowledgeCardMethodologyFromJSON: () => KnowledgeCardMethodologyFromJSON,
|
|
169
154
|
KnowledgeCardMethodologyFromJSONTyped: () => KnowledgeCardMethodologyFromJSONTyped,
|
|
170
155
|
KnowledgeCardMethodologyToJSON: () => KnowledgeCardMethodologyToJSON,
|
|
@@ -174,16 +159,6 @@ __export(index_exports, {
|
|
|
174
159
|
KnowledgeCardRelevanceFromJSONTyped: () => KnowledgeCardRelevanceFromJSONTyped,
|
|
175
160
|
KnowledgeCardRelevanceToJSON: () => KnowledgeCardRelevanceToJSON,
|
|
176
161
|
KnowledgeCardRelevanceToJSONTyped: () => KnowledgeCardRelevanceToJSONTyped,
|
|
177
|
-
KnowledgeCardSourceFromJSON: () => KnowledgeCardSourceFromJSON,
|
|
178
|
-
KnowledgeCardSourceFromJSONTyped: () => KnowledgeCardSourceFromJSONTyped,
|
|
179
|
-
KnowledgeCardSourceIndexesInnerFromJSON: () => KnowledgeCardSourceIndexesInnerFromJSON,
|
|
180
|
-
KnowledgeCardSourceIndexesInnerFromJSONTyped: () => KnowledgeCardSourceIndexesInnerFromJSONTyped,
|
|
181
|
-
KnowledgeCardSourceIndexesInnerToJSON: () => KnowledgeCardSourceIndexesInnerToJSON,
|
|
182
|
-
KnowledgeCardSourceIndexesInnerToJSONTyped: () => KnowledgeCardSourceIndexesInnerToJSONTyped,
|
|
183
|
-
KnowledgeCardSourceToJSON: () => KnowledgeCardSourceToJSON,
|
|
184
|
-
KnowledgeCardSourceToJSONTyped: () => KnowledgeCardSourceToJSONTyped,
|
|
185
|
-
KnowledgeCardToJSON: () => KnowledgeCardToJSON,
|
|
186
|
-
KnowledgeCardToJSONTyped: () => KnowledgeCardToJSONTyped,
|
|
187
162
|
OutputSettingsFromJSON: () => OutputSettingsFromJSON,
|
|
188
163
|
OutputSettingsFromJSONTyped: () => OutputSettingsFromJSONTyped,
|
|
189
164
|
OutputSettingsToJSON: () => OutputSettingsToJSON,
|
|
@@ -216,10 +191,6 @@ __export(index_exports, {
|
|
|
216
191
|
SearchResponseFromJSONTyped: () => SearchResponseFromJSONTyped,
|
|
217
192
|
SearchResponseToJSON: () => SearchResponseToJSON,
|
|
218
193
|
SearchResponseToJSONTyped: () => SearchResponseToJSONTyped,
|
|
219
|
-
SourceIndexFromJSON: () => SourceIndexFromJSON,
|
|
220
|
-
SourceIndexFromJSONTyped: () => SourceIndexFromJSONTyped,
|
|
221
|
-
SourceIndexToJSON: () => SourceIndexToJSON,
|
|
222
|
-
SourceIndexToJSONTyped: () => SourceIndexToJSONTyped,
|
|
223
194
|
SourceSettingsFromJSON: () => SourceSettingsFromJSON,
|
|
224
195
|
SourceSettingsFromJSONTyped: () => SourceSettingsFromJSONTyped,
|
|
225
196
|
SourceSettingsToJSON: () => SourceSettingsToJSON,
|
|
@@ -258,8 +229,17 @@ __export(index_exports, {
|
|
|
258
229
|
TakoApi: () => TakoApi,
|
|
259
230
|
TakoCardFromJSON: () => TakoCardFromJSON,
|
|
260
231
|
TakoCardFromJSONTyped: () => TakoCardFromJSONTyped,
|
|
232
|
+
TakoCardSourceFromJSON: () => TakoCardSourceFromJSON,
|
|
233
|
+
TakoCardSourceFromJSONTyped: () => TakoCardSourceFromJSONTyped,
|
|
234
|
+
TakoCardSourceToJSON: () => TakoCardSourceToJSON,
|
|
235
|
+
TakoCardSourceToJSONTyped: () => TakoCardSourceToJSONTyped,
|
|
261
236
|
TakoCardToJSON: () => TakoCardToJSON,
|
|
262
237
|
TakoCardToJSONTyped: () => TakoCardToJSONTyped,
|
|
238
|
+
TakoSourceIndex: () => TakoSourceIndex,
|
|
239
|
+
TakoSourceIndexFromJSON: () => TakoSourceIndexFromJSON,
|
|
240
|
+
TakoSourceIndexFromJSONTyped: () => TakoSourceIndexFromJSONTyped,
|
|
241
|
+
TakoSourceIndexToJSON: () => TakoSourceIndexToJSON,
|
|
242
|
+
TakoSourceIndexToJSONTyped: () => TakoSourceIndexToJSONTyped,
|
|
263
243
|
TakoSourceSettingsFromJSON: () => TakoSourceSettingsFromJSON,
|
|
264
244
|
TakoSourceSettingsFromJSONTyped: () => TakoSourceSettingsFromJSONTyped,
|
|
265
245
|
TakoSourceSettingsToJSON: () => TakoSourceSettingsToJSON,
|
|
@@ -270,6 +250,11 @@ __export(index_exports, {
|
|
|
270
250
|
TextEventKindEnum: () => TextEventKindEnum,
|
|
271
251
|
TextEventToJSON: () => TextEventToJSON,
|
|
272
252
|
TextEventToJSONTyped: () => TextEventToJSONTyped,
|
|
253
|
+
ThinVizCardEmbedModeEnum: () => ThinVizCardEmbedModeEnum,
|
|
254
|
+
ThinVizCardFromJSON: () => ThinVizCardFromJSON,
|
|
255
|
+
ThinVizCardFromJSONTyped: () => ThinVizCardFromJSONTyped,
|
|
256
|
+
ThinVizCardToJSON: () => ThinVizCardToJSON,
|
|
257
|
+
ThinVizCardToJSONTyped: () => ThinVizCardToJSONTyped,
|
|
273
258
|
ToolCallEventFromJSON: () => ToolCallEventFromJSON,
|
|
274
259
|
ToolCallEventFromJSONTyped: () => ToolCallEventFromJSONTyped,
|
|
275
260
|
ToolCallEventKindEnum: () => ToolCallEventKindEnum,
|
|
@@ -306,11 +291,9 @@ __export(index_exports, {
|
|
|
306
291
|
instanceOfAgentRunRequest: () => instanceOfAgentRunRequest,
|
|
307
292
|
instanceOfAgentRunStatus: () => instanceOfAgentRunStatus,
|
|
308
293
|
instanceOfAgentStreamEnvelope: () => instanceOfAgentStreamEnvelope,
|
|
294
|
+
instanceOfAgentUsage: () => instanceOfAgentUsage,
|
|
309
295
|
instanceOfAnswerResponse: () => instanceOfAnswerResponse,
|
|
310
296
|
instanceOfBaseAPIError: () => instanceOfBaseAPIError,
|
|
311
|
-
instanceOfCardSourceIndex: () => instanceOfCardSourceIndex,
|
|
312
|
-
instanceOfCardSourceIndexSegment: () => instanceOfCardSourceIndexSegment,
|
|
313
|
-
instanceOfCardSourcePrivateIndex: () => instanceOfCardSourcePrivateIndex,
|
|
314
297
|
instanceOfClassifyRequest: () => instanceOfClassifyRequest,
|
|
315
298
|
instanceOfClassifyResponse: () => instanceOfClassifyResponse,
|
|
316
299
|
instanceOfComponentConfig: () => instanceOfComponentConfig,
|
|
@@ -325,12 +308,8 @@ __export(index_exports, {
|
|
|
325
308
|
instanceOfDataPipelineAnswerEvent: () => instanceOfDataPipelineAnswerEvent,
|
|
326
309
|
instanceOfErrorObject: () => instanceOfErrorObject,
|
|
327
310
|
instanceOfHeartbeatEvent: () => instanceOfHeartbeatEvent,
|
|
328
|
-
instanceOfIdealVizDecision: () => instanceOfIdealVizDecision,
|
|
329
|
-
instanceOfKnowledgeCard: () => instanceOfKnowledgeCard,
|
|
330
311
|
instanceOfKnowledgeCardMethodology: () => instanceOfKnowledgeCardMethodology,
|
|
331
312
|
instanceOfKnowledgeCardRelevance: () => instanceOfKnowledgeCardRelevance,
|
|
332
|
-
instanceOfKnowledgeCardSource: () => instanceOfKnowledgeCardSource,
|
|
333
|
-
instanceOfKnowledgeCardSourceIndexesInner: () => instanceOfKnowledgeCardSourceIndexesInner,
|
|
334
313
|
instanceOfOutputSettings: () => instanceOfOutputSettings,
|
|
335
314
|
instanceOfQueryClassification: () => instanceOfQueryClassification,
|
|
336
315
|
instanceOfReasoningEvent: () => instanceOfReasoningEvent,
|
|
@@ -338,7 +317,6 @@ __export(index_exports, {
|
|
|
338
317
|
instanceOfSearchEffortLevel: () => instanceOfSearchEffortLevel,
|
|
339
318
|
instanceOfSearchRequest: () => instanceOfSearchRequest,
|
|
340
319
|
instanceOfSearchResponse: () => instanceOfSearchResponse,
|
|
341
|
-
instanceOfSourceIndex: () => instanceOfSourceIndex,
|
|
342
320
|
instanceOfSourceSettings: () => instanceOfSourceSettings,
|
|
343
321
|
instanceOfSources: () => instanceOfSources,
|
|
344
322
|
instanceOfStatusEvent: () => instanceOfStatusEvent,
|
|
@@ -347,8 +325,11 @@ __export(index_exports, {
|
|
|
347
325
|
instanceOfStreamResetEvent: () => instanceOfStreamResetEvent,
|
|
348
326
|
instanceOfSubagentEvent: () => instanceOfSubagentEvent,
|
|
349
327
|
instanceOfTakoCard: () => instanceOfTakoCard,
|
|
328
|
+
instanceOfTakoCardSource: () => instanceOfTakoCardSource,
|
|
329
|
+
instanceOfTakoSourceIndex: () => instanceOfTakoSourceIndex,
|
|
350
330
|
instanceOfTakoSourceSettings: () => instanceOfTakoSourceSettings,
|
|
351
331
|
instanceOfTextEvent: () => instanceOfTextEvent,
|
|
332
|
+
instanceOfThinVizCard: () => instanceOfThinVizCard,
|
|
352
333
|
instanceOfToolCallEvent: () => instanceOfToolCallEvent,
|
|
353
334
|
instanceOfToolErrorEvent: () => instanceOfToolErrorEvent,
|
|
354
335
|
instanceOfToolResultEvent: () => instanceOfToolResultEvent,
|
|
@@ -662,6 +643,33 @@ var TextApiResponse = class {
|
|
|
662
643
|
}
|
|
663
644
|
};
|
|
664
645
|
|
|
646
|
+
// src/generated/models/AgentUsage.ts
|
|
647
|
+
function instanceOfAgentUsage(value) {
|
|
648
|
+
return true;
|
|
649
|
+
}
|
|
650
|
+
function AgentUsageFromJSON(json) {
|
|
651
|
+
return AgentUsageFromJSONTyped(json, false);
|
|
652
|
+
}
|
|
653
|
+
function AgentUsageFromJSONTyped(json, ignoreDiscriminator) {
|
|
654
|
+
if (json == null) {
|
|
655
|
+
return json;
|
|
656
|
+
}
|
|
657
|
+
return {
|
|
658
|
+
"usd_cost": json["usd_cost"] == null ? void 0 : json["usd_cost"]
|
|
659
|
+
};
|
|
660
|
+
}
|
|
661
|
+
function AgentUsageToJSON(json) {
|
|
662
|
+
return AgentUsageToJSONTyped(json, false);
|
|
663
|
+
}
|
|
664
|
+
function AgentUsageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
665
|
+
if (value == null) {
|
|
666
|
+
return value;
|
|
667
|
+
}
|
|
668
|
+
return {
|
|
669
|
+
"usd_cost": value["usd_cost"]
|
|
670
|
+
};
|
|
671
|
+
}
|
|
672
|
+
|
|
665
673
|
// src/generated/models/KnowledgeCardMethodology.ts
|
|
666
674
|
function instanceOfKnowledgeCardMethodology(value) {
|
|
667
675
|
if (!("methodology_name" in value) || value["methodology_name"] === void 0) return false;
|
|
@@ -693,135 +701,65 @@ function KnowledgeCardMethodologyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
693
701
|
};
|
|
694
702
|
}
|
|
695
703
|
|
|
696
|
-
// src/generated/models/
|
|
697
|
-
var
|
|
698
|
-
|
|
699
|
-
Web: "web"
|
|
700
|
-
ConnectedData: "connected_data",
|
|
701
|
-
TakoDeepV2: "tako_deep_v2"
|
|
704
|
+
// src/generated/models/TakoSourceIndex.ts
|
|
705
|
+
var TakoSourceIndex = {
|
|
706
|
+
Data: "data",
|
|
707
|
+
Web: "web"
|
|
702
708
|
};
|
|
703
|
-
function
|
|
704
|
-
for (const key in
|
|
705
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
706
|
-
if (
|
|
709
|
+
function instanceOfTakoSourceIndex(value) {
|
|
710
|
+
for (const key in TakoSourceIndex) {
|
|
711
|
+
if (Object.prototype.hasOwnProperty.call(TakoSourceIndex, key)) {
|
|
712
|
+
if (TakoSourceIndex[key] === value) {
|
|
707
713
|
return true;
|
|
708
714
|
}
|
|
709
715
|
}
|
|
710
716
|
}
|
|
711
717
|
return false;
|
|
712
718
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
719
|
+
function TakoSourceIndexFromJSON(json) {
|
|
720
|
+
return TakoSourceIndexFromJSONTyped(json, false);
|
|
715
721
|
}
|
|
716
|
-
function
|
|
722
|
+
function TakoSourceIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
717
723
|
return json;
|
|
718
724
|
}
|
|
719
|
-
function
|
|
725
|
+
function TakoSourceIndexToJSON(value) {
|
|
720
726
|
return value;
|
|
721
727
|
}
|
|
722
|
-
function
|
|
728
|
+
function TakoSourceIndexToJSONTyped(value, ignoreDiscriminator) {
|
|
723
729
|
return value;
|
|
724
730
|
}
|
|
725
731
|
|
|
726
|
-
// src/generated/models/
|
|
727
|
-
function
|
|
728
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
729
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
730
|
-
return true;
|
|
731
|
-
}
|
|
732
|
-
function KnowledgeCardSourceIndexesInnerFromJSON(json) {
|
|
733
|
-
return KnowledgeCardSourceIndexesInnerFromJSONTyped(json, false);
|
|
734
|
-
}
|
|
735
|
-
function KnowledgeCardSourceIndexesInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
736
|
-
if (json == null) {
|
|
737
|
-
return json;
|
|
738
|
-
}
|
|
739
|
-
return {
|
|
740
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
741
|
-
"segment_id": json["segment_id"]
|
|
742
|
-
};
|
|
743
|
-
}
|
|
744
|
-
function KnowledgeCardSourceIndexesInnerToJSON(json) {
|
|
745
|
-
return KnowledgeCardSourceIndexesInnerToJSONTyped(json, false);
|
|
746
|
-
}
|
|
747
|
-
function KnowledgeCardSourceIndexesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
748
|
-
if (value == null) {
|
|
749
|
-
return value;
|
|
750
|
-
}
|
|
751
|
-
return {
|
|
752
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
753
|
-
"segment_id": value["segment_id"]
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
// src/generated/models/SourceIndex.ts
|
|
758
|
-
function instanceOfSourceIndex(value) {
|
|
759
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
760
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
761
|
-
if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
|
|
762
|
-
return true;
|
|
763
|
-
}
|
|
764
|
-
function SourceIndexFromJSON(json) {
|
|
765
|
-
return SourceIndexFromJSONTyped(json, false);
|
|
766
|
-
}
|
|
767
|
-
function SourceIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
768
|
-
if (json == null) {
|
|
769
|
-
return json;
|
|
770
|
-
}
|
|
771
|
-
return {
|
|
772
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
773
|
-
"segment_id": json["segment_id"],
|
|
774
|
-
"private_index_id": json["private_index_id"]
|
|
775
|
-
};
|
|
776
|
-
}
|
|
777
|
-
function SourceIndexToJSON(json) {
|
|
778
|
-
return SourceIndexToJSONTyped(json, false);
|
|
779
|
-
}
|
|
780
|
-
function SourceIndexToJSONTyped(value, ignoreDiscriminator = false) {
|
|
781
|
-
if (value == null) {
|
|
782
|
-
return value;
|
|
783
|
-
}
|
|
784
|
-
return {
|
|
785
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
786
|
-
"segment_id": value["segment_id"],
|
|
787
|
-
"private_index_id": value["private_index_id"]
|
|
788
|
-
};
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
// src/generated/models/KnowledgeCardSource.ts
|
|
792
|
-
function instanceOfKnowledgeCardSource(value) {
|
|
793
|
-
if (!("source_name" in value) || value["source_name"] === void 0) return false;
|
|
794
|
-
if (!("source_description" in value) || value["source_description"] === void 0) return false;
|
|
732
|
+
// src/generated/models/TakoCardSource.ts
|
|
733
|
+
function instanceOfTakoCardSource(value) {
|
|
795
734
|
if (!("source_index" in value) || value["source_index"] === void 0) return false;
|
|
796
|
-
if (!("url" in value) || value["url"] === void 0) return false;
|
|
797
735
|
return true;
|
|
798
736
|
}
|
|
799
|
-
function
|
|
800
|
-
return
|
|
737
|
+
function TakoCardSourceFromJSON(json) {
|
|
738
|
+
return TakoCardSourceFromJSONTyped(json, false);
|
|
801
739
|
}
|
|
802
|
-
function
|
|
740
|
+
function TakoCardSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
803
741
|
if (json == null) {
|
|
804
742
|
return json;
|
|
805
743
|
}
|
|
806
744
|
return {
|
|
807
|
-
"source_name": json["source_name"],
|
|
808
|
-
"source_description": json["source_description"],
|
|
809
|
-
"source_index":
|
|
810
|
-
"url": json["url"],
|
|
745
|
+
"source_name": json["source_name"] == null ? void 0 : json["source_name"],
|
|
746
|
+
"source_description": json["source_description"] == null ? void 0 : json["source_description"],
|
|
747
|
+
"source_index": TakoSourceIndexFromJSON(json["source_index"]),
|
|
748
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
811
749
|
"source_text": json["source_text"] == null ? void 0 : json["source_text"]
|
|
812
750
|
};
|
|
813
751
|
}
|
|
814
|
-
function
|
|
815
|
-
return
|
|
752
|
+
function TakoCardSourceToJSON(json) {
|
|
753
|
+
return TakoCardSourceToJSONTyped(json, false);
|
|
816
754
|
}
|
|
817
|
-
function
|
|
755
|
+
function TakoCardSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
818
756
|
if (value == null) {
|
|
819
757
|
return value;
|
|
820
758
|
}
|
|
821
759
|
return {
|
|
822
760
|
"source_name": value["source_name"],
|
|
823
761
|
"source_description": value["source_description"],
|
|
824
|
-
"source_index":
|
|
762
|
+
"source_index": TakoSourceIndexToJSON(value["source_index"]),
|
|
825
763
|
"url": value["url"],
|
|
826
764
|
"source_text": value["source_text"]
|
|
827
765
|
};
|
|
@@ -939,9 +877,9 @@ function TakoCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
939
877
|
"webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
|
|
940
878
|
"image_url": json["image_url"] == null ? void 0 : json["image_url"],
|
|
941
879
|
"embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
|
|
942
|
-
"sources": json["sources"] == null ? void 0 : json["sources"].map(
|
|
880
|
+
"sources": json["sources"] == null ? void 0 : json["sources"].map(TakoCardSourceFromJSON),
|
|
943
881
|
"methodologies": json["methodologies"] == null ? void 0 : json["methodologies"].map(KnowledgeCardMethodologyFromJSON),
|
|
944
|
-
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(
|
|
882
|
+
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(TakoSourceIndexFromJSON),
|
|
945
883
|
"card_type": json["card_type"] == null ? void 0 : json["card_type"],
|
|
946
884
|
"relevance": json["relevance"] == null ? void 0 : KnowledgeCardRelevanceFromJSON(json["relevance"]),
|
|
947
885
|
"content": json["content"] == null ? void 0 : ResultContentFromJSON(json["content"]),
|
|
@@ -963,9 +901,9 @@ function TakoCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
963
901
|
"webpage_url": value["webpage_url"],
|
|
964
902
|
"image_url": value["image_url"],
|
|
965
903
|
"embed_url": value["embed_url"],
|
|
966
|
-
"sources": value["sources"] == null ? void 0 : value["sources"].map(
|
|
904
|
+
"sources": value["sources"] == null ? void 0 : value["sources"].map(TakoCardSourceToJSON),
|
|
967
905
|
"methodologies": value["methodologies"] == null ? void 0 : value["methodologies"].map(KnowledgeCardMethodologyToJSON),
|
|
968
|
-
"source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(
|
|
906
|
+
"source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(TakoSourceIndexToJSON),
|
|
969
907
|
"card_type": value["card_type"],
|
|
970
908
|
"relevance": KnowledgeCardRelevanceToJSON(value["relevance"]),
|
|
971
909
|
"content": ResultContentToJSON(value["content"]),
|
|
@@ -1047,6 +985,105 @@ function AgentResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1047
985
|
};
|
|
1048
986
|
}
|
|
1049
987
|
|
|
988
|
+
// src/generated/models/AgentEffortLevel.ts
|
|
989
|
+
var AgentEffortLevel = {
|
|
990
|
+
Low: "low",
|
|
991
|
+
Medium: "medium"
|
|
992
|
+
};
|
|
993
|
+
function instanceOfAgentEffortLevel(value) {
|
|
994
|
+
for (const key in AgentEffortLevel) {
|
|
995
|
+
if (Object.prototype.hasOwnProperty.call(AgentEffortLevel, key)) {
|
|
996
|
+
if (AgentEffortLevel[key] === value) {
|
|
997
|
+
return true;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
return false;
|
|
1002
|
+
}
|
|
1003
|
+
function AgentEffortLevelFromJSON(json) {
|
|
1004
|
+
return AgentEffortLevelFromJSONTyped(json, false);
|
|
1005
|
+
}
|
|
1006
|
+
function AgentEffortLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1007
|
+
return json;
|
|
1008
|
+
}
|
|
1009
|
+
function AgentEffortLevelToJSON(value) {
|
|
1010
|
+
return value;
|
|
1011
|
+
}
|
|
1012
|
+
function AgentEffortLevelToJSONTyped(value, ignoreDiscriminator) {
|
|
1013
|
+
return value;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
// src/generated/models/AgentOutputSettings.ts
|
|
1017
|
+
function instanceOfAgentOutputSettings(value) {
|
|
1018
|
+
return true;
|
|
1019
|
+
}
|
|
1020
|
+
function AgentOutputSettingsFromJSON(json) {
|
|
1021
|
+
return AgentOutputSettingsFromJSONTyped(json, false);
|
|
1022
|
+
}
|
|
1023
|
+
function AgentOutputSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1024
|
+
if (json == null) {
|
|
1025
|
+
return json;
|
|
1026
|
+
}
|
|
1027
|
+
return {
|
|
1028
|
+
"image_dark_mode": json["image_dark_mode"] == null ? void 0 : json["image_dark_mode"]
|
|
1029
|
+
};
|
|
1030
|
+
}
|
|
1031
|
+
function AgentOutputSettingsToJSON(json) {
|
|
1032
|
+
return AgentOutputSettingsToJSONTyped(json, false);
|
|
1033
|
+
}
|
|
1034
|
+
function AgentOutputSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1035
|
+
if (value == null) {
|
|
1036
|
+
return value;
|
|
1037
|
+
}
|
|
1038
|
+
return {
|
|
1039
|
+
"image_dark_mode": value["image_dark_mode"]
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// src/generated/models/AgentRunRequest.ts
|
|
1044
|
+
var AgentRunRequestSourceIndexesEnum = {
|
|
1045
|
+
Data: "data",
|
|
1046
|
+
Web: "web"
|
|
1047
|
+
};
|
|
1048
|
+
function instanceOfAgentRunRequest(value) {
|
|
1049
|
+
if (!("query" in value) || value["query"] === void 0) return false;
|
|
1050
|
+
return true;
|
|
1051
|
+
}
|
|
1052
|
+
function AgentRunRequestFromJSON(json) {
|
|
1053
|
+
return AgentRunRequestFromJSONTyped(json, false);
|
|
1054
|
+
}
|
|
1055
|
+
function AgentRunRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1056
|
+
if (json == null) {
|
|
1057
|
+
return json;
|
|
1058
|
+
}
|
|
1059
|
+
return {
|
|
1060
|
+
"query": json["query"],
|
|
1061
|
+
"thread_id": json["thread_id"] == null ? void 0 : json["thread_id"],
|
|
1062
|
+
"effort": json["effort"] == null ? void 0 : AgentEffortLevelFromJSON(json["effort"]),
|
|
1063
|
+
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"],
|
|
1064
|
+
"locale": json["locale"] == null ? void 0 : json["locale"],
|
|
1065
|
+
"timezone": json["timezone"] == null ? void 0 : json["timezone"],
|
|
1066
|
+
"output_settings": json["output_settings"] == null ? void 0 : AgentOutputSettingsFromJSON(json["output_settings"])
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
function AgentRunRequestToJSON(json) {
|
|
1070
|
+
return AgentRunRequestToJSONTyped(json, false);
|
|
1071
|
+
}
|
|
1072
|
+
function AgentRunRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1073
|
+
if (value == null) {
|
|
1074
|
+
return value;
|
|
1075
|
+
}
|
|
1076
|
+
return {
|
|
1077
|
+
"query": value["query"],
|
|
1078
|
+
"thread_id": value["thread_id"],
|
|
1079
|
+
"effort": AgentEffortLevelToJSON(value["effort"]),
|
|
1080
|
+
"source_indexes": value["source_indexes"],
|
|
1081
|
+
"locale": value["locale"],
|
|
1082
|
+
"timezone": value["timezone"],
|
|
1083
|
+
"output_settings": AgentOutputSettingsToJSON(value["output_settings"])
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1050
1087
|
// src/generated/models/AgentRunStatus.ts
|
|
1051
1088
|
var AgentRunStatus = {
|
|
1052
1089
|
Queued: "queued",
|
|
@@ -1133,7 +1170,9 @@ function AgentRunFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1133
1170
|
"created_at": json["created_at"],
|
|
1134
1171
|
"completed_at": json["completed_at"] == null ? void 0 : json["completed_at"],
|
|
1135
1172
|
"result": json["result"] == null ? void 0 : AgentResultFromJSON(json["result"]),
|
|
1136
|
-
"error": json["error"] == null ? void 0 : ErrorObjectFromJSON(json["error"])
|
|
1173
|
+
"error": json["error"] == null ? void 0 : ErrorObjectFromJSON(json["error"]),
|
|
1174
|
+
"usage": json["usage"] == null ? void 0 : AgentUsageFromJSON(json["usage"]),
|
|
1175
|
+
"request": json["request"] == null ? void 0 : AgentRunRequestFromJSON(json["request"])
|
|
1137
1176
|
};
|
|
1138
1177
|
}
|
|
1139
1178
|
function AgentRunToJSON(json) {
|
|
@@ -1151,105 +1190,9 @@ function AgentRunToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1151
1190
|
"created_at": value["created_at"],
|
|
1152
1191
|
"completed_at": value["completed_at"],
|
|
1153
1192
|
"result": AgentResultToJSON(value["result"]),
|
|
1154
|
-
"error": ErrorObjectToJSON(value["error"])
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
// src/generated/models/AgentEffortLevel.ts
|
|
1159
|
-
var AgentEffortLevel = {
|
|
1160
|
-
Medium: "medium"
|
|
1161
|
-
};
|
|
1162
|
-
function instanceOfAgentEffortLevel(value) {
|
|
1163
|
-
for (const key in AgentEffortLevel) {
|
|
1164
|
-
if (Object.prototype.hasOwnProperty.call(AgentEffortLevel, key)) {
|
|
1165
|
-
if (AgentEffortLevel[key] === value) {
|
|
1166
|
-
return true;
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
return false;
|
|
1171
|
-
}
|
|
1172
|
-
function AgentEffortLevelFromJSON(json) {
|
|
1173
|
-
return AgentEffortLevelFromJSONTyped(json, false);
|
|
1174
|
-
}
|
|
1175
|
-
function AgentEffortLevelFromJSONTyped(json, ignoreDiscriminator) {
|
|
1176
|
-
return json;
|
|
1177
|
-
}
|
|
1178
|
-
function AgentEffortLevelToJSON(value) {
|
|
1179
|
-
return value;
|
|
1180
|
-
}
|
|
1181
|
-
function AgentEffortLevelToJSONTyped(value, ignoreDiscriminator) {
|
|
1182
|
-
return value;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
// src/generated/models/AgentOutputSettings.ts
|
|
1186
|
-
function instanceOfAgentOutputSettings(value) {
|
|
1187
|
-
return true;
|
|
1188
|
-
}
|
|
1189
|
-
function AgentOutputSettingsFromJSON(json) {
|
|
1190
|
-
return AgentOutputSettingsFromJSONTyped(json, false);
|
|
1191
|
-
}
|
|
1192
|
-
function AgentOutputSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1193
|
-
if (json == null) {
|
|
1194
|
-
return json;
|
|
1195
|
-
}
|
|
1196
|
-
return {
|
|
1197
|
-
"image_dark_mode": json["image_dark_mode"] == null ? void 0 : json["image_dark_mode"]
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
function AgentOutputSettingsToJSON(json) {
|
|
1201
|
-
return AgentOutputSettingsToJSONTyped(json, false);
|
|
1202
|
-
}
|
|
1203
|
-
function AgentOutputSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1204
|
-
if (value == null) {
|
|
1205
|
-
return value;
|
|
1206
|
-
}
|
|
1207
|
-
return {
|
|
1208
|
-
"image_dark_mode": value["image_dark_mode"]
|
|
1209
|
-
};
|
|
1210
|
-
}
|
|
1211
|
-
|
|
1212
|
-
// src/generated/models/AgentRunRequest.ts
|
|
1213
|
-
var AgentRunRequestSourceIndexesEnum = {
|
|
1214
|
-
Data: "data",
|
|
1215
|
-
Web: "web"
|
|
1216
|
-
};
|
|
1217
|
-
function instanceOfAgentRunRequest(value) {
|
|
1218
|
-
if (!("query" in value) || value["query"] === void 0) return false;
|
|
1219
|
-
return true;
|
|
1220
|
-
}
|
|
1221
|
-
function AgentRunRequestFromJSON(json) {
|
|
1222
|
-
return AgentRunRequestFromJSONTyped(json, false);
|
|
1223
|
-
}
|
|
1224
|
-
function AgentRunRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1225
|
-
if (json == null) {
|
|
1226
|
-
return json;
|
|
1227
|
-
}
|
|
1228
|
-
return {
|
|
1229
|
-
"query": json["query"],
|
|
1230
|
-
"thread_id": json["thread_id"] == null ? void 0 : json["thread_id"],
|
|
1231
|
-
"effort": json["effort"] == null ? void 0 : AgentEffortLevelFromJSON(json["effort"]),
|
|
1232
|
-
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"],
|
|
1233
|
-
"locale": json["locale"] == null ? void 0 : json["locale"],
|
|
1234
|
-
"timezone": json["timezone"] == null ? void 0 : json["timezone"],
|
|
1235
|
-
"output_settings": json["output_settings"] == null ? void 0 : AgentOutputSettingsFromJSON(json["output_settings"])
|
|
1236
|
-
};
|
|
1237
|
-
}
|
|
1238
|
-
function AgentRunRequestToJSON(json) {
|
|
1239
|
-
return AgentRunRequestToJSONTyped(json, false);
|
|
1240
|
-
}
|
|
1241
|
-
function AgentRunRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1242
|
-
if (value == null) {
|
|
1243
|
-
return value;
|
|
1244
|
-
}
|
|
1245
|
-
return {
|
|
1246
|
-
"query": value["query"],
|
|
1247
|
-
"thread_id": value["thread_id"],
|
|
1248
|
-
"effort": AgentEffortLevelToJSON(value["effort"]),
|
|
1249
|
-
"source_indexes": value["source_indexes"],
|
|
1250
|
-
"locale": value["locale"],
|
|
1251
|
-
"timezone": value["timezone"],
|
|
1252
|
-
"output_settings": AgentOutputSettingsToJSON(value["output_settings"])
|
|
1193
|
+
"error": ErrorObjectToJSON(value["error"]),
|
|
1194
|
+
"usage": AgentUsageToJSON(value["usage"]),
|
|
1195
|
+
"request": AgentRunRequestToJSON(value["request"])
|
|
1253
1196
|
};
|
|
1254
1197
|
}
|
|
1255
1198
|
|
|
@@ -1715,107 +1658,6 @@ function CreateCardRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1715
1658
|
};
|
|
1716
1659
|
}
|
|
1717
1660
|
|
|
1718
|
-
// src/generated/models/IdealVizDecision.ts
|
|
1719
|
-
function instanceOfIdealVizDecision(value) {
|
|
1720
|
-
if (!("property_path" in value) || value["property_path"] === void 0) return false;
|
|
1721
|
-
if (!("reason" in value) || value["reason"] === void 0) return false;
|
|
1722
|
-
return true;
|
|
1723
|
-
}
|
|
1724
|
-
function IdealVizDecisionFromJSON(json) {
|
|
1725
|
-
return IdealVizDecisionFromJSONTyped(json, false);
|
|
1726
|
-
}
|
|
1727
|
-
function IdealVizDecisionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1728
|
-
if (json == null) {
|
|
1729
|
-
return json;
|
|
1730
|
-
}
|
|
1731
|
-
return {
|
|
1732
|
-
"property_path": json["property_path"],
|
|
1733
|
-
"property_path_display_name": json["property_path_display_name"] == null ? void 0 : json["property_path_display_name"],
|
|
1734
|
-
"reason": json["reason"]
|
|
1735
|
-
};
|
|
1736
|
-
}
|
|
1737
|
-
function IdealVizDecisionToJSON(json) {
|
|
1738
|
-
return IdealVizDecisionToJSONTyped(json, false);
|
|
1739
|
-
}
|
|
1740
|
-
function IdealVizDecisionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1741
|
-
if (value == null) {
|
|
1742
|
-
return value;
|
|
1743
|
-
}
|
|
1744
|
-
return {
|
|
1745
|
-
"property_path": value["property_path"],
|
|
1746
|
-
"property_path_display_name": value["property_path_display_name"],
|
|
1747
|
-
"reason": value["reason"]
|
|
1748
|
-
};
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
// src/generated/models/KnowledgeCard.ts
|
|
1752
|
-
function instanceOfKnowledgeCard(value) {
|
|
1753
|
-
if (!("card_id" in value) || value["card_id"] === void 0) return false;
|
|
1754
|
-
if (!("title" in value) || value["title"] === void 0) return false;
|
|
1755
|
-
if (!("description" in value) || value["description"] === void 0) return false;
|
|
1756
|
-
if (!("webpage_url" in value) || value["webpage_url"] === void 0) return false;
|
|
1757
|
-
if (!("image_url" in value) || value["image_url"] === void 0) return false;
|
|
1758
|
-
if (!("embed_url" in value) || value["embed_url"] === void 0) return false;
|
|
1759
|
-
if (!("sources" in value) || value["sources"] === void 0) return false;
|
|
1760
|
-
if (!("methodologies" in value) || value["methodologies"] === void 0) return false;
|
|
1761
|
-
if (!("source_indexes" in value) || value["source_indexes"] === void 0) return false;
|
|
1762
|
-
if (!("card_type" in value) || value["card_type"] === void 0) return false;
|
|
1763
|
-
if (!("data_url" in value) || value["data_url"] === void 0) return false;
|
|
1764
|
-
if (!("relevance" in value) || value["relevance"] === void 0) return false;
|
|
1765
|
-
if (!("visualization_data" in value) || value["visualization_data"] === void 0) return false;
|
|
1766
|
-
return true;
|
|
1767
|
-
}
|
|
1768
|
-
function KnowledgeCardFromJSON(json) {
|
|
1769
|
-
return KnowledgeCardFromJSONTyped(json, false);
|
|
1770
|
-
}
|
|
1771
|
-
function KnowledgeCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
1772
|
-
if (json == null) {
|
|
1773
|
-
return json;
|
|
1774
|
-
}
|
|
1775
|
-
return {
|
|
1776
|
-
"card_id": json["card_id"],
|
|
1777
|
-
"title": json["title"],
|
|
1778
|
-
"description": json["description"],
|
|
1779
|
-
"semantic_description": json["semantic_description"] == null ? void 0 : json["semantic_description"],
|
|
1780
|
-
"webpage_url": json["webpage_url"],
|
|
1781
|
-
"image_url": json["image_url"],
|
|
1782
|
-
"embed_url": json["embed_url"],
|
|
1783
|
-
"sources": json["sources"] == null ? null : json["sources"].map(KnowledgeCardSourceFromJSON),
|
|
1784
|
-
"methodologies": json["methodologies"] == null ? null : json["methodologies"].map(KnowledgeCardMethodologyFromJSON),
|
|
1785
|
-
"source_indexes": json["source_indexes"] == null ? null : json["source_indexes"].map(KnowledgeCardSourceIndexesInnerFromJSON),
|
|
1786
|
-
"card_type": json["card_type"],
|
|
1787
|
-
"data_url": json["data_url"],
|
|
1788
|
-
"relevance": KnowledgeCardRelevanceFromJSON(json["relevance"]),
|
|
1789
|
-
"visualization_data": json["visualization_data"],
|
|
1790
|
-
"ideal_viz_decisions": json["ideal_viz_decisions"] == null ? void 0 : json["ideal_viz_decisions"].map(IdealVizDecisionFromJSON)
|
|
1791
|
-
};
|
|
1792
|
-
}
|
|
1793
|
-
function KnowledgeCardToJSON(json) {
|
|
1794
|
-
return KnowledgeCardToJSONTyped(json, false);
|
|
1795
|
-
}
|
|
1796
|
-
function KnowledgeCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1797
|
-
if (value == null) {
|
|
1798
|
-
return value;
|
|
1799
|
-
}
|
|
1800
|
-
return {
|
|
1801
|
-
"card_id": value["card_id"],
|
|
1802
|
-
"title": value["title"],
|
|
1803
|
-
"description": value["description"],
|
|
1804
|
-
"semantic_description": value["semantic_description"],
|
|
1805
|
-
"webpage_url": value["webpage_url"],
|
|
1806
|
-
"image_url": value["image_url"],
|
|
1807
|
-
"embed_url": value["embed_url"],
|
|
1808
|
-
"sources": value["sources"] == null ? null : value["sources"].map(KnowledgeCardSourceToJSON),
|
|
1809
|
-
"methodologies": value["methodologies"] == null ? null : value["methodologies"].map(KnowledgeCardMethodologyToJSON),
|
|
1810
|
-
"source_indexes": value["source_indexes"] == null ? null : value["source_indexes"].map(KnowledgeCardSourceIndexesInnerToJSON),
|
|
1811
|
-
"card_type": value["card_type"],
|
|
1812
|
-
"data_url": value["data_url"],
|
|
1813
|
-
"relevance": KnowledgeCardRelevanceToJSON(value["relevance"]),
|
|
1814
|
-
"visualization_data": value["visualization_data"],
|
|
1815
|
-
"ideal_viz_decisions": value["ideal_viz_decisions"] == null ? void 0 : value["ideal_viz_decisions"].map(IdealVizDecisionToJSON)
|
|
1816
|
-
};
|
|
1817
|
-
}
|
|
1818
|
-
|
|
1819
1661
|
// src/generated/models/SearchEffortLevel.ts
|
|
1820
1662
|
var SearchEffortLevel = {
|
|
1821
1663
|
Fast: "fast",
|
|
@@ -2037,6 +1879,53 @@ function SearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2037
1879
|
};
|
|
2038
1880
|
}
|
|
2039
1881
|
|
|
1882
|
+
// src/generated/models/ThinVizCard.ts
|
|
1883
|
+
var ThinVizCardEmbedModeEnum = {
|
|
1884
|
+
Post: "post",
|
|
1885
|
+
Postmessage: "postmessage"
|
|
1886
|
+
};
|
|
1887
|
+
function instanceOfThinVizCard(value) {
|
|
1888
|
+
return true;
|
|
1889
|
+
}
|
|
1890
|
+
function ThinVizCardFromJSON(json) {
|
|
1891
|
+
return ThinVizCardFromJSONTyped(json, false);
|
|
1892
|
+
}
|
|
1893
|
+
function ThinVizCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
1894
|
+
if (json == null) {
|
|
1895
|
+
return json;
|
|
1896
|
+
}
|
|
1897
|
+
return {
|
|
1898
|
+
"card_id": json["card_id"] == null ? void 0 : json["card_id"],
|
|
1899
|
+
"title": json["title"] == null ? void 0 : json["title"],
|
|
1900
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
1901
|
+
"webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
|
|
1902
|
+
"image_url": json["image_url"] == null ? void 0 : json["image_url"],
|
|
1903
|
+
"embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
|
|
1904
|
+
"card_type": json["card_type"] == null ? void 0 : json["card_type"],
|
|
1905
|
+
"visualization_data": json["visualization_data"] == null ? void 0 : json["visualization_data"],
|
|
1906
|
+
"embed_mode": json["embed_mode"] == null ? void 0 : json["embed_mode"]
|
|
1907
|
+
};
|
|
1908
|
+
}
|
|
1909
|
+
function ThinVizCardToJSON(json) {
|
|
1910
|
+
return ThinVizCardToJSONTyped(json, false);
|
|
1911
|
+
}
|
|
1912
|
+
function ThinVizCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1913
|
+
if (value == null) {
|
|
1914
|
+
return value;
|
|
1915
|
+
}
|
|
1916
|
+
return {
|
|
1917
|
+
"card_id": value["card_id"],
|
|
1918
|
+
"title": value["title"],
|
|
1919
|
+
"description": value["description"],
|
|
1920
|
+
"webpage_url": value["webpage_url"],
|
|
1921
|
+
"image_url": value["image_url"],
|
|
1922
|
+
"embed_url": value["embed_url"],
|
|
1923
|
+
"card_type": value["card_type"],
|
|
1924
|
+
"visualization_data": value["visualization_data"],
|
|
1925
|
+
"embed_mode": value["embed_mode"]
|
|
1926
|
+
};
|
|
1927
|
+
}
|
|
1928
|
+
|
|
2040
1929
|
// src/generated/apis/TakoApi.ts
|
|
2041
1930
|
var TakoApi = class extends BaseAPI {
|
|
2042
1931
|
/**
|
|
@@ -2172,7 +2061,7 @@ var TakoApi = class extends BaseAPI {
|
|
|
2172
2061
|
async createCardRaw(requestParameters, initOverrides) {
|
|
2173
2062
|
const requestOptions = await this.createCardRequestOpts(requestParameters);
|
|
2174
2063
|
const response = await this.request(requestOptions, initOverrides);
|
|
2175
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
2064
|
+
return new JSONApiResponse(response, (jsonValue) => ThinVizCardFromJSON(jsonValue));
|
|
2176
2065
|
}
|
|
2177
2066
|
/**
|
|
2178
2067
|
* Create a visualization card directly from component configurations. Supported component types: header, generic_timeseries, categorical_bar, stock_boxes, financial_boxes, table.
|
|
@@ -2229,7 +2118,8 @@ var APIErrorType = {
|
|
|
2229
2118
|
PaymentRequired: "PAYMENT_REQUIRED",
|
|
2230
2119
|
RequestTimeout: "REQUEST_TIMEOUT",
|
|
2231
2120
|
Forbidden: "FORBIDDEN",
|
|
2232
|
-
NotFound: "NOT_FOUND"
|
|
2121
|
+
NotFound: "NOT_FOUND",
|
|
2122
|
+
ServiceUnavailable: "SERVICE_UNAVAILABLE"
|
|
2233
2123
|
};
|
|
2234
2124
|
function instanceOfAPIErrorType(value) {
|
|
2235
2125
|
for (const key in APIErrorType) {
|
|
@@ -2916,70 +2806,6 @@ function BaseAPIErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2916
2806
|
};
|
|
2917
2807
|
}
|
|
2918
2808
|
|
|
2919
|
-
// src/generated/models/CardSourceIndexSegment.ts
|
|
2920
|
-
function instanceOfCardSourceIndexSegment(value) {
|
|
2921
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
2922
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
2923
|
-
return true;
|
|
2924
|
-
}
|
|
2925
|
-
function CardSourceIndexSegmentFromJSON(json) {
|
|
2926
|
-
return CardSourceIndexSegmentFromJSONTyped(json, false);
|
|
2927
|
-
}
|
|
2928
|
-
function CardSourceIndexSegmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
2929
|
-
if (json == null) {
|
|
2930
|
-
return json;
|
|
2931
|
-
}
|
|
2932
|
-
return {
|
|
2933
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
2934
|
-
"segment_id": json["segment_id"]
|
|
2935
|
-
};
|
|
2936
|
-
}
|
|
2937
|
-
function CardSourceIndexSegmentToJSON(json) {
|
|
2938
|
-
return CardSourceIndexSegmentToJSONTyped(json, false);
|
|
2939
|
-
}
|
|
2940
|
-
function CardSourceIndexSegmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2941
|
-
if (value == null) {
|
|
2942
|
-
return value;
|
|
2943
|
-
}
|
|
2944
|
-
return {
|
|
2945
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
2946
|
-
"segment_id": value["segment_id"]
|
|
2947
|
-
};
|
|
2948
|
-
}
|
|
2949
|
-
|
|
2950
|
-
// src/generated/models/CardSourcePrivateIndex.ts
|
|
2951
|
-
function instanceOfCardSourcePrivateIndex(value) {
|
|
2952
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
2953
|
-
if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
|
|
2954
|
-
return true;
|
|
2955
|
-
}
|
|
2956
|
-
function CardSourcePrivateIndexFromJSON(json) {
|
|
2957
|
-
return CardSourcePrivateIndexFromJSONTyped(json, false);
|
|
2958
|
-
}
|
|
2959
|
-
function CardSourcePrivateIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
2960
|
-
if (json == null) {
|
|
2961
|
-
return json;
|
|
2962
|
-
}
|
|
2963
|
-
return {
|
|
2964
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
2965
|
-
"segment_id": json["segment_id"] == null ? void 0 : json["segment_id"],
|
|
2966
|
-
"private_index_id": json["private_index_id"]
|
|
2967
|
-
};
|
|
2968
|
-
}
|
|
2969
|
-
function CardSourcePrivateIndexToJSON(json) {
|
|
2970
|
-
return CardSourcePrivateIndexToJSONTyped(json, false);
|
|
2971
|
-
}
|
|
2972
|
-
function CardSourcePrivateIndexToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2973
|
-
if (value == null) {
|
|
2974
|
-
return value;
|
|
2975
|
-
}
|
|
2976
|
-
return {
|
|
2977
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
2978
|
-
"segment_id": value["segment_id"],
|
|
2979
|
-
"private_index_id": value["private_index_id"]
|
|
2980
|
-
};
|
|
2981
|
-
}
|
|
2982
|
-
|
|
2983
2809
|
// src/generated/models/CreateCard400Response.ts
|
|
2984
2810
|
function instanceOfCreateCard400Response(value) {
|
|
2985
2811
|
if (!("error" in value) || value["error"] === void 0) return false;
|
|
@@ -3260,6 +3086,10 @@ var Tako = class {
|
|
|
3260
3086
|
AgentStreamEnvelopeFromJSONTyped,
|
|
3261
3087
|
AgentStreamEnvelopeToJSON,
|
|
3262
3088
|
AgentStreamEnvelopeToJSONTyped,
|
|
3089
|
+
AgentUsageFromJSON,
|
|
3090
|
+
AgentUsageFromJSONTyped,
|
|
3091
|
+
AgentUsageToJSON,
|
|
3092
|
+
AgentUsageToJSONTyped,
|
|
3263
3093
|
AnswerResponseFromJSON,
|
|
3264
3094
|
AnswerResponseFromJSONTyped,
|
|
3265
3095
|
AnswerResponseToJSON,
|
|
@@ -3276,19 +3106,6 @@ var Tako = class {
|
|
|
3276
3106
|
BlockToJSON,
|
|
3277
3107
|
BlockToJSONTyped,
|
|
3278
3108
|
COLLECTION_FORMATS,
|
|
3279
|
-
CardSourceIndex,
|
|
3280
|
-
CardSourceIndexFromJSON,
|
|
3281
|
-
CardSourceIndexFromJSONTyped,
|
|
3282
|
-
CardSourceIndexSegmentFromJSON,
|
|
3283
|
-
CardSourceIndexSegmentFromJSONTyped,
|
|
3284
|
-
CardSourceIndexSegmentToJSON,
|
|
3285
|
-
CardSourceIndexSegmentToJSONTyped,
|
|
3286
|
-
CardSourceIndexToJSON,
|
|
3287
|
-
CardSourceIndexToJSONTyped,
|
|
3288
|
-
CardSourcePrivateIndexFromJSON,
|
|
3289
|
-
CardSourcePrivateIndexFromJSONTyped,
|
|
3290
|
-
CardSourcePrivateIndexToJSON,
|
|
3291
|
-
CardSourcePrivateIndexToJSONTyped,
|
|
3292
3109
|
ClassifyRequestFromJSON,
|
|
3293
3110
|
ClassifyRequestFromJSONTyped,
|
|
3294
3111
|
ClassifyRequestToJSON,
|
|
@@ -3353,13 +3170,7 @@ var Tako = class {
|
|
|
3353
3170
|
HeartbeatEventKindEnum,
|
|
3354
3171
|
HeartbeatEventToJSON,
|
|
3355
3172
|
HeartbeatEventToJSONTyped,
|
|
3356
|
-
IdealVizDecisionFromJSON,
|
|
3357
|
-
IdealVizDecisionFromJSONTyped,
|
|
3358
|
-
IdealVizDecisionToJSON,
|
|
3359
|
-
IdealVizDecisionToJSONTyped,
|
|
3360
3173
|
JSONApiResponse,
|
|
3361
|
-
KnowledgeCardFromJSON,
|
|
3362
|
-
KnowledgeCardFromJSONTyped,
|
|
3363
3174
|
KnowledgeCardMethodologyFromJSON,
|
|
3364
3175
|
KnowledgeCardMethodologyFromJSONTyped,
|
|
3365
3176
|
KnowledgeCardMethodologyToJSON,
|
|
@@ -3369,16 +3180,6 @@ var Tako = class {
|
|
|
3369
3180
|
KnowledgeCardRelevanceFromJSONTyped,
|
|
3370
3181
|
KnowledgeCardRelevanceToJSON,
|
|
3371
3182
|
KnowledgeCardRelevanceToJSONTyped,
|
|
3372
|
-
KnowledgeCardSourceFromJSON,
|
|
3373
|
-
KnowledgeCardSourceFromJSONTyped,
|
|
3374
|
-
KnowledgeCardSourceIndexesInnerFromJSON,
|
|
3375
|
-
KnowledgeCardSourceIndexesInnerFromJSONTyped,
|
|
3376
|
-
KnowledgeCardSourceIndexesInnerToJSON,
|
|
3377
|
-
KnowledgeCardSourceIndexesInnerToJSONTyped,
|
|
3378
|
-
KnowledgeCardSourceToJSON,
|
|
3379
|
-
KnowledgeCardSourceToJSONTyped,
|
|
3380
|
-
KnowledgeCardToJSON,
|
|
3381
|
-
KnowledgeCardToJSONTyped,
|
|
3382
3183
|
OutputSettingsFromJSON,
|
|
3383
3184
|
OutputSettingsFromJSONTyped,
|
|
3384
3185
|
OutputSettingsToJSON,
|
|
@@ -3411,10 +3212,6 @@ var Tako = class {
|
|
|
3411
3212
|
SearchResponseFromJSONTyped,
|
|
3412
3213
|
SearchResponseToJSON,
|
|
3413
3214
|
SearchResponseToJSONTyped,
|
|
3414
|
-
SourceIndexFromJSON,
|
|
3415
|
-
SourceIndexFromJSONTyped,
|
|
3416
|
-
SourceIndexToJSON,
|
|
3417
|
-
SourceIndexToJSONTyped,
|
|
3418
3215
|
SourceSettingsFromJSON,
|
|
3419
3216
|
SourceSettingsFromJSONTyped,
|
|
3420
3217
|
SourceSettingsToJSON,
|
|
@@ -3453,8 +3250,17 @@ var Tako = class {
|
|
|
3453
3250
|
TakoApi,
|
|
3454
3251
|
TakoCardFromJSON,
|
|
3455
3252
|
TakoCardFromJSONTyped,
|
|
3253
|
+
TakoCardSourceFromJSON,
|
|
3254
|
+
TakoCardSourceFromJSONTyped,
|
|
3255
|
+
TakoCardSourceToJSON,
|
|
3256
|
+
TakoCardSourceToJSONTyped,
|
|
3456
3257
|
TakoCardToJSON,
|
|
3457
3258
|
TakoCardToJSONTyped,
|
|
3259
|
+
TakoSourceIndex,
|
|
3260
|
+
TakoSourceIndexFromJSON,
|
|
3261
|
+
TakoSourceIndexFromJSONTyped,
|
|
3262
|
+
TakoSourceIndexToJSON,
|
|
3263
|
+
TakoSourceIndexToJSONTyped,
|
|
3458
3264
|
TakoSourceSettingsFromJSON,
|
|
3459
3265
|
TakoSourceSettingsFromJSONTyped,
|
|
3460
3266
|
TakoSourceSettingsToJSON,
|
|
@@ -3465,6 +3271,11 @@ var Tako = class {
|
|
|
3465
3271
|
TextEventKindEnum,
|
|
3466
3272
|
TextEventToJSON,
|
|
3467
3273
|
TextEventToJSONTyped,
|
|
3274
|
+
ThinVizCardEmbedModeEnum,
|
|
3275
|
+
ThinVizCardFromJSON,
|
|
3276
|
+
ThinVizCardFromJSONTyped,
|
|
3277
|
+
ThinVizCardToJSON,
|
|
3278
|
+
ThinVizCardToJSONTyped,
|
|
3468
3279
|
ToolCallEventFromJSON,
|
|
3469
3280
|
ToolCallEventFromJSONTyped,
|
|
3470
3281
|
ToolCallEventKindEnum,
|
|
@@ -3501,11 +3312,9 @@ var Tako = class {
|
|
|
3501
3312
|
instanceOfAgentRunRequest,
|
|
3502
3313
|
instanceOfAgentRunStatus,
|
|
3503
3314
|
instanceOfAgentStreamEnvelope,
|
|
3315
|
+
instanceOfAgentUsage,
|
|
3504
3316
|
instanceOfAnswerResponse,
|
|
3505
3317
|
instanceOfBaseAPIError,
|
|
3506
|
-
instanceOfCardSourceIndex,
|
|
3507
|
-
instanceOfCardSourceIndexSegment,
|
|
3508
|
-
instanceOfCardSourcePrivateIndex,
|
|
3509
3318
|
instanceOfClassifyRequest,
|
|
3510
3319
|
instanceOfClassifyResponse,
|
|
3511
3320
|
instanceOfComponentConfig,
|
|
@@ -3520,12 +3329,8 @@ var Tako = class {
|
|
|
3520
3329
|
instanceOfDataPipelineAnswerEvent,
|
|
3521
3330
|
instanceOfErrorObject,
|
|
3522
3331
|
instanceOfHeartbeatEvent,
|
|
3523
|
-
instanceOfIdealVizDecision,
|
|
3524
|
-
instanceOfKnowledgeCard,
|
|
3525
3332
|
instanceOfKnowledgeCardMethodology,
|
|
3526
3333
|
instanceOfKnowledgeCardRelevance,
|
|
3527
|
-
instanceOfKnowledgeCardSource,
|
|
3528
|
-
instanceOfKnowledgeCardSourceIndexesInner,
|
|
3529
3334
|
instanceOfOutputSettings,
|
|
3530
3335
|
instanceOfQueryClassification,
|
|
3531
3336
|
instanceOfReasoningEvent,
|
|
@@ -3533,7 +3338,6 @@ var Tako = class {
|
|
|
3533
3338
|
instanceOfSearchEffortLevel,
|
|
3534
3339
|
instanceOfSearchRequest,
|
|
3535
3340
|
instanceOfSearchResponse,
|
|
3536
|
-
instanceOfSourceIndex,
|
|
3537
3341
|
instanceOfSourceSettings,
|
|
3538
3342
|
instanceOfSources,
|
|
3539
3343
|
instanceOfStatusEvent,
|
|
@@ -3542,8 +3346,11 @@ var Tako = class {
|
|
|
3542
3346
|
instanceOfStreamResetEvent,
|
|
3543
3347
|
instanceOfSubagentEvent,
|
|
3544
3348
|
instanceOfTakoCard,
|
|
3349
|
+
instanceOfTakoCardSource,
|
|
3350
|
+
instanceOfTakoSourceIndex,
|
|
3545
3351
|
instanceOfTakoSourceSettings,
|
|
3546
3352
|
instanceOfTextEvent,
|
|
3353
|
+
instanceOfThinVizCard,
|
|
3547
3354
|
instanceOfToolCallEvent,
|
|
3548
3355
|
instanceOfToolErrorEvent,
|
|
3549
3356
|
instanceOfToolResultEvent,
|