@kortexya/reasoninglayer 1.3.0 → 1.4.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.d.cts CHANGED
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
109
109
  * This is the single source of truth for the version constant.
110
110
  * The `scripts/release.sh` script updates this value alongside `package.json`.
111
111
  */
112
- declare const SDK_VERSION = "1.3.0";
112
+ declare const SDK_VERSION = "1.4.0";
113
113
  /**
114
114
  * Authentication mode for the SDK.
115
115
  *
@@ -18637,6 +18637,17 @@ interface ReferenceValue {
18637
18637
  type: 'Reference';
18638
18638
  value: string;
18639
18639
  }
18640
+ /**
18641
+ * A reference to a sort by UUID. Produces `{"type": "SortId", "value": "uuid"}`.
18642
+ *
18643
+ * Used by homoiconic meta-constraints (e.g. `sort_constraint`) whose feature
18644
+ * targets a sort as a first-class value. Maps to the backend `Value::SortId`
18645
+ * variant which the chainer dispatches directly.
18646
+ */
18647
+ interface SortIdValue {
18648
+ type: 'SortId';
18649
+ value: string;
18650
+ }
18640
18651
  /** A list of values. Produces `{"type": "List", "value": [...]}`. */
18641
18652
  interface ListValue {
18642
18653
  type: 'List';
@@ -18689,7 +18700,7 @@ interface SetValue {
18689
18700
  * (BigInteger, DateTime, Geometry, etc.) to `ValueDto::String` with Rust debug format.
18690
18701
  * You may encounter strings like `"DateTime(2024-01-15T10:30:00Z)"`.
18691
18702
  */
18692
- type ValueDto = StringValue | IntegerValue | RealValue | BooleanValue | UninstantiatedValue | ReferenceValue | ListValue | FuzzyScalarValue | FuzzyNumberValue | SetValue;
18703
+ type ValueDto = StringValue | IntegerValue | RealValue | BooleanValue | UninstantiatedValue | ReferenceValue | SortIdValue | ListValue | FuzzyScalarValue | FuzzyNumberValue | SetValue;
18693
18704
  /**
18694
18705
  * Triangular fuzzy membership function.
18695
18706
  *
@@ -19004,6 +19015,7 @@ type values_SetValue = SetValue;
19004
19015
  type values_SigmoidDifferenceShape = SigmoidDifferenceShape;
19005
19016
  type values_SigmoidProductShape = SigmoidProductShape;
19006
19017
  type values_SigmoidShape = SigmoidShape;
19018
+ type values_SortIdValue = SortIdValue;
19007
19019
  type values_SpikeShape = SpikeShape;
19008
19020
  type values_StringValue = StringValue;
19009
19021
  type values_TaggedFeatureValueDto = TaggedFeatureValueDto;
@@ -19013,7 +19025,7 @@ type values_UninstantiatedValue = UninstantiatedValue;
19013
19025
  type values_ValueDto = ValueDto;
19014
19026
  type values_ZShapeShape = ZShapeShape;
19015
19027
  declare namespace values {
19016
- export type { values_BellShape as BellShape, values_BooleanValue as BooleanValue, values_CauchyShape as CauchyShape, values_CosineShape as CosineShape, values_CyclicGaussianShape as CyclicGaussianShape, values_FeatureTargetDto as FeatureTargetDto, values_FeatureValueDto as FeatureValueDto, values_FuzzyNumberValue as FuzzyNumberValue, values_FuzzyScalarValue as FuzzyScalarValue, values_FuzzyShapeDto as FuzzyShapeDto, values_GaussianProductShape as GaussianProductShape, values_GaussianShape as GaussianShape, values_IntegerValue as IntegerValue, values_ListValue as ListValue, values_PiShapeShape as PiShapeShape, values_PiecewiseLinearShape as PiecewiseLinearShape, values_RealValue as RealValue, values_ReferenceValue as ReferenceValue, values_SShapeShape as SShapeShape, values_SetValue as SetValue, values_SigmoidDifferenceShape as SigmoidDifferenceShape, values_SigmoidProductShape as SigmoidProductShape, values_SigmoidShape as SigmoidShape, values_SpikeShape as SpikeShape, values_StringValue as StringValue, values_TaggedFeatureValueDto as TaggedFeatureValueDto, values_TrapezoidalShape as TrapezoidalShape, values_TriangularShape as TriangularShape, values_UninstantiatedValue as UninstantiatedValue, values_ValueDto as ValueDto, values_ZShapeShape as ZShapeShape };
19028
+ export type { values_BellShape as BellShape, values_BooleanValue as BooleanValue, values_CauchyShape as CauchyShape, values_CosineShape as CosineShape, values_CyclicGaussianShape as CyclicGaussianShape, values_FeatureTargetDto as FeatureTargetDto, values_FeatureValueDto as FeatureValueDto, values_FuzzyNumberValue as FuzzyNumberValue, values_FuzzyScalarValue as FuzzyScalarValue, values_FuzzyShapeDto as FuzzyShapeDto, values_GaussianProductShape as GaussianProductShape, values_GaussianShape as GaussianShape, values_IntegerValue as IntegerValue, values_ListValue as ListValue, values_PiShapeShape as PiShapeShape, values_PiecewiseLinearShape as PiecewiseLinearShape, values_RealValue as RealValue, values_ReferenceValue as ReferenceValue, values_SShapeShape as SShapeShape, values_SetValue as SetValue, values_SigmoidDifferenceShape as SigmoidDifferenceShape, values_SigmoidProductShape as SigmoidProductShape, values_SigmoidShape as SigmoidShape, values_SortIdValue as SortIdValue, values_SpikeShape as SpikeShape, values_StringValue as StringValue, values_TaggedFeatureValueDto as TaggedFeatureValueDto, values_TrapezoidalShape as TrapezoidalShape, values_TriangularShape as TriangularShape, values_UninstantiatedValue as UninstantiatedValue, values_ValueDto as ValueDto, values_ZShapeShape as ZShapeShape };
19017
19029
  }
19018
19030
 
19019
19031
  /**
@@ -20674,11 +20686,22 @@ interface TermInputInlineByName {
20674
20686
  * Use `FeatureInput.*` builders to construct these values safely.
20675
20687
  * Do NOT use with term CRUD endpoints — use {@link import('./values.js').ValueDto} instead.
20676
20688
  */
20677
- type FeatureInputValueDto = FeatureInputTermRef | FeatureInputConstrainedVariable | FeatureInputVariable | FeatureInputInlineTerm | FeatureInputInlineTermByName | FeatureInputValueDto[] | string | number | boolean;
20689
+ type FeatureInputValueDto = FeatureInputTermRef | FeatureInputSortRef | FeatureInputConstrainedVariable | FeatureInputVariable | FeatureInputInlineTerm | FeatureInputInlineTermByName | FeatureInputValueDto[] | string | number | boolean;
20678
20690
  /** Reference an existing term by UUID. */
20679
20691
  interface FeatureInputTermRef {
20680
20692
  termId: string;
20681
20693
  }
20694
+ /**
20695
+ * Reference a sort by UUID — used by homoiconic meta-constraints (e.g.
20696
+ * `sort_constraint`) that name a sort as a first-class value.
20697
+ *
20698
+ * Wire format: `{ "sort_ref": "<uuid>" }` (not `sort_id`, which would
20699
+ * collide with {@link FeatureInputInlineTerm} under serde-untagged
20700
+ * deserialization on the backend).
20701
+ */
20702
+ interface FeatureInputSortRef {
20703
+ sortRef: string;
20704
+ }
20682
20705
  /**
20683
20706
  * A constrained variable in a feature value position.
20684
20707
  *
@@ -20710,6 +20733,7 @@ interface FeatureInputInlineTermByName {
20710
20733
  type homoiconic_FeatureInputConstrainedVariable = FeatureInputConstrainedVariable;
20711
20734
  type homoiconic_FeatureInputInlineTerm = FeatureInputInlineTerm;
20712
20735
  type homoiconic_FeatureInputInlineTermByName = FeatureInputInlineTermByName;
20736
+ type homoiconic_FeatureInputSortRef = FeatureInputSortRef;
20713
20737
  type homoiconic_FeatureInputTermRef = FeatureInputTermRef;
20714
20738
  type homoiconic_FeatureInputValueDto = FeatureInputValueDto;
20715
20739
  type homoiconic_FeatureInputVariable = FeatureInputVariable;
@@ -20719,7 +20743,7 @@ type homoiconic_TermInputInline = TermInputInline;
20719
20743
  type homoiconic_TermInputInlineByName = TermInputInlineByName;
20720
20744
  type homoiconic_TermInputRef = TermInputRef;
20721
20745
  declare namespace homoiconic {
20722
- export type { homoiconic_FeatureInputConstrainedVariable as FeatureInputConstrainedVariable, homoiconic_FeatureInputInlineTerm as FeatureInputInlineTerm, homoiconic_FeatureInputInlineTermByName as FeatureInputInlineTermByName, homoiconic_FeatureInputTermRef as FeatureInputTermRef, homoiconic_FeatureInputValueDto as FeatureInputValueDto, homoiconic_FeatureInputVariable as FeatureInputVariable, homoiconic_PsiTermDto as PsiTermDto, homoiconic_TermInputDto as TermInputDto, homoiconic_TermInputInline as TermInputInline, homoiconic_TermInputInlineByName as TermInputInlineByName, homoiconic_TermInputRef as TermInputRef };
20746
+ export type { homoiconic_FeatureInputConstrainedVariable as FeatureInputConstrainedVariable, homoiconic_FeatureInputInlineTerm as FeatureInputInlineTerm, homoiconic_FeatureInputInlineTermByName as FeatureInputInlineTermByName, homoiconic_FeatureInputSortRef as FeatureInputSortRef, homoiconic_FeatureInputTermRef as FeatureInputTermRef, homoiconic_FeatureInputValueDto as FeatureInputValueDto, homoiconic_FeatureInputVariable as FeatureInputVariable, homoiconic_PsiTermDto as PsiTermDto, homoiconic_TermInputDto as TermInputDto, homoiconic_TermInputInline as TermInputInline, homoiconic_TermInputInlineByName as TermInputInlineByName, homoiconic_TermInputRef as TermInputRef };
20723
20747
  }
20724
20748
 
20725
20749
  /**
@@ -43981,6 +44005,24 @@ declare const Value: {
43981
44005
  * ```
43982
44006
  */
43983
44007
  readonly reference: (id: string) => ReferenceValue;
44008
+ /**
44009
+ * Create a reference to a sort by UUID.
44010
+ *
44011
+ * @param id - The UUID of the sort.
44012
+ * @returns A tagged `SortIdValue`: `{"type": "SortId", "value": "uuid"}`.
44013
+ *
44014
+ * @remarks
44015
+ * Used by homoiconic meta-constraints — primarily `Constraint.typeOf(...)`
44016
+ * — whose feature targets a sort as a first-class value. The chainer
44017
+ * dispatches this directly via `Value::SortId`.
44018
+ *
44019
+ * @example
44020
+ * ```typescript
44021
+ * Value.sortId("550e8400-e29b-41d4-a716-446655440000")
44022
+ * // { type: 'SortId', value: '550e8400-e29b-41d4-a716-446655440000' }
44023
+ * ```
44024
+ */
44025
+ readonly sortId: (id: string) => SortIdValue;
43984
44026
  /**
43985
44027
  * Create a fuzzy scalar with a value and membership degree.
43986
44028
  *
@@ -44371,6 +44413,127 @@ declare const FuzzyShape: {
44371
44413
  readonly piecewiseLinear: (points: [number, number][]) => PiecewiseLinearShape;
44372
44414
  };
44373
44415
 
44416
+ /**
44417
+ * Operators accepted by {@link Constraint.where} — boolean comparisons.
44418
+ * The chainer's `guard_constraint` reads the operator as a string; it
44419
+ * residuates the constraint until both sides are bound (or numerically
44420
+ * evaluable), then evaluates the comparison.
44421
+ */
44422
+ type ComparisonOp = '<' | '<=' | '=' | '!=' | '>=' | '>';
44423
+ /**
44424
+ * Operators accepted by {@link Constraint.equation} — binary arithmetic.
44425
+ * The op selects the chainer sort: `+` → `plus_constraint`, `-` →
44426
+ * `minus_constraint`, `*` → `times_constraint`, `/` → `div_constraint`.
44427
+ * Each reads `x`, `y`, `z` as `z = x op y`.
44428
+ */
44429
+ type ArithmeticOp = '+' | '-' | '*' | '/';
44430
+ /** A reference to a variable or term used as a constraint operand. */
44431
+ type Operand = string | TermInputArg | number | boolean;
44432
+ /**
44433
+ * Builders for the chainer's homoiconic meta-constraints. Each function
44434
+ * returns a single `TermInputArg` representing one constraint term — drop
44435
+ * the result into a clause body or rule antecedents.
44436
+ *
44437
+ * @remarks
44438
+ * These wrap the underlying meta-sort names (`sort_constraint`,
44439
+ * `feature_constraint`, `guard_constraint`, `plus_constraint`, etc.) and
44440
+ * use the exact feature keys the chainer reads. Hand-rolled `psi('...')`
44441
+ * calls with guessed keys silently fail — use these builders instead.
44442
+ *
44443
+ * @example
44444
+ * ```typescript
44445
+ * import { Constraint, psi } from '@kortexya/reasoninglayer';
44446
+ *
44447
+ * // "?E is a term of sort flow_edge_constraint, with edges leaving X"
44448
+ * const body = [
44449
+ * Constraint.typeOf('?E', flowEdgeSortUuid),
44450
+ * Constraint.has('?E', 'src', '?X'),
44451
+ * Constraint.has('?E', 'dst', '?Y'),
44452
+ * Constraint.has('?E', 'cap', '?C'),
44453
+ * Constraint.intRange('?Amount', 1, 100),
44454
+ * Constraint.where('?Amount', '<=', '?C'),
44455
+ * Constraint.solveFor('?Amount'),
44456
+ * ];
44457
+ * ```
44458
+ */
44459
+ declare const Constraint: {
44460
+ /**
44461
+ * State that a variable is a term of a given sort. The chainer enumerates
44462
+ * every persisted term of that sort via backtracking.
44463
+ *
44464
+ * @param variable - Variable name (e.g. `'?E'`) or pre-built variable Ψ-term.
44465
+ * @param sortUuid - UUID of the target sort (resolve from
44466
+ * `client.inference.getMetaSorts()` or your own `createSort` response).
44467
+ * @returns A `sort_constraint` term.
44468
+ */
44469
+ readonly typeOf: (variable: string, sortUuid: string) => TermInputArg;
44470
+ /**
44471
+ * State that a variable's feature equals a target. The chainer unifies
44472
+ * the variable's feature value with the target.
44473
+ *
44474
+ * **Important**: the chainer's `feature_constraint` only unifies
44475
+ * term-references with term-references. The variable's feature on the
44476
+ * persisted side must itself be a `Value::Reference`. Comparing against
44477
+ * literals (e.g. `has('?N', 'name', 'S')` where `name` is stored as a
44478
+ * plain string) silently returns zero solutions — that's a chainer
44479
+ * design constraint, not a builder bug.
44480
+ *
44481
+ * @param variable - The owning variable (e.g. `'?Edge'`).
44482
+ * @param feature - The feature name (e.g. `'src'`).
44483
+ * @param target - The target — typically another variable (`'?Src'`)
44484
+ * or an existing term referenced by its UUID via `'!<uuid>'`.
44485
+ * @returns A `feature_constraint` term.
44486
+ */
44487
+ readonly has: (variable: string, feature: string, target: Operand) => TermInputArg;
44488
+ /**
44489
+ * State a boolean comparison between two operands. The chainer
44490
+ * residuates the constraint until both sides are bound; when they are,
44491
+ * the comparison must hold or the proof branch fails.
44492
+ *
44493
+ * @param left - Left operand — variable, literal number, or term ref.
44494
+ * @param op - Comparison operator.
44495
+ * @param right - Right operand.
44496
+ * @returns A `guard_constraint` term.
44497
+ */
44498
+ readonly where: (left: Operand, op: ComparisonOp, right: Operand) => TermInputArg;
44499
+ /**
44500
+ * State that `result = left op right`. Selects the chainer sort by op:
44501
+ * `+` → `plus_constraint`, `-` → `minus_constraint`, `*` →
44502
+ * `times_constraint`, `/` → `div_constraint`. The chainer reads each
44503
+ * operand as either a Reference variable or a numeric literal, and can
44504
+ * run forward, reverse, or verify depending on which operands are
44505
+ * bound.
44506
+ *
44507
+ * @param result - Result variable or value (`z`).
44508
+ * @param op - Arithmetic operator.
44509
+ * @param left - Left operand (`x`).
44510
+ * @param right - Right operand (`y`).
44511
+ * @returns The appropriate arithmetic-constraint term.
44512
+ */
44513
+ readonly equation: (result: Operand, op: ArithmeticOp, left: Operand, right: Operand) => TermInputArg;
44514
+ /**
44515
+ * Constrain a variable to be an integer in the inclusive range
44516
+ * `[min, max]`. Required before the chainer's labeling step can assign
44517
+ * a concrete value via {@link Constraint.solveFor}.
44518
+ *
44519
+ * @param variable - Variable name to constrain.
44520
+ * @param min - Lower bound (inclusive).
44521
+ * @param max - Upper bound (inclusive).
44522
+ * @returns An `fd_domain_constraint` term.
44523
+ */
44524
+ readonly intRange: (variable: string, min: number, max: number) => TermInputArg;
44525
+ /**
44526
+ * Search for concrete integer assignments to the listed variables that
44527
+ * satisfy every other constraint mentioning them. Place this at the END
44528
+ * of a clause body — it's the labeling/search step that turns a
44529
+ * constraint network into solutions.
44530
+ *
44531
+ * @param variables - Variable names to assign.
44532
+ * @returns An `fd_labeling_constraint` term.
44533
+ */
44534
+ readonly solveFor: (...variables: string[]) => TermInputArg;
44535
+ };
44536
+
44374
44537
  /**
44375
44538
  * Create a guard constraint as a `TermInputDto`.
44376
44539
  *
@@ -45219,4 +45382,4 @@ declare function toUntaggedFeatures(features: PlainFeatureMap): Record<string, F
45219
45382
  */
45220
45383
  declare function toTermInputDto(input: PsiTermInput | TermInputDto): TermInputDto;
45221
45384
 
45222
- export { ANY_ROLE, actionReviews as ActionReviews, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, collections as Collections, communities as Communities, compliance as Compliance, type ConstrainedPlainVar, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
45385
+ export { ANY_ROLE, actionReviews as ActionReviews, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
package/dist/index.d.ts CHANGED
@@ -109,7 +109,7 @@ type JsonValue$1 = string | number | boolean | null | JsonValue$1[] | object;
109
109
  * This is the single source of truth for the version constant.
110
110
  * The `scripts/release.sh` script updates this value alongside `package.json`.
111
111
  */
112
- declare const SDK_VERSION = "1.3.0";
112
+ declare const SDK_VERSION = "1.4.0";
113
113
  /**
114
114
  * Authentication mode for the SDK.
115
115
  *
@@ -18637,6 +18637,17 @@ interface ReferenceValue {
18637
18637
  type: 'Reference';
18638
18638
  value: string;
18639
18639
  }
18640
+ /**
18641
+ * A reference to a sort by UUID. Produces `{"type": "SortId", "value": "uuid"}`.
18642
+ *
18643
+ * Used by homoiconic meta-constraints (e.g. `sort_constraint`) whose feature
18644
+ * targets a sort as a first-class value. Maps to the backend `Value::SortId`
18645
+ * variant which the chainer dispatches directly.
18646
+ */
18647
+ interface SortIdValue {
18648
+ type: 'SortId';
18649
+ value: string;
18650
+ }
18640
18651
  /** A list of values. Produces `{"type": "List", "value": [...]}`. */
18641
18652
  interface ListValue {
18642
18653
  type: 'List';
@@ -18689,7 +18700,7 @@ interface SetValue {
18689
18700
  * (BigInteger, DateTime, Geometry, etc.) to `ValueDto::String` with Rust debug format.
18690
18701
  * You may encounter strings like `"DateTime(2024-01-15T10:30:00Z)"`.
18691
18702
  */
18692
- type ValueDto = StringValue | IntegerValue | RealValue | BooleanValue | UninstantiatedValue | ReferenceValue | ListValue | FuzzyScalarValue | FuzzyNumberValue | SetValue;
18703
+ type ValueDto = StringValue | IntegerValue | RealValue | BooleanValue | UninstantiatedValue | ReferenceValue | SortIdValue | ListValue | FuzzyScalarValue | FuzzyNumberValue | SetValue;
18693
18704
  /**
18694
18705
  * Triangular fuzzy membership function.
18695
18706
  *
@@ -19004,6 +19015,7 @@ type values_SetValue = SetValue;
19004
19015
  type values_SigmoidDifferenceShape = SigmoidDifferenceShape;
19005
19016
  type values_SigmoidProductShape = SigmoidProductShape;
19006
19017
  type values_SigmoidShape = SigmoidShape;
19018
+ type values_SortIdValue = SortIdValue;
19007
19019
  type values_SpikeShape = SpikeShape;
19008
19020
  type values_StringValue = StringValue;
19009
19021
  type values_TaggedFeatureValueDto = TaggedFeatureValueDto;
@@ -19013,7 +19025,7 @@ type values_UninstantiatedValue = UninstantiatedValue;
19013
19025
  type values_ValueDto = ValueDto;
19014
19026
  type values_ZShapeShape = ZShapeShape;
19015
19027
  declare namespace values {
19016
- export type { values_BellShape as BellShape, values_BooleanValue as BooleanValue, values_CauchyShape as CauchyShape, values_CosineShape as CosineShape, values_CyclicGaussianShape as CyclicGaussianShape, values_FeatureTargetDto as FeatureTargetDto, values_FeatureValueDto as FeatureValueDto, values_FuzzyNumberValue as FuzzyNumberValue, values_FuzzyScalarValue as FuzzyScalarValue, values_FuzzyShapeDto as FuzzyShapeDto, values_GaussianProductShape as GaussianProductShape, values_GaussianShape as GaussianShape, values_IntegerValue as IntegerValue, values_ListValue as ListValue, values_PiShapeShape as PiShapeShape, values_PiecewiseLinearShape as PiecewiseLinearShape, values_RealValue as RealValue, values_ReferenceValue as ReferenceValue, values_SShapeShape as SShapeShape, values_SetValue as SetValue, values_SigmoidDifferenceShape as SigmoidDifferenceShape, values_SigmoidProductShape as SigmoidProductShape, values_SigmoidShape as SigmoidShape, values_SpikeShape as SpikeShape, values_StringValue as StringValue, values_TaggedFeatureValueDto as TaggedFeatureValueDto, values_TrapezoidalShape as TrapezoidalShape, values_TriangularShape as TriangularShape, values_UninstantiatedValue as UninstantiatedValue, values_ValueDto as ValueDto, values_ZShapeShape as ZShapeShape };
19028
+ export type { values_BellShape as BellShape, values_BooleanValue as BooleanValue, values_CauchyShape as CauchyShape, values_CosineShape as CosineShape, values_CyclicGaussianShape as CyclicGaussianShape, values_FeatureTargetDto as FeatureTargetDto, values_FeatureValueDto as FeatureValueDto, values_FuzzyNumberValue as FuzzyNumberValue, values_FuzzyScalarValue as FuzzyScalarValue, values_FuzzyShapeDto as FuzzyShapeDto, values_GaussianProductShape as GaussianProductShape, values_GaussianShape as GaussianShape, values_IntegerValue as IntegerValue, values_ListValue as ListValue, values_PiShapeShape as PiShapeShape, values_PiecewiseLinearShape as PiecewiseLinearShape, values_RealValue as RealValue, values_ReferenceValue as ReferenceValue, values_SShapeShape as SShapeShape, values_SetValue as SetValue, values_SigmoidDifferenceShape as SigmoidDifferenceShape, values_SigmoidProductShape as SigmoidProductShape, values_SigmoidShape as SigmoidShape, values_SortIdValue as SortIdValue, values_SpikeShape as SpikeShape, values_StringValue as StringValue, values_TaggedFeatureValueDto as TaggedFeatureValueDto, values_TrapezoidalShape as TrapezoidalShape, values_TriangularShape as TriangularShape, values_UninstantiatedValue as UninstantiatedValue, values_ValueDto as ValueDto, values_ZShapeShape as ZShapeShape };
19017
19029
  }
19018
19030
 
19019
19031
  /**
@@ -20674,11 +20686,22 @@ interface TermInputInlineByName {
20674
20686
  * Use `FeatureInput.*` builders to construct these values safely.
20675
20687
  * Do NOT use with term CRUD endpoints — use {@link import('./values.js').ValueDto} instead.
20676
20688
  */
20677
- type FeatureInputValueDto = FeatureInputTermRef | FeatureInputConstrainedVariable | FeatureInputVariable | FeatureInputInlineTerm | FeatureInputInlineTermByName | FeatureInputValueDto[] | string | number | boolean;
20689
+ type FeatureInputValueDto = FeatureInputTermRef | FeatureInputSortRef | FeatureInputConstrainedVariable | FeatureInputVariable | FeatureInputInlineTerm | FeatureInputInlineTermByName | FeatureInputValueDto[] | string | number | boolean;
20678
20690
  /** Reference an existing term by UUID. */
20679
20691
  interface FeatureInputTermRef {
20680
20692
  termId: string;
20681
20693
  }
20694
+ /**
20695
+ * Reference a sort by UUID — used by homoiconic meta-constraints (e.g.
20696
+ * `sort_constraint`) that name a sort as a first-class value.
20697
+ *
20698
+ * Wire format: `{ "sort_ref": "<uuid>" }` (not `sort_id`, which would
20699
+ * collide with {@link FeatureInputInlineTerm} under serde-untagged
20700
+ * deserialization on the backend).
20701
+ */
20702
+ interface FeatureInputSortRef {
20703
+ sortRef: string;
20704
+ }
20682
20705
  /**
20683
20706
  * A constrained variable in a feature value position.
20684
20707
  *
@@ -20710,6 +20733,7 @@ interface FeatureInputInlineTermByName {
20710
20733
  type homoiconic_FeatureInputConstrainedVariable = FeatureInputConstrainedVariable;
20711
20734
  type homoiconic_FeatureInputInlineTerm = FeatureInputInlineTerm;
20712
20735
  type homoiconic_FeatureInputInlineTermByName = FeatureInputInlineTermByName;
20736
+ type homoiconic_FeatureInputSortRef = FeatureInputSortRef;
20713
20737
  type homoiconic_FeatureInputTermRef = FeatureInputTermRef;
20714
20738
  type homoiconic_FeatureInputValueDto = FeatureInputValueDto;
20715
20739
  type homoiconic_FeatureInputVariable = FeatureInputVariable;
@@ -20719,7 +20743,7 @@ type homoiconic_TermInputInline = TermInputInline;
20719
20743
  type homoiconic_TermInputInlineByName = TermInputInlineByName;
20720
20744
  type homoiconic_TermInputRef = TermInputRef;
20721
20745
  declare namespace homoiconic {
20722
- export type { homoiconic_FeatureInputConstrainedVariable as FeatureInputConstrainedVariable, homoiconic_FeatureInputInlineTerm as FeatureInputInlineTerm, homoiconic_FeatureInputInlineTermByName as FeatureInputInlineTermByName, homoiconic_FeatureInputTermRef as FeatureInputTermRef, homoiconic_FeatureInputValueDto as FeatureInputValueDto, homoiconic_FeatureInputVariable as FeatureInputVariable, homoiconic_PsiTermDto as PsiTermDto, homoiconic_TermInputDto as TermInputDto, homoiconic_TermInputInline as TermInputInline, homoiconic_TermInputInlineByName as TermInputInlineByName, homoiconic_TermInputRef as TermInputRef };
20746
+ export type { homoiconic_FeatureInputConstrainedVariable as FeatureInputConstrainedVariable, homoiconic_FeatureInputInlineTerm as FeatureInputInlineTerm, homoiconic_FeatureInputInlineTermByName as FeatureInputInlineTermByName, homoiconic_FeatureInputSortRef as FeatureInputSortRef, homoiconic_FeatureInputTermRef as FeatureInputTermRef, homoiconic_FeatureInputValueDto as FeatureInputValueDto, homoiconic_FeatureInputVariable as FeatureInputVariable, homoiconic_PsiTermDto as PsiTermDto, homoiconic_TermInputDto as TermInputDto, homoiconic_TermInputInline as TermInputInline, homoiconic_TermInputInlineByName as TermInputInlineByName, homoiconic_TermInputRef as TermInputRef };
20723
20747
  }
20724
20748
 
20725
20749
  /**
@@ -43981,6 +44005,24 @@ declare const Value: {
43981
44005
  * ```
43982
44006
  */
43983
44007
  readonly reference: (id: string) => ReferenceValue;
44008
+ /**
44009
+ * Create a reference to a sort by UUID.
44010
+ *
44011
+ * @param id - The UUID of the sort.
44012
+ * @returns A tagged `SortIdValue`: `{"type": "SortId", "value": "uuid"}`.
44013
+ *
44014
+ * @remarks
44015
+ * Used by homoiconic meta-constraints — primarily `Constraint.typeOf(...)`
44016
+ * — whose feature targets a sort as a first-class value. The chainer
44017
+ * dispatches this directly via `Value::SortId`.
44018
+ *
44019
+ * @example
44020
+ * ```typescript
44021
+ * Value.sortId("550e8400-e29b-41d4-a716-446655440000")
44022
+ * // { type: 'SortId', value: '550e8400-e29b-41d4-a716-446655440000' }
44023
+ * ```
44024
+ */
44025
+ readonly sortId: (id: string) => SortIdValue;
43984
44026
  /**
43985
44027
  * Create a fuzzy scalar with a value and membership degree.
43986
44028
  *
@@ -44371,6 +44413,127 @@ declare const FuzzyShape: {
44371
44413
  readonly piecewiseLinear: (points: [number, number][]) => PiecewiseLinearShape;
44372
44414
  };
44373
44415
 
44416
+ /**
44417
+ * Operators accepted by {@link Constraint.where} — boolean comparisons.
44418
+ * The chainer's `guard_constraint` reads the operator as a string; it
44419
+ * residuates the constraint until both sides are bound (or numerically
44420
+ * evaluable), then evaluates the comparison.
44421
+ */
44422
+ type ComparisonOp = '<' | '<=' | '=' | '!=' | '>=' | '>';
44423
+ /**
44424
+ * Operators accepted by {@link Constraint.equation} — binary arithmetic.
44425
+ * The op selects the chainer sort: `+` → `plus_constraint`, `-` →
44426
+ * `minus_constraint`, `*` → `times_constraint`, `/` → `div_constraint`.
44427
+ * Each reads `x`, `y`, `z` as `z = x op y`.
44428
+ */
44429
+ type ArithmeticOp = '+' | '-' | '*' | '/';
44430
+ /** A reference to a variable or term used as a constraint operand. */
44431
+ type Operand = string | TermInputArg | number | boolean;
44432
+ /**
44433
+ * Builders for the chainer's homoiconic meta-constraints. Each function
44434
+ * returns a single `TermInputArg` representing one constraint term — drop
44435
+ * the result into a clause body or rule antecedents.
44436
+ *
44437
+ * @remarks
44438
+ * These wrap the underlying meta-sort names (`sort_constraint`,
44439
+ * `feature_constraint`, `guard_constraint`, `plus_constraint`, etc.) and
44440
+ * use the exact feature keys the chainer reads. Hand-rolled `psi('...')`
44441
+ * calls with guessed keys silently fail — use these builders instead.
44442
+ *
44443
+ * @example
44444
+ * ```typescript
44445
+ * import { Constraint, psi } from '@kortexya/reasoninglayer';
44446
+ *
44447
+ * // "?E is a term of sort flow_edge_constraint, with edges leaving X"
44448
+ * const body = [
44449
+ * Constraint.typeOf('?E', flowEdgeSortUuid),
44450
+ * Constraint.has('?E', 'src', '?X'),
44451
+ * Constraint.has('?E', 'dst', '?Y'),
44452
+ * Constraint.has('?E', 'cap', '?C'),
44453
+ * Constraint.intRange('?Amount', 1, 100),
44454
+ * Constraint.where('?Amount', '<=', '?C'),
44455
+ * Constraint.solveFor('?Amount'),
44456
+ * ];
44457
+ * ```
44458
+ */
44459
+ declare const Constraint: {
44460
+ /**
44461
+ * State that a variable is a term of a given sort. The chainer enumerates
44462
+ * every persisted term of that sort via backtracking.
44463
+ *
44464
+ * @param variable - Variable name (e.g. `'?E'`) or pre-built variable Ψ-term.
44465
+ * @param sortUuid - UUID of the target sort (resolve from
44466
+ * `client.inference.getMetaSorts()` or your own `createSort` response).
44467
+ * @returns A `sort_constraint` term.
44468
+ */
44469
+ readonly typeOf: (variable: string, sortUuid: string) => TermInputArg;
44470
+ /**
44471
+ * State that a variable's feature equals a target. The chainer unifies
44472
+ * the variable's feature value with the target.
44473
+ *
44474
+ * **Important**: the chainer's `feature_constraint` only unifies
44475
+ * term-references with term-references. The variable's feature on the
44476
+ * persisted side must itself be a `Value::Reference`. Comparing against
44477
+ * literals (e.g. `has('?N', 'name', 'S')` where `name` is stored as a
44478
+ * plain string) silently returns zero solutions — that's a chainer
44479
+ * design constraint, not a builder bug.
44480
+ *
44481
+ * @param variable - The owning variable (e.g. `'?Edge'`).
44482
+ * @param feature - The feature name (e.g. `'src'`).
44483
+ * @param target - The target — typically another variable (`'?Src'`)
44484
+ * or an existing term referenced by its UUID via `'!<uuid>'`.
44485
+ * @returns A `feature_constraint` term.
44486
+ */
44487
+ readonly has: (variable: string, feature: string, target: Operand) => TermInputArg;
44488
+ /**
44489
+ * State a boolean comparison between two operands. The chainer
44490
+ * residuates the constraint until both sides are bound; when they are,
44491
+ * the comparison must hold or the proof branch fails.
44492
+ *
44493
+ * @param left - Left operand — variable, literal number, or term ref.
44494
+ * @param op - Comparison operator.
44495
+ * @param right - Right operand.
44496
+ * @returns A `guard_constraint` term.
44497
+ */
44498
+ readonly where: (left: Operand, op: ComparisonOp, right: Operand) => TermInputArg;
44499
+ /**
44500
+ * State that `result = left op right`. Selects the chainer sort by op:
44501
+ * `+` → `plus_constraint`, `-` → `minus_constraint`, `*` →
44502
+ * `times_constraint`, `/` → `div_constraint`. The chainer reads each
44503
+ * operand as either a Reference variable or a numeric literal, and can
44504
+ * run forward, reverse, or verify depending on which operands are
44505
+ * bound.
44506
+ *
44507
+ * @param result - Result variable or value (`z`).
44508
+ * @param op - Arithmetic operator.
44509
+ * @param left - Left operand (`x`).
44510
+ * @param right - Right operand (`y`).
44511
+ * @returns The appropriate arithmetic-constraint term.
44512
+ */
44513
+ readonly equation: (result: Operand, op: ArithmeticOp, left: Operand, right: Operand) => TermInputArg;
44514
+ /**
44515
+ * Constrain a variable to be an integer in the inclusive range
44516
+ * `[min, max]`. Required before the chainer's labeling step can assign
44517
+ * a concrete value via {@link Constraint.solveFor}.
44518
+ *
44519
+ * @param variable - Variable name to constrain.
44520
+ * @param min - Lower bound (inclusive).
44521
+ * @param max - Upper bound (inclusive).
44522
+ * @returns An `fd_domain_constraint` term.
44523
+ */
44524
+ readonly intRange: (variable: string, min: number, max: number) => TermInputArg;
44525
+ /**
44526
+ * Search for concrete integer assignments to the listed variables that
44527
+ * satisfy every other constraint mentioning them. Place this at the END
44528
+ * of a clause body — it's the labeling/search step that turns a
44529
+ * constraint network into solutions.
44530
+ *
44531
+ * @param variables - Variable names to assign.
44532
+ * @returns An `fd_labeling_constraint` term.
44533
+ */
44534
+ readonly solveFor: (...variables: string[]) => TermInputArg;
44535
+ };
44536
+
44374
44537
  /**
44375
44538
  * Create a guard constraint as a `TermInputDto`.
44376
44539
  *
@@ -45219,4 +45382,4 @@ declare function toUntaggedFeatures(features: PlainFeatureMap): Record<string, F
45219
45382
  */
45220
45383
  declare function toTermInputDto(input: PsiTermInput | TermInputDto): TermInputDto;
45221
45384
 
45222
- export { ANY_ROLE, actionReviews as ActionReviews, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, collections as Collections, communities as Communities, compliance as Compliance, type ConstrainedPlainVar, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };
45385
+ export { ANY_ROLE, actionReviews as ActionReviews, type AddFactRequest, type AddFactResponse, type AddRuleRequest, type AddRuleResponse, admin as Admin, type AiGroup, analysis as Analysis, type AnalysisGroup, ApiError, type ApiResponse, type ArithmeticOp, type AuthConfig, AuthenticationError, type BackwardChainRequest, type BackwardChainResponse, BadRequestError, type BulkAddTermsRequest, type BulkAddTermsResponse, type BulkCreateSortsRequest, type BulkCreateSortsResponse, cdl as CDL, causal as Causal, type ClassifyEdgesInput, type ClassifyEdgesVars, type ClearTermsResponse, type ClientConfig, cognitive as Cognitive, collections as Collections, communities as Communities, type ComparisonOp, compliance as Compliance, type ConstrainedPlainVar, Constraint, ConstraintViolationError, constraints as Constraints, control as Control, conversation as Conversation, type ConversationMessageRequest, type ConversationMessageResponse, type ConversationSummaryDto, type ConversationTurnsResponse, type CoreGroup, type CreateResearchSessionRequest, type CreateResearchSessionResponse, type CreateSortRequest, type CreateTermRequest, type DataGroup, discovery as Discovery, type ErrorResponse$1 as ErrorResponse, execution as Execution, extract as Extract, type FeatureInputValueDto, type FeatureValueDto, Flow, type FlowProblem as FlowBuilderProblem, type FlowEdgeInput, type FlowEdgeOptions, flowNetworks as FlowNetworks, type FlowNode, type FlowProblemInputBase, ForbiddenError, type ForwardChainRequest, type ForwardChainResponse, functions as Functions, fuzzy as Fuzzy, FuzzyShape, type FuzzyShapeDto, generation as Generation, type GlbRequest, type GlbResponse, health as Health, homoiconic as Homoiconic, ilp as ILP, imageExtraction as ImageExtraction, inference as Inference, type IngestPaperRequest, type IngestPaperResponse, ingestion as Ingestion, IngestionFailedError, IngestionSession, type IngestionSyncOptions, type Interceptor, InternalServerError, type JsonValue$1 as JsonValue, LP, type ListConversationsResponse, type LubRequest, type LubResponse, type MaxFlowInput, type MaxFlowVars, type MinCostMaxFlowInput, type MinCostMaxFlowVars, type MinCutInput, type MinCutVars, namespaces as Namespaces, NetworkError, neuroSymbolic as NeuroSymbolic, NotFoundError, ontology as Ontology, type Operand, operations as Operations, optimize as Optimize, type OsfSearchRequest, type OsfSearchResponse, osfql as Osfql, type OsfqlRequest, type OsfqlResponse, type OsfqlValue, oversight as Oversight, type PaginationParams, type PaperMetadataDto, type PaperSource, type PlainFeatureMap, type PlainFeatureValue, plainValues as PlainValues, preferences as Preferences, proofEngine as ProofEngine, type PsiTermDto, type PsiTermInput, query as Query, rag as RAG, RateLimitError, type RateLimitInfo, reasoning as Reasoning, type ReasoningGroup, ReasoningLayerClient, ReasoningLayerError, type RequestOptions, research as Research, type ResearchContradictionsResponse, type ResearchCycleResponse, type ResearchFindingsResponse, type ResearchGapsResponse, type ResearchReportResponse, type ResearchSessionResponse, reviews as Reviews, row as Row, SDK_VERSION, scenarios as Scenarios, scheduling as Scheduling, type SearchPapersRequest, type SearchPapersResponse, SortBuilder, type SortDto, type SortInfoDto, sorts as Sorts, sources as Sources, spaces as Spaces, statistical as Statistical, synthetic as Synthetic, type SystemGroup, type TermDto, type TermInputArg, type TermInputDto, type TermListResponse, type TermPatternDto, type TermResponse, terms as Terms, TimeoutError, type TurnDto, type UpdateTermRequest, utilities as Utilities, ValidationError, Value, type ValueDto, values as Values, type VerifyClaimRequest, type VerifyClaimResponse, visualization as Visualization, WebSocketClient, WebSocketConnection, webhookActions as WebhookActions, type WorkflowGroup, allen, constrained, discriminateFeatureValue, guard, isConstrainedPlainVar, isPsiTermInput, isTaggedValueDto, isUuid, psi, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue };