@orq-ai/node 3.14.27 → 3.14.29

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 (117) hide show
  1. package/bin/mcp-server.js +210 -210
  2. package/bin/mcp-server.js.map +35 -35
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/operations/createbudget.js +2 -2
  10. package/models/operations/createcontact.js +2 -2
  11. package/models/operations/createdataset.js +2 -2
  12. package/models/operations/createdatasetitem.js +8 -8
  13. package/models/operations/createdatasource.js +2 -2
  14. package/models/operations/createeval.js +28 -28
  15. package/models/operations/createtool.js +10 -10
  16. package/models/operations/duplicatetool.js +10 -10
  17. package/models/operations/fileget.js +2 -2
  18. package/models/operations/filelist.js +2 -2
  19. package/models/operations/fileupload.js +2 -2
  20. package/models/operations/getalltools.js +10 -10
  21. package/models/operations/getbudget.js +2 -2
  22. package/models/operations/getevals.js +28 -28
  23. package/models/operations/listbudgets.js +2 -2
  24. package/models/operations/listcontacts.js +2 -2
  25. package/models/operations/listdatasetdatapoints.js +8 -8
  26. package/models/operations/listdatasets.js +2 -2
  27. package/models/operations/listdatasources.js +2 -2
  28. package/models/operations/retrievecontact.js +2 -2
  29. package/models/operations/retrievedatapoint.js +8 -8
  30. package/models/operations/retrievedataset.js +2 -2
  31. package/models/operations/retrievedatasource.js +2 -2
  32. package/models/operations/retrievetool.js +10 -10
  33. package/models/operations/updatebudget.js +2 -2
  34. package/models/operations/updatecontact.js +2 -2
  35. package/models/operations/updatedatapoint.js +8 -8
  36. package/models/operations/updatedataset.js +2 -2
  37. package/models/operations/updatedatasource.js +2 -2
  38. package/models/operations/updateeval.js +28 -28
  39. package/models/operations/updatetool.js +10 -10
  40. package/package.json +1 -1
  41. package/packages/orq-rc/examples/package-lock.json +1 -1
  42. package/packages/orq-rc/jsr.json +1 -1
  43. package/packages/orq-rc/package-lock.json +2 -2
  44. package/packages/orq-rc/package.json +1 -1
  45. package/packages/orq-rc/src/lib/config.ts +3 -3
  46. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  47. package/packages/orq-rc/src/mcp-server/server.ts +1 -1
  48. package/packages/orq-rc/src/models/operations/createagent.ts +33 -33
  49. package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
  50. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  51. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  52. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
  53. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  54. package/packages/orq-rc/src/models/operations/createeval.ts +28 -28
  55. package/packages/orq-rc/src/models/operations/createtool.ts +149 -38
  56. package/packages/orq-rc/src/models/operations/duplicatetool.ts +70 -14
  57. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  58. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  59. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  60. package/packages/orq-rc/src/models/operations/getalltools.ts +63 -14
  61. package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
  63. package/packages/orq-rc/src/models/operations/listagenttasks.ts +4 -0
  64. package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
  66. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
  67. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  68. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  69. package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
  70. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
  71. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  72. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  73. package/packages/orq-rc/src/models/operations/retrievetool.ts +70 -14
  74. package/packages/orq-rc/src/models/operations/runagent.ts +77 -37
  75. package/packages/orq-rc/src/models/operations/streamrunagent.ts +86 -37
  76. package/packages/orq-rc/src/models/operations/updateagent.ts +33 -33
  77. package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
  80. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
  83. package/packages/orq-rc/src/models/operations/updatetool.ts +151 -36
  84. package/src/lib/config.ts +3 -3
  85. package/src/mcp-server/mcp-server.ts +1 -1
  86. package/src/mcp-server/server.ts +1 -1
  87. package/src/models/operations/createbudget.ts +2 -2
  88. package/src/models/operations/createcontact.ts +2 -2
  89. package/src/models/operations/createdataset.ts +2 -2
  90. package/src/models/operations/createdatasetitem.ts +8 -8
  91. package/src/models/operations/createdatasource.ts +2 -2
  92. package/src/models/operations/createeval.ts +28 -28
  93. package/src/models/operations/createtool.ts +10 -10
  94. package/src/models/operations/duplicatetool.ts +10 -10
  95. package/src/models/operations/fileget.ts +2 -2
  96. package/src/models/operations/filelist.ts +2 -2
  97. package/src/models/operations/fileupload.ts +2 -2
  98. package/src/models/operations/getalltools.ts +10 -10
  99. package/src/models/operations/getbudget.ts +2 -2
  100. package/src/models/operations/getevals.ts +28 -28
  101. package/src/models/operations/listbudgets.ts +2 -2
  102. package/src/models/operations/listcontacts.ts +2 -2
  103. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  104. package/src/models/operations/listdatasets.ts +2 -2
  105. package/src/models/operations/listdatasources.ts +2 -2
  106. package/src/models/operations/retrievecontact.ts +2 -2
  107. package/src/models/operations/retrievedatapoint.ts +8 -8
  108. package/src/models/operations/retrievedataset.ts +2 -2
  109. package/src/models/operations/retrievedatasource.ts +2 -2
  110. package/src/models/operations/retrievetool.ts +10 -10
  111. package/src/models/operations/updatebudget.ts +2 -2
  112. package/src/models/operations/updatecontact.ts +2 -2
  113. package/src/models/operations/updatedatapoint.ts +8 -8
  114. package/src/models/operations/updatedataset.ts +2 -2
  115. package/src/models/operations/updatedatasource.ts +2 -2
  116. package/src/models/operations/updateeval.ts +28 -28
  117. package/src/models/operations/updatetool.ts +10 -10
@@ -274,6 +274,11 @@ export type RetrieveToolResponseBodyMethod = ClosedEnum<
274
274
  typeof RetrieveToolResponseBodyMethod
275
275
  >;
276
276
 
277
+ export type RetrieveToolResponseBodyToolsHeaders = {
278
+ value: string;
279
+ encrypted?: boolean | undefined;
280
+ };
281
+
277
282
  /**
278
283
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
279
284
  */
@@ -289,7 +294,7 @@ export type RetrieveToolResponseBodyBlueprint = {
289
294
  /**
290
295
  * The headers to send with the request.
291
296
  */
292
- headers?: { [k: string]: string } | undefined;
297
+ headers?: { [k: string]: RetrieveToolResponseBodyToolsHeaders } | undefined;
293
298
  /**
294
299
  * The body to send with the request.
295
300
  */
@@ -710,7 +715,7 @@ export const RetrieveToolResponseBody5$inboundSchema: z.ZodType<
710
715
  z.ZodTypeDef,
711
716
  unknown
712
717
  > = z.object({
713
- _id: z.string().default("01K9F3PNYNAJ1W894KHTFP1GTQ"),
718
+ _id: z.string().default("01K9PVD4J9KTEFGY0K1WVCFSY4"),
714
719
  path: z.string(),
715
720
  key: z.string(),
716
721
  display_name: z.string().optional(),
@@ -765,7 +770,7 @@ export const RetrieveToolResponseBody5$outboundSchema: z.ZodType<
765
770
  z.ZodTypeDef,
766
771
  RetrieveToolResponseBody5
767
772
  > = z.object({
768
- id: z.string().default("01K9F3PNYNAJ1W894KHTFP1GTQ"),
773
+ id: z.string().default("01K9PVD4J9KTEFGY0K1WVCFSY4"),
769
774
  path: z.string(),
770
775
  key: z.string(),
771
776
  displayName: z.string().optional(),
@@ -1032,7 +1037,7 @@ export const RetrieveToolResponseBody4$inboundSchema: z.ZodType<
1032
1037
  z.ZodTypeDef,
1033
1038
  unknown
1034
1039
  > = z.object({
1035
- _id: z.string().default("01K9F3PNYM904Z0C0W0A1HWKWC"),
1040
+ _id: z.string().default("01K9PVD4J7Q6PG7GJBZNGY9SPW"),
1036
1041
  path: z.string(),
1037
1042
  key: z.string(),
1038
1043
  display_name: z.string().optional(),
@@ -1085,7 +1090,7 @@ export const RetrieveToolResponseBody4$outboundSchema: z.ZodType<
1085
1090
  z.ZodTypeDef,
1086
1091
  RetrieveToolResponseBody4
1087
1092
  > = z.object({
1088
- id: z.string().default("01K9F3PNYM904Z0C0W0A1HWKWC"),
1093
+ id: z.string().default("01K9PVD4J7Q6PG7GJBZNGY9SPW"),
1089
1094
  path: z.string(),
1090
1095
  key: z.string(),
1091
1096
  displayName: z.string().optional(),
@@ -1158,6 +1163,51 @@ export const RetrieveToolResponseBodyMethod$outboundSchema: z.ZodNativeEnum<
1158
1163
  typeof RetrieveToolResponseBodyMethod
1159
1164
  > = RetrieveToolResponseBodyMethod$inboundSchema;
1160
1165
 
1166
+ /** @internal */
1167
+ export const RetrieveToolResponseBodyToolsHeaders$inboundSchema: z.ZodType<
1168
+ RetrieveToolResponseBodyToolsHeaders,
1169
+ z.ZodTypeDef,
1170
+ unknown
1171
+ > = z.object({
1172
+ value: z.string(),
1173
+ encrypted: z.boolean().default(false),
1174
+ });
1175
+ /** @internal */
1176
+ export type RetrieveToolResponseBodyToolsHeaders$Outbound = {
1177
+ value: string;
1178
+ encrypted: boolean;
1179
+ };
1180
+
1181
+ /** @internal */
1182
+ export const RetrieveToolResponseBodyToolsHeaders$outboundSchema: z.ZodType<
1183
+ RetrieveToolResponseBodyToolsHeaders$Outbound,
1184
+ z.ZodTypeDef,
1185
+ RetrieveToolResponseBodyToolsHeaders
1186
+ > = z.object({
1187
+ value: z.string(),
1188
+ encrypted: z.boolean().default(false),
1189
+ });
1190
+
1191
+ export function retrieveToolResponseBodyToolsHeadersToJSON(
1192
+ retrieveToolResponseBodyToolsHeaders: RetrieveToolResponseBodyToolsHeaders,
1193
+ ): string {
1194
+ return JSON.stringify(
1195
+ RetrieveToolResponseBodyToolsHeaders$outboundSchema.parse(
1196
+ retrieveToolResponseBodyToolsHeaders,
1197
+ ),
1198
+ );
1199
+ }
1200
+ export function retrieveToolResponseBodyToolsHeadersFromJSON(
1201
+ jsonString: string,
1202
+ ): SafeParseResult<RetrieveToolResponseBodyToolsHeaders, SDKValidationError> {
1203
+ return safeParse(
1204
+ jsonString,
1205
+ (x) =>
1206
+ RetrieveToolResponseBodyToolsHeaders$inboundSchema.parse(JSON.parse(x)),
1207
+ `Failed to parse 'RetrieveToolResponseBodyToolsHeaders' from JSON`,
1208
+ );
1209
+ }
1210
+
1161
1211
  /** @internal */
1162
1212
  export const RetrieveToolResponseBodyBlueprint$inboundSchema: z.ZodType<
1163
1213
  RetrieveToolResponseBodyBlueprint,
@@ -1166,14 +1216,18 @@ export const RetrieveToolResponseBodyBlueprint$inboundSchema: z.ZodType<
1166
1216
  > = z.object({
1167
1217
  url: z.string(),
1168
1218
  method: RetrieveToolResponseBodyMethod$inboundSchema,
1169
- headers: z.record(z.string()).optional(),
1219
+ headers: z.record(
1220
+ z.lazy(() => RetrieveToolResponseBodyToolsHeaders$inboundSchema),
1221
+ ).optional(),
1170
1222
  body: z.record(z.any()).optional(),
1171
1223
  });
1172
1224
  /** @internal */
1173
1225
  export type RetrieveToolResponseBodyBlueprint$Outbound = {
1174
1226
  url: string;
1175
1227
  method: string;
1176
- headers?: { [k: string]: string } | undefined;
1228
+ headers?:
1229
+ | { [k: string]: RetrieveToolResponseBodyToolsHeaders$Outbound }
1230
+ | undefined;
1177
1231
  body?: { [k: string]: any } | undefined;
1178
1232
  };
1179
1233
 
@@ -1185,7 +1239,9 @@ export const RetrieveToolResponseBodyBlueprint$outboundSchema: z.ZodType<
1185
1239
  > = z.object({
1186
1240
  url: z.string(),
1187
1241
  method: RetrieveToolResponseBodyMethod$outboundSchema,
1188
- headers: z.record(z.string()).optional(),
1242
+ headers: z.record(
1243
+ z.lazy(() => RetrieveToolResponseBodyToolsHeaders$outboundSchema),
1244
+ ).optional(),
1189
1245
  body: z.record(z.any()).optional(),
1190
1246
  });
1191
1247
 
@@ -1379,7 +1435,7 @@ export const RetrieveToolResponseBody3$inboundSchema: z.ZodType<
1379
1435
  z.ZodTypeDef,
1380
1436
  unknown
1381
1437
  > = z.object({
1382
- _id: z.string().default("01K9F3PNYJMEN62QN26X2JNQKQ"),
1438
+ _id: z.string().default("01K9PVD4J6R9GRSX25DA7ZPG26"),
1383
1439
  path: z.string(),
1384
1440
  key: z.string(),
1385
1441
  display_name: z.string().optional(),
@@ -1432,7 +1488,7 @@ export const RetrieveToolResponseBody3$outboundSchema: z.ZodType<
1432
1488
  z.ZodTypeDef,
1433
1489
  RetrieveToolResponseBody3
1434
1490
  > = z.object({
1435
- id: z.string().default("01K9F3PNYJMEN62QN26X2JNQKQ"),
1491
+ id: z.string().default("01K9PVD4J6R9GRSX25DA7ZPG26"),
1436
1492
  path: z.string(),
1437
1493
  key: z.string(),
1438
1494
  displayName: z.string().optional(),
@@ -1553,7 +1609,7 @@ export const RetrieveToolResponseBody2$inboundSchema: z.ZodType<
1553
1609
  z.ZodTypeDef,
1554
1610
  unknown
1555
1611
  > = z.object({
1556
- _id: z.string().default("01K9F3PNYH9D7Y42CEDST54V3X"),
1612
+ _id: z.string().default("01K9PVD4J4DZ1D5ZP0BBM2VNCH"),
1557
1613
  path: z.string(),
1558
1614
  key: z.string(),
1559
1615
  display_name: z.string().optional(),
@@ -1605,7 +1661,7 @@ export const RetrieveToolResponseBody2$outboundSchema: z.ZodType<
1605
1661
  z.ZodTypeDef,
1606
1662
  RetrieveToolResponseBody2
1607
1663
  > = z.object({
1608
- id: z.string().default("01K9F3PNYH9D7Y42CEDST54V3X"),
1664
+ id: z.string().default("01K9PVD4J4DZ1D5ZP0BBM2VNCH"),
1609
1665
  path: z.string(),
1610
1666
  key: z.string(),
1611
1667
  displayName: z.string().optional(),
@@ -1724,7 +1780,7 @@ export const RetrieveToolResponseBody1$inboundSchema: z.ZodType<
1724
1780
  z.ZodTypeDef,
1725
1781
  unknown
1726
1782
  > = z.object({
1727
- _id: z.string().default("01K9F3PNYGYKKM4K9NE5Z3M6XN"),
1783
+ _id: z.string().default("01K9PVD4J3JV8GDDQK6S2AYX5G"),
1728
1784
  path: z.string(),
1729
1785
  key: z.string(),
1730
1786
  display_name: z.string().optional(),
@@ -1775,7 +1831,7 @@ export const RetrieveToolResponseBody1$outboundSchema: z.ZodType<
1775
1831
  z.ZodTypeDef,
1776
1832
  RetrieveToolResponseBody1
1777
1833
  > = z.object({
1778
- id: z.string().default("01K9F3PNYGYKKM4K9NE5Z3M6XN"),
1834
+ id: z.string().default("01K9PVD4J3JV8GDDQK6S2AYX5G"),
1779
1835
  path: z.string(),
1780
1836
  key: z.string(),
1781
1837
  displayName: z.string().optional(),
@@ -1018,6 +1018,11 @@ export const Method = {
1018
1018
  */
1019
1019
  export type Method = ClosedEnum<typeof Method>;
1020
1020
 
1021
+ export type Headers = {
1022
+ value: string;
1023
+ encrypted?: boolean | undefined;
1024
+ };
1025
+
1021
1026
  /**
1022
1027
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1023
1028
  */
@@ -1033,7 +1038,7 @@ export type Blueprint = {
1033
1038
  /**
1034
1039
  * The headers to send with the request.
1035
1040
  */
1036
- headers?: { [k: string]: string } | undefined;
1041
+ headers?: { [k: string]: Headers } | undefined;
1037
1042
  /**
1038
1043
  * The body to send with the request.
1039
1044
  */
@@ -4434,6 +4439,41 @@ export const Method$inboundSchema: z.ZodNativeEnum<typeof Method> = z
4434
4439
  export const Method$outboundSchema: z.ZodNativeEnum<typeof Method> =
4435
4440
  Method$inboundSchema;
4436
4441
 
4442
+ /** @internal */
4443
+ export const Headers$inboundSchema: z.ZodType<Headers, z.ZodTypeDef, unknown> =
4444
+ z.object({
4445
+ value: z.string(),
4446
+ encrypted: z.boolean().default(false),
4447
+ });
4448
+ /** @internal */
4449
+ export type Headers$Outbound = {
4450
+ value: string;
4451
+ encrypted: boolean;
4452
+ };
4453
+
4454
+ /** @internal */
4455
+ export const Headers$outboundSchema: z.ZodType<
4456
+ Headers$Outbound,
4457
+ z.ZodTypeDef,
4458
+ Headers
4459
+ > = z.object({
4460
+ value: z.string(),
4461
+ encrypted: z.boolean().default(false),
4462
+ });
4463
+
4464
+ export function headersToJSON(headers: Headers): string {
4465
+ return JSON.stringify(Headers$outboundSchema.parse(headers));
4466
+ }
4467
+ export function headersFromJSON(
4468
+ jsonString: string,
4469
+ ): SafeParseResult<Headers, SDKValidationError> {
4470
+ return safeParse(
4471
+ jsonString,
4472
+ (x) => Headers$inboundSchema.parse(JSON.parse(x)),
4473
+ `Failed to parse 'Headers' from JSON`,
4474
+ );
4475
+ }
4476
+
4437
4477
  /** @internal */
4438
4478
  export const Blueprint$inboundSchema: z.ZodType<
4439
4479
  Blueprint,
@@ -4442,14 +4482,14 @@ export const Blueprint$inboundSchema: z.ZodType<
4442
4482
  > = z.object({
4443
4483
  url: z.string(),
4444
4484
  method: Method$inboundSchema,
4445
- headers: z.record(z.string()).optional(),
4485
+ headers: z.record(z.lazy(() => Headers$inboundSchema)).optional(),
4446
4486
  body: z.record(z.any()).optional(),
4447
4487
  });
4448
4488
  /** @internal */
4449
4489
  export type Blueprint$Outbound = {
4450
4490
  url: string;
4451
4491
  method: string;
4452
- headers?: { [k: string]: string } | undefined;
4492
+ headers?: { [k: string]: Headers$Outbound } | undefined;
4453
4493
  body?: { [k: string]: any } | undefined;
4454
4494
  };
4455
4495
 
@@ -4461,7 +4501,7 @@ export const Blueprint$outboundSchema: z.ZodType<
4461
4501
  > = z.object({
4462
4502
  url: z.string(),
4463
4503
  method: Method$outboundSchema,
4464
- headers: z.record(z.string()).optional(),
4504
+ headers: z.record(z.lazy(() => Headers$outboundSchema)).optional(),
4465
4505
  body: z.record(z.any()).optional(),
4466
4506
  });
4467
4507
 
@@ -4698,7 +4738,7 @@ export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
4698
4738
  > = z.object({
4699
4739
  type:
4700
4740
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
4701
- requires_approval: z.boolean().default(false),
4741
+ requires_approval: z.boolean().optional(),
4702
4742
  }).transform((v) => {
4703
4743
  return remap$(v, {
4704
4744
  "requires_approval": "requiresApproval",
@@ -4707,7 +4747,7 @@ export const AgentToolInputRunCurrentDateTool$inboundSchema: z.ZodType<
4707
4747
  /** @internal */
4708
4748
  export type AgentToolInputRunCurrentDateTool$Outbound = {
4709
4749
  type: string;
4710
- requires_approval: boolean;
4750
+ requires_approval?: boolean | undefined;
4711
4751
  };
4712
4752
 
4713
4753
  /** @internal */
@@ -4718,7 +4758,7 @@ export const AgentToolInputRunCurrentDateTool$outboundSchema: z.ZodType<
4718
4758
  > = z.object({
4719
4759
  type:
4720
4760
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4721
- requiresApproval: z.boolean().default(false),
4761
+ requiresApproval: z.boolean().optional(),
4722
4762
  }).transform((v) => {
4723
4763
  return remap$(v, {
4724
4764
  requiresApproval: "requires_approval",
@@ -4766,7 +4806,7 @@ export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4766
4806
  > = z.object({
4767
4807
  type:
4768
4808
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
4769
- requires_approval: z.boolean().default(false),
4809
+ requires_approval: z.boolean().optional(),
4770
4810
  }).transform((v) => {
4771
4811
  return remap$(v, {
4772
4812
  "requires_approval": "requiresApproval",
@@ -4775,7 +4815,7 @@ export const AgentToolInputRunQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4775
4815
  /** @internal */
4776
4816
  export type AgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
4777
4817
  type: string;
4778
- requires_approval: boolean;
4818
+ requires_approval?: boolean | undefined;
4779
4819
  };
4780
4820
 
4781
4821
  /** @internal */
@@ -4786,7 +4826,7 @@ export const AgentToolInputRunQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4786
4826
  > = z.object({
4787
4827
  type:
4788
4828
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4789
- requiresApproval: z.boolean().default(false),
4829
+ requiresApproval: z.boolean().optional(),
4790
4830
  }).transform((v) => {
4791
4831
  return remap$(v, {
4792
4832
  requiresApproval: "requires_approval",
@@ -4842,7 +4882,7 @@ export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
4842
4882
  > = z.object({
4843
4883
  type:
4844
4884
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
4845
- requires_approval: z.boolean().default(false),
4885
+ requires_approval: z.boolean().optional(),
4846
4886
  }).transform((v) => {
4847
4887
  return remap$(v, {
4848
4888
  "requires_approval": "requiresApproval",
@@ -4851,7 +4891,7 @@ export const AgentToolInputRunRetrieveKnowledgeBasesTool$inboundSchema:
4851
4891
  /** @internal */
4852
4892
  export type AgentToolInputRunRetrieveKnowledgeBasesTool$Outbound = {
4853
4893
  type: string;
4854
- requires_approval: boolean;
4894
+ requires_approval?: boolean | undefined;
4855
4895
  };
4856
4896
 
4857
4897
  /** @internal */
@@ -4863,7 +4903,7 @@ export const AgentToolInputRunRetrieveKnowledgeBasesTool$outboundSchema:
4863
4903
  > = z.object({
4864
4904
  type:
4865
4905
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
4866
- requiresApproval: z.boolean().default(false),
4906
+ requiresApproval: z.boolean().optional(),
4867
4907
  }).transform((v) => {
4868
4908
  return remap$(v, {
4869
4909
  requiresApproval: "requires_approval",
@@ -4918,7 +4958,7 @@ export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
4918
4958
  > = z.object({
4919
4959
  type:
4920
4960
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
4921
- requires_approval: z.boolean().default(false),
4961
+ requires_approval: z.boolean().optional(),
4922
4962
  }).transform((v) => {
4923
4963
  return remap$(v, {
4924
4964
  "requires_approval": "requiresApproval",
@@ -4927,7 +4967,7 @@ export const AgentToolInputRunDeleteMemoryDocumentTool$inboundSchema: z.ZodType<
4927
4967
  /** @internal */
4928
4968
  export type AgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
4929
4969
  type: string;
4930
- requires_approval: boolean;
4970
+ requires_approval?: boolean | undefined;
4931
4971
  };
4932
4972
 
4933
4973
  /** @internal */
@@ -4939,7 +4979,7 @@ export const AgentToolInputRunDeleteMemoryDocumentTool$outboundSchema:
4939
4979
  > = z.object({
4940
4980
  type:
4941
4981
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
4942
- requiresApproval: z.boolean().default(false),
4982
+ requiresApproval: z.boolean().optional(),
4943
4983
  }).transform((v) => {
4944
4984
  return remap$(v, {
4945
4985
  requiresApproval: "requires_approval",
@@ -4994,7 +5034,7 @@ export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
4994
5034
  > = z.object({
4995
5035
  type:
4996
5036
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
4997
- requires_approval: z.boolean().default(false),
5037
+ requires_approval: z.boolean().optional(),
4998
5038
  }).transform((v) => {
4999
5039
  return remap$(v, {
5000
5040
  "requires_approval": "requiresApproval",
@@ -5003,7 +5043,7 @@ export const AgentToolInputRunRetrieveMemoryStoresTool$inboundSchema: z.ZodType<
5003
5043
  /** @internal */
5004
5044
  export type AgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
5005
5045
  type: string;
5006
- requires_approval: boolean;
5046
+ requires_approval?: boolean | undefined;
5007
5047
  };
5008
5048
 
5009
5049
  /** @internal */
@@ -5015,7 +5055,7 @@ export const AgentToolInputRunRetrieveMemoryStoresTool$outboundSchema:
5015
5055
  > = z.object({
5016
5056
  type:
5017
5057
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
5018
- requiresApproval: z.boolean().default(false),
5058
+ requiresApproval: z.boolean().optional(),
5019
5059
  }).transform((v) => {
5020
5060
  return remap$(v, {
5021
5061
  requiresApproval: "requires_approval",
@@ -5070,7 +5110,7 @@ export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
5070
5110
  > = z.object({
5071
5111
  type:
5072
5112
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
5073
- requires_approval: z.boolean().default(false),
5113
+ requires_approval: z.boolean().optional(),
5074
5114
  }).transform((v) => {
5075
5115
  return remap$(v, {
5076
5116
  "requires_approval": "requiresApproval",
@@ -5079,7 +5119,7 @@ export const AgentToolInputRunWriteMemoryStoreTool$inboundSchema: z.ZodType<
5079
5119
  /** @internal */
5080
5120
  export type AgentToolInputRunWriteMemoryStoreTool$Outbound = {
5081
5121
  type: string;
5082
- requires_approval: boolean;
5122
+ requires_approval?: boolean | undefined;
5083
5123
  };
5084
5124
 
5085
5125
  /** @internal */
@@ -5090,7 +5130,7 @@ export const AgentToolInputRunWriteMemoryStoreTool$outboundSchema: z.ZodType<
5090
5130
  > = z.object({
5091
5131
  type:
5092
5132
  RunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
5093
- requiresApproval: z.boolean().default(false),
5133
+ requiresApproval: z.boolean().optional(),
5094
5134
  }).transform((v) => {
5095
5135
  return remap$(v, {
5096
5136
  requiresApproval: "requires_approval",
@@ -5135,7 +5175,7 @@ export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
5135
5175
  unknown
5136
5176
  > = z.object({
5137
5177
  type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
5138
- requires_approval: z.boolean().default(false),
5178
+ requires_approval: z.boolean().optional(),
5139
5179
  }).transform((v) => {
5140
5180
  return remap$(v, {
5141
5181
  "requires_approval": "requiresApproval",
@@ -5144,7 +5184,7 @@ export const AgentToolInputRunQueryMemoryStoreTool$inboundSchema: z.ZodType<
5144
5184
  /** @internal */
5145
5185
  export type AgentToolInputRunQueryMemoryStoreTool$Outbound = {
5146
5186
  type: string;
5147
- requires_approval: boolean;
5187
+ requires_approval?: boolean | undefined;
5148
5188
  };
5149
5189
 
5150
5190
  /** @internal */
@@ -5154,7 +5194,7 @@ export const AgentToolInputRunQueryMemoryStoreTool$outboundSchema: z.ZodType<
5154
5194
  AgentToolInputRunQueryMemoryStoreTool
5155
5195
  > = z.object({
5156
5196
  type: RunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
5157
- requiresApproval: z.boolean().default(false),
5197
+ requiresApproval: z.boolean().optional(),
5158
5198
  }).transform((v) => {
5159
5199
  return remap$(v, {
5160
5200
  requiresApproval: "requires_approval",
@@ -5197,7 +5237,7 @@ export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
5197
5237
  unknown
5198
5238
  > = z.object({
5199
5239
  type: RunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
5200
- requires_approval: z.boolean().default(false),
5240
+ requires_approval: z.boolean().optional(),
5201
5241
  }).transform((v) => {
5202
5242
  return remap$(v, {
5203
5243
  "requires_approval": "requiresApproval",
@@ -5206,7 +5246,7 @@ export const AgentToolInputRunRetrieveAgentsTool$inboundSchema: z.ZodType<
5206
5246
  /** @internal */
5207
5247
  export type AgentToolInputRunRetrieveAgentsTool$Outbound = {
5208
5248
  type: string;
5209
- requires_approval: boolean;
5249
+ requires_approval?: boolean | undefined;
5210
5250
  };
5211
5251
 
5212
5252
  /** @internal */
@@ -5216,7 +5256,7 @@ export const AgentToolInputRunRetrieveAgentsTool$outboundSchema: z.ZodType<
5216
5256
  AgentToolInputRunRetrieveAgentsTool
5217
5257
  > = z.object({
5218
5258
  type: RunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
5219
- requiresApproval: z.boolean().default(false),
5259
+ requiresApproval: z.boolean().optional(),
5220
5260
  }).transform((v) => {
5221
5261
  return remap$(v, {
5222
5262
  requiresApproval: "requires_approval",
@@ -5259,7 +5299,7 @@ export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
5259
5299
  unknown
5260
5300
  > = z.object({
5261
5301
  type: RunAgentAgentToolInputRunAgentsType$inboundSchema,
5262
- requires_approval: z.boolean().default(false),
5302
+ requires_approval: z.boolean().optional(),
5263
5303
  }).transform((v) => {
5264
5304
  return remap$(v, {
5265
5305
  "requires_approval": "requiresApproval",
@@ -5268,7 +5308,7 @@ export const AgentToolInputRunCallSubAgentTool$inboundSchema: z.ZodType<
5268
5308
  /** @internal */
5269
5309
  export type AgentToolInputRunCallSubAgentTool$Outbound = {
5270
5310
  type: string;
5271
- requires_approval: boolean;
5311
+ requires_approval?: boolean | undefined;
5272
5312
  };
5273
5313
 
5274
5314
  /** @internal */
@@ -5278,7 +5318,7 @@ export const AgentToolInputRunCallSubAgentTool$outboundSchema: z.ZodType<
5278
5318
  AgentToolInputRunCallSubAgentTool
5279
5319
  > = z.object({
5280
5320
  type: RunAgentAgentToolInputRunAgentsType$outboundSchema,
5281
- requiresApproval: z.boolean().default(false),
5321
+ requiresApproval: z.boolean().optional(),
5282
5322
  }).transform((v) => {
5283
5323
  return remap$(v, {
5284
5324
  requiresApproval: "requires_approval",
@@ -5320,7 +5360,7 @@ export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
5320
5360
  unknown
5321
5361
  > = z.object({
5322
5362
  type: RunAgentAgentToolInputRunType$inboundSchema,
5323
- requires_approval: z.boolean().default(false),
5363
+ requires_approval: z.boolean().optional(),
5324
5364
  }).transform((v) => {
5325
5365
  return remap$(v, {
5326
5366
  "requires_approval": "requiresApproval",
@@ -5329,7 +5369,7 @@ export const AgentToolInputRunWebScraperTool$inboundSchema: z.ZodType<
5329
5369
  /** @internal */
5330
5370
  export type AgentToolInputRunWebScraperTool$Outbound = {
5331
5371
  type: string;
5332
- requires_approval: boolean;
5372
+ requires_approval?: boolean | undefined;
5333
5373
  };
5334
5374
 
5335
5375
  /** @internal */
@@ -5339,7 +5379,7 @@ export const AgentToolInputRunWebScraperTool$outboundSchema: z.ZodType<
5339
5379
  AgentToolInputRunWebScraperTool
5340
5380
  > = z.object({
5341
5381
  type: RunAgentAgentToolInputRunType$outboundSchema,
5342
- requiresApproval: z.boolean().default(false),
5382
+ requiresApproval: z.boolean().optional(),
5343
5383
  }).transform((v) => {
5344
5384
  return remap$(v, {
5345
5385
  requiresApproval: "requires_approval",
@@ -5381,7 +5421,7 @@ export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
5381
5421
  unknown
5382
5422
  > = z.object({
5383
5423
  type: AgentToolInputRunType$inboundSchema,
5384
- requires_approval: z.boolean().default(false),
5424
+ requires_approval: z.boolean().optional(),
5385
5425
  }).transform((v) => {
5386
5426
  return remap$(v, {
5387
5427
  "requires_approval": "requiresApproval",
@@ -5390,7 +5430,7 @@ export const AgentToolInputRunGoogleSearchTool$inboundSchema: z.ZodType<
5390
5430
  /** @internal */
5391
5431
  export type AgentToolInputRunGoogleSearchTool$Outbound = {
5392
5432
  type: string;
5393
- requires_approval: boolean;
5433
+ requires_approval?: boolean | undefined;
5394
5434
  };
5395
5435
 
5396
5436
  /** @internal */
@@ -5400,7 +5440,7 @@ export const AgentToolInputRunGoogleSearchTool$outboundSchema: z.ZodType<
5400
5440
  AgentToolInputRunGoogleSearchTool
5401
5441
  > = z.object({
5402
5442
  type: AgentToolInputRunType$outboundSchema,
5403
- requiresApproval: z.boolean().default(false),
5443
+ requiresApproval: z.boolean().optional(),
5404
5444
  }).transform((v) => {
5405
5445
  return remap$(v, {
5406
5446
  requiresApproval: "requires_approval",