@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
@@ -250,7 +250,7 @@ export type Message1 = {
250
250
  redactedReasoning?: string | undefined;
251
251
  };
252
252
 
253
- export type DeploymentInvokeMessage = Message1 | Message2 | Message3;
253
+ export type Message = Message1 | Message2 | Message3;
254
254
 
255
255
  export type DeploymentInvokeChoices = {
256
256
  index: number;
@@ -793,46 +793,39 @@ export function message1FromJSON(
793
793
  }
794
794
 
795
795
  /** @internal */
796
- export const DeploymentInvokeMessage$inboundSchema: z.ZodType<
797
- DeploymentInvokeMessage,
798
- z.ZodTypeDef,
799
- unknown
800
- > = z.union([
801
- z.lazy(() => Message1$inboundSchema),
802
- z.lazy(() => Message2$inboundSchema),
803
- z.lazy(() => Message3$inboundSchema),
804
- ]);
796
+ export const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown> =
797
+ z.union([
798
+ z.lazy(() => Message1$inboundSchema),
799
+ z.lazy(() => Message2$inboundSchema),
800
+ z.lazy(() => Message3$inboundSchema),
801
+ ]);
805
802
  /** @internal */
806
- export type DeploymentInvokeMessage$Outbound =
803
+ export type Message$Outbound =
807
804
  | Message1$Outbound
808
805
  | Message2$Outbound
809
806
  | Message3$Outbound;
810
807
 
811
808
  /** @internal */
812
- export const DeploymentInvokeMessage$outboundSchema: z.ZodType<
813
- DeploymentInvokeMessage$Outbound,
809
+ export const Message$outboundSchema: z.ZodType<
810
+ Message$Outbound,
814
811
  z.ZodTypeDef,
815
- DeploymentInvokeMessage
812
+ Message
816
813
  > = z.union([
817
814
  z.lazy(() => Message1$outboundSchema),
818
815
  z.lazy(() => Message2$outboundSchema),
819
816
  z.lazy(() => Message3$outboundSchema),
820
817
  ]);
821
818
 
822
- export function deploymentInvokeMessageToJSON(
823
- deploymentInvokeMessage: DeploymentInvokeMessage,
824
- ): string {
825
- return JSON.stringify(
826
- DeploymentInvokeMessage$outboundSchema.parse(deploymentInvokeMessage),
827
- );
819
+ export function messageToJSON(message: Message): string {
820
+ return JSON.stringify(Message$outboundSchema.parse(message));
828
821
  }
829
- export function deploymentInvokeMessageFromJSON(
822
+ export function messageFromJSON(
830
823
  jsonString: string,
831
- ): SafeParseResult<DeploymentInvokeMessage, SDKValidationError> {
824
+ ): SafeParseResult<Message, SDKValidationError> {
832
825
  return safeParse(
833
826
  jsonString,
834
- (x) => DeploymentInvokeMessage$inboundSchema.parse(JSON.parse(x)),
835
- `Failed to parse 'DeploymentInvokeMessage' from JSON`,
827
+ (x) => Message$inboundSchema.parse(JSON.parse(x)),
828
+ `Failed to parse 'Message' from JSON`,
836
829
  );
837
830
  }
838
831
 
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
119
119
  file_name: z.string(),
120
120
  workspace_id: z.string(),
121
121
  created: z.string().datetime({ offset: true }).default(
122
- "2025-11-19T13:04:21.447Z",
122
+ "2025-11-21T07:50:18.931Z",
123
123
  ).transform(v => new Date(v)),
124
124
  }).transform((v) => {
125
125
  return remap$(v, {
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
152
152
  bytes: z.number(),
153
153
  fileName: z.string(),
154
154
  workspaceId: z.string(),
155
- created: z.date().default(() => new Date("2025-11-19T13:04:21.447Z"))
155
+ created: z.date().default(() => new Date("2025-11-21T07:50:18.931Z"))
156
156
  .transform(v => v.toISOString()),
157
157
  }).transform((v) => {
158
158
  return remap$(v, {
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
157
157
  file_name: z.string(),
158
158
  workspace_id: z.string(),
159
159
  created: z.string().datetime({ offset: true }).default(
160
- "2025-11-19T13:04:21.447Z",
160
+ "2025-11-21T07:50:18.931Z",
161
161
  ).transform(v => new Date(v)),
162
162
  }).transform((v) => {
163
163
  return remap$(v, {
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
190
190
  bytes: z.number(),
191
191
  fileName: z.string(),
192
192
  workspaceId: z.string(),
193
- created: z.date().default(() => new Date("2025-11-19T13:04:21.447Z"))
193
+ created: z.date().default(() => new Date("2025-11-21T07:50:18.931Z"))
194
194
  .transform(v => v.toISOString()),
195
195
  }).transform((v) => {
196
196
  return remap$(v, {
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
196
196
  file_name: z.string(),
197
197
  workspace_id: z.string(),
198
198
  created: z.string().datetime({ offset: true }).default(
199
- "2025-11-19T13:04:21.447Z",
199
+ "2025-11-21T07:50:18.931Z",
200
200
  ).transform(v => new Date(v)),
201
201
  }).transform((v) => {
202
202
  return remap$(v, {
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
229
229
  bytes: z.number(),
230
230
  fileName: z.string(),
231
231
  workspaceId: z.string(),
232
- created: z.date().default(() => new Date("2025-11-19T13:04:21.447Z"))
232
+ created: z.date().default(() => new Date("2025-11-21T07:50:18.931Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {
@@ -76,6 +76,10 @@ export type GetAgentTools = {
76
76
  */
77
77
  description?: string | undefined;
78
78
  requiresApproval?: boolean | undefined;
79
+ /**
80
+ * Nested tool ID for MCP tools (identifies specific tool within MCP server)
81
+ */
82
+ toolId?: string | undefined;
79
83
  conditions?: Array<GetAgentConditions> | undefined;
80
84
  /**
81
85
  * Tool execution timeout in seconds (default: 2 minutes, max: 10 minutes)
@@ -1073,6 +1077,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
1073
1077
  display_name: z.string().optional(),
1074
1078
  description: z.string().optional(),
1075
1079
  requires_approval: z.boolean().default(false),
1080
+ tool_id: z.string().optional(),
1076
1081
  conditions: z.array(z.lazy(() => GetAgentConditions$inboundSchema))
1077
1082
  .optional(),
1078
1083
  timeout: z.number().default(120),
@@ -1081,6 +1086,7 @@ export const GetAgentTools$inboundSchema: z.ZodType<
1081
1086
  "action_type": "actionType",
1082
1087
  "display_name": "displayName",
1083
1088
  "requires_approval": "requiresApproval",
1089
+ "tool_id": "toolId",
1084
1090
  });
1085
1091
  });
1086
1092
  /** @internal */
@@ -1091,6 +1097,7 @@ export type GetAgentTools$Outbound = {
1091
1097
  display_name?: string | undefined;
1092
1098
  description?: string | undefined;
1093
1099
  requires_approval: boolean;
1100
+ tool_id?: string | undefined;
1094
1101
  conditions?: Array<GetAgentConditions$Outbound> | undefined;
1095
1102
  timeout: number;
1096
1103
  };
@@ -1107,6 +1114,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
1107
1114
  displayName: z.string().optional(),
1108
1115
  description: z.string().optional(),
1109
1116
  requiresApproval: z.boolean().default(false),
1117
+ toolId: z.string().optional(),
1110
1118
  conditions: z.array(z.lazy(() => GetAgentConditions$outboundSchema))
1111
1119
  .optional(),
1112
1120
  timeout: z.number().default(120),
@@ -1115,6 +1123,7 @@ export const GetAgentTools$outboundSchema: z.ZodType<
1115
1123
  actionType: "action_type",
1116
1124
  displayName: "display_name",
1117
1125
  requiresApproval: "requires_approval",
1126
+ toolId: "tool_id",
1118
1127
  });
1119
1128
  });
1120
1129