@orq-ai/node 3.12.12 → 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.
- package/bin/mcp-server.js +124 -231
- package/bin/mcp-server.js.map +32 -32
- package/docs/sdks/knowledge/README.md +12 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/searchknowledge.d.ts +17 -246
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +16 -167
- package/models/operations/searchknowledge.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/searchknowledge.ts +29 -259
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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("
|
|
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("
|
|
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
|
|
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
|
-
|
|
343
|
+
model: string;
|
|
388
344
|
/**
|
|
389
|
-
* The
|
|
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
|
-
|
|
347
|
+
threshold?: number | undefined;
|
|
392
348
|
/**
|
|
393
|
-
* The
|
|
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
|
-
|
|
396
|
-
|
|
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
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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 |
|
|
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
|
-
|
|
3259
|
-
|
|
3260
|
-
top_k: z.number().int().
|
|
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
|
-
|
|
3278
|
-
|
|
3279
|
-
top_k
|
|
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
|
-
|
|
3293
|
-
|
|
3294
|
-
topK: z.number().int().
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
3462
|
-
|
|
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 |
|
|
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.
|
|
3528
|
-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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("
|
|
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("
|
|
291
|
+
id: z.string().default("01K5FCDSVP2CF06H2VN0TAN8F7"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -2827,8 +2827,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2827
2827
|
> = z.object({
|
|
2828
2828
|
_id: z.string(),
|
|
2829
2829
|
description: z.string(),
|
|
2830
|
-
created: z.string().default("2025-09-
|
|
2831
|
-
updated: z.string().default("2025-09-
|
|
2830
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
2831
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
2832
2832
|
guardrail_config: z.union([
|
|
2833
2833
|
z.lazy(() =>
|
|
2834
2834
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2870,8 +2870,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2870
2870
|
> = z.object({
|
|
2871
2871
|
id: z.string(),
|
|
2872
2872
|
description: z.string(),
|
|
2873
|
-
created: z.string().default("2025-09-
|
|
2874
|
-
updated: z.string().default("2025-09-
|
|
2873
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
2874
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
2875
2875
|
guardrailConfig: z.union([
|
|
2876
2876
|
z.lazy(() =>
|
|
2877
2877
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -3292,8 +3292,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3292
3292
|
> = z.object({
|
|
3293
3293
|
_id: z.string(),
|
|
3294
3294
|
description: z.string(),
|
|
3295
|
-
created: z.string().default("2025-09-
|
|
3296
|
-
updated: z.string().default("2025-09-
|
|
3295
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3296
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3297
3297
|
guardrail_config: z.union([
|
|
3298
3298
|
z.lazy(() =>
|
|
3299
3299
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -3341,8 +3341,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
3341
3341
|
> = z.object({
|
|
3342
3342
|
id: z.string(),
|
|
3343
3343
|
description: z.string(),
|
|
3344
|
-
created: z.string().default("2025-09-
|
|
3345
|
-
updated: z.string().default("2025-09-
|
|
3344
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3345
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3346
3346
|
guardrailConfig: z.union([
|
|
3347
3347
|
z.lazy(() =>
|
|
3348
3348
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3732,8 +3732,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3732
3732
|
> = z.object({
|
|
3733
3733
|
_id: z.string(),
|
|
3734
3734
|
description: z.string(),
|
|
3735
|
-
created: z.string().default("2025-09-
|
|
3736
|
-
updated: z.string().default("2025-09-
|
|
3735
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3736
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3737
3737
|
guardrail_config: z.union([
|
|
3738
3738
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3739
3739
|
z.lazy(() =>
|
|
@@ -3773,8 +3773,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3773
3773
|
> = z.object({
|
|
3774
3774
|
id: z.string(),
|
|
3775
3775
|
description: z.string(),
|
|
3776
|
-
created: z.string().default("2025-09-
|
|
3777
|
-
updated: z.string().default("2025-09-
|
|
3776
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3777
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
3778
3778
|
guardrailConfig: z.union([
|
|
3779
3779
|
z.lazy(() =>
|
|
3780
3780
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -4132,8 +4132,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
4132
4132
|
> = z.object({
|
|
4133
4133
|
_id: z.string(),
|
|
4134
4134
|
description: z.string(),
|
|
4135
|
-
created: z.string().default("2025-09-
|
|
4136
|
-
updated: z.string().default("2025-09-
|
|
4135
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
4136
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
4137
4137
|
guardrail_config: z.union([
|
|
4138
4138
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
4139
4139
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4173,8 +4173,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
4173
4173
|
> = z.object({
|
|
4174
4174
|
id: z.string(),
|
|
4175
4175
|
description: z.string(),
|
|
4176
|
-
created: z.string().default("2025-09-
|
|
4177
|
-
updated: z.string().default("2025-09-
|
|
4176
|
+
created: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
4177
|
+
updated: z.string().default("2025-09-18T21:41:50.865Z"),
|
|
4178
4178
|
guardrailConfig: z.union([
|
|
4179
4179
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4180
4180
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|