@orq-ai/node 4.0.0-rc.30 → 4.0.0-rc.31

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.
Files changed (163) hide show
  1. package/README.md +24 -22
  2. package/bin/mcp-server.js +2116 -596
  3. package/bin/mcp-server.js.map +50 -47
  4. package/docs/sdks/tools/README.md +93 -12
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/toolsCreate.d.ts +2 -1
  7. package/funcs/toolsCreate.d.ts.map +1 -1
  8. package/funcs/toolsCreate.js +6 -2
  9. package/funcs/toolsCreate.js.map +1 -1
  10. package/funcs/toolsSync.d.ts +18 -0
  11. package/funcs/toolsSync.d.ts.map +1 -0
  12. package/funcs/toolsSync.js +123 -0
  13. package/funcs/toolsSync.js.map +1 -0
  14. package/jsr.json +1 -1
  15. package/lib/config.d.ts +3 -3
  16. package/lib/config.js +3 -3
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/server.d.ts.map +1 -1
  19. package/mcp-server/server.js +3 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/toolsSync.d.ts +8 -0
  22. package/mcp-server/tools/toolsSync.d.ts.map +1 -0
  23. package/mcp-server/tools/toolsSync.js +64 -0
  24. package/mcp-server/tools/toolsSync.js.map +1 -0
  25. package/models/operations/createagent.d.ts +53 -24
  26. package/models/operations/createagent.d.ts.map +1 -1
  27. package/models/operations/createagent.js +51 -25
  28. package/models/operations/createagent.js.map +1 -1
  29. package/models/operations/createbudget.js +2 -2
  30. package/models/operations/createcontact.js +2 -2
  31. package/models/operations/createdataset.js +2 -2
  32. package/models/operations/createdatasetitem.js +8 -8
  33. package/models/operations/createdatasource.js +2 -2
  34. package/models/operations/createeval.js +28 -28
  35. package/models/operations/createtool.d.ts +373 -144
  36. package/models/operations/createtool.d.ts.map +1 -1
  37. package/models/operations/createtool.js +332 -133
  38. package/models/operations/createtool.js.map +1 -1
  39. package/models/operations/deploymentgetconfig.d.ts +8 -8
  40. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  41. package/models/operations/deploymentgetconfig.js +13 -12
  42. package/models/operations/deploymentgetconfig.js.map +1 -1
  43. package/models/operations/duplicateagent.d.ts +0 -19
  44. package/models/operations/duplicateagent.d.ts.map +1 -1
  45. package/models/operations/duplicateagent.js +3 -21
  46. package/models/operations/duplicateagent.js.map +1 -1
  47. package/models/operations/duplicatetool.d.ts +189 -49
  48. package/models/operations/duplicatetool.d.ts.map +1 -1
  49. package/models/operations/duplicatetool.js +172 -44
  50. package/models/operations/duplicatetool.js.map +1 -1
  51. package/models/operations/fileget.js +2 -2
  52. package/models/operations/filelist.js +2 -2
  53. package/models/operations/fileupload.js +2 -2
  54. package/models/operations/getagent.d.ts +0 -19
  55. package/models/operations/getagent.d.ts.map +1 -1
  56. package/models/operations/getagent.js +3 -20
  57. package/models/operations/getagent.js.map +1 -1
  58. package/models/operations/getalltools.d.ts +194 -54
  59. package/models/operations/getalltools.d.ts.map +1 -1
  60. package/models/operations/getalltools.js +176 -51
  61. package/models/operations/getalltools.js.map +1 -1
  62. package/models/operations/getbudget.js +2 -2
  63. package/models/operations/getevals.js +28 -28
  64. package/models/operations/index.d.ts +1 -0
  65. package/models/operations/index.d.ts.map +1 -1
  66. package/models/operations/index.js +1 -0
  67. package/models/operations/index.js.map +1 -1
  68. package/models/operations/listagents.d.ts +0 -19
  69. package/models/operations/listagents.d.ts.map +1 -1
  70. package/models/operations/listagents.js +3 -22
  71. package/models/operations/listagents.js.map +1 -1
  72. package/models/operations/listbudgets.js +2 -2
  73. package/models/operations/listcontacts.js +2 -2
  74. package/models/operations/listdatasetdatapoints.js +8 -8
  75. package/models/operations/listdatasets.js +2 -2
  76. package/models/operations/listdatasources.js +2 -2
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrievetool.d.ts +189 -49
  82. package/models/operations/retrievetool.d.ts.map +1 -1
  83. package/models/operations/retrievetool.js +172 -44
  84. package/models/operations/retrievetool.js.map +1 -1
  85. package/models/operations/runagent.d.ts +279 -23
  86. package/models/operations/runagent.d.ts.map +1 -1
  87. package/models/operations/runagent.js +274 -15
  88. package/models/operations/runagent.js.map +1 -1
  89. package/models/operations/streamrunagent.d.ts +282 -26
  90. package/models/operations/streamrunagent.d.ts.map +1 -1
  91. package/models/operations/streamrunagent.js +268 -22
  92. package/models/operations/streamrunagent.js.map +1 -1
  93. package/models/operations/syncmcptool.d.ts +1113 -0
  94. package/models/operations/syncmcptool.d.ts.map +1 -0
  95. package/models/operations/syncmcptool.js +1070 -0
  96. package/models/operations/syncmcptool.js.map +1 -0
  97. package/models/operations/updateagent.d.ts +53 -43
  98. package/models/operations/updateagent.d.ts.map +1 -1
  99. package/models/operations/updateagent.js +52 -43
  100. package/models/operations/updateagent.js.map +1 -1
  101. package/models/operations/updatebudget.js +2 -2
  102. package/models/operations/updatecontact.js +2 -2
  103. package/models/operations/updatedatapoint.js +8 -8
  104. package/models/operations/updatedataset.js +2 -2
  105. package/models/operations/updatedatasource.js +2 -2
  106. package/models/operations/updateeval.js +28 -28
  107. package/models/operations/updatetool.d.ts +394 -114
  108. package/models/operations/updatetool.d.ts.map +1 -1
  109. package/models/operations/updatetool.js +356 -95
  110. package/models/operations/updatetool.js.map +1 -1
  111. package/package.json +1 -1
  112. package/sdk/tools.d.ts +7 -0
  113. package/sdk/tools.d.ts.map +1 -1
  114. package/sdk/tools.js +10 -0
  115. package/sdk/tools.js.map +1 -1
  116. package/src/funcs/toolsCreate.ts +11 -2
  117. package/src/funcs/toolsSync.ts +176 -0
  118. package/src/lib/config.ts +3 -3
  119. package/src/mcp-server/mcp-server.ts +1 -1
  120. package/src/mcp-server/server.ts +3 -1
  121. package/src/mcp-server/tools/toolsSync.ts +37 -0
  122. package/src/models/operations/createagent.ts +114 -40
  123. package/src/models/operations/createbudget.ts +2 -2
  124. package/src/models/operations/createcontact.ts +2 -2
  125. package/src/models/operations/createdataset.ts +2 -2
  126. package/src/models/operations/createdatasetitem.ts +8 -8
  127. package/src/models/operations/createdatasource.ts +2 -2
  128. package/src/models/operations/createeval.ts +28 -28
  129. package/src/models/operations/createtool.ts +873 -277
  130. package/src/models/operations/deploymentgetconfig.ts +29 -20
  131. package/src/models/operations/duplicateagent.ts +0 -37
  132. package/src/models/operations/duplicatetool.ts +466 -87
  133. package/src/models/operations/fileget.ts +2 -2
  134. package/src/models/operations/filelist.ts +2 -2
  135. package/src/models/operations/fileupload.ts +2 -2
  136. package/src/models/operations/getagent.ts +0 -38
  137. package/src/models/operations/getalltools.ts +447 -96
  138. package/src/models/operations/getbudget.ts +2 -2
  139. package/src/models/operations/getevals.ts +28 -28
  140. package/src/models/operations/index.ts +1 -0
  141. package/src/models/operations/listagents.ts +0 -37
  142. package/src/models/operations/listbudgets.ts +2 -2
  143. package/src/models/operations/listcontacts.ts +2 -2
  144. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  145. package/src/models/operations/listdatasets.ts +2 -2
  146. package/src/models/operations/listdatasources.ts +2 -2
  147. package/src/models/operations/retrievecontact.ts +2 -2
  148. package/src/models/operations/retrievedatapoint.ts +8 -8
  149. package/src/models/operations/retrievedataset.ts +2 -2
  150. package/src/models/operations/retrievedatasource.ts +2 -2
  151. package/src/models/operations/retrievetool.ts +466 -85
  152. package/src/models/operations/runagent.ts +656 -25
  153. package/src/models/operations/streamrunagent.ts +749 -34
  154. package/src/models/operations/syncmcptool.ts +2599 -0
  155. package/src/models/operations/updateagent.ts +121 -77
  156. package/src/models/operations/updatebudget.ts +2 -2
  157. package/src/models/operations/updatecontact.ts +2 -2
  158. package/src/models/operations/updatedatapoint.ts +8 -8
  159. package/src/models/operations/updatedataset.ts +2 -2
  160. package/src/models/operations/updatedatasource.ts +2 -2
  161. package/src/models/operations/updateeval.ts +28 -28
  162. package/src/models/operations/updatetool.ts +910 -190
  163. package/src/sdk/tools.ts +18 -0
@@ -753,10 +753,115 @@ export type RunAgentTeamOfAgents = {
753
753
  */
754
754
  role?: string | undefined;
755
755
  };
756
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type: {
757
+ readonly Mcp: "mcp";
758
+ };
759
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
760
+ export type AgentToolInputRunHeaders = {
761
+ value: string;
762
+ encrypted?: boolean | undefined;
763
+ };
764
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType: {
765
+ readonly Object: "object";
766
+ };
767
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
768
+ export type Schema = {
769
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType;
770
+ properties?: {
771
+ [k: string]: any;
772
+ } | undefined;
773
+ required?: Array<string> | undefined;
774
+ };
775
+ export type Tools = {
776
+ name: string;
777
+ description?: string | undefined;
778
+ schema: Schema;
779
+ };
780
+ /**
781
+ * The connection type used by the MCP server
782
+ */
783
+ export declare const ConnectionType: {
784
+ readonly Http: "http";
785
+ readonly Sse: "sse";
786
+ };
787
+ /**
788
+ * The connection type used by the MCP server
789
+ */
790
+ export type ConnectionType = ClosedEnum<typeof ConnectionType>;
791
+ export type Mcp = {
792
+ /**
793
+ * The MCP server URL (cached for execution)
794
+ */
795
+ serverUrl: string;
796
+ /**
797
+ * HTTP headers for MCP server requests with encryption support
798
+ */
799
+ headers?: {
800
+ [k: string]: AgentToolInputRunHeaders;
801
+ } | undefined;
802
+ /**
803
+ * Array of tools available from the MCP server
804
+ */
805
+ tools: Array<Tools>;
806
+ /**
807
+ * The connection type used by the MCP server
808
+ */
809
+ connectionType: ConnectionType;
810
+ };
811
+ /**
812
+ * MCP tool with inline definition for on-the-fly creation in run endpoint
813
+ */
814
+ export type MCPToolRun = {
815
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type;
816
+ /**
817
+ * Unique key of the tool as it will be displayed in the UI
818
+ */
819
+ key: string;
820
+ id?: string | undefined;
821
+ displayName?: string | undefined;
822
+ /**
823
+ * A description of the tool, used by the model to choose when and how to call the tool. We do recommend using the `description` field as accurate as possible to give enough context to the model to make the right decision.
824
+ */
825
+ description: string;
826
+ mcp: Mcp;
827
+ requiresApproval?: boolean | undefined;
828
+ };
756
829
  export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type: {
757
830
  readonly Function: "function";
758
831
  };
759
832
  export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
833
+ /**
834
+ * The type must be "object"
835
+ */
836
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType: {
837
+ readonly Object: "object";
838
+ };
839
+ /**
840
+ * The type must be "object"
841
+ */
842
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
843
+ /**
844
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
845
+ */
846
+ export type RunAgentAgentToolInputRunParameters = {
847
+ /**
848
+ * The type must be "object"
849
+ */
850
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType;
851
+ /**
852
+ * The properties of the function parameters
853
+ */
854
+ properties: {
855
+ [k: string]: any;
856
+ };
857
+ /**
858
+ * Array of required parameter names
859
+ */
860
+ required: Array<string>;
861
+ additionalProperties?: {
862
+ [k: string]: any;
863
+ } | undefined;
864
+ };
760
865
  export type AgentToolInputRunFunction = {
761
866
  /**
762
867
  * The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
@@ -773,9 +878,7 @@ export type AgentToolInputRunFunction = {
773
878
  /**
774
879
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
775
880
  */
776
- parameters?: {
777
- [k: string]: any;
778
- } | undefined;
881
+ parameters?: RunAgentAgentToolInputRunParameters | undefined;
779
882
  };
780
883
  /**
781
884
  * Function tool with inline definition for on-the-fly creation in run endpoint
@@ -796,6 +899,38 @@ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTo
796
899
  readonly Code: "code";
797
900
  };
798
901
  export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
902
+ /**
903
+ * The type must be "object"
904
+ */
905
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType: {
906
+ readonly Object: "object";
907
+ };
908
+ /**
909
+ * The type must be "object"
910
+ */
911
+ export type RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType = ClosedEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
912
+ /**
913
+ * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
914
+ */
915
+ export type AgentToolInputRunParameters = {
916
+ /**
917
+ * The type must be "object"
918
+ */
919
+ type: RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType;
920
+ /**
921
+ * The properties of the function parameters
922
+ */
923
+ properties: {
924
+ [k: string]: any;
925
+ };
926
+ /**
927
+ * Array of required parameter names
928
+ */
929
+ required: Array<string>;
930
+ additionalProperties?: {
931
+ [k: string]: any;
932
+ } | undefined;
933
+ };
799
934
  export declare const Language: {
800
935
  readonly Python: "python";
801
936
  };
@@ -804,9 +939,7 @@ export type CodeTool = {
804
939
  /**
805
940
  * The parameters the functions accepts, described as a JSON Schema object. See the `OpenAI` [guide](https://platform.openai.com/docs/guides/function-calling) for examples, and the [JSON Schema reference](https://json-schema.org/understanding-json-schema/) for documentation about the format.
806
941
  */
807
- parameters?: {
808
- [k: string]: any;
809
- } | undefined;
942
+ parameters?: AgentToolInputRunParameters | undefined;
810
943
  language: Language;
811
944
  /**
812
945
  * The code to execute.
@@ -848,10 +981,11 @@ export declare const Method: {
848
981
  * The HTTP method to use.
849
982
  */
850
983
  export type Method = ClosedEnum<typeof Method>;
851
- export type Headers = {
984
+ export type Headers2 = {
852
985
  value: string;
853
986
  encrypted?: boolean | undefined;
854
987
  };
988
+ export type Headers = Headers2 | string;
855
989
  /**
856
990
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
857
991
  */
@@ -865,10 +999,10 @@ export type Blueprint = {
865
999
  */
866
1000
  method: Method;
867
1001
  /**
868
- * The headers to send with the request.
1002
+ * The headers to send with the request. Can be a string value or an object with value and encrypted properties.
869
1003
  */
870
1004
  headers?: {
871
- [k: string]: Headers;
1005
+ [k: string]: Headers2 | string;
872
1006
  } | undefined;
873
1007
  /**
874
1008
  * The body to send with the request.
@@ -1096,9 +1230,9 @@ export type AgentToolInputRunGoogleSearchTool = {
1096
1230
  requiresApproval?: boolean | undefined;
1097
1231
  };
1098
1232
  /**
1099
- * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function) support full inline definitions for on-the-fly creation.
1233
+ * Tool configuration for agent run operations. Built-in tools only require a type and requires_approval, while custom tools (HTTP, Code, Function, MCP) support full inline definitions for on-the-fly creation.
1100
1234
  */
1101
- export type AgentToolInputRun = HTTPToolRun | CodeToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool;
1235
+ export type AgentToolInputRun = HTTPToolRun | CodeToolRun | MCPToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool;
1102
1236
  /**
1103
1237
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1104
1238
  */
@@ -1165,7 +1299,7 @@ export type RunAgentSettings = {
1165
1299
  /**
1166
1300
  * Tools available to the agent
1167
1301
  */
1168
- tools?: Array<HTTPToolRun | CodeToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool> | undefined;
1302
+ tools?: Array<HTTPToolRun | CodeToolRun | MCPToolRun | FunctionToolRun | AgentToolInputRunGoogleSearchTool | AgentToolInputRunWebScraperTool | AgentToolInputRunCallSubAgentTool | AgentToolInputRunRetrieveAgentsTool | AgentToolInputRunQueryMemoryStoreTool | AgentToolInputRunWriteMemoryStoreTool | AgentToolInputRunRetrieveMemoryStoresTool | AgentToolInputRunDeleteMemoryDocumentTool | AgentToolInputRunRetrieveKnowledgeBasesTool | AgentToolInputRunQueryKnowledgeBaseTool | AgentToolInputRunCurrentDateTool> | undefined;
1169
1303
  /**
1170
1304
  * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
1171
1305
  */
@@ -2060,19 +2194,116 @@ export declare const RunAgentTeamOfAgents$outboundSchema: z.ZodType<RunAgentTeam
2060
2194
  export declare function runAgentTeamOfAgentsToJSON(runAgentTeamOfAgents: RunAgentTeamOfAgents): string;
2061
2195
  export declare function runAgentTeamOfAgentsFromJSON(jsonString: string): SafeParseResult<RunAgentTeamOfAgents, SDKValidationError>;
2062
2196
  /** @internal */
2197
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
2198
+ /** @internal */
2199
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15Type>;
2200
+ /** @internal */
2201
+ export declare const AgentToolInputRunHeaders$inboundSchema: z.ZodType<AgentToolInputRunHeaders, z.ZodTypeDef, unknown>;
2202
+ /** @internal */
2203
+ export type AgentToolInputRunHeaders$Outbound = {
2204
+ value: string;
2205
+ encrypted: boolean;
2206
+ };
2207
+ /** @internal */
2208
+ export declare const AgentToolInputRunHeaders$outboundSchema: z.ZodType<AgentToolInputRunHeaders$Outbound, z.ZodTypeDef, AgentToolInputRunHeaders>;
2209
+ export declare function agentToolInputRunHeadersToJSON(agentToolInputRunHeaders: AgentToolInputRunHeaders): string;
2210
+ export declare function agentToolInputRunHeadersFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunHeaders, SDKValidationError>;
2211
+ /** @internal */
2212
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
2213
+ /** @internal */
2214
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools15McpType>;
2215
+ /** @internal */
2216
+ export declare const Schema$inboundSchema: z.ZodType<Schema, z.ZodTypeDef, unknown>;
2217
+ /** @internal */
2218
+ export type Schema$Outbound = {
2219
+ type: string;
2220
+ properties?: {
2221
+ [k: string]: any;
2222
+ } | undefined;
2223
+ required?: Array<string> | undefined;
2224
+ };
2225
+ /** @internal */
2226
+ export declare const Schema$outboundSchema: z.ZodType<Schema$Outbound, z.ZodTypeDef, Schema>;
2227
+ export declare function schemaToJSON(schema: Schema): string;
2228
+ export declare function schemaFromJSON(jsonString: string): SafeParseResult<Schema, SDKValidationError>;
2229
+ /** @internal */
2230
+ export declare const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown>;
2231
+ /** @internal */
2232
+ export type Tools$Outbound = {
2233
+ name: string;
2234
+ description?: string | undefined;
2235
+ schema: Schema$Outbound;
2236
+ };
2237
+ /** @internal */
2238
+ export declare const Tools$outboundSchema: z.ZodType<Tools$Outbound, z.ZodTypeDef, Tools>;
2239
+ export declare function toolsToJSON(tools: Tools): string;
2240
+ export declare function toolsFromJSON(jsonString: string): SafeParseResult<Tools, SDKValidationError>;
2241
+ /** @internal */
2242
+ export declare const ConnectionType$inboundSchema: z.ZodNativeEnum<typeof ConnectionType>;
2243
+ /** @internal */
2244
+ export declare const ConnectionType$outboundSchema: z.ZodNativeEnum<typeof ConnectionType>;
2245
+ /** @internal */
2246
+ export declare const Mcp$inboundSchema: z.ZodType<Mcp, z.ZodTypeDef, unknown>;
2247
+ /** @internal */
2248
+ export type Mcp$Outbound = {
2249
+ server_url: string;
2250
+ headers?: {
2251
+ [k: string]: AgentToolInputRunHeaders$Outbound;
2252
+ } | undefined;
2253
+ tools: Array<Tools$Outbound>;
2254
+ connection_type: string;
2255
+ };
2256
+ /** @internal */
2257
+ export declare const Mcp$outboundSchema: z.ZodType<Mcp$Outbound, z.ZodTypeDef, Mcp>;
2258
+ export declare function mcpToJSON(mcp: Mcp): string;
2259
+ export declare function mcpFromJSON(jsonString: string): SafeParseResult<Mcp, SDKValidationError>;
2260
+ /** @internal */
2261
+ export declare const MCPToolRun$inboundSchema: z.ZodType<MCPToolRun, z.ZodTypeDef, unknown>;
2262
+ /** @internal */
2263
+ export type MCPToolRun$Outbound = {
2264
+ type: string;
2265
+ key: string;
2266
+ _id?: string | undefined;
2267
+ display_name?: string | undefined;
2268
+ description: string;
2269
+ mcp: Mcp$Outbound;
2270
+ requires_approval: boolean;
2271
+ };
2272
+ /** @internal */
2273
+ export declare const MCPToolRun$outboundSchema: z.ZodType<MCPToolRun$Outbound, z.ZodTypeDef, MCPToolRun>;
2274
+ export declare function mcpToolRunToJSON(mcpToolRun: MCPToolRun): string;
2275
+ export declare function mcpToolRunFromJSON(jsonString: string): SafeParseResult<MCPToolRun, SDKValidationError>;
2276
+ /** @internal */
2063
2277
  export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
2064
2278
  /** @internal */
2065
2279
  export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14Type>;
2066
2280
  /** @internal */
2281
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
2282
+ /** @internal */
2283
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools14FunctionType>;
2284
+ /** @internal */
2285
+ export declare const RunAgentAgentToolInputRunParameters$inboundSchema: z.ZodType<RunAgentAgentToolInputRunParameters, z.ZodTypeDef, unknown>;
2286
+ /** @internal */
2287
+ export type RunAgentAgentToolInputRunParameters$Outbound = {
2288
+ type: string;
2289
+ properties: {
2290
+ [k: string]: any;
2291
+ };
2292
+ required: Array<string>;
2293
+ [additionalProperties: string]: unknown;
2294
+ };
2295
+ /** @internal */
2296
+ export declare const RunAgentAgentToolInputRunParameters$outboundSchema: z.ZodType<RunAgentAgentToolInputRunParameters$Outbound, z.ZodTypeDef, RunAgentAgentToolInputRunParameters>;
2297
+ export declare function runAgentAgentToolInputRunParametersToJSON(runAgentAgentToolInputRunParameters: RunAgentAgentToolInputRunParameters): string;
2298
+ export declare function runAgentAgentToolInputRunParametersFromJSON(jsonString: string): SafeParseResult<RunAgentAgentToolInputRunParameters, SDKValidationError>;
2299
+ /** @internal */
2067
2300
  export declare const AgentToolInputRunFunction$inboundSchema: z.ZodType<AgentToolInputRunFunction, z.ZodTypeDef, unknown>;
2068
2301
  /** @internal */
2069
2302
  export type AgentToolInputRunFunction$Outbound = {
2070
2303
  name: string;
2071
2304
  description?: string | undefined;
2072
2305
  strict?: boolean | undefined;
2073
- parameters?: {
2074
- [k: string]: any;
2075
- } | undefined;
2306
+ parameters?: RunAgentAgentToolInputRunParameters$Outbound | undefined;
2076
2307
  };
2077
2308
  /** @internal */
2078
2309
  export declare const AgentToolInputRunFunction$outboundSchema: z.ZodType<AgentToolInputRunFunction$Outbound, z.ZodTypeDef, AgentToolInputRunFunction>;
@@ -2099,6 +2330,25 @@ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTo
2099
2330
  /** @internal */
2100
2331
  export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13Type>;
2101
2332
  /** @internal */
2333
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$inboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
2334
+ /** @internal */
2335
+ export declare const RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType$outboundSchema: z.ZodNativeEnum<typeof RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools13CodeToolType>;
2336
+ /** @internal */
2337
+ export declare const AgentToolInputRunParameters$inboundSchema: z.ZodType<AgentToolInputRunParameters, z.ZodTypeDef, unknown>;
2338
+ /** @internal */
2339
+ export type AgentToolInputRunParameters$Outbound = {
2340
+ type: string;
2341
+ properties: {
2342
+ [k: string]: any;
2343
+ };
2344
+ required: Array<string>;
2345
+ [additionalProperties: string]: unknown;
2346
+ };
2347
+ /** @internal */
2348
+ export declare const AgentToolInputRunParameters$outboundSchema: z.ZodType<AgentToolInputRunParameters$Outbound, z.ZodTypeDef, AgentToolInputRunParameters>;
2349
+ export declare function agentToolInputRunParametersToJSON(agentToolInputRunParameters: AgentToolInputRunParameters): string;
2350
+ export declare function agentToolInputRunParametersFromJSON(jsonString: string): SafeParseResult<AgentToolInputRunParameters, SDKValidationError>;
2351
+ /** @internal */
2102
2352
  export declare const Language$inboundSchema: z.ZodNativeEnum<typeof Language>;
2103
2353
  /** @internal */
2104
2354
  export declare const Language$outboundSchema: z.ZodNativeEnum<typeof Language>;
@@ -2106,9 +2356,7 @@ export declare const Language$outboundSchema: z.ZodNativeEnum<typeof Language>;
2106
2356
  export declare const CodeTool$inboundSchema: z.ZodType<CodeTool, z.ZodTypeDef, unknown>;
2107
2357
  /** @internal */
2108
2358
  export type CodeTool$Outbound = {
2109
- parameters?: {
2110
- [k: string]: any;
2111
- } | undefined;
2359
+ parameters?: AgentToolInputRunParameters$Outbound | undefined;
2112
2360
  language: string;
2113
2361
  code: string;
2114
2362
  };
@@ -2141,13 +2389,21 @@ export declare const Method$inboundSchema: z.ZodNativeEnum<typeof Method>;
2141
2389
  /** @internal */
2142
2390
  export declare const Method$outboundSchema: z.ZodNativeEnum<typeof Method>;
2143
2391
  /** @internal */
2144
- export declare const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown>;
2392
+ export declare const Headers2$inboundSchema: z.ZodType<Headers2, z.ZodTypeDef, unknown>;
2145
2393
  /** @internal */
2146
- export type Headers$Outbound = {
2394
+ export type Headers2$Outbound = {
2147
2395
  value: string;
2148
2396
  encrypted: boolean;
2149
2397
  };
2150
2398
  /** @internal */
2399
+ export declare const Headers2$outboundSchema: z.ZodType<Headers2$Outbound, z.ZodTypeDef, Headers2>;
2400
+ export declare function headers2ToJSON(headers2: Headers2): string;
2401
+ export declare function headers2FromJSON(jsonString: string): SafeParseResult<Headers2, SDKValidationError>;
2402
+ /** @internal */
2403
+ export declare const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown>;
2404
+ /** @internal */
2405
+ export type Headers$Outbound = Headers2$Outbound | string;
2406
+ /** @internal */
2151
2407
  export declare const Headers$outboundSchema: z.ZodType<Headers$Outbound, z.ZodTypeDef, Headers>;
2152
2408
  export declare function headersToJSON(headers: Headers): string;
2153
2409
  export declare function headersFromJSON(jsonString: string): SafeParseResult<Headers, SDKValidationError>;
@@ -2158,7 +2414,7 @@ export type Blueprint$Outbound = {
2158
2414
  url: string;
2159
2415
  method: string;
2160
2416
  headers?: {
2161
- [k: string]: Headers$Outbound;
2417
+ [k: string]: Headers2$Outbound | string;
2162
2418
  } | undefined;
2163
2419
  body?: {
2164
2420
  [k: string]: any;
@@ -2390,7 +2646,7 @@ export declare function agentToolInputRunGoogleSearchToolFromJSON(jsonString: st
2390
2646
  /** @internal */
2391
2647
  export declare const AgentToolInputRun$inboundSchema: z.ZodType<AgentToolInputRun, z.ZodTypeDef, unknown>;
2392
2648
  /** @internal */
2393
- export type AgentToolInputRun$Outbound = HTTPToolRun$Outbound | CodeToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound;
2649
+ export type AgentToolInputRun$Outbound = HTTPToolRun$Outbound | CodeToolRun$Outbound | MCPToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound;
2394
2650
  /** @internal */
2395
2651
  export declare const AgentToolInputRun$outboundSchema: z.ZodType<AgentToolInputRun$Outbound, z.ZodTypeDef, AgentToolInputRun>;
2396
2652
  export declare function agentToolInputRunToJSON(agentToolInputRun: AgentToolInputRun): string;
@@ -2435,7 +2691,7 @@ export declare function runAgentGuardrailsFromJSON(jsonString: string): SafePars
2435
2691
  export declare const RunAgentSettings$inboundSchema: z.ZodType<RunAgentSettings, z.ZodTypeDef, unknown>;
2436
2692
  /** @internal */
2437
2693
  export type RunAgentSettings$Outbound = {
2438
- tools?: Array<HTTPToolRun$Outbound | CodeToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound> | undefined;
2694
+ tools?: Array<HTTPToolRun$Outbound | CodeToolRun$Outbound | MCPToolRun$Outbound | FunctionToolRun$Outbound | AgentToolInputRunGoogleSearchTool$Outbound | AgentToolInputRunWebScraperTool$Outbound | AgentToolInputRunCallSubAgentTool$Outbound | AgentToolInputRunRetrieveAgentsTool$Outbound | AgentToolInputRunQueryMemoryStoreTool$Outbound | AgentToolInputRunWriteMemoryStoreTool$Outbound | AgentToolInputRunRetrieveMemoryStoresTool$Outbound | AgentToolInputRunDeleteMemoryDocumentTool$Outbound | AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound | AgentToolInputRunQueryKnowledgeBaseTool$Outbound | AgentToolInputRunCurrentDateTool$Outbound> | undefined;
2439
2695
  tool_approval_required: string;
2440
2696
  max_iterations: number;
2441
2697
  max_execution_time: number;