@orq-ai/node 3.14.44 → 3.14.45

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 (140) hide show
  1. package/bin/mcp-server.js +209 -209
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +10 -10
  16. package/models/operations/duplicatetool.js +10 -10
  17. package/models/operations/fileget.js +2 -2
  18. package/models/operations/filelist.js +2 -2
  19. package/models/operations/fileupload.js +2 -2
  20. package/models/operations/getalltools.js +10 -10
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +8 -8
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +8 -8
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/retrievetool.js +10 -10
  33. package/models/operations/updatebudget.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +8 -8
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +28 -28
  39. package/models/operations/updatetool.js +10 -10
  40. package/package.json +1 -1
  41. package/packages/orq-rc/README.md +3 -4
  42. package/packages/orq-rc/docs/sdks/agents/README.md +195 -157
  43. package/packages/orq-rc/docs/sdks/chunking/README.md +2 -0
  44. package/packages/orq-rc/docs/sdks/memorystores/README.md +3 -4
  45. package/packages/orq-rc/examples/package-lock.json +1 -1
  46. package/packages/orq-rc/jsr.json +1 -1
  47. package/packages/orq-rc/package-lock.json +2 -2
  48. package/packages/orq-rc/package.json +1 -1
  49. package/packages/orq-rc/src/funcs/agentsCreate.ts +1 -1
  50. package/packages/orq-rc/src/funcs/agentsInvoke.ts +4 -4
  51. package/packages/orq-rc/src/funcs/agentsListTasks.ts +4 -4
  52. package/packages/orq-rc/src/funcs/agentsRetrieveTask.ts +8 -8
  53. package/packages/orq-rc/src/funcs/agentsRun.ts +4 -4
  54. package/packages/orq-rc/src/funcs/agentsStream.ts +1 -0
  55. package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -0
  56. package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +2 -11
  57. package/packages/orq-rc/src/lib/config.ts +2 -2
  58. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  59. package/packages/orq-rc/src/mcp-server/server.ts +3 -3
  60. package/packages/orq-rc/src/models/errors/index.ts +0 -1
  61. package/packages/orq-rc/src/models/operations/createagent.ts +31 -13
  62. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  66. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  67. package/packages/orq-rc/src/models/operations/createeval.ts +368 -294
  68. package/packages/orq-rc/src/models/operations/createknowledge.ts +33 -47
  69. package/packages/orq-rc/src/models/operations/createtool.ts +198 -161
  70. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +17 -24
  71. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  74. package/packages/orq-rc/src/models/operations/getagent.ts +9 -0
  75. package/packages/orq-rc/src/models/operations/getagenttask.ts +1873 -428
  76. package/packages/orq-rc/src/models/operations/getalltools.ts +284 -231
  77. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  79. package/packages/orq-rc/src/models/operations/invokeagent.ts +319 -299
  80. package/packages/orq-rc/src/models/operations/listagents.ts +9 -0
  81. package/packages/orq-rc/src/models/operations/listagenttasks.ts +2029 -540
  82. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  83. package/packages/orq-rc/src/models/operations/listchunks.ts +14 -14
  84. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  86. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  87. package/packages/orq-rc/src/models/operations/listdatasources.ts +15 -22
  88. package/packages/orq-rc/src/models/operations/parse.ts +16 -0
  89. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  91. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  92. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/retrievetool.ts +168 -132
  94. package/packages/orq-rc/src/models/operations/runagent.ts +264 -220
  95. package/packages/orq-rc/src/models/operations/streamagent.ts +7635 -414
  96. package/packages/orq-rc/src/models/operations/streamrunagent.ts +10745 -3582
  97. package/packages/orq-rc/src/models/operations/updateagent.ts +56 -31
  98. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  99. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  101. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  104. package/packages/orq-rc/src/models/operations/updatetool.ts +138 -104
  105. package/packages/orq-rc/src/sdk/agents.ts +37 -37
  106. package/src/lib/config.ts +2 -2
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +1 -1
  109. package/src/models/operations/createbudget.ts +2 -2
  110. package/src/models/operations/createcontact.ts +2 -2
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +28 -28
  115. package/src/models/operations/createtool.ts +10 -10
  116. package/src/models/operations/duplicatetool.ts +10 -10
  117. package/src/models/operations/fileget.ts +2 -2
  118. package/src/models/operations/filelist.ts +2 -2
  119. package/src/models/operations/fileupload.ts +2 -2
  120. package/src/models/operations/getalltools.ts +10 -10
  121. package/src/models/operations/getbudget.ts +2 -2
  122. package/src/models/operations/getevals.ts +28 -28
  123. package/src/models/operations/listbudgets.ts +2 -2
  124. package/src/models/operations/listcontacts.ts +2 -2
  125. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  126. package/src/models/operations/listdatasets.ts +2 -2
  127. package/src/models/operations/listdatasources.ts +2 -2
  128. package/src/models/operations/retrievecontact.ts +2 -2
  129. package/src/models/operations/retrievedatapoint.ts +8 -8
  130. package/src/models/operations/retrievedataset.ts +2 -2
  131. package/src/models/operations/retrievedatasource.ts +2 -2
  132. package/src/models/operations/retrievetool.ts +10 -10
  133. package/src/models/operations/updatebudget.ts +2 -2
  134. package/src/models/operations/updatecontact.ts +2 -2
  135. package/src/models/operations/updatedatapoint.ts +8 -8
  136. package/src/models/operations/updatedataset.ts +2 -2
  137. package/src/models/operations/updatedatasource.ts +2 -2
  138. package/src/models/operations/updateeval.ts +28 -28
  139. package/src/models/operations/updatetool.ts +10 -10
  140. package/packages/orq-rc/src/models/errors/getagenttask.ts +0 -67
@@ -105,7 +105,10 @@ export type DataCodeTool = {
105
105
  code: string;
106
106
  };
107
107
 
108
- export type Data5 = {
108
+ /**
109
+ * Executes code snippets in a sandboxed environment, currently supporting Python.
110
+ */
111
+ export type DataCodeExecutionTool = {
109
112
  id?: string | undefined;
110
113
  /**
111
114
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -230,7 +233,10 @@ export type DataMcp = {
230
233
  connectionType: DataConnectionType;
231
234
  };
232
235
 
233
- export type Data4 = {
236
+ /**
237
+ * A tool from a Model Context Protocol (MCP) server that provides standardized access to external capabilities.
238
+ */
239
+ export type DataMCPTool = {
234
240
  id?: string | undefined;
235
241
  /**
236
242
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -392,7 +398,10 @@ export type GetAllToolsDataHttp = {
392
398
  arguments?: { [k: string]: DataArguments } | undefined;
393
399
  };
394
400
 
395
- export type Data3 = {
401
+ /**
402
+ * Executes HTTP requests to interact with external APIs and web services using customizable blueprints.
403
+ */
404
+ export type DataHTTPTool = {
396
405
  id?: string | undefined;
397
406
  /**
398
407
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -496,7 +505,10 @@ export type DataJsonSchema = {
496
505
  strict?: boolean | undefined;
497
506
  };
498
507
 
499
- export type Data2 = {
508
+ /**
509
+ * A tool that enforces structured output format using JSON Schema for consistent response formatting.
510
+ */
511
+ export type DataJSONSchemaTool = {
500
512
  id?: string | undefined;
501
513
  /**
502
514
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -612,7 +624,10 @@ export type GetAllToolsDataFunction = {
612
624
  parameters?: DataParameters | undefined;
613
625
  };
614
626
 
615
- export type Data1 = {
627
+ /**
628
+ * A custom function tool that allows the model to call predefined functions with structured parameters.
629
+ */
630
+ export type DataFunctionTool = {
616
631
  id?: string | undefined;
617
632
  /**
618
633
  * Entity storage path in the format: `project/folder/subfolder/...`
@@ -657,14 +672,25 @@ export type Data1 = {
657
672
  function: GetAllToolsDataFunction;
658
673
  };
659
674
 
660
- export type GetAllToolsData = Data1 | Data2 | Data3 | Data4 | Data5;
675
+ export type GetAllToolsData =
676
+ | DataFunctionTool
677
+ | DataJSONSchemaTool
678
+ | DataHTTPTool
679
+ | DataMCPTool
680
+ | DataCodeExecutionTool;
661
681
 
662
682
  /**
663
683
  * Successfully retrieved the list of tools.
664
684
  */
665
685
  export type GetAllToolsResponseBody = {
666
686
  object: GetAllToolsObject;
667
- data: Array<Data1 | Data2 | Data3 | Data4 | Data5>;
687
+ data: Array<
688
+ | DataFunctionTool
689
+ | DataJSONSchemaTool
690
+ | DataHTTPTool
691
+ | DataMCPTool
692
+ | DataCodeExecutionTool
693
+ >;
668
694
  hasMore: boolean;
669
695
  };
670
696
 
@@ -874,37 +900,40 @@ export function dataCodeToolFromJSON(
874
900
  }
875
901
 
876
902
  /** @internal */
877
- export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
878
- .object({
879
- _id: z.string().default("tool_01KAE3ET8VQRNK6EYQM5APFCSY"),
880
- path: z.string(),
881
- key: z.string(),
882
- display_name: z.string().optional(),
883
- description: z.string(),
884
- created_by_id: z.string().optional(),
885
- updated_by_id: z.string().optional(),
886
- project_id: z.string(),
887
- workspace_id: z.string(),
888
- created: z.string(),
889
- updated: z.string(),
890
- status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
891
- version_hash: z.string().optional(),
892
- type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
893
- code_tool: z.lazy(() => DataCodeTool$inboundSchema),
894
- }).transform((v) => {
895
- return remap$(v, {
896
- "_id": "id",
897
- "display_name": "displayName",
898
- "created_by_id": "createdById",
899
- "updated_by_id": "updatedById",
900
- "project_id": "projectId",
901
- "workspace_id": "workspaceId",
902
- "version_hash": "versionHash",
903
- "code_tool": "codeTool",
904
- });
903
+ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
904
+ DataCodeExecutionTool,
905
+ z.ZodTypeDef,
906
+ unknown
907
+ > = z.object({
908
+ _id: z.string().default("tool_01KAJP98ABMJBFKBF9Q5XMWTPW"),
909
+ path: z.string(),
910
+ key: z.string(),
911
+ display_name: z.string().optional(),
912
+ description: z.string(),
913
+ created_by_id: z.string().optional(),
914
+ updated_by_id: z.string().optional(),
915
+ project_id: z.string(),
916
+ workspace_id: z.string(),
917
+ created: z.string(),
918
+ updated: z.string(),
919
+ status: GetAllToolsDataToolsResponse200Status$inboundSchema.default("live"),
920
+ version_hash: z.string().optional(),
921
+ type: GetAllToolsDataToolsResponse200ApplicationJSONType$inboundSchema,
922
+ code_tool: z.lazy(() => DataCodeTool$inboundSchema),
923
+ }).transform((v) => {
924
+ return remap$(v, {
925
+ "_id": "id",
926
+ "display_name": "displayName",
927
+ "created_by_id": "createdById",
928
+ "updated_by_id": "updatedById",
929
+ "project_id": "projectId",
930
+ "workspace_id": "workspaceId",
931
+ "version_hash": "versionHash",
932
+ "code_tool": "codeTool",
905
933
  });
934
+ });
906
935
  /** @internal */
907
- export type Data5$Outbound = {
936
+ export type DataCodeExecutionTool$Outbound = {
908
937
  _id: string;
909
938
  path: string;
910
939
  key: string;
@@ -923,12 +952,12 @@ export type Data5$Outbound = {
923
952
  };
924
953
 
925
954
  /** @internal */
926
- export const Data5$outboundSchema: z.ZodType<
927
- Data5$Outbound,
955
+ export const DataCodeExecutionTool$outboundSchema: z.ZodType<
956
+ DataCodeExecutionTool$Outbound,
928
957
  z.ZodTypeDef,
929
- Data5
958
+ DataCodeExecutionTool
930
959
  > = z.object({
931
- id: z.string().default("tool_01KAE3ET8VQRNK6EYQM5APFCSY"),
960
+ id: z.string().default("tool_01KAJP98ABMJBFKBF9Q5XMWTPW"),
932
961
  path: z.string(),
933
962
  key: z.string(),
934
963
  displayName: z.string().optional(),
@@ -956,16 +985,20 @@ export const Data5$outboundSchema: z.ZodType<
956
985
  });
957
986
  });
958
987
 
959
- export function data5ToJSON(data5: Data5): string {
960
- return JSON.stringify(Data5$outboundSchema.parse(data5));
988
+ export function dataCodeExecutionToolToJSON(
989
+ dataCodeExecutionTool: DataCodeExecutionTool,
990
+ ): string {
991
+ return JSON.stringify(
992
+ DataCodeExecutionTool$outboundSchema.parse(dataCodeExecutionTool),
993
+ );
961
994
  }
962
- export function data5FromJSON(
995
+ export function dataCodeExecutionToolFromJSON(
963
996
  jsonString: string,
964
- ): SafeParseResult<Data5, SDKValidationError> {
997
+ ): SafeParseResult<DataCodeExecutionTool, SDKValidationError> {
965
998
  return safeParse(
966
999
  jsonString,
967
- (x) => Data5$inboundSchema.parse(JSON.parse(x)),
968
- `Failed to parse 'Data5' from JSON`,
1000
+ (x) => DataCodeExecutionTool$inboundSchema.parse(JSON.parse(x)),
1001
+ `Failed to parse 'DataCodeExecutionTool' from JSON`,
969
1002
  );
970
1003
  }
971
1004
 
@@ -1092,7 +1125,7 @@ export const DataTools$inboundSchema: z.ZodType<
1092
1125
  z.ZodTypeDef,
1093
1126
  unknown
1094
1127
  > = z.object({
1095
- id: z.string().default("01KAE3ET8TA1RFQX18VKYP594C"),
1128
+ id: z.string().default("01KAJP98AAGEQVTXMV6B8X0PR5"),
1096
1129
  name: z.string(),
1097
1130
  description: z.string().optional(),
1098
1131
  schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
@@ -1111,7 +1144,7 @@ export const DataTools$outboundSchema: z.ZodType<
1111
1144
  z.ZodTypeDef,
1112
1145
  DataTools
1113
1146
  > = z.object({
1114
- id: z.string().default("01KAE3ET8TA1RFQX18VKYP594C"),
1147
+ id: z.string().default("01KAJP98AAGEQVTXMV6B8X0PR5"),
1115
1148
  name: z.string(),
1116
1149
  description: z.string().optional(),
1117
1150
  schema: z.lazy(() => GetAllToolsDataSchema$outboundSchema),
@@ -1191,36 +1224,39 @@ export function dataMcpFromJSON(
1191
1224
  }
1192
1225
 
1193
1226
  /** @internal */
1194
- export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
1195
- .object({
1196
- _id: z.string().default("tool_01KAE3ET8RFRYZ9RXNKNNCJMVM"),
1197
- path: z.string(),
1198
- key: z.string(),
1199
- display_name: z.string().optional(),
1200
- description: z.string(),
1201
- created_by_id: z.string().optional(),
1202
- updated_by_id: z.string().optional(),
1203
- project_id: z.string(),
1204
- workspace_id: z.string(),
1205
- created: z.string(),
1206
- updated: z.string(),
1207
- status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
1208
- version_hash: z.string().optional(),
1209
- type: GetAllToolsDataToolsResponse200Type$inboundSchema,
1210
- mcp: z.lazy(() => DataMcp$inboundSchema),
1211
- }).transform((v) => {
1212
- return remap$(v, {
1213
- "_id": "id",
1214
- "display_name": "displayName",
1215
- "created_by_id": "createdById",
1216
- "updated_by_id": "updatedById",
1217
- "project_id": "projectId",
1218
- "workspace_id": "workspaceId",
1219
- "version_hash": "versionHash",
1220
- });
1227
+ export const DataMCPTool$inboundSchema: z.ZodType<
1228
+ DataMCPTool,
1229
+ z.ZodTypeDef,
1230
+ unknown
1231
+ > = z.object({
1232
+ _id: z.string().default("tool_01KAJP98A9GSBWNS4MK7PNYK71"),
1233
+ path: z.string(),
1234
+ key: z.string(),
1235
+ display_name: z.string().optional(),
1236
+ description: z.string(),
1237
+ created_by_id: z.string().optional(),
1238
+ updated_by_id: z.string().optional(),
1239
+ project_id: z.string(),
1240
+ workspace_id: z.string(),
1241
+ created: z.string(),
1242
+ updated: z.string(),
1243
+ status: GetAllToolsDataToolsResponseStatus$inboundSchema.default("live"),
1244
+ version_hash: z.string().optional(),
1245
+ type: GetAllToolsDataToolsResponse200Type$inboundSchema,
1246
+ mcp: z.lazy(() => DataMcp$inboundSchema),
1247
+ }).transform((v) => {
1248
+ return remap$(v, {
1249
+ "_id": "id",
1250
+ "display_name": "displayName",
1251
+ "created_by_id": "createdById",
1252
+ "updated_by_id": "updatedById",
1253
+ "project_id": "projectId",
1254
+ "workspace_id": "workspaceId",
1255
+ "version_hash": "versionHash",
1221
1256
  });
1257
+ });
1222
1258
  /** @internal */
1223
- export type Data4$Outbound = {
1259
+ export type DataMCPTool$Outbound = {
1224
1260
  _id: string;
1225
1261
  path: string;
1226
1262
  key: string;
@@ -1239,12 +1275,12 @@ export type Data4$Outbound = {
1239
1275
  };
1240
1276
 
1241
1277
  /** @internal */
1242
- export const Data4$outboundSchema: z.ZodType<
1243
- Data4$Outbound,
1278
+ export const DataMCPTool$outboundSchema: z.ZodType<
1279
+ DataMCPTool$Outbound,
1244
1280
  z.ZodTypeDef,
1245
- Data4
1281
+ DataMCPTool
1246
1282
  > = z.object({
1247
- id: z.string().default("tool_01KAE3ET8RFRYZ9RXNKNNCJMVM"),
1283
+ id: z.string().default("tool_01KAJP98A9GSBWNS4MK7PNYK71"),
1248
1284
  path: z.string(),
1249
1285
  key: z.string(),
1250
1286
  displayName: z.string().optional(),
@@ -1271,16 +1307,16 @@ export const Data4$outboundSchema: z.ZodType<
1271
1307
  });
1272
1308
  });
1273
1309
 
1274
- export function data4ToJSON(data4: Data4): string {
1275
- return JSON.stringify(Data4$outboundSchema.parse(data4));
1310
+ export function dataMCPToolToJSON(dataMCPTool: DataMCPTool): string {
1311
+ return JSON.stringify(DataMCPTool$outboundSchema.parse(dataMCPTool));
1276
1312
  }
1277
- export function data4FromJSON(
1313
+ export function dataMCPToolFromJSON(
1278
1314
  jsonString: string,
1279
- ): SafeParseResult<Data4, SDKValidationError> {
1315
+ ): SafeParseResult<DataMCPTool, SDKValidationError> {
1280
1316
  return safeParse(
1281
1317
  jsonString,
1282
- (x) => Data4$inboundSchema.parse(JSON.parse(x)),
1283
- `Failed to parse 'Data4' from JSON`,
1318
+ (x) => DataMCPTool$inboundSchema.parse(JSON.parse(x)),
1319
+ `Failed to parse 'DataMCPTool' from JSON`,
1284
1320
  );
1285
1321
  }
1286
1322
 
@@ -1582,36 +1618,39 @@ export function getAllToolsDataHttpFromJSON(
1582
1618
  }
1583
1619
 
1584
1620
  /** @internal */
1585
- export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
1586
- .object({
1587
- _id: z.string().default("tool_01KAE3ET8KGQYGQA54YHNW1528"),
1588
- path: z.string(),
1589
- key: z.string(),
1590
- display_name: z.string().optional(),
1591
- description: z.string(),
1592
- created_by_id: z.string().optional(),
1593
- updated_by_id: z.string().optional(),
1594
- project_id: z.string(),
1595
- workspace_id: z.string(),
1596
- created: z.string(),
1597
- updated: z.string(),
1598
- status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1599
- version_hash: z.string().optional(),
1600
- type: GetAllToolsDataToolsResponseType$inboundSchema,
1601
- http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1602
- }).transform((v) => {
1603
- return remap$(v, {
1604
- "_id": "id",
1605
- "display_name": "displayName",
1606
- "created_by_id": "createdById",
1607
- "updated_by_id": "updatedById",
1608
- "project_id": "projectId",
1609
- "workspace_id": "workspaceId",
1610
- "version_hash": "versionHash",
1611
- });
1621
+ export const DataHTTPTool$inboundSchema: z.ZodType<
1622
+ DataHTTPTool,
1623
+ z.ZodTypeDef,
1624
+ unknown
1625
+ > = z.object({
1626
+ _id: z.string().default("tool_01KAJP98A72K9FNYCHBVC5ZRZS"),
1627
+ path: z.string(),
1628
+ key: z.string(),
1629
+ display_name: z.string().optional(),
1630
+ description: z.string(),
1631
+ created_by_id: z.string().optional(),
1632
+ updated_by_id: z.string().optional(),
1633
+ project_id: z.string(),
1634
+ workspace_id: z.string(),
1635
+ created: z.string(),
1636
+ updated: z.string(),
1637
+ status: GetAllToolsDataToolsStatus$inboundSchema.default("live"),
1638
+ version_hash: z.string().optional(),
1639
+ type: GetAllToolsDataToolsResponseType$inboundSchema,
1640
+ http: z.lazy(() => GetAllToolsDataHttp$inboundSchema),
1641
+ }).transform((v) => {
1642
+ return remap$(v, {
1643
+ "_id": "id",
1644
+ "display_name": "displayName",
1645
+ "created_by_id": "createdById",
1646
+ "updated_by_id": "updatedById",
1647
+ "project_id": "projectId",
1648
+ "workspace_id": "workspaceId",
1649
+ "version_hash": "versionHash",
1612
1650
  });
1651
+ });
1613
1652
  /** @internal */
1614
- export type Data3$Outbound = {
1653
+ export type DataHTTPTool$Outbound = {
1615
1654
  _id: string;
1616
1655
  path: string;
1617
1656
  key: string;
@@ -1630,12 +1669,12 @@ export type Data3$Outbound = {
1630
1669
  };
1631
1670
 
1632
1671
  /** @internal */
1633
- export const Data3$outboundSchema: z.ZodType<
1634
- Data3$Outbound,
1672
+ export const DataHTTPTool$outboundSchema: z.ZodType<
1673
+ DataHTTPTool$Outbound,
1635
1674
  z.ZodTypeDef,
1636
- Data3
1675
+ DataHTTPTool
1637
1676
  > = z.object({
1638
- id: z.string().default("tool_01KAE3ET8KGQYGQA54YHNW1528"),
1677
+ id: z.string().default("tool_01KAJP98A72K9FNYCHBVC5ZRZS"),
1639
1678
  path: z.string(),
1640
1679
  key: z.string(),
1641
1680
  displayName: z.string().optional(),
@@ -1662,16 +1701,16 @@ export const Data3$outboundSchema: z.ZodType<
1662
1701
  });
1663
1702
  });
1664
1703
 
1665
- export function data3ToJSON(data3: Data3): string {
1666
- return JSON.stringify(Data3$outboundSchema.parse(data3));
1704
+ export function dataHTTPToolToJSON(dataHTTPTool: DataHTTPTool): string {
1705
+ return JSON.stringify(DataHTTPTool$outboundSchema.parse(dataHTTPTool));
1667
1706
  }
1668
- export function data3FromJSON(
1707
+ export function dataHTTPToolFromJSON(
1669
1708
  jsonString: string,
1670
- ): SafeParseResult<Data3, SDKValidationError> {
1709
+ ): SafeParseResult<DataHTTPTool, SDKValidationError> {
1671
1710
  return safeParse(
1672
1711
  jsonString,
1673
- (x) => Data3$inboundSchema.parse(JSON.parse(x)),
1674
- `Failed to parse 'Data3' from JSON`,
1712
+ (x) => DataHTTPTool$inboundSchema.parse(JSON.parse(x)),
1713
+ `Failed to parse 'DataHTTPTool' from JSON`,
1675
1714
  );
1676
1715
  }
1677
1716
 
@@ -1792,37 +1831,40 @@ export function dataJsonSchemaFromJSON(
1792
1831
  }
1793
1832
 
1794
1833
  /** @internal */
1795
- export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1796
- .object({
1797
- _id: z.string().default("tool_01KAE3ET8H20FE4605EKKN2ZNS"),
1798
- path: z.string(),
1799
- key: z.string(),
1800
- display_name: z.string().optional(),
1801
- description: z.string(),
1802
- created_by_id: z.string().optional(),
1803
- updated_by_id: z.string().optional(),
1804
- project_id: z.string(),
1805
- workspace_id: z.string(),
1806
- created: z.string(),
1807
- updated: z.string(),
1808
- status: GetAllToolsDataStatus$inboundSchema.default("live"),
1809
- version_hash: z.string().optional(),
1810
- type: GetAllToolsDataToolsType$inboundSchema,
1811
- json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1812
- }).transform((v) => {
1813
- return remap$(v, {
1814
- "_id": "id",
1815
- "display_name": "displayName",
1816
- "created_by_id": "createdById",
1817
- "updated_by_id": "updatedById",
1818
- "project_id": "projectId",
1819
- "workspace_id": "workspaceId",
1820
- "version_hash": "versionHash",
1821
- "json_schema": "jsonSchema",
1822
- });
1834
+ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
1835
+ DataJSONSchemaTool,
1836
+ z.ZodTypeDef,
1837
+ unknown
1838
+ > = z.object({
1839
+ _id: z.string().default("tool_01KAJP98A55P7S4HCHVTKQH70K"),
1840
+ path: z.string(),
1841
+ key: z.string(),
1842
+ display_name: z.string().optional(),
1843
+ description: z.string(),
1844
+ created_by_id: z.string().optional(),
1845
+ updated_by_id: z.string().optional(),
1846
+ project_id: z.string(),
1847
+ workspace_id: z.string(),
1848
+ created: z.string(),
1849
+ updated: z.string(),
1850
+ status: GetAllToolsDataStatus$inboundSchema.default("live"),
1851
+ version_hash: z.string().optional(),
1852
+ type: GetAllToolsDataToolsType$inboundSchema,
1853
+ json_schema: z.lazy(() => DataJsonSchema$inboundSchema),
1854
+ }).transform((v) => {
1855
+ return remap$(v, {
1856
+ "_id": "id",
1857
+ "display_name": "displayName",
1858
+ "created_by_id": "createdById",
1859
+ "updated_by_id": "updatedById",
1860
+ "project_id": "projectId",
1861
+ "workspace_id": "workspaceId",
1862
+ "version_hash": "versionHash",
1863
+ "json_schema": "jsonSchema",
1823
1864
  });
1865
+ });
1824
1866
  /** @internal */
1825
- export type Data2$Outbound = {
1867
+ export type DataJSONSchemaTool$Outbound = {
1826
1868
  _id: string;
1827
1869
  path: string;
1828
1870
  key: string;
@@ -1841,12 +1883,12 @@ export type Data2$Outbound = {
1841
1883
  };
1842
1884
 
1843
1885
  /** @internal */
1844
- export const Data2$outboundSchema: z.ZodType<
1845
- Data2$Outbound,
1886
+ export const DataJSONSchemaTool$outboundSchema: z.ZodType<
1887
+ DataJSONSchemaTool$Outbound,
1846
1888
  z.ZodTypeDef,
1847
- Data2
1889
+ DataJSONSchemaTool
1848
1890
  > = z.object({
1849
- id: z.string().default("tool_01KAE3ET8H20FE4605EKKN2ZNS"),
1891
+ id: z.string().default("tool_01KAJP98A55P7S4HCHVTKQH70K"),
1850
1892
  path: z.string(),
1851
1893
  key: z.string(),
1852
1894
  displayName: z.string().optional(),
@@ -1874,16 +1916,20 @@ export const Data2$outboundSchema: z.ZodType<
1874
1916
  });
1875
1917
  });
1876
1918
 
1877
- export function data2ToJSON(data2: Data2): string {
1878
- return JSON.stringify(Data2$outboundSchema.parse(data2));
1919
+ export function dataJSONSchemaToolToJSON(
1920
+ dataJSONSchemaTool: DataJSONSchemaTool,
1921
+ ): string {
1922
+ return JSON.stringify(
1923
+ DataJSONSchemaTool$outboundSchema.parse(dataJSONSchemaTool),
1924
+ );
1879
1925
  }
1880
- export function data2FromJSON(
1926
+ export function dataJSONSchemaToolFromJSON(
1881
1927
  jsonString: string,
1882
- ): SafeParseResult<Data2, SDKValidationError> {
1928
+ ): SafeParseResult<DataJSONSchemaTool, SDKValidationError> {
1883
1929
  return safeParse(
1884
1930
  jsonString,
1885
- (x) => Data2$inboundSchema.parse(JSON.parse(x)),
1886
- `Failed to parse 'Data2' from JSON`,
1931
+ (x) => DataJSONSchemaTool$inboundSchema.parse(JSON.parse(x)),
1932
+ `Failed to parse 'DataJSONSchemaTool' from JSON`,
1887
1933
  );
1888
1934
  }
1889
1935
 
@@ -2022,36 +2068,39 @@ export function getAllToolsDataFunctionFromJSON(
2022
2068
  }
2023
2069
 
2024
2070
  /** @internal */
2025
- export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
2026
- .object({
2027
- _id: z.string().default("tool_01KAE3ET8F8CWW2HJPK9GWBTSJ"),
2028
- path: z.string(),
2029
- key: z.string(),
2030
- display_name: z.string().optional(),
2031
- description: z.string(),
2032
- created_by_id: z.string().optional(),
2033
- updated_by_id: z.string().optional(),
2034
- project_id: z.string(),
2035
- workspace_id: z.string(),
2036
- created: z.string(),
2037
- updated: z.string(),
2038
- status: DataStatus$inboundSchema.default("live"),
2039
- version_hash: z.string().optional(),
2040
- type: GetAllToolsDataType$inboundSchema,
2041
- function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
2042
- }).transform((v) => {
2043
- return remap$(v, {
2044
- "_id": "id",
2045
- "display_name": "displayName",
2046
- "created_by_id": "createdById",
2047
- "updated_by_id": "updatedById",
2048
- "project_id": "projectId",
2049
- "workspace_id": "workspaceId",
2050
- "version_hash": "versionHash",
2051
- });
2071
+ export const DataFunctionTool$inboundSchema: z.ZodType<
2072
+ DataFunctionTool,
2073
+ z.ZodTypeDef,
2074
+ unknown
2075
+ > = z.object({
2076
+ _id: z.string().default("tool_01KAJP98A3CK61H9F3FXA0ZYHG"),
2077
+ path: z.string(),
2078
+ key: z.string(),
2079
+ display_name: z.string().optional(),
2080
+ description: z.string(),
2081
+ created_by_id: z.string().optional(),
2082
+ updated_by_id: z.string().optional(),
2083
+ project_id: z.string(),
2084
+ workspace_id: z.string(),
2085
+ created: z.string(),
2086
+ updated: z.string(),
2087
+ status: DataStatus$inboundSchema.default("live"),
2088
+ version_hash: z.string().optional(),
2089
+ type: GetAllToolsDataType$inboundSchema,
2090
+ function: z.lazy(() => GetAllToolsDataFunction$inboundSchema),
2091
+ }).transform((v) => {
2092
+ return remap$(v, {
2093
+ "_id": "id",
2094
+ "display_name": "displayName",
2095
+ "created_by_id": "createdById",
2096
+ "updated_by_id": "updatedById",
2097
+ "project_id": "projectId",
2098
+ "workspace_id": "workspaceId",
2099
+ "version_hash": "versionHash",
2052
2100
  });
2101
+ });
2053
2102
  /** @internal */
2054
- export type Data1$Outbound = {
2103
+ export type DataFunctionTool$Outbound = {
2055
2104
  _id: string;
2056
2105
  path: string;
2057
2106
  key: string;
@@ -2070,12 +2119,12 @@ export type Data1$Outbound = {
2070
2119
  };
2071
2120
 
2072
2121
  /** @internal */
2073
- export const Data1$outboundSchema: z.ZodType<
2074
- Data1$Outbound,
2122
+ export const DataFunctionTool$outboundSchema: z.ZodType<
2123
+ DataFunctionTool$Outbound,
2075
2124
  z.ZodTypeDef,
2076
- Data1
2125
+ DataFunctionTool
2077
2126
  > = z.object({
2078
- id: z.string().default("tool_01KAE3ET8F8CWW2HJPK9GWBTSJ"),
2127
+ id: z.string().default("tool_01KAJP98A3CK61H9F3FXA0ZYHG"),
2079
2128
  path: z.string(),
2080
2129
  key: z.string(),
2081
2130
  displayName: z.string().optional(),
@@ -2102,16 +2151,20 @@ export const Data1$outboundSchema: z.ZodType<
2102
2151
  });
2103
2152
  });
2104
2153
 
2105
- export function data1ToJSON(data1: Data1): string {
2106
- return JSON.stringify(Data1$outboundSchema.parse(data1));
2154
+ export function dataFunctionToolToJSON(
2155
+ dataFunctionTool: DataFunctionTool,
2156
+ ): string {
2157
+ return JSON.stringify(
2158
+ DataFunctionTool$outboundSchema.parse(dataFunctionTool),
2159
+ );
2107
2160
  }
2108
- export function data1FromJSON(
2161
+ export function dataFunctionToolFromJSON(
2109
2162
  jsonString: string,
2110
- ): SafeParseResult<Data1, SDKValidationError> {
2163
+ ): SafeParseResult<DataFunctionTool, SDKValidationError> {
2111
2164
  return safeParse(
2112
2165
  jsonString,
2113
- (x) => Data1$inboundSchema.parse(JSON.parse(x)),
2114
- `Failed to parse 'Data1' from JSON`,
2166
+ (x) => DataFunctionTool$inboundSchema.parse(JSON.parse(x)),
2167
+ `Failed to parse 'DataFunctionTool' from JSON`,
2115
2168
  );
2116
2169
  }
2117
2170
 
@@ -2121,19 +2174,19 @@ export const GetAllToolsData$inboundSchema: z.ZodType<
2121
2174
  z.ZodTypeDef,
2122
2175
  unknown
2123
2176
  > = z.union([
2124
- z.lazy(() => Data1$inboundSchema),
2125
- z.lazy(() => Data2$inboundSchema),
2126
- z.lazy(() => Data3$inboundSchema),
2127
- z.lazy(() => Data4$inboundSchema),
2128
- z.lazy(() => Data5$inboundSchema),
2177
+ z.lazy(() => DataFunctionTool$inboundSchema),
2178
+ z.lazy(() => DataJSONSchemaTool$inboundSchema),
2179
+ z.lazy(() => DataHTTPTool$inboundSchema),
2180
+ z.lazy(() => DataMCPTool$inboundSchema),
2181
+ z.lazy(() => DataCodeExecutionTool$inboundSchema),
2129
2182
  ]);
2130
2183
  /** @internal */
2131
2184
  export type GetAllToolsData$Outbound =
2132
- | Data1$Outbound
2133
- | Data2$Outbound
2134
- | Data3$Outbound
2135
- | Data4$Outbound
2136
- | Data5$Outbound;
2185
+ | DataFunctionTool$Outbound
2186
+ | DataJSONSchemaTool$Outbound
2187
+ | DataHTTPTool$Outbound
2188
+ | DataMCPTool$Outbound
2189
+ | DataCodeExecutionTool$Outbound;
2137
2190
 
2138
2191
  /** @internal */
2139
2192
  export const GetAllToolsData$outboundSchema: z.ZodType<
@@ -2141,11 +2194,11 @@ export const GetAllToolsData$outboundSchema: z.ZodType<
2141
2194
  z.ZodTypeDef,
2142
2195
  GetAllToolsData
2143
2196
  > = z.union([
2144
- z.lazy(() => Data1$outboundSchema),
2145
- z.lazy(() => Data2$outboundSchema),
2146
- z.lazy(() => Data3$outboundSchema),
2147
- z.lazy(() => Data4$outboundSchema),
2148
- z.lazy(() => Data5$outboundSchema),
2197
+ z.lazy(() => DataFunctionTool$outboundSchema),
2198
+ z.lazy(() => DataJSONSchemaTool$outboundSchema),
2199
+ z.lazy(() => DataHTTPTool$outboundSchema),
2200
+ z.lazy(() => DataMCPTool$outboundSchema),
2201
+ z.lazy(() => DataCodeExecutionTool$outboundSchema),
2149
2202
  ]);
2150
2203
 
2151
2204
  export function getAllToolsDataToJSON(
@@ -2172,11 +2225,11 @@ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
2172
2225
  object: GetAllToolsObject$inboundSchema,
2173
2226
  data: z.array(
2174
2227
  z.union([
2175
- z.lazy(() => Data1$inboundSchema),
2176
- z.lazy(() => Data2$inboundSchema),
2177
- z.lazy(() => Data3$inboundSchema),
2178
- z.lazy(() => Data4$inboundSchema),
2179
- z.lazy(() => Data5$inboundSchema),
2228
+ z.lazy(() => DataFunctionTool$inboundSchema),
2229
+ z.lazy(() => DataJSONSchemaTool$inboundSchema),
2230
+ z.lazy(() => DataHTTPTool$inboundSchema),
2231
+ z.lazy(() => DataMCPTool$inboundSchema),
2232
+ z.lazy(() => DataCodeExecutionTool$inboundSchema),
2180
2233
  ]),
2181
2234
  ),
2182
2235
  has_more: z.boolean(),
@@ -2189,11 +2242,11 @@ export const GetAllToolsResponseBody$inboundSchema: z.ZodType<
2189
2242
  export type GetAllToolsResponseBody$Outbound = {
2190
2243
  object: string;
2191
2244
  data: Array<
2192
- | Data1$Outbound
2193
- | Data2$Outbound
2194
- | Data3$Outbound
2195
- | Data4$Outbound
2196
- | Data5$Outbound
2245
+ | DataFunctionTool$Outbound
2246
+ | DataJSONSchemaTool$Outbound
2247
+ | DataHTTPTool$Outbound
2248
+ | DataMCPTool$Outbound
2249
+ | DataCodeExecutionTool$Outbound
2197
2250
  >;
2198
2251
  has_more: boolean;
2199
2252
  };
@@ -2207,11 +2260,11 @@ export const GetAllToolsResponseBody$outboundSchema: z.ZodType<
2207
2260
  object: GetAllToolsObject$outboundSchema,
2208
2261
  data: z.array(
2209
2262
  z.union([
2210
- z.lazy(() => Data1$outboundSchema),
2211
- z.lazy(() => Data2$outboundSchema),
2212
- z.lazy(() => Data3$outboundSchema),
2213
- z.lazy(() => Data4$outboundSchema),
2214
- z.lazy(() => Data5$outboundSchema),
2263
+ z.lazy(() => DataFunctionTool$outboundSchema),
2264
+ z.lazy(() => DataJSONSchemaTool$outboundSchema),
2265
+ z.lazy(() => DataHTTPTool$outboundSchema),
2266
+ z.lazy(() => DataMCPTool$outboundSchema),
2267
+ z.lazy(() => DataCodeExecutionTool$outboundSchema),
2215
2268
  ]),
2216
2269
  ),
2217
2270
  hasMore: z.boolean(),