@kortexya/reasoninglayer 1.20.0 → 1.21.0

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/dist/index.cjs CHANGED
@@ -7,7 +7,7 @@ var __export = (target, all) => {
7
7
  };
8
8
 
9
9
  // src/config.ts
10
- var SDK_VERSION = "1.20.0";
10
+ var SDK_VERSION = "1.21.0";
11
11
  function resolveConfig(config) {
12
12
  if (!config.baseUrl) {
13
13
  throw new Error("ClientConfig.baseUrl is required");
@@ -12257,7 +12257,9 @@ function SortDtoFromApiToFront(dto) {
12257
12257
  description: dto.description ?? void 0,
12258
12258
  origin: dto.origin ? SortOriginDtoFromApiToFront(dto.origin) : void 0,
12259
12259
  status: dto.status ? SortStatusDtoFromApiToFront(dto.status) : void 0,
12260
- needsReview: dto.needs_review
12260
+ needsReview: dto.needs_review,
12261
+ pluginId: dto.plugin_id ?? void 0,
12262
+ pluginLocalName: dto.plugin_local_name ?? void 0
12261
12263
  };
12262
12264
  }
12263
12265
  function SortInfoDtoFromApiToFront(dto) {
@@ -13388,8 +13390,9 @@ var TermsClient = class {
13388
13390
  return BulkAddTermsResponseFromApiToFront(response.data);
13389
13391
  }
13390
13392
  /**
13391
- * List all terms for the authenticated tenant.
13393
+ * List terms for the authenticated tenant.
13392
13394
  *
13395
+ * @param query - Optional paging and sort filter. Omit for every term.
13393
13396
  * @returns The list of terms with total count.
13394
13397
  * @throws {ApiError} If the request fails.
13395
13398
  *
@@ -13398,17 +13401,24 @@ var TermsClient = class {
13398
13401
  * Requires X-Tenant-Id header (set via client configuration).
13399
13402
  * Uses the tagged {@link ValueDto} serialization format.
13400
13403
  *
13404
+ * `sortName` filters on the sort's committed name. For a plugin-contributed
13405
+ * sort that is the namespaced form (`plugin:<plugin-name>:<local>`), which
13406
+ * {@link SortDto.name} carries and {@link SortDto.pluginLocalName} maps back
13407
+ * to the name its author wrote.
13408
+ *
13401
13409
  * @example
13402
13410
  * ```typescript
13403
13411
  * const result = await client.terms.listTerms();
13404
13412
  * console.log(`Found ${result.count} terms`);
13405
- * for (const term of result.terms) {
13406
- * console.log(term.id, term.sortName);
13407
- * }
13413
+ *
13414
+ * // Only the first page of one sort's terms.
13415
+ * const page = await client.terms.listTerms({ sortName: 'person', limit: 50 });
13408
13416
  * ```
13409
13417
  */
13410
- async listTerms() {
13411
- const response = await this.api.listTerms();
13418
+ async listTerms(query) {
13419
+ const response = await this.api.listTerms(
13420
+ query ? { limit: query.limit, offset: query.offset, sort_name: query.sortName } : void 0
13421
+ );
13412
13422
  return TermListResponseFromApiToFront(response.data);
13413
13423
  }
13414
13424
  /**
@@ -27027,7 +27037,8 @@ function ClearTenantResponseFromApiToFront(dto) {
27027
27037
  fingerprintsDeleted: dto.fingerprints_deleted,
27028
27038
  sortsDeleted: dto.sorts_deleted,
27029
27039
  inferenceStateCleared: dto.inference_state_cleared,
27030
- cacheInvalidated: dto.cache_invalidated
27040
+ cacheInvalidated: dto.cache_invalidated,
27041
+ pluginInstallsDeleted: dto.plugin_installs_deleted
27031
27042
  };
27032
27043
  }
27033
27044
  function TenantInfoFromApiToFront(dto) {
@@ -32409,13 +32420,17 @@ function InstallPluginResponseFromApiToFront(dto) {
32409
32420
  installId: dto.install_id,
32410
32421
  sortsAdded: dto.sorts_added,
32411
32422
  rulesAdded: dto.rules_added,
32412
- state: dto.state
32423
+ state: dto.state,
32424
+ degraded: dto.degraded,
32425
+ degradation: dto.degradation ?? void 0
32413
32426
  };
32414
32427
  }
32415
32428
  function InstallStateFromApiToFront(dto) {
32416
32429
  return {
32417
32430
  installId: dto.install_id,
32418
- state: dto.state
32431
+ state: dto.state,
32432
+ degraded: dto.degraded,
32433
+ degradation: dto.degradation ?? void 0
32419
32434
  };
32420
32435
  }
32421
32436
  function UpgradeInstallRequestFromFrontToApi(model) {
@@ -32439,7 +32454,9 @@ function InstallSummaryFromApiToFront(dto) {
32439
32454
  pluginId: dto.plugin_id,
32440
32455
  version: dto.version,
32441
32456
  state: dto.state,
32442
- systemWide: dto.system_wide
32457
+ systemWide: dto.system_wide,
32458
+ degraded: dto.degraded,
32459
+ degradation: dto.degradation ?? void 0
32443
32460
  };
32444
32461
  }
32445
32462
  function InstallListFromApiToFront(dto) {