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/README.md +2 -2
- package/dist/index.cjs +703 -514
- package/dist/index.d.cts +682 -534
- package/dist/index.d.ts +682 -534
- package/dist/index.js +643 -453
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -85,27 +85,6 @@ __export(index_exports, {
|
|
|
85
85
|
BlockToJSON: () => BlockToJSON,
|
|
86
86
|
BlockToJSONTyped: () => BlockToJSONTyped,
|
|
87
87
|
COLLECTION_FORMATS: () => COLLECTION_FORMATS,
|
|
88
|
-
CardSourceIndex: () => CardSourceIndex,
|
|
89
|
-
CardSourceIndexFromJSON: () => CardSourceIndexFromJSON,
|
|
90
|
-
CardSourceIndexFromJSONTyped: () => CardSourceIndexFromJSONTyped,
|
|
91
|
-
CardSourceIndexSegmentFromJSON: () => CardSourceIndexSegmentFromJSON,
|
|
92
|
-
CardSourceIndexSegmentFromJSONTyped: () => CardSourceIndexSegmentFromJSONTyped,
|
|
93
|
-
CardSourceIndexSegmentToJSON: () => CardSourceIndexSegmentToJSON,
|
|
94
|
-
CardSourceIndexSegmentToJSONTyped: () => CardSourceIndexSegmentToJSONTyped,
|
|
95
|
-
CardSourceIndexToJSON: () => CardSourceIndexToJSON,
|
|
96
|
-
CardSourceIndexToJSONTyped: () => CardSourceIndexToJSONTyped,
|
|
97
|
-
CardSourcePrivateIndexFromJSON: () => CardSourcePrivateIndexFromJSON,
|
|
98
|
-
CardSourcePrivateIndexFromJSONTyped: () => CardSourcePrivateIndexFromJSONTyped,
|
|
99
|
-
CardSourcePrivateIndexToJSON: () => CardSourcePrivateIndexToJSON,
|
|
100
|
-
CardSourcePrivateIndexToJSONTyped: () => CardSourcePrivateIndexToJSONTyped,
|
|
101
|
-
ClassifyRequestFromJSON: () => ClassifyRequestFromJSON,
|
|
102
|
-
ClassifyRequestFromJSONTyped: () => ClassifyRequestFromJSONTyped,
|
|
103
|
-
ClassifyRequestToJSON: () => ClassifyRequestToJSON,
|
|
104
|
-
ClassifyRequestToJSONTyped: () => ClassifyRequestToJSONTyped,
|
|
105
|
-
ClassifyResponseFromJSON: () => ClassifyResponseFromJSON,
|
|
106
|
-
ClassifyResponseFromJSONTyped: () => ClassifyResponseFromJSONTyped,
|
|
107
|
-
ClassifyResponseToJSON: () => ClassifyResponseToJSON,
|
|
108
|
-
ClassifyResponseToJSONTyped: () => ClassifyResponseToJSONTyped,
|
|
109
88
|
ComponentConfigFromJSON: () => ComponentConfigFromJSON,
|
|
110
89
|
ComponentConfigFromJSONTyped: () => ComponentConfigFromJSONTyped,
|
|
111
90
|
ComponentConfigToJSON: () => ComponentConfigToJSON,
|
|
@@ -152,23 +131,44 @@ __export(index_exports, {
|
|
|
152
131
|
DataPipelineAnswerEventToJSON: () => DataPipelineAnswerEventToJSON,
|
|
153
132
|
DataPipelineAnswerEventToJSONTyped: () => DataPipelineAnswerEventToJSONTyped,
|
|
154
133
|
DefaultConfig: () => DefaultConfig,
|
|
134
|
+
EntityClassName: () => EntityClassName,
|
|
135
|
+
EntityClassNameFromJSON: () => EntityClassNameFromJSON,
|
|
136
|
+
EntityClassNameFromJSONTyped: () => EntityClassNameFromJSONTyped,
|
|
137
|
+
EntityClassNameToJSON: () => EntityClassNameToJSON,
|
|
138
|
+
EntityClassNameToJSONTyped: () => EntityClassNameToJSONTyped,
|
|
155
139
|
ErrorObjectFromJSON: () => ErrorObjectFromJSON,
|
|
156
140
|
ErrorObjectFromJSONTyped: () => ErrorObjectFromJSONTyped,
|
|
157
141
|
ErrorObjectToJSON: () => ErrorObjectToJSON,
|
|
158
142
|
ErrorObjectToJSONTyped: () => ErrorObjectToJSONTyped,
|
|
159
143
|
FetchError: () => FetchError,
|
|
144
|
+
GraphNodeFromJSON: () => GraphNodeFromJSON,
|
|
145
|
+
GraphNodeFromJSONTyped: () => GraphNodeFromJSONTyped,
|
|
146
|
+
GraphNodeToJSON: () => GraphNodeToJSON,
|
|
147
|
+
GraphNodeToJSONTyped: () => GraphNodeToJSONTyped,
|
|
148
|
+
GraphNodeType: () => GraphNodeType,
|
|
149
|
+
GraphNodeTypeFromJSON: () => GraphNodeTypeFromJSON,
|
|
150
|
+
GraphNodeTypeFromJSONTyped: () => GraphNodeTypeFromJSONTyped,
|
|
151
|
+
GraphNodeTypeToJSON: () => GraphNodeTypeToJSON,
|
|
152
|
+
GraphNodeTypeToJSONTyped: () => GraphNodeTypeToJSONTyped,
|
|
153
|
+
GraphRelatedResponseFromJSON: () => GraphRelatedResponseFromJSON,
|
|
154
|
+
GraphRelatedResponseFromJSONTyped: () => GraphRelatedResponseFromJSONTyped,
|
|
155
|
+
GraphRelatedResponseToJSON: () => GraphRelatedResponseToJSON,
|
|
156
|
+
GraphRelatedResponseToJSONTyped: () => GraphRelatedResponseToJSONTyped,
|
|
157
|
+
GraphRelationPageFromJSON: () => GraphRelationPageFromJSON,
|
|
158
|
+
GraphRelationPageFromJSONTyped: () => GraphRelationPageFromJSONTyped,
|
|
159
|
+
GraphRelationPageToJSON: () => GraphRelationPageToJSON,
|
|
160
|
+
GraphRelationPageToJSONTyped: () => GraphRelationPageToJSONTyped,
|
|
161
|
+
GraphSearchResponseFromJSON: () => GraphSearchResponseFromJSON,
|
|
162
|
+
GraphSearchResponseFromJSONTyped: () => GraphSearchResponseFromJSONTyped,
|
|
163
|
+
GraphSearchResponseToJSON: () => GraphSearchResponseToJSON,
|
|
164
|
+
GraphSearchResponseToJSONTyped: () => GraphSearchResponseToJSONTyped,
|
|
165
|
+
GraphSearchSubtypeEnum: () => GraphSearchSubtypeEnum,
|
|
160
166
|
HeartbeatEventFromJSON: () => HeartbeatEventFromJSON,
|
|
161
167
|
HeartbeatEventFromJSONTyped: () => HeartbeatEventFromJSONTyped,
|
|
162
168
|
HeartbeatEventKindEnum: () => HeartbeatEventKindEnum,
|
|
163
169
|
HeartbeatEventToJSON: () => HeartbeatEventToJSON,
|
|
164
170
|
HeartbeatEventToJSONTyped: () => HeartbeatEventToJSONTyped,
|
|
165
|
-
IdealVizDecisionFromJSON: () => IdealVizDecisionFromJSON,
|
|
166
|
-
IdealVizDecisionFromJSONTyped: () => IdealVizDecisionFromJSONTyped,
|
|
167
|
-
IdealVizDecisionToJSON: () => IdealVizDecisionToJSON,
|
|
168
|
-
IdealVizDecisionToJSONTyped: () => IdealVizDecisionToJSONTyped,
|
|
169
171
|
JSONApiResponse: () => JSONApiResponse,
|
|
170
|
-
KnowledgeCardFromJSON: () => KnowledgeCardFromJSON,
|
|
171
|
-
KnowledgeCardFromJSONTyped: () => KnowledgeCardFromJSONTyped,
|
|
172
172
|
KnowledgeCardMethodologyFromJSON: () => KnowledgeCardMethodologyFromJSON,
|
|
173
173
|
KnowledgeCardMethodologyFromJSONTyped: () => KnowledgeCardMethodologyFromJSONTyped,
|
|
174
174
|
KnowledgeCardMethodologyToJSON: () => KnowledgeCardMethodologyToJSON,
|
|
@@ -178,29 +178,23 @@ __export(index_exports, {
|
|
|
178
178
|
KnowledgeCardRelevanceFromJSONTyped: () => KnowledgeCardRelevanceFromJSONTyped,
|
|
179
179
|
KnowledgeCardRelevanceToJSON: () => KnowledgeCardRelevanceToJSON,
|
|
180
180
|
KnowledgeCardRelevanceToJSONTyped: () => KnowledgeCardRelevanceToJSONTyped,
|
|
181
|
-
KnowledgeCardSourceFromJSON: () => KnowledgeCardSourceFromJSON,
|
|
182
|
-
KnowledgeCardSourceFromJSONTyped: () => KnowledgeCardSourceFromJSONTyped,
|
|
183
|
-
KnowledgeCardSourceIndexesInnerFromJSON: () => KnowledgeCardSourceIndexesInnerFromJSON,
|
|
184
|
-
KnowledgeCardSourceIndexesInnerFromJSONTyped: () => KnowledgeCardSourceIndexesInnerFromJSONTyped,
|
|
185
|
-
KnowledgeCardSourceIndexesInnerToJSON: () => KnowledgeCardSourceIndexesInnerToJSON,
|
|
186
|
-
KnowledgeCardSourceIndexesInnerToJSONTyped: () => KnowledgeCardSourceIndexesInnerToJSONTyped,
|
|
187
|
-
KnowledgeCardSourceToJSON: () => KnowledgeCardSourceToJSON,
|
|
188
|
-
KnowledgeCardSourceToJSONTyped: () => KnowledgeCardSourceToJSONTyped,
|
|
189
|
-
KnowledgeCardToJSON: () => KnowledgeCardToJSON,
|
|
190
|
-
KnowledgeCardToJSONTyped: () => KnowledgeCardToJSONTyped,
|
|
191
181
|
OutputSettingsFromJSON: () => OutputSettingsFromJSON,
|
|
192
182
|
OutputSettingsFromJSONTyped: () => OutputSettingsFromJSONTyped,
|
|
193
183
|
OutputSettingsToJSON: () => OutputSettingsToJSON,
|
|
194
184
|
OutputSettingsToJSONTyped: () => OutputSettingsToJSONTyped,
|
|
195
|
-
QueryClassificationFromJSON: () => QueryClassificationFromJSON,
|
|
196
|
-
QueryClassificationFromJSONTyped: () => QueryClassificationFromJSONTyped,
|
|
197
|
-
QueryClassificationToJSON: () => QueryClassificationToJSON,
|
|
198
|
-
QueryClassificationToJSONTyped: () => QueryClassificationToJSONTyped,
|
|
199
185
|
ReasoningEventFromJSON: () => ReasoningEventFromJSON,
|
|
200
186
|
ReasoningEventFromJSONTyped: () => ReasoningEventFromJSONTyped,
|
|
201
187
|
ReasoningEventKindEnum: () => ReasoningEventKindEnum,
|
|
202
188
|
ReasoningEventToJSON: () => ReasoningEventToJSON,
|
|
203
189
|
ReasoningEventToJSONTyped: () => ReasoningEventToJSONTyped,
|
|
190
|
+
RelatedGroupsFromJSON: () => RelatedGroupsFromJSON,
|
|
191
|
+
RelatedGroupsFromJSONTyped: () => RelatedGroupsFromJSONTyped,
|
|
192
|
+
RelatedGroupsToJSON: () => RelatedGroupsToJSON,
|
|
193
|
+
RelatedGroupsToJSONTyped: () => RelatedGroupsToJSONTyped,
|
|
194
|
+
RelationGroupFromJSON: () => RelationGroupFromJSON,
|
|
195
|
+
RelationGroupFromJSONTyped: () => RelationGroupFromJSONTyped,
|
|
196
|
+
RelationGroupToJSON: () => RelationGroupToJSON,
|
|
197
|
+
RelationGroupToJSONTyped: () => RelationGroupToJSONTyped,
|
|
204
198
|
RequiredError: () => RequiredError,
|
|
205
199
|
ResponseError: () => ResponseError,
|
|
206
200
|
ResultContentFromJSON: () => ResultContentFromJSON,
|
|
@@ -220,10 +214,6 @@ __export(index_exports, {
|
|
|
220
214
|
SearchResponseFromJSONTyped: () => SearchResponseFromJSONTyped,
|
|
221
215
|
SearchResponseToJSON: () => SearchResponseToJSON,
|
|
222
216
|
SearchResponseToJSONTyped: () => SearchResponseToJSONTyped,
|
|
223
|
-
SourceIndexFromJSON: () => SourceIndexFromJSON,
|
|
224
|
-
SourceIndexFromJSONTyped: () => SourceIndexFromJSONTyped,
|
|
225
|
-
SourceIndexToJSON: () => SourceIndexToJSON,
|
|
226
|
-
SourceIndexToJSONTyped: () => SourceIndexToJSONTyped,
|
|
227
217
|
SourceSettingsFromJSON: () => SourceSettingsFromJSON,
|
|
228
218
|
SourceSettingsFromJSONTyped: () => SourceSettingsFromJSONTyped,
|
|
229
219
|
SourceSettingsToJSON: () => SourceSettingsToJSON,
|
|
@@ -262,18 +252,28 @@ __export(index_exports, {
|
|
|
262
252
|
TakoApi: () => TakoApi,
|
|
263
253
|
TakoCardFromJSON: () => TakoCardFromJSON,
|
|
264
254
|
TakoCardFromJSONTyped: () => TakoCardFromJSONTyped,
|
|
255
|
+
TakoCardSourceFromJSON: () => TakoCardSourceFromJSON,
|
|
256
|
+
TakoCardSourceFromJSONTyped: () => TakoCardSourceFromJSONTyped,
|
|
257
|
+
TakoCardSourceToJSON: () => TakoCardSourceToJSON,
|
|
258
|
+
TakoCardSourceToJSONTyped: () => TakoCardSourceToJSONTyped,
|
|
265
259
|
TakoCardToJSON: () => TakoCardToJSON,
|
|
266
260
|
TakoCardToJSONTyped: () => TakoCardToJSONTyped,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
261
|
+
TakoSourceIndex: () => TakoSourceIndex,
|
|
262
|
+
TakoSourceIndexFromJSON: () => TakoSourceIndexFromJSON,
|
|
263
|
+
TakoSourceIndexFromJSONTyped: () => TakoSourceIndexFromJSONTyped,
|
|
264
|
+
TakoSourceIndexToJSON: () => TakoSourceIndexToJSON,
|
|
265
|
+
TakoSourceIndexToJSONTyped: () => TakoSourceIndexToJSONTyped,
|
|
271
266
|
TextApiResponse: () => TextApiResponse,
|
|
272
267
|
TextEventFromJSON: () => TextEventFromJSON,
|
|
273
268
|
TextEventFromJSONTyped: () => TextEventFromJSONTyped,
|
|
274
269
|
TextEventKindEnum: () => TextEventKindEnum,
|
|
275
270
|
TextEventToJSON: () => TextEventToJSON,
|
|
276
271
|
TextEventToJSONTyped: () => TextEventToJSONTyped,
|
|
272
|
+
ThinVizCardEmbedModeEnum: () => ThinVizCardEmbedModeEnum,
|
|
273
|
+
ThinVizCardFromJSON: () => ThinVizCardFromJSON,
|
|
274
|
+
ThinVizCardFromJSONTyped: () => ThinVizCardFromJSONTyped,
|
|
275
|
+
ThinVizCardToJSON: () => ThinVizCardToJSON,
|
|
276
|
+
ThinVizCardToJSONTyped: () => ThinVizCardToJSONTyped,
|
|
277
277
|
ToolCallEventFromJSON: () => ToolCallEventFromJSON,
|
|
278
278
|
ToolCallEventFromJSONTyped: () => ToolCallEventFromJSONTyped,
|
|
279
279
|
ToolCallEventKindEnum: () => ToolCallEventKindEnum,
|
|
@@ -313,11 +313,6 @@ __export(index_exports, {
|
|
|
313
313
|
instanceOfAgentUsage: () => instanceOfAgentUsage,
|
|
314
314
|
instanceOfAnswerResponse: () => instanceOfAnswerResponse,
|
|
315
315
|
instanceOfBaseAPIError: () => instanceOfBaseAPIError,
|
|
316
|
-
instanceOfCardSourceIndex: () => instanceOfCardSourceIndex,
|
|
317
|
-
instanceOfCardSourceIndexSegment: () => instanceOfCardSourceIndexSegment,
|
|
318
|
-
instanceOfCardSourcePrivateIndex: () => instanceOfCardSourcePrivateIndex,
|
|
319
|
-
instanceOfClassifyRequest: () => instanceOfClassifyRequest,
|
|
320
|
-
instanceOfClassifyResponse: () => instanceOfClassifyResponse,
|
|
321
316
|
instanceOfComponentConfig: () => instanceOfComponentConfig,
|
|
322
317
|
instanceOfComponentTypeEnum: () => instanceOfComponentTypeEnum,
|
|
323
318
|
instanceOfContentFormat: () => instanceOfContentFormat,
|
|
@@ -328,22 +323,24 @@ __export(index_exports, {
|
|
|
328
323
|
instanceOfCreateCard400Response: () => instanceOfCreateCard400Response,
|
|
329
324
|
instanceOfCreateCardRequest: () => instanceOfCreateCardRequest,
|
|
330
325
|
instanceOfDataPipelineAnswerEvent: () => instanceOfDataPipelineAnswerEvent,
|
|
326
|
+
instanceOfEntityClassName: () => instanceOfEntityClassName,
|
|
331
327
|
instanceOfErrorObject: () => instanceOfErrorObject,
|
|
328
|
+
instanceOfGraphNode: () => instanceOfGraphNode,
|
|
329
|
+
instanceOfGraphNodeType: () => instanceOfGraphNodeType,
|
|
330
|
+
instanceOfGraphRelatedResponse: () => instanceOfGraphRelatedResponse,
|
|
331
|
+
instanceOfGraphRelationPage: () => instanceOfGraphRelationPage,
|
|
332
|
+
instanceOfGraphSearchResponse: () => instanceOfGraphSearchResponse,
|
|
332
333
|
instanceOfHeartbeatEvent: () => instanceOfHeartbeatEvent,
|
|
333
|
-
instanceOfIdealVizDecision: () => instanceOfIdealVizDecision,
|
|
334
|
-
instanceOfKnowledgeCard: () => instanceOfKnowledgeCard,
|
|
335
334
|
instanceOfKnowledgeCardMethodology: () => instanceOfKnowledgeCardMethodology,
|
|
336
335
|
instanceOfKnowledgeCardRelevance: () => instanceOfKnowledgeCardRelevance,
|
|
337
|
-
instanceOfKnowledgeCardSource: () => instanceOfKnowledgeCardSource,
|
|
338
|
-
instanceOfKnowledgeCardSourceIndexesInner: () => instanceOfKnowledgeCardSourceIndexesInner,
|
|
339
336
|
instanceOfOutputSettings: () => instanceOfOutputSettings,
|
|
340
|
-
instanceOfQueryClassification: () => instanceOfQueryClassification,
|
|
341
337
|
instanceOfReasoningEvent: () => instanceOfReasoningEvent,
|
|
338
|
+
instanceOfRelatedGroups: () => instanceOfRelatedGroups,
|
|
339
|
+
instanceOfRelationGroup: () => instanceOfRelationGroup,
|
|
342
340
|
instanceOfResultContent: () => instanceOfResultContent,
|
|
343
341
|
instanceOfSearchEffortLevel: () => instanceOfSearchEffortLevel,
|
|
344
342
|
instanceOfSearchRequest: () => instanceOfSearchRequest,
|
|
345
343
|
instanceOfSearchResponse: () => instanceOfSearchResponse,
|
|
346
|
-
instanceOfSourceIndex: () => instanceOfSourceIndex,
|
|
347
344
|
instanceOfSourceSettings: () => instanceOfSourceSettings,
|
|
348
345
|
instanceOfSources: () => instanceOfSources,
|
|
349
346
|
instanceOfStatusEvent: () => instanceOfStatusEvent,
|
|
@@ -352,8 +349,10 @@ __export(index_exports, {
|
|
|
352
349
|
instanceOfStreamResetEvent: () => instanceOfStreamResetEvent,
|
|
353
350
|
instanceOfSubagentEvent: () => instanceOfSubagentEvent,
|
|
354
351
|
instanceOfTakoCard: () => instanceOfTakoCard,
|
|
355
|
-
|
|
352
|
+
instanceOfTakoCardSource: () => instanceOfTakoCardSource,
|
|
353
|
+
instanceOfTakoSourceIndex: () => instanceOfTakoSourceIndex,
|
|
356
354
|
instanceOfTextEvent: () => instanceOfTextEvent,
|
|
355
|
+
instanceOfThinVizCard: () => instanceOfThinVizCard,
|
|
357
356
|
instanceOfToolCallEvent: () => instanceOfToolCallEvent,
|
|
358
357
|
instanceOfToolErrorEvent: () => instanceOfToolErrorEvent,
|
|
359
358
|
instanceOfToolResultEvent: () => instanceOfToolResultEvent,
|
|
@@ -725,135 +724,65 @@ function KnowledgeCardMethodologyToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
725
724
|
};
|
|
726
725
|
}
|
|
727
726
|
|
|
728
|
-
// src/generated/models/
|
|
729
|
-
var
|
|
730
|
-
|
|
731
|
-
Web: "web"
|
|
732
|
-
ConnectedData: "connected_data",
|
|
733
|
-
TakoDeepV2: "tako_deep_v2"
|
|
727
|
+
// src/generated/models/TakoSourceIndex.ts
|
|
728
|
+
var TakoSourceIndex = {
|
|
729
|
+
Data: "data",
|
|
730
|
+
Web: "web"
|
|
734
731
|
};
|
|
735
|
-
function
|
|
736
|
-
for (const key in
|
|
737
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
738
|
-
if (
|
|
732
|
+
function instanceOfTakoSourceIndex(value) {
|
|
733
|
+
for (const key in TakoSourceIndex) {
|
|
734
|
+
if (Object.prototype.hasOwnProperty.call(TakoSourceIndex, key)) {
|
|
735
|
+
if (TakoSourceIndex[key] === value) {
|
|
739
736
|
return true;
|
|
740
737
|
}
|
|
741
738
|
}
|
|
742
739
|
}
|
|
743
740
|
return false;
|
|
744
741
|
}
|
|
745
|
-
function
|
|
746
|
-
return
|
|
742
|
+
function TakoSourceIndexFromJSON(json) {
|
|
743
|
+
return TakoSourceIndexFromJSONTyped(json, false);
|
|
747
744
|
}
|
|
748
|
-
function
|
|
745
|
+
function TakoSourceIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
749
746
|
return json;
|
|
750
747
|
}
|
|
751
|
-
function
|
|
748
|
+
function TakoSourceIndexToJSON(value) {
|
|
752
749
|
return value;
|
|
753
750
|
}
|
|
754
|
-
function
|
|
751
|
+
function TakoSourceIndexToJSONTyped(value, ignoreDiscriminator) {
|
|
755
752
|
return value;
|
|
756
753
|
}
|
|
757
754
|
|
|
758
|
-
// src/generated/models/
|
|
759
|
-
function
|
|
760
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
761
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
762
|
-
return true;
|
|
763
|
-
}
|
|
764
|
-
function KnowledgeCardSourceIndexesInnerFromJSON(json) {
|
|
765
|
-
return KnowledgeCardSourceIndexesInnerFromJSONTyped(json, false);
|
|
766
|
-
}
|
|
767
|
-
function KnowledgeCardSourceIndexesInnerFromJSONTyped(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
|
-
};
|
|
775
|
-
}
|
|
776
|
-
function KnowledgeCardSourceIndexesInnerToJSON(json) {
|
|
777
|
-
return KnowledgeCardSourceIndexesInnerToJSONTyped(json, false);
|
|
778
|
-
}
|
|
779
|
-
function KnowledgeCardSourceIndexesInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
780
|
-
if (value == null) {
|
|
781
|
-
return value;
|
|
782
|
-
}
|
|
783
|
-
return {
|
|
784
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
785
|
-
"segment_id": value["segment_id"]
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
// src/generated/models/SourceIndex.ts
|
|
790
|
-
function instanceOfSourceIndex(value) {
|
|
791
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
792
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
793
|
-
if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
|
|
794
|
-
return true;
|
|
795
|
-
}
|
|
796
|
-
function SourceIndexFromJSON(json) {
|
|
797
|
-
return SourceIndexFromJSONTyped(json, false);
|
|
798
|
-
}
|
|
799
|
-
function SourceIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
800
|
-
if (json == null) {
|
|
801
|
-
return json;
|
|
802
|
-
}
|
|
803
|
-
return {
|
|
804
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
805
|
-
"segment_id": json["segment_id"],
|
|
806
|
-
"private_index_id": json["private_index_id"]
|
|
807
|
-
};
|
|
808
|
-
}
|
|
809
|
-
function SourceIndexToJSON(json) {
|
|
810
|
-
return SourceIndexToJSONTyped(json, false);
|
|
811
|
-
}
|
|
812
|
-
function SourceIndexToJSONTyped(value, ignoreDiscriminator = false) {
|
|
813
|
-
if (value == null) {
|
|
814
|
-
return value;
|
|
815
|
-
}
|
|
816
|
-
return {
|
|
817
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
818
|
-
"segment_id": value["segment_id"],
|
|
819
|
-
"private_index_id": value["private_index_id"]
|
|
820
|
-
};
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
// src/generated/models/KnowledgeCardSource.ts
|
|
824
|
-
function instanceOfKnowledgeCardSource(value) {
|
|
825
|
-
if (!("source_name" in value) || value["source_name"] === void 0) return false;
|
|
826
|
-
if (!("source_description" in value) || value["source_description"] === void 0) return false;
|
|
755
|
+
// src/generated/models/TakoCardSource.ts
|
|
756
|
+
function instanceOfTakoCardSource(value) {
|
|
827
757
|
if (!("source_index" in value) || value["source_index"] === void 0) return false;
|
|
828
|
-
if (!("url" in value) || value["url"] === void 0) return false;
|
|
829
758
|
return true;
|
|
830
759
|
}
|
|
831
|
-
function
|
|
832
|
-
return
|
|
760
|
+
function TakoCardSourceFromJSON(json) {
|
|
761
|
+
return TakoCardSourceFromJSONTyped(json, false);
|
|
833
762
|
}
|
|
834
|
-
function
|
|
763
|
+
function TakoCardSourceFromJSONTyped(json, ignoreDiscriminator) {
|
|
835
764
|
if (json == null) {
|
|
836
765
|
return json;
|
|
837
766
|
}
|
|
838
767
|
return {
|
|
839
|
-
"source_name": json["source_name"],
|
|
840
|
-
"source_description": json["source_description"],
|
|
841
|
-
"source_index":
|
|
842
|
-
"url": json["url"],
|
|
768
|
+
"source_name": json["source_name"] == null ? void 0 : json["source_name"],
|
|
769
|
+
"source_description": json["source_description"] == null ? void 0 : json["source_description"],
|
|
770
|
+
"source_index": TakoSourceIndexFromJSON(json["source_index"]),
|
|
771
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
843
772
|
"source_text": json["source_text"] == null ? void 0 : json["source_text"]
|
|
844
773
|
};
|
|
845
774
|
}
|
|
846
|
-
function
|
|
847
|
-
return
|
|
775
|
+
function TakoCardSourceToJSON(json) {
|
|
776
|
+
return TakoCardSourceToJSONTyped(json, false);
|
|
848
777
|
}
|
|
849
|
-
function
|
|
778
|
+
function TakoCardSourceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
850
779
|
if (value == null) {
|
|
851
780
|
return value;
|
|
852
781
|
}
|
|
853
782
|
return {
|
|
854
783
|
"source_name": value["source_name"],
|
|
855
784
|
"source_description": value["source_description"],
|
|
856
|
-
"source_index":
|
|
785
|
+
"source_index": TakoSourceIndexToJSON(value["source_index"]),
|
|
857
786
|
"url": value["url"],
|
|
858
787
|
"source_text": value["source_text"]
|
|
859
788
|
};
|
|
@@ -971,9 +900,9 @@ function TakoCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
971
900
|
"webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
|
|
972
901
|
"image_url": json["image_url"] == null ? void 0 : json["image_url"],
|
|
973
902
|
"embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
|
|
974
|
-
"sources": json["sources"] == null ? void 0 : json["sources"].map(
|
|
903
|
+
"sources": json["sources"] == null ? void 0 : json["sources"].map(TakoCardSourceFromJSON),
|
|
975
904
|
"methodologies": json["methodologies"] == null ? void 0 : json["methodologies"].map(KnowledgeCardMethodologyFromJSON),
|
|
976
|
-
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(
|
|
905
|
+
"source_indexes": json["source_indexes"] == null ? void 0 : json["source_indexes"].map(TakoSourceIndexFromJSON),
|
|
977
906
|
"card_type": json["card_type"] == null ? void 0 : json["card_type"],
|
|
978
907
|
"relevance": json["relevance"] == null ? void 0 : KnowledgeCardRelevanceFromJSON(json["relevance"]),
|
|
979
908
|
"content": json["content"] == null ? void 0 : ResultContentFromJSON(json["content"]),
|
|
@@ -995,9 +924,9 @@ function TakoCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
995
924
|
"webpage_url": value["webpage_url"],
|
|
996
925
|
"image_url": value["image_url"],
|
|
997
926
|
"embed_url": value["embed_url"],
|
|
998
|
-
"sources": value["sources"] == null ? void 0 : value["sources"].map(
|
|
927
|
+
"sources": value["sources"] == null ? void 0 : value["sources"].map(TakoCardSourceToJSON),
|
|
999
928
|
"methodologies": value["methodologies"] == null ? void 0 : value["methodologies"].map(KnowledgeCardMethodologyToJSON),
|
|
1000
|
-
"source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(
|
|
929
|
+
"source_indexes": value["source_indexes"] == null ? void 0 : value["source_indexes"].map(TakoSourceIndexToJSON),
|
|
1001
930
|
"card_type": value["card_type"],
|
|
1002
931
|
"relevance": KnowledgeCardRelevanceToJSON(value["relevance"]),
|
|
1003
932
|
"content": ResultContentToJSON(value["content"]),
|
|
@@ -1411,95 +1340,6 @@ function AnswerResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1411
1340
|
};
|
|
1412
1341
|
}
|
|
1413
1342
|
|
|
1414
|
-
// src/generated/models/ClassifyRequest.ts
|
|
1415
|
-
function instanceOfClassifyRequest(value) {
|
|
1416
|
-
if (!("queries" in value) || value["queries"] === void 0) return false;
|
|
1417
|
-
return true;
|
|
1418
|
-
}
|
|
1419
|
-
function ClassifyRequestFromJSON(json) {
|
|
1420
|
-
return ClassifyRequestFromJSONTyped(json, false);
|
|
1421
|
-
}
|
|
1422
|
-
function ClassifyRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1423
|
-
if (json == null) {
|
|
1424
|
-
return json;
|
|
1425
|
-
}
|
|
1426
|
-
return {
|
|
1427
|
-
"queries": json["queries"]
|
|
1428
|
-
};
|
|
1429
|
-
}
|
|
1430
|
-
function ClassifyRequestToJSON(json) {
|
|
1431
|
-
return ClassifyRequestToJSONTyped(json, false);
|
|
1432
|
-
}
|
|
1433
|
-
function ClassifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1434
|
-
if (value == null) {
|
|
1435
|
-
return value;
|
|
1436
|
-
}
|
|
1437
|
-
return {
|
|
1438
|
-
"queries": value["queries"]
|
|
1439
|
-
};
|
|
1440
|
-
}
|
|
1441
|
-
|
|
1442
|
-
// src/generated/models/QueryClassification.ts
|
|
1443
|
-
function instanceOfQueryClassification(value) {
|
|
1444
|
-
if (!("query" in value) || value["query"] === void 0) return false;
|
|
1445
|
-
if (!("score" in value) || value["score"] === void 0) return false;
|
|
1446
|
-
if (!("keep" in value) || value["keep"] === void 0) return false;
|
|
1447
|
-
return true;
|
|
1448
|
-
}
|
|
1449
|
-
function QueryClassificationFromJSON(json) {
|
|
1450
|
-
return QueryClassificationFromJSONTyped(json, false);
|
|
1451
|
-
}
|
|
1452
|
-
function QueryClassificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
1453
|
-
if (json == null) {
|
|
1454
|
-
return json;
|
|
1455
|
-
}
|
|
1456
|
-
return {
|
|
1457
|
-
"query": json["query"],
|
|
1458
|
-
"score": json["score"],
|
|
1459
|
-
"keep": json["keep"]
|
|
1460
|
-
};
|
|
1461
|
-
}
|
|
1462
|
-
function QueryClassificationToJSON(json) {
|
|
1463
|
-
return QueryClassificationToJSONTyped(json, false);
|
|
1464
|
-
}
|
|
1465
|
-
function QueryClassificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1466
|
-
if (value == null) {
|
|
1467
|
-
return value;
|
|
1468
|
-
}
|
|
1469
|
-
return {
|
|
1470
|
-
"query": value["query"],
|
|
1471
|
-
"score": value["score"],
|
|
1472
|
-
"keep": value["keep"]
|
|
1473
|
-
};
|
|
1474
|
-
}
|
|
1475
|
-
|
|
1476
|
-
// src/generated/models/ClassifyResponse.ts
|
|
1477
|
-
function instanceOfClassifyResponse(value) {
|
|
1478
|
-
return true;
|
|
1479
|
-
}
|
|
1480
|
-
function ClassifyResponseFromJSON(json) {
|
|
1481
|
-
return ClassifyResponseFromJSONTyped(json, false);
|
|
1482
|
-
}
|
|
1483
|
-
function ClassifyResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1484
|
-
if (json == null) {
|
|
1485
|
-
return json;
|
|
1486
|
-
}
|
|
1487
|
-
return {
|
|
1488
|
-
"results": json["results"] == null ? void 0 : json["results"].map(QueryClassificationFromJSON)
|
|
1489
|
-
};
|
|
1490
|
-
}
|
|
1491
|
-
function ClassifyResponseToJSON(json) {
|
|
1492
|
-
return ClassifyResponseToJSONTyped(json, false);
|
|
1493
|
-
}
|
|
1494
|
-
function ClassifyResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1495
|
-
if (value == null) {
|
|
1496
|
-
return value;
|
|
1497
|
-
}
|
|
1498
|
-
return {
|
|
1499
|
-
"results": value["results"] == null ? void 0 : value["results"].map(QueryClassificationToJSON)
|
|
1500
|
-
};
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
1343
|
// src/generated/models/ContentsDeliveryMode.ts
|
|
1504
1344
|
var ContentsDeliveryMode = {
|
|
1505
1345
|
Url: "url",
|
|
@@ -1752,104 +1592,343 @@ function CreateCardRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1752
1592
|
};
|
|
1753
1593
|
}
|
|
1754
1594
|
|
|
1755
|
-
// src/generated/models/
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1595
|
+
// src/generated/models/EntityClassName.ts
|
|
1596
|
+
var EntityClassName = {
|
|
1597
|
+
Companies: "Companies",
|
|
1598
|
+
Cryptocurrencies: "Cryptocurrencies",
|
|
1599
|
+
FinancialInstruments: "Financial Instruments",
|
|
1600
|
+
InternetBrowsers: "Internet Browsers",
|
|
1601
|
+
Commodities: "Commodities",
|
|
1602
|
+
People: "People",
|
|
1603
|
+
Currencies: "Currencies",
|
|
1604
|
+
StockExchanges: "Stock Exchanges",
|
|
1605
|
+
Securities: "Securities",
|
|
1606
|
+
Ipos: "IPOs",
|
|
1607
|
+
GovernmentDebtInstruments: "Government Debt Instruments",
|
|
1608
|
+
TreasurySecurities: "Treasury Securities",
|
|
1609
|
+
Airports: "Airports",
|
|
1610
|
+
Airlines: "Airlines",
|
|
1611
|
+
VehicleTypes: "Vehicle Types",
|
|
1612
|
+
TransportationModes: "Transportation Modes",
|
|
1613
|
+
Drugs: "Drugs",
|
|
1614
|
+
DrugCategories: "Drug Categories",
|
|
1615
|
+
Diseases: "Diseases",
|
|
1616
|
+
ChemicalElements: "Chemical Elements",
|
|
1617
|
+
ChemicalCompounds: "Chemical Compounds",
|
|
1618
|
+
CelestialBodies: "Celestial Bodies",
|
|
1619
|
+
Occupations: "Occupations",
|
|
1620
|
+
SocialMediaPlatforms: "Social Media Platforms",
|
|
1621
|
+
OperatingSystems: "Operating Systems",
|
|
1622
|
+
SearchEngines: "Search Engines",
|
|
1623
|
+
DeviceTypes: "Device Types",
|
|
1624
|
+
Llms: "LLMs",
|
|
1625
|
+
LlmFamilies: "LLM Families",
|
|
1626
|
+
LlmBenchmarks: "LLM Benchmarks",
|
|
1627
|
+
Industries: "Industries",
|
|
1628
|
+
NaicsIndustries: "NAICS Industries",
|
|
1629
|
+
BlsIndustries: "BLS Industries",
|
|
1630
|
+
PscCategories: "PSC Categories",
|
|
1631
|
+
FederalContractors: "Federal Contractors",
|
|
1632
|
+
FederalAgencies: "Federal Agencies",
|
|
1633
|
+
FederalSubagencies: "Federal Subagencies",
|
|
1634
|
+
IceContracts: "ICE Contracts",
|
|
1635
|
+
IceContractors: "ICE Contractors",
|
|
1636
|
+
Elections: "Elections",
|
|
1637
|
+
PoliticalOffices: "Political Offices",
|
|
1638
|
+
Pollsters: "Pollsters",
|
|
1639
|
+
AgriculturalProducts: "Agricultural Products",
|
|
1640
|
+
TobaccoProducts: "Tobacco Products",
|
|
1641
|
+
PredictionMarkets: "Prediction Markets",
|
|
1642
|
+
PredictionEvents: "Prediction Events",
|
|
1643
|
+
RealEstatePropertyTypes: "Real Estate Property Types",
|
|
1644
|
+
Continents: "Continents",
|
|
1645
|
+
WorldRegions: "World Regions",
|
|
1646
|
+
Countries: "Countries",
|
|
1647
|
+
States: "States",
|
|
1648
|
+
Counties: "Counties",
|
|
1649
|
+
MetroAreas: "Metro Areas",
|
|
1650
|
+
Cities: "Cities",
|
|
1651
|
+
F1Drivers: "F1 Drivers",
|
|
1652
|
+
F1Teams: "F1 Teams",
|
|
1653
|
+
F1Circuits: "F1 Circuits",
|
|
1654
|
+
F1Events: "F1 Events",
|
|
1655
|
+
NascarDrivers: "NASCAR Drivers",
|
|
1656
|
+
NascarTeams: "NASCAR Teams",
|
|
1657
|
+
NascarTracks: "NASCAR Tracks",
|
|
1658
|
+
NascarEvents: "NASCAR Events",
|
|
1659
|
+
NascarRaces: "NASCAR Races",
|
|
1660
|
+
NascarOwners: "NASCAR Owners",
|
|
1661
|
+
NascarManufacturers: "NASCAR Manufacturers",
|
|
1662
|
+
SoccerTeams: "Soccer Teams",
|
|
1663
|
+
SoccerPlayers: "Soccer Players",
|
|
1664
|
+
SoccerCompetitions: "Soccer Competitions",
|
|
1665
|
+
SoccerConferences: "Soccer Conferences",
|
|
1666
|
+
BasketballTeams: "Basketball Teams",
|
|
1667
|
+
BasketballPlayers: "Basketball Players",
|
|
1668
|
+
BasketballConferences: "Basketball Conferences",
|
|
1669
|
+
BasketballDivisions: "Basketball Divisions",
|
|
1670
|
+
BaseballTeams: "Baseball Teams",
|
|
1671
|
+
BaseballPlayers: "Baseball Players",
|
|
1672
|
+
BaseballConferences: "Baseball Conferences",
|
|
1673
|
+
BaseballDivisions: "Baseball Divisions",
|
|
1674
|
+
BaseballCompetitions: "Baseball Competitions",
|
|
1675
|
+
FootballTeams: "Football Teams",
|
|
1676
|
+
FootballPlayers: "Football Players",
|
|
1677
|
+
FootballConferences: "Football Conferences",
|
|
1678
|
+
FootballDivisions: "Football Divisions",
|
|
1679
|
+
Sports: "Sports",
|
|
1680
|
+
SportsLeagues: "Sports Leagues"
|
|
1681
|
+
};
|
|
1682
|
+
function instanceOfEntityClassName(value) {
|
|
1683
|
+
for (const key in EntityClassName) {
|
|
1684
|
+
if (Object.prototype.hasOwnProperty.call(EntityClassName, key)) {
|
|
1685
|
+
if (EntityClassName[key] === value) {
|
|
1686
|
+
return true;
|
|
1687
|
+
}
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
return false;
|
|
1691
|
+
}
|
|
1692
|
+
function EntityClassNameFromJSON(json) {
|
|
1693
|
+
return EntityClassNameFromJSONTyped(json, false);
|
|
1694
|
+
}
|
|
1695
|
+
function EntityClassNameFromJSONTyped(json, ignoreDiscriminator) {
|
|
1696
|
+
return json;
|
|
1697
|
+
}
|
|
1698
|
+
function EntityClassNameToJSON(value) {
|
|
1699
|
+
return value;
|
|
1700
|
+
}
|
|
1701
|
+
function EntityClassNameToJSONTyped(value, ignoreDiscriminator) {
|
|
1702
|
+
return value;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
// src/generated/models/GraphNodeType.ts
|
|
1706
|
+
var GraphNodeType = {
|
|
1707
|
+
Source: "source",
|
|
1708
|
+
Metric: "metric",
|
|
1709
|
+
Entity: "entity"
|
|
1710
|
+
};
|
|
1711
|
+
function instanceOfGraphNodeType(value) {
|
|
1712
|
+
for (const key in GraphNodeType) {
|
|
1713
|
+
if (Object.prototype.hasOwnProperty.call(GraphNodeType, key)) {
|
|
1714
|
+
if (GraphNodeType[key] === value) {
|
|
1715
|
+
return true;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
}
|
|
1719
|
+
return false;
|
|
1720
|
+
}
|
|
1721
|
+
function GraphNodeTypeFromJSON(json) {
|
|
1722
|
+
return GraphNodeTypeFromJSONTyped(json, false);
|
|
1723
|
+
}
|
|
1724
|
+
function GraphNodeTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1725
|
+
return json;
|
|
1726
|
+
}
|
|
1727
|
+
function GraphNodeTypeToJSON(value) {
|
|
1728
|
+
return value;
|
|
1729
|
+
}
|
|
1730
|
+
function GraphNodeTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
1731
|
+
return value;
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
// src/generated/models/GraphNode.ts
|
|
1735
|
+
function instanceOfGraphNode(value) {
|
|
1736
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
1737
|
+
if (!("type" in value) || value["type"] === void 0) return false;
|
|
1738
|
+
if (!("name" in value) || value["name"] === void 0) return false;
|
|
1759
1739
|
return true;
|
|
1760
1740
|
}
|
|
1761
|
-
function
|
|
1762
|
-
return
|
|
1741
|
+
function GraphNodeFromJSON(json) {
|
|
1742
|
+
return GraphNodeFromJSONTyped(json, false);
|
|
1763
1743
|
}
|
|
1764
|
-
function
|
|
1744
|
+
function GraphNodeFromJSONTyped(json, ignoreDiscriminator) {
|
|
1765
1745
|
if (json == null) {
|
|
1766
1746
|
return json;
|
|
1767
1747
|
}
|
|
1768
1748
|
return {
|
|
1769
|
-
"
|
|
1770
|
-
"
|
|
1771
|
-
"
|
|
1749
|
+
"id": json["id"],
|
|
1750
|
+
"type": GraphNodeTypeFromJSON(json["type"]),
|
|
1751
|
+
"name": json["name"],
|
|
1752
|
+
"aliases": json["aliases"] == null ? void 0 : json["aliases"],
|
|
1753
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
1754
|
+
"subtype": json["subtype"] == null ? void 0 : EntityClassNameFromJSON(json["subtype"])
|
|
1772
1755
|
};
|
|
1773
1756
|
}
|
|
1774
|
-
function
|
|
1775
|
-
return
|
|
1757
|
+
function GraphNodeToJSON(json) {
|
|
1758
|
+
return GraphNodeToJSONTyped(json, false);
|
|
1776
1759
|
}
|
|
1777
|
-
function
|
|
1760
|
+
function GraphNodeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1778
1761
|
if (value == null) {
|
|
1779
1762
|
return value;
|
|
1780
1763
|
}
|
|
1781
1764
|
return {
|
|
1782
|
-
"
|
|
1783
|
-
"
|
|
1784
|
-
"
|
|
1765
|
+
"id": value["id"],
|
|
1766
|
+
"type": GraphNodeTypeToJSON(value["type"]),
|
|
1767
|
+
"name": value["name"],
|
|
1768
|
+
"aliases": value["aliases"],
|
|
1769
|
+
"description": value["description"],
|
|
1770
|
+
"subtype": EntityClassNameToJSON(value["subtype"])
|
|
1785
1771
|
};
|
|
1786
1772
|
}
|
|
1787
1773
|
|
|
1788
|
-
// src/generated/models/
|
|
1789
|
-
function
|
|
1790
|
-
if (!("
|
|
1791
|
-
if (!("
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1774
|
+
// src/generated/models/RelationGroup.ts
|
|
1775
|
+
function instanceOfRelationGroup(value) {
|
|
1776
|
+
if (!("items" in value) || value["items"] === void 0) return false;
|
|
1777
|
+
if (!("total" in value) || value["total"] === void 0) return false;
|
|
1778
|
+
return true;
|
|
1779
|
+
}
|
|
1780
|
+
function RelationGroupFromJSON(json) {
|
|
1781
|
+
return RelationGroupFromJSONTyped(json, false);
|
|
1782
|
+
}
|
|
1783
|
+
function RelationGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
1784
|
+
if (json == null) {
|
|
1785
|
+
return json;
|
|
1786
|
+
}
|
|
1787
|
+
return {
|
|
1788
|
+
"items": json["items"].map(GraphNodeFromJSON),
|
|
1789
|
+
"total": json["total"]
|
|
1790
|
+
};
|
|
1791
|
+
}
|
|
1792
|
+
function RelationGroupToJSON(json) {
|
|
1793
|
+
return RelationGroupToJSONTyped(json, false);
|
|
1794
|
+
}
|
|
1795
|
+
function RelationGroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1796
|
+
if (value == null) {
|
|
1797
|
+
return value;
|
|
1798
|
+
}
|
|
1799
|
+
return {
|
|
1800
|
+
"items": value["items"].map(GraphNodeToJSON),
|
|
1801
|
+
"total": value["total"]
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
// src/generated/models/RelatedGroups.ts
|
|
1806
|
+
function instanceOfRelatedGroups(value) {
|
|
1796
1807
|
if (!("sources" in value) || value["sources"] === void 0) return false;
|
|
1797
|
-
if (!("
|
|
1798
|
-
if (!("
|
|
1799
|
-
if (!("card_type" in value) || value["card_type"] === void 0) return false;
|
|
1800
|
-
if (!("data_url" in value) || value["data_url"] === void 0) return false;
|
|
1801
|
-
if (!("relevance" in value) || value["relevance"] === void 0) return false;
|
|
1802
|
-
if (!("visualization_data" in value) || value["visualization_data"] === void 0) return false;
|
|
1808
|
+
if (!("metrics" in value) || value["metrics"] === void 0) return false;
|
|
1809
|
+
if (!("entities" in value) || value["entities"] === void 0) return false;
|
|
1803
1810
|
return true;
|
|
1804
1811
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return
|
|
1812
|
+
function RelatedGroupsFromJSON(json) {
|
|
1813
|
+
return RelatedGroupsFromJSONTyped(json, false);
|
|
1807
1814
|
}
|
|
1808
|
-
function
|
|
1815
|
+
function RelatedGroupsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1809
1816
|
if (json == null) {
|
|
1810
1817
|
return json;
|
|
1811
1818
|
}
|
|
1812
1819
|
return {
|
|
1813
|
-
"
|
|
1814
|
-
"
|
|
1815
|
-
"
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
"source_indexes": json["source_indexes"] == null ? null : json["source_indexes"].map(KnowledgeCardSourceIndexesInnerFromJSON),
|
|
1823
|
-
"card_type": json["card_type"],
|
|
1824
|
-
"data_url": json["data_url"],
|
|
1825
|
-
"relevance": KnowledgeCardRelevanceFromJSON(json["relevance"]),
|
|
1826
|
-
"visualization_data": json["visualization_data"],
|
|
1827
|
-
"ideal_viz_decisions": json["ideal_viz_decisions"] == null ? void 0 : json["ideal_viz_decisions"].map(IdealVizDecisionFromJSON)
|
|
1828
|
-
};
|
|
1829
|
-
}
|
|
1830
|
-
function KnowledgeCardToJSON(json) {
|
|
1831
|
-
return KnowledgeCardToJSONTyped(json, false);
|
|
1832
|
-
}
|
|
1833
|
-
function KnowledgeCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1820
|
+
"sources": RelationGroupFromJSON(json["sources"]),
|
|
1821
|
+
"metrics": RelationGroupFromJSON(json["metrics"]),
|
|
1822
|
+
"entities": RelationGroupFromJSON(json["entities"])
|
|
1823
|
+
};
|
|
1824
|
+
}
|
|
1825
|
+
function RelatedGroupsToJSON(json) {
|
|
1826
|
+
return RelatedGroupsToJSONTyped(json, false);
|
|
1827
|
+
}
|
|
1828
|
+
function RelatedGroupsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1834
1829
|
if (value == null) {
|
|
1835
1830
|
return value;
|
|
1836
1831
|
}
|
|
1837
1832
|
return {
|
|
1838
|
-
"
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1833
|
+
"sources": RelationGroupToJSON(value["sources"]),
|
|
1834
|
+
"metrics": RelationGroupToJSON(value["metrics"]),
|
|
1835
|
+
"entities": RelationGroupToJSON(value["entities"])
|
|
1836
|
+
};
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
// src/generated/models/GraphRelationPage.ts
|
|
1840
|
+
function instanceOfGraphRelationPage(value) {
|
|
1841
|
+
if (!("relation_type" in value) || value["relation_type"] === void 0) return false;
|
|
1842
|
+
if (!("items" in value) || value["items"] === void 0) return false;
|
|
1843
|
+
if (!("total" in value) || value["total"] === void 0) return false;
|
|
1844
|
+
return true;
|
|
1845
|
+
}
|
|
1846
|
+
function GraphRelationPageFromJSON(json) {
|
|
1847
|
+
return GraphRelationPageFromJSONTyped(json, false);
|
|
1848
|
+
}
|
|
1849
|
+
function GraphRelationPageFromJSONTyped(json, ignoreDiscriminator) {
|
|
1850
|
+
if (json == null) {
|
|
1851
|
+
return json;
|
|
1852
|
+
}
|
|
1853
|
+
return {
|
|
1854
|
+
"relation_type": GraphNodeTypeFromJSON(json["relation_type"]),
|
|
1855
|
+
"items": json["items"].map(GraphNodeFromJSON),
|
|
1856
|
+
"total": json["total"],
|
|
1857
|
+
"next_cursor": json["next_cursor"] == null ? void 0 : json["next_cursor"]
|
|
1858
|
+
};
|
|
1859
|
+
}
|
|
1860
|
+
function GraphRelationPageToJSON(json) {
|
|
1861
|
+
return GraphRelationPageToJSONTyped(json, false);
|
|
1862
|
+
}
|
|
1863
|
+
function GraphRelationPageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1864
|
+
if (value == null) {
|
|
1865
|
+
return value;
|
|
1866
|
+
}
|
|
1867
|
+
return {
|
|
1868
|
+
"relation_type": GraphNodeTypeToJSON(value["relation_type"]),
|
|
1869
|
+
"items": value["items"].map(GraphNodeToJSON),
|
|
1870
|
+
"total": value["total"],
|
|
1871
|
+
"next_cursor": value["next_cursor"]
|
|
1872
|
+
};
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
// src/generated/models/GraphRelatedResponse.ts
|
|
1876
|
+
function instanceOfGraphRelatedResponse(value) {
|
|
1877
|
+
if (!("node" in value) || value["node"] === void 0) return false;
|
|
1878
|
+
return true;
|
|
1879
|
+
}
|
|
1880
|
+
function GraphRelatedResponseFromJSON(json) {
|
|
1881
|
+
return GraphRelatedResponseFromJSONTyped(json, false);
|
|
1882
|
+
}
|
|
1883
|
+
function GraphRelatedResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1884
|
+
if (json == null) {
|
|
1885
|
+
return json;
|
|
1886
|
+
}
|
|
1887
|
+
return {
|
|
1888
|
+
"node": GraphNodeFromJSON(json["node"]),
|
|
1889
|
+
"related": json["related"] == null ? void 0 : RelatedGroupsFromJSON(json["related"]),
|
|
1890
|
+
"relation": json["relation"] == null ? void 0 : GraphRelationPageFromJSON(json["relation"])
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
function GraphRelatedResponseToJSON(json) {
|
|
1894
|
+
return GraphRelatedResponseToJSONTyped(json, false);
|
|
1895
|
+
}
|
|
1896
|
+
function GraphRelatedResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1897
|
+
if (value == null) {
|
|
1898
|
+
return value;
|
|
1899
|
+
}
|
|
1900
|
+
return {
|
|
1901
|
+
"node": GraphNodeToJSON(value["node"]),
|
|
1902
|
+
"related": RelatedGroupsToJSON(value["related"]),
|
|
1903
|
+
"relation": GraphRelationPageToJSON(value["relation"])
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
// src/generated/models/GraphSearchResponse.ts
|
|
1908
|
+
function instanceOfGraphSearchResponse(value) {
|
|
1909
|
+
if (!("results" in value) || value["results"] === void 0) return false;
|
|
1910
|
+
return true;
|
|
1911
|
+
}
|
|
1912
|
+
function GraphSearchResponseFromJSON(json) {
|
|
1913
|
+
return GraphSearchResponseFromJSONTyped(json, false);
|
|
1914
|
+
}
|
|
1915
|
+
function GraphSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1916
|
+
if (json == null) {
|
|
1917
|
+
return json;
|
|
1918
|
+
}
|
|
1919
|
+
return {
|
|
1920
|
+
"results": json["results"].map(GraphNodeFromJSON)
|
|
1921
|
+
};
|
|
1922
|
+
}
|
|
1923
|
+
function GraphSearchResponseToJSON(json) {
|
|
1924
|
+
return GraphSearchResponseToJSONTyped(json, false);
|
|
1925
|
+
}
|
|
1926
|
+
function GraphSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1927
|
+
if (value == null) {
|
|
1928
|
+
return value;
|
|
1929
|
+
}
|
|
1930
|
+
return {
|
|
1931
|
+
"results": value["results"].map(GraphNodeToJSON)
|
|
1853
1932
|
};
|
|
1854
1933
|
}
|
|
1855
1934
|
|
|
@@ -1911,37 +1990,6 @@ function OutputSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1911
1990
|
};
|
|
1912
1991
|
}
|
|
1913
1992
|
|
|
1914
|
-
// src/generated/models/TakoSourceSettings.ts
|
|
1915
|
-
function instanceOfTakoSourceSettings(value) {
|
|
1916
|
-
return true;
|
|
1917
|
-
}
|
|
1918
|
-
function TakoSourceSettingsFromJSON(json) {
|
|
1919
|
-
return TakoSourceSettingsFromJSONTyped(json, false);
|
|
1920
|
-
}
|
|
1921
|
-
function TakoSourceSettingsFromJSONTyped(json, ignoreDiscriminator) {
|
|
1922
|
-
if (json == null) {
|
|
1923
|
-
return json;
|
|
1924
|
-
}
|
|
1925
|
-
return {
|
|
1926
|
-
"count": json["count"] == null ? void 0 : json["count"],
|
|
1927
|
-
"include_contents": json["include_contents"] == null ? void 0 : json["include_contents"],
|
|
1928
|
-
"defer_data_retrieval": json["defer_data_retrieval"] == null ? void 0 : json["defer_data_retrieval"]
|
|
1929
|
-
};
|
|
1930
|
-
}
|
|
1931
|
-
function TakoSourceSettingsToJSON(json) {
|
|
1932
|
-
return TakoSourceSettingsToJSONTyped(json, false);
|
|
1933
|
-
}
|
|
1934
|
-
function TakoSourceSettingsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1935
|
-
if (value == null) {
|
|
1936
|
-
return value;
|
|
1937
|
-
}
|
|
1938
|
-
return {
|
|
1939
|
-
"count": value["count"],
|
|
1940
|
-
"include_contents": value["include_contents"],
|
|
1941
|
-
"defer_data_retrieval": value["defer_data_retrieval"]
|
|
1942
|
-
};
|
|
1943
|
-
}
|
|
1944
|
-
|
|
1945
1993
|
// src/generated/models/SourceSettings.ts
|
|
1946
1994
|
function instanceOfSourceSettings(value) {
|
|
1947
1995
|
return true;
|
|
@@ -1983,7 +2031,7 @@ function SourcesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1983
2031
|
return json;
|
|
1984
2032
|
}
|
|
1985
2033
|
return {
|
|
1986
|
-
"data": json["data"] == null ? void 0 :
|
|
2034
|
+
"data": json["data"] == null ? void 0 : SourceSettingsFromJSON(json["data"]),
|
|
1987
2035
|
"web": json["web"] == null ? void 0 : SourceSettingsFromJSON(json["web"])
|
|
1988
2036
|
};
|
|
1989
2037
|
}
|
|
@@ -1995,7 +2043,7 @@ function SourcesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1995
2043
|
return value;
|
|
1996
2044
|
}
|
|
1997
2045
|
return {
|
|
1998
|
-
"data":
|
|
2046
|
+
"data": SourceSettingsToJSON(value["data"]),
|
|
1999
2047
|
"web": SourceSettingsToJSON(value["web"])
|
|
2000
2048
|
};
|
|
2001
2049
|
}
|
|
@@ -2074,6 +2122,53 @@ function SearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2074
2122
|
};
|
|
2075
2123
|
}
|
|
2076
2124
|
|
|
2125
|
+
// src/generated/models/ThinVizCard.ts
|
|
2126
|
+
var ThinVizCardEmbedModeEnum = {
|
|
2127
|
+
Post: "post",
|
|
2128
|
+
Postmessage: "postmessage"
|
|
2129
|
+
};
|
|
2130
|
+
function instanceOfThinVizCard(value) {
|
|
2131
|
+
return true;
|
|
2132
|
+
}
|
|
2133
|
+
function ThinVizCardFromJSON(json) {
|
|
2134
|
+
return ThinVizCardFromJSONTyped(json, false);
|
|
2135
|
+
}
|
|
2136
|
+
function ThinVizCardFromJSONTyped(json, ignoreDiscriminator) {
|
|
2137
|
+
if (json == null) {
|
|
2138
|
+
return json;
|
|
2139
|
+
}
|
|
2140
|
+
return {
|
|
2141
|
+
"card_id": json["card_id"] == null ? void 0 : json["card_id"],
|
|
2142
|
+
"title": json["title"] == null ? void 0 : json["title"],
|
|
2143
|
+
"description": json["description"] == null ? void 0 : json["description"],
|
|
2144
|
+
"webpage_url": json["webpage_url"] == null ? void 0 : json["webpage_url"],
|
|
2145
|
+
"image_url": json["image_url"] == null ? void 0 : json["image_url"],
|
|
2146
|
+
"embed_url": json["embed_url"] == null ? void 0 : json["embed_url"],
|
|
2147
|
+
"card_type": json["card_type"] == null ? void 0 : json["card_type"],
|
|
2148
|
+
"visualization_data": json["visualization_data"] == null ? void 0 : json["visualization_data"],
|
|
2149
|
+
"embed_mode": json["embed_mode"] == null ? void 0 : json["embed_mode"]
|
|
2150
|
+
};
|
|
2151
|
+
}
|
|
2152
|
+
function ThinVizCardToJSON(json) {
|
|
2153
|
+
return ThinVizCardToJSONTyped(json, false);
|
|
2154
|
+
}
|
|
2155
|
+
function ThinVizCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2156
|
+
if (value == null) {
|
|
2157
|
+
return value;
|
|
2158
|
+
}
|
|
2159
|
+
return {
|
|
2160
|
+
"card_id": value["card_id"],
|
|
2161
|
+
"title": value["title"],
|
|
2162
|
+
"description": value["description"],
|
|
2163
|
+
"webpage_url": value["webpage_url"],
|
|
2164
|
+
"image_url": value["image_url"],
|
|
2165
|
+
"embed_url": value["embed_url"],
|
|
2166
|
+
"card_type": value["card_type"],
|
|
2167
|
+
"visualization_data": value["visualization_data"],
|
|
2168
|
+
"embed_mode": value["embed_mode"]
|
|
2169
|
+
};
|
|
2170
|
+
}
|
|
2171
|
+
|
|
2077
2172
|
// src/generated/apis/TakoApi.ts
|
|
2078
2173
|
var TakoApi = class extends BaseAPI {
|
|
2079
2174
|
/**
|
|
@@ -2112,42 +2207,6 @@ var TakoApi = class extends BaseAPI {
|
|
|
2112
2207
|
const response = await this.answerRaw(requestParameters, initOverrides);
|
|
2113
2208
|
return await response.value();
|
|
2114
2209
|
}
|
|
2115
|
-
/**
|
|
2116
|
-
* Creates request options for classify without sending the request
|
|
2117
|
-
*/
|
|
2118
|
-
async classifyRequestOpts(requestParameters) {
|
|
2119
|
-
const queryParameters = {};
|
|
2120
|
-
const headerParameters = {};
|
|
2121
|
-
headerParameters["Content-Type"] = "application/json";
|
|
2122
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
2123
|
-
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
2124
|
-
}
|
|
2125
|
-
let urlPath = `/v1/classify`;
|
|
2126
|
-
return {
|
|
2127
|
-
path: urlPath,
|
|
2128
|
-
method: "POST",
|
|
2129
|
-
headers: headerParameters,
|
|
2130
|
-
query: queryParameters,
|
|
2131
|
-
body: ClassifyRequestToJSON(requestParameters["classifyRequest"])
|
|
2132
|
-
};
|
|
2133
|
-
}
|
|
2134
|
-
/**
|
|
2135
|
-
* 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.
|
|
2136
|
-
* Classify queries
|
|
2137
|
-
*/
|
|
2138
|
-
async classifyRaw(requestParameters, initOverrides) {
|
|
2139
|
-
const requestOptions = await this.classifyRequestOpts(requestParameters);
|
|
2140
|
-
const response = await this.request(requestOptions, initOverrides);
|
|
2141
|
-
return new JSONApiResponse(response, (jsonValue) => ClassifyResponseFromJSON(jsonValue));
|
|
2142
|
-
}
|
|
2143
|
-
/**
|
|
2144
|
-
* 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.
|
|
2145
|
-
* Classify queries
|
|
2146
|
-
*/
|
|
2147
|
-
async classify(requestParameters = {}, initOverrides) {
|
|
2148
|
-
const response = await this.classifyRaw(requestParameters, initOverrides);
|
|
2149
|
-
return await response.value();
|
|
2150
|
-
}
|
|
2151
2210
|
/**
|
|
2152
2211
|
* Creates request options for contents without sending the request
|
|
2153
2212
|
*/
|
|
@@ -2209,7 +2268,7 @@ var TakoApi = class extends BaseAPI {
|
|
|
2209
2268
|
async createCardRaw(requestParameters, initOverrides) {
|
|
2210
2269
|
const requestOptions = await this.createCardRequestOpts(requestParameters);
|
|
2211
2270
|
const response = await this.request(requestOptions, initOverrides);
|
|
2212
|
-
return new JSONApiResponse(response, (jsonValue) =>
|
|
2271
|
+
return new JSONApiResponse(response, (jsonValue) => ThinVizCardFromJSON(jsonValue));
|
|
2213
2272
|
}
|
|
2214
2273
|
/**
|
|
2215
2274
|
* Create a visualization card directly from component configurations. Supported component types: header, generic_timeseries, categorical_bar, stock_boxes, financial_boxes, table.
|
|
@@ -2218,6 +2277,107 @@ var TakoApi = class extends BaseAPI {
|
|
|
2218
2277
|
const response = await this.createCardRaw(requestParameters, initOverrides);
|
|
2219
2278
|
return await response.value();
|
|
2220
2279
|
}
|
|
2280
|
+
/**
|
|
2281
|
+
* Creates request options for graphRelated without sending the request
|
|
2282
|
+
*/
|
|
2283
|
+
async graphRelatedRequestOpts(requestParameters) {
|
|
2284
|
+
if (requestParameters["nodeId"] == null) {
|
|
2285
|
+
throw new RequiredError(
|
|
2286
|
+
"nodeId",
|
|
2287
|
+
'Required parameter "nodeId" was null or undefined when calling graphRelated().'
|
|
2288
|
+
);
|
|
2289
|
+
}
|
|
2290
|
+
const queryParameters = {};
|
|
2291
|
+
if (requestParameters["nodeId"] != null) {
|
|
2292
|
+
queryParameters["node_id"] = requestParameters["nodeId"];
|
|
2293
|
+
}
|
|
2294
|
+
if (requestParameters["relationType"] != null) {
|
|
2295
|
+
queryParameters["relation_type"] = requestParameters["relationType"];
|
|
2296
|
+
}
|
|
2297
|
+
if (requestParameters["q"] != null) {
|
|
2298
|
+
queryParameters["q"] = requestParameters["q"];
|
|
2299
|
+
}
|
|
2300
|
+
if (requestParameters["cursor"] != null) {
|
|
2301
|
+
queryParameters["cursor"] = requestParameters["cursor"];
|
|
2302
|
+
}
|
|
2303
|
+
if (requestParameters["limit"] != null) {
|
|
2304
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2305
|
+
}
|
|
2306
|
+
const headerParameters = {};
|
|
2307
|
+
let urlPath = `/beta/graph/related`;
|
|
2308
|
+
return {
|
|
2309
|
+
path: urlPath,
|
|
2310
|
+
method: "GET",
|
|
2311
|
+
headers: headerParameters,
|
|
2312
|
+
query: queryParameters
|
|
2313
|
+
};
|
|
2314
|
+
}
|
|
2315
|
+
/**
|
|
2316
|
+
* 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.
|
|
2317
|
+
* Get a graph node\'s related nodes
|
|
2318
|
+
*/
|
|
2319
|
+
async graphRelatedRaw(requestParameters, initOverrides) {
|
|
2320
|
+
const requestOptions = await this.graphRelatedRequestOpts(requestParameters);
|
|
2321
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2322
|
+
return new JSONApiResponse(response, (jsonValue) => GraphRelatedResponseFromJSON(jsonValue));
|
|
2323
|
+
}
|
|
2324
|
+
/**
|
|
2325
|
+
* 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.
|
|
2326
|
+
* Get a graph node\'s related nodes
|
|
2327
|
+
*/
|
|
2328
|
+
async graphRelated(requestParameters, initOverrides) {
|
|
2329
|
+
const response = await this.graphRelatedRaw(requestParameters, initOverrides);
|
|
2330
|
+
return await response.value();
|
|
2331
|
+
}
|
|
2332
|
+
/**
|
|
2333
|
+
* Creates request options for graphSearch without sending the request
|
|
2334
|
+
*/
|
|
2335
|
+
async graphSearchRequestOpts(requestParameters) {
|
|
2336
|
+
if (requestParameters["q"] == null) {
|
|
2337
|
+
throw new RequiredError(
|
|
2338
|
+
"q",
|
|
2339
|
+
'Required parameter "q" was null or undefined when calling graphSearch().'
|
|
2340
|
+
);
|
|
2341
|
+
}
|
|
2342
|
+
const queryParameters = {};
|
|
2343
|
+
if (requestParameters["q"] != null) {
|
|
2344
|
+
queryParameters["q"] = requestParameters["q"];
|
|
2345
|
+
}
|
|
2346
|
+
if (requestParameters["types"] != null) {
|
|
2347
|
+
queryParameters["types"] = requestParameters["types"];
|
|
2348
|
+
}
|
|
2349
|
+
if (requestParameters["limit"] != null) {
|
|
2350
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
2351
|
+
}
|
|
2352
|
+
if (requestParameters["subtype"] != null) {
|
|
2353
|
+
queryParameters["subtype"] = requestParameters["subtype"];
|
|
2354
|
+
}
|
|
2355
|
+
const headerParameters = {};
|
|
2356
|
+
let urlPath = `/beta/graph/search`;
|
|
2357
|
+
return {
|
|
2358
|
+
path: urlPath,
|
|
2359
|
+
method: "GET",
|
|
2360
|
+
headers: headerParameters,
|
|
2361
|
+
query: queryParameters
|
|
2362
|
+
};
|
|
2363
|
+
}
|
|
2364
|
+
/**
|
|
2365
|
+
* 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).
|
|
2366
|
+
* Search the data graph
|
|
2367
|
+
*/
|
|
2368
|
+
async graphSearchRaw(requestParameters, initOverrides) {
|
|
2369
|
+
const requestOptions = await this.graphSearchRequestOpts(requestParameters);
|
|
2370
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2371
|
+
return new JSONApiResponse(response, (jsonValue) => GraphSearchResponseFromJSON(jsonValue));
|
|
2372
|
+
}
|
|
2373
|
+
/**
|
|
2374
|
+
* 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).
|
|
2375
|
+
* Search the data graph
|
|
2376
|
+
*/
|
|
2377
|
+
async graphSearch(requestParameters, initOverrides) {
|
|
2378
|
+
const response = await this.graphSearchRaw(requestParameters, initOverrides);
|
|
2379
|
+
return await response.value();
|
|
2380
|
+
}
|
|
2221
2381
|
/**
|
|
2222
2382
|
* Creates request options for search without sending the request
|
|
2223
2383
|
*/
|
|
@@ -2255,6 +2415,92 @@ var TakoApi = class extends BaseAPI {
|
|
|
2255
2415
|
return await response.value();
|
|
2256
2416
|
}
|
|
2257
2417
|
};
|
|
2418
|
+
var GraphSearchSubtypeEnum = {
|
|
2419
|
+
Companies: "Companies",
|
|
2420
|
+
Cryptocurrencies: "Cryptocurrencies",
|
|
2421
|
+
FinancialInstruments: "Financial Instruments",
|
|
2422
|
+
InternetBrowsers: "Internet Browsers",
|
|
2423
|
+
Commodities: "Commodities",
|
|
2424
|
+
People: "People",
|
|
2425
|
+
Currencies: "Currencies",
|
|
2426
|
+
StockExchanges: "Stock Exchanges",
|
|
2427
|
+
Securities: "Securities",
|
|
2428
|
+
Ipos: "IPOs",
|
|
2429
|
+
GovernmentDebtInstruments: "Government Debt Instruments",
|
|
2430
|
+
TreasurySecurities: "Treasury Securities",
|
|
2431
|
+
Airports: "Airports",
|
|
2432
|
+
Airlines: "Airlines",
|
|
2433
|
+
VehicleTypes: "Vehicle Types",
|
|
2434
|
+
TransportationModes: "Transportation Modes",
|
|
2435
|
+
Drugs: "Drugs",
|
|
2436
|
+
DrugCategories: "Drug Categories",
|
|
2437
|
+
Diseases: "Diseases",
|
|
2438
|
+
ChemicalElements: "Chemical Elements",
|
|
2439
|
+
ChemicalCompounds: "Chemical Compounds",
|
|
2440
|
+
CelestialBodies: "Celestial Bodies",
|
|
2441
|
+
Occupations: "Occupations",
|
|
2442
|
+
SocialMediaPlatforms: "Social Media Platforms",
|
|
2443
|
+
OperatingSystems: "Operating Systems",
|
|
2444
|
+
SearchEngines: "Search Engines",
|
|
2445
|
+
DeviceTypes: "Device Types",
|
|
2446
|
+
Llms: "LLMs",
|
|
2447
|
+
LlmFamilies: "LLM Families",
|
|
2448
|
+
LlmBenchmarks: "LLM Benchmarks",
|
|
2449
|
+
Industries: "Industries",
|
|
2450
|
+
NaicsIndustries: "NAICS Industries",
|
|
2451
|
+
BlsIndustries: "BLS Industries",
|
|
2452
|
+
PscCategories: "PSC Categories",
|
|
2453
|
+
FederalContractors: "Federal Contractors",
|
|
2454
|
+
FederalAgencies: "Federal Agencies",
|
|
2455
|
+
FederalSubagencies: "Federal Subagencies",
|
|
2456
|
+
IceContracts: "ICE Contracts",
|
|
2457
|
+
IceContractors: "ICE Contractors",
|
|
2458
|
+
Elections: "Elections",
|
|
2459
|
+
PoliticalOffices: "Political Offices",
|
|
2460
|
+
Pollsters: "Pollsters",
|
|
2461
|
+
AgriculturalProducts: "Agricultural Products",
|
|
2462
|
+
TobaccoProducts: "Tobacco Products",
|
|
2463
|
+
PredictionMarkets: "Prediction Markets",
|
|
2464
|
+
PredictionEvents: "Prediction Events",
|
|
2465
|
+
RealEstatePropertyTypes: "Real Estate Property Types",
|
|
2466
|
+
Continents: "Continents",
|
|
2467
|
+
WorldRegions: "World Regions",
|
|
2468
|
+
Countries: "Countries",
|
|
2469
|
+
States: "States",
|
|
2470
|
+
Counties: "Counties",
|
|
2471
|
+
MetroAreas: "Metro Areas",
|
|
2472
|
+
Cities: "Cities",
|
|
2473
|
+
F1Drivers: "F1 Drivers",
|
|
2474
|
+
F1Teams: "F1 Teams",
|
|
2475
|
+
F1Circuits: "F1 Circuits",
|
|
2476
|
+
F1Events: "F1 Events",
|
|
2477
|
+
NascarDrivers: "NASCAR Drivers",
|
|
2478
|
+
NascarTeams: "NASCAR Teams",
|
|
2479
|
+
NascarTracks: "NASCAR Tracks",
|
|
2480
|
+
NascarEvents: "NASCAR Events",
|
|
2481
|
+
NascarRaces: "NASCAR Races",
|
|
2482
|
+
NascarOwners: "NASCAR Owners",
|
|
2483
|
+
NascarManufacturers: "NASCAR Manufacturers",
|
|
2484
|
+
SoccerTeams: "Soccer Teams",
|
|
2485
|
+
SoccerPlayers: "Soccer Players",
|
|
2486
|
+
SoccerCompetitions: "Soccer Competitions",
|
|
2487
|
+
SoccerConferences: "Soccer Conferences",
|
|
2488
|
+
BasketballTeams: "Basketball Teams",
|
|
2489
|
+
BasketballPlayers: "Basketball Players",
|
|
2490
|
+
BasketballConferences: "Basketball Conferences",
|
|
2491
|
+
BasketballDivisions: "Basketball Divisions",
|
|
2492
|
+
BaseballTeams: "Baseball Teams",
|
|
2493
|
+
BaseballPlayers: "Baseball Players",
|
|
2494
|
+
BaseballConferences: "Baseball Conferences",
|
|
2495
|
+
BaseballDivisions: "Baseball Divisions",
|
|
2496
|
+
BaseballCompetitions: "Baseball Competitions",
|
|
2497
|
+
FootballTeams: "Football Teams",
|
|
2498
|
+
FootballPlayers: "Football Players",
|
|
2499
|
+
FootballConferences: "Football Conferences",
|
|
2500
|
+
FootballDivisions: "Football Divisions",
|
|
2501
|
+
Sports: "Sports",
|
|
2502
|
+
SportsLeagues: "Sports Leagues"
|
|
2503
|
+
};
|
|
2258
2504
|
|
|
2259
2505
|
// src/generated/models/APIErrorType.ts
|
|
2260
2506
|
var APIErrorType = {
|
|
@@ -2954,70 +3200,6 @@ function BaseAPIErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
2954
3200
|
};
|
|
2955
3201
|
}
|
|
2956
3202
|
|
|
2957
|
-
// src/generated/models/CardSourceIndexSegment.ts
|
|
2958
|
-
function instanceOfCardSourceIndexSegment(value) {
|
|
2959
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
2960
|
-
if (!("segment_id" in value) || value["segment_id"] === void 0) return false;
|
|
2961
|
-
return true;
|
|
2962
|
-
}
|
|
2963
|
-
function CardSourceIndexSegmentFromJSON(json) {
|
|
2964
|
-
return CardSourceIndexSegmentFromJSONTyped(json, false);
|
|
2965
|
-
}
|
|
2966
|
-
function CardSourceIndexSegmentFromJSONTyped(json, ignoreDiscriminator) {
|
|
2967
|
-
if (json == null) {
|
|
2968
|
-
return json;
|
|
2969
|
-
}
|
|
2970
|
-
return {
|
|
2971
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
2972
|
-
"segment_id": json["segment_id"]
|
|
2973
|
-
};
|
|
2974
|
-
}
|
|
2975
|
-
function CardSourceIndexSegmentToJSON(json) {
|
|
2976
|
-
return CardSourceIndexSegmentToJSONTyped(json, false);
|
|
2977
|
-
}
|
|
2978
|
-
function CardSourceIndexSegmentToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2979
|
-
if (value == null) {
|
|
2980
|
-
return value;
|
|
2981
|
-
}
|
|
2982
|
-
return {
|
|
2983
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
2984
|
-
"segment_id": value["segment_id"]
|
|
2985
|
-
};
|
|
2986
|
-
}
|
|
2987
|
-
|
|
2988
|
-
// src/generated/models/CardSourcePrivateIndex.ts
|
|
2989
|
-
function instanceOfCardSourcePrivateIndex(value) {
|
|
2990
|
-
if (!("index_type" in value) || value["index_type"] === void 0) return false;
|
|
2991
|
-
if (!("private_index_id" in value) || value["private_index_id"] === void 0) return false;
|
|
2992
|
-
return true;
|
|
2993
|
-
}
|
|
2994
|
-
function CardSourcePrivateIndexFromJSON(json) {
|
|
2995
|
-
return CardSourcePrivateIndexFromJSONTyped(json, false);
|
|
2996
|
-
}
|
|
2997
|
-
function CardSourcePrivateIndexFromJSONTyped(json, ignoreDiscriminator) {
|
|
2998
|
-
if (json == null) {
|
|
2999
|
-
return json;
|
|
3000
|
-
}
|
|
3001
|
-
return {
|
|
3002
|
-
"index_type": CardSourceIndexFromJSON(json["index_type"]),
|
|
3003
|
-
"segment_id": json["segment_id"] == null ? void 0 : json["segment_id"],
|
|
3004
|
-
"private_index_id": json["private_index_id"]
|
|
3005
|
-
};
|
|
3006
|
-
}
|
|
3007
|
-
function CardSourcePrivateIndexToJSON(json) {
|
|
3008
|
-
return CardSourcePrivateIndexToJSONTyped(json, false);
|
|
3009
|
-
}
|
|
3010
|
-
function CardSourcePrivateIndexToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3011
|
-
if (value == null) {
|
|
3012
|
-
return value;
|
|
3013
|
-
}
|
|
3014
|
-
return {
|
|
3015
|
-
"index_type": CardSourceIndexToJSON(value["index_type"]),
|
|
3016
|
-
"segment_id": value["segment_id"],
|
|
3017
|
-
"private_index_id": value["private_index_id"]
|
|
3018
|
-
};
|
|
3019
|
-
}
|
|
3020
|
-
|
|
3021
3203
|
// src/generated/models/CreateCard400Response.ts
|
|
3022
3204
|
function instanceOfCreateCard400Response(value) {
|
|
3023
3205
|
if (!("error" in value) || value["error"] === void 0) return false;
|
|
@@ -3250,6 +3432,14 @@ var Tako = class {
|
|
|
3250
3432
|
createCard(request) {
|
|
3251
3433
|
return this.api.createCard({ createCardRequest: request });
|
|
3252
3434
|
}
|
|
3435
|
+
// /beta/graph/search and /beta/graph/related are GET endpoints, so the
|
|
3436
|
+
// generated request type is the query-param object itself (no body wrapper).
|
|
3437
|
+
graphSearch(request) {
|
|
3438
|
+
return this.api.graphSearch(request);
|
|
3439
|
+
}
|
|
3440
|
+
graphRelated(request) {
|
|
3441
|
+
return this.api.graphRelated(request);
|
|
3442
|
+
}
|
|
3253
3443
|
};
|
|
3254
3444
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3255
3445
|
0 && (module.exports = {
|
|
@@ -3318,27 +3508,6 @@ var Tako = class {
|
|
|
3318
3508
|
BlockToJSON,
|
|
3319
3509
|
BlockToJSONTyped,
|
|
3320
3510
|
COLLECTION_FORMATS,
|
|
3321
|
-
CardSourceIndex,
|
|
3322
|
-
CardSourceIndexFromJSON,
|
|
3323
|
-
CardSourceIndexFromJSONTyped,
|
|
3324
|
-
CardSourceIndexSegmentFromJSON,
|
|
3325
|
-
CardSourceIndexSegmentFromJSONTyped,
|
|
3326
|
-
CardSourceIndexSegmentToJSON,
|
|
3327
|
-
CardSourceIndexSegmentToJSONTyped,
|
|
3328
|
-
CardSourceIndexToJSON,
|
|
3329
|
-
CardSourceIndexToJSONTyped,
|
|
3330
|
-
CardSourcePrivateIndexFromJSON,
|
|
3331
|
-
CardSourcePrivateIndexFromJSONTyped,
|
|
3332
|
-
CardSourcePrivateIndexToJSON,
|
|
3333
|
-
CardSourcePrivateIndexToJSONTyped,
|
|
3334
|
-
ClassifyRequestFromJSON,
|
|
3335
|
-
ClassifyRequestFromJSONTyped,
|
|
3336
|
-
ClassifyRequestToJSON,
|
|
3337
|
-
ClassifyRequestToJSONTyped,
|
|
3338
|
-
ClassifyResponseFromJSON,
|
|
3339
|
-
ClassifyResponseFromJSONTyped,
|
|
3340
|
-
ClassifyResponseToJSON,
|
|
3341
|
-
ClassifyResponseToJSONTyped,
|
|
3342
3511
|
ComponentConfigFromJSON,
|
|
3343
3512
|
ComponentConfigFromJSONTyped,
|
|
3344
3513
|
ComponentConfigToJSON,
|
|
@@ -3385,23 +3554,44 @@ var Tako = class {
|
|
|
3385
3554
|
DataPipelineAnswerEventToJSON,
|
|
3386
3555
|
DataPipelineAnswerEventToJSONTyped,
|
|
3387
3556
|
DefaultConfig,
|
|
3557
|
+
EntityClassName,
|
|
3558
|
+
EntityClassNameFromJSON,
|
|
3559
|
+
EntityClassNameFromJSONTyped,
|
|
3560
|
+
EntityClassNameToJSON,
|
|
3561
|
+
EntityClassNameToJSONTyped,
|
|
3388
3562
|
ErrorObjectFromJSON,
|
|
3389
3563
|
ErrorObjectFromJSONTyped,
|
|
3390
3564
|
ErrorObjectToJSON,
|
|
3391
3565
|
ErrorObjectToJSONTyped,
|
|
3392
3566
|
FetchError,
|
|
3567
|
+
GraphNodeFromJSON,
|
|
3568
|
+
GraphNodeFromJSONTyped,
|
|
3569
|
+
GraphNodeToJSON,
|
|
3570
|
+
GraphNodeToJSONTyped,
|
|
3571
|
+
GraphNodeType,
|
|
3572
|
+
GraphNodeTypeFromJSON,
|
|
3573
|
+
GraphNodeTypeFromJSONTyped,
|
|
3574
|
+
GraphNodeTypeToJSON,
|
|
3575
|
+
GraphNodeTypeToJSONTyped,
|
|
3576
|
+
GraphRelatedResponseFromJSON,
|
|
3577
|
+
GraphRelatedResponseFromJSONTyped,
|
|
3578
|
+
GraphRelatedResponseToJSON,
|
|
3579
|
+
GraphRelatedResponseToJSONTyped,
|
|
3580
|
+
GraphRelationPageFromJSON,
|
|
3581
|
+
GraphRelationPageFromJSONTyped,
|
|
3582
|
+
GraphRelationPageToJSON,
|
|
3583
|
+
GraphRelationPageToJSONTyped,
|
|
3584
|
+
GraphSearchResponseFromJSON,
|
|
3585
|
+
GraphSearchResponseFromJSONTyped,
|
|
3586
|
+
GraphSearchResponseToJSON,
|
|
3587
|
+
GraphSearchResponseToJSONTyped,
|
|
3588
|
+
GraphSearchSubtypeEnum,
|
|
3393
3589
|
HeartbeatEventFromJSON,
|
|
3394
3590
|
HeartbeatEventFromJSONTyped,
|
|
3395
3591
|
HeartbeatEventKindEnum,
|
|
3396
3592
|
HeartbeatEventToJSON,
|
|
3397
3593
|
HeartbeatEventToJSONTyped,
|
|
3398
|
-
IdealVizDecisionFromJSON,
|
|
3399
|
-
IdealVizDecisionFromJSONTyped,
|
|
3400
|
-
IdealVizDecisionToJSON,
|
|
3401
|
-
IdealVizDecisionToJSONTyped,
|
|
3402
3594
|
JSONApiResponse,
|
|
3403
|
-
KnowledgeCardFromJSON,
|
|
3404
|
-
KnowledgeCardFromJSONTyped,
|
|
3405
3595
|
KnowledgeCardMethodologyFromJSON,
|
|
3406
3596
|
KnowledgeCardMethodologyFromJSONTyped,
|
|
3407
3597
|
KnowledgeCardMethodologyToJSON,
|
|
@@ -3411,29 +3601,23 @@ var Tako = class {
|
|
|
3411
3601
|
KnowledgeCardRelevanceFromJSONTyped,
|
|
3412
3602
|
KnowledgeCardRelevanceToJSON,
|
|
3413
3603
|
KnowledgeCardRelevanceToJSONTyped,
|
|
3414
|
-
KnowledgeCardSourceFromJSON,
|
|
3415
|
-
KnowledgeCardSourceFromJSONTyped,
|
|
3416
|
-
KnowledgeCardSourceIndexesInnerFromJSON,
|
|
3417
|
-
KnowledgeCardSourceIndexesInnerFromJSONTyped,
|
|
3418
|
-
KnowledgeCardSourceIndexesInnerToJSON,
|
|
3419
|
-
KnowledgeCardSourceIndexesInnerToJSONTyped,
|
|
3420
|
-
KnowledgeCardSourceToJSON,
|
|
3421
|
-
KnowledgeCardSourceToJSONTyped,
|
|
3422
|
-
KnowledgeCardToJSON,
|
|
3423
|
-
KnowledgeCardToJSONTyped,
|
|
3424
3604
|
OutputSettingsFromJSON,
|
|
3425
3605
|
OutputSettingsFromJSONTyped,
|
|
3426
3606
|
OutputSettingsToJSON,
|
|
3427
3607
|
OutputSettingsToJSONTyped,
|
|
3428
|
-
QueryClassificationFromJSON,
|
|
3429
|
-
QueryClassificationFromJSONTyped,
|
|
3430
|
-
QueryClassificationToJSON,
|
|
3431
|
-
QueryClassificationToJSONTyped,
|
|
3432
3608
|
ReasoningEventFromJSON,
|
|
3433
3609
|
ReasoningEventFromJSONTyped,
|
|
3434
3610
|
ReasoningEventKindEnum,
|
|
3435
3611
|
ReasoningEventToJSON,
|
|
3436
3612
|
ReasoningEventToJSONTyped,
|
|
3613
|
+
RelatedGroupsFromJSON,
|
|
3614
|
+
RelatedGroupsFromJSONTyped,
|
|
3615
|
+
RelatedGroupsToJSON,
|
|
3616
|
+
RelatedGroupsToJSONTyped,
|
|
3617
|
+
RelationGroupFromJSON,
|
|
3618
|
+
RelationGroupFromJSONTyped,
|
|
3619
|
+
RelationGroupToJSON,
|
|
3620
|
+
RelationGroupToJSONTyped,
|
|
3437
3621
|
RequiredError,
|
|
3438
3622
|
ResponseError,
|
|
3439
3623
|
ResultContentFromJSON,
|
|
@@ -3453,10 +3637,6 @@ var Tako = class {
|
|
|
3453
3637
|
SearchResponseFromJSONTyped,
|
|
3454
3638
|
SearchResponseToJSON,
|
|
3455
3639
|
SearchResponseToJSONTyped,
|
|
3456
|
-
SourceIndexFromJSON,
|
|
3457
|
-
SourceIndexFromJSONTyped,
|
|
3458
|
-
SourceIndexToJSON,
|
|
3459
|
-
SourceIndexToJSONTyped,
|
|
3460
3640
|
SourceSettingsFromJSON,
|
|
3461
3641
|
SourceSettingsFromJSONTyped,
|
|
3462
3642
|
SourceSettingsToJSON,
|
|
@@ -3495,18 +3675,28 @@ var Tako = class {
|
|
|
3495
3675
|
TakoApi,
|
|
3496
3676
|
TakoCardFromJSON,
|
|
3497
3677
|
TakoCardFromJSONTyped,
|
|
3678
|
+
TakoCardSourceFromJSON,
|
|
3679
|
+
TakoCardSourceFromJSONTyped,
|
|
3680
|
+
TakoCardSourceToJSON,
|
|
3681
|
+
TakoCardSourceToJSONTyped,
|
|
3498
3682
|
TakoCardToJSON,
|
|
3499
3683
|
TakoCardToJSONTyped,
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3684
|
+
TakoSourceIndex,
|
|
3685
|
+
TakoSourceIndexFromJSON,
|
|
3686
|
+
TakoSourceIndexFromJSONTyped,
|
|
3687
|
+
TakoSourceIndexToJSON,
|
|
3688
|
+
TakoSourceIndexToJSONTyped,
|
|
3504
3689
|
TextApiResponse,
|
|
3505
3690
|
TextEventFromJSON,
|
|
3506
3691
|
TextEventFromJSONTyped,
|
|
3507
3692
|
TextEventKindEnum,
|
|
3508
3693
|
TextEventToJSON,
|
|
3509
3694
|
TextEventToJSONTyped,
|
|
3695
|
+
ThinVizCardEmbedModeEnum,
|
|
3696
|
+
ThinVizCardFromJSON,
|
|
3697
|
+
ThinVizCardFromJSONTyped,
|
|
3698
|
+
ThinVizCardToJSON,
|
|
3699
|
+
ThinVizCardToJSONTyped,
|
|
3510
3700
|
ToolCallEventFromJSON,
|
|
3511
3701
|
ToolCallEventFromJSONTyped,
|
|
3512
3702
|
ToolCallEventKindEnum,
|
|
@@ -3546,11 +3736,6 @@ var Tako = class {
|
|
|
3546
3736
|
instanceOfAgentUsage,
|
|
3547
3737
|
instanceOfAnswerResponse,
|
|
3548
3738
|
instanceOfBaseAPIError,
|
|
3549
|
-
instanceOfCardSourceIndex,
|
|
3550
|
-
instanceOfCardSourceIndexSegment,
|
|
3551
|
-
instanceOfCardSourcePrivateIndex,
|
|
3552
|
-
instanceOfClassifyRequest,
|
|
3553
|
-
instanceOfClassifyResponse,
|
|
3554
3739
|
instanceOfComponentConfig,
|
|
3555
3740
|
instanceOfComponentTypeEnum,
|
|
3556
3741
|
instanceOfContentFormat,
|
|
@@ -3561,22 +3746,24 @@ var Tako = class {
|
|
|
3561
3746
|
instanceOfCreateCard400Response,
|
|
3562
3747
|
instanceOfCreateCardRequest,
|
|
3563
3748
|
instanceOfDataPipelineAnswerEvent,
|
|
3749
|
+
instanceOfEntityClassName,
|
|
3564
3750
|
instanceOfErrorObject,
|
|
3751
|
+
instanceOfGraphNode,
|
|
3752
|
+
instanceOfGraphNodeType,
|
|
3753
|
+
instanceOfGraphRelatedResponse,
|
|
3754
|
+
instanceOfGraphRelationPage,
|
|
3755
|
+
instanceOfGraphSearchResponse,
|
|
3565
3756
|
instanceOfHeartbeatEvent,
|
|
3566
|
-
instanceOfIdealVizDecision,
|
|
3567
|
-
instanceOfKnowledgeCard,
|
|
3568
3757
|
instanceOfKnowledgeCardMethodology,
|
|
3569
3758
|
instanceOfKnowledgeCardRelevance,
|
|
3570
|
-
instanceOfKnowledgeCardSource,
|
|
3571
|
-
instanceOfKnowledgeCardSourceIndexesInner,
|
|
3572
3759
|
instanceOfOutputSettings,
|
|
3573
|
-
instanceOfQueryClassification,
|
|
3574
3760
|
instanceOfReasoningEvent,
|
|
3761
|
+
instanceOfRelatedGroups,
|
|
3762
|
+
instanceOfRelationGroup,
|
|
3575
3763
|
instanceOfResultContent,
|
|
3576
3764
|
instanceOfSearchEffortLevel,
|
|
3577
3765
|
instanceOfSearchRequest,
|
|
3578
3766
|
instanceOfSearchResponse,
|
|
3579
|
-
instanceOfSourceIndex,
|
|
3580
3767
|
instanceOfSourceSettings,
|
|
3581
3768
|
instanceOfSources,
|
|
3582
3769
|
instanceOfStatusEvent,
|
|
@@ -3585,8 +3772,10 @@ var Tako = class {
|
|
|
3585
3772
|
instanceOfStreamResetEvent,
|
|
3586
3773
|
instanceOfSubagentEvent,
|
|
3587
3774
|
instanceOfTakoCard,
|
|
3588
|
-
|
|
3775
|
+
instanceOfTakoCardSource,
|
|
3776
|
+
instanceOfTakoSourceIndex,
|
|
3589
3777
|
instanceOfTextEvent,
|
|
3778
|
+
instanceOfThinVizCard,
|
|
3590
3779
|
instanceOfToolCallEvent,
|
|
3591
3780
|
instanceOfToolErrorEvent,
|
|
3592
3781
|
instanceOfToolResultEvent,
|