@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
@@ -1042,6 +1042,11 @@ export type AgentToolInputRunMethod = ClosedEnum<
1042
1042
  typeof AgentToolInputRunMethod
1043
1043
  >;
1044
1044
 
1045
+ export type AgentToolInputRunHeaders = {
1046
+ value: string;
1047
+ encrypted?: boolean | undefined;
1048
+ };
1049
+
1045
1050
  /**
1046
1051
  * The blueprint for the HTTP request. The `arguments` field will be used to replace the placeholders in the `url`, `headers`, `body`, and `arguments` fields.
1047
1052
  */
@@ -1057,7 +1062,7 @@ export type AgentToolInputRunBlueprint = {
1057
1062
  /**
1058
1063
  * The headers to send with the request.
1059
1064
  */
1060
- headers?: { [k: string]: string } | undefined;
1065
+ headers?: { [k: string]: AgentToolInputRunHeaders } | undefined;
1061
1066
  /**
1062
1067
  * The body to send with the request.
1063
1068
  */
@@ -4570,6 +4575,48 @@ export const AgentToolInputRunMethod$outboundSchema: z.ZodNativeEnum<
4570
4575
  typeof AgentToolInputRunMethod
4571
4576
  > = AgentToolInputRunMethod$inboundSchema;
4572
4577
 
4578
+ /** @internal */
4579
+ export const AgentToolInputRunHeaders$inboundSchema: z.ZodType<
4580
+ AgentToolInputRunHeaders,
4581
+ z.ZodTypeDef,
4582
+ unknown
4583
+ > = z.object({
4584
+ value: z.string(),
4585
+ encrypted: z.boolean().default(false),
4586
+ });
4587
+ /** @internal */
4588
+ export type AgentToolInputRunHeaders$Outbound = {
4589
+ value: string;
4590
+ encrypted: boolean;
4591
+ };
4592
+
4593
+ /** @internal */
4594
+ export const AgentToolInputRunHeaders$outboundSchema: z.ZodType<
4595
+ AgentToolInputRunHeaders$Outbound,
4596
+ z.ZodTypeDef,
4597
+ AgentToolInputRunHeaders
4598
+ > = z.object({
4599
+ value: z.string(),
4600
+ encrypted: z.boolean().default(false),
4601
+ });
4602
+
4603
+ export function agentToolInputRunHeadersToJSON(
4604
+ agentToolInputRunHeaders: AgentToolInputRunHeaders,
4605
+ ): string {
4606
+ return JSON.stringify(
4607
+ AgentToolInputRunHeaders$outboundSchema.parse(agentToolInputRunHeaders),
4608
+ );
4609
+ }
4610
+ export function agentToolInputRunHeadersFromJSON(
4611
+ jsonString: string,
4612
+ ): SafeParseResult<AgentToolInputRunHeaders, SDKValidationError> {
4613
+ return safeParse(
4614
+ jsonString,
4615
+ (x) => AgentToolInputRunHeaders$inboundSchema.parse(JSON.parse(x)),
4616
+ `Failed to parse 'AgentToolInputRunHeaders' from JSON`,
4617
+ );
4618
+ }
4619
+
4573
4620
  /** @internal */
4574
4621
  export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
4575
4622
  AgentToolInputRunBlueprint,
@@ -4578,14 +4625,15 @@ export const AgentToolInputRunBlueprint$inboundSchema: z.ZodType<
4578
4625
  > = z.object({
4579
4626
  url: z.string(),
4580
4627
  method: AgentToolInputRunMethod$inboundSchema,
4581
- headers: z.record(z.string()).optional(),
4628
+ headers: z.record(z.lazy(() => AgentToolInputRunHeaders$inboundSchema))
4629
+ .optional(),
4582
4630
  body: z.record(z.any()).optional(),
4583
4631
  });
4584
4632
  /** @internal */
4585
4633
  export type AgentToolInputRunBlueprint$Outbound = {
4586
4634
  url: string;
4587
4635
  method: string;
4588
- headers?: { [k: string]: string } | undefined;
4636
+ headers?: { [k: string]: AgentToolInputRunHeaders$Outbound } | undefined;
4589
4637
  body?: { [k: string]: any } | undefined;
4590
4638
  };
4591
4639
 
@@ -4597,7 +4645,8 @@ export const AgentToolInputRunBlueprint$outboundSchema: z.ZodType<
4597
4645
  > = z.object({
4598
4646
  url: z.string(),
4599
4647
  method: AgentToolInputRunMethod$outboundSchema,
4600
- headers: z.record(z.string()).optional(),
4648
+ headers: z.record(z.lazy(() => AgentToolInputRunHeaders$outboundSchema))
4649
+ .optional(),
4601
4650
  body: z.record(z.any()).optional(),
4602
4651
  });
4603
4652
 
@@ -4867,7 +4916,7 @@ export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
4867
4916
  > = z.object({
4868
4917
  type:
4869
4918
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
4870
- requires_approval: z.boolean().default(false),
4919
+ requires_approval: z.boolean().optional(),
4871
4920
  }).transform((v) => {
4872
4921
  return remap$(v, {
4873
4922
  "requires_approval": "requiresApproval",
@@ -4876,7 +4925,7 @@ export const StreamRunAgentAgentToolInputRunCurrentDateTool$inboundSchema:
4876
4925
  /** @internal */
4877
4926
  export type StreamRunAgentAgentToolInputRunCurrentDateTool$Outbound = {
4878
4927
  type: string;
4879
- requires_approval: boolean;
4928
+ requires_approval?: boolean | undefined;
4880
4929
  };
4881
4930
 
4882
4931
  /** @internal */
@@ -4888,7 +4937,7 @@ export const StreamRunAgentAgentToolInputRunCurrentDateTool$outboundSchema:
4888
4937
  > = z.object({
4889
4938
  type:
4890
4939
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4891
- requiresApproval: z.boolean().default(false),
4940
+ requiresApproval: z.boolean().optional(),
4892
4941
  }).transform((v) => {
4893
4942
  return remap$(v, {
4894
4943
  requiresApproval: "requires_approval",
@@ -4944,7 +4993,7 @@ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
4944
4993
  > = z.object({
4945
4994
  type:
4946
4995
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
4947
- requires_approval: z.boolean().default(false),
4996
+ requires_approval: z.boolean().optional(),
4948
4997
  }).transform((v) => {
4949
4998
  return remap$(v, {
4950
4999
  "requires_approval": "requiresApproval",
@@ -4953,7 +5002,7 @@ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$inboundSchema
4953
5002
  /** @internal */
4954
5003
  export type StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$Outbound = {
4955
5004
  type: string;
4956
- requires_approval: boolean;
5005
+ requires_approval?: boolean | undefined;
4957
5006
  };
4958
5007
 
4959
5008
  /** @internal */
@@ -4965,7 +5014,7 @@ export const StreamRunAgentAgentToolInputRunQueryKnowledgeBaseTool$outboundSchem
4965
5014
  > = z.object({
4966
5015
  type:
4967
5016
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4968
- requiresApproval: z.boolean().default(false),
5017
+ requiresApproval: z.boolean().optional(),
4969
5018
  }).transform((v) => {
4970
5019
  return remap$(v, {
4971
5020
  requiresApproval: "requires_approval",
@@ -5021,7 +5070,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSc
5021
5070
  > = z.object({
5022
5071
  type:
5023
5072
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
5024
- requires_approval: z.boolean().default(false),
5073
+ requires_approval: z.boolean().optional(),
5025
5074
  }).transform((v) => {
5026
5075
  return remap$(v, {
5027
5076
  "requires_approval": "requiresApproval",
@@ -5031,7 +5080,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$inboundSc
5031
5080
  export type StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$Outbound =
5032
5081
  {
5033
5082
  type: string;
5034
- requires_approval: boolean;
5083
+ requires_approval?: boolean | undefined;
5035
5084
  };
5036
5085
 
5037
5086
  /** @internal */
@@ -5043,7 +5092,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveKnowledgeBasesTool$outboundS
5043
5092
  > = z.object({
5044
5093
  type:
5045
5094
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
5046
- requiresApproval: z.boolean().default(false),
5095
+ requiresApproval: z.boolean().optional(),
5047
5096
  }).transform((v) => {
5048
5097
  return remap$(v, {
5049
5098
  requiresApproval: "requires_approval",
@@ -5097,7 +5146,7 @@ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSche
5097
5146
  > = z.object({
5098
5147
  type:
5099
5148
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
5100
- requires_approval: z.boolean().default(false),
5149
+ requires_approval: z.boolean().optional(),
5101
5150
  }).transform((v) => {
5102
5151
  return remap$(v, {
5103
5152
  "requires_approval": "requiresApproval",
@@ -5106,7 +5155,7 @@ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$inboundSche
5106
5155
  /** @internal */
5107
5156
  export type StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$Outbound = {
5108
5157
  type: string;
5109
- requires_approval: boolean;
5158
+ requires_approval?: boolean | undefined;
5110
5159
  };
5111
5160
 
5112
5161
  /** @internal */
@@ -5118,7 +5167,7 @@ export const StreamRunAgentAgentToolInputRunDeleteMemoryDocumentTool$outboundSch
5118
5167
  > = z.object({
5119
5168
  type:
5120
5169
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
5121
- requiresApproval: z.boolean().default(false),
5170
+ requiresApproval: z.boolean().optional(),
5122
5171
  }).transform((v) => {
5123
5172
  return remap$(v, {
5124
5173
  requiresApproval: "requires_approval",
@@ -5172,7 +5221,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSche
5172
5221
  > = z.object({
5173
5222
  type:
5174
5223
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
5175
- requires_approval: z.boolean().default(false),
5224
+ requires_approval: z.boolean().optional(),
5176
5225
  }).transform((v) => {
5177
5226
  return remap$(v, {
5178
5227
  "requires_approval": "requiresApproval",
@@ -5181,7 +5230,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$inboundSche
5181
5230
  /** @internal */
5182
5231
  export type StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$Outbound = {
5183
5232
  type: string;
5184
- requires_approval: boolean;
5233
+ requires_approval?: boolean | undefined;
5185
5234
  };
5186
5235
 
5187
5236
  /** @internal */
@@ -5193,7 +5242,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveMemoryStoresTool$outboundSch
5193
5242
  > = z.object({
5194
5243
  type:
5195
5244
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
5196
- requiresApproval: z.boolean().default(false),
5245
+ requiresApproval: z.boolean().optional(),
5197
5246
  }).transform((v) => {
5198
5247
  return remap$(v, {
5199
5248
  requiresApproval: "requires_approval",
@@ -5247,7 +5296,7 @@ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
5247
5296
  > = z.object({
5248
5297
  type:
5249
5298
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$inboundSchema,
5250
- requires_approval: z.boolean().default(false),
5299
+ requires_approval: z.boolean().optional(),
5251
5300
  }).transform((v) => {
5252
5301
  return remap$(v, {
5253
5302
  "requires_approval": "requiresApproval",
@@ -5256,7 +5305,7 @@ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$inboundSchema:
5256
5305
  /** @internal */
5257
5306
  export type StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$Outbound = {
5258
5307
  type: string;
5259
- requires_approval: boolean;
5308
+ requires_approval?: boolean | undefined;
5260
5309
  };
5261
5310
 
5262
5311
  /** @internal */
@@ -5268,7 +5317,7 @@ export const StreamRunAgentAgentToolInputRunWriteMemoryStoreTool$outboundSchema:
5268
5317
  > = z.object({
5269
5318
  type:
5270
5319
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsToolsType$outboundSchema,
5271
- requiresApproval: z.boolean().default(false),
5320
+ requiresApproval: z.boolean().optional(),
5272
5321
  }).transform((v) => {
5273
5322
  return remap$(v, {
5274
5323
  requiresApproval: "requires_approval",
@@ -5324,7 +5373,7 @@ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
5324
5373
  > = z.object({
5325
5374
  type:
5326
5375
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$inboundSchema,
5327
- requires_approval: z.boolean().default(false),
5376
+ requires_approval: z.boolean().optional(),
5328
5377
  }).transform((v) => {
5329
5378
  return remap$(v, {
5330
5379
  "requires_approval": "requiresApproval",
@@ -5333,7 +5382,7 @@ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$inboundSchema:
5333
5382
  /** @internal */
5334
5383
  export type StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$Outbound = {
5335
5384
  type: string;
5336
- requires_approval: boolean;
5385
+ requires_approval?: boolean | undefined;
5337
5386
  };
5338
5387
 
5339
5388
  /** @internal */
@@ -5345,7 +5394,7 @@ export const StreamRunAgentAgentToolInputRunQueryMemoryStoreTool$outboundSchema:
5345
5394
  > = z.object({
5346
5395
  type:
5347
5396
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodySettingsType$outboundSchema,
5348
- requiresApproval: z.boolean().default(false),
5397
+ requiresApproval: z.boolean().optional(),
5349
5398
  }).transform((v) => {
5350
5399
  return remap$(v, {
5351
5400
  requiresApproval: "requires_approval",
@@ -5398,7 +5447,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
5398
5447
  > = z.object({
5399
5448
  type:
5400
5449
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$inboundSchema,
5401
- requires_approval: z.boolean().default(false),
5450
+ requires_approval: z.boolean().optional(),
5402
5451
  }).transform((v) => {
5403
5452
  return remap$(v, {
5404
5453
  "requires_approval": "requiresApproval",
@@ -5407,7 +5456,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$inboundSchema:
5407
5456
  /** @internal */
5408
5457
  export type StreamRunAgentAgentToolInputRunRetrieveAgentsTool$Outbound = {
5409
5458
  type: string;
5410
- requires_approval: boolean;
5459
+ requires_approval?: boolean | undefined;
5411
5460
  };
5412
5461
 
5413
5462
  /** @internal */
@@ -5419,7 +5468,7 @@ export const StreamRunAgentAgentToolInputRunRetrieveAgentsTool$outboundSchema:
5419
5468
  > = z.object({
5420
5469
  type:
5421
5470
  StreamRunAgentAgentToolInputRunAgentsRequestRequestBodyType$outboundSchema,
5422
- requiresApproval: z.boolean().default(false),
5471
+ requiresApproval: z.boolean().optional(),
5423
5472
  }).transform((v) => {
5424
5473
  return remap$(v, {
5425
5474
  requiresApproval: "requires_approval",
@@ -5469,7 +5518,7 @@ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
5469
5518
  unknown
5470
5519
  > = z.object({
5471
5520
  type: StreamRunAgentAgentToolInputRunAgentsRequestType$inboundSchema,
5472
- requires_approval: z.boolean().default(false),
5521
+ requires_approval: z.boolean().optional(),
5473
5522
  }).transform((v) => {
5474
5523
  return remap$(v, {
5475
5524
  "requires_approval": "requiresApproval",
@@ -5478,7 +5527,7 @@ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$inboundSchema:
5478
5527
  /** @internal */
5479
5528
  export type StreamRunAgentAgentToolInputRunCallSubAgentTool$Outbound = {
5480
5529
  type: string;
5481
- requires_approval: boolean;
5530
+ requires_approval?: boolean | undefined;
5482
5531
  };
5483
5532
 
5484
5533
  /** @internal */
@@ -5489,7 +5538,7 @@ export const StreamRunAgentAgentToolInputRunCallSubAgentTool$outboundSchema:
5489
5538
  StreamRunAgentAgentToolInputRunCallSubAgentTool
5490
5539
  > = z.object({
5491
5540
  type: StreamRunAgentAgentToolInputRunAgentsRequestType$outboundSchema,
5492
- requiresApproval: z.boolean().default(false),
5541
+ requiresApproval: z.boolean().optional(),
5493
5542
  }).transform((v) => {
5494
5543
  return remap$(v, {
5495
5544
  requiresApproval: "requires_approval",
@@ -5539,7 +5588,7 @@ export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
5539
5588
  unknown
5540
5589
  > = z.object({
5541
5590
  type: StreamRunAgentAgentToolInputRunAgentsType$inboundSchema,
5542
- requires_approval: z.boolean().default(false),
5591
+ requires_approval: z.boolean().optional(),
5543
5592
  }).transform((v) => {
5544
5593
  return remap$(v, {
5545
5594
  "requires_approval": "requiresApproval",
@@ -5548,7 +5597,7 @@ export const StreamRunAgentAgentToolInputRunWebScraperTool$inboundSchema:
5548
5597
  /** @internal */
5549
5598
  export type StreamRunAgentAgentToolInputRunWebScraperTool$Outbound = {
5550
5599
  type: string;
5551
- requires_approval: boolean;
5600
+ requires_approval?: boolean | undefined;
5552
5601
  };
5553
5602
 
5554
5603
  /** @internal */
@@ -5559,7 +5608,7 @@ export const StreamRunAgentAgentToolInputRunWebScraperTool$outboundSchema:
5559
5608
  StreamRunAgentAgentToolInputRunWebScraperTool
5560
5609
  > = z.object({
5561
5610
  type: StreamRunAgentAgentToolInputRunAgentsType$outboundSchema,
5562
- requiresApproval: z.boolean().default(false),
5611
+ requiresApproval: z.boolean().optional(),
5563
5612
  }).transform((v) => {
5564
5613
  return remap$(v, {
5565
5614
  requiresApproval: "requires_approval",
@@ -5609,7 +5658,7 @@ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
5609
5658
  unknown
5610
5659
  > = z.object({
5611
5660
  type: StreamRunAgentAgentToolInputRunType$inboundSchema,
5612
- requires_approval: z.boolean().default(false),
5661
+ requires_approval: z.boolean().optional(),
5613
5662
  }).transform((v) => {
5614
5663
  return remap$(v, {
5615
5664
  "requires_approval": "requiresApproval",
@@ -5618,7 +5667,7 @@ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$inboundSchema:
5618
5667
  /** @internal */
5619
5668
  export type StreamRunAgentAgentToolInputRunGoogleSearchTool$Outbound = {
5620
5669
  type: string;
5621
- requires_approval: boolean;
5670
+ requires_approval?: boolean | undefined;
5622
5671
  };
5623
5672
 
5624
5673
  /** @internal */
@@ -5629,7 +5678,7 @@ export const StreamRunAgentAgentToolInputRunGoogleSearchTool$outboundSchema:
5629
5678
  StreamRunAgentAgentToolInputRunGoogleSearchTool
5630
5679
  > = z.object({
5631
5680
  type: StreamRunAgentAgentToolInputRunType$outboundSchema,
5632
- requiresApproval: z.boolean().default(false),
5681
+ requiresApproval: z.boolean().optional(),
5633
5682
  }).transform((v) => {
5634
5683
  return remap$(v, {
5635
5684
  requiresApproval: "requires_approval",
@@ -4143,7 +4143,7 @@ export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
4143
4143
  > = z.object({
4144
4144
  type:
4145
4145
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$inboundSchema,
4146
- requires_approval: z.boolean().default(false),
4146
+ requires_approval: z.boolean().optional(),
4147
4147
  }).transform((v) => {
4148
4148
  return remap$(v, {
4149
4149
  "requires_approval": "requiresApproval",
@@ -4152,7 +4152,7 @@ export const AgentToolInputCRUDCurrentDateTool$inboundSchema: z.ZodType<
4152
4152
  /** @internal */
4153
4153
  export type AgentToolInputCRUDCurrentDateTool$Outbound = {
4154
4154
  type: string;
4155
- requires_approval: boolean;
4155
+ requires_approval?: boolean | undefined;
4156
4156
  };
4157
4157
 
4158
4158
  /** @internal */
@@ -4163,7 +4163,7 @@ export const AgentToolInputCRUDCurrentDateTool$outboundSchema: z.ZodType<
4163
4163
  > = z.object({
4164
4164
  type:
4165
4165
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools11Type$outboundSchema,
4166
- requiresApproval: z.boolean().default(false),
4166
+ requiresApproval: z.boolean().optional(),
4167
4167
  }).transform((v) => {
4168
4168
  return remap$(v, {
4169
4169
  requiresApproval: "requires_approval",
@@ -4211,7 +4211,7 @@ export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4211
4211
  > = z.object({
4212
4212
  type:
4213
4213
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$inboundSchema,
4214
- requires_approval: z.boolean().default(false),
4214
+ requires_approval: z.boolean().optional(),
4215
4215
  }).transform((v) => {
4216
4216
  return remap$(v, {
4217
4217
  "requires_approval": "requiresApproval",
@@ -4220,7 +4220,7 @@ export const AgentToolInputCRUDQueryKnowledgeBaseTool$inboundSchema: z.ZodType<
4220
4220
  /** @internal */
4221
4221
  export type AgentToolInputCRUDQueryKnowledgeBaseTool$Outbound = {
4222
4222
  type: string;
4223
- requires_approval: boolean;
4223
+ requires_approval?: boolean | undefined;
4224
4224
  };
4225
4225
 
4226
4226
  /** @internal */
@@ -4231,7 +4231,7 @@ export const AgentToolInputCRUDQueryKnowledgeBaseTool$outboundSchema: z.ZodType<
4231
4231
  > = z.object({
4232
4232
  type:
4233
4233
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools10Type$outboundSchema,
4234
- requiresApproval: z.boolean().default(false),
4234
+ requiresApproval: z.boolean().optional(),
4235
4235
  }).transform((v) => {
4236
4236
  return remap$(v, {
4237
4237
  requiresApproval: "requires_approval",
@@ -4287,7 +4287,7 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
4287
4287
  > = z.object({
4288
4288
  type:
4289
4289
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$inboundSchema,
4290
- requires_approval: z.boolean().default(false),
4290
+ requires_approval: z.boolean().optional(),
4291
4291
  }).transform((v) => {
4292
4292
  return remap$(v, {
4293
4293
  "requires_approval": "requiresApproval",
@@ -4296,7 +4296,7 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$inboundSchema:
4296
4296
  /** @internal */
4297
4297
  export type AgentToolInputCRUDRetrieveKnowledgeBasesTool$Outbound = {
4298
4298
  type: string;
4299
- requires_approval: boolean;
4299
+ requires_approval?: boolean | undefined;
4300
4300
  };
4301
4301
 
4302
4302
  /** @internal */
@@ -4308,7 +4308,7 @@ export const AgentToolInputCRUDRetrieveKnowledgeBasesTool$outboundSchema:
4308
4308
  > = z.object({
4309
4309
  type:
4310
4310
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools9Type$outboundSchema,
4311
- requiresApproval: z.boolean().default(false),
4311
+ requiresApproval: z.boolean().optional(),
4312
4312
  }).transform((v) => {
4313
4313
  return remap$(v, {
4314
4314
  requiresApproval: "requires_approval",
@@ -4361,7 +4361,7 @@ export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
4361
4361
  z.object({
4362
4362
  type:
4363
4363
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$inboundSchema,
4364
- requires_approval: z.boolean().default(false),
4364
+ requires_approval: z.boolean().optional(),
4365
4365
  }).transform((v) => {
4366
4366
  return remap$(v, {
4367
4367
  "requires_approval": "requiresApproval",
@@ -4370,7 +4370,7 @@ export const AgentToolInputCRUDDeleteMemoryDocumentTool$inboundSchema:
4370
4370
  /** @internal */
4371
4371
  export type AgentToolInputCRUDDeleteMemoryDocumentTool$Outbound = {
4372
4372
  type: string;
4373
- requires_approval: boolean;
4373
+ requires_approval?: boolean | undefined;
4374
4374
  };
4375
4375
 
4376
4376
  /** @internal */
@@ -4382,7 +4382,7 @@ export const AgentToolInputCRUDDeleteMemoryDocumentTool$outboundSchema:
4382
4382
  > = z.object({
4383
4383
  type:
4384
4384
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools8Type$outboundSchema,
4385
- requiresApproval: z.boolean().default(false),
4385
+ requiresApproval: z.boolean().optional(),
4386
4386
  }).transform((v) => {
4387
4387
  return remap$(v, {
4388
4388
  requiresApproval: "requires_approval",
@@ -4435,7 +4435,7 @@ export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
4435
4435
  z.object({
4436
4436
  type:
4437
4437
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$inboundSchema,
4438
- requires_approval: z.boolean().default(false),
4438
+ requires_approval: z.boolean().optional(),
4439
4439
  }).transform((v) => {
4440
4440
  return remap$(v, {
4441
4441
  "requires_approval": "requiresApproval",
@@ -4444,7 +4444,7 @@ export const AgentToolInputCRUDRetrieveMemoryStoresTool$inboundSchema:
4444
4444
  /** @internal */
4445
4445
  export type AgentToolInputCRUDRetrieveMemoryStoresTool$Outbound = {
4446
4446
  type: string;
4447
- requires_approval: boolean;
4447
+ requires_approval?: boolean | undefined;
4448
4448
  };
4449
4449
 
4450
4450
  /** @internal */
@@ -4456,7 +4456,7 @@ export const AgentToolInputCRUDRetrieveMemoryStoresTool$outboundSchema:
4456
4456
  > = z.object({
4457
4457
  type:
4458
4458
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsTools7Type$outboundSchema,
4459
- requiresApproval: z.boolean().default(false),
4459
+ requiresApproval: z.boolean().optional(),
4460
4460
  }).transform((v) => {
4461
4461
  return remap$(v, {
4462
4462
  requiresApproval: "requires_approval",
@@ -4511,7 +4511,7 @@ export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
4511
4511
  > = z.object({
4512
4512
  type:
4513
4513
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$inboundSchema,
4514
- requires_approval: z.boolean().default(false),
4514
+ requires_approval: z.boolean().optional(),
4515
4515
  }).transform((v) => {
4516
4516
  return remap$(v, {
4517
4517
  "requires_approval": "requiresApproval",
@@ -4520,7 +4520,7 @@ export const AgentToolInputCRUDWriteMemoryStoreTool$inboundSchema: z.ZodType<
4520
4520
  /** @internal */
4521
4521
  export type AgentToolInputCRUDWriteMemoryStoreTool$Outbound = {
4522
4522
  type: string;
4523
- requires_approval: boolean;
4523
+ requires_approval?: boolean | undefined;
4524
4524
  };
4525
4525
 
4526
4526
  /** @internal */
@@ -4531,7 +4531,7 @@ export const AgentToolInputCRUDWriteMemoryStoreTool$outboundSchema: z.ZodType<
4531
4531
  > = z.object({
4532
4532
  type:
4533
4533
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsToolsType$outboundSchema,
4534
- requiresApproval: z.boolean().default(false),
4534
+ requiresApproval: z.boolean().optional(),
4535
4535
  }).transform((v) => {
4536
4536
  return remap$(v, {
4537
4537
  requiresApproval: "requires_approval",
@@ -4581,7 +4581,7 @@ export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
4581
4581
  > = z.object({
4582
4582
  type:
4583
4583
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$inboundSchema,
4584
- requires_approval: z.boolean().default(false),
4584
+ requires_approval: z.boolean().optional(),
4585
4585
  }).transform((v) => {
4586
4586
  return remap$(v, {
4587
4587
  "requires_approval": "requiresApproval",
@@ -4590,7 +4590,7 @@ export const AgentToolInputCRUDQueryMemoryStoreTool$inboundSchema: z.ZodType<
4590
4590
  /** @internal */
4591
4591
  export type AgentToolInputCRUDQueryMemoryStoreTool$Outbound = {
4592
4592
  type: string;
4593
- requires_approval: boolean;
4593
+ requires_approval?: boolean | undefined;
4594
4594
  };
4595
4595
 
4596
4596
  /** @internal */
@@ -4601,7 +4601,7 @@ export const AgentToolInputCRUDQueryMemoryStoreTool$outboundSchema: z.ZodType<
4601
4601
  > = z.object({
4602
4602
  type:
4603
4603
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodySettingsType$outboundSchema,
4604
- requiresApproval: z.boolean().default(false),
4604
+ requiresApproval: z.boolean().optional(),
4605
4605
  }).transform((v) => {
4606
4606
  return remap$(v, {
4607
4607
  requiresApproval: "requires_approval",
@@ -4647,7 +4647,7 @@ export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
4647
4647
  unknown
4648
4648
  > = z.object({
4649
4649
  type: UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$inboundSchema,
4650
- requires_approval: z.boolean().default(false),
4650
+ requires_approval: z.boolean().optional(),
4651
4651
  }).transform((v) => {
4652
4652
  return remap$(v, {
4653
4653
  "requires_approval": "requiresApproval",
@@ -4656,7 +4656,7 @@ export const AgentToolInputCRUDRetrieveAgentsTool$inboundSchema: z.ZodType<
4656
4656
  /** @internal */
4657
4657
  export type AgentToolInputCRUDRetrieveAgentsTool$Outbound = {
4658
4658
  type: string;
4659
- requires_approval: boolean;
4659
+ requires_approval?: boolean | undefined;
4660
4660
  };
4661
4661
 
4662
4662
  /** @internal */
@@ -4667,7 +4667,7 @@ export const AgentToolInputCRUDRetrieveAgentsTool$outboundSchema: z.ZodType<
4667
4667
  > = z.object({
4668
4668
  type:
4669
4669
  UpdateAgentAgentToolInputCRUDAgentsRequestRequestBodyType$outboundSchema,
4670
- requiresApproval: z.boolean().default(false),
4670
+ requiresApproval: z.boolean().optional(),
4671
4671
  }).transform((v) => {
4672
4672
  return remap$(v, {
4673
4673
  requiresApproval: "requires_approval",
@@ -4710,7 +4710,7 @@ export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
4710
4710
  unknown
4711
4711
  > = z.object({
4712
4712
  type: UpdateAgentAgentToolInputCRUDAgentsRequestType$inboundSchema,
4713
- requires_approval: z.boolean().default(false),
4713
+ requires_approval: z.boolean().optional(),
4714
4714
  }).transform((v) => {
4715
4715
  return remap$(v, {
4716
4716
  "requires_approval": "requiresApproval",
@@ -4719,7 +4719,7 @@ export const AgentToolInputCRUDCallSubAgentTool$inboundSchema: z.ZodType<
4719
4719
  /** @internal */
4720
4720
  export type AgentToolInputCRUDCallSubAgentTool$Outbound = {
4721
4721
  type: string;
4722
- requires_approval: boolean;
4722
+ requires_approval?: boolean | undefined;
4723
4723
  };
4724
4724
 
4725
4725
  /** @internal */
@@ -4729,7 +4729,7 @@ export const AgentToolInputCRUDCallSubAgentTool$outboundSchema: z.ZodType<
4729
4729
  AgentToolInputCRUDCallSubAgentTool
4730
4730
  > = z.object({
4731
4731
  type: UpdateAgentAgentToolInputCRUDAgentsRequestType$outboundSchema,
4732
- requiresApproval: z.boolean().default(false),
4732
+ requiresApproval: z.boolean().optional(),
4733
4733
  }).transform((v) => {
4734
4734
  return remap$(v, {
4735
4735
  requiresApproval: "requires_approval",
@@ -4772,7 +4772,7 @@ export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
4772
4772
  unknown
4773
4773
  > = z.object({
4774
4774
  type: UpdateAgentAgentToolInputCRUDAgentsType$inboundSchema,
4775
- requires_approval: z.boolean().default(false),
4775
+ requires_approval: z.boolean().optional(),
4776
4776
  }).transform((v) => {
4777
4777
  return remap$(v, {
4778
4778
  "requires_approval": "requiresApproval",
@@ -4781,7 +4781,7 @@ export const AgentToolInputCRUDWebScraperTool$inboundSchema: z.ZodType<
4781
4781
  /** @internal */
4782
4782
  export type AgentToolInputCRUDWebScraperTool$Outbound = {
4783
4783
  type: string;
4784
- requires_approval: boolean;
4784
+ requires_approval?: boolean | undefined;
4785
4785
  };
4786
4786
 
4787
4787
  /** @internal */
@@ -4791,7 +4791,7 @@ export const AgentToolInputCRUDWebScraperTool$outboundSchema: z.ZodType<
4791
4791
  AgentToolInputCRUDWebScraperTool
4792
4792
  > = z.object({
4793
4793
  type: UpdateAgentAgentToolInputCRUDAgentsType$outboundSchema,
4794
- requiresApproval: z.boolean().default(false),
4794
+ requiresApproval: z.boolean().optional(),
4795
4795
  }).transform((v) => {
4796
4796
  return remap$(v, {
4797
4797
  requiresApproval: "requires_approval",
@@ -4833,7 +4833,7 @@ export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
4833
4833
  unknown
4834
4834
  > = z.object({
4835
4835
  type: UpdateAgentAgentToolInputCRUDType$inboundSchema,
4836
- requires_approval: z.boolean().default(false),
4836
+ requires_approval: z.boolean().optional(),
4837
4837
  }).transform((v) => {
4838
4838
  return remap$(v, {
4839
4839
  "requires_approval": "requiresApproval",
@@ -4842,7 +4842,7 @@ export const AgentToolInputCRUDGoogleSearchTool$inboundSchema: z.ZodType<
4842
4842
  /** @internal */
4843
4843
  export type AgentToolInputCRUDGoogleSearchTool$Outbound = {
4844
4844
  type: string;
4845
- requires_approval: boolean;
4845
+ requires_approval?: boolean | undefined;
4846
4846
  };
4847
4847
 
4848
4848
  /** @internal */
@@ -4852,7 +4852,7 @@ export const AgentToolInputCRUDGoogleSearchTool$outboundSchema: z.ZodType<
4852
4852
  AgentToolInputCRUDGoogleSearchTool
4853
4853
  > = z.object({
4854
4854
  type: UpdateAgentAgentToolInputCRUDType$outboundSchema,
4855
- requiresApproval: z.boolean().default(false),
4855
+ requiresApproval: z.boolean().optional(),
4856
4856
  }).transform((v) => {
4857
4857
  return remap$(v, {
4858
4858
  requiresApproval: "requires_approval",