@orq-ai/node 3.12.11 → 3.12.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/bin/mcp-server.js +259 -250
  2. package/bin/mcp-server.js.map +32 -32
  3. package/docs/sdks/evals/README.md +2 -0
  4. package/docs/sdks/knowledge/README.md +12 -0
  5. package/examples/package-lock.json +1 -1
  6. package/jsr.json +1 -1
  7. package/lib/config.d.ts +3 -3
  8. package/lib/config.js +3 -3
  9. package/mcp-server/mcp-server.js +1 -1
  10. package/mcp-server/server.js +1 -1
  11. package/models/operations/createbudget.js +2 -2
  12. package/models/operations/createcontact.js +2 -2
  13. package/models/operations/createdataset.js +2 -2
  14. package/models/operations/createdatasetitem.js +2 -2
  15. package/models/operations/createdatasource.js +2 -2
  16. package/models/operations/createeval.d.ts +114 -0
  17. package/models/operations/createeval.d.ts.map +1 -1
  18. package/models/operations/createeval.js +117 -21
  19. package/models/operations/createeval.js.map +1 -1
  20. package/models/operations/fileget.js +2 -2
  21. package/models/operations/filelist.js +2 -2
  22. package/models/operations/fileupload.js +2 -2
  23. package/models/operations/getbudget.js +2 -2
  24. package/models/operations/getevals.js +28 -28
  25. package/models/operations/listbudgets.js +2 -2
  26. package/models/operations/listcontacts.js +2 -2
  27. package/models/operations/listdatasetdatapoints.js +2 -2
  28. package/models/operations/listdatasets.js +2 -2
  29. package/models/operations/listdatasources.js +2 -2
  30. package/models/operations/retrievecontact.js +2 -2
  31. package/models/operations/retrievedatapoint.js +2 -2
  32. package/models/operations/retrievedataset.js +2 -2
  33. package/models/operations/retrievedatasource.js +2 -2
  34. package/models/operations/searchknowledge.d.ts +17 -246
  35. package/models/operations/searchknowledge.d.ts.map +1 -1
  36. package/models/operations/searchknowledge.js +16 -167
  37. package/models/operations/searchknowledge.js.map +1 -1
  38. package/models/operations/updatebudget.js +2 -2
  39. package/models/operations/updatecontact.js +2 -2
  40. package/models/operations/updatedatapoint.js +2 -2
  41. package/models/operations/updatedataset.js +2 -2
  42. package/models/operations/updatedatasource.js +2 -2
  43. package/models/operations/updateeval.d.ts +114 -0
  44. package/models/operations/updateeval.d.ts.map +1 -1
  45. package/models/operations/updateeval.js +122 -21
  46. package/models/operations/updateeval.js.map +1 -1
  47. package/package.json +1 -1
  48. package/src/lib/config.ts +3 -3
  49. package/src/mcp-server/mcp-server.ts +1 -1
  50. package/src/mcp-server/server.ts +1 -1
  51. package/src/models/operations/createbudget.ts +2 -2
  52. package/src/models/operations/createcontact.ts +2 -2
  53. package/src/models/operations/createdataset.ts +2 -2
  54. package/src/models/operations/createdatasetitem.ts +2 -2
  55. package/src/models/operations/createdatasource.ts +2 -2
  56. package/src/models/operations/createeval.ts +155 -16
  57. package/src/models/operations/fileget.ts +2 -2
  58. package/src/models/operations/filelist.ts +2 -2
  59. package/src/models/operations/fileupload.ts +2 -2
  60. package/src/models/operations/getbudget.ts +2 -2
  61. package/src/models/operations/getevals.ts +28 -28
  62. package/src/models/operations/listbudgets.ts +2 -2
  63. package/src/models/operations/listcontacts.ts +2 -2
  64. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  65. package/src/models/operations/listdatasets.ts +2 -2
  66. package/src/models/operations/listdatasources.ts +2 -2
  67. package/src/models/operations/retrievecontact.ts +2 -2
  68. package/src/models/operations/retrievedatapoint.ts +2 -2
  69. package/src/models/operations/retrievedataset.ts +2 -2
  70. package/src/models/operations/retrievedatasource.ts +2 -2
  71. package/src/models/operations/searchknowledge.ts +29 -259
  72. package/src/models/operations/updatebudget.ts +2 -2
  73. package/src/models/operations/updatecontact.ts +2 -2
  74. package/src/models/operations/updatedatapoint.ts +2 -2
  75. package/src/models/operations/updatedataset.ts +2 -2
  76. package/src/models/operations/updatedatasource.ts +2 -2
  77. package/src/models/operations/updateeval.ts +169 -16
@@ -470,7 +470,7 @@ export const ListBudgetsData$inboundSchema: z.ZodType<
470
470
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
471
471
  .optional(),
472
472
  updated: z.string().datetime({ offset: true }).default(
473
- "2025-09-18T16:20:48.743Z",
473
+ "2025-09-18T21:41:48.234Z",
474
474
  ).transform(v => new Date(v)),
475
475
  }).transform((v) => {
476
476
  return remap$(v, {
@@ -508,7 +508,7 @@ export const ListBudgetsData$outboundSchema: z.ZodType<
508
508
  isActive: z.boolean(),
509
509
  consumption: z.lazy(() => ListBudgetsConsumption$outboundSchema).optional(),
510
510
  created: z.date().transform(v => v.toISOString()).optional(),
511
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
511
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
512
512
  .transform(v => v.toISOString()),
513
513
  }).transform((v) => {
514
514
  return remap$(v, {
@@ -345,7 +345,7 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
345
345
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
346
346
  .optional(),
347
347
  updated: z.string().datetime({ offset: true }).default(
348
- "2025-09-18T16:20:48.743Z",
348
+ "2025-09-18T21:41:48.234Z",
349
349
  ).transform(v => new Date(v)),
350
350
  metrics: z.lazy(() => Metrics$inboundSchema),
351
351
  }).transform((v) => {
@@ -382,7 +382,7 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
382
382
  tags: z.array(z.string()).optional(),
383
383
  metadata: z.record(z.any()).optional(),
384
384
  created: z.date().transform(v => v.toISOString()).optional(),
385
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
385
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
386
386
  .transform(v => v.toISOString()),
387
387
  metrics: z.lazy(() => Metrics$outboundSchema),
388
388
  }).transform((v) => {
@@ -3100,7 +3100,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
3100
3100
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3101
3101
  .optional(),
3102
3102
  updated: z.string().datetime({ offset: true }).default(
3103
- "2025-09-18T16:20:48.743Z",
3103
+ "2025-09-18T21:41:48.234Z",
3104
3104
  ).transform(v => new Date(v)),
3105
3105
  }).transform((v) => {
3106
3106
  return remap$(v, {
@@ -3164,7 +3164,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
3164
3164
  createdById: z.string().optional(),
3165
3165
  updatedById: z.string().optional(),
3166
3166
  created: z.date().transform(v => v.toISOString()).optional(),
3167
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
3167
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
3168
3168
  .transform(v => v.toISOString()),
3169
3169
  }).transform((v) => {
3170
3170
  return remap$(v, {
@@ -253,7 +253,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
253
253
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
254
254
  .optional(),
255
255
  updated: z.string().datetime({ offset: true }).default(
256
- "2025-09-18T16:20:48.743Z",
256
+ "2025-09-18T21:41:48.234Z",
257
257
  ).transform(v => new Date(v)),
258
258
  }).transform((v) => {
259
259
  return remap$(v, {
@@ -293,7 +293,7 @@ export const ListDatasetsData$outboundSchema: z.ZodType<
293
293
  updatedById: z.string().optional(),
294
294
  metadata: z.lazy(() => ListDatasetsMetadata$outboundSchema),
295
295
  created: z.date().transform(v => v.toISOString()).optional(),
296
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
296
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
297
297
  .transform(v => v.toISOString()),
298
298
  }).transform((v) => {
299
299
  return remap$(v, {
@@ -278,7 +278,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
278
278
  z.ZodTypeDef,
279
279
  unknown
280
280
  > = z.object({
281
- _id: z.string().default("01K5ET20RKZVKEDZFS969F3WR6"),
281
+ _id: z.string().default("01K5FCDSVH9DR43FN4C656GQR0"),
282
282
  display_name: z.string(),
283
283
  description: z.string().optional(),
284
284
  status: ListDatasourcesStatus$inboundSchema,
@@ -322,7 +322,7 @@ export const ListDatasourcesData$outboundSchema: z.ZodType<
322
322
  z.ZodTypeDef,
323
323
  ListDatasourcesData
324
324
  > = z.object({
325
- id: z.string().default("01K5ET20RKZVKEDZFS969F3WR6"),
325
+ id: z.string().default("01K5FCDSVH9DR43FN4C656GQR0"),
326
326
  displayName: z.string(),
327
327
  description: z.string().optional(),
328
328
  status: ListDatasourcesStatus$outboundSchema,
@@ -127,7 +127,7 @@ export const RetrieveContactResponseBody$inboundSchema: z.ZodType<
127
127
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
128
128
  .optional(),
129
129
  updated: z.string().datetime({ offset: true }).default(
130
- "2025-09-18T16:20:48.743Z",
130
+ "2025-09-18T21:41:48.234Z",
131
131
  ).transform(v => new Date(v)),
132
132
  }).transform((v) => {
133
133
  return remap$(v, {
@@ -165,7 +165,7 @@ export const RetrieveContactResponseBody$outboundSchema: z.ZodType<
165
165
  tags: z.array(z.string()).optional(),
166
166
  metadata: z.record(z.any()).optional(),
167
167
  created: z.date().transform(v => v.toISOString()).optional(),
168
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
168
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
169
169
  .transform(v => v.toISOString()),
170
170
  }).transform((v) => {
171
171
  return remap$(v, {
@@ -2957,7 +2957,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
2957
2957
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2958
2958
  .optional(),
2959
2959
  updated: z.string().datetime({ offset: true }).default(
2960
- "2025-09-18T16:20:48.743Z",
2960
+ "2025-09-18T21:41:48.234Z",
2961
2961
  ).transform(v => new Date(v)),
2962
2962
  }).transform((v) => {
2963
2963
  return remap$(v, {
@@ -3015,7 +3015,7 @@ export const RetrieveDatapointResponseBody$outboundSchema: z.ZodType<
3015
3015
  createdById: z.string().optional(),
3016
3016
  updatedById: z.string().optional(),
3017
3017
  created: z.date().transform(v => v.toISOString()).optional(),
3018
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
3018
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
3019
3019
  .transform(v => v.toISOString()),
3020
3020
  }).transform((v) => {
3021
3021
  return remap$(v, {
@@ -201,7 +201,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
201
201
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
202
202
  .optional(),
203
203
  updated: z.string().datetime({ offset: true }).default(
204
- "2025-09-18T16:20:48.743Z",
204
+ "2025-09-18T21:41:48.234Z",
205
205
  ).transform(v => new Date(v)),
206
206
  }).transform((v) => {
207
207
  return remap$(v, {
@@ -241,7 +241,7 @@ export const RetrieveDatasetResponseBody$outboundSchema: z.ZodType<
241
241
  updatedById: z.string().optional(),
242
242
  metadata: z.lazy(() => RetrieveDatasetMetadata$outboundSchema),
243
243
  created: z.date().transform(v => v.toISOString()).optional(),
244
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
244
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
245
245
  .transform(v => v.toISOString()),
246
246
  }).transform((v) => {
247
247
  return remap$(v, {
@@ -172,7 +172,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
172
172
  z.ZodTypeDef,
173
173
  unknown
174
174
  > = z.object({
175
- _id: z.string().default("01K5ET20RM42XE14RQFDVDF4WR"),
175
+ _id: z.string().default("01K5FCDSVJM4207B5FRRPKQRT7"),
176
176
  display_name: z.string(),
177
177
  description: z.string().optional(),
178
178
  status: RetrieveDatasourceStatus$inboundSchema,
@@ -216,7 +216,7 @@ export const RetrieveDatasourceResponseBody$outboundSchema: z.ZodType<
216
216
  z.ZodTypeDef,
217
217
  RetrieveDatasourceResponseBody
218
218
  > = z.object({
219
- id: z.string().default("01K5ET20RM42XE14RQFDVDF4WR"),
219
+ id: z.string().default("01K5FCDSVJM4207B5FRRPKQRT7"),
220
220
  displayName: z.string(),
221
221
  description: z.string().optional(),
222
222
  status: RetrieveDatasourceStatus$outboundSchema,
@@ -333,105 +333,32 @@ export type SearchOptions = {
333
333
  includeScores?: boolean | undefined;
334
334
  };
335
335
 
336
- export const SearchKnowledgeProvider = {
337
- Cohere: "cohere",
338
- Openai: "openai",
339
- Anthropic: "anthropic",
340
- Huggingface: "huggingface",
341
- Replicate: "replicate",
342
- Google: "google",
343
- GoogleAi: "google-ai",
344
- Azure: "azure",
345
- Aws: "aws",
346
- Anyscale: "anyscale",
347
- Perplexity: "perplexity",
348
- Groq: "groq",
349
- Fal: "fal",
350
- Leonardoai: "leonardoai",
351
- Nvidia: "nvidia",
352
- Jina: "jina",
353
- Togetherai: "togetherai",
354
- Elevenlabs: "elevenlabs",
355
- Litellm: "litellm",
356
- Openailike: "openailike",
357
- Cerebras: "cerebras",
358
- Bytedance: "bytedance",
359
- } as const;
360
- export type SearchKnowledgeProvider = ClosedEnum<
361
- typeof SearchKnowledgeProvider
362
- >;
363
-
364
- export const SearchKnowledgeModelType = {
365
- Rerank: "rerank",
366
- } as const;
367
- export type SearchKnowledgeModelType = ClosedEnum<
368
- typeof SearchKnowledgeModelType
369
- >;
370
-
371
- export type SearchKnowledgeModelParameters = {
372
- /**
373
- * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
374
- */
375
- threshold?: number | undefined;
376
- };
377
-
378
336
  /**
379
337
  * Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
380
338
  */
381
339
  export type SearchKnowledgeRerankConfig = {
382
- enabled?: boolean | undefined;
383
- provider?: SearchKnowledgeProvider | undefined;
384
340
  /**
385
- * The number of results to return by the reranking model
341
+ * The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
386
342
  */
387
- topK?: number | undefined;
343
+ model: string;
388
344
  /**
389
- * The name of the model to use
345
+ * The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
390
346
  */
391
- model?: string | undefined;
347
+ threshold?: number | undefined;
392
348
  /**
393
- * The ID of the model in the database
349
+ * The number of top results to return after reranking. If not provided, will default to the knowledge base configured `top_k`.
394
350
  */
395
- modelDbId?: string | undefined;
396
- modelType?: SearchKnowledgeModelType | undefined;
397
- modelParameters?: SearchKnowledgeModelParameters | undefined;
398
- };
399
-
400
- export const SearchKnowledgeKnowledgeProvider = {
401
- Cohere: "cohere",
402
- Openai: "openai",
403
- Anthropic: "anthropic",
404
- Huggingface: "huggingface",
405
- Replicate: "replicate",
406
- Google: "google",
407
- GoogleAi: "google-ai",
408
- Azure: "azure",
409
- Aws: "aws",
410
- Anyscale: "anyscale",
411
- Perplexity: "perplexity",
412
- Groq: "groq",
413
- Fal: "fal",
414
- Leonardoai: "leonardoai",
415
- Nvidia: "nvidia",
416
- Jina: "jina",
417
- Togetherai: "togetherai",
418
- Elevenlabs: "elevenlabs",
419
- Litellm: "litellm",
420
- Openailike: "openailike",
421
- Cerebras: "cerebras",
422
- Bytedance: "bytedance",
423
- } as const;
424
- export type SearchKnowledgeKnowledgeProvider = ClosedEnum<
425
- typeof SearchKnowledgeKnowledgeProvider
426
- >;
351
+ topK?: number | undefined;
352
+ };
427
353
 
428
354
  /**
429
355
  * Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
430
356
  */
431
357
  export type SearchKnowledgeAgenticRagConfig = {
432
- modelDbId: string;
433
- provider: SearchKnowledgeKnowledgeProvider;
434
- integrationId?: string | null | undefined;
358
+ /**
359
+ * The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
360
+ */
361
+ model: string;
435
362
  };
436
363
 
437
364
  /**
@@ -476,7 +403,7 @@ export type SearchKnowledgeRequestBody = {
476
403
  /**
477
404
  * Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
478
405
  */
479
- rerankConfig?: SearchKnowledgeRerankConfig | null | undefined;
406
+ rerankConfig?: SearchKnowledgeRerankConfig | undefined;
480
407
  /**
481
408
  * Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
482
409
  */
@@ -3151,136 +3078,26 @@ export function searchOptionsFromJSON(
3151
3078
  );
3152
3079
  }
3153
3080
 
3154
- /** @internal */
3155
- export const SearchKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
3156
- typeof SearchKnowledgeProvider
3157
- > = z.nativeEnum(SearchKnowledgeProvider);
3158
-
3159
- /** @internal */
3160
- export const SearchKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
3161
- typeof SearchKnowledgeProvider
3162
- > = SearchKnowledgeProvider$inboundSchema;
3163
-
3164
- /**
3165
- * @internal
3166
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3167
- */
3168
- export namespace SearchKnowledgeProvider$ {
3169
- /** @deprecated use `SearchKnowledgeProvider$inboundSchema` instead. */
3170
- export const inboundSchema = SearchKnowledgeProvider$inboundSchema;
3171
- /** @deprecated use `SearchKnowledgeProvider$outboundSchema` instead. */
3172
- export const outboundSchema = SearchKnowledgeProvider$outboundSchema;
3173
- }
3174
-
3175
- /** @internal */
3176
- export const SearchKnowledgeModelType$inboundSchema: z.ZodNativeEnum<
3177
- typeof SearchKnowledgeModelType
3178
- > = z.nativeEnum(SearchKnowledgeModelType);
3179
-
3180
- /** @internal */
3181
- export const SearchKnowledgeModelType$outboundSchema: z.ZodNativeEnum<
3182
- typeof SearchKnowledgeModelType
3183
- > = SearchKnowledgeModelType$inboundSchema;
3184
-
3185
- /**
3186
- * @internal
3187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3188
- */
3189
- export namespace SearchKnowledgeModelType$ {
3190
- /** @deprecated use `SearchKnowledgeModelType$inboundSchema` instead. */
3191
- export const inboundSchema = SearchKnowledgeModelType$inboundSchema;
3192
- /** @deprecated use `SearchKnowledgeModelType$outboundSchema` instead. */
3193
- export const outboundSchema = SearchKnowledgeModelType$outboundSchema;
3194
- }
3195
-
3196
- /** @internal */
3197
- export const SearchKnowledgeModelParameters$inboundSchema: z.ZodType<
3198
- SearchKnowledgeModelParameters,
3199
- z.ZodTypeDef,
3200
- unknown
3201
- > = z.object({
3202
- threshold: z.number().optional(),
3203
- });
3204
-
3205
- /** @internal */
3206
- export type SearchKnowledgeModelParameters$Outbound = {
3207
- threshold?: number | undefined;
3208
- };
3209
-
3210
- /** @internal */
3211
- export const SearchKnowledgeModelParameters$outboundSchema: z.ZodType<
3212
- SearchKnowledgeModelParameters$Outbound,
3213
- z.ZodTypeDef,
3214
- SearchKnowledgeModelParameters
3215
- > = z.object({
3216
- threshold: z.number().optional(),
3217
- });
3218
-
3219
- /**
3220
- * @internal
3221
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3222
- */
3223
- export namespace SearchKnowledgeModelParameters$ {
3224
- /** @deprecated use `SearchKnowledgeModelParameters$inboundSchema` instead. */
3225
- export const inboundSchema = SearchKnowledgeModelParameters$inboundSchema;
3226
- /** @deprecated use `SearchKnowledgeModelParameters$outboundSchema` instead. */
3227
- export const outboundSchema = SearchKnowledgeModelParameters$outboundSchema;
3228
- /** @deprecated use `SearchKnowledgeModelParameters$Outbound` instead. */
3229
- export type Outbound = SearchKnowledgeModelParameters$Outbound;
3230
- }
3231
-
3232
- export function searchKnowledgeModelParametersToJSON(
3233
- searchKnowledgeModelParameters: SearchKnowledgeModelParameters,
3234
- ): string {
3235
- return JSON.stringify(
3236
- SearchKnowledgeModelParameters$outboundSchema.parse(
3237
- searchKnowledgeModelParameters,
3238
- ),
3239
- );
3240
- }
3241
-
3242
- export function searchKnowledgeModelParametersFromJSON(
3243
- jsonString: string,
3244
- ): SafeParseResult<SearchKnowledgeModelParameters, SDKValidationError> {
3245
- return safeParse(
3246
- jsonString,
3247
- (x) => SearchKnowledgeModelParameters$inboundSchema.parse(JSON.parse(x)),
3248
- `Failed to parse 'SearchKnowledgeModelParameters' from JSON`,
3249
- );
3250
- }
3251
-
3252
3081
  /** @internal */
3253
3082
  export const SearchKnowledgeRerankConfig$inboundSchema: z.ZodType<
3254
3083
  SearchKnowledgeRerankConfig,
3255
3084
  z.ZodTypeDef,
3256
3085
  unknown
3257
3086
  > = z.object({
3258
- enabled: z.boolean().optional(),
3259
- provider: SearchKnowledgeProvider$inboundSchema.optional(),
3260
- top_k: z.number().int().optional(),
3261
- model: z.string().optional(),
3262
- model_db_id: z.string().optional(),
3263
- model_type: SearchKnowledgeModelType$inboundSchema.optional(),
3264
- model_parameters: z.lazy(() => SearchKnowledgeModelParameters$inboundSchema)
3265
- .optional(),
3087
+ model: z.string(),
3088
+ threshold: z.number().default(0),
3089
+ top_k: z.number().int().default(10),
3266
3090
  }).transform((v) => {
3267
3091
  return remap$(v, {
3268
3092
  "top_k": "topK",
3269
- "model_db_id": "modelDbId",
3270
- "model_type": "modelType",
3271
- "model_parameters": "modelParameters",
3272
3093
  });
3273
3094
  });
3274
3095
 
3275
3096
  /** @internal */
3276
3097
  export type SearchKnowledgeRerankConfig$Outbound = {
3277
- enabled?: boolean | undefined;
3278
- provider?: string | undefined;
3279
- top_k?: number | undefined;
3280
- model?: string | undefined;
3281
- model_db_id?: string | undefined;
3282
- model_type?: string | undefined;
3283
- model_parameters?: SearchKnowledgeModelParameters$Outbound | undefined;
3098
+ model: string;
3099
+ threshold: number;
3100
+ top_k: number;
3284
3101
  };
3285
3102
 
3286
3103
  /** @internal */
@@ -3289,20 +3106,12 @@ export const SearchKnowledgeRerankConfig$outboundSchema: z.ZodType<
3289
3106
  z.ZodTypeDef,
3290
3107
  SearchKnowledgeRerankConfig
3291
3108
  > = z.object({
3292
- enabled: z.boolean().optional(),
3293
- provider: SearchKnowledgeProvider$outboundSchema.optional(),
3294
- topK: z.number().int().optional(),
3295
- model: z.string().optional(),
3296
- modelDbId: z.string().optional(),
3297
- modelType: SearchKnowledgeModelType$outboundSchema.optional(),
3298
- modelParameters: z.lazy(() => SearchKnowledgeModelParameters$outboundSchema)
3299
- .optional(),
3109
+ model: z.string(),
3110
+ threshold: z.number().default(0),
3111
+ topK: z.number().int().default(10),
3300
3112
  }).transform((v) => {
3301
3113
  return remap$(v, {
3302
3114
  topK: "top_k",
3303
- modelDbId: "model_db_id",
3304
- modelType: "model_type",
3305
- modelParameters: "model_parameters",
3306
3115
  });
3307
3116
  });
3308
3117
 
@@ -3339,48 +3148,18 @@ export function searchKnowledgeRerankConfigFromJSON(
3339
3148
  );
3340
3149
  }
3341
3150
 
3342
- /** @internal */
3343
- export const SearchKnowledgeKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
3344
- typeof SearchKnowledgeKnowledgeProvider
3345
- > = z.nativeEnum(SearchKnowledgeKnowledgeProvider);
3346
-
3347
- /** @internal */
3348
- export const SearchKnowledgeKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
3349
- typeof SearchKnowledgeKnowledgeProvider
3350
- > = SearchKnowledgeKnowledgeProvider$inboundSchema;
3351
-
3352
- /**
3353
- * @internal
3354
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3355
- */
3356
- export namespace SearchKnowledgeKnowledgeProvider$ {
3357
- /** @deprecated use `SearchKnowledgeKnowledgeProvider$inboundSchema` instead. */
3358
- export const inboundSchema = SearchKnowledgeKnowledgeProvider$inboundSchema;
3359
- /** @deprecated use `SearchKnowledgeKnowledgeProvider$outboundSchema` instead. */
3360
- export const outboundSchema = SearchKnowledgeKnowledgeProvider$outboundSchema;
3361
- }
3362
-
3363
3151
  /** @internal */
3364
3152
  export const SearchKnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
3365
3153
  SearchKnowledgeAgenticRagConfig,
3366
3154
  z.ZodTypeDef,
3367
3155
  unknown
3368
3156
  > = z.object({
3369
- model_db_id: z.string(),
3370
- provider: SearchKnowledgeKnowledgeProvider$inboundSchema,
3371
- integration_id: z.nullable(z.string()).optional(),
3372
- }).transform((v) => {
3373
- return remap$(v, {
3374
- "model_db_id": "modelDbId",
3375
- "integration_id": "integrationId",
3376
- });
3157
+ model: z.string(),
3377
3158
  });
3378
3159
 
3379
3160
  /** @internal */
3380
3161
  export type SearchKnowledgeAgenticRagConfig$Outbound = {
3381
- model_db_id: string;
3382
- provider: string;
3383
- integration_id?: string | null | undefined;
3162
+ model: string;
3384
3163
  };
3385
3164
 
3386
3165
  /** @internal */
@@ -3389,14 +3168,7 @@ export const SearchKnowledgeAgenticRagConfig$outboundSchema: z.ZodType<
3389
3168
  z.ZodTypeDef,
3390
3169
  SearchKnowledgeAgenticRagConfig
3391
3170
  > = z.object({
3392
- modelDbId: z.string(),
3393
- provider: SearchKnowledgeKnowledgeProvider$outboundSchema,
3394
- integrationId: z.nullable(z.string()).optional(),
3395
- }).transform((v) => {
3396
- return remap$(v, {
3397
- modelDbId: "model_db_id",
3398
- integrationId: "integration_id",
3399
- });
3171
+ model: z.string(),
3400
3172
  });
3401
3173
 
3402
3174
  /**
@@ -3458,9 +3230,8 @@ export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
3458
3230
  ])),
3459
3231
  ]).optional(),
3460
3232
  search_options: z.lazy(() => SearchOptions$inboundSchema).optional(),
3461
- rerank_config: z.nullable(
3462
- z.lazy(() => SearchKnowledgeRerankConfig$inboundSchema),
3463
- ).optional(),
3233
+ rerank_config: z.lazy(() => SearchKnowledgeRerankConfig$inboundSchema)
3234
+ .optional(),
3464
3235
  agentic_rag_config: z.lazy(() =>
3465
3236
  SearchKnowledgeAgenticRagConfig$inboundSchema
3466
3237
  ).optional(),
@@ -3494,7 +3265,7 @@ export type SearchKnowledgeRequestBody$Outbound = {
3494
3265
  | SearchKnowledge1Exists$Outbound;
3495
3266
  } | undefined;
3496
3267
  search_options?: SearchOptions$Outbound | undefined;
3497
- rerank_config?: SearchKnowledgeRerankConfig$Outbound | null | undefined;
3268
+ rerank_config?: SearchKnowledgeRerankConfig$Outbound | undefined;
3498
3269
  agentic_rag_config?: SearchKnowledgeAgenticRagConfig$Outbound | undefined;
3499
3270
  };
3500
3271
 
@@ -3524,9 +3295,8 @@ export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
3524
3295
  ])),
3525
3296
  ]).optional(),
3526
3297
  searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
3527
- rerankConfig: z.nullable(
3528
- z.lazy(() => SearchKnowledgeRerankConfig$outboundSchema),
3529
- ).optional(),
3298
+ rerankConfig: z.lazy(() => SearchKnowledgeRerankConfig$outboundSchema)
3299
+ .optional(),
3530
3300
  agenticRagConfig: z.lazy(() => SearchKnowledgeAgenticRagConfig$outboundSchema)
3531
3301
  .optional(),
3532
3302
  }).transform((v) => {
@@ -543,7 +543,7 @@ export const UpdateBudgetResponseBody$inboundSchema: z.ZodType<
543
543
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
544
544
  .optional(),
545
545
  updated: z.string().datetime({ offset: true }).default(
546
- "2025-09-18T16:20:48.743Z",
546
+ "2025-09-18T21:41:48.234Z",
547
547
  ).transform(v => new Date(v)),
548
548
  }).transform((v) => {
549
549
  return remap$(v, {
@@ -581,7 +581,7 @@ export const UpdateBudgetResponseBody$outboundSchema: z.ZodType<
581
581
  isActive: z.boolean(),
582
582
  consumption: z.lazy(() => UpdateBudgetConsumption$outboundSchema).optional(),
583
583
  created: z.date().transform(v => v.toISOString()).optional(),
584
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
584
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
585
585
  .transform(v => v.toISOString()),
586
586
  }).transform((v) => {
587
587
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateContactResponseBody$inboundSchema: z.ZodType<
244
244
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
245
245
  .optional(),
246
246
  updated: z.string().datetime({ offset: true }).default(
247
- "2025-09-18T16:20:48.743Z",
247
+ "2025-09-18T21:41:48.234Z",
248
248
  ).transform(v => new Date(v)),
249
249
  }).transform((v) => {
250
250
  return remap$(v, {
@@ -282,7 +282,7 @@ export const UpdateContactResponseBody$outboundSchema: z.ZodType<
282
282
  tags: z.array(z.string()).optional(),
283
283
  metadata: z.record(z.any()).optional(),
284
284
  created: z.date().transform(v => v.toISOString()).optional(),
285
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
285
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
286
286
  .transform(v => v.toISOString()),
287
287
  }).transform((v) => {
288
288
  return remap$(v, {
@@ -6018,7 +6018,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
6018
6018
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
6019
6019
  .optional(),
6020
6020
  updated: z.string().datetime({ offset: true }).default(
6021
- "2025-09-18T16:20:48.743Z",
6021
+ "2025-09-18T21:41:48.234Z",
6022
6022
  ).transform(v => new Date(v)),
6023
6023
  }).transform((v) => {
6024
6024
  return remap$(v, {
@@ -6080,7 +6080,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
6080
6080
  createdById: z.string().optional(),
6081
6081
  updatedById: z.string().optional(),
6082
6082
  created: z.date().transform(v => v.toISOString()).optional(),
6083
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
6083
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
6084
6084
  .transform(v => v.toISOString()),
6085
6085
  }).transform((v) => {
6086
6086
  return remap$(v, {
@@ -302,7 +302,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
302
302
  created: z.string().datetime({ offset: true }).transform(v => new Date(v))
303
303
  .optional(),
304
304
  updated: z.string().datetime({ offset: true }).default(
305
- "2025-09-18T16:20:48.743Z",
305
+ "2025-09-18T21:41:48.234Z",
306
306
  ).transform(v => new Date(v)),
307
307
  }).transform((v) => {
308
308
  return remap$(v, {
@@ -347,7 +347,7 @@ export const UpdateDatasetResponseBody$outboundSchema: z.ZodType<
347
347
  parentId: z.string().optional(),
348
348
  version: z.string().optional(),
349
349
  created: z.date().transform(v => v.toISOString()).optional(),
350
- updated: z.date().default(() => new Date("2025-09-18T16:20:48.743Z"))
350
+ updated: z.date().default(() => new Date("2025-09-18T21:41:48.234Z"))
351
351
  .transform(v => v.toISOString()),
352
352
  }).transform((v) => {
353
353
  return remap$(v, {
@@ -244,7 +244,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
244
244
  z.ZodTypeDef,
245
245
  unknown
246
246
  > = z.object({
247
- _id: z.string().default("01K5ET20RPKM537918DG88PY71"),
247
+ _id: z.string().default("01K5FCDSVP2CF06H2VN0TAN8F7"),
248
248
  display_name: z.string(),
249
249
  description: z.string().optional(),
250
250
  status: UpdateDatasourceStatus$inboundSchema,
@@ -288,7 +288,7 @@ export const UpdateDatasourceResponseBody$outboundSchema: z.ZodType<
288
288
  z.ZodTypeDef,
289
289
  UpdateDatasourceResponseBody
290
290
  > = z.object({
291
- id: z.string().default("01K5ET20RPKM537918DG88PY71"),
291
+ id: z.string().default("01K5FCDSVP2CF06H2VN0TAN8F7"),
292
292
  displayName: z.string(),
293
293
  description: z.string().optional(),
294
294
  status: UpdateDatasourceStatus$outboundSchema,