@orq-ai/node 3.10.20 → 3.10.22
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 +104 -104
- package/bin/mcp-server.js.map +28 -28
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- 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/getevals.js +28 -28
- 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/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/packages/orq-rc/docs/sdks/contacts/README.md +1 -1
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/contactsDelete.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/security.ts +4 -1
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +1 -1
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +406 -1
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/sdk/contacts.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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/getevals.ts +28 -28
- 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/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
|
@@ -333,6 +333,105 @@ 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
|
+
} as const;
|
|
359
|
+
export type SearchKnowledgeProvider = ClosedEnum<
|
|
360
|
+
typeof SearchKnowledgeProvider
|
|
361
|
+
>;
|
|
362
|
+
|
|
363
|
+
export const SearchKnowledgeModelType = {
|
|
364
|
+
Rerank: "rerank",
|
|
365
|
+
} as const;
|
|
366
|
+
export type SearchKnowledgeModelType = ClosedEnum<
|
|
367
|
+
typeof SearchKnowledgeModelType
|
|
368
|
+
>;
|
|
369
|
+
|
|
370
|
+
export type SearchKnowledgeModelParameters = {
|
|
371
|
+
/**
|
|
372
|
+
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
373
|
+
*/
|
|
374
|
+
threshold?: number | undefined;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
379
|
+
*/
|
|
380
|
+
export type SearchKnowledgeRerankConfig = {
|
|
381
|
+
enabled?: boolean | undefined;
|
|
382
|
+
provider?: SearchKnowledgeProvider | undefined;
|
|
383
|
+
/**
|
|
384
|
+
* The number of results to return by the reranking model
|
|
385
|
+
*/
|
|
386
|
+
topK?: number | undefined;
|
|
387
|
+
/**
|
|
388
|
+
* The name of the model to use
|
|
389
|
+
*/
|
|
390
|
+
model?: string | undefined;
|
|
391
|
+
/**
|
|
392
|
+
* The ID of the model in the database
|
|
393
|
+
*/
|
|
394
|
+
modelDbId?: string | undefined;
|
|
395
|
+
modelType?: SearchKnowledgeModelType | undefined;
|
|
396
|
+
modelParameters?: SearchKnowledgeModelParameters | undefined;
|
|
397
|
+
};
|
|
398
|
+
|
|
399
|
+
export const SearchKnowledgeKnowledgeProvider = {
|
|
400
|
+
Cohere: "cohere",
|
|
401
|
+
Openai: "openai",
|
|
402
|
+
Anthropic: "anthropic",
|
|
403
|
+
Huggingface: "huggingface",
|
|
404
|
+
Replicate: "replicate",
|
|
405
|
+
Google: "google",
|
|
406
|
+
GoogleAi: "google-ai",
|
|
407
|
+
Azure: "azure",
|
|
408
|
+
Aws: "aws",
|
|
409
|
+
Anyscale: "anyscale",
|
|
410
|
+
Perplexity: "perplexity",
|
|
411
|
+
Groq: "groq",
|
|
412
|
+
Fal: "fal",
|
|
413
|
+
Leonardoai: "leonardoai",
|
|
414
|
+
Nvidia: "nvidia",
|
|
415
|
+
Jina: "jina",
|
|
416
|
+
Togetherai: "togetherai",
|
|
417
|
+
Elevenlabs: "elevenlabs",
|
|
418
|
+
Litellm: "litellm",
|
|
419
|
+
Openailike: "openailike",
|
|
420
|
+
Cerebras: "cerebras",
|
|
421
|
+
} as const;
|
|
422
|
+
export type SearchKnowledgeKnowledgeProvider = ClosedEnum<
|
|
423
|
+
typeof SearchKnowledgeKnowledgeProvider
|
|
424
|
+
>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
428
|
+
*/
|
|
429
|
+
export type SearchKnowledgeAgenticRagConfig = {
|
|
430
|
+
modelDbId: string;
|
|
431
|
+
provider: SearchKnowledgeKnowledgeProvider;
|
|
432
|
+
integrationId?: string | null | undefined;
|
|
433
|
+
};
|
|
434
|
+
|
|
336
435
|
/**
|
|
337
436
|
* A search request for chunks in a knowledge base
|
|
338
437
|
*/
|
|
@@ -342,7 +441,7 @@ export type SearchKnowledgeRequestBody = {
|
|
|
342
441
|
*/
|
|
343
442
|
query: string;
|
|
344
443
|
/**
|
|
345
|
-
* The number of results to return. If not provided, will default to the knowledge base configured `top_k
|
|
444
|
+
* The number of results to return. If not provided, will default to the knowledge base configured `top_k`.
|
|
346
445
|
*/
|
|
347
446
|
topK?: number | undefined;
|
|
348
447
|
/**
|
|
@@ -372,6 +471,14 @@ export type SearchKnowledgeRequestBody = {
|
|
|
372
471
|
* Additional search options
|
|
373
472
|
*/
|
|
374
473
|
searchOptions?: SearchOptions | undefined;
|
|
474
|
+
/**
|
|
475
|
+
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
476
|
+
*/
|
|
477
|
+
rerankConfig?: SearchKnowledgeRerankConfig | null | undefined;
|
|
478
|
+
/**
|
|
479
|
+
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
480
|
+
*/
|
|
481
|
+
agenticRagConfig?: SearchKnowledgeAgenticRagConfig | undefined;
|
|
375
482
|
};
|
|
376
483
|
|
|
377
484
|
export type SearchKnowledgeRequest = {
|
|
@@ -3042,6 +3149,287 @@ export function searchOptionsFromJSON(
|
|
|
3042
3149
|
);
|
|
3043
3150
|
}
|
|
3044
3151
|
|
|
3152
|
+
/** @internal */
|
|
3153
|
+
export const SearchKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
|
|
3154
|
+
typeof SearchKnowledgeProvider
|
|
3155
|
+
> = z.nativeEnum(SearchKnowledgeProvider);
|
|
3156
|
+
|
|
3157
|
+
/** @internal */
|
|
3158
|
+
export const SearchKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
|
|
3159
|
+
typeof SearchKnowledgeProvider
|
|
3160
|
+
> = SearchKnowledgeProvider$inboundSchema;
|
|
3161
|
+
|
|
3162
|
+
/**
|
|
3163
|
+
* @internal
|
|
3164
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3165
|
+
*/
|
|
3166
|
+
export namespace SearchKnowledgeProvider$ {
|
|
3167
|
+
/** @deprecated use `SearchKnowledgeProvider$inboundSchema` instead. */
|
|
3168
|
+
export const inboundSchema = SearchKnowledgeProvider$inboundSchema;
|
|
3169
|
+
/** @deprecated use `SearchKnowledgeProvider$outboundSchema` instead. */
|
|
3170
|
+
export const outboundSchema = SearchKnowledgeProvider$outboundSchema;
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
/** @internal */
|
|
3174
|
+
export const SearchKnowledgeModelType$inboundSchema: z.ZodNativeEnum<
|
|
3175
|
+
typeof SearchKnowledgeModelType
|
|
3176
|
+
> = z.nativeEnum(SearchKnowledgeModelType);
|
|
3177
|
+
|
|
3178
|
+
/** @internal */
|
|
3179
|
+
export const SearchKnowledgeModelType$outboundSchema: z.ZodNativeEnum<
|
|
3180
|
+
typeof SearchKnowledgeModelType
|
|
3181
|
+
> = SearchKnowledgeModelType$inboundSchema;
|
|
3182
|
+
|
|
3183
|
+
/**
|
|
3184
|
+
* @internal
|
|
3185
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3186
|
+
*/
|
|
3187
|
+
export namespace SearchKnowledgeModelType$ {
|
|
3188
|
+
/** @deprecated use `SearchKnowledgeModelType$inboundSchema` instead. */
|
|
3189
|
+
export const inboundSchema = SearchKnowledgeModelType$inboundSchema;
|
|
3190
|
+
/** @deprecated use `SearchKnowledgeModelType$outboundSchema` instead. */
|
|
3191
|
+
export const outboundSchema = SearchKnowledgeModelType$outboundSchema;
|
|
3192
|
+
}
|
|
3193
|
+
|
|
3194
|
+
/** @internal */
|
|
3195
|
+
export const SearchKnowledgeModelParameters$inboundSchema: z.ZodType<
|
|
3196
|
+
SearchKnowledgeModelParameters,
|
|
3197
|
+
z.ZodTypeDef,
|
|
3198
|
+
unknown
|
|
3199
|
+
> = z.object({
|
|
3200
|
+
threshold: z.number().optional(),
|
|
3201
|
+
});
|
|
3202
|
+
|
|
3203
|
+
/** @internal */
|
|
3204
|
+
export type SearchKnowledgeModelParameters$Outbound = {
|
|
3205
|
+
threshold?: number | undefined;
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
/** @internal */
|
|
3209
|
+
export const SearchKnowledgeModelParameters$outboundSchema: z.ZodType<
|
|
3210
|
+
SearchKnowledgeModelParameters$Outbound,
|
|
3211
|
+
z.ZodTypeDef,
|
|
3212
|
+
SearchKnowledgeModelParameters
|
|
3213
|
+
> = z.object({
|
|
3214
|
+
threshold: z.number().optional(),
|
|
3215
|
+
});
|
|
3216
|
+
|
|
3217
|
+
/**
|
|
3218
|
+
* @internal
|
|
3219
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3220
|
+
*/
|
|
3221
|
+
export namespace SearchKnowledgeModelParameters$ {
|
|
3222
|
+
/** @deprecated use `SearchKnowledgeModelParameters$inboundSchema` instead. */
|
|
3223
|
+
export const inboundSchema = SearchKnowledgeModelParameters$inboundSchema;
|
|
3224
|
+
/** @deprecated use `SearchKnowledgeModelParameters$outboundSchema` instead. */
|
|
3225
|
+
export const outboundSchema = SearchKnowledgeModelParameters$outboundSchema;
|
|
3226
|
+
/** @deprecated use `SearchKnowledgeModelParameters$Outbound` instead. */
|
|
3227
|
+
export type Outbound = SearchKnowledgeModelParameters$Outbound;
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
export function searchKnowledgeModelParametersToJSON(
|
|
3231
|
+
searchKnowledgeModelParameters: SearchKnowledgeModelParameters,
|
|
3232
|
+
): string {
|
|
3233
|
+
return JSON.stringify(
|
|
3234
|
+
SearchKnowledgeModelParameters$outboundSchema.parse(
|
|
3235
|
+
searchKnowledgeModelParameters,
|
|
3236
|
+
),
|
|
3237
|
+
);
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
export function searchKnowledgeModelParametersFromJSON(
|
|
3241
|
+
jsonString: string,
|
|
3242
|
+
): SafeParseResult<SearchKnowledgeModelParameters, SDKValidationError> {
|
|
3243
|
+
return safeParse(
|
|
3244
|
+
jsonString,
|
|
3245
|
+
(x) => SearchKnowledgeModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
3246
|
+
`Failed to parse 'SearchKnowledgeModelParameters' from JSON`,
|
|
3247
|
+
);
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3250
|
+
/** @internal */
|
|
3251
|
+
export const SearchKnowledgeRerankConfig$inboundSchema: z.ZodType<
|
|
3252
|
+
SearchKnowledgeRerankConfig,
|
|
3253
|
+
z.ZodTypeDef,
|
|
3254
|
+
unknown
|
|
3255
|
+
> = z.object({
|
|
3256
|
+
enabled: z.boolean().optional(),
|
|
3257
|
+
provider: SearchKnowledgeProvider$inboundSchema.optional(),
|
|
3258
|
+
top_k: z.number().int().optional(),
|
|
3259
|
+
model: z.string().optional(),
|
|
3260
|
+
model_db_id: z.string().optional(),
|
|
3261
|
+
model_type: SearchKnowledgeModelType$inboundSchema.optional(),
|
|
3262
|
+
model_parameters: z.lazy(() => SearchKnowledgeModelParameters$inboundSchema)
|
|
3263
|
+
.optional(),
|
|
3264
|
+
}).transform((v) => {
|
|
3265
|
+
return remap$(v, {
|
|
3266
|
+
"top_k": "topK",
|
|
3267
|
+
"model_db_id": "modelDbId",
|
|
3268
|
+
"model_type": "modelType",
|
|
3269
|
+
"model_parameters": "modelParameters",
|
|
3270
|
+
});
|
|
3271
|
+
});
|
|
3272
|
+
|
|
3273
|
+
/** @internal */
|
|
3274
|
+
export type SearchKnowledgeRerankConfig$Outbound = {
|
|
3275
|
+
enabled?: boolean | undefined;
|
|
3276
|
+
provider?: string | undefined;
|
|
3277
|
+
top_k?: number | undefined;
|
|
3278
|
+
model?: string | undefined;
|
|
3279
|
+
model_db_id?: string | undefined;
|
|
3280
|
+
model_type?: string | undefined;
|
|
3281
|
+
model_parameters?: SearchKnowledgeModelParameters$Outbound | undefined;
|
|
3282
|
+
};
|
|
3283
|
+
|
|
3284
|
+
/** @internal */
|
|
3285
|
+
export const SearchKnowledgeRerankConfig$outboundSchema: z.ZodType<
|
|
3286
|
+
SearchKnowledgeRerankConfig$Outbound,
|
|
3287
|
+
z.ZodTypeDef,
|
|
3288
|
+
SearchKnowledgeRerankConfig
|
|
3289
|
+
> = z.object({
|
|
3290
|
+
enabled: z.boolean().optional(),
|
|
3291
|
+
provider: SearchKnowledgeProvider$outboundSchema.optional(),
|
|
3292
|
+
topK: z.number().int().optional(),
|
|
3293
|
+
model: z.string().optional(),
|
|
3294
|
+
modelDbId: z.string().optional(),
|
|
3295
|
+
modelType: SearchKnowledgeModelType$outboundSchema.optional(),
|
|
3296
|
+
modelParameters: z.lazy(() => SearchKnowledgeModelParameters$outboundSchema)
|
|
3297
|
+
.optional(),
|
|
3298
|
+
}).transform((v) => {
|
|
3299
|
+
return remap$(v, {
|
|
3300
|
+
topK: "top_k",
|
|
3301
|
+
modelDbId: "model_db_id",
|
|
3302
|
+
modelType: "model_type",
|
|
3303
|
+
modelParameters: "model_parameters",
|
|
3304
|
+
});
|
|
3305
|
+
});
|
|
3306
|
+
|
|
3307
|
+
/**
|
|
3308
|
+
* @internal
|
|
3309
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3310
|
+
*/
|
|
3311
|
+
export namespace SearchKnowledgeRerankConfig$ {
|
|
3312
|
+
/** @deprecated use `SearchKnowledgeRerankConfig$inboundSchema` instead. */
|
|
3313
|
+
export const inboundSchema = SearchKnowledgeRerankConfig$inboundSchema;
|
|
3314
|
+
/** @deprecated use `SearchKnowledgeRerankConfig$outboundSchema` instead. */
|
|
3315
|
+
export const outboundSchema = SearchKnowledgeRerankConfig$outboundSchema;
|
|
3316
|
+
/** @deprecated use `SearchKnowledgeRerankConfig$Outbound` instead. */
|
|
3317
|
+
export type Outbound = SearchKnowledgeRerankConfig$Outbound;
|
|
3318
|
+
}
|
|
3319
|
+
|
|
3320
|
+
export function searchKnowledgeRerankConfigToJSON(
|
|
3321
|
+
searchKnowledgeRerankConfig: SearchKnowledgeRerankConfig,
|
|
3322
|
+
): string {
|
|
3323
|
+
return JSON.stringify(
|
|
3324
|
+
SearchKnowledgeRerankConfig$outboundSchema.parse(
|
|
3325
|
+
searchKnowledgeRerankConfig,
|
|
3326
|
+
),
|
|
3327
|
+
);
|
|
3328
|
+
}
|
|
3329
|
+
|
|
3330
|
+
export function searchKnowledgeRerankConfigFromJSON(
|
|
3331
|
+
jsonString: string,
|
|
3332
|
+
): SafeParseResult<SearchKnowledgeRerankConfig, SDKValidationError> {
|
|
3333
|
+
return safeParse(
|
|
3334
|
+
jsonString,
|
|
3335
|
+
(x) => SearchKnowledgeRerankConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3336
|
+
`Failed to parse 'SearchKnowledgeRerankConfig' from JSON`,
|
|
3337
|
+
);
|
|
3338
|
+
}
|
|
3339
|
+
|
|
3340
|
+
/** @internal */
|
|
3341
|
+
export const SearchKnowledgeKnowledgeProvider$inboundSchema: z.ZodNativeEnum<
|
|
3342
|
+
typeof SearchKnowledgeKnowledgeProvider
|
|
3343
|
+
> = z.nativeEnum(SearchKnowledgeKnowledgeProvider);
|
|
3344
|
+
|
|
3345
|
+
/** @internal */
|
|
3346
|
+
export const SearchKnowledgeKnowledgeProvider$outboundSchema: z.ZodNativeEnum<
|
|
3347
|
+
typeof SearchKnowledgeKnowledgeProvider
|
|
3348
|
+
> = SearchKnowledgeKnowledgeProvider$inboundSchema;
|
|
3349
|
+
|
|
3350
|
+
/**
|
|
3351
|
+
* @internal
|
|
3352
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3353
|
+
*/
|
|
3354
|
+
export namespace SearchKnowledgeKnowledgeProvider$ {
|
|
3355
|
+
/** @deprecated use `SearchKnowledgeKnowledgeProvider$inboundSchema` instead. */
|
|
3356
|
+
export const inboundSchema = SearchKnowledgeKnowledgeProvider$inboundSchema;
|
|
3357
|
+
/** @deprecated use `SearchKnowledgeKnowledgeProvider$outboundSchema` instead. */
|
|
3358
|
+
export const outboundSchema = SearchKnowledgeKnowledgeProvider$outboundSchema;
|
|
3359
|
+
}
|
|
3360
|
+
|
|
3361
|
+
/** @internal */
|
|
3362
|
+
export const SearchKnowledgeAgenticRagConfig$inboundSchema: z.ZodType<
|
|
3363
|
+
SearchKnowledgeAgenticRagConfig,
|
|
3364
|
+
z.ZodTypeDef,
|
|
3365
|
+
unknown
|
|
3366
|
+
> = z.object({
|
|
3367
|
+
model_db_id: z.string(),
|
|
3368
|
+
provider: SearchKnowledgeKnowledgeProvider$inboundSchema,
|
|
3369
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
3370
|
+
}).transform((v) => {
|
|
3371
|
+
return remap$(v, {
|
|
3372
|
+
"model_db_id": "modelDbId",
|
|
3373
|
+
"integration_id": "integrationId",
|
|
3374
|
+
});
|
|
3375
|
+
});
|
|
3376
|
+
|
|
3377
|
+
/** @internal */
|
|
3378
|
+
export type SearchKnowledgeAgenticRagConfig$Outbound = {
|
|
3379
|
+
model_db_id: string;
|
|
3380
|
+
provider: string;
|
|
3381
|
+
integration_id?: string | null | undefined;
|
|
3382
|
+
};
|
|
3383
|
+
|
|
3384
|
+
/** @internal */
|
|
3385
|
+
export const SearchKnowledgeAgenticRagConfig$outboundSchema: z.ZodType<
|
|
3386
|
+
SearchKnowledgeAgenticRagConfig$Outbound,
|
|
3387
|
+
z.ZodTypeDef,
|
|
3388
|
+
SearchKnowledgeAgenticRagConfig
|
|
3389
|
+
> = z.object({
|
|
3390
|
+
modelDbId: z.string(),
|
|
3391
|
+
provider: SearchKnowledgeKnowledgeProvider$outboundSchema,
|
|
3392
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
3393
|
+
}).transform((v) => {
|
|
3394
|
+
return remap$(v, {
|
|
3395
|
+
modelDbId: "model_db_id",
|
|
3396
|
+
integrationId: "integration_id",
|
|
3397
|
+
});
|
|
3398
|
+
});
|
|
3399
|
+
|
|
3400
|
+
/**
|
|
3401
|
+
* @internal
|
|
3402
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3403
|
+
*/
|
|
3404
|
+
export namespace SearchKnowledgeAgenticRagConfig$ {
|
|
3405
|
+
/** @deprecated use `SearchKnowledgeAgenticRagConfig$inboundSchema` instead. */
|
|
3406
|
+
export const inboundSchema = SearchKnowledgeAgenticRagConfig$inboundSchema;
|
|
3407
|
+
/** @deprecated use `SearchKnowledgeAgenticRagConfig$outboundSchema` instead. */
|
|
3408
|
+
export const outboundSchema = SearchKnowledgeAgenticRagConfig$outboundSchema;
|
|
3409
|
+
/** @deprecated use `SearchKnowledgeAgenticRagConfig$Outbound` instead. */
|
|
3410
|
+
export type Outbound = SearchKnowledgeAgenticRagConfig$Outbound;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
export function searchKnowledgeAgenticRagConfigToJSON(
|
|
3414
|
+
searchKnowledgeAgenticRagConfig: SearchKnowledgeAgenticRagConfig,
|
|
3415
|
+
): string {
|
|
3416
|
+
return JSON.stringify(
|
|
3417
|
+
SearchKnowledgeAgenticRagConfig$outboundSchema.parse(
|
|
3418
|
+
searchKnowledgeAgenticRagConfig,
|
|
3419
|
+
),
|
|
3420
|
+
);
|
|
3421
|
+
}
|
|
3422
|
+
|
|
3423
|
+
export function searchKnowledgeAgenticRagConfigFromJSON(
|
|
3424
|
+
jsonString: string,
|
|
3425
|
+
): SafeParseResult<SearchKnowledgeAgenticRagConfig, SDKValidationError> {
|
|
3426
|
+
return safeParse(
|
|
3427
|
+
jsonString,
|
|
3428
|
+
(x) => SearchKnowledgeAgenticRagConfig$inboundSchema.parse(JSON.parse(x)),
|
|
3429
|
+
`Failed to parse 'SearchKnowledgeAgenticRagConfig' from JSON`,
|
|
3430
|
+
);
|
|
3431
|
+
}
|
|
3432
|
+
|
|
3045
3433
|
/** @internal */
|
|
3046
3434
|
export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
3047
3435
|
SearchKnowledgeRequestBody,
|
|
@@ -3068,12 +3456,20 @@ export const SearchKnowledgeRequestBody$inboundSchema: z.ZodType<
|
|
|
3068
3456
|
])),
|
|
3069
3457
|
]).optional(),
|
|
3070
3458
|
search_options: z.lazy(() => SearchOptions$inboundSchema).optional(),
|
|
3459
|
+
rerank_config: z.nullable(
|
|
3460
|
+
z.lazy(() => SearchKnowledgeRerankConfig$inboundSchema),
|
|
3461
|
+
).optional(),
|
|
3462
|
+
agentic_rag_config: z.lazy(() =>
|
|
3463
|
+
SearchKnowledgeAgenticRagConfig$inboundSchema
|
|
3464
|
+
).optional(),
|
|
3071
3465
|
}).transform((v) => {
|
|
3072
3466
|
return remap$(v, {
|
|
3073
3467
|
"top_k": "topK",
|
|
3074
3468
|
"search_type": "searchType",
|
|
3075
3469
|
"filter_by": "filterBy",
|
|
3076
3470
|
"search_options": "searchOptions",
|
|
3471
|
+
"rerank_config": "rerankConfig",
|
|
3472
|
+
"agentic_rag_config": "agenticRagConfig",
|
|
3077
3473
|
});
|
|
3078
3474
|
});
|
|
3079
3475
|
|
|
@@ -3096,6 +3492,8 @@ export type SearchKnowledgeRequestBody$Outbound = {
|
|
|
3096
3492
|
| SearchKnowledge1Exists$Outbound;
|
|
3097
3493
|
} | undefined;
|
|
3098
3494
|
search_options?: SearchOptions$Outbound | undefined;
|
|
3495
|
+
rerank_config?: SearchKnowledgeRerankConfig$Outbound | null | undefined;
|
|
3496
|
+
agentic_rag_config?: SearchKnowledgeAgenticRagConfig$Outbound | undefined;
|
|
3099
3497
|
};
|
|
3100
3498
|
|
|
3101
3499
|
/** @internal */
|
|
@@ -3124,12 +3522,19 @@ export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
|
3124
3522
|
])),
|
|
3125
3523
|
]).optional(),
|
|
3126
3524
|
searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
|
|
3525
|
+
rerankConfig: z.nullable(
|
|
3526
|
+
z.lazy(() => SearchKnowledgeRerankConfig$outboundSchema),
|
|
3527
|
+
).optional(),
|
|
3528
|
+
agenticRagConfig: z.lazy(() => SearchKnowledgeAgenticRagConfig$outboundSchema)
|
|
3529
|
+
.optional(),
|
|
3127
3530
|
}).transform((v) => {
|
|
3128
3531
|
return remap$(v, {
|
|
3129
3532
|
topK: "top_k",
|
|
3130
3533
|
searchType: "search_type",
|
|
3131
3534
|
filterBy: "filter_by",
|
|
3132
3535
|
searchOptions: "search_options",
|
|
3536
|
+
rerankConfig: "rerank_config",
|
|
3537
|
+
agenticRagConfig: "agentic_rag_config",
|
|
3133
3538
|
});
|
|
3134
3539
|
});
|
|
3135
3540
|
|
|
@@ -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-08-
|
|
247
|
+
"2025-08-15T12:52:59.508Z",
|
|
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-08-
|
|
285
|
+
updated: z.date().default(() => new Date("2025-08-15T12:52:59.508Z"))
|
|
286
286
|
.transform(v => v.toISOString()),
|
|
287
287
|
}).transform((v) => {
|
|
288
288
|
return remap$(v, {
|
|
@@ -5046,7 +5046,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
5046
5046
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5047
5047
|
.optional(),
|
|
5048
5048
|
updated: z.string().datetime({ offset: true }).default(
|
|
5049
|
-
"2025-08-
|
|
5049
|
+
"2025-08-15T12:52:59.508Z",
|
|
5050
5050
|
).transform(v => new Date(v)),
|
|
5051
5051
|
}).transform((v) => {
|
|
5052
5052
|
return remap$(v, {
|
|
@@ -5108,7 +5108,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
5108
5108
|
createdById: z.string().optional(),
|
|
5109
5109
|
updatedById: z.string().optional(),
|
|
5110
5110
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5111
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
5111
|
+
updated: z.date().default(() => new Date("2025-08-15T12:52:59.508Z"))
|
|
5112
5112
|
.transform(v => v.toISOString()),
|
|
5113
5113
|
}).transform((v) => {
|
|
5114
5114
|
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-08-
|
|
305
|
+
"2025-08-15T12:52:59.508Z",
|
|
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-08-
|
|
350
|
+
updated: z.date().default(() => new Date("2025-08-15T12:52:59.508Z"))
|
|
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("01K2PWN1VGJHH7RG5EXZ5J8HME"),
|
|
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("01K2PWN1VGJHH7RG5EXZ5J8HME"),
|
|
292
292
|
displayName: z.string(),
|
|
293
293
|
description: z.string().optional(),
|
|
294
294
|
status: UpdateDatasourceStatus$outboundSchema,
|
|
@@ -2674,8 +2674,8 @@ export const UpdateEvalResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2674
2674
|
> = z.object({
|
|
2675
2675
|
_id: z.string(),
|
|
2676
2676
|
description: z.string(),
|
|
2677
|
-
created: z.string().default("2025-08-
|
|
2678
|
-
updated: z.string().default("2025-08-
|
|
2677
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
2678
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
2679
2679
|
guardrail_config: z.union([
|
|
2680
2680
|
z.lazy(() =>
|
|
2681
2681
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2717,8 +2717,8 @@ export const UpdateEvalResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2717
2717
|
> = z.object({
|
|
2718
2718
|
id: z.string(),
|
|
2719
2719
|
description: z.string(),
|
|
2720
|
-
created: z.string().default("2025-08-
|
|
2721
|
-
updated: z.string().default("2025-08-
|
|
2720
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
2721
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
2722
2722
|
guardrailConfig: z.union([
|
|
2723
2723
|
z.lazy(() =>
|
|
2724
2724
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -3139,8 +3139,8 @@ export const UpdateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3139
3139
|
> = z.object({
|
|
3140
3140
|
_id: z.string(),
|
|
3141
3141
|
description: z.string(),
|
|
3142
|
-
created: z.string().default("2025-08-
|
|
3143
|
-
updated: z.string().default("2025-08-
|
|
3142
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3143
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3144
3144
|
guardrail_config: z.union([
|
|
3145
3145
|
z.lazy(() =>
|
|
3146
3146
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -3188,8 +3188,8 @@ export const UpdateEvalResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
3188
3188
|
> = z.object({
|
|
3189
3189
|
id: z.string(),
|
|
3190
3190
|
description: z.string(),
|
|
3191
|
-
created: z.string().default("2025-08-
|
|
3192
|
-
updated: z.string().default("2025-08-
|
|
3191
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3192
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3193
3193
|
guardrailConfig: z.union([
|
|
3194
3194
|
z.lazy(() =>
|
|
3195
3195
|
UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3579,8 +3579,8 @@ export const UpdateEvalResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3579
3579
|
> = z.object({
|
|
3580
3580
|
_id: z.string(),
|
|
3581
3581
|
description: z.string(),
|
|
3582
|
-
created: z.string().default("2025-08-
|
|
3583
|
-
updated: z.string().default("2025-08-
|
|
3582
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3583
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3584
3584
|
guardrail_config: z.union([
|
|
3585
3585
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3586
3586
|
z.lazy(() =>
|
|
@@ -3620,8 +3620,8 @@ export const UpdateEvalResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3620
3620
|
> = z.object({
|
|
3621
3621
|
id: z.string(),
|
|
3622
3622
|
description: z.string(),
|
|
3623
|
-
created: z.string().default("2025-08-
|
|
3624
|
-
updated: z.string().default("2025-08-
|
|
3623
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3624
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3625
3625
|
guardrailConfig: z.union([
|
|
3626
3626
|
z.lazy(() =>
|
|
3627
3627
|
UpdateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3979,8 +3979,8 @@ export const UpdateEvalResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3979
3979
|
> = z.object({
|
|
3980
3980
|
_id: z.string(),
|
|
3981
3981
|
description: z.string(),
|
|
3982
|
-
created: z.string().default("2025-08-
|
|
3983
|
-
updated: z.string().default("2025-08-
|
|
3982
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3983
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
3984
3984
|
guardrail_config: z.union([
|
|
3985
3985
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3986
3986
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4020,8 +4020,8 @@ export const UpdateEvalResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
4020
4020
|
> = z.object({
|
|
4021
4021
|
id: z.string(),
|
|
4022
4022
|
description: z.string(),
|
|
4023
|
-
created: z.string().default("2025-08-
|
|
4024
|
-
updated: z.string().default("2025-08-
|
|
4023
|
+
created: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
4024
|
+
updated: z.string().default("2025-08-15T12:53:01.897Z"),
|
|
4025
4025
|
guardrailConfig: z.union([
|
|
4026
4026
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
4027
4027
|
z.lazy(() => UpdateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -84,7 +84,7 @@ export class Contacts extends ClientSDK {
|
|
|
84
84
|
* Delete a contact
|
|
85
85
|
*
|
|
86
86
|
* @remarks
|
|
87
|
-
* Permanently deletes a contact from your workspace. This action cannot be undone.
|
|
87
|
+
* Permanently deletes a contact from your workspace and cleans up associated budget configurations. This action cannot be undone.
|
|
88
88
|
*/
|
|
89
89
|
async delete(
|
|
90
90
|
request: operations.DeleteContactRequest,
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "3.10.
|
|
72
|
-
genVersion: "2.
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 3.10.
|
|
71
|
+
sdkVersion: "3.10.22",
|
|
72
|
+
genVersion: "2.684.0",
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 3.10.22 2.684.0 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -84,7 +84,10 @@ type SecurityInputOAuth2 = {
|
|
|
84
84
|
type SecurityInputOAuth2ClientCredentials = {
|
|
85
85
|
type: "oauth2:client_credentials";
|
|
86
86
|
value:
|
|
87
|
-
| {
|
|
87
|
+
| {
|
|
88
|
+
clientID?: string | undefined;
|
|
89
|
+
clientSecret?: string | undefined;
|
|
90
|
+
}
|
|
88
91
|
| null
|
|
89
92
|
| string
|
|
90
93
|
| undefined;
|