@orq-ai/node 3.13.11 → 3.13.13

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 (157) hide show
  1. package/bin/mcp-server.js +266 -222
  2. package/bin/mcp-server.js.map +40 -40
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/lib/config.js.map +1 -1
  8. package/lib/env.d.ts.map +1 -1
  9. package/lib/env.js +18 -1
  10. package/lib/env.js.map +1 -1
  11. package/mcp-server/mcp-server.js +1 -1
  12. package/mcp-server/server.js +1 -1
  13. package/models/operations/createagent.d.ts +38 -0
  14. package/models/operations/createagent.d.ts.map +1 -1
  15. package/models/operations/createagent.js +35 -1
  16. package/models/operations/createagent.js.map +1 -1
  17. package/models/operations/createbudget.js +2 -2
  18. package/models/operations/createcontact.js +2 -2
  19. package/models/operations/createdataset.js +2 -2
  20. package/models/operations/createdatasetitem.js +2 -2
  21. package/models/operations/createdatasource.js +2 -2
  22. package/models/operations/createeval.js +28 -28
  23. package/models/operations/createtool.js +14 -14
  24. package/models/operations/duplicatetool.js +10 -10
  25. package/models/operations/fileget.js +2 -2
  26. package/models/operations/filelist.js +2 -2
  27. package/models/operations/fileupload.js +2 -2
  28. package/models/operations/getalltools.js +10 -10
  29. package/models/operations/getbudget.js +2 -2
  30. package/models/operations/getevals.js +28 -28
  31. package/models/operations/listbudgets.js +2 -2
  32. package/models/operations/listcontacts.js +2 -2
  33. package/models/operations/listdatasetdatapoints.js +2 -2
  34. package/models/operations/listdatasets.js +2 -2
  35. package/models/operations/listdatasources.js +2 -2
  36. package/models/operations/retrievecontact.js +2 -2
  37. package/models/operations/retrievedatapoint.js +2 -2
  38. package/models/operations/retrievedataset.js +2 -2
  39. package/models/operations/retrievedatasource.js +2 -2
  40. package/models/operations/retrievetool.js +10 -10
  41. package/models/operations/runagent.d.ts +15 -15
  42. package/models/operations/runagent.d.ts.map +1 -1
  43. package/models/operations/runagent.js +20 -18
  44. package/models/operations/runagent.js.map +1 -1
  45. package/models/operations/updateagent.d.ts +53 -18
  46. package/models/operations/updateagent.d.ts.map +1 -1
  47. package/models/operations/updateagent.js +54 -19
  48. package/models/operations/updateagent.js.map +1 -1
  49. package/models/operations/updatebudget.js +2 -2
  50. package/models/operations/updatecontact.js +2 -2
  51. package/models/operations/updatedatapoint.js +2 -2
  52. package/models/operations/updatedataset.js +2 -2
  53. package/models/operations/updatedatasource.js +2 -2
  54. package/models/operations/updateeval.js +28 -28
  55. package/models/operations/updatetool.js +14 -14
  56. package/package.json +1 -1
  57. package/packages/orq-rc/docs/sdks/prompts/README.md +47 -13
  58. package/packages/orq-rc/docs/sdks/tools/README.md +7 -3
  59. package/packages/orq-rc/examples/package-lock.json +1 -1
  60. package/packages/orq-rc/jsr.json +1 -1
  61. package/packages/orq-rc/package-lock.json +2 -2
  62. package/packages/orq-rc/package.json +1 -1
  63. package/packages/orq-rc/src/funcs/promptsCreate.ts +4 -4
  64. package/packages/orq-rc/src/funcs/promptsRetrieve.ts +4 -4
  65. package/packages/orq-rc/src/funcs/promptsUpdate.ts +4 -4
  66. package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
  67. package/packages/orq-rc/src/lib/config.ts +3 -3
  68. package/packages/orq-rc/src/lib/env.ts +20 -3
  69. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  70. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  71. package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +1 -1
  72. package/packages/orq-rc/src/models/components/deployments.ts +6 -6
  73. package/packages/orq-rc/src/models/operations/createagent.ts +73 -0
  74. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  75. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +14 -14
  78. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
  80. package/packages/orq-rc/src/models/operations/creatememorystore.ts +108 -40
  81. package/packages/orq-rc/src/models/operations/createprompt.ts +4603 -1478
  82. package/packages/orq-rc/src/models/operations/createtool.ts +10 -10
  83. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +6 -6
  84. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -6
  85. package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -6
  86. package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
  87. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  88. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +56 -20
  91. package/packages/orq-rc/src/models/operations/getallprompts.ts +48 -52
  92. package/packages/orq-rc/src/models/operations/getalltools.ts +14 -14
  93. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  95. package/packages/orq-rc/src/models/operations/getoneprompt.ts +22 -22
  96. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +11 -11
  99. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +11 -11
  103. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  104. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/retrievememorystore.ts +56 -20
  106. package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
  107. package/packages/orq-rc/src/models/operations/runagent.ts +30 -24
  108. package/packages/orq-rc/src/models/operations/updateagent.ts +110 -28
  109. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  110. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  111. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +14 -14
  112. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  113. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  114. package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
  115. package/packages/orq-rc/src/models/operations/updatememorystore.ts +52 -20
  116. package/packages/orq-rc/src/models/operations/updateprompt.ts +5018 -1772
  117. package/packages/orq-rc/src/models/operations/updatetool.ts +10 -10
  118. package/packages/orq-rc/src/sdk/prompts.ts +3 -3
  119. package/packages/orq-rc/src/sdk/tools.ts +1 -1
  120. package/src/lib/config.ts +3 -3
  121. package/src/lib/env.ts +20 -3
  122. package/src/mcp-server/mcp-server.ts +1 -1
  123. package/src/mcp-server/server.ts +1 -1
  124. package/src/models/operations/createagent.ts +73 -0
  125. package/src/models/operations/createbudget.ts +2 -2
  126. package/src/models/operations/createcontact.ts +2 -2
  127. package/src/models/operations/createdataset.ts +2 -2
  128. package/src/models/operations/createdatasetitem.ts +2 -2
  129. package/src/models/operations/createdatasource.ts +2 -2
  130. package/src/models/operations/createeval.ts +28 -28
  131. package/src/models/operations/createtool.ts +14 -14
  132. package/src/models/operations/duplicatetool.ts +10 -10
  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/getalltools.ts +10 -10
  137. package/src/models/operations/getbudget.ts +2 -2
  138. package/src/models/operations/getevals.ts +28 -28
  139. package/src/models/operations/listbudgets.ts +2 -2
  140. package/src/models/operations/listcontacts.ts +2 -2
  141. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  142. package/src/models/operations/listdatasets.ts +2 -2
  143. package/src/models/operations/listdatasources.ts +2 -2
  144. package/src/models/operations/retrievecontact.ts +2 -2
  145. package/src/models/operations/retrievedatapoint.ts +2 -2
  146. package/src/models/operations/retrievedataset.ts +2 -2
  147. package/src/models/operations/retrievedatasource.ts +2 -2
  148. package/src/models/operations/retrievetool.ts +10 -10
  149. package/src/models/operations/runagent.ts +30 -24
  150. package/src/models/operations/updateagent.ts +110 -28
  151. package/src/models/operations/updatebudget.ts +2 -2
  152. package/src/models/operations/updatecontact.ts +2 -2
  153. package/src/models/operations/updatedatapoint.ts +2 -2
  154. package/src/models/operations/updatedataset.ts +2 -2
  155. package/src/models/operations/updatedatasource.ts +2 -2
  156. package/src/models/operations/updateeval.ts +28 -28
  157. package/src/models/operations/updatetool.ts +14 -14
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-10-16T07:43:55.477Z",
204
+ "2025-10-21T15:19:58.203Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-10-16T07:43:55.477Z"))
244
+ updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01K7NZKQ36M337VSACDTCZVQ1Q"),
175
+ _id: z.string().default("01K83NPC02KAQ1NCCWJRZD8XCC"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01K7NZKQ36M337VSACDTCZVQ1Q"),
219
+ id: z.string().default("01K83NPC02KAQ1NCCWJRZD8XCC"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -750,7 +750,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
750
750
  z.ZodTypeDef,
751
751
  unknown
752
752
  > = z.object({
753
- _id: z.string().default("01K7NZKQ75ZMW80GZ5T5JD31BK"),
753
+ _id: z.string().default("01K83NPC3ZCE6A8SJYB68M3G4M"),
754
754
  path: z.string(),
755
755
  key: z.string(),
756
756
  display_name: z.string().optional(),
@@ -806,7 +806,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
806
806
  z.ZodTypeDef,
807
807
  RetrieveToolResponseBody5
808
808
  > = z.object({
809
- id: z.string().default("01K7NZKQ75ZMW80GZ5T5JD31BK"),
809
+ id: z.string().default("01K83NPC3ZCE6A8SJYB68M3G4M"),
810
810
  path: z.string(),
811
811
  key: z.string(),
812
812
  displayName: z.string().optional(),
@@ -1190,7 +1190,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
1190
1190
  z.ZodTypeDef,
1191
1191
  unknown
1192
1192
  > = z.object({
1193
- _id: z.string().default("01K7NZKQ74AHSMYMYG08S7T2P9"),
1193
+ _id: z.string().default("01K83NPC3Z9QPJYHDMJN9C9TAW"),
1194
1194
  path: z.string(),
1195
1195
  key: z.string(),
1196
1196
  display_name: z.string().optional(),
@@ -1244,7 +1244,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
1244
1244
  z.ZodTypeDef,
1245
1245
  RetrieveToolResponseBody4
1246
1246
  > = z.object({
1247
- id: z.string().default("01K7NZKQ74AHSMYMYG08S7T2P9"),
1247
+ id: z.string().default("01K83NPC3Z9QPJYHDMJN9C9TAW"),
1248
1248
  path: z.string(),
1249
1249
  key: z.string(),
1250
1250
  displayName: z.string().optional(),
@@ -1670,7 +1670,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
1670
1670
  z.ZodTypeDef,
1671
1671
  unknown
1672
1672
  > = z.object({
1673
- _id: z.string().default("01K7NZKQ74FWRN7867F9J8Y4YE"),
1673
+ _id: z.string().default("01K83NPC3Y27GKB546C8YQ6C8S"),
1674
1674
  path: z.string(),
1675
1675
  key: z.string(),
1676
1676
  display_name: z.string().optional(),
@@ -1724,7 +1724,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
1724
1724
  z.ZodTypeDef,
1725
1725
  RetrieveToolResponseBody3
1726
1726
  > = z.object({
1727
- id: z.string().default("01K7NZKQ74FWRN7867F9J8Y4YE"),
1727
+ id: z.string().default("01K83NPC3Y27GKB546C8YQ6C8S"),
1728
1728
  path: z.string(),
1729
1729
  key: z.string(),
1730
1730
  displayName: z.string().optional(),
@@ -1902,7 +1902,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
1902
1902
  z.ZodTypeDef,
1903
1903
  unknown
1904
1904
  > = z.object({
1905
- _id: z.string().default("01K7NZKQ749FSMYR04Q9WDFEXB"),
1905
+ _id: z.string().default("01K83NPC3YB6V2ZTFNWSNBSZ04"),
1906
1906
  path: z.string(),
1907
1907
  key: z.string(),
1908
1908
  display_name: z.string().optional(),
@@ -1955,7 +1955,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
1955
1955
  z.ZodTypeDef,
1956
1956
  RetrieveToolResponseBody2
1957
1957
  > = z.object({
1958
- id: z.string().default("01K7NZKQ749FSMYR04Q9WDFEXB"),
1958
+ id: z.string().default("01K83NPC3YB6V2ZTFNWSNBSZ04"),
1959
1959
  path: z.string(),
1960
1960
  key: z.string(),
1961
1961
  displayName: z.string().optional(),
@@ -2127,7 +2127,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
2127
2127
  z.ZodTypeDef,
2128
2128
  unknown
2129
2129
  > = z.object({
2130
- _id: z.string().default("01K7NZKQ6W7SPE4FA99BYS1Q54"),
2130
+ _id: z.string().default("01K83NPC3YWM2TB6DE9RSEAEP2"),
2131
2131
  path: z.string(),
2132
2132
  key: z.string(),
2133
2133
  display_name: z.string().optional(),
@@ -2179,7 +2179,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
2179
2179
  z.ZodTypeDef,
2180
2180
  RetrieveToolResponseBody1
2181
2181
  > = z.object({
2182
- id: z.string().default("01K7NZKQ6W7SPE4FA99BYS1Q54"),
2182
+ id: z.string().default("01K83NPC3YWM2TB6DE9RSEAEP2"),
2183
2183
  path: z.string(),
2184
2184
  key: z.string(),
2185
2185
  displayName: z.string().optional(),
@@ -219,7 +219,7 @@ export type RunAgentKnowledgeBases = {
219
219
  knowledgeId: string;
220
220
  };
221
221
 
222
- export type TeamOfAgents = {
222
+ export type RunAgentTeamOfAgents = {
223
223
  /**
224
224
  * The unique key of the agent within the workspace
225
225
  */
@@ -779,7 +779,7 @@ export type RunAgentRequestBody = {
779
779
  /**
780
780
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
781
781
  */
782
- teamOfAgents?: Array<TeamOfAgents> | undefined;
782
+ teamOfAgents?: Array<RunAgentTeamOfAgents> | undefined;
783
783
  settings: RunAgentSettings;
784
784
  /**
785
785
  * Optional metadata for the agent run as key-value pairs that will be included in traces
@@ -1816,8 +1816,8 @@ export function runAgentKnowledgeBasesFromJSON(
1816
1816
  }
1817
1817
 
1818
1818
  /** @internal */
1819
- export const TeamOfAgents$inboundSchema: z.ZodType<
1820
- TeamOfAgents,
1819
+ export const RunAgentTeamOfAgents$inboundSchema: z.ZodType<
1820
+ RunAgentTeamOfAgents,
1821
1821
  z.ZodTypeDef,
1822
1822
  unknown
1823
1823
  > = z.object({
@@ -1826,16 +1826,16 @@ export const TeamOfAgents$inboundSchema: z.ZodType<
1826
1826
  });
1827
1827
 
1828
1828
  /** @internal */
1829
- export type TeamOfAgents$Outbound = {
1829
+ export type RunAgentTeamOfAgents$Outbound = {
1830
1830
  key: string;
1831
1831
  role?: string | undefined;
1832
1832
  };
1833
1833
 
1834
1834
  /** @internal */
1835
- export const TeamOfAgents$outboundSchema: z.ZodType<
1836
- TeamOfAgents$Outbound,
1835
+ export const RunAgentTeamOfAgents$outboundSchema: z.ZodType<
1836
+ RunAgentTeamOfAgents$Outbound,
1837
1837
  z.ZodTypeDef,
1838
- TeamOfAgents
1838
+ RunAgentTeamOfAgents
1839
1839
  > = z.object({
1840
1840
  key: z.string(),
1841
1841
  role: z.string().optional(),
@@ -1845,26 +1845,30 @@ export const TeamOfAgents$outboundSchema: z.ZodType<
1845
1845
  * @internal
1846
1846
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1847
1847
  */
1848
- export namespace TeamOfAgents$ {
1849
- /** @deprecated use `TeamOfAgents$inboundSchema` instead. */
1850
- export const inboundSchema = TeamOfAgents$inboundSchema;
1851
- /** @deprecated use `TeamOfAgents$outboundSchema` instead. */
1852
- export const outboundSchema = TeamOfAgents$outboundSchema;
1853
- /** @deprecated use `TeamOfAgents$Outbound` instead. */
1854
- export type Outbound = TeamOfAgents$Outbound;
1848
+ export namespace RunAgentTeamOfAgents$ {
1849
+ /** @deprecated use `RunAgentTeamOfAgents$inboundSchema` instead. */
1850
+ export const inboundSchema = RunAgentTeamOfAgents$inboundSchema;
1851
+ /** @deprecated use `RunAgentTeamOfAgents$outboundSchema` instead. */
1852
+ export const outboundSchema = RunAgentTeamOfAgents$outboundSchema;
1853
+ /** @deprecated use `RunAgentTeamOfAgents$Outbound` instead. */
1854
+ export type Outbound = RunAgentTeamOfAgents$Outbound;
1855
1855
  }
1856
1856
 
1857
- export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
1858
- return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
1857
+ export function runAgentTeamOfAgentsToJSON(
1858
+ runAgentTeamOfAgents: RunAgentTeamOfAgents,
1859
+ ): string {
1860
+ return JSON.stringify(
1861
+ RunAgentTeamOfAgents$outboundSchema.parse(runAgentTeamOfAgents),
1862
+ );
1859
1863
  }
1860
1864
 
1861
- export function teamOfAgentsFromJSON(
1865
+ export function runAgentTeamOfAgentsFromJSON(
1862
1866
  jsonString: string,
1863
- ): SafeParseResult<TeamOfAgents, SDKValidationError> {
1867
+ ): SafeParseResult<RunAgentTeamOfAgents, SDKValidationError> {
1864
1868
  return safeParse(
1865
1869
  jsonString,
1866
- (x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1867
- `Failed to parse 'TeamOfAgents' from JSON`,
1870
+ (x) => RunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1871
+ `Failed to parse 'RunAgentTeamOfAgents' from JSON`,
1868
1872
  );
1869
1873
  }
1870
1874
 
@@ -3953,7 +3957,8 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3953
3957
  memory_stores: z.array(z.string()).optional(),
3954
3958
  knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
3955
3959
  .optional(),
3956
- team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
3960
+ team_of_agents: z.array(z.lazy(() => RunAgentTeamOfAgents$inboundSchema))
3961
+ .optional(),
3957
3962
  settings: z.lazy(() => RunAgentSettings$inboundSchema),
3958
3963
  metadata: z.record(z.any()).optional(),
3959
3964
  }).transform((v) => {
@@ -3985,7 +3990,7 @@ export type RunAgentRequestBody$Outbound = {
3985
3990
  system_prompt?: string | undefined;
3986
3991
  memory_stores?: Array<string> | undefined;
3987
3992
  knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
3988
- team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
3993
+ team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
3989
3994
  settings: RunAgentSettings$Outbound;
3990
3995
  metadata?: { [k: string]: any } | undefined;
3991
3996
  };
@@ -4013,7 +4018,8 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4013
4018
  memoryStores: z.array(z.string()).optional(),
4014
4019
  knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4015
4020
  .optional(),
4016
- teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
4021
+ teamOfAgents: z.array(z.lazy(() => RunAgentTeamOfAgents$outboundSchema))
4022
+ .optional(),
4017
4023
  settings: z.lazy(() => RunAgentSettings$outboundSchema),
4018
4024
  metadata: z.record(z.any()).optional(),
4019
4025
  }).transform((v) => {
@@ -413,9 +413,17 @@ export type UpdateAgentKnowledgeBases = {
413
413
  knowledgeId: string;
414
414
  };
415
415
 
416
- /**
417
- * Request body for updating an existing agent via the API. Uses simplified tool input format.
418
- */
416
+ export type UpdateAgentTeamOfAgents = {
417
+ /**
418
+ * The unique key of the agent within the workspace
419
+ */
420
+ key: string;
421
+ /**
422
+ * The role of the agent in this context. This is used to give extra information to the leader to help it decide which agent to hand off to.
423
+ */
424
+ role?: string | undefined;
425
+ };
426
+
419
427
  export type UpdateAgentRequestBody = {
420
428
  key?: string | undefined;
421
429
  projectId?: string | undefined;
@@ -441,6 +449,10 @@ export type UpdateAgentRequestBody = {
441
449
  path?: string | undefined;
442
450
  memoryStores?: Array<string> | undefined;
443
451
  knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
452
+ /**
453
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
454
+ */
455
+ teamOfAgents?: Array<UpdateAgentTeamOfAgents> | undefined;
444
456
  };
445
457
 
446
458
  export type UpdateAgentRequest = {
@@ -557,7 +569,7 @@ export type UpdateAgentModel = {
557
569
  temperature?: number | undefined;
558
570
  };
559
571
 
560
- export type UpdateAgentTeamOfAgents = {
572
+ export type UpdateAgentAgentsTeamOfAgents = {
561
573
  /**
562
574
  * The unique key of the agent within the workspace
563
575
  */
@@ -621,7 +633,7 @@ export type UpdateAgentResponseBody = {
621
633
  /**
622
634
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
623
635
  */
624
- teamOfAgents: Array<UpdateAgentTeamOfAgents>;
636
+ teamOfAgents: Array<UpdateAgentAgentsTeamOfAgents>;
625
637
  metrics?: UpdateAgentMetrics | undefined;
626
638
  /**
627
639
  * Extracted variables from agent instructions
@@ -2347,6 +2359,63 @@ export function updateAgentKnowledgeBasesFromJSON(
2347
2359
  );
2348
2360
  }
2349
2361
 
2362
+ /** @internal */
2363
+ export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2364
+ UpdateAgentTeamOfAgents,
2365
+ z.ZodTypeDef,
2366
+ unknown
2367
+ > = z.object({
2368
+ key: z.string(),
2369
+ role: z.string().optional(),
2370
+ });
2371
+
2372
+ /** @internal */
2373
+ export type UpdateAgentTeamOfAgents$Outbound = {
2374
+ key: string;
2375
+ role?: string | undefined;
2376
+ };
2377
+
2378
+ /** @internal */
2379
+ export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2380
+ UpdateAgentTeamOfAgents$Outbound,
2381
+ z.ZodTypeDef,
2382
+ UpdateAgentTeamOfAgents
2383
+ > = z.object({
2384
+ key: z.string(),
2385
+ role: z.string().optional(),
2386
+ });
2387
+
2388
+ /**
2389
+ * @internal
2390
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2391
+ */
2392
+ export namespace UpdateAgentTeamOfAgents$ {
2393
+ /** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
2394
+ export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
2395
+ /** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
2396
+ export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
2397
+ /** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
2398
+ export type Outbound = UpdateAgentTeamOfAgents$Outbound;
2399
+ }
2400
+
2401
+ export function updateAgentTeamOfAgentsToJSON(
2402
+ updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
2403
+ ): string {
2404
+ return JSON.stringify(
2405
+ UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
2406
+ );
2407
+ }
2408
+
2409
+ export function updateAgentTeamOfAgentsFromJSON(
2410
+ jsonString: string,
2411
+ ): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
2412
+ return safeParse(
2413
+ jsonString,
2414
+ (x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2415
+ `Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
2416
+ );
2417
+ }
2418
+
2350
2419
  /** @internal */
2351
2420
  export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2352
2421
  UpdateAgentRequestBody,
@@ -2367,6 +2436,8 @@ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2367
2436
  knowledge_bases: z.array(
2368
2437
  z.lazy(() => UpdateAgentKnowledgeBases$inboundSchema),
2369
2438
  ).optional(),
2439
+ team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema))
2440
+ .optional(),
2370
2441
  }).transform((v) => {
2371
2442
  return remap$(v, {
2372
2443
  "project_id": "projectId",
@@ -2374,6 +2445,7 @@ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2374
2445
  "fallback_models": "fallbackModels",
2375
2446
  "memory_stores": "memoryStores",
2376
2447
  "knowledge_bases": "knowledgeBases",
2448
+ "team_of_agents": "teamOfAgents",
2377
2449
  });
2378
2450
  });
2379
2451
 
@@ -2391,6 +2463,7 @@ export type UpdateAgentRequestBody$Outbound = {
2391
2463
  path?: string | undefined;
2392
2464
  memory_stores?: Array<string> | undefined;
2393
2465
  knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
2466
+ team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
2394
2467
  };
2395
2468
 
2396
2469
  /** @internal */
@@ -2413,6 +2486,8 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
2413
2486
  knowledgeBases: z.array(
2414
2487
  z.lazy(() => UpdateAgentKnowledgeBases$outboundSchema),
2415
2488
  ).optional(),
2489
+ teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
2490
+ .optional(),
2416
2491
  }).transform((v) => {
2417
2492
  return remap$(v, {
2418
2493
  projectId: "project_id",
@@ -2420,6 +2495,7 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
2420
2495
  fallbackModels: "fallback_models",
2421
2496
  memoryStores: "memory_stores",
2422
2497
  knowledgeBases: "knowledge_bases",
2498
+ teamOfAgents: "team_of_agents",
2423
2499
  });
2424
2500
  });
2425
2501
 
@@ -2871,8 +2947,8 @@ export function updateAgentModelFromJSON(
2871
2947
  }
2872
2948
 
2873
2949
  /** @internal */
2874
- export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2875
- UpdateAgentTeamOfAgents,
2950
+ export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
2951
+ UpdateAgentAgentsTeamOfAgents,
2876
2952
  z.ZodTypeDef,
2877
2953
  unknown
2878
2954
  > = z.object({
@@ -2881,16 +2957,16 @@ export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2881
2957
  });
2882
2958
 
2883
2959
  /** @internal */
2884
- export type UpdateAgentTeamOfAgents$Outbound = {
2960
+ export type UpdateAgentAgentsTeamOfAgents$Outbound = {
2885
2961
  key: string;
2886
2962
  role?: string | undefined;
2887
2963
  };
2888
2964
 
2889
2965
  /** @internal */
2890
- export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2891
- UpdateAgentTeamOfAgents$Outbound,
2966
+ export const UpdateAgentAgentsTeamOfAgents$outboundSchema: z.ZodType<
2967
+ UpdateAgentAgentsTeamOfAgents$Outbound,
2892
2968
  z.ZodTypeDef,
2893
- UpdateAgentTeamOfAgents
2969
+ UpdateAgentAgentsTeamOfAgents
2894
2970
  > = z.object({
2895
2971
  key: z.string(),
2896
2972
  role: z.string().optional(),
@@ -2900,30 +2976,32 @@ export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2900
2976
  * @internal
2901
2977
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2902
2978
  */
2903
- export namespace UpdateAgentTeamOfAgents$ {
2904
- /** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
2905
- export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
2906
- /** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
2907
- export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
2908
- /** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
2909
- export type Outbound = UpdateAgentTeamOfAgents$Outbound;
2979
+ export namespace UpdateAgentAgentsTeamOfAgents$ {
2980
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$inboundSchema` instead. */
2981
+ export const inboundSchema = UpdateAgentAgentsTeamOfAgents$inboundSchema;
2982
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$outboundSchema` instead. */
2983
+ export const outboundSchema = UpdateAgentAgentsTeamOfAgents$outboundSchema;
2984
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$Outbound` instead. */
2985
+ export type Outbound = UpdateAgentAgentsTeamOfAgents$Outbound;
2910
2986
  }
2911
2987
 
2912
- export function updateAgentTeamOfAgentsToJSON(
2913
- updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
2988
+ export function updateAgentAgentsTeamOfAgentsToJSON(
2989
+ updateAgentAgentsTeamOfAgents: UpdateAgentAgentsTeamOfAgents,
2914
2990
  ): string {
2915
2991
  return JSON.stringify(
2916
- UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
2992
+ UpdateAgentAgentsTeamOfAgents$outboundSchema.parse(
2993
+ updateAgentAgentsTeamOfAgents,
2994
+ ),
2917
2995
  );
2918
2996
  }
2919
2997
 
2920
- export function updateAgentTeamOfAgentsFromJSON(
2998
+ export function updateAgentAgentsTeamOfAgentsFromJSON(
2921
2999
  jsonString: string,
2922
- ): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
3000
+ ): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
2923
3001
  return safeParse(
2924
3002
  jsonString,
2925
- (x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2926
- `Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
3003
+ (x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
3004
+ `Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
2927
3005
  );
2928
3006
  }
2929
3007
 
@@ -3098,7 +3176,9 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
3098
3176
  version_hash: z.string().optional(),
3099
3177
  path: z.string(),
3100
3178
  memory_stores: z.array(z.string()),
3101
- team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema)),
3179
+ team_of_agents: z.array(
3180
+ z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
3181
+ ),
3102
3182
  metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
3103
3183
  variables: z.record(z.any()).optional(),
3104
3184
  knowledge_bases: z.array(
@@ -3141,7 +3221,7 @@ export type UpdateAgentResponseBody$Outbound = {
3141
3221
  version_hash?: string | undefined;
3142
3222
  path: string;
3143
3223
  memory_stores: Array<string>;
3144
- team_of_agents: Array<UpdateAgentTeamOfAgents$Outbound>;
3224
+ team_of_agents: Array<UpdateAgentAgentsTeamOfAgents$Outbound>;
3145
3225
  metrics?: UpdateAgentMetrics$Outbound | undefined;
3146
3226
  variables?: { [k: string]: any } | undefined;
3147
3227
  knowledge_bases?: Array<UpdateAgentAgentsKnowledgeBases$Outbound> | undefined;
@@ -3172,7 +3252,9 @@ export const UpdateAgentResponseBody$outboundSchema: z.ZodType<
3172
3252
  versionHash: z.string().optional(),
3173
3253
  path: z.string(),
3174
3254
  memoryStores: z.array(z.string()),
3175
- teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema)),
3255
+ teamOfAgents: z.array(
3256
+ z.lazy(() => UpdateAgentAgentsTeamOfAgents$outboundSchema),
3257
+ ),
3176
3258
  metrics: z.lazy(() => UpdateAgentMetrics$outboundSchema).optional(),
3177
3259
  variables: z.record(z.any()).optional(),
3178
3260
  knowledgeBases: z.array(
@@ -538,7 +538,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
538
538
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
539
539
  .optional(),
540
540
  updated: z.string().datetime({ offset: true }).default(
541
- "2025-10-16T07:43:55.477Z",
541
+ "2025-10-21T15:19:58.203Z",
542
542
  ).transform(v => new Date(v)),
543
543
  }).transform((v) => {
544
544
  return remap$(v, {
@@ -573,7 +573,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
573
573
  isActive: z.boolean(),
574
574
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
575
575
  created: z.date().transform(v => v.toISOString()).optional(),
576
- updated: z.date().default(() => new Date("2025-10-16T07:43:55.477Z"))
576
+ updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
577
577
  .transform(v => v.toISOString()),
578
578
  }).transform((v) => {
579
579
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
244
244
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
245
245
  .optional(),
246
246
  updated: z.string().datetime({ offset: true }).default(
247
- "2025-10-16T07:43:55.477Z",
247
+ "2025-10-21T15:19:58.203Z",
248
248
  ).transform(v => new Date(v)),
249
249
  }).transform((v) => {
250
250
  return remap$(v, {
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
282
282
  tags: z.array(z.string()).optional(),
283
283
  metadata: z.record(z.any()).optional(),
284
284
  created: z.date().transform(v => v.toISOString()).optional(),
285
- updated: z.date().default(() => new Date("2025-10-16T07:43:55.477Z"))
285
+ updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -6018,7 +6018,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
6018
6018
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6019
6019
  .optional(),
6020
6020
  updated: z.string().datetime({ offset: true }).default(
6021
- "2025-10-16T07:43:55.477Z",
6021
+ "2025-10-21T15:19:58.203Z",
6022
6022
  ).transform(v => new Date(v)),
6023
6023
  }).transform((v) => {
6024
6024
  return remap$(v, {
@@ -6080,7 +6080,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
6080
6080
  createdById: z.string().optional(),
6081
6081
  updatedById: z.string().optional(),
6082
6082
  created: z.date().transform(v => v.toISOString()).optional(),
6083
- updated: z.date().default(() => new Date("2025-10-16T07:43:55.477Z"))
6083
+ updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
6084
6084
  .transform(v => v.toISOString()),
6085
6085
  }).transform((v) => {
6086
6086
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-10-16T07:43:55.477Z",
305
+ "2025-10-21T15:19:58.203Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-10-16T07:43:55.477Z"))
350
+ updated: z.date().default(() => new Date("2025-10-21T15:19:58.203Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01K7NZKQ3728RP91KYMNXV1GGN"),
247
+ _id: z.string().default("01K83NPC03MC3HJKZQZ2VFBZQM"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01K7NZKQ3728RP91KYMNXV1GGN"),
291
+ id: z.string().default("01K83NPC03MC3HJKZQZ2VFBZQM"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,