@orq-ai/node 4.0.0-rc.18 → 4.0.0-rc.20

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 (99) hide show
  1. package/bin/mcp-server.js +314 -242
  2. package/bin/mcp-server.js.map +38 -38
  3. package/examples/package-lock.json +1 -1
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +2 -2
  6. package/lib/config.js +2 -2
  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.d.ts +42 -12
  16. package/models/operations/createtool.d.ts.map +1 -1
  17. package/models/operations/createtool.js +70 -28
  18. package/models/operations/createtool.js.map +1 -1
  19. package/models/operations/duplicatetool.d.ts +17 -2
  20. package/models/operations/duplicatetool.d.ts.map +1 -1
  21. package/models/operations/duplicatetool.js +32 -14
  22. package/models/operations/duplicatetool.js.map +1 -1
  23. package/models/operations/fileget.js +2 -2
  24. package/models/operations/filelist.js +2 -2
  25. package/models/operations/fileupload.js +2 -2
  26. package/models/operations/getalltools.d.ts +17 -2
  27. package/models/operations/getalltools.d.ts.map +1 -1
  28. package/models/operations/getalltools.js +33 -13
  29. package/models/operations/getalltools.js.map +1 -1
  30. package/models/operations/getbudget.js +2 -2
  31. package/models/operations/getevals.js +28 -28
  32. package/models/operations/listbudgets.js +2 -2
  33. package/models/operations/listcontacts.js +2 -2
  34. package/models/operations/listdatasetdatapoints.js +8 -8
  35. package/models/operations/listdatasets.js +2 -2
  36. package/models/operations/listdatasources.js +2 -2
  37. package/models/operations/retrievecontact.js +2 -2
  38. package/models/operations/retrievedatapoint.js +8 -8
  39. package/models/operations/retrievedataset.js +2 -2
  40. package/models/operations/retrievedatasource.js +2 -2
  41. package/models/operations/retrievetool.d.ts +17 -2
  42. package/models/operations/retrievetool.d.ts.map +1 -1
  43. package/models/operations/retrievetool.js +32 -14
  44. package/models/operations/retrievetool.js.map +1 -1
  45. package/models/operations/runagent.d.ts +17 -2
  46. package/models/operations/runagent.d.ts.map +1 -1
  47. package/models/operations/runagent.js +23 -5
  48. package/models/operations/runagent.js.map +1 -1
  49. package/models/operations/streamrunagent.d.ts +17 -2
  50. package/models/operations/streamrunagent.d.ts.map +1 -1
  51. package/models/operations/streamrunagent.js +25 -5
  52. package/models/operations/streamrunagent.js.map +1 -1
  53. package/models/operations/updatebudget.js +2 -2
  54. package/models/operations/updatecontact.js +2 -2
  55. package/models/operations/updatedatapoint.js +8 -8
  56. package/models/operations/updatedataset.js +2 -2
  57. package/models/operations/updatedatasource.js +2 -2
  58. package/models/operations/updateeval.js +28 -28
  59. package/models/operations/updatetool.d.ts +42 -12
  60. package/models/operations/updatetool.d.ts.map +1 -1
  61. package/models/operations/updatetool.js +66 -28
  62. package/models/operations/updatetool.js.map +1 -1
  63. package/package.json +1 -1
  64. package/src/lib/config.ts +2 -2
  65. package/src/mcp-server/mcp-server.ts +1 -1
  66. package/src/mcp-server/server.ts +1 -1
  67. package/src/models/operations/createbudget.ts +2 -2
  68. package/src/models/operations/createcontact.ts +2 -2
  69. package/src/models/operations/createdataset.ts +2 -2
  70. package/src/models/operations/createdatasetitem.ts +8 -8
  71. package/src/models/operations/createdatasource.ts +2 -2
  72. package/src/models/operations/createeval.ts +28 -28
  73. package/src/models/operations/createtool.ts +149 -38
  74. package/src/models/operations/duplicatetool.ts +70 -14
  75. package/src/models/operations/fileget.ts +2 -2
  76. package/src/models/operations/filelist.ts +2 -2
  77. package/src/models/operations/fileupload.ts +2 -2
  78. package/src/models/operations/getalltools.ts +63 -14
  79. package/src/models/operations/getbudget.ts +2 -2
  80. package/src/models/operations/getevals.ts +28 -28
  81. package/src/models/operations/listbudgets.ts +2 -2
  82. package/src/models/operations/listcontacts.ts +2 -2
  83. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  84. package/src/models/operations/listdatasets.ts +2 -2
  85. package/src/models/operations/listdatasources.ts +2 -2
  86. package/src/models/operations/retrievecontact.ts +2 -2
  87. package/src/models/operations/retrievedatapoint.ts +8 -8
  88. package/src/models/operations/retrievedataset.ts +2 -2
  89. package/src/models/operations/retrievedatasource.ts +2 -2
  90. package/src/models/operations/retrievetool.ts +70 -14
  91. package/src/models/operations/runagent.ts +44 -4
  92. package/src/models/operations/streamrunagent.ts +53 -4
  93. package/src/models/operations/updatebudget.ts +2 -2
  94. package/src/models/operations/updatecontact.ts +2 -2
  95. package/src/models/operations/updatedatapoint.ts +8 -8
  96. package/src/models/operations/updatedataset.ts +2 -2
  97. package/src/models/operations/updatedatasource.ts +2 -2
  98. package/src/models/operations/updateeval.ts +28 -28
  99. package/src/models/operations/updatetool.ts +151 -36
@@ -2622,7 +2622,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
2622
2622
  source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
2623
2623
  reviewed_by_id: z.string(),
2624
2624
  reviewed_at: z.string().datetime({ offset: true }).default(
2625
- "2025-11-10T05:21:48.923Z",
2625
+ "2025-11-10T12:21:13.076Z",
2626
2626
  ).transform(v => new Date(v)),
2627
2627
  type: ListDatasetDatapointsEvaluationsDatasetsType$inboundSchema,
2628
2628
  values: z.array(z.string()),
@@ -2657,7 +2657,7 @@ export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
2657
2657
  humanReviewId: z.string(),
2658
2658
  source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
2659
2659
  reviewedById: z.string(),
2660
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.923Z"))
2660
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.076Z"))
2661
2661
  .transform(v => v.toISOString()),
2662
2662
  type: ListDatasetDatapointsEvaluationsDatasetsType$outboundSchema,
2663
2663
  values: z.array(z.string()),
@@ -2738,7 +2738,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
2738
2738
  .default("orq"),
2739
2739
  reviewed_by_id: z.string(),
2740
2740
  reviewed_at: z.string().datetime({ offset: true }).default(
2741
- "2025-11-10T05:21:48.923Z",
2741
+ "2025-11-10T12:21:13.075Z",
2742
2742
  ).transform(v => new Date(v)),
2743
2743
  type: ListDatasetDatapointsEvaluationsType$inboundSchema,
2744
2744
  value: z.number(),
@@ -2775,7 +2775,7 @@ export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
2775
2775
  source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
2776
2776
  .default("orq"),
2777
2777
  reviewedById: z.string(),
2778
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.923Z"))
2778
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.075Z"))
2779
2779
  .transform(v => v.toISOString()),
2780
2780
  type: ListDatasetDatapointsEvaluationsType$outboundSchema,
2781
2781
  value: z.number(),
@@ -2851,7 +2851,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
2851
2851
  ),
2852
2852
  reviewed_by_id: z.string(),
2853
2853
  reviewed_at: z.string().datetime({ offset: true }).default(
2854
- "2025-11-10T05:21:48.922Z",
2854
+ "2025-11-10T12:21:13.074Z",
2855
2855
  ).transform(v => new Date(v)),
2856
2856
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$inboundSchema,
2857
2857
  value: z.string(),
@@ -2889,7 +2889,7 @@ export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
2889
2889
  "orq",
2890
2890
  ),
2891
2891
  reviewedById: z.string(),
2892
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.922Z"))
2892
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.074Z"))
2893
2893
  .transform(v => v.toISOString()),
2894
2894
  type: ListDatasetDatapointsEvaluationsDatasetsResponseType$outboundSchema,
2895
2895
  value: z.string(),
@@ -3002,7 +3002,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
3002
3002
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3003
3003
  .optional(),
3004
3004
  updated: z.string().datetime({ offset: true }).default(
3005
- "2025-11-10T05:21:35.242Z",
3005
+ "2025-11-10T12:21:01.167Z",
3006
3006
  ).transform(v => new Date(v)),
3007
3007
  }).transform((v) => {
3008
3008
  return remap$(v, {
@@ -3082,7 +3082,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
3082
3082
  createdById: z.string().optional(),
3083
3083
  updatedById: z.string().optional(),
3084
3084
  created: z.date().transform(v => v.toISOString()).optional(),
3085
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
3085
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
3086
3086
  .transform(v => v.toISOString()),
3087
3087
  }).transform((v) => {
3088
3088
  return remap$(v, {
@@ -211,7 +211,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
211
211
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
212
212
  .optional(),
213
213
  updated: z.string().datetime({ offset: true }).default(
214
- "2025-11-10T05:21:35.242Z",
214
+ "2025-11-10T12:21:01.167Z",
215
215
  ).transform(v => new Date(v)),
216
216
  }).transform((v) => {
217
217
  return remap$(v, {
@@ -250,7 +250,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
250
250
  createdById: z.string().optional(),
251
251
  updatedById: z.string().optional(),
252
252
  created: z.date().transform(v => v.toISOString()).optional(),
253
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
253
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
254
254
  .transform(v => v.toISOString()),
255
255
  }).transform((v) => {
256
256
  return remap$(v, {
@@ -231,7 +231,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
231
231
  z.ZodTypeDef,
232
232
  unknown
233
233
  > = z.object({
234
- _id: z.string().default("01K9P3D694Z8HCEFYBBQWZWV84"),
234
+ _id: z.string().default("01K9PVD4N23N36K2F74V1XHSVW"),
235
235
  display_name: z.string(),
236
236
  description: z.string().optional(),
237
237
  status: ListDatasourcesStatus$inboundSchema,
@@ -274,7 +274,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
274
274
  z.ZodTypeDef,
275
275
  ListDatasourcesData
276
276
  > = z.object({
277
- id: z.string().default("01K9P3D694Z8HCEFYBBQWZWV84"),
277
+ id: z.string().default("01K9PVD4N23N36K2F74V1XHSVW"),
278
278
  displayName: z.string(),
279
279
  description: z.string().optional(),
280
280
  status: ListDatasourcesStatus$outboundSchema,
@@ -112,7 +112,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
112
112
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
113
113
  .optional(),
114
114
  updated: z.string().datetime({ offset: true }).default(
115
- "2025-11-10T05:21:35.242Z",
115
+ "2025-11-10T12:21:01.167Z",
116
116
  ).transform(v => new Date(v)),
117
117
  }).transform((v) => {
118
118
  return remap$(v, {
@@ -149,7 +149,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
149
149
  tags: z.array(z.string()).optional(),
150
150
  metadata: z.record(z.any()).optional(),
151
151
  created: z.date().transform(v => v.toISOString()).optional(),
152
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
152
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
153
153
  .transform(v => v.toISOString()),
154
154
  }).transform((v) => {
155
155
  return remap$(v, {
@@ -2511,7 +2511,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
2511
2511
  .default("orq"),
2512
2512
  reviewed_by_id: z.string(),
2513
2513
  reviewed_at: z.string().datetime({ offset: true }).default(
2514
- "2025-11-10T05:21:48.933Z",
2514
+ "2025-11-10T12:21:13.094Z",
2515
2515
  ).transform(v => new Date(v)),
2516
2516
  type: RetrieveDatapointEvaluationsDatasetsResponseType$inboundSchema,
2517
2517
  values: z.array(z.string()),
@@ -2548,7 +2548,7 @@ export const RetrieveDatapointEvaluations3$outboundSchema: z.ZodType<
2548
2548
  source: RetrieveDatapointEvaluationsDatasetsResponseSource$outboundSchema
2549
2549
  .default("orq"),
2550
2550
  reviewedById: z.string(),
2551
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.933Z"))
2551
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.094Z"))
2552
2552
  .transform(v => v.toISOString()),
2553
2553
  type: RetrieveDatapointEvaluationsDatasetsResponseType$outboundSchema,
2554
2554
  values: z.array(z.string()),
@@ -2622,7 +2622,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
2622
2622
  ),
2623
2623
  reviewed_by_id: z.string(),
2624
2624
  reviewed_at: z.string().datetime({ offset: true }).default(
2625
- "2025-11-10T05:21:48.933Z",
2625
+ "2025-11-10T12:21:13.094Z",
2626
2626
  ).transform(v => new Date(v)),
2627
2627
  type: RetrieveDatapointEvaluationsDatasetsType$inboundSchema,
2628
2628
  value: z.number(),
@@ -2660,7 +2660,7 @@ export const RetrieveDatapointEvaluations2$outboundSchema: z.ZodType<
2660
2660
  "orq",
2661
2661
  ),
2662
2662
  reviewedById: z.string(),
2663
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.933Z"))
2663
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.094Z"))
2664
2664
  .transform(v => v.toISOString()),
2665
2665
  type: RetrieveDatapointEvaluationsDatasetsType$outboundSchema,
2666
2666
  value: z.number(),
@@ -2731,7 +2731,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
2731
2731
  source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
2732
2732
  reviewed_by_id: z.string(),
2733
2733
  reviewed_at: z.string().datetime({ offset: true }).default(
2734
- "2025-11-10T05:21:48.932Z",
2734
+ "2025-11-10T12:21:13.093Z",
2735
2735
  ).transform(v => new Date(v)),
2736
2736
  type: RetrieveDatapointEvaluationsType$inboundSchema,
2737
2737
  value: z.string(),
@@ -2766,7 +2766,7 @@ export const RetrieveDatapointEvaluations1$outboundSchema: z.ZodType<
2766
2766
  humanReviewId: z.string(),
2767
2767
  source: RetrieveDatapointEvaluationsSource$outboundSchema.default("orq"),
2768
2768
  reviewedById: z.string(),
2769
- reviewedAt: z.date().default(() => new Date("2025-11-10T05:21:48.932Z"))
2769
+ reviewedAt: z.date().default(() => new Date("2025-11-10T12:21:13.093Z"))
2770
2770
  .transform(v => v.toISOString()),
2771
2771
  type: RetrieveDatapointEvaluationsType$outboundSchema,
2772
2772
  value: z.string(),
@@ -2877,7 +2877,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2877
2877
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2878
2878
  .optional(),
2879
2879
  updated: z.string().datetime({ offset: true }).default(
2880
- "2025-11-10T05:21:35.242Z",
2880
+ "2025-11-10T12:21:01.167Z",
2881
2881
  ).transform(v => new Date(v)),
2882
2882
  }).transform((v) => {
2883
2883
  return remap$(v, {
@@ -2951,7 +2951,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
2951
2951
  createdById: z.string().optional(),
2952
2952
  updatedById: z.string().optional(),
2953
2953
  created: z.date().transform(v => v.toISOString()).optional(),
2954
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
2954
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
2955
2955
  .transform(v => v.toISOString()),
2956
2956
  }).transform((v) => {
2957
2957
  return remap$(v, {
@@ -174,7 +174,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
174
174
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
175
175
  .optional(),
176
176
  updated: z.string().datetime({ offset: true }).default(
177
- "2025-11-10T05:21:35.242Z",
177
+ "2025-11-10T12:21:01.167Z",
178
178
  ).transform(v => new Date(v)),
179
179
  }).transform((v) => {
180
180
  return remap$(v, {
@@ -213,7 +213,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
213
213
  createdById: z.string().optional(),
214
214
  updatedById: z.string().optional(),
215
215
  created: z.date().transform(v => v.toISOString()).optional(),
216
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
216
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
217
217
  .transform(v => v.toISOString()),
218
218
  }).transform((v) => {
219
219
  return remap$(v, {
@@ -145,7 +145,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
145
145
  z.ZodTypeDef,
146
146
  unknown
147
147
  > = z.object({
148
- _id: z.string().default("01K9P3D696C8W5VCDZSC9AB5DK"),
148
+ _id: z.string().default("01K9PVD4N48JQXTHMT9RH9PCT6"),
149
149
  display_name: z.string(),
150
150
  description: z.string().optional(),
151
151
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -188,7 +188,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
188
188
  z.ZodTypeDef,
189
189
  RetrieveDatasourceResponseBody
190
190
  > = z.object({
191
- id: z.string().default("01K9P3D696C8W5VCDZSC9AB5DK"),
191
+ id: z.string().default("01K9PVD4N48JQXTHMT9RH9PCT6"),
192
192
  displayName: z.string(),
193
193
  description: z.string().optional(),
194
194
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -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("01K9P3D66BM6REZG4N1FNNBBNK"),
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("01K9P3D66BM6REZG4N1FNNBBNK"),
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("01K9P3D669E79P357RBWC0WPTN"),
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("01K9P3D669E79P357RBWC0WPTN"),
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("01K9P3D668XD7PHTCFK6E0E060"),
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("01K9P3D668XD7PHTCFK6E0E060"),
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("01K9P3D667CCN8BB9NJMJAZ9CA"),
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("01K9P3D667CCN8BB9NJMJAZ9CA"),
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("01K9P3D665NN1PGMMEZCP62GZ1"),
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("01K9P3D665NN1PGMMEZCP62GZ1"),
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
 
@@ -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
 
@@ -436,7 +436,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
436
436
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
437
437
  .optional(),
438
438
  updated: z.string().datetime({ offset: true }).default(
439
- "2025-11-10T05:21:35.562Z",
439
+ "2025-11-10T12:21:01.506Z",
440
440
  ).transform(v => new Date(v)),
441
441
  }).transform((v) => {
442
442
  return remap$(v, {
@@ -473,7 +473,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
473
473
  isActive: z.boolean(),
474
474
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
475
475
  created: z.date().transform(v => v.toISOString()).optional(),
476
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.562Z"))
476
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.506Z"))
477
477
  .transform(v => v.toISOString()),
478
478
  }).transform((v) => {
479
479
  return remap$(v, {
@@ -214,7 +214,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
214
214
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
215
215
  .optional(),
216
216
  updated: z.string().datetime({ offset: true }).default(
217
- "2025-11-10T05:21:35.242Z",
217
+ "2025-11-10T12:21:01.167Z",
218
218
  ).transform(v => new Date(v)),
219
219
  }).transform((v) => {
220
220
  return remap$(v, {
@@ -251,7 +251,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
251
251
  tags: z.array(z.string()).optional(),
252
252
  metadata: z.record(z.any()).optional(),
253
253
  created: z.date().transform(v => v.toISOString()).optional(),
254
- updated: z.date().default(() => new Date("2025-11-10T05:21:35.242Z"))
254
+ updated: z.date().default(() => new Date("2025-11-10T12:21:01.167Z"))
255
255
  .transform(v => v.toISOString()),
256
256
  }).transform((v) => {
257
257
  return remap$(v, {