@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
@@ -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
  */
@@ -785,7 +785,7 @@ export type RunAgentRequestBody = {
785
785
  /**
786
786
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
787
787
  */
788
- teamOfAgents?: Array<TeamOfAgents> | undefined;
788
+ teamOfAgents?: Array<RunAgentTeamOfAgents> | undefined;
789
789
  settings: RunAgentSettings;
790
790
  /**
791
791
  * Optional metadata for the agent run as key-value pairs that will be included in traces
@@ -1822,8 +1822,8 @@ export function runAgentKnowledgeBasesFromJSON(
1822
1822
  }
1823
1823
 
1824
1824
  /** @internal */
1825
- export const TeamOfAgents$inboundSchema: z.ZodType<
1826
- TeamOfAgents,
1825
+ export const RunAgentTeamOfAgents$inboundSchema: z.ZodType<
1826
+ RunAgentTeamOfAgents,
1827
1827
  z.ZodTypeDef,
1828
1828
  unknown
1829
1829
  > = z.object({
@@ -1832,16 +1832,16 @@ export const TeamOfAgents$inboundSchema: z.ZodType<
1832
1832
  });
1833
1833
 
1834
1834
  /** @internal */
1835
- export type TeamOfAgents$Outbound = {
1835
+ export type RunAgentTeamOfAgents$Outbound = {
1836
1836
  key: string;
1837
1837
  role?: string | undefined;
1838
1838
  };
1839
1839
 
1840
1840
  /** @internal */
1841
- export const TeamOfAgents$outboundSchema: z.ZodType<
1842
- TeamOfAgents$Outbound,
1841
+ export const RunAgentTeamOfAgents$outboundSchema: z.ZodType<
1842
+ RunAgentTeamOfAgents$Outbound,
1843
1843
  z.ZodTypeDef,
1844
- TeamOfAgents
1844
+ RunAgentTeamOfAgents
1845
1845
  > = z.object({
1846
1846
  key: z.string(),
1847
1847
  role: z.string().optional(),
@@ -1851,26 +1851,30 @@ export const TeamOfAgents$outboundSchema: z.ZodType<
1851
1851
  * @internal
1852
1852
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1853
1853
  */
1854
- export namespace TeamOfAgents$ {
1855
- /** @deprecated use `TeamOfAgents$inboundSchema` instead. */
1856
- export const inboundSchema = TeamOfAgents$inboundSchema;
1857
- /** @deprecated use `TeamOfAgents$outboundSchema` instead. */
1858
- export const outboundSchema = TeamOfAgents$outboundSchema;
1859
- /** @deprecated use `TeamOfAgents$Outbound` instead. */
1860
- export type Outbound = TeamOfAgents$Outbound;
1854
+ export namespace RunAgentTeamOfAgents$ {
1855
+ /** @deprecated use `RunAgentTeamOfAgents$inboundSchema` instead. */
1856
+ export const inboundSchema = RunAgentTeamOfAgents$inboundSchema;
1857
+ /** @deprecated use `RunAgentTeamOfAgents$outboundSchema` instead. */
1858
+ export const outboundSchema = RunAgentTeamOfAgents$outboundSchema;
1859
+ /** @deprecated use `RunAgentTeamOfAgents$Outbound` instead. */
1860
+ export type Outbound = RunAgentTeamOfAgents$Outbound;
1861
1861
  }
1862
1862
 
1863
- export function teamOfAgentsToJSON(teamOfAgents: TeamOfAgents): string {
1864
- return JSON.stringify(TeamOfAgents$outboundSchema.parse(teamOfAgents));
1863
+ export function runAgentTeamOfAgentsToJSON(
1864
+ runAgentTeamOfAgents: RunAgentTeamOfAgents,
1865
+ ): string {
1866
+ return JSON.stringify(
1867
+ RunAgentTeamOfAgents$outboundSchema.parse(runAgentTeamOfAgents),
1868
+ );
1865
1869
  }
1866
1870
 
1867
- export function teamOfAgentsFromJSON(
1871
+ export function runAgentTeamOfAgentsFromJSON(
1868
1872
  jsonString: string,
1869
- ): SafeParseResult<TeamOfAgents, SDKValidationError> {
1873
+ ): SafeParseResult<RunAgentTeamOfAgents, SDKValidationError> {
1870
1874
  return safeParse(
1871
1875
  jsonString,
1872
- (x) => TeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1873
- `Failed to parse 'TeamOfAgents' from JSON`,
1876
+ (x) => RunAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
1877
+ `Failed to parse 'RunAgentTeamOfAgents' from JSON`,
1874
1878
  );
1875
1879
  }
1876
1880
 
@@ -3959,7 +3963,8 @@ export const RunAgentRequestBody$inboundSchema: z.ZodType<
3959
3963
  memory_stores: z.array(z.string()).optional(),
3960
3964
  knowledge_bases: z.array(z.lazy(() => RunAgentKnowledgeBases$inboundSchema))
3961
3965
  .optional(),
3962
- team_of_agents: z.array(z.lazy(() => TeamOfAgents$inboundSchema)).optional(),
3966
+ team_of_agents: z.array(z.lazy(() => RunAgentTeamOfAgents$inboundSchema))
3967
+ .optional(),
3963
3968
  settings: z.lazy(() => RunAgentSettings$inboundSchema),
3964
3969
  metadata: z.record(z.any()).optional(),
3965
3970
  }).transform((v) => {
@@ -3991,7 +3996,7 @@ export type RunAgentRequestBody$Outbound = {
3991
3996
  system_prompt?: string | undefined;
3992
3997
  memory_stores?: Array<string> | undefined;
3993
3998
  knowledge_bases?: Array<RunAgentKnowledgeBases$Outbound> | undefined;
3994
- team_of_agents?: Array<TeamOfAgents$Outbound> | undefined;
3999
+ team_of_agents?: Array<RunAgentTeamOfAgents$Outbound> | undefined;
3995
4000
  settings: RunAgentSettings$Outbound;
3996
4001
  metadata?: { [k: string]: any } | undefined;
3997
4002
  };
@@ -4019,7 +4024,8 @@ export const RunAgentRequestBody$outboundSchema: z.ZodType<
4019
4024
  memoryStores: z.array(z.string()).optional(),
4020
4025
  knowledgeBases: z.array(z.lazy(() => RunAgentKnowledgeBases$outboundSchema))
4021
4026
  .optional(),
4022
- teamOfAgents: z.array(z.lazy(() => TeamOfAgents$outboundSchema)).optional(),
4027
+ teamOfAgents: z.array(z.lazy(() => RunAgentTeamOfAgents$outboundSchema))
4028
+ .optional(),
4023
4029
  settings: z.lazy(() => RunAgentSettings$outboundSchema),
4024
4030
  metadata: z.record(z.any()).optional(),
4025
4031
  }).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;
@@ -447,6 +455,10 @@ export type UpdateAgentRequestBody = {
447
455
  path?: string | undefined;
448
456
  memoryStores?: Array<string> | undefined;
449
457
  knowledgeBases?: Array<UpdateAgentKnowledgeBases> | undefined;
458
+ /**
459
+ * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
460
+ */
461
+ teamOfAgents?: Array<UpdateAgentTeamOfAgents> | undefined;
450
462
  };
451
463
 
452
464
  export type UpdateAgentRequest = {
@@ -563,7 +575,7 @@ export type UpdateAgentModel = {
563
575
  temperature?: number | undefined;
564
576
  };
565
577
 
566
- export type UpdateAgentTeamOfAgents = {
578
+ export type UpdateAgentAgentsTeamOfAgents = {
567
579
  /**
568
580
  * The unique key of the agent within the workspace
569
581
  */
@@ -633,7 +645,7 @@ export type UpdateAgentResponseBody = {
633
645
  /**
634
646
  * The agents that are accessible to this orchestrator. The main agent can hand off to these agents to perform tasks.
635
647
  */
636
- teamOfAgents: Array<UpdateAgentTeamOfAgents>;
648
+ teamOfAgents: Array<UpdateAgentAgentsTeamOfAgents>;
637
649
  metrics?: UpdateAgentMetrics | undefined;
638
650
  /**
639
651
  * Extracted variables from agent instructions
@@ -2359,6 +2371,63 @@ export function updateAgentKnowledgeBasesFromJSON(
2359
2371
  );
2360
2372
  }
2361
2373
 
2374
+ /** @internal */
2375
+ export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2376
+ UpdateAgentTeamOfAgents,
2377
+ z.ZodTypeDef,
2378
+ unknown
2379
+ > = z.object({
2380
+ key: z.string(),
2381
+ role: z.string().optional(),
2382
+ });
2383
+
2384
+ /** @internal */
2385
+ export type UpdateAgentTeamOfAgents$Outbound = {
2386
+ key: string;
2387
+ role?: string | undefined;
2388
+ };
2389
+
2390
+ /** @internal */
2391
+ export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2392
+ UpdateAgentTeamOfAgents$Outbound,
2393
+ z.ZodTypeDef,
2394
+ UpdateAgentTeamOfAgents
2395
+ > = z.object({
2396
+ key: z.string(),
2397
+ role: z.string().optional(),
2398
+ });
2399
+
2400
+ /**
2401
+ * @internal
2402
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2403
+ */
2404
+ export namespace UpdateAgentTeamOfAgents$ {
2405
+ /** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
2406
+ export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
2407
+ /** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
2408
+ export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
2409
+ /** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
2410
+ export type Outbound = UpdateAgentTeamOfAgents$Outbound;
2411
+ }
2412
+
2413
+ export function updateAgentTeamOfAgentsToJSON(
2414
+ updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
2415
+ ): string {
2416
+ return JSON.stringify(
2417
+ UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
2418
+ );
2419
+ }
2420
+
2421
+ export function updateAgentTeamOfAgentsFromJSON(
2422
+ jsonString: string,
2423
+ ): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
2424
+ return safeParse(
2425
+ jsonString,
2426
+ (x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2427
+ `Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
2428
+ );
2429
+ }
2430
+
2362
2431
  /** @internal */
2363
2432
  export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2364
2433
  UpdateAgentRequestBody,
@@ -2379,6 +2448,8 @@ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2379
2448
  knowledge_bases: z.array(
2380
2449
  z.lazy(() => UpdateAgentKnowledgeBases$inboundSchema),
2381
2450
  ).optional(),
2451
+ team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema))
2452
+ .optional(),
2382
2453
  }).transform((v) => {
2383
2454
  return remap$(v, {
2384
2455
  "project_id": "projectId",
@@ -2386,6 +2457,7 @@ export const UpdateAgentRequestBody$inboundSchema: z.ZodType<
2386
2457
  "fallback_models": "fallbackModels",
2387
2458
  "memory_stores": "memoryStores",
2388
2459
  "knowledge_bases": "knowledgeBases",
2460
+ "team_of_agents": "teamOfAgents",
2389
2461
  });
2390
2462
  });
2391
2463
 
@@ -2403,6 +2475,7 @@ export type UpdateAgentRequestBody$Outbound = {
2403
2475
  path?: string | undefined;
2404
2476
  memory_stores?: Array<string> | undefined;
2405
2477
  knowledge_bases?: Array<UpdateAgentKnowledgeBases$Outbound> | undefined;
2478
+ team_of_agents?: Array<UpdateAgentTeamOfAgents$Outbound> | undefined;
2406
2479
  };
2407
2480
 
2408
2481
  /** @internal */
@@ -2425,6 +2498,8 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
2425
2498
  knowledgeBases: z.array(
2426
2499
  z.lazy(() => UpdateAgentKnowledgeBases$outboundSchema),
2427
2500
  ).optional(),
2501
+ teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema))
2502
+ .optional(),
2428
2503
  }).transform((v) => {
2429
2504
  return remap$(v, {
2430
2505
  projectId: "project_id",
@@ -2432,6 +2507,7 @@ export const UpdateAgentRequestBody$outboundSchema: z.ZodType<
2432
2507
  fallbackModels: "fallback_models",
2433
2508
  memoryStores: "memory_stores",
2434
2509
  knowledgeBases: "knowledge_bases",
2510
+ teamOfAgents: "team_of_agents",
2435
2511
  });
2436
2512
  });
2437
2513
 
@@ -2883,8 +2959,8 @@ export function updateAgentModelFromJSON(
2883
2959
  }
2884
2960
 
2885
2961
  /** @internal */
2886
- export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2887
- UpdateAgentTeamOfAgents,
2962
+ export const UpdateAgentAgentsTeamOfAgents$inboundSchema: z.ZodType<
2963
+ UpdateAgentAgentsTeamOfAgents,
2888
2964
  z.ZodTypeDef,
2889
2965
  unknown
2890
2966
  > = z.object({
@@ -2893,16 +2969,16 @@ export const UpdateAgentTeamOfAgents$inboundSchema: z.ZodType<
2893
2969
  });
2894
2970
 
2895
2971
  /** @internal */
2896
- export type UpdateAgentTeamOfAgents$Outbound = {
2972
+ export type UpdateAgentAgentsTeamOfAgents$Outbound = {
2897
2973
  key: string;
2898
2974
  role?: string | undefined;
2899
2975
  };
2900
2976
 
2901
2977
  /** @internal */
2902
- export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2903
- UpdateAgentTeamOfAgents$Outbound,
2978
+ export const UpdateAgentAgentsTeamOfAgents$outboundSchema: z.ZodType<
2979
+ UpdateAgentAgentsTeamOfAgents$Outbound,
2904
2980
  z.ZodTypeDef,
2905
- UpdateAgentTeamOfAgents
2981
+ UpdateAgentAgentsTeamOfAgents
2906
2982
  > = z.object({
2907
2983
  key: z.string(),
2908
2984
  role: z.string().optional(),
@@ -2912,30 +2988,32 @@ export const UpdateAgentTeamOfAgents$outboundSchema: z.ZodType<
2912
2988
  * @internal
2913
2989
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2914
2990
  */
2915
- export namespace UpdateAgentTeamOfAgents$ {
2916
- /** @deprecated use `UpdateAgentTeamOfAgents$inboundSchema` instead. */
2917
- export const inboundSchema = UpdateAgentTeamOfAgents$inboundSchema;
2918
- /** @deprecated use `UpdateAgentTeamOfAgents$outboundSchema` instead. */
2919
- export const outboundSchema = UpdateAgentTeamOfAgents$outboundSchema;
2920
- /** @deprecated use `UpdateAgentTeamOfAgents$Outbound` instead. */
2921
- export type Outbound = UpdateAgentTeamOfAgents$Outbound;
2991
+ export namespace UpdateAgentAgentsTeamOfAgents$ {
2992
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$inboundSchema` instead. */
2993
+ export const inboundSchema = UpdateAgentAgentsTeamOfAgents$inboundSchema;
2994
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$outboundSchema` instead. */
2995
+ export const outboundSchema = UpdateAgentAgentsTeamOfAgents$outboundSchema;
2996
+ /** @deprecated use `UpdateAgentAgentsTeamOfAgents$Outbound` instead. */
2997
+ export type Outbound = UpdateAgentAgentsTeamOfAgents$Outbound;
2922
2998
  }
2923
2999
 
2924
- export function updateAgentTeamOfAgentsToJSON(
2925
- updateAgentTeamOfAgents: UpdateAgentTeamOfAgents,
3000
+ export function updateAgentAgentsTeamOfAgentsToJSON(
3001
+ updateAgentAgentsTeamOfAgents: UpdateAgentAgentsTeamOfAgents,
2926
3002
  ): string {
2927
3003
  return JSON.stringify(
2928
- UpdateAgentTeamOfAgents$outboundSchema.parse(updateAgentTeamOfAgents),
3004
+ UpdateAgentAgentsTeamOfAgents$outboundSchema.parse(
3005
+ updateAgentAgentsTeamOfAgents,
3006
+ ),
2929
3007
  );
2930
3008
  }
2931
3009
 
2932
- export function updateAgentTeamOfAgentsFromJSON(
3010
+ export function updateAgentAgentsTeamOfAgentsFromJSON(
2933
3011
  jsonString: string,
2934
- ): SafeParseResult<UpdateAgentTeamOfAgents, SDKValidationError> {
3012
+ ): SafeParseResult<UpdateAgentAgentsTeamOfAgents, SDKValidationError> {
2935
3013
  return safeParse(
2936
3014
  jsonString,
2937
- (x) => UpdateAgentTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
2938
- `Failed to parse 'UpdateAgentTeamOfAgents' from JSON`,
3015
+ (x) => UpdateAgentAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)),
3016
+ `Failed to parse 'UpdateAgentAgentsTeamOfAgents' from JSON`,
2939
3017
  );
2940
3018
  }
2941
3019
 
@@ -3110,7 +3188,9 @@ export const UpdateAgentResponseBody$inboundSchema: z.ZodType<
3110
3188
  version_hash: z.string().optional(),
3111
3189
  path: z.string(),
3112
3190
  memory_stores: z.array(z.string()),
3113
- team_of_agents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$inboundSchema)),
3191
+ team_of_agents: z.array(
3192
+ z.lazy(() => UpdateAgentAgentsTeamOfAgents$inboundSchema),
3193
+ ),
3114
3194
  metrics: z.lazy(() => UpdateAgentMetrics$inboundSchema).optional(),
3115
3195
  variables: z.record(z.any()).optional(),
3116
3196
  knowledge_bases: z.array(
@@ -3153,7 +3233,7 @@ export type UpdateAgentResponseBody$Outbound = {
3153
3233
  version_hash?: string | undefined;
3154
3234
  path: string;
3155
3235
  memory_stores: Array<string>;
3156
- team_of_agents: Array<UpdateAgentTeamOfAgents$Outbound>;
3236
+ team_of_agents: Array<UpdateAgentAgentsTeamOfAgents$Outbound>;
3157
3237
  metrics?: UpdateAgentMetrics$Outbound | undefined;
3158
3238
  variables?: { [k: string]: any } | undefined;
3159
3239
  knowledge_bases?: Array<UpdateAgentAgentsKnowledgeBases$Outbound> | undefined;
@@ -3184,7 +3264,9 @@ export const UpdateAgentResponseBody$outboundSchema: z.ZodType<
3184
3264
  versionHash: z.string().optional(),
3185
3265
  path: z.string(),
3186
3266
  memoryStores: z.array(z.string()),
3187
- teamOfAgents: z.array(z.lazy(() => UpdateAgentTeamOfAgents$outboundSchema)),
3267
+ teamOfAgents: z.array(
3268
+ z.lazy(() => UpdateAgentAgentsTeamOfAgents$outboundSchema),
3269
+ ),
3188
3270
  metrics: z.lazy(() => UpdateAgentMetrics$outboundSchema).optional(),
3189
3271
  variables: z.record(z.any()).optional(),
3190
3272
  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:25:50.726Z",
541
+ "2025-10-21T15:04:06.875Z",
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:25:50.726Z"))
576
+ updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
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:25:50.726Z",
247
+ "2025-10-21T15:04:06.875Z",
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:25:50.726Z"))
285
+ updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -152,13 +152,13 @@ export type UpdateDatapointMessagesDatasetsContent =
152
152
  | Array<UpdateDatapoint2TextContentPart | UpdateDatapoint2RefusalContentPart>;
153
153
 
154
154
  /**
155
- * The role of the messages author, in this case `assistant` or `exception`.
155
+ * The role of the messages author, in this case `assistant`.
156
156
  */
157
157
  export const UpdateDatapointMessagesDatasetsRequestRequestBodyRole = {
158
158
  Assistant: "assistant",
159
159
  } as const;
160
160
  /**
161
- * The role of the messages author, in this case `assistant` or `exception`.
161
+ * The role of the messages author, in this case `assistant`.
162
162
  */
163
163
  export type UpdateDatapointMessagesDatasetsRequestRequestBodyRole = ClosedEnum<
164
164
  typeof UpdateDatapointMessagesDatasetsRequestRequestBodyRole
@@ -226,7 +226,7 @@ export type UpdateDatapointMessagesAssistantMessage = {
226
226
  */
227
227
  refusal?: string | null | undefined;
228
228
  /**
229
- * The role of the messages author, in this case `assistant` or `exception`.
229
+ * The role of the messages author, in this case `assistant`.
230
230
  */
231
231
  role: UpdateDatapointMessagesDatasetsRequestRequestBodyRole;
232
232
  /**
@@ -668,14 +668,14 @@ export type UpdateDatapointMessagesDatasetsResponse200Content =
668
668
  >;
669
669
 
670
670
  /**
671
- * The role of the messages author, in this case `assistant` or `exception`.
671
+ * The role of the messages author, in this case `assistant`.
672
672
  */
673
673
  export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
674
674
  {
675
675
  Assistant: "assistant",
676
676
  } as const;
677
677
  /**
678
- * The role of the messages author, in this case `assistant` or `exception`.
678
+ * The role of the messages author, in this case `assistant`.
679
679
  */
680
680
  export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole =
681
681
  ClosedEnum<
@@ -745,7 +745,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
745
745
  */
746
746
  refusal?: string | null | undefined;
747
747
  /**
748
- * The role of the messages author, in this case `assistant` or `exception`.
748
+ * The role of the messages author, in this case `assistant`.
749
749
  */
750
750
  role:
751
751
  UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyRole;
@@ -6252,7 +6252,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
6252
6252
  .default("orq"),
6253
6253
  reviewed_by_id: z.string(),
6254
6254
  reviewed_at: z.string().datetime({ offset: true }).default(
6255
- "2025-10-16T07:26:00.531Z",
6255
+ "2025-10-21T15:04:16.435Z",
6256
6256
  ).transform(v => new Date(v)),
6257
6257
  type: UpdateDatapointEvaluationsDatasetsResponseType$inboundSchema,
6258
6258
  values: z.array(z.string()),
@@ -6290,7 +6290,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
6290
6290
  source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
6291
6291
  .default("orq"),
6292
6292
  reviewedById: z.string(),
6293
- reviewedAt: z.date().default(() => new Date("2025-10-16T07:26:00.531Z"))
6293
+ reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.435Z"))
6294
6294
  .transform(v => v.toISOString()),
6295
6295
  type: UpdateDatapointEvaluationsDatasetsResponseType$outboundSchema,
6296
6296
  values: z.array(z.string()),
@@ -6419,7 +6419,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
6419
6419
  source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
6420
6420
  reviewed_by_id: z.string(),
6421
6421
  reviewed_at: z.string().datetime({ offset: true }).default(
6422
- "2025-10-16T07:26:00.531Z",
6422
+ "2025-10-21T15:04:16.435Z",
6423
6423
  ).transform(v => new Date(v)),
6424
6424
  type: UpdateDatapointEvaluationsDatasetsType$inboundSchema,
6425
6425
  value: z.number(),
@@ -6458,7 +6458,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
6458
6458
  "orq",
6459
6459
  ),
6460
6460
  reviewedById: z.string(),
6461
- reviewedAt: z.date().default(() => new Date("2025-10-16T07:26:00.531Z"))
6461
+ reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.435Z"))
6462
6462
  .transform(v => v.toISOString()),
6463
6463
  type: UpdateDatapointEvaluationsDatasetsType$outboundSchema,
6464
6464
  value: z.number(),
@@ -6581,7 +6581,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
6581
6581
  source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
6582
6582
  reviewed_by_id: z.string(),
6583
6583
  reviewed_at: z.string().datetime({ offset: true }).default(
6584
- "2025-10-16T07:26:00.530Z",
6584
+ "2025-10-21T15:04:16.435Z",
6585
6585
  ).transform(v => new Date(v)),
6586
6586
  type: UpdateDatapointEvaluationsType$inboundSchema,
6587
6587
  value: z.string(),
@@ -6617,7 +6617,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
6617
6617
  humanReviewId: z.string(),
6618
6618
  source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
6619
6619
  reviewedById: z.string(),
6620
- reviewedAt: z.date().default(() => new Date("2025-10-16T07:26:00.530Z"))
6620
+ reviewedAt: z.date().default(() => new Date("2025-10-21T15:04:16.435Z"))
6621
6621
  .transform(v => v.toISOString()),
6622
6622
  type: UpdateDatapointEvaluationsType$outboundSchema,
6623
6623
  value: z.string(),
@@ -6761,7 +6761,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
6761
6761
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6762
6762
  .optional(),
6763
6763
  updated: z.string().datetime({ offset: true }).default(
6764
- "2025-10-16T07:25:50.726Z",
6764
+ "2025-10-21T15:04:06.875Z",
6765
6765
  ).transform(v => new Date(v)),
6766
6766
  }).transform((v) => {
6767
6767
  return remap$(v, {
@@ -6840,7 +6840,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
6840
6840
  createdById: z.string().optional(),
6841
6841
  updatedById: z.string().optional(),
6842
6842
  created: z.date().transform(v => v.toISOString()).optional(),
6843
- updated: z.date().default(() => new Date("2025-10-16T07:25:50.726Z"))
6843
+ updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
6844
6844
  .transform(v => v.toISOString()),
6845
6845
  }).transform((v) => {
6846
6846
  return remap$(v, {
@@ -298,7 +298,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
298
298
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
299
299
  .optional(),
300
300
  updated: z.string().datetime({ offset: true }).default(
301
- "2025-10-16T07:25:50.726Z",
301
+ "2025-10-21T15:04:06.875Z",
302
302
  ).transform(v => new Date(v)),
303
303
  }).transform((v) => {
304
304
  return remap$(v, {
@@ -338,7 +338,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
338
338
  createdById: z.string().optional(),
339
339
  updatedById: z.string().optional(),
340
340
  created: z.date().transform(v => v.toISOString()).optional(),
341
- updated: z.date().default(() => new Date("2025-10-16T07:25:50.726Z"))
341
+ updated: z.date().default(() => new Date("2025-10-21T15:04:06.875Z"))
342
342
  .transform(v => v.toISOString()),
343
343
  }).transform((v) => {
344
344
  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("01K7NYJMC18NNWV1NJBTCRWCFH"),
247
+ _id: z.string().default("01K83MSATMBQJJK5NT5QH4NQ26"),
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("01K7NYJMC18NNWV1NJBTCRWCFH"),
291
+ id: z.string().default("01K83MSATMBQJJK5NT5QH4NQ26"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,