tako-sdk 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -183,6 +183,42 @@ declare class TextApiResponse {
183
183
  value(): Promise<string>;
184
184
  }
185
185
 
186
+ /**
187
+ * Knowledge Search API
188
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
189
+ *
190
+ * The version of the OpenAPI document: 1.0.0
191
+ *
192
+ *
193
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
194
+ * https://openapi-generator.tech
195
+ * Do not edit the class manually.
196
+ */
197
+ /**
198
+ * Cost-plus usage for an agent run. usd_cost is the run's COGS x the agent
199
+ * multiplier — the price the run was charged. Present only on metered/PAYG runs that
200
+ * were actually billed; absent for subscription/enterprise/free runs. No
201
+ * token/tool-call/latency telemetry.
202
+ * @export
203
+ * @interface AgentUsage
204
+ */
205
+ interface AgentUsage {
206
+ /**
207
+ *
208
+ * @type {number}
209
+ * @memberof AgentUsage
210
+ */
211
+ usd_cost?: number | null;
212
+ }
213
+ /**
214
+ * Check if a given object implements the AgentUsage interface.
215
+ */
216
+ declare function instanceOfAgentUsage(value: object): value is AgentUsage;
217
+ declare function AgentUsageFromJSON(json: any): AgentUsage;
218
+ declare function AgentUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentUsage;
219
+ declare function AgentUsageToJSON(json: any): AgentUsage;
220
+ declare function AgentUsageToJSONTyped(value?: AgentUsage | null, ignoreDiscriminator?: boolean): any;
221
+
186
222
  /**
187
223
  * Knowledge Search API
188
224
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -764,21 +800,21 @@ declare function AgentResultToJSONTyped(value?: AgentResult | null, ignoreDiscri
764
800
  * Do not edit the class manually.
765
801
  */
766
802
  /**
767
- *
803
+ * Public effort taxonomy for the Agent API. `low` runs the fast data-pipeline
804
+ * retriever (the default); `medium` runs the analytical orchestrator. `high` is
805
+ * not yet exposed.
768
806
  * @export
769
807
  */
770
- declare const AgentRunStatus: {
771
- readonly Queued: "queued";
772
- readonly Running: "running";
773
- readonly Completed: "completed";
774
- readonly Failed: "failed";
808
+ declare const AgentEffortLevel: {
809
+ readonly Low: "low";
810
+ readonly Medium: "medium";
775
811
  };
776
- type AgentRunStatus = typeof AgentRunStatus[keyof typeof AgentRunStatus];
777
- declare function instanceOfAgentRunStatus(value: any): boolean;
778
- declare function AgentRunStatusFromJSON(json: any): AgentRunStatus;
779
- declare function AgentRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRunStatus;
780
- declare function AgentRunStatusToJSON(value?: AgentRunStatus | null): any;
781
- declare function AgentRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentRunStatus;
812
+ type AgentEffortLevel = typeof AgentEffortLevel[keyof typeof AgentEffortLevel];
813
+ declare function instanceOfAgentEffortLevel(value: any): boolean;
814
+ declare function AgentEffortLevelFromJSON(json: any): AgentEffortLevel;
815
+ declare function AgentEffortLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentEffortLevel;
816
+ declare function AgentEffortLevelToJSON(value?: AgentEffortLevel | null): any;
817
+ declare function AgentEffortLevelToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentEffortLevel;
782
818
 
783
819
  /**
784
820
  * Knowledge Search API
@@ -794,30 +830,24 @@ declare function AgentRunStatusToJSONTyped(value: any, ignoreDiscriminator: bool
794
830
  /**
795
831
  *
796
832
  * @export
797
- * @interface ErrorObject
833
+ * @interface AgentOutputSettings
798
834
  */
799
- interface ErrorObject {
800
- /**
801
- *
802
- * @type {string}
803
- * @memberof ErrorObject
804
- */
805
- code: string;
835
+ interface AgentOutputSettings {
806
836
  /**
807
- *
808
- * @type {string}
809
- * @memberof ErrorObject
837
+ * Render card preview images in dark mode. Omit to use the default (dark).
838
+ * @type {boolean}
839
+ * @memberof AgentOutputSettings
810
840
  */
811
- message: string;
841
+ image_dark_mode?: boolean | null;
812
842
  }
813
843
  /**
814
- * Check if a given object implements the ErrorObject interface.
844
+ * Check if a given object implements the AgentOutputSettings interface.
815
845
  */
816
- declare function instanceOfErrorObject(value: object): value is ErrorObject;
817
- declare function ErrorObjectFromJSON(json: any): ErrorObject;
818
- declare function ErrorObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorObject;
819
- declare function ErrorObjectToJSON(json: any): ErrorObject;
820
- declare function ErrorObjectToJSONTyped(value?: ErrorObject | null, ignoreDiscriminator?: boolean): any;
846
+ declare function instanceOfAgentOutputSettings(value: object): value is AgentOutputSettings;
847
+ declare function AgentOutputSettingsFromJSON(json: any): AgentOutputSettings;
848
+ declare function AgentOutputSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentOutputSettings;
849
+ declare function AgentOutputSettingsToJSON(json: any): AgentOutputSettings;
850
+ declare function AgentOutputSettingsToJSONTyped(value?: AgentOutputSettings | null, ignoreDiscriminator?: boolean): any;
821
851
 
822
852
  /**
823
853
  * Knowledge Search API
@@ -832,75 +862,70 @@ declare function ErrorObjectToJSONTyped(value?: ErrorObject | null, ignoreDiscri
832
862
  */
833
863
 
834
864
  /**
835
- * The run resource returned by dispatch (202) and poll (GET).
865
+ * Request body for POST /api/v1/agent/runs.
836
866
  * @export
837
- * @interface AgentRun
867
+ * @interface AgentRunRequest
838
868
  */
839
- interface AgentRun {
869
+ interface AgentRunRequest {
840
870
  /**
841
- *
871
+ * Natural-language request for the agent.
842
872
  * @type {string}
843
- * @memberof AgentRun
844
- */
845
- run_id: string;
846
- /**
847
- *
848
- * @type {AgentRunObjectEnum}
849
- * @memberof AgentRun
873
+ * @memberof AgentRunRequest
850
874
  */
851
- object?: AgentRunObjectEnum;
875
+ query: string;
852
876
  /**
853
- *
877
+ * Existing thread to continue (follow-up). Omit to start a new thread.
854
878
  * @type {string}
855
- * @memberof AgentRun
879
+ * @memberof AgentRunRequest
856
880
  */
857
881
  thread_id?: string | null;
858
882
  /**
859
- *
860
- * @type {AgentRunStatus}
861
- * @memberof AgentRun
883
+ * Agent effort. 'low' (default) returns fast factual results; 'medium' returns deeper analytical answers (slower).
884
+ * @type {AgentEffortLevel}
885
+ * @memberof AgentRunRequest
862
886
  */
863
- status: AgentRunStatus;
887
+ effort?: AgentEffortLevel;
864
888
  /**
865
- *
866
- * @type {string}
867
- * @memberof AgentRun
889
+ * Which sources the agent may use: 'data' (curated knowledge) and/or 'web' (open-web search). Defaults to ['data', 'web']. The legacy value 'tako' is accepted as a synonym for 'data'.
890
+ * @type {Array<AgentRunRequestSourceIndexesEnum>}
891
+ * @memberof AgentRunRequest
868
892
  */
869
- created_at: string;
893
+ source_indexes?: Array<AgentRunRequestSourceIndexesEnum>;
870
894
  /**
871
- *
895
+ * BCP-47 locale. Drives the language of the agent's answer (a non-English locale makes the agent respond in that language) and the locale used when rendering card preview images. Defaults to en-US.
872
896
  * @type {string}
873
- * @memberof AgentRun
897
+ * @memberof AgentRunRequest
874
898
  */
875
- completed_at?: string | null;
899
+ locale?: string;
876
900
  /**
877
- *
878
- * @type {AgentResult}
879
- * @memberof AgentRun
901
+ * IANA timezone (e.g. 'America/New_York') used to render dates/times in card preview images. Does not affect the returned data.
902
+ * @type {string}
903
+ * @memberof AgentRunRequest
880
904
  */
881
- result?: AgentResult | null;
905
+ timezone?: string | null;
882
906
  /**
883
- *
884
- * @type {ErrorObject}
885
- * @memberof AgentRun
907
+ * Settings controlling the response/rendering.
908
+ * @type {AgentOutputSettings}
909
+ * @memberof AgentRunRequest
886
910
  */
887
- error?: ErrorObject | null;
911
+ output_settings?: AgentOutputSettings | null;
888
912
  }
889
913
  /**
890
914
  * @export
891
915
  */
892
- declare const AgentRunObjectEnum: {
893
- readonly AgentRun: "agent.run";
916
+ declare const AgentRunRequestSourceIndexesEnum: {
917
+ readonly Data: "data";
918
+ readonly Web: "web";
894
919
  };
895
- type AgentRunObjectEnum = typeof AgentRunObjectEnum[keyof typeof AgentRunObjectEnum];
920
+ type AgentRunRequestSourceIndexesEnum = typeof AgentRunRequestSourceIndexesEnum[keyof typeof AgentRunRequestSourceIndexesEnum];
896
921
  /**
897
- * Check if a given object implements the AgentRun interface.
922
+ * Check if a given object implements the AgentRunRequest interface.
898
923
  */
899
- declare function instanceOfAgentRun(value: object): value is AgentRun;
900
- declare function AgentRunFromJSON(json: any): AgentRun;
901
- declare function AgentRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRun;
902
- declare function AgentRunToJSON(json: any): AgentRun;
903
- declare function AgentRunToJSONTyped(value?: AgentRun | null, ignoreDiscriminator?: boolean): any;
924
+ declare function instanceOfAgentRunRequest(value: object): value is AgentRunRequest;
925
+ declare function AgentRunRequestFromJSON(json: any): AgentRunRequest;
926
+ declare function AgentRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRunRequest;
927
+ declare function AgentRunRequestToJSON(json: any): AgentRunRequest;
928
+ declare function AgentRunRequestToJSONTyped(value?: AgentRunRequest | null, ignoreDiscriminator?: boolean): any;
904
929
 
905
930
  /**
906
931
  * Knowledge Search API
@@ -914,20 +939,21 @@ declare function AgentRunToJSONTyped(value?: AgentRun | null, ignoreDiscriminato
914
939
  * Do not edit the class manually.
915
940
  */
916
941
  /**
917
- * Public effort taxonomy for the Agent API. Only MEDIUM is supported in v1;
918
- * the generated OpenAPI/SDK advertises exactly these members, so we add values
919
- * (low/high) only as the agent gains public support for them.
942
+ *
920
943
  * @export
921
944
  */
922
- declare const AgentEffortLevel: {
923
- readonly Medium: "medium";
945
+ declare const AgentRunStatus: {
946
+ readonly Queued: "queued";
947
+ readonly Running: "running";
948
+ readonly Completed: "completed";
949
+ readonly Failed: "failed";
924
950
  };
925
- type AgentEffortLevel = typeof AgentEffortLevel[keyof typeof AgentEffortLevel];
926
- declare function instanceOfAgentEffortLevel(value: any): boolean;
927
- declare function AgentEffortLevelFromJSON(json: any): AgentEffortLevel;
928
- declare function AgentEffortLevelFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentEffortLevel;
929
- declare function AgentEffortLevelToJSON(value?: AgentEffortLevel | null): any;
930
- declare function AgentEffortLevelToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentEffortLevel;
951
+ type AgentRunStatus = typeof AgentRunStatus[keyof typeof AgentRunStatus];
952
+ declare function instanceOfAgentRunStatus(value: any): boolean;
953
+ declare function AgentRunStatusFromJSON(json: any): AgentRunStatus;
954
+ declare function AgentRunStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRunStatus;
955
+ declare function AgentRunStatusToJSON(value?: AgentRunStatus | null): any;
956
+ declare function AgentRunStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): AgentRunStatus;
931
957
 
932
958
  /**
933
959
  * Knowledge Search API
@@ -943,24 +969,30 @@ declare function AgentEffortLevelToJSONTyped(value: any, ignoreDiscriminator: bo
943
969
  /**
944
970
  *
945
971
  * @export
946
- * @interface AgentOutputSettings
972
+ * @interface ErrorObject
947
973
  */
948
- interface AgentOutputSettings {
974
+ interface ErrorObject {
949
975
  /**
950
- * Render card preview images in dark mode. Omit to use the default (dark).
951
- * @type {boolean}
952
- * @memberof AgentOutputSettings
976
+ *
977
+ * @type {string}
978
+ * @memberof ErrorObject
953
979
  */
954
- image_dark_mode?: boolean | null;
980
+ code: string;
981
+ /**
982
+ *
983
+ * @type {string}
984
+ * @memberof ErrorObject
985
+ */
986
+ message: string;
955
987
  }
956
988
  /**
957
- * Check if a given object implements the AgentOutputSettings interface.
989
+ * Check if a given object implements the ErrorObject interface.
958
990
  */
959
- declare function instanceOfAgentOutputSettings(value: object): value is AgentOutputSettings;
960
- declare function AgentOutputSettingsFromJSON(json: any): AgentOutputSettings;
961
- declare function AgentOutputSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentOutputSettings;
962
- declare function AgentOutputSettingsToJSON(json: any): AgentOutputSettings;
963
- declare function AgentOutputSettingsToJSONTyped(value?: AgentOutputSettings | null, ignoreDiscriminator?: boolean): any;
991
+ declare function instanceOfErrorObject(value: object): value is ErrorObject;
992
+ declare function ErrorObjectFromJSON(json: any): ErrorObject;
993
+ declare function ErrorObjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorObject;
994
+ declare function ErrorObjectToJSON(json: any): ErrorObject;
995
+ declare function ErrorObjectToJSONTyped(value?: ErrorObject | null, ignoreDiscriminator?: boolean): any;
964
996
 
965
997
  /**
966
998
  * Knowledge Search API
@@ -975,70 +1007,87 @@ declare function AgentOutputSettingsToJSONTyped(value?: AgentOutputSettings | nu
975
1007
  */
976
1008
 
977
1009
  /**
978
- *
1010
+ * The run resource returned by dispatch (202) and poll (GET).
979
1011
  * @export
980
- * @interface AgentRunRequest
1012
+ * @interface AgentRun
981
1013
  */
982
- interface AgentRunRequest {
1014
+ interface AgentRun {
983
1015
  /**
984
- * Natural-language request for the agent.
1016
+ *
985
1017
  * @type {string}
986
- * @memberof AgentRunRequest
1018
+ * @memberof AgentRun
987
1019
  */
988
- query: string;
1020
+ run_id: string;
989
1021
  /**
990
- * Existing thread to continue (follow-up). Omit to start a new thread.
1022
+ *
1023
+ * @type {AgentRunObjectEnum}
1024
+ * @memberof AgentRun
1025
+ */
1026
+ object?: AgentRunObjectEnum;
1027
+ /**
1028
+ *
991
1029
  * @type {string}
992
- * @memberof AgentRunRequest
1030
+ * @memberof AgentRun
993
1031
  */
994
1032
  thread_id?: string | null;
995
1033
  /**
996
- * Agent effort level. Only 'medium' is currently supported.
997
- * @type {AgentEffortLevel}
998
- * @memberof AgentRunRequest
1034
+ *
1035
+ * @type {AgentRunStatus}
1036
+ * @memberof AgentRun
999
1037
  */
1000
- effort?: AgentEffortLevel;
1038
+ status: AgentRunStatus;
1001
1039
  /**
1002
- * Which sources the agent may use: 'data' (curated knowledge) and/or 'web' (open-web search). Defaults to ['data', 'web']. The legacy value 'tako' is accepted as a synonym for 'data'.
1003
- * @type {Array<AgentRunRequestSourceIndexesEnum>}
1004
- * @memberof AgentRunRequest
1040
+ *
1041
+ * @type {string}
1042
+ * @memberof AgentRun
1005
1043
  */
1006
- source_indexes?: Array<AgentRunRequestSourceIndexesEnum>;
1044
+ created_at: string;
1007
1045
  /**
1008
- * BCP-47 locale. Drives the language of the agent's answer (a non-English locale makes the agent respond in that language) and the locale used when rendering card preview images. Defaults to en-US.
1046
+ *
1009
1047
  * @type {string}
1010
- * @memberof AgentRunRequest
1048
+ * @memberof AgentRun
1011
1049
  */
1012
- locale?: string;
1050
+ completed_at?: string | null;
1013
1051
  /**
1014
- * IANA timezone (e.g. 'America/New_York') used to render dates/times in card preview images. Does not affect the returned data.
1015
- * @type {string}
1016
- * @memberof AgentRunRequest
1052
+ *
1053
+ * @type {AgentResult}
1054
+ * @memberof AgentRun
1017
1055
  */
1018
- timezone?: string | null;
1056
+ result?: AgentResult | null;
1019
1057
  /**
1020
- * Settings controlling the response/rendering.
1021
- * @type {AgentOutputSettings}
1022
- * @memberof AgentRunRequest
1058
+ *
1059
+ * @type {ErrorObject}
1060
+ * @memberof AgentRun
1023
1061
  */
1024
- output_settings?: AgentOutputSettings | null;
1062
+ error?: ErrorObject | null;
1063
+ /**
1064
+ *
1065
+ * @type {AgentUsage}
1066
+ * @memberof AgentRun
1067
+ */
1068
+ usage?: AgentUsage | null;
1069
+ /**
1070
+ *
1071
+ * @type {AgentRunRequest}
1072
+ * @memberof AgentRun
1073
+ */
1074
+ request?: AgentRunRequest | null;
1025
1075
  }
1026
1076
  /**
1027
1077
  * @export
1028
1078
  */
1029
- declare const AgentRunRequestSourceIndexesEnum: {
1030
- readonly Data: "data";
1031
- readonly Web: "web";
1079
+ declare const AgentRunObjectEnum: {
1080
+ readonly AgentRun: "agent.run";
1032
1081
  };
1033
- type AgentRunRequestSourceIndexesEnum = typeof AgentRunRequestSourceIndexesEnum[keyof typeof AgentRunRequestSourceIndexesEnum];
1082
+ type AgentRunObjectEnum = typeof AgentRunObjectEnum[keyof typeof AgentRunObjectEnum];
1034
1083
  /**
1035
- * Check if a given object implements the AgentRunRequest interface.
1084
+ * Check if a given object implements the AgentRun interface.
1036
1085
  */
1037
- declare function instanceOfAgentRunRequest(value: object): value is AgentRunRequest;
1038
- declare function AgentRunRequestFromJSON(json: any): AgentRunRequest;
1039
- declare function AgentRunRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRunRequest;
1040
- declare function AgentRunRequestToJSON(json: any): AgentRunRequest;
1041
- declare function AgentRunRequestToJSONTyped(value?: AgentRunRequest | null, ignoreDiscriminator?: boolean): any;
1086
+ declare function instanceOfAgentRun(value: object): value is AgentRun;
1087
+ declare function AgentRunFromJSON(json: any): AgentRun;
1088
+ declare function AgentRunFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentRun;
1089
+ declare function AgentRunToJSON(json: any): AgentRun;
1090
+ declare function AgentRunToJSONTyped(value?: AgentRun | null, ignoreDiscriminator?: boolean): any;
1042
1091
 
1043
1092
  /**
1044
1093
  * Knowledge Search API
@@ -2452,6 +2501,7 @@ declare const APIErrorType: {
2452
2501
  readonly RequestTimeout: "REQUEST_TIMEOUT";
2453
2502
  readonly Forbidden: "FORBIDDEN";
2454
2503
  readonly NotFound: "NOT_FOUND";
2504
+ readonly ServiceUnavailable: "SERVICE_UNAVAILABLE";
2455
2505
  };
2456
2506
  type APIErrorType = typeof APIErrorType[keyof typeof APIErrorType];
2457
2507
  declare function instanceOfAPIErrorType(value: any): boolean;
@@ -3578,4 +3628,4 @@ declare class Tako {
3578
3628
  createCard(request: CreateCardRequest): Promise<KnowledgeCard>;
3579
3629
  }
3580
3630
 
3581
- export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, CardSourceIndex, CardSourceIndexFromJSON, CardSourceIndexFromJSONTyped, type CardSourceIndexSegment, CardSourceIndexSegmentFromJSON, CardSourceIndexSegmentFromJSONTyped, CardSourceIndexSegmentToJSON, CardSourceIndexSegmentToJSONTyped, CardSourceIndexToJSON, CardSourceIndexToJSONTyped, type CardSourcePrivateIndex, CardSourcePrivateIndexFromJSON, CardSourcePrivateIndexFromJSONTyped, CardSourcePrivateIndexToJSON, CardSourcePrivateIndexToJSONTyped, type ClassifyOperationRequest, type ClassifyRequest, ClassifyRequestFromJSON, ClassifyRequestFromJSONTyped, ClassifyRequestToJSON, ClassifyRequestToJSONTyped, type ClassifyResponse, ClassifyResponseFromJSON, ClassifyResponseFromJSONTyped, ClassifyResponseToJSON, ClassifyResponseToJSONTyped, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type IdealVizDecision, IdealVizDecisionFromJSON, IdealVizDecisionFromJSONTyped, IdealVizDecisionToJSON, IdealVizDecisionToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCard, KnowledgeCardFromJSON, KnowledgeCardFromJSONTyped, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type KnowledgeCardSource, KnowledgeCardSourceFromJSON, KnowledgeCardSourceFromJSONTyped, type KnowledgeCardSourceIndexesInner, KnowledgeCardSourceIndexesInnerFromJSON, KnowledgeCardSourceIndexesInnerFromJSONTyped, KnowledgeCardSourceIndexesInnerToJSON, KnowledgeCardSourceIndexesInnerToJSONTyped, KnowledgeCardSourceToJSON, KnowledgeCardSourceToJSONTyped, KnowledgeCardToJSON, KnowledgeCardToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type QueryClassification, QueryClassificationFromJSON, QueryClassificationFromJSONTyped, QueryClassificationToJSON, QueryClassificationToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceIndex, SourceIndexFromJSON, SourceIndexFromJSONTyped, SourceIndexToJSON, SourceIndexToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, type TakoSourceSettings, TakoSourceSettingsFromJSON, TakoSourceSettingsFromJSONTyped, TakoSourceSettingsToJSON, TakoSourceSettingsToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfCardSourceIndex, instanceOfCardSourceIndexSegment, instanceOfCardSourcePrivateIndex, instanceOfClassifyRequest, instanceOfClassifyResponse, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfErrorObject, instanceOfHeartbeatEvent, instanceOfIdealVizDecision, instanceOfKnowledgeCard, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfKnowledgeCardSource, instanceOfKnowledgeCardSourceIndexesInner, instanceOfOutputSettings, instanceOfQueryClassification, instanceOfReasoningEvent, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceIndex, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoSourceSettings, instanceOfTextEvent, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };
3631
+ export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AgentUsage, AgentUsageFromJSON, AgentUsageFromJSONTyped, AgentUsageToJSON, AgentUsageToJSONTyped, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, CardSourceIndex, CardSourceIndexFromJSON, CardSourceIndexFromJSONTyped, type CardSourceIndexSegment, CardSourceIndexSegmentFromJSON, CardSourceIndexSegmentFromJSONTyped, CardSourceIndexSegmentToJSON, CardSourceIndexSegmentToJSONTyped, CardSourceIndexToJSON, CardSourceIndexToJSONTyped, type CardSourcePrivateIndex, CardSourcePrivateIndexFromJSON, CardSourcePrivateIndexFromJSONTyped, CardSourcePrivateIndexToJSON, CardSourcePrivateIndexToJSONTyped, type ClassifyOperationRequest, type ClassifyRequest, ClassifyRequestFromJSON, ClassifyRequestFromJSONTyped, ClassifyRequestToJSON, ClassifyRequestToJSONTyped, type ClassifyResponse, ClassifyResponseFromJSON, ClassifyResponseFromJSONTyped, ClassifyResponseToJSON, ClassifyResponseToJSONTyped, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type IdealVizDecision, IdealVizDecisionFromJSON, IdealVizDecisionFromJSONTyped, IdealVizDecisionToJSON, IdealVizDecisionToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCard, KnowledgeCardFromJSON, KnowledgeCardFromJSONTyped, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type KnowledgeCardSource, KnowledgeCardSourceFromJSON, KnowledgeCardSourceFromJSONTyped, type KnowledgeCardSourceIndexesInner, KnowledgeCardSourceIndexesInnerFromJSON, KnowledgeCardSourceIndexesInnerFromJSONTyped, KnowledgeCardSourceIndexesInnerToJSON, KnowledgeCardSourceIndexesInnerToJSONTyped, KnowledgeCardSourceToJSON, KnowledgeCardSourceToJSONTyped, KnowledgeCardToJSON, KnowledgeCardToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type QueryClassification, QueryClassificationFromJSON, QueryClassificationFromJSONTyped, QueryClassificationToJSON, QueryClassificationToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceIndex, SourceIndexFromJSON, SourceIndexFromJSONTyped, SourceIndexToJSON, SourceIndexToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, type TakoSourceSettings, TakoSourceSettingsFromJSON, TakoSourceSettingsFromJSONTyped, TakoSourceSettingsToJSON, TakoSourceSettingsToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAgentUsage, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfCardSourceIndex, instanceOfCardSourceIndexSegment, instanceOfCardSourcePrivateIndex, instanceOfClassifyRequest, instanceOfClassifyResponse, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfErrorObject, instanceOfHeartbeatEvent, instanceOfIdealVizDecision, instanceOfKnowledgeCard, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfKnowledgeCardSource, instanceOfKnowledgeCardSourceIndexesInner, instanceOfOutputSettings, instanceOfQueryClassification, instanceOfReasoningEvent, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceIndex, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoSourceSettings, instanceOfTextEvent, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };