@viu/emporix-sdk 4.6.5 → 4.6.7
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/CHANGELOG.md +16 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -3506,6 +3506,13 @@ type BaseLlm = {
|
|
|
3506
3506
|
* The limit of tokens which agent can burn during one request session.
|
|
3507
3507
|
*/
|
|
3508
3508
|
maxTokens?: number;
|
|
3509
|
+
/**
|
|
3510
|
+
* Optional JSON object of extra model parameters. Use it to pass provider-specific options, for example reasoning settings.
|
|
3511
|
+
*
|
|
3512
|
+
*/
|
|
3513
|
+
additionalParams?: {
|
|
3514
|
+
[key: string]: unknown;
|
|
3515
|
+
};
|
|
3509
3516
|
};
|
|
3510
3517
|
type EmporixLlm = BaseLlm & {
|
|
3511
3518
|
/**
|
|
@@ -9497,13 +9504,16 @@ type FilterNode = {
|
|
|
9497
9504
|
* * `BETWEEN` requires an array of two values. The range is inclusive.
|
|
9498
9505
|
* * `IN` and `NOT_IN` require a non-empty array.
|
|
9499
9506
|
* * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
|
|
9507
|
+
* * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
|
|
9500
9508
|
*/
|
|
9501
9509
|
value?: unknown;
|
|
9502
9510
|
};
|
|
9503
9511
|
/**
|
|
9504
9512
|
* Comparison applied to `field` and `value`.
|
|
9513
|
+
*
|
|
9514
|
+
* `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
|
|
9505
9515
|
*/
|
|
9506
|
-
type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
|
|
9516
|
+
type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
|
|
9507
9517
|
/**
|
|
9508
9518
|
* A matching document. Stored fields are returned with their API names. The identifier is `id`.
|
|
9509
9519
|
*
|
|
@@ -9611,13 +9621,13 @@ declare class SearchService {
|
|
|
9611
9621
|
* Search the documents of one custom schema type. Paging, `sort` and
|
|
9612
9622
|
* `fields` travel as query parameters, not in the body.
|
|
9613
9623
|
*
|
|
9614
|
-
* Filter and sort fields must be indexed on the index the search uses
|
|
9615
|
-
* call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
9624
|
+
* Filter and sort fields must be indexed on the index the search uses —
|
|
9625
|
+
* `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
9616
9626
|
* `404` when no saved search has that id for `type`, and `502` means the
|
|
9617
9627
|
* Schema Service could not confirm that `type` is a custom entity.
|
|
9618
9628
|
*
|
|
9619
9629
|
* @example
|
|
9620
|
-
* const hits = await client.search.search("
|
|
9630
|
+
* const hits = await client.search.search("VEHICLE", {
|
|
9621
9631
|
* index: "vehicles",
|
|
9622
9632
|
* queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
|
|
9623
9633
|
* filters: { field: "status", operator: "EQ", value: "ACTIVE" },
|
package/dist/index.d.ts
CHANGED
|
@@ -3506,6 +3506,13 @@ type BaseLlm = {
|
|
|
3506
3506
|
* The limit of tokens which agent can burn during one request session.
|
|
3507
3507
|
*/
|
|
3508
3508
|
maxTokens?: number;
|
|
3509
|
+
/**
|
|
3510
|
+
* Optional JSON object of extra model parameters. Use it to pass provider-specific options, for example reasoning settings.
|
|
3511
|
+
*
|
|
3512
|
+
*/
|
|
3513
|
+
additionalParams?: {
|
|
3514
|
+
[key: string]: unknown;
|
|
3515
|
+
};
|
|
3509
3516
|
};
|
|
3510
3517
|
type EmporixLlm = BaseLlm & {
|
|
3511
3518
|
/**
|
|
@@ -9497,13 +9504,16 @@ type FilterNode = {
|
|
|
9497
9504
|
* * `BETWEEN` requires an array of two values. The range is inclusive.
|
|
9498
9505
|
* * `IN` and `NOT_IN` require a non-empty array.
|
|
9499
9506
|
* * `EXISTS` requires a boolean. `true` matches documents where the field is present. `false` matches documents where the field is absent.
|
|
9507
|
+
* * `CONTAINS` requires a non-blank string. The field must have `text: true` in the index.
|
|
9500
9508
|
*/
|
|
9501
9509
|
value?: unknown;
|
|
9502
9510
|
};
|
|
9503
9511
|
/**
|
|
9504
9512
|
* Comparison applied to `field` and `value`.
|
|
9513
|
+
*
|
|
9514
|
+
* `CONTAINS` performs a case- and diacritic-insensitive substring match. The service wraps the value in `*` and escapes `\`, `*`, and `?` within it. Spaces remain part of the value.
|
|
9505
9515
|
*/
|
|
9506
|
-
type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS';
|
|
9516
|
+
type FilterOperator = 'EQ' | 'NEQ' | 'GT' | 'GTE' | 'LT' | 'LTE' | 'BETWEEN' | 'IN' | 'NOT_IN' | 'EXISTS' | 'CONTAINS';
|
|
9507
9517
|
/**
|
|
9508
9518
|
* A matching document. Stored fields are returned with their API names. The identifier is `id`.
|
|
9509
9519
|
*
|
|
@@ -9611,13 +9621,13 @@ declare class SearchService {
|
|
|
9611
9621
|
* Search the documents of one custom schema type. Paging, `sort` and
|
|
9612
9622
|
* `fields` travel as query parameters, not in the body.
|
|
9613
9623
|
*
|
|
9614
|
-
* Filter and sort fields must be indexed on the index the search uses
|
|
9615
|
-
* call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
9624
|
+
* Filter and sort fields must be indexed on the index the search uses —
|
|
9625
|
+
* `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
9616
9626
|
* `404` when no saved search has that id for `type`, and `502` means the
|
|
9617
9627
|
* Schema Service could not confirm that `type` is a custom entity.
|
|
9618
9628
|
*
|
|
9619
9629
|
* @example
|
|
9620
|
-
* const hits = await client.search.search("
|
|
9630
|
+
* const hits = await client.search.search("VEHICLE", {
|
|
9621
9631
|
* index: "vehicles",
|
|
9622
9632
|
* queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
|
|
9623
9633
|
* filters: { field: "status", operator: "EQ", value: "ACTIVE" },
|
package/dist/index.js
CHANGED
|
@@ -948,7 +948,7 @@ var HttpClient = class {
|
|
|
948
948
|
};
|
|
949
949
|
|
|
950
950
|
// package.json
|
|
951
|
-
var version = "4.6.
|
|
951
|
+
var version = "4.6.7";
|
|
952
952
|
|
|
953
953
|
// src/version.ts
|
|
954
954
|
var SDK_VERSION = version;
|
|
@@ -4353,13 +4353,13 @@ var SearchService = class {
|
|
|
4353
4353
|
* Search the documents of one custom schema type. Paging, `sort` and
|
|
4354
4354
|
* `fields` travel as query parameters, not in the body.
|
|
4355
4355
|
*
|
|
4356
|
-
* Filter and sort fields must be indexed on the index the search uses
|
|
4357
|
-
* call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
4356
|
+
* Filter and sort fields must be indexed on the index the search uses —
|
|
4357
|
+
* `exact`, or `text: true` for a `CONTAINS` filter — or the call answers `400`. A saved-search call (`{ searchQueryId, query }`) answers
|
|
4358
4358
|
* `404` when no saved search has that id for `type`, and `502` means the
|
|
4359
4359
|
* Schema Service could not confirm that `type` is a custom entity.
|
|
4360
4360
|
*
|
|
4361
4361
|
* @example
|
|
4362
|
-
* const hits = await client.search.search("
|
|
4362
|
+
* const hits = await client.search.search("VEHICLE", {
|
|
4363
4363
|
* index: "vehicles",
|
|
4364
4364
|
* queries: [{ type: "TEXT", query: "diesel", field: "name.en" }],
|
|
4365
4365
|
* filters: { field: "status", operator: "EQ", value: "ACTIVE" },
|