@orq-ai/node 4.0.0-rc.26 → 4.0.0-rc.28

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 (152) hide show
  1. package/bin/mcp-server.js +788 -281
  2. package/bin/mcp-server.js.map +50 -50
  3. package/docs/sdks/agents/README.md +2 -2
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/toolsDuplicate.js +2 -1
  6. package/funcs/toolsDuplicate.js.map +1 -1
  7. package/jsr.json +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +3 -3
  10. package/mcp-server/mcp-server.js +1 -1
  11. package/mcp-server/server.js +1 -1
  12. package/models/operations/createagent.d.ts +195 -11
  13. package/models/operations/createagent.d.ts.map +1 -1
  14. package/models/operations/createagent.js +189 -13
  15. package/models/operations/createagent.js.map +1 -1
  16. package/models/operations/createbudget.js +2 -2
  17. package/models/operations/createcontact.js +2 -2
  18. package/models/operations/createdataset.js +2 -2
  19. package/models/operations/createdatasetitem.js +8 -8
  20. package/models/operations/createdatasource.js +2 -2
  21. package/models/operations/createeval.d.ts +2 -0
  22. package/models/operations/createeval.d.ts.map +1 -1
  23. package/models/operations/createeval.js +30 -28
  24. package/models/operations/createeval.js.map +1 -1
  25. package/models/operations/createprompt.d.ts +0 -2
  26. package/models/operations/createprompt.d.ts.map +1 -1
  27. package/models/operations/createprompt.js +0 -4
  28. package/models/operations/createprompt.js.map +1 -1
  29. package/models/operations/createtool.js +10 -10
  30. package/models/operations/duplicateagent.d.ts +94 -0
  31. package/models/operations/duplicateagent.d.ts.map +1 -1
  32. package/models/operations/duplicateagent.js +95 -3
  33. package/models/operations/duplicateagent.js.map +1 -1
  34. package/models/operations/duplicatetool.d.ts +18 -0
  35. package/models/operations/duplicatetool.d.ts.map +1 -1
  36. package/models/operations/duplicatetool.js +40 -12
  37. package/models/operations/duplicatetool.js.map +1 -1
  38. package/models/operations/fileget.js +2 -2
  39. package/models/operations/filelist.js +2 -2
  40. package/models/operations/fileupload.js +2 -2
  41. package/models/operations/getagent.d.ts +94 -0
  42. package/models/operations/getagent.d.ts.map +1 -1
  43. package/models/operations/getagent.js +95 -3
  44. package/models/operations/getagent.js.map +1 -1
  45. package/models/operations/getallprompts.d.ts +0 -2
  46. package/models/operations/getallprompts.d.ts.map +1 -1
  47. package/models/operations/getallprompts.js +0 -4
  48. package/models/operations/getallprompts.js.map +1 -1
  49. package/models/operations/getalltools.js +10 -10
  50. package/models/operations/getbudget.js +2 -2
  51. package/models/operations/getevals.js +28 -28
  52. package/models/operations/getoneprompt.d.ts +0 -2
  53. package/models/operations/getoneprompt.d.ts.map +1 -1
  54. package/models/operations/getoneprompt.js +0 -4
  55. package/models/operations/getoneprompt.js.map +1 -1
  56. package/models/operations/getpromptversion.d.ts +0 -2
  57. package/models/operations/getpromptversion.d.ts.map +1 -1
  58. package/models/operations/getpromptversion.js +0 -4
  59. package/models/operations/getpromptversion.js.map +1 -1
  60. package/models/operations/listagents.d.ts +94 -0
  61. package/models/operations/listagents.d.ts.map +1 -1
  62. package/models/operations/listagents.js +96 -3
  63. package/models/operations/listagents.js.map +1 -1
  64. package/models/operations/listbudgets.js +2 -2
  65. package/models/operations/listcontacts.js +2 -2
  66. package/models/operations/listdatasetdatapoints.js +8 -8
  67. package/models/operations/listdatasets.js +2 -2
  68. package/models/operations/listdatasources.js +2 -2
  69. package/models/operations/listpromptversions.d.ts +0 -2
  70. package/models/operations/listpromptversions.d.ts.map +1 -1
  71. package/models/operations/listpromptversions.js +0 -4
  72. package/models/operations/listpromptversions.js.map +1 -1
  73. package/models/operations/retrievecontact.js +2 -2
  74. package/models/operations/retrievedatapoint.js +8 -8
  75. package/models/operations/retrievedataset.js +2 -2
  76. package/models/operations/retrievedatasource.js +2 -2
  77. package/models/operations/retrievetool.js +10 -10
  78. package/models/operations/runagent.d.ts +92 -0
  79. package/models/operations/runagent.d.ts.map +1 -1
  80. package/models/operations/runagent.js +97 -7
  81. package/models/operations/runagent.js.map +1 -1
  82. package/models/operations/streamrunagent.d.ts +92 -0
  83. package/models/operations/streamrunagent.d.ts.map +1 -1
  84. package/models/operations/streamrunagent.js +96 -6
  85. package/models/operations/streamrunagent.js.map +1 -1
  86. package/models/operations/updateagent.d.ts +188 -0
  87. package/models/operations/updateagent.d.ts.map +1 -1
  88. package/models/operations/updateagent.js +192 -7
  89. package/models/operations/updateagent.js.map +1 -1
  90. package/models/operations/updatebudget.js +2 -2
  91. package/models/operations/updatecontact.js +2 -2
  92. package/models/operations/updatedatapoint.js +8 -8
  93. package/models/operations/updatedataset.js +2 -2
  94. package/models/operations/updatedatasource.js +2 -2
  95. package/models/operations/updateeval.d.ts +2 -0
  96. package/models/operations/updateeval.d.ts.map +1 -1
  97. package/models/operations/updateeval.js +30 -28
  98. package/models/operations/updateeval.js.map +1 -1
  99. package/models/operations/updateprompt.d.ts +0 -4
  100. package/models/operations/updateprompt.d.ts.map +1 -1
  101. package/models/operations/updateprompt.js +0 -8
  102. package/models/operations/updateprompt.js.map +1 -1
  103. package/models/operations/updatetool.js +10 -10
  104. package/package.json +1 -1
  105. package/src/funcs/toolsDuplicate.ts +3 -2
  106. package/src/lib/config.ts +3 -3
  107. package/src/mcp-server/mcp-server.ts +1 -1
  108. package/src/mcp-server/server.ts +1 -1
  109. package/src/models/operations/createagent.ts +403 -17
  110. package/src/models/operations/createbudget.ts +2 -2
  111. package/src/models/operations/createcontact.ts +2 -2
  112. package/src/models/operations/createdataset.ts +2 -2
  113. package/src/models/operations/createdatasetitem.ts +8 -8
  114. package/src/models/operations/createdatasource.ts +2 -2
  115. package/src/models/operations/createeval.ts +30 -28
  116. package/src/models/operations/createprompt.ts +0 -6
  117. package/src/models/operations/createtool.ts +10 -10
  118. package/src/models/operations/duplicateagent.ts +206 -0
  119. package/src/models/operations/duplicatetool.ts +70 -10
  120. package/src/models/operations/fileget.ts +2 -2
  121. package/src/models/operations/filelist.ts +2 -2
  122. package/src/models/operations/fileupload.ts +2 -2
  123. package/src/models/operations/getagent.ts +204 -0
  124. package/src/models/operations/getallprompts.ts +0 -6
  125. package/src/models/operations/getalltools.ts +10 -10
  126. package/src/models/operations/getbudget.ts +2 -2
  127. package/src/models/operations/getevals.ts +28 -28
  128. package/src/models/operations/getoneprompt.ts +0 -6
  129. package/src/models/operations/getpromptversion.ts +0 -6
  130. package/src/models/operations/listagents.ts +204 -0
  131. package/src/models/operations/listbudgets.ts +2 -2
  132. package/src/models/operations/listcontacts.ts +2 -2
  133. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  134. package/src/models/operations/listdatasets.ts +2 -2
  135. package/src/models/operations/listdatasources.ts +2 -2
  136. package/src/models/operations/listpromptversions.ts +0 -6
  137. package/src/models/operations/retrievecontact.ts +2 -2
  138. package/src/models/operations/retrievedatapoint.ts +8 -8
  139. package/src/models/operations/retrievedataset.ts +2 -2
  140. package/src/models/operations/retrievedatasource.ts +2 -2
  141. package/src/models/operations/retrievetool.ts +10 -10
  142. package/src/models/operations/runagent.ts +202 -0
  143. package/src/models/operations/streamrunagent.ts +204 -0
  144. package/src/models/operations/updateagent.ts +415 -0
  145. package/src/models/operations/updatebudget.ts +2 -2
  146. package/src/models/operations/updatecontact.ts +2 -2
  147. package/src/models/operations/updatedatapoint.ts +8 -8
  148. package/src/models/operations/updatedataset.ts +2 -2
  149. package/src/models/operations/updatedatasource.ts +2 -2
  150. package/src/models/operations/updateeval.ts +30 -28
  151. package/src/models/operations/updateprompt.ts +0 -12
  152. package/src/models/operations/updatetool.ts +10 -10
@@ -9,11 +9,19 @@ import { ClosedEnum } from "../../types/enums.js";
9
9
  import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
11
 
12
+ export type DuplicateToolRequestBody = {
13
+ /**
14
+ * Custom display name for the duplicated tool
15
+ */
16
+ displayName?: string | undefined;
17
+ };
18
+
12
19
  export type DuplicateToolRequest = {
13
20
  /**
14
21
  * The id of the tool to duplicate
15
22
  */
16
23
  toolId: string;
24
+ requestBody?: DuplicateToolRequestBody | undefined;
17
25
  };
18
26
 
19
27
  /**
@@ -584,6 +592,53 @@ export type DuplicateToolResponseBody =
584
592
  | DuplicateToolResponseBody4
585
593
  | DuplicateToolResponseBody5;
586
594
 
595
+ /** @internal */
596
+ export const DuplicateToolRequestBody$inboundSchema: z.ZodType<
597
+ DuplicateToolRequestBody,
598
+ z.ZodTypeDef,
599
+ unknown
600
+ > = z.object({
601
+ display_name: z.string().optional(),
602
+ }).transform((v) => {
603
+ return remap$(v, {
604
+ "display_name": "displayName",
605
+ });
606
+ });
607
+ /** @internal */
608
+ export type DuplicateToolRequestBody$Outbound = {
609
+ display_name?: string | undefined;
610
+ };
611
+
612
+ /** @internal */
613
+ export const DuplicateToolRequestBody$outboundSchema: z.ZodType<
614
+ DuplicateToolRequestBody$Outbound,
615
+ z.ZodTypeDef,
616
+ DuplicateToolRequestBody
617
+ > = z.object({
618
+ displayName: z.string().optional(),
619
+ }).transform((v) => {
620
+ return remap$(v, {
621
+ displayName: "display_name",
622
+ });
623
+ });
624
+
625
+ export function duplicateToolRequestBodyToJSON(
626
+ duplicateToolRequestBody: DuplicateToolRequestBody,
627
+ ): string {
628
+ return JSON.stringify(
629
+ DuplicateToolRequestBody$outboundSchema.parse(duplicateToolRequestBody),
630
+ );
631
+ }
632
+ export function duplicateToolRequestBodyFromJSON(
633
+ jsonString: string,
634
+ ): SafeParseResult<DuplicateToolRequestBody, SDKValidationError> {
635
+ return safeParse(
636
+ jsonString,
637
+ (x) => DuplicateToolRequestBody$inboundSchema.parse(JSON.parse(x)),
638
+ `Failed to parse 'DuplicateToolRequestBody' from JSON`,
639
+ );
640
+ }
641
+
587
642
  /** @internal */
588
643
  export const DuplicateToolRequest$inboundSchema: z.ZodType<
589
644
  DuplicateToolRequest,
@@ -591,14 +646,17 @@ export const DuplicateToolRequest$inboundSchema: z.ZodType<
591
646
  unknown
592
647
  > = z.object({
593
648
  tool_id: z.string(),
649
+ RequestBody: z.lazy(() => DuplicateToolRequestBody$inboundSchema).optional(),
594
650
  }).transform((v) => {
595
651
  return remap$(v, {
596
652
  "tool_id": "toolId",
653
+ "RequestBody": "requestBody",
597
654
  });
598
655
  });
599
656
  /** @internal */
600
657
  export type DuplicateToolRequest$Outbound = {
601
658
  tool_id: string;
659
+ RequestBody?: DuplicateToolRequestBody$Outbound | undefined;
602
660
  };
603
661
 
604
662
  /** @internal */
@@ -608,9 +666,11 @@ export const DuplicateToolRequest$outboundSchema: z.ZodType<
608
666
  DuplicateToolRequest
609
667
  > = z.object({
610
668
  toolId: z.string(),
669
+ requestBody: z.lazy(() => DuplicateToolRequestBody$outboundSchema).optional(),
611
670
  }).transform((v) => {
612
671
  return remap$(v, {
613
672
  toolId: "tool_id",
673
+ requestBody: "RequestBody",
614
674
  });
615
675
  });
616
676
 
@@ -721,7 +781,7 @@ export const DuplicateToolResponseBody5$inboundSchema: z.ZodType<
721
781
  z.ZodTypeDef,
722
782
  unknown
723
783
  > = z.object({
724
- _id: z.string().default("01K9W4THMV77WNY09JRFY7EJ98"),
784
+ _id: z.string().default("01K9Y30Q7RP2BAC22EJYFQ6Z5Z"),
725
785
  path: z.string(),
726
786
  key: z.string(),
727
787
  display_name: z.string().optional(),
@@ -776,7 +836,7 @@ export const DuplicateToolResponseBody5$outboundSchema: z.ZodType<
776
836
  z.ZodTypeDef,
777
837
  DuplicateToolResponseBody5
778
838
  > = z.object({
779
- id: z.string().default("01K9W4THMV77WNY09JRFY7EJ98"),
839
+ id: z.string().default("01K9Y30Q7RP2BAC22EJYFQ6Z5Z"),
780
840
  path: z.string(),
781
841
  key: z.string(),
782
842
  displayName: z.string().optional(),
@@ -1047,7 +1107,7 @@ export const DuplicateToolResponseBody4$inboundSchema: z.ZodType<
1047
1107
  z.ZodTypeDef,
1048
1108
  unknown
1049
1109
  > = z.object({
1050
- _id: z.string().default("01K9W4THMSQK0S2K9HN2ZXVRJP"),
1110
+ _id: z.string().default("01K9Y30Q7FBH1RPNYS4CFXHV9W"),
1051
1111
  path: z.string(),
1052
1112
  key: z.string(),
1053
1113
  display_name: z.string().optional(),
@@ -1100,7 +1160,7 @@ export const DuplicateToolResponseBody4$outboundSchema: z.ZodType<
1100
1160
  z.ZodTypeDef,
1101
1161
  DuplicateToolResponseBody4
1102
1162
  > = z.object({
1103
- id: z.string().default("01K9W4THMSQK0S2K9HN2ZXVRJP"),
1163
+ id: z.string().default("01K9Y30Q7FBH1RPNYS4CFXHV9W"),
1104
1164
  path: z.string(),
1105
1165
  key: z.string(),
1106
1166
  displayName: z.string().optional(),
@@ -1446,7 +1506,7 @@ export const DuplicateToolResponseBody3$inboundSchema: z.ZodType<
1446
1506
  z.ZodTypeDef,
1447
1507
  unknown
1448
1508
  > = z.object({
1449
- _id: z.string().default("01K9W4THMPBGGD2TFWG6GT3QV6"),
1509
+ _id: z.string().default("01K9Y30Q7C43EY98CPYWZWB1PR"),
1450
1510
  path: z.string(),
1451
1511
  key: z.string(),
1452
1512
  display_name: z.string().optional(),
@@ -1499,7 +1559,7 @@ export const DuplicateToolResponseBody3$outboundSchema: z.ZodType<
1499
1559
  z.ZodTypeDef,
1500
1560
  DuplicateToolResponseBody3
1501
1561
  > = z.object({
1502
- id: z.string().default("01K9W4THMPBGGD2TFWG6GT3QV6"),
1562
+ id: z.string().default("01K9Y30Q7C43EY98CPYWZWB1PR"),
1503
1563
  path: z.string(),
1504
1564
  key: z.string(),
1505
1565
  displayName: z.string().optional(),
@@ -1621,7 +1681,7 @@ export const DuplicateToolResponseBody2$inboundSchema: z.ZodType<
1621
1681
  z.ZodTypeDef,
1622
1682
  unknown
1623
1683
  > = z.object({
1624
- _id: z.string().default("01K9W4THMMNHJNVKAFXE2HFPD6"),
1684
+ _id: z.string().default("01K9Y30Q7BH5A6D7D1QCWFP1TP"),
1625
1685
  path: z.string(),
1626
1686
  key: z.string(),
1627
1687
  display_name: z.string().optional(),
@@ -1673,7 +1733,7 @@ export const DuplicateToolResponseBody2$outboundSchema: z.ZodType<
1673
1733
  z.ZodTypeDef,
1674
1734
  DuplicateToolResponseBody2
1675
1735
  > = z.object({
1676
- id: z.string().default("01K9W4THMMNHJNVKAFXE2HFPD6"),
1736
+ id: z.string().default("01K9Y30Q7BH5A6D7D1QCWFP1TP"),
1677
1737
  path: z.string(),
1678
1738
  key: z.string(),
1679
1739
  displayName: z.string().optional(),
@@ -1792,7 +1852,7 @@ export const DuplicateToolResponseBody1$inboundSchema: z.ZodType<
1792
1852
  z.ZodTypeDef,
1793
1853
  unknown
1794
1854
  > = z.object({
1795
- _id: z.string().default("01K9W4THMJPZ6J3WRM7FVB4R00"),
1855
+ _id: z.string().default("01K9Y30Q79726MTXAWGBKCR922"),
1796
1856
  path: z.string(),
1797
1857
  key: z.string(),
1798
1858
  display_name: z.string().optional(),
@@ -1843,7 +1903,7 @@ export const DuplicateToolResponseBody1$outboundSchema: z.ZodType<
1843
1903
  z.ZodTypeDef,
1844
1904
  DuplicateToolResponseBody1
1845
1905
  > = z.object({
1846
- id: z.string().default("01K9W4THMJPZ6J3WRM7FVB4R00"),
1906
+ id: z.string().default("01K9Y30Q79726MTXAWGBKCR922"),
1847
1907
  path: z.string(),
1848
1908
  key: z.string(),
1849
1909
  displayName: z.string().optional(),
@@ -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-12T13:41:51.826Z",
122
+ "2025-11-13T07:48:47.652Z",
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-12T13:41:51.826Z"))
155
+ created: z.date().default(() => new Date("2025-11-13T07:48:47.652Z"))
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-12T13:41:51.826Z",
160
+ "2025-11-13T07:48:47.652Z",
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-12T13:41:51.826Z"))
193
+ created: z.date().default(() => new Date("2025-11-13T07:48:47.652Z"))
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-12T13:41:51.826Z",
199
+ "2025-11-13T07:48:47.652Z",
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-12T13:41:51.826Z"))
232
+ created: z.date().default(() => new Date("2025-11-13T07:48:47.652Z"))
233
233
  .transform(v => v.toISOString()),
234
234
  }).transform((v) => {
235
235
  return remap$(v, {
@@ -83,6 +83,62 @@ export type GetAgentTools = {
83
83
  timeout?: number | undefined;
84
84
  };
85
85
 
86
+ /**
87
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
88
+ */
89
+ export const GetAgentExecuteOn = {
90
+ Input: "input",
91
+ Output: "output",
92
+ } as const;
93
+ /**
94
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
95
+ */
96
+ export type GetAgentExecuteOn = ClosedEnum<typeof GetAgentExecuteOn>;
97
+
98
+ export type GetAgentEvaluators = {
99
+ /**
100
+ * Unique key or identifier of the evaluator
101
+ */
102
+ id: string;
103
+ /**
104
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
105
+ */
106
+ sampleRate?: number | undefined;
107
+ /**
108
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
109
+ */
110
+ executeOn: GetAgentExecuteOn;
111
+ };
112
+
113
+ /**
114
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
115
+ */
116
+ export const GetAgentAgentsExecuteOn = {
117
+ Input: "input",
118
+ Output: "output",
119
+ } as const;
120
+ /**
121
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
122
+ */
123
+ export type GetAgentAgentsExecuteOn = ClosedEnum<
124
+ typeof GetAgentAgentsExecuteOn
125
+ >;
126
+
127
+ export type GetAgentGuardrails = {
128
+ /**
129
+ * Unique key or identifier of the evaluator
130
+ */
131
+ id: string;
132
+ /**
133
+ * The percentage of executions to evaluate with this evaluator (1-100). For example, a value of 50 means the evaluator will run on approximately half of the executions.
134
+ */
135
+ sampleRate?: number | undefined;
136
+ /**
137
+ * Determines whether the evaluator runs on the agent input (user message) or output (agent response).
138
+ */
139
+ executeOn: GetAgentAgentsExecuteOn;
140
+ };
141
+
86
142
  export type GetAgentSettings = {
87
143
  /**
88
144
  * Maximum iterations(llm calls) before the agent will stop executing.
@@ -97,6 +153,14 @@ export type GetAgentSettings = {
97
153
  */
98
154
  toolApprovalRequired?: GetAgentToolApprovalRequired | undefined;
99
155
  tools?: Array<GetAgentTools> | undefined;
156
+ /**
157
+ * Configuration for an evaluator applied to the agent
158
+ */
159
+ evaluators?: Array<GetAgentEvaluators> | undefined;
160
+ /**
161
+ * Configuration for a guardrail applied to the agent
162
+ */
163
+ guardrails?: Array<GetAgentGuardrails> | undefined;
100
164
  };
101
165
 
102
166
  /**
@@ -790,6 +854,8 @@ export const GetAgentCollapsedConfigurationSections = {
790
854
  Tools: "tools",
791
855
  Context: "context",
792
856
  RuntimeConstraints: "runtime_constraints",
857
+ Evaluators: "evaluators",
858
+ Guardrails: "guardrails",
793
859
  } as const;
794
860
  export type GetAgentCollapsedConfigurationSections = ClosedEnum<
795
861
  typeof GetAgentCollapsedConfigurationSections
@@ -1031,6 +1097,134 @@ export function getAgentToolsFromJSON(
1031
1097
  );
1032
1098
  }
1033
1099
 
1100
+ /** @internal */
1101
+ export const GetAgentExecuteOn$inboundSchema: z.ZodNativeEnum<
1102
+ typeof GetAgentExecuteOn
1103
+ > = z.nativeEnum(GetAgentExecuteOn);
1104
+ /** @internal */
1105
+ export const GetAgentExecuteOn$outboundSchema: z.ZodNativeEnum<
1106
+ typeof GetAgentExecuteOn
1107
+ > = GetAgentExecuteOn$inboundSchema;
1108
+
1109
+ /** @internal */
1110
+ export const GetAgentEvaluators$inboundSchema: z.ZodType<
1111
+ GetAgentEvaluators,
1112
+ z.ZodTypeDef,
1113
+ unknown
1114
+ > = z.object({
1115
+ id: z.string(),
1116
+ sample_rate: z.number().default(50),
1117
+ execute_on: GetAgentExecuteOn$inboundSchema,
1118
+ }).transform((v) => {
1119
+ return remap$(v, {
1120
+ "sample_rate": "sampleRate",
1121
+ "execute_on": "executeOn",
1122
+ });
1123
+ });
1124
+ /** @internal */
1125
+ export type GetAgentEvaluators$Outbound = {
1126
+ id: string;
1127
+ sample_rate: number;
1128
+ execute_on: string;
1129
+ };
1130
+
1131
+ /** @internal */
1132
+ export const GetAgentEvaluators$outboundSchema: z.ZodType<
1133
+ GetAgentEvaluators$Outbound,
1134
+ z.ZodTypeDef,
1135
+ GetAgentEvaluators
1136
+ > = z.object({
1137
+ id: z.string(),
1138
+ sampleRate: z.number().default(50),
1139
+ executeOn: GetAgentExecuteOn$outboundSchema,
1140
+ }).transform((v) => {
1141
+ return remap$(v, {
1142
+ sampleRate: "sample_rate",
1143
+ executeOn: "execute_on",
1144
+ });
1145
+ });
1146
+
1147
+ export function getAgentEvaluatorsToJSON(
1148
+ getAgentEvaluators: GetAgentEvaluators,
1149
+ ): string {
1150
+ return JSON.stringify(
1151
+ GetAgentEvaluators$outboundSchema.parse(getAgentEvaluators),
1152
+ );
1153
+ }
1154
+ export function getAgentEvaluatorsFromJSON(
1155
+ jsonString: string,
1156
+ ): SafeParseResult<GetAgentEvaluators, SDKValidationError> {
1157
+ return safeParse(
1158
+ jsonString,
1159
+ (x) => GetAgentEvaluators$inboundSchema.parse(JSON.parse(x)),
1160
+ `Failed to parse 'GetAgentEvaluators' from JSON`,
1161
+ );
1162
+ }
1163
+
1164
+ /** @internal */
1165
+ export const GetAgentAgentsExecuteOn$inboundSchema: z.ZodNativeEnum<
1166
+ typeof GetAgentAgentsExecuteOn
1167
+ > = z.nativeEnum(GetAgentAgentsExecuteOn);
1168
+ /** @internal */
1169
+ export const GetAgentAgentsExecuteOn$outboundSchema: z.ZodNativeEnum<
1170
+ typeof GetAgentAgentsExecuteOn
1171
+ > = GetAgentAgentsExecuteOn$inboundSchema;
1172
+
1173
+ /** @internal */
1174
+ export const GetAgentGuardrails$inboundSchema: z.ZodType<
1175
+ GetAgentGuardrails,
1176
+ z.ZodTypeDef,
1177
+ unknown
1178
+ > = z.object({
1179
+ id: z.string(),
1180
+ sample_rate: z.number().default(50),
1181
+ execute_on: GetAgentAgentsExecuteOn$inboundSchema,
1182
+ }).transform((v) => {
1183
+ return remap$(v, {
1184
+ "sample_rate": "sampleRate",
1185
+ "execute_on": "executeOn",
1186
+ });
1187
+ });
1188
+ /** @internal */
1189
+ export type GetAgentGuardrails$Outbound = {
1190
+ id: string;
1191
+ sample_rate: number;
1192
+ execute_on: string;
1193
+ };
1194
+
1195
+ /** @internal */
1196
+ export const GetAgentGuardrails$outboundSchema: z.ZodType<
1197
+ GetAgentGuardrails$Outbound,
1198
+ z.ZodTypeDef,
1199
+ GetAgentGuardrails
1200
+ > = z.object({
1201
+ id: z.string(),
1202
+ sampleRate: z.number().default(50),
1203
+ executeOn: GetAgentAgentsExecuteOn$outboundSchema,
1204
+ }).transform((v) => {
1205
+ return remap$(v, {
1206
+ sampleRate: "sample_rate",
1207
+ executeOn: "execute_on",
1208
+ });
1209
+ });
1210
+
1211
+ export function getAgentGuardrailsToJSON(
1212
+ getAgentGuardrails: GetAgentGuardrails,
1213
+ ): string {
1214
+ return JSON.stringify(
1215
+ GetAgentGuardrails$outboundSchema.parse(getAgentGuardrails),
1216
+ );
1217
+ }
1218
+ export function getAgentGuardrailsFromJSON(
1219
+ jsonString: string,
1220
+ ): SafeParseResult<GetAgentGuardrails, SDKValidationError> {
1221
+ return safeParse(
1222
+ jsonString,
1223
+ (x) => GetAgentGuardrails$inboundSchema.parse(JSON.parse(x)),
1224
+ `Failed to parse 'GetAgentGuardrails' from JSON`,
1225
+ );
1226
+ }
1227
+
1034
1228
  /** @internal */
1035
1229
  export const GetAgentSettings$inboundSchema: z.ZodType<
1036
1230
  GetAgentSettings,
@@ -1043,6 +1237,10 @@ export const GetAgentSettings$inboundSchema: z.ZodType<
1043
1237
  "respect_tool",
1044
1238
  ),
1045
1239
  tools: z.array(z.lazy(() => GetAgentTools$inboundSchema)).optional(),
1240
+ evaluators: z.array(z.lazy(() => GetAgentEvaluators$inboundSchema))
1241
+ .optional(),
1242
+ guardrails: z.array(z.lazy(() => GetAgentGuardrails$inboundSchema))
1243
+ .optional(),
1046
1244
  }).transform((v) => {
1047
1245
  return remap$(v, {
1048
1246
  "max_iterations": "maxIterations",
@@ -1056,6 +1254,8 @@ export type GetAgentSettings$Outbound = {
1056
1254
  max_execution_time: number;
1057
1255
  tool_approval_required: string;
1058
1256
  tools?: Array<GetAgentTools$Outbound> | undefined;
1257
+ evaluators?: Array<GetAgentEvaluators$Outbound> | undefined;
1258
+ guardrails?: Array<GetAgentGuardrails$Outbound> | undefined;
1059
1259
  };
1060
1260
 
1061
1261
  /** @internal */
@@ -1070,6 +1270,10 @@ export const GetAgentSettings$outboundSchema: z.ZodType<
1070
1270
  "respect_tool",
1071
1271
  ),
1072
1272
  tools: z.array(z.lazy(() => GetAgentTools$outboundSchema)).optional(),
1273
+ evaluators: z.array(z.lazy(() => GetAgentEvaluators$outboundSchema))
1274
+ .optional(),
1275
+ guardrails: z.array(z.lazy(() => GetAgentGuardrails$outboundSchema))
1276
+ .optional(),
1073
1277
  }).transform((v) => {
1074
1278
  return remap$(v, {
1075
1279
  maxIterations: "max_iterations",
@@ -495,7 +495,6 @@ export type GetAllPromptsMessages = {
495
495
  export type GetAllPromptsPromptConfig = {
496
496
  stream?: boolean | undefined;
497
497
  model?: string | undefined;
498
- displayName?: string | undefined;
499
498
  /**
500
499
  * The id of the resource
501
500
  */
@@ -1727,7 +1726,6 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1727
1726
  > = z.object({
1728
1727
  stream: z.boolean().optional(),
1729
1728
  model: z.string().optional(),
1730
- display_name: z.string().optional(),
1731
1729
  model_db_id: z.nullable(z.string()).optional(),
1732
1730
  model_type: z.nullable(GetAllPromptsModelType$inboundSchema).optional(),
1733
1731
  model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
@@ -1738,7 +1736,6 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1738
1736
  messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
1739
1737
  }).transform((v) => {
1740
1738
  return remap$(v, {
1741
- "display_name": "displayName",
1742
1739
  "model_db_id": "modelDbId",
1743
1740
  "model_type": "modelType",
1744
1741
  "model_parameters": "modelParameters",
@@ -1749,7 +1746,6 @@ export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
1749
1746
  export type GetAllPromptsPromptConfig$Outbound = {
1750
1747
  stream?: boolean | undefined;
1751
1748
  model?: string | undefined;
1752
- display_name?: string | undefined;
1753
1749
  model_db_id?: string | null | undefined;
1754
1750
  model_type?: string | null | undefined;
1755
1751
  model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
@@ -1767,7 +1763,6 @@ export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
1767
1763
  > = z.object({
1768
1764
  stream: z.boolean().optional(),
1769
1765
  model: z.string().optional(),
1770
- displayName: z.string().optional(),
1771
1766
  modelDbId: z.nullable(z.string()).optional(),
1772
1767
  modelType: z.nullable(GetAllPromptsModelType$outboundSchema).optional(),
1773
1768
  modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
@@ -1778,7 +1773,6 @@ export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
1778
1773
  messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
1779
1774
  }).transform((v) => {
1780
1775
  return remap$(v, {
1781
- displayName: "display_name",
1782
1776
  modelDbId: "model_db_id",
1783
1777
  modelType: "model_type",
1784
1778
  modelParameters: "model_parameters",
@@ -716,7 +716,7 @@ export function dataCodeToolFromJSON(
716
716
  /** @internal */
717
717
  export const Data5$inboundSchema: z.ZodType<Data5, z.ZodTypeDef, unknown> = z
718
718
  .object({
719
- _id: z.string().default("01K9W4THF4FXA69CCVX4SCXETM"),
719
+ _id: z.string().default("01K9Y30Q5VTYB4XQZ6CYH4QFRH"),
720
720
  path: z.string(),
721
721
  key: z.string(),
722
722
  display_name: z.string().optional(),
@@ -768,7 +768,7 @@ export const Data5$outboundSchema: z.ZodType<
768
768
  z.ZodTypeDef,
769
769
  Data5
770
770
  > = z.object({
771
- id: z.string().default("01K9W4THF4FXA69CCVX4SCXETM"),
771
+ id: z.string().default("01K9Y30Q5VTYB4XQZ6CYH4QFRH"),
772
772
  path: z.string(),
773
773
  key: z.string(),
774
774
  displayName: z.string().optional(),
@@ -999,7 +999,7 @@ export function dataMcpFromJSON(
999
999
  /** @internal */
1000
1000
  export const Data4$inboundSchema: z.ZodType<Data4, z.ZodTypeDef, unknown> = z
1001
1001
  .object({
1002
- _id: z.string().default("01K9W4THEX5DP8P52C9QXT40M3"),
1002
+ _id: z.string().default("01K9Y30Q5T50KZV67J2J5JV0BY"),
1003
1003
  path: z.string(),
1004
1004
  key: z.string(),
1005
1005
  display_name: z.string().optional(),
@@ -1050,7 +1050,7 @@ export const Data4$outboundSchema: z.ZodType<
1050
1050
  z.ZodTypeDef,
1051
1051
  Data4
1052
1052
  > = z.object({
1053
- id: z.string().default("01K9W4THEX5DP8P52C9QXT40M3"),
1053
+ id: z.string().default("01K9Y30Q5T50KZV67J2J5JV0BY"),
1054
1054
  path: z.string(),
1055
1055
  key: z.string(),
1056
1056
  displayName: z.string().optional(),
@@ -1353,7 +1353,7 @@ export function getAllToolsDataHttpFromJSON(
1353
1353
  /** @internal */
1354
1354
  export const Data3$inboundSchema: z.ZodType<Data3, z.ZodTypeDef, unknown> = z
1355
1355
  .object({
1356
- _id: z.string().default("01K9W4THEJB5N0KWNHKZRMQYP9"),
1356
+ _id: z.string().default("01K9Y30Q5R47MK7M4Q2EVYMYXS"),
1357
1357
  path: z.string(),
1358
1358
  key: z.string(),
1359
1359
  display_name: z.string().optional(),
@@ -1404,7 +1404,7 @@ export const Data3$outboundSchema: z.ZodType<
1404
1404
  z.ZodTypeDef,
1405
1405
  Data3
1406
1406
  > = z.object({
1407
- id: z.string().default("01K9W4THEJB5N0KWNHKZRMQYP9"),
1407
+ id: z.string().default("01K9Y30Q5R47MK7M4Q2EVYMYXS"),
1408
1408
  path: z.string(),
1409
1409
  key: z.string(),
1410
1410
  displayName: z.string().optional(),
@@ -1509,7 +1509,7 @@ export function dataJsonSchemaFromJSON(
1509
1509
  /** @internal */
1510
1510
  export const Data2$inboundSchema: z.ZodType<Data2, z.ZodTypeDef, unknown> = z
1511
1511
  .object({
1512
- _id: z.string().default("01K9W4THECW127Y2HB40NXKJ6S"),
1512
+ _id: z.string().default("01K9Y30Q5PQEDB5GY8RR747KJY"),
1513
1513
  path: z.string(),
1514
1514
  key: z.string(),
1515
1515
  display_name: z.string().optional(),
@@ -1561,7 +1561,7 @@ export const Data2$outboundSchema: z.ZodType<
1561
1561
  z.ZodTypeDef,
1562
1562
  Data2
1563
1563
  > = z.object({
1564
- id: z.string().default("01K9W4THECW127Y2HB40NXKJ6S"),
1564
+ id: z.string().default("01K9Y30Q5PQEDB5GY8RR747KJY"),
1565
1565
  path: z.string(),
1566
1566
  key: z.string(),
1567
1567
  displayName: z.string().optional(),
@@ -1669,7 +1669,7 @@ export function getAllToolsDataFunctionFromJSON(
1669
1669
  /** @internal */
1670
1670
  export const Data1$inboundSchema: z.ZodType<Data1, z.ZodTypeDef, unknown> = z
1671
1671
  .object({
1672
- _id: z.string().default("01K9W4THE6H2DXBWSR4W8P9X20"),
1672
+ _id: z.string().default("01K9Y30Q5NWMQRG16XVSY15KB4"),
1673
1673
  path: z.string(),
1674
1674
  key: z.string(),
1675
1675
  display_name: z.string().optional(),
@@ -1720,7 +1720,7 @@ export const Data1$outboundSchema: z.ZodType<
1720
1720
  z.ZodTypeDef,
1721
1721
  Data1
1722
1722
  > = z.object({
1723
- id: z.string().default("01K9W4THE6H2DXBWSR4W8P9X20"),
1723
+ id: z.string().default("01K9Y30Q5NWMQRG16XVSY15KB4"),
1724
1724
  path: z.string(),
1725
1725
  key: z.string(),
1726
1726
  displayName: z.string().optional(),
@@ -291,7 +291,7 @@ export const GetBudgetResponseBody$inboundSchema: z.ZodType<
291
291
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
292
292
  .optional(),
293
293
  updated: z.string().datetime({ offset: true }).default(
294
- "2025-11-12T13:41:48.371Z",
294
+ "2025-11-13T07:48:44.390Z",
295
295
  ).transform(v => new Date(v)),
296
296
  }).transform((v) => {
297
297
  return remap$(v, {
@@ -328,7 +328,7 @@ export const GetBudgetResponseBody$outboundSchema: z.ZodType<
328
328
  isActive: z.boolean(),
329
329
  consumption: z.lazy(() => GetBudgetConsumption$outboundSchema).optional(),
330
330
  created: z.date().transform(v => v.toISOString()).optional(),
331
- updated: z.date().default(() => new Date("2025-11-12T13:41:48.371Z"))
331
+ updated: z.date().default(() => new Date("2025-11-13T07:48:44.390Z"))
332
332
  .transform(v => v.toISOString()),
333
333
  }).transform((v) => {
334
334
  return remap$(v, {