@kortexya/reasoninglayer 16.1.0 → 17.0.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.js CHANGED
@@ -5,7 +5,7 @@ var __export = (target, all) => {
5
5
  };
6
6
 
7
7
  // src/config.ts
8
- var SDK_VERSION = "16.1.0";
8
+ var SDK_VERSION = "17.0.0";
9
9
  function checkTimeoutMs(value, where) {
10
10
  if (!Number.isFinite(value) || value < 0) {
11
11
  throw new Error(
@@ -89,6 +89,8 @@ var ReasoningLayerError = class extends Error {
89
89
  };
90
90
  var ApiError = class extends ReasoningLayerError {
91
91
  name = "ApiError";
92
+ /** Health component that produced a structured refusal. */
93
+ component;
92
94
  /** HTTP status code. */
93
95
  status;
94
96
  /** Backend error code (from response body `error` field), if present. */
@@ -99,6 +101,7 @@ var ApiError = class extends ReasoningLayerError {
99
101
  headers;
100
102
  constructor(message, status, body, headers, errorCode) {
101
103
  super(message);
104
+ this.component = isRecord(body) && typeof body.component === "string" ? body.component : void 0;
102
105
  this.status = status;
103
106
  this.body = body;
104
107
  this.headers = headers;
@@ -2389,6 +2392,34 @@ var RESPONSE_COMPONENTS = {
2389
2392
  object: { message: [1, 0], message_ids: [1, { array: 0 }], recipients_count: [1, 0] }
2390
2393
  },
2391
2394
  BrowserReadCommand: { object: { command_id: [1, 0], origin: [1, 0], session_id: [1, 0] } },
2395
+ BrowserRunPendingAction: { object: { command: [1, 0], intent: [1, 0], name: [1, 0] } },
2396
+ BrowserRunProposal: { object: { action: [1, { object: {} }], id: [1, 0] } },
2397
+ BrowserRunResponse: {
2398
+ object: {
2399
+ browser_session: [1, 0],
2400
+ id: [1, 0],
2401
+ pending: [2, "BrowserRunPendingAction"],
2402
+ phase: [1, 0],
2403
+ result: [2, "BrowserRunResult"],
2404
+ revision: [1, 0],
2405
+ step: [1, 0],
2406
+ task: [1, 0],
2407
+ proposal: [2, "BrowserRunProposal"]
2408
+ }
2409
+ },
2410
+ BrowserRunResult: { object: { success: [1, 0], text: [1, 0] } },
2411
+ BrowserRunView: {
2412
+ object: {
2413
+ browser_session: [1, 0],
2414
+ id: [1, 0],
2415
+ pending: [2, "BrowserRunPendingAction"],
2416
+ phase: [1, 0],
2417
+ result: [2, "BrowserRunResult"],
2418
+ revision: [1, 0],
2419
+ step: [1, 0],
2420
+ task: [1, 0]
2421
+ }
2422
+ },
2392
2423
  BrowserStepResponse: {
2393
2424
  object: {
2394
2425
  actions: [1, { array: { object: {} } }],
@@ -2905,6 +2936,18 @@ var RESPONSE_COMPONENTS = {
2905
2936
  }
2906
2937
  },
2907
2938
  ClaimAssessmentDto: { object: { content: [1, 0], subtype: [1, 0], verdict: [1, 0] } },
2939
+ ClaimAttestationDto: { object: { at: [1, 0], by: [1, 0], kind: [1, 0] } },
2940
+ ClaimAttestationResponseDto: {
2941
+ object: {
2942
+ attestation_id: [1, 0],
2943
+ attested_at: [1, 0],
2944
+ attested_by: [1, 0],
2945
+ conversation_id: [1, 0],
2946
+ kind: [1, 0],
2947
+ point_ref: [1, 0],
2948
+ turn_id: [1, 0]
2949
+ }
2950
+ },
2908
2951
  ClaimProvenanceDto: {
2909
2952
  object: { source_scope: [1, 0], source_sort: [1, 0], source_term_id: [1, 0] }
2910
2953
  },
@@ -2952,6 +2995,9 @@ var RESPONSE_COMPONENTS = {
2952
2995
  question_probabilities: [1, { object: {} }]
2953
2996
  }
2954
2997
  },
2998
+ ClausePolicyDraftDto: {
2999
+ object: { rlql: [1, 0], source_clause_id: [1, 0], source_document_id: [1, 0] }
3000
+ },
2955
3001
  CleanupResponse: {
2956
3002
  object: {
2957
3003
  cleaned_curried_functions: [1, 0],
@@ -3868,8 +3914,12 @@ var RESPONSE_COMPONENTS = {
3868
3914
  reasoning_trace: [2, "ReasoningTraceDto"],
3869
3915
  stripped_claims: [0, { array: "StrippedClaimDto" }],
3870
3916
  suggestions: [1, { array: 0 }],
3917
+ to_verify: [0, { array: "ToVerifyPointDto" }],
3871
3918
  turn_id: [1, 0],
3872
- ui_customizations: [2, { array: "UICustomizationDto" }]
3919
+ ui_customizations: [2, { array: "UICustomizationDto" }],
3920
+ unconfirmed: [0, { array: "UnconfirmedRecordDto" }],
3921
+ unread_pages: [0, { array: "UnreadPagesDto" }],
3922
+ web_sources: [0, { array: "WebSourceDto" }]
3873
3923
  }
3874
3924
  },
3875
3925
  ConversationNextQuestionDto: { object: { claim_index: [1, 0], kind: [1, 0] } },
@@ -4055,7 +4105,13 @@ var RESPONSE_COMPONENTS = {
4055
4105
  },
4056
4106
  CreateModuleResponse: { object: { module_name: [1, 0], success: [1, 0] } },
4057
4107
  CreateResearchSessionResponse: {
4058
- object: { created_at: [1, 0], question: [1, 0], session_id: [1, 0], status: [1, 0] }
4108
+ object: {
4109
+ created_at: [1, 0],
4110
+ knowledge_base_tenant_id: [1, 0],
4111
+ question: [1, 0],
4112
+ session_id: [1, 0],
4113
+ status: [1, 0]
4114
+ }
4059
4115
  },
4060
4116
  CreateSessionResponse: { object: { created_at: [1, 0], session_id: [1, 0], status: [1, 0] } },
4061
4117
  CreateSubscriptionResponse: { object: { subscription_id: [1, 0] } },
@@ -4290,6 +4346,9 @@ var RESPONSE_COMPONENTS = {
4290
4346
  verified_count: [1, 0]
4291
4347
  }
4292
4348
  },
4349
+ Decision: {
4350
+ object: { quota: [2, "QuotaView"], sanitise: [1, 0], sites: [2, "Sites"], verdict: [1, 0] }
4351
+ },
4293
4352
  DecisionAuditResponse: {
4294
4353
  object: {
4295
4354
  acts: [1, { array: "ActValueDto" }],
@@ -4898,6 +4957,7 @@ var RESPONSE_COMPONENTS = {
4898
4957
  sort_names: [1, { array: 0 }],
4899
4958
  term_ids: [1, { array: 0 }],
4900
4959
  total_tokens: [1, 0],
4960
+ value_pass: [2, "IngestionValuePassDto"],
4901
4961
  work_cache: [2, "IngestionWorkCacheDto"]
4902
4962
  }
4903
4963
  },
@@ -5148,6 +5208,8 @@ var RESPONSE_COMPONENTS = {
5148
5208
  boot_id: [1, 0],
5149
5209
  build_info: [1, "BuildInfoDto"],
5150
5210
  components: [1, { array: "ComponentHealthDto" }],
5211
+ holds_unproven_text: [1, 0],
5212
+ live_recording: [1, 0],
5151
5213
  sovereign: [1, 0],
5152
5214
  started_at: [1, 0],
5153
5215
  status: [1, 0],
@@ -5375,6 +5437,7 @@ var RESPONSE_COMPONENTS = {
5375
5437
  },
5376
5438
  ExecuteTranspiledResponse: {
5377
5439
  object: {
5440
+ completeness: [1, 0],
5378
5441
  dialect: [1, 0],
5379
5442
  query: [1, 0],
5380
5443
  row_count: [1, 0],
@@ -5853,8 +5916,34 @@ var RESPONSE_COMPONENTS = {
5853
5916
  term_id: [1, 0]
5854
5917
  }
5855
5918
  },
5919
+ FindGroup: { object: { items: [1, { array: "FindHit" }], kind: [1, 0] } },
5920
+ FindHit: {
5921
+ object: {
5922
+ at: [1, "FindPlace"],
5923
+ id: [1, 0],
5924
+ marks: [1, { array: { array: 0 } }],
5925
+ people: [1, { array: 0 }],
5926
+ reading: [1, 0],
5927
+ snippet: [1, 0],
5928
+ sort: [1, 0],
5929
+ source: [1, "FindSource"],
5930
+ title: [1, 0]
5931
+ }
5932
+ },
5933
+ FindNotSearched: { object: { reason: [1, 0], unread_pages: [0, { array: 0 }] } },
5934
+ FindPlace: { object: {} },
5856
5935
  FindPlansResponse: { object: { count: [1, 0], plans: [1, { array: "PlanMatchDto" }] } },
5936
+ FindResponse: {
5937
+ object: {
5938
+ groups: [1, { array: "FindGroup" }],
5939
+ not_searched: [1, { array: "FindNotSearched" }],
5940
+ query: [1, 0],
5941
+ searched: [1, { array: "FindSearched" }]
5942
+ }
5943
+ },
5857
5944
  FindRulesResponse: { object: { matching_rules: [1, { array: "RuleDto" }] } },
5945
+ FindSearched: { object: { live: [1, 0], source: [1, 0] } },
5946
+ FindSource: { object: {} },
5858
5947
  FindingContextDto: {
5859
5948
  object: { related_record_ids: [1, { array: 0 }], roles: [1, { array: 0 }] }
5860
5949
  },
@@ -6307,6 +6396,7 @@ var RESPONSE_COMPONENTS = {
6307
6396
  created_at: [1, 0],
6308
6397
  cycles: [1, { array: "ResearchCycleResultDto" }],
6309
6398
  gap_check: [2, "GapCheck"],
6399
+ knowledge_base_tenant_id: [1, 0],
6310
6400
  papers: [1, { array: "PaperMetadataDto" }],
6311
6401
  question: [1, 0],
6312
6402
  session_id: [1, 0],
@@ -7031,6 +7121,9 @@ var RESPONSE_COMPONENTS = {
7031
7121
  work_cache: [0, "IngestionWorkCacheDto"]
7032
7122
  }
7033
7123
  },
7124
+ IngestionValuePassDto: {
7125
+ object: { passages_not_read: [1, 0], values_held: [1, 0], values_read: [1, 0] }
7126
+ },
7034
7127
  IngestionWorkCacheDto: {
7035
7128
  object: {
7036
7129
  model_calls: [1, 0],
@@ -7774,6 +7867,16 @@ var RESPONSE_COMPONENTS = {
7774
7867
  }
7775
7868
  },
7776
7869
  LiveDocVersionsResponse: { object: { versions: [1, { array: "LiveDocVersionDto" }] } },
7870
+ LiveRecordingView: {
7871
+ object: {
7872
+ bytes: [1, 0],
7873
+ duration_secs: [1, 0],
7874
+ finals: [1, { array: { object: {} } }],
7875
+ id: [1, 0],
7876
+ result: [2, "IngestAudioResponse"],
7877
+ state: [1, 0]
7878
+ }
7879
+ },
7777
7880
  LlmContextFeatureDto: { object: { name: [1, 0], required: [1, 0] } },
7778
7881
  LlmContextPreferenceDto: { object: { key: [1, 0], value: [1, 0] } },
7779
7882
  LlmContextSortDto: {
@@ -9763,6 +9866,17 @@ var RESPONSE_COMPONENTS = {
9763
9866
  worker_count: [1, 0]
9764
9867
  }
9765
9868
  },
9869
+ QueuedVideoIngestResponse: {
9870
+ object: {
9871
+ document_id: [1, 0],
9872
+ session_id: [1, 0],
9873
+ status: [1, 0],
9874
+ status_url: [1, 0],
9875
+ original_files: [1, { array: "RetainedOriginal" }],
9876
+ source_text: [1, 0]
9877
+ }
9878
+ },
9879
+ QuotaView: { object: { limit: [1, 0], resets_at: [1, 0], used: [1, 0] } },
9766
9880
  QuotientClass: { object: { alpha: [1, 0], size: [1, 0], sort_ids: [1, { array: 0 }] } },
9767
9881
  QuotientOrderEdge: { object: { degree: [1, 0], from: [1, 0], to: [1, 0] } },
9768
9882
  RangeDto: { object: { feature: [1, 0], lower: [1, "SideDto"], upper: [1, "SideDto"] } },
@@ -9837,6 +9951,7 @@ var RESPONSE_COMPONENTS = {
9837
9951
  },
9838
9952
  ReasoningStageDto: {
9839
9953
  object: {
9954
+ blocked_sites: [0, { array: 0 }],
9840
9955
  kind: [1, 0],
9841
9956
  llm_used: [1, 0],
9842
9957
  matched_entities: [0, { array: "MatchedEntityDto" }],
@@ -10453,7 +10568,8 @@ var RESPONSE_COMPONENTS = {
10453
10568
  total_corrected: [1, 0],
10454
10569
  total_merged: [1, 0],
10455
10570
  total_pending: [1, 0],
10456
- total_rejected: [1, 0]
10571
+ total_rejected: [1, 0],
10572
+ total_superseded: [1, 0]
10457
10573
  }
10458
10574
  },
10459
10575
  ReviewUnitResponse: {
@@ -11243,6 +11359,7 @@ var RESPONSE_COMPONENTS = {
11243
11359
  },
11244
11360
  SiteRequestFiled: { object: { created: [1, 0], request: [1, "SiteRequestDto"] } },
11245
11361
  SiteRequestList: { object: { items: [1, { array: "SiteRequestDto" }] } },
11362
+ Sites: { object: { allow: [1, { array: 0 }], block: [1, { array: 0 }] } },
11246
11363
  SkillDraftEditResponse: {
11247
11364
  object: { description: [1, 0], markdown: [1, 0], name: [1, 0], prompt_version: [1, 0] }
11248
11365
  },
@@ -11281,6 +11398,24 @@ var RESPONSE_COMPONENTS = {
11281
11398
  SlideNotes: { object: { page: [1, 0], text: [1, 0] } },
11282
11399
  SmoothingParametersDto: { object: { alpha: [1, 0] } },
11283
11400
  SmtCheckResponse: { object: { assignments: [2, { object: {} }], result: [1, 0] } },
11401
+ SnapshotEnvelope: {
11402
+ object: {
11403
+ data: [1, 0],
11404
+ format: [1, 0],
11405
+ metadata: [1, "SnapshotExportMetadata"],
11406
+ version: [1, 0]
11407
+ }
11408
+ },
11409
+ SnapshotExportMetadata: {
11410
+ object: {
11411
+ created_at: [1, 0],
11412
+ name: [1, 0],
11413
+ reasoninglayer_version: [1, 0],
11414
+ size_bytes: [1, 0],
11415
+ source_tenant_id: [1, 0],
11416
+ table_counts: [1, { object: {} }]
11417
+ }
11418
+ },
11284
11419
  SnapshotFilter: { object: { request_path_pattern: [1, 0] } },
11285
11420
  SnapshotResponse: {
11286
11421
  object: {
@@ -11735,6 +11870,7 @@ var RESPONSE_COMPONENTS = {
11735
11870
  supported_modes: [1, { array: 0 }]
11736
11871
  }
11737
11872
  },
11873
+ SourceVerdictDto: { object: { kind: [1, 0] } },
11738
11874
  SourcesResponse: { object: { sources: [1, { array: "SourceDto" }] } },
11739
11875
  SovereignEndpoint: { object: { host: [1, 0], internal: [1, 0], var: [1, 0] } },
11740
11876
  SovereigntyReport: {
@@ -12351,6 +12487,16 @@ var RESPONSE_COMPONENTS = {
12351
12487
  reachable: [2, "ReachableDto"]
12352
12488
  }
12353
12489
  },
12490
+ ToVerifyPointDto: {
12491
+ object: {
12492
+ attestations: [0, { array: "ClaimAttestationDto" }],
12493
+ fact_term_ids: [0, { array: 0 }],
12494
+ kind: [1, 0],
12495
+ point_ref: [1, 0],
12496
+ reason: [1, 0],
12497
+ text: [1, 0]
12498
+ }
12499
+ },
12354
12500
  TokenSummary: {
12355
12501
  object: { cache_read: [1, 0], cache_write: [1, 0], input: [1, 0], output: [1, 0] }
12356
12502
  },
@@ -12504,7 +12650,11 @@ var RESPONSE_COMPONENTS = {
12504
12650
  reasoning_trace: [2, "ReasoningTraceDto"],
12505
12651
  role: [1, 0],
12506
12652
  stripped_claims: [0, { array: "StrippedClaimDto" }],
12507
- timestamp: [1, 0]
12653
+ timestamp: [1, 0],
12654
+ to_verify: [0, { array: "ToVerifyPointDto" }],
12655
+ unconfirmed: [0, { array: "UnconfirmedRecordDto" }],
12656
+ unread_pages: [0, { array: "UnreadPagesDto" }],
12657
+ web_sources: [0, { array: "WebSourceDto" }]
12508
12658
  }
12509
12659
  },
12510
12660
  TurnFeedbackDto: { object: { feedback_id: [1, 0], rating: [1, 0], recorded_at: [1, 0] } },
@@ -12599,6 +12749,7 @@ var RESPONSE_COMPONENTS = {
12599
12749
  y: [1, 0]
12600
12750
  }
12601
12751
  },
12752
+ UnconfirmedRecordDto: { object: { record_id: [1, 0], sort: [1, 0] } },
12602
12753
  UndeterminedDriftDto: { object: { crosswalk_id: [1, 0], reason: [1, 0] } },
12603
12754
  UndoRuleStoreResponse: { object: { rule_count: [1, 0], success: [1, 0] } },
12604
12755
  UnificationQueryResponse: { object: { count: [1, 0], results: [1, { array: "TermDto" }] } },
@@ -12680,6 +12831,7 @@ var RESPONSE_COMPONENTS = {
12680
12831
  records: [1, 0]
12681
12832
  }
12682
12833
  },
12834
+ UnreadPagesDto: { object: { document_id: [1, 0], pages: [1, { array: 0 }], reason: [1, 0] } },
12683
12835
  UnreadableRecordDto: { object: { reason: [1, 0], record_id: [1, 0] } },
12684
12836
  UnsatisfiableClassDto: { object: { class: [1, 0], disjoint_pair: [1, { array: 0 }] } },
12685
12837
  UnsatisfiableSortDto: { object: { disjoint_pair: [1, { array: 0 }], sort: [1, 0] } },
@@ -12913,6 +13065,16 @@ var RESPONSE_COMPONENTS = {
12913
13065
  }
12914
13066
  },
12915
13067
  VersionDto: { object: { bundle_id: [1, 0], engine_req: [1, 0], version: [1, 0] } },
13068
+ VideoEvidenceReceiptDto: {
13069
+ object: {
13070
+ document_term_id: [1, 0],
13071
+ located_terms: [1, 0],
13072
+ unlocated_term_ids: [1, { array: 0 }]
13073
+ }
13074
+ },
13075
+ VideoIngestResponse: {
13076
+ object: { evidence: [1, "VideoEvidenceReceiptDto"], stats: [1, "IngestionStatsDto"] }
13077
+ },
12916
13078
  ViewRefDto: { object: { draft_not_active: [1, 0], kind: [1, 0] } },
12917
13079
  ViolatedConstraintDto: { object: { feature: [1, 0], kind: [1, 0] } },
12918
13080
  ViolationCounts: {
@@ -13069,6 +13231,16 @@ var RESPONSE_COMPONENTS = {
13069
13231
  WebSearchHitDto: { object: { provider: [1, 0], snippet: [1, 0], title: [1, 0], url: [1, 0] } },
13070
13232
  WebSearchProviderDto: { object: { healthy: [1, 0], name: [1, 0] } },
13071
13233
  WebSearchResponse: { object: { query: [1, 0], results: [1, { array: "WebSearchHitDto" }] } },
13234
+ WebSourceDto: {
13235
+ object: {
13236
+ qualification: [1, "WebSourceQualificationDto"],
13237
+ record_term_id: [1, 0],
13238
+ source_verdict: [2, "SourceVerdictDto"],
13239
+ url: [1, 0],
13240
+ used: [1, 0]
13241
+ }
13242
+ },
13243
+ WebSourceQualificationDto: { object: { level: [1, 0] } },
13072
13244
  WebhookCallbackResponse: {
13073
13245
  object: { demons_fired: [1, 0], message: [1, 0], status: [1, 0], term_updated: [1, 0] }
13074
13246
  },
@@ -13636,6 +13808,11 @@ var RESPONSE_OPERATIONS = {
13636
13808
  path: "/api/v1/feasibility/sessions/{session_id}/assumptions",
13637
13809
  responses: { 200: "SchedulingDeltaResponse" }
13638
13810
  },
13811
+ attestConversationPoint: {
13812
+ method: "POST",
13813
+ path: "/api/v1/conversation/{id}/attestations",
13814
+ responses: { 200: "ClaimAttestationResponseDto" }
13815
+ },
13639
13816
  auditAssumptions: {
13640
13817
  method: "POST",
13641
13818
  path: "/api/v1/causal/assumptions/audit",
@@ -13741,6 +13918,11 @@ var RESPONSE_OPERATIONS = {
13741
13918
  path: "/api/v1/cognitive/agents/messages/broadcast",
13742
13919
  responses: { 200: "BroadcastMessageResponse" }
13743
13920
  },
13921
+ browserAgentRun: {
13922
+ method: "POST",
13923
+ path: "/api/v1/agent/browser-runs/{run_id}",
13924
+ responses: { 200: "BrowserRunResponse" }
13925
+ },
13744
13926
  buildTaxonomy: {
13745
13927
  method: "POST",
13746
13928
  path: "/api/v1/grounded-synthesis/taxonomies/build",
@@ -14753,6 +14935,11 @@ var RESPONSE_OPERATIONS = {
14753
14935
  path: "/api/v1/governance/change-requests/{change_request_id}/dispose",
14754
14936
  responses: { 200: "ChangeRequestResponse" }
14755
14937
  },
14938
+ draftClausePolicy: {
14939
+ method: "POST",
14940
+ path: "/api/v1/documents/{document_id}/clauses/{clause_id}/policy-draft",
14941
+ responses: { 200: "ClausePolicyDraftDto" }
14942
+ },
14756
14943
  draftSkillEdit: {
14757
14944
  method: "POST",
14758
14945
  path: "/api/v1/skills/draft-edit",
@@ -15079,6 +15266,11 @@ var RESPONSE_OPERATIONS = {
15079
15266
  path: "/api/v1/vocabulary/exports/skos",
15080
15267
  responses: { 200: "SkosExportResponse" }
15081
15268
  },
15269
+ exportSnapshot: {
15270
+ method: "GET",
15271
+ path: "/api/v1/admin/snapshots/{snapshot_id}/export",
15272
+ responses: { 200: "SnapshotEnvelope" }
15273
+ },
15082
15274
  extendDsr: {
15083
15275
  method: "POST",
15084
15276
  path: "/api/v1/dsr/{id}/extend",
@@ -15124,6 +15316,7 @@ var RESPONSE_OPERATIONS = {
15124
15316
  path: "/api/v1/oversight/sessions/{session_id}/finalize",
15125
15317
  responses: { 200: "FormalJudgeResponse" }
15126
15318
  },
15319
+ find: { method: "POST", path: "/api/v1/find", responses: { 200: "FindResponse" } },
15127
15320
  findBySort: {
15128
15321
  method: "POST",
15129
15322
  path: "/api/v1/query/by-sort",
@@ -15771,6 +15964,11 @@ var RESPONSE_OPERATIONS = {
15771
15964
  path: "/api/v1/sorts/least/{tenant_id}",
15772
15965
  responses: { 200: "LeastSortsResponse" }
15773
15966
  },
15967
+ getLiveRecording: {
15968
+ method: "GET",
15969
+ path: "/api/v1/audio/recordings/{id}",
15970
+ responses: { 200: "LiveRecordingView" }
15971
+ },
15774
15972
  getLlmMetrics: {
15775
15973
  method: "GET",
15776
15974
  path: "/api/v1/metrics/llm",
@@ -16345,6 +16543,11 @@ var RESPONSE_OPERATIONS = {
16345
16543
  path: "/api/v1/ingest/url",
16346
16544
  responses: { 200: "IngestUrlResponse" }
16347
16545
  },
16546
+ ingestVideo: {
16547
+ method: "POST",
16548
+ path: "/api/v1/ingest/video",
16549
+ responses: { 201: "VideoIngestResponse", 202: "QueuedVideoIngestResponse" }
16550
+ },
16348
16551
  installConceptRules: {
16349
16552
  method: "POST",
16350
16553
  path: "/api/v1/analysis/concept-rules",
@@ -16493,7 +16696,7 @@ var RESPONSE_OPERATIONS = {
16493
16696
  listBrowserAgentRuns: {
16494
16697
  method: "GET",
16495
16698
  path: "/api/v1/agent/browser-runs",
16496
- responses: { 200: { array: 0 } }
16699
+ responses: { 200: { array: "BrowserRunView" } }
16497
16700
  },
16498
16701
  listCandidates: {
16499
16702
  method: "GET",
@@ -17385,6 +17588,7 @@ var RESPONSE_OPERATIONS = {
17385
17588
  path: "/api/v1/execution/sessions/{session_id}/goals/pop",
17386
17589
  responses: { 200: "GoalStackResponse" }
17387
17590
  },
17591
+ postDecide: { method: "POST", path: "/api/v1/boundary/decide", responses: { 200: "Decision" } },
17388
17592
  postExchange: {
17389
17593
  method: "POST",
17390
17594
  path: "/api/v1/gateway-sessions/{key}/exchanges",
@@ -18066,6 +18270,11 @@ var RESPONSE_OPERATIONS = {
18066
18270
  path: "/api/v1/ingest/dlq/{id}/retry",
18067
18271
  responses: { 202: "DlqRetryResponse" }
18068
18272
  },
18273
+ retryLiveRecording: {
18274
+ method: "POST",
18275
+ path: "/api/v1/audio/recordings/{id}/retry",
18276
+ responses: { 200: "LiveRecordingView", 202: "LiveRecordingView" }
18277
+ },
18069
18278
  review: {
18070
18279
  method: "POST",
18071
18280
  path: "/api/v1/runtime/builder-review",
@@ -18476,6 +18685,11 @@ var RESPONSE_OPERATIONS = {
18476
18685
  path: "/api/v1/cognitive/agents/{agent_id}/stop",
18477
18686
  responses: { 200: "AgentStatusChangeResponse" }
18478
18687
  },
18688
+ stopLiveRecording: {
18689
+ method: "POST",
18690
+ path: "/api/v1/audio/recordings/{id}/stop",
18691
+ responses: { 200: "LiveRecordingView", 202: "LiveRecordingView" }
18692
+ },
18479
18693
  storePlan: {
18480
18694
  method: "POST",
18481
18695
  path: "/api/v1/cognitive/agents/plans",
@@ -19550,7 +19764,8 @@ function BulkRowRefusalFromApiToFront(dto) {
19550
19764
  message: dto.message,
19551
19765
  ...dto.feature ? { feature: dto.feature } : {},
19552
19766
  ...dto.constraint_name != null ? { constraintName: dto.constraint_name } : {},
19553
- ...dto.constraint_message != null ? { constraintMessage: dto.constraint_message } : {}
19767
+ ...dto.constraint_message != null ? { constraintMessage: dto.constraint_message } : {},
19768
+ ...dto.code != null ? { code: dto.code } : {}
19554
19769
  };
19555
19770
  }
19556
19771
  function ClearTermsResponseFromApiToFront(dto) {
@@ -21658,6 +21873,7 @@ function BackwardChainResponseFromApiToFront(dto) {
21658
21873
  };
21659
21874
  if (dto.derivation_complete != null) out.derivationComplete = dto.derivation_complete;
21660
21875
  if (dto.completed_proof_count != null) out.completedProofCount = dto.completed_proof_count;
21876
+ if (dto.valid_before != null) out.validBefore = dto.valid_before;
21661
21877
  if (dto.open_world_search != null) {
21662
21878
  out.openWorldSearch = OpenWorldSearchCompletionFromApiToFront(dto.open_world_search);
21663
21879
  }
@@ -21730,7 +21946,11 @@ function BulkAddRulesResponseFromApiToFront(dto) {
21730
21946
  return out;
21731
21947
  }
21732
21948
  function RejectedBulkItemFromApiToFront(dto) {
21733
- return { index: dto.index, reason: dto.reason };
21949
+ return {
21950
+ index: dto.index,
21951
+ reason: dto.reason,
21952
+ ...dto.code != null ? { code: dto.code } : {}
21953
+ };
21734
21954
  }
21735
21955
  function BulkAddFactsResponseFromApiToFront(dto) {
21736
21956
  const out = {
@@ -21850,6 +22070,7 @@ function NafProveResponseFromApiToFront(dto) {
21850
22070
  };
21851
22071
  if (dto.derivation_complete != null) out.derivationComplete = dto.derivation_complete;
21852
22072
  if (dto.completed_proof_count != null) out.completedProofCount = dto.completed_proof_count;
22073
+ if (dto.valid_before != null) out.validBefore = dto.valid_before;
21853
22074
  return out;
21854
22075
  }
21855
22076
  function CreateGoalResponseFromApiToFront(dto) {
@@ -26945,7 +27166,9 @@ function VocabularyAuthorityRelationFromApiToFront(dto) {
26945
27166
  key,
26946
27167
  wireString(value, `body.fact.features.${key}`)
26947
27168
  ])
26948
- )
27169
+ ),
27170
+ ...present(dto.valid_until) ? { validUntil: wireString(dto.valid_until, "body.fact.valid_until") } : {},
27171
+ ...dto.expired === void 0 ? {} : { expired: wireBoolean(dto.expired, "body.fact.expired") }
26949
27172
  };
26950
27173
  }
26951
27174
  function VocabularyAuthorityRelationAssertedFromApiToFront(dto) {
@@ -27310,7 +27533,9 @@ function GovernanceAuthorityRelationFromApiToFront(dto) {
27310
27533
  return {
27311
27534
  features: definedRecord(dto.features),
27312
27535
  id: dto.id,
27313
- relation: dto.relation
27536
+ relation: dto.relation,
27537
+ ...dto.valid_until === void 0 ? {} : { validUntil: dto.valid_until === null ? null : dto.valid_until },
27538
+ ...dto.expired === void 0 ? {} : { expired: wireBoolean(dto.expired, "authorityRelation.expired") }
27314
27539
  };
27315
27540
  }
27316
27541
  function GovernanceAuthorityRelationPageResponseFromApiToFront(dto) {
@@ -28822,6 +29047,14 @@ var GOVERNANCE_REFUSAL_CODES = members({
28822
29047
  llm_provider_failed: true,
28823
29048
  subscription_source_unconfigured: true,
28824
29049
  subscription_source_foreign: true,
29050
+ browser_run_person_required: true,
29051
+ browser_run_access_denied: true,
29052
+ browser_authority_unavailable: true,
29053
+ browser_run_not_found: true,
29054
+ browser_run_conflict: true,
29055
+ browser_run_task_invalid: true,
29056
+ browser_observation_out_of_bounds: true,
29057
+ browser_run_store_unavailable: true,
28825
29058
  workflow_authority_unconfigured: true,
28826
29059
  action_approval_denied: true,
28827
29060
  action_approval_undetermined: true,
@@ -28858,7 +29091,14 @@ var GOVERNANCE_REFUSAL_CODES = members({
28858
29091
  statement_not_a_rule: true,
28859
29092
  statement_refused: true,
28860
29093
  rule_comparison_timeout: true,
28861
- rule_comparison_failed: true
29094
+ rule_comparison_failed: true,
29095
+ reserved_sort_write_refused: true,
29096
+ sort_write_not_granted: true,
29097
+ filing_term_unread: true,
29098
+ reference_term_unknown: true,
29099
+ term_id_unavailable: true,
29100
+ reserved_sort_delete_refused: true,
29101
+ sort_delete_not_granted: true
28862
29102
  });
28863
29103
 
28864
29104
  // src/utils/vocabulary-refusal.ts
@@ -29086,12 +29326,30 @@ function rethrowVocabularyRefusal(error) {
29086
29326
  }
29087
29327
  throw error;
29088
29328
  }
29329
+ function rethrowBulkRowCodes(error) {
29330
+ if (error instanceof BulkRefusedError) {
29331
+ const body = error.body;
29332
+ const wireRows = typeof body === "object" && body !== null && "errors" in body ? body.errors : void 0;
29333
+ if (Array.isArray(wireRows) && wireRows.length === error.rows.length) {
29334
+ const entries = wireRows;
29335
+ const rows = error.rows.map((row, position) => {
29336
+ const entry2 = entries[position];
29337
+ const code = typeof entry2 === "object" && entry2 !== null && "code" in entry2 ? entry2.code : void 0;
29338
+ const known = GOVERNANCE_REFUSAL_CODES.find((member) => member === code);
29339
+ return known === void 0 ? row : { ...row, code: known };
29340
+ });
29341
+ throw new BulkRefusedError(error.message, body, error.headers, rows, error.errorCode);
29342
+ }
29343
+ }
29344
+ throw error;
29345
+ }
29089
29346
  function governanceRefusalOfBody(body) {
29090
29347
  try {
29091
29348
  const wire = wireObject(body, "body");
29092
29349
  return {
29093
29350
  error: wireString(wire.error, "error"),
29094
29351
  code: wireLiteral(wire.code, GOVERNANCE_REFUSAL_CODES, "code"),
29352
+ ...isAbsent(wire.component) ? {} : { component: wireString(wire.component, "component") },
29095
29353
  message: wireString(wire.message, "message")
29096
29354
  };
29097
29355
  } catch (failure) {
@@ -30780,7 +31038,7 @@ var Sorts = class {
30780
31038
  ...params
30781
31039
  });
30782
31040
  /**
30783
- * @description `POST /api/v1/sorts/subsumption/bulk` keeps the relation's closed contract: it refuses `a ⊑·0.7 b, b ⊑·0.6 c` without `a ⊑· c`. This is the import path for such input, through the native [`SortHierarchy::compile_fuzzy_subsumptions`](osfkb_domain::types::SortHierarchy::compile_fuzzy_subsumptions): each source is exact for its pair, every degree transitivity forces beyond the one-hop reading is returned apart as `derived`, and the native partial-order check remains the verifier. The declaration is one unit, so it is admitted or refused whole: * a source naming a sort the caller cannot write is a 404, as on the single writer; * a contradiction (a source or an existing declaration below a forced degree, a degree outside `[0, 1]`, two different degrees for one pair) is a 422 naming it, and nothing is written; * a forced degree touching a sort the caller cannot write is a 422 as well: the relation is process-wide, so the closure may not write onto a sort outside the caller's ownership any more than a source may. The compilation is validated on a staging fork before recovery is armed, persisted as one batch, and mirrored into the tenant lattice every graded route reads (#113).
31041
+ * @description `POST /api/v1/sorts/subsumption/bulk` keeps the relation's closed contract: it refuses `a ⊑·0.7 b, b ⊑·0.6 c` without `a ⊑· c`. This is the import path for such input, through compilation of the fuzzy subsumption relation: each source is exact for its pair, every degree transitivity forces beyond the one-hop reading is returned apart as `derived`, and the native partial-order check remains the verifier. The declaration is one unit, so it is admitted or refused whole: * a source naming a sort the caller cannot write is a 404, as on the single writer; * a contradiction (a source or an existing declaration below a forced degree, a degree outside `[0, 1]`, two different degrees for one pair) is a 422 naming it, and nothing is written; * a forced degree touching a sort the caller cannot write is a 422 as well: the relation is process-wide, so the closure may not write onto a sort outside the caller's ownership any more than a source may. The compilation is validated on a staging fork before recovery is armed, persisted as one batch, and mirrored into the tenant lattice every graded route reads (#113).
30784
31042
  *
30785
31043
  * @tags sorts
30786
31044
  * @name CompileSubsumptions
@@ -31932,7 +32190,7 @@ var Terms = class {
31932
32190
  ...params
31933
32191
  });
31934
32192
  /**
31935
- * @description Newest first. Each entry carries the state after the write and, except for version 1, the diff against the version before it — computed on read with `osfkb_domain::versioning::compute_diff`, which skips the bitemporal features. Three distinct answers, which must not be collapsed into one 404: * the term exists and has states — `200` with them; * the term exists and has none (it predates the history, or the history is off) — `200` with `history_recorded: false` and an empty list. Every term written before this release is in this case, and calling it "not found" would be false. A rule's conclusion is ALWAYS in this case (#309): it is derived, never written, so no state of it is recorded; * the term is unknown to this tenant — `404`.
32193
+ * @description Newest first. Each entry carries the state after the write and, except for version 1, the diff against the version before it — computed on read, excluding the bitemporal features. Three distinct answers, which must not be collapsed into one 404: * the term exists and has states — `200` with them; * the term exists and has none (it predates the history, or the history is off) — `200` with `history_recorded: false` and an empty list. Every term written before this release is in this case, and calling it "not found" would be false. A rule's conclusion is ALWAYS in this case (#309): it is derived, never written, so no state of it is recorded; * the term is unknown to this tenant — `404`.
31936
32194
  *
31937
32195
  * @tags terms
31938
32196
  * @name ListTermVersions
@@ -32223,7 +32481,7 @@ var Inference = class {
32223
32481
  ...params
32224
32482
  });
32225
32483
  /**
32226
- * @description Phase 2 v2 entry point for retraction: 1. Removes each term from PG + in-memory stores via [`HomoiconicTermService::remove_term`](osfkb_application::services::HomoiconicTermService::remove_term). 2. When `state.use_plan_engine` is on, submits a single [`DeltaEvent::Retract`](osfkb_application::services::dataflow::DeltaEvent::Retract) to the per-tenant supervisor so the Backward/Forward backward chase decrements every dependent derived fact's `proof_count` (and deletes those whose count reaches zero). Symmetric to [`bulk_add_terms`]; idempotent (term ids absent from the working memory are silently skipped — same shape as [`delete_term`] returning 404, except in the bulk path the missing ids simply don't appear in `removed_term_ids`). Best-effort supervisor enqueue: a supervisor failure does NOT fail the 2xx response — the persist path has succeeded and a future bootstrap can recover any missed retraction. # Mid-batch error handling If `remove_term` fails for a term partway through the batch, the handler **stops accumulating successes**, runs cache invalidation for the prefix that did succeed, submits a single [`DeltaEvent::Retract`](osfkb_application::services::dataflow::DeltaEvent::Retract) covering that prefix, and **then** surfaces the error. This keeps the supervisor and the in-memory caches in sync with the actual store state — a leaked Retract event would orphan derived facts whose only antecedent is now removed, which is a critical correctness violation. # Authorization Requires `X-Tenant-Id` header. The `term_ids` are resolved against that tenant's working memory only — cross-tenant retraction is impossible by construction (the per-tenant `HomoiconicTermService` only sees its own tenant's terms).
32484
+ * @description Phase 2 v2 entry point for retraction: 1. Removes each term from persistent and in-memory storage. 2. When `state.use_plan_engine` is on, submits a single retraction event to the per-tenant supervisor so the Backward/Forward backward chase decrements every dependent derived fact's `proof_count` (and deletes those whose count reaches zero). Symmetric to [`bulk_add_terms`]; idempotent (term ids absent from the working memory are silently skipped — same shape as [`delete_term`] returning 404, except in the bulk path the missing ids simply don't appear in `removed_term_ids`). Best-effort supervisor enqueue: a supervisor failure does NOT fail the 2xx response — the persist path has succeeded and a future bootstrap can recover any missed retraction. # Mid-batch error handling If `remove_term` fails for a term partway through the batch, the handler **stops accumulating successes**, runs cache invalidation for the prefix that did succeed, submits a single retraction event covering that prefix, and **then** surfaces the error. This keeps the supervisor and the in-memory caches in sync with the actual store state — a leaked Retract event would orphan derived facts whose only antecedent is now removed, which is a critical correctness violation. # Authorization Requires `X-Tenant-Id` header. The `term_ids` are resolved against that tenant's working memory only — cross-tenant retraction is impossible by construction (the per-tenant `HomoiconicTermService` only sees its own tenant's terms).
32227
32485
  *
32228
32486
  * @tags inference
32229
32487
  * @name BulkRetractTerms
@@ -34542,6 +34800,22 @@ var Ingestion = class {
34542
34800
  format: "json",
34543
34801
  ...params
34544
34802
  });
34803
+ /**
34804
+ * @description A recording the live caption socket keeps (`/ws/audio/stream?protocol_version=2&recording=<id>`): its state, the audio held and the finals so far; once ready, the retained original and the parse-only audio result. Only the user who started it may read it. A ready or failed recording expires after the parse-only retention (`OSFKB_AUDIO_JOB_RETENTION_SECS`, a day by default).
34805
+ *
34806
+ * @tags ingestion
34807
+ * @name GetLiveRecording
34808
+ * @summary Read a live recording.
34809
+ * @request GET:/api/v1/audio/recordings/{id}
34810
+ * @secure
34811
+ */
34812
+ getLiveRecording = (id, params = {}) => this.http.request({
34813
+ path: `/api/v1/audio/recordings/${id}`,
34814
+ method: "GET",
34815
+ secure: true,
34816
+ format: "json",
34817
+ ...params
34818
+ });
34545
34819
  /**
34546
34820
  * @description `documents` counts the calling tenant's own ingestion documents by status; a tenant that never ingested sees all zeros (#293). Queue depth, worker figures, wait times, throughput and the LLM circuit-breaker state describe the process-wide pipeline shared by every tenant. `circuit_breaker_state` is one of `closed`, `open`, `half_open`, `unknown` (#294).
34547
34821
  *
@@ -34720,7 +34994,7 @@ var Ingestion = class {
34720
34994
  ...params
34721
34995
  });
34722
34996
  /**
34723
- * @description Crawls from `url` through the engine's web fetcher, obeying robots.txt and `<meta name="robots">`, staying inside `scope`, following at most `max_depth` link hops and requesting at most `max_pages` page URLs, with at least the reported interval between two requests to one host. Only public addresses are reachable: a URL naming — or resolving to — a loopback, private or link-local address is refused. Each page read becomes one `web_page` term carrying its provenance — `url`, `fetched_at`, `content_hash` — and its content: `title`, `headings`, `text`, `text_truncated`, `links`, `http_status`, `content_type`. Re-ingesting a URL lands on the same term: `unchanged` when the content hash matches (nothing is written), `updated` when it does not. Pages are written in crawl order. A store failure after the crawl stops the writes and answers `500` with code `web_ingest_store_failed`: `report` lists the pages stored before it (their post-write maintenance has run), `failed` names the step, the page and the cause, and `not_written` lists the pages read after it. Nothing is rolled back. Re-running the request is idempotent: a page's term id derives from its URL, so the stored pages answer `unchanged` and the rest are written.
34997
+ * @description Crawls from `url` through the engine's web fetcher, obeying robots.txt and `<meta name="robots">`, staying inside `scope`, following at most `max_depth` link hops and requesting at most `max_pages` page URLs, with at least the reported interval between two requests to one host. Only public addresses are reachable: a URL naming — or resolving to — a loopback, private or link-local address is refused. Each page read becomes one `web_page` term carrying its provenance — `url`, `fetched_at`, `content_hash` — and its content: `title`, `headings`, `text`, `text_truncated`, `links`, `http_status`, `content_type`. Re-ingesting a URL lands on the same term: `unchanged` when the content hash matches (nothing is written), `updated` when it does not. Pages are written in crawl order. A store failure after the crawl stops the writes and answers `500` with code `web_ingest_store_failed`: `report` lists the pages stored before it (their post-write maintenance has run), `failed` names the step, the page and the cause, and `not_written` lists the pages read after it. Nothing is rolled back. Re-running the request is idempotent: a page's term id derives from its URL, so the stored pages answer `unchanged` and the rest are written. The fetch goes through the engine's one web path ([`crate::handlers::web_effects::WebCall::ingest`], the same as the RLQL `READ PAGE` statement): the request is checked first, then the Space's boundary decides the fetch of the start page's host as `public` data, with the caller's forwarded credential. A refusal fetches nothing.
34724
34998
  *
34725
34999
  * @tags ingestion
34726
35000
  * @name IngestUrl
@@ -34737,6 +35011,25 @@ var Ingestion = class {
34737
35011
  format: "json",
34738
35012
  ...params
34739
35013
  });
35014
+ /**
35015
+ * @description Reads the clip's timeline from the configured service and ingests its text with the full ontology extraction. The run commits the document, its terms, the video evidence and one passage per utterance or frame together, or none of them.
35016
+ *
35017
+ * @tags ingestion
35018
+ * @name IngestVideo
35019
+ * @summary Ingest a short video
35020
+ * @request POST:/api/v1/ingest/video
35021
+ * @secure
35022
+ */
35023
+ ingestVideo = (data, query, params = {}) => this.http.request({
35024
+ path: `/api/v1/ingest/video`,
35025
+ method: "POST",
35026
+ query,
35027
+ body: data,
35028
+ secure: true,
35029
+ type: "application/json",
35030
+ format: "json",
35031
+ ...params
35032
+ });
34740
35033
  /**
34741
35034
  * @description Returns paginated list of chunk failures in the dead-letter queue.
34742
35035
  *
@@ -34995,6 +35288,22 @@ var Ingestion = class {
34995
35288
  format: "json",
34996
35289
  ...params
34997
35290
  });
35291
+ /**
35292
+ * @description Finalizes again a `failed` recording from the audio it kept. A ready recording answers 200 as it stands; one still recording or finalizing answers 409.
35293
+ *
35294
+ * @tags ingestion
35295
+ * @name RetryLiveRecording
35296
+ * @summary Finalize again a recording whose finalizing failed.
35297
+ * @request POST:/api/v1/audio/recordings/{id}/retry
35298
+ * @secure
35299
+ */
35300
+ retryLiveRecording = (id, params = {}) => this.http.request({
35301
+ path: `/api/v1/audio/recordings/${id}/retry`,
35302
+ method: "POST",
35303
+ secure: true,
35304
+ format: "json",
35305
+ ...params
35306
+ });
34998
35307
  /**
34999
35308
  * @description POST /api/v1/ingest/sessions Creates a resumable ingestion session for tracking batch document ingestion. Returns a session ID that can be used to track progress and resume interrupted ingestion. # Headers - `X-Tenant-Id`: Tenant ID for multi-tenancy isolation (required) # Request Body - `document_ids`: List of document IDs that will be ingested in this session # Response - Session details including ID, status, and document count
35000
35309
  *
@@ -35013,6 +35322,22 @@ var Ingestion = class {
35013
35322
  format: "json",
35014
35323
  ...params
35015
35324
  });
35325
+ /**
35326
+ * @description Stops a recording and finalizes it: the audio is sealed and retained as the meeting's original, then the parse-only audio pipeline writes the transcript, summary and actions. Idempotent: a recording already finalizing answers 202 (and finalizing starts again if its worker stopped), a ready or failed one answers 200. Audio a live socket had not yet written (at most about five seconds) is not kept.
35327
+ *
35328
+ * @tags ingestion
35329
+ * @name StopLiveRecording
35330
+ * @summary Stop a live recording whose socket is gone, and finalize it.
35331
+ * @request POST:/api/v1/audio/recordings/{id}/stop
35332
+ * @secure
35333
+ */
35334
+ stopLiveRecording = (id, params = {}) => this.http.request({
35335
+ path: `/api/v1/audio/recordings/${id}/stop`,
35336
+ method: "POST",
35337
+ secure: true,
35338
+ format: "json",
35339
+ ...params
35340
+ });
35016
35341
  /**
35017
35342
  * No description
35018
35343
  *
@@ -35077,11 +35402,11 @@ var Ingestion = class {
35077
35402
  ...params
35078
35403
  });
35079
35404
  /**
35080
- * @description The search goes through the same `WebSearchRouter` the `web_search` agent action uses: the providers, their failover order and their health marks are the ones `GET /api/v1/web/capabilities` reports. The route does not enforce health — a provider marked unhealthy is still tried in order, as the router does for the agent action, and a success marks it healthy again. The results are candidates for `POST /api/v1/ingest/url`; the search itself writes nothing for the tenant, so the route is wrapped in [`crate::middleware::mark_tenant_untouched`] and every answer — the body rejections included — carries the marker (#347, #385). A deployment that cannot search says so with a typed code — `503 web_search_not_configured` or `502 web_search_providers_failed` — and never with an empty list, which means the search ran and found nothing.
35405
+ * @description The search goes through the same `WebSearchRouter` the `web_search` agent action and the Ask turn's web leg use: crawl-bee through the gateway's relay, with the providers, their failover order and their health marks `GET /api/v1/web/capabilities` reports. It reads the Space's `web_search` setting first ([`web_search_reach`]), then asks the Space's boundary for the call (a query made of the person's own words is `internal`), and sends the Space's sites with it. The results are candidates for `POST /api/v1/ingest/url`; the search itself writes nothing for the tenant, so the route is wrapped in [`crate::middleware::mark_tenant_untouched`] and every answer — the body rejections included — carries the marker (#347, #385). A deployment that cannot search says so with a typed code — `503 web_search_not_configured` or `502 web_search_providers_failed` — and never with an empty list, which means the search ran and found nothing.
35081
35406
  *
35082
35407
  * @tags ingestion
35083
35408
  * @name WebSearch
35084
- * @summary Search the web through the deployment's search providers (#413).
35409
+ * @summary Search the web through the box's search (#413, gate 1 WP-0).
35085
35410
  * @request POST:/api/v1/web/search
35086
35411
  * @secure
35087
35412
  */
@@ -37580,7 +37905,7 @@ var Visualization = class {
37580
37905
  ...params
37581
37906
  });
37582
37907
  /**
37583
- * @description Without `term_id`, one constraint node per bound constraint DECLARED on a sort (`CHECK ON …`, or `bound_constraints` on `POST /api/v1/sorts`), with sort-level feature paths as its variables. With `term_id`, one node per constraint GOVERNING that term (own and inherited), each evaluated by the evaluator every write surface runs and carrying its `status`. In both, every dependency the reactive facade's tracker holds is added, and `cycles` are closed walks over the response graph's own node and edge ids. The graph is built by [`osfkb_domain::visualization::build_constraint_graph`]; `dot_output` renders that same graph. Before #341 this route answered one `Constraint System` placeholder node, never filled `fd_domains`, and rendered DOT from an empty graph.
37908
+ * @description Without `term_id`, one constraint node per bound constraint DECLARED on a sort (`CHECK ON …`, or `bound_constraints` on `POST /api/v1/sorts`), with sort-level feature paths as its variables. With `term_id`, one node per constraint GOVERNING that term (own and inherited), each evaluated by the evaluator every write surface runs and carrying its `status`. In both, every dependency the reactive facade's tracker holds is added, and `cycles` are closed walks over the response graph's own node and edge ids. The `dot_output` field renders the same graph. Before #341 this route answered one `Constraint System` placeholder node, never filled `fd_domains`, and rendered DOT from an empty graph.
37584
37909
  *
37585
37910
  * @tags visualization
37586
37911
  * @name GetConstraintGraph
@@ -39559,6 +39884,7 @@ function OsfqlBindingsFromApiToFront(value) {
39559
39884
  }
39560
39885
  function OsfqlRequestFromFrontToApi(model) {
39561
39886
  const dto = { query: model.query };
39887
+ if (model.confirmExternal !== void 0) dto.confirm_external = model.confirmExternal;
39562
39888
  if (model.reactive !== void 0) dto.reactive = model.reactive;
39563
39889
  if (model.atomic !== void 0) dto.atomic = model.atomic;
39564
39890
  if (model.maxRows !== void 0) dto.max_rows = model.maxRows;
@@ -39915,6 +40241,14 @@ function OsfqlRefusalFromApiToFront(value) {
39915
40241
  parsedRepairs.push(repair);
39916
40242
  }
39917
40243
  const refusal = { code, sort, candidates, repairs: parsedRepairs };
40244
+ const denialCode = value["denial_code"];
40245
+ if (typeof denialCode === "string") {
40246
+ const known = GOVERNANCE_REFUSAL_CODES.find((member) => member === denialCode);
40247
+ if (known === void 0) return void 0;
40248
+ refusal.denialCode = known;
40249
+ } else if (denialCode !== void 0 && denialCode !== null) {
40250
+ return void 0;
40251
+ }
39918
40252
  if (typeof role === "string") {
39919
40253
  refusal.role = role;
39920
40254
  } else if (role !== void 0 && role !== null) {
@@ -41752,7 +42086,7 @@ var Reasoning = class {
41752
42086
  ...params
41753
42087
  });
41754
42088
  /**
41755
- * @description POST /api/v1/reasoning/entailment Answers `facts ⊨ antecedent ⇒ consequent`, hierarchy-aware and graded. A clause holds in the fact base to the degree that some fact *witnesses* it — that is, to the degree the clause subsumes a fact — so a `sparrow` fact establishes the clause `animal` without an `animal` fact being supplied. The consequent is additionally established when it subsumes the antecedent it would follow from. See [`osfkb_domain::operations::homoiconic_entailment`] for the full semantics. `entails` is the crisp reading of `degree`; `degree`, `antecedent_degree` and `consequent_degree` are computed from the sort lattice (crisply, and through explicit fuzzy `⊑·` relations and approved sort similarity), never cast from the boolean.
42089
+ * @description POST /api/v1/reasoning/entailment Answers `facts ⊨ antecedent ⇒ consequent`, hierarchy-aware and graded. A clause holds in the fact base to the degree that some fact *witnesses* it — that is, to the degree the clause subsumes a fact — so a `sparrow` fact establishes the clause `animal` without an `animal` fact being supplied. The consequent is additionally established when it subsumes the antecedent it would follow from. `entails` is the crisp reading of `degree`; `degree`, `antecedent_degree` and `consequent_degree` are computed from the sort lattice (crisply, and through explicit fuzzy `⊑·` relations and approved sort similarity), never cast from the boolean.
41756
42090
  *
41757
42091
  * @tags reasoning
41758
42092
  * @name Entailment
@@ -45289,7 +45623,7 @@ var Osfql = class {
45289
45623
  ...params
45290
45624
  });
45291
45625
  /**
45292
- * @description Parses, compiles, and executes an OSFQL program against the caller's tenant-isolated knowledge base. Supports all OSFQL statement types: MATCH, INSERT, RETRACT, DERIVE, UNIFY, AWAIT, COUNTERFACTUAL, CAUSES. # Examples ```json { "query": "INSERT person(name: \"Alice\", age: 30);" } ``` ```json { "query": "MATCH person(name: ?N, age: ?A) WHERE ?A > 18;" } ```
45626
+ * @description Executes an RLQL program against the caller's tenant-isolated knowledge base. Supported statements include MATCH, INSERT, RETRACT, DERIVE, UNIFY, AWAIT, COUNTERFACTUAL and CAUSES. `SEARCH WEB` and `READ PAGE` use the Space's `web_search` setting and check its outbound policy against the call's data class. The relay reads permitted pages and the engine stores each as a `web_page` owned by the caller. Ordinary statements between two web operations form one atomic program. A diagnostic reports the term IDs each operation bound (`effect_bound`) or its refusal code. A refused operation binds no terms. # Examples ```json { "query": "INSERT person(name: \"Alice\", age: 30);" } ``` ```json { "query": "MATCH person(name: ?N, age: ?A) WHERE ?A > 18;" } ```
45293
45627
  *
45294
45628
  * @tags osfql
45295
45629
  * @name ExecuteOsfql
@@ -45748,6 +46082,80 @@ var Text = class {
45748
46082
  });
45749
46083
  };
45750
46084
 
46085
+ // src/api-spec/generated/Agent.ts
46086
+ var Agent = class {
46087
+ http;
46088
+ constructor(http) {
46089
+ this.http = http;
46090
+ }
46091
+ /**
46092
+ * @description Returns 400 for an empty task, 503 `llm_unconfigured` when no text model is configured, 502 `llm_provider_failed` when it fails, and 422 when the model does not return a parseable step. Visual grounding is best-effort: a missing screenshot or an unconfigured vision port simply falls back to the text-only DOM tree.
46093
+ *
46094
+ * @tags agent
46095
+ * @name AgentBrowserStep
46096
+ * @summary Decide the next browser action(s) for the current page state.
46097
+ * @request POST:/api/v1/agent/browser-step
46098
+ * @secure
46099
+ */
46100
+ agentBrowserStep = (data, params = {}) => this.http.request({
46101
+ path: `/api/v1/agent/browser-step`,
46102
+ method: "POST",
46103
+ body: data,
46104
+ secure: true,
46105
+ type: "application/json",
46106
+ format: "json",
46107
+ ...params
46108
+ });
46109
+ /**
46110
+ * No description
46111
+ *
46112
+ * @tags agent
46113
+ * @name BrowserAgentRun
46114
+ * @request POST:/api/v1/agent/browser-runs/{run_id}
46115
+ * @secure
46116
+ */
46117
+ browserAgentRun = (runId, data, params = {}) => this.http.request({
46118
+ path: `/api/v1/agent/browser-runs/${runId}`,
46119
+ method: "POST",
46120
+ body: data,
46121
+ secure: true,
46122
+ type: "application/json",
46123
+ format: "json",
46124
+ ...params
46125
+ });
46126
+ /**
46127
+ * No description
46128
+ *
46129
+ * @tags agent
46130
+ * @name ListBrowserAgentRuns
46131
+ * @request GET:/api/v1/agent/browser-runs
46132
+ * @secure
46133
+ */
46134
+ listBrowserAgentRuns = (params = {}) => this.http.request({
46135
+ path: `/api/v1/agent/browser-runs`,
46136
+ method: "GET",
46137
+ secure: true,
46138
+ format: "json",
46139
+ ...params
46140
+ });
46141
+ /**
46142
+ * @description Deterministic and side-effect free: the caller declares the plan and what each tool returns, and the run happens in a scratch term store. The tenant's knowledge base is read (for its sort lattice) but never written.
46143
+ *
46144
+ * @tags agent
46145
+ * @name RunAgentLoop
46146
+ * @summary `POST /api/v1/agent/loop/run` — plan → verify → dispatch → certify against the tenant's declared sort lattice.
46147
+ * @request POST:/api/v1/agent/loop/run
46148
+ */
46149
+ runAgentLoop = (data, params = {}) => this.http.request({
46150
+ path: `/api/v1/agent/loop/run`,
46151
+ method: "POST",
46152
+ body: data,
46153
+ type: "application/json",
46154
+ format: "json",
46155
+ ...params
46156
+ });
46157
+ };
46158
+
45751
46159
  // src/api-spec/generated/Compliance.ts
45752
46160
  var Compliance = class {
45753
46161
  http;
@@ -46328,7 +46736,7 @@ var Snapshots = class {
46328
46736
  ...params
46329
46737
  });
46330
46738
  /**
46331
- * @description Accepts a reasoninglayer-snapshot JSON envelope (or one an earlier release exported as osfkb-snapshot), validates the structure, and stores it as a new snapshot. Use ?name=override to rename. Reserved to the gateway's provisioning identity (an authorization context with `reservedExempt`): any other caller is refused with `403 provisioning_identity_required`.
46739
+ * @description Accepts a reasoninglayer-snapshot JSON envelope (including envelopes exported by earlier releases), validates the structure, and stores it as a new snapshot. Use ?name=override to rename. Reserved to the gateway's provisioning identity (an authorization context with `reservedExempt`): any other caller is refused with `403 provisioning_identity_required`.
46332
46740
  *
46333
46741
  * @tags snapshots
46334
46742
  * @name ImportSnapshot
@@ -46660,7 +47068,7 @@ var Operations = class {
46660
47068
  this.http = http;
46661
47069
  }
46662
47070
  /**
46663
- * @description `POST /api/v1/operations/anti-unify` Accepts two Ψ-term ids and returns the LGG term computed by the engine's [`AntiUnificationEngine`](osfkb_domain::operations::ilp::AntiUnificationEngine). The LGG is persisted in the tenant's term store; the response carries both its id and an enriched view (sort name + display name + referenced-term summaries).
47071
+ * @description `POST /api/v1/operations/anti-unify` Accepts two Ψ-term ids and returns the LGG term computed by the engine. The LGG is persisted in the tenant's term store; the response carries both its id and an enriched view (sort name + display name + referenced-term summaries).
46664
47072
  *
46665
47073
  * @tags operations
46666
47074
  * @name AntiUnify
@@ -47212,7 +47620,7 @@ var Demo = class {
47212
47620
  this.http = http;
47213
47621
  }
47214
47622
  /**
47215
- * @description Returns `404` when the SUMO files cannot be read at the configured or supplied directory, `400` when the assembled source fails to import, and `200` with the tenant's sort count + form count on success.
47623
+ * @description The seed is a client write of the request's caller, judged as `POST /api/v1/ingest/kif` with `persist: true` judges its import (#1227): it is reachable on every deployment, under the caller's own authority, not an engine seeding path. Returns `404 demo_corpus_unavailable` when the deployment's SUMO files cannot be read (the answer names no server path; the engine log does, #1229), `400` when the assembled source fails to import, the coded refusal of the one write-denial mapping when a term the seed writes is refused, and `200` with the tenant's sort count + form count on success.
47216
47624
  *
47217
47625
  * @tags demo
47218
47626
  * @name DemoSeed
@@ -48058,6 +48466,22 @@ var Boundary = class {
48058
48466
  format: "json",
48059
48467
  ...params
48060
48468
  });
48469
+ /**
48470
+ * No description
48471
+ *
48472
+ * @tags boundary
48473
+ * @name PostDecide
48474
+ * @summary `POST /api/v1/boundary/decide` — may this outbound call leave the box.
48475
+ * @request POST:/api/v1/boundary/decide
48476
+ */
48477
+ postDecide = (data, params = {}) => this.http.request({
48478
+ path: `/api/v1/boundary/decide`,
48479
+ method: "POST",
48480
+ body: data,
48481
+ type: "application/json",
48482
+ format: "json",
48483
+ ...params
48484
+ });
48061
48485
  /**
48062
48486
  * No description
48063
48487
  *
@@ -49646,6 +50070,24 @@ var Documents = class {
49646
50070
  type: "application/json",
49647
50071
  ...params
49648
50072
  });
50073
+ /**
50074
+ * @description One search over what the box holds: OSFQL hybrid search (meaning and exact words) over document passages, grouped by kind (documents, mails, conversations, meetings, synced files), and over the record sorts the request names. Rights are the caller's read view; a parent document is shown only when the caller may read it. Scores compare only inside a group. Lists items and states nothing; it is not the answer door.
50075
+ *
50076
+ * @tags documents
50077
+ * @name Find
50078
+ * @summary Find what the caller may open, grouped by kind
50079
+ * @request POST:/api/v1/find
50080
+ * @secure
50081
+ */
50082
+ find = (data, params = {}) => this.http.request({
50083
+ path: `/api/v1/find`,
50084
+ method: "POST",
50085
+ body: data,
50086
+ secure: true,
50087
+ type: "application/json",
50088
+ format: "json",
50089
+ ...params
50090
+ });
49649
50091
  /**
49650
50092
  * No description
49651
50093
  *
@@ -49751,7 +50193,7 @@ var Proof = class {
49751
50193
  this.http = http;
49752
50194
  }
49753
50195
  /**
49754
- * @description Runs the native CDCL solver with DRAT logging; on UNSAT the DRAT trace is turned into a resolution [`ProofCertificate`](osfkb_domain::operations::certified_proofs::store::ProofCertificate) and rendered in the requested format. No tenant context is required — the solver is stateless and in-process.
50196
+ * @description Runs the native CDCL solver with DRAT logging; on UNSAT the DRAT trace is turned into a resolution proof certificate and rendered in the requested format. No tenant context is required — the solver is stateless and in-process.
49755
50197
  *
49756
50198
  * @tags proof
49757
50199
  * @name ExportProof
@@ -50272,6 +50714,24 @@ var DocumentCheck = class {
50272
50714
  format: "json",
50273
50715
  ...params
50274
50716
  });
50717
+ /**
50718
+ * No description
50719
+ *
50720
+ * @tags document-check
50721
+ * @name DraftClausePolicy
50722
+ * @summary Compile an interpretation of an existing document clause without writing any facts or rules. The reviewer can use normal RLQL authorization to publish.
50723
+ * @request POST:/api/v1/documents/{document_id}/clauses/{clause_id}/policy-draft
50724
+ * @secure
50725
+ */
50726
+ draftClausePolicy = (documentId, clauseId, data, params = {}) => this.http.request({
50727
+ path: `/api/v1/documents/${documentId}/clauses/${clauseId}/policy-draft`,
50728
+ method: "POST",
50729
+ body: data,
50730
+ secure: true,
50731
+ type: "application/json",
50732
+ format: "json",
50733
+ ...params
50734
+ });
50275
50735
  };
50276
50736
 
50277
50737
  // src/api-spec/generated/Corpus.ts
@@ -51317,7 +51777,7 @@ var Research = class {
51317
51777
  this.http = http;
51318
51778
  }
51319
51779
  /**
51320
- * No description
51780
+ * @description The session's knowledge base is not written into the caller's tenant: it has a tenant of its own, named in the answer as `knowledge_base_tenant_id` (#1201). Every run, completion and session-scoped ingest writes there. That tenant comes into being with the first such write and is not removed when the session is deleted; a client that reaps the tenants it made reaps it too.
51321
51781
  *
51322
51782
  * @tags research
51323
51783
  * @name ResearchCreateSession
@@ -51335,7 +51795,7 @@ var Research = class {
51335
51795
  ...params
51336
51796
  });
51337
51797
  /**
51338
- * No description
51798
+ * @description Deletes the session record only. The session's knowledge base tenant (`knowledge_base_tenant_id`) and the corpus in it stay; deleting a tenant is the provisioning identity's act (#1201).
51339
51799
  *
51340
51800
  * @tags research
51341
51801
  * @name ResearchDeleteSession
@@ -51430,7 +51890,7 @@ var Research = class {
51430
51890
  ...params
51431
51891
  });
51432
51892
  /**
51433
- * @description With a `session_id`, a successful ingest is RECORDED on that session — see [`record_ingest_on_session`] — so the paper appears in `GET /sessions/{id}`'s `papers` and every term the ingestion touched resolves back to it. Without one, the paper is ingested under the configured owner and nothing is recorded: there is no session to attribute it to, and picking one would be a guess. The markdown itself is `paper_to_markdown`'s — the same function a cycle ingests through — over the same `fetch_full_text` lane, gated on the same `full_text_ingestion` switch. A paper ingested by hand is therefore the same document in the KB as one the pipeline found, which is the only way the two can be reasoned over together. **Which knowledge base it lands in follows the session.** With a `session_id` the paper is ingested through that session's own client (the `SessionScope` tenanted by the session id) — the KB `/run` and `/complete` drive and the one the session's own discovery reads. Without a `session_id` there is no session tenant to adopt and the configured one stands: the paper is ingested for the deployment, not for any session, and nothing is recorded either. This route used to ingest into the configured tenant unconditionally. The recorded `PaperTermLink` then named term ids in a KB the session never searches, so it resolved nothing — attribution that exists on the session row and nowhere the reasoning can reach.
51893
+ * @description With a `session_id`, a successful ingest is RECORDED on that session — see [`record_ingest_on_session`] — so the paper appears in `GET /sessions/{id}`'s `papers` and every term the ingestion touched resolves back to it. Without one, the paper is ingested into the caller's own tenant (`X-Tenant-Id`) and nothing is recorded: there is no session to attribute it to, and picking one would be a guess. The markdown itself is `paper_to_markdown`'s — the same function a cycle ingests through — over the same `fetch_full_text` lane, gated on the same `full_text_ingestion` switch. A paper ingested by hand is therefore the same document in the KB as one the pipeline found, which is the only way the two can be reasoned over together. **Which knowledge base it lands in follows the session.** With a `session_id` the paper is ingested through that session's own client (the `SessionScope` tenanted by the session id) — the KB `/run` and `/complete` drive and the one the session's own discovery reads. Without a `session_id` the paper is ingested into the caller's own tenant (`X-Tenant-Id`), not for any session, and nothing is recorded either (#1202). It is never written into the deployment's configured tenant, which every caller would share. This route used to ingest into the configured tenant unconditionally. The recorded `PaperTermLink` then named term ids in a KB the session never searches, so it resolved nothing — attribution that exists on the session row and nowhere the reasoning can reach.
51434
51894
  *
51435
51895
  * @tags research
51436
51896
  * @name ResearchIngestPaper
@@ -51530,7 +51990,7 @@ var Research = class {
51530
51990
  ...params
51531
51991
  });
51532
51992
  /**
51533
- * No description
51993
+ * @description With a `session_id` the claim is looked up and assessed in that session's own knowledge base tenant; without one, in the caller's own tenant (`X-Tenant-Id`), never in the deployment's configured tenant, which every caller would share (#1202).
51534
51994
  *
51535
51995
  * @tags research
51536
51996
  * @name ResearchVerifyClaim
@@ -56081,6 +56541,11 @@ var TermsClient = class {
56081
56541
  * take as `ifMatch` from the rule routes ({@link AddRuleResponse.etag},
56082
56542
  * {@link RuleEntryDto.etag}).
56083
56543
  *
56544
+ * The term is the caller's view of it (reasoninglayer#1221): a feature
56545
+ * that holds a term the caller's Read grant does not show is left out, and
56546
+ * `etag` is the tag of that view. Send it back as `ifMatch`; a `412` names
56547
+ * the current tag of the caller's view.
56548
+ *
56084
56549
  * @example
56085
56550
  * ```typescript
56086
56551
  * const asIssued = await client.terms.getTerm(orderId, { asOf: invoicedAt });
@@ -56242,7 +56707,7 @@ var TermsClient = class {
56242
56707
  * @throws {@link PreconditionFailedError} 412 when `ifMatch` is stale;
56243
56708
  * `currentEtag` carries the tag the engine holds now.
56244
56709
  * @throws {@link PreconditionRequiredError} 428 when `ifMatch` is omitted
56245
- * and the engine runs with `OSFKB_REQUIRE_IF_MATCH=1`.
56710
+ * and the deployment requires conditional writes.
56246
56711
  * @throws {@link ApiError} 404 when the term does not exist; 422 when the
56247
56712
  * patched term violates its sort's declarations (a scalar literal in a
56248
56713
  * feature whose declared range is an entity sort included); 409 when a bound
@@ -56269,7 +56734,7 @@ var TermsClient = class {
56269
56734
  * last-writer-wins, and two editors of one term silently overwrite each
56270
56735
  * other. Read the term with {@link TermsClient.getTerm}, keep its `etag`,
56271
56736
  * and send it back as `ifMatch`: a write that lost the race answers 412
56272
- * instead of overwriting. An engine started with `OSFKB_REQUIRE_IF_MATCH=1`
56737
+ * instead of overwriting. A deployment that requires conditional writes
56273
56738
  * refuses every term and rule mutation that carries no `ifMatch` (428).
56274
56739
  *
56275
56740
  * @example
@@ -56323,7 +56788,7 @@ var TermsClient = class {
56323
56788
  * rule instead; `ruleIds` names it).
56324
56789
  * @throws {@link PreconditionFailedError} 412 when `ifMatch` is stale.
56325
56790
  * @throws {@link PreconditionRequiredError} 428 when `ifMatch` is omitted
56326
- * and the engine runs with `OSFKB_REQUIRE_IF_MATCH=1`.
56791
+ * and the deployment requires conditional writes.
56327
56792
  * @throws {@link ConstraintViolationError} 409 `term_named_by_rules` under
56328
56793
  * every disposition when a rule names the term, or when a cascade's closure
56329
56794
  * reaches a rule term (withdraw the rule first); 409 `term_has_referrers`
@@ -56460,7 +56925,11 @@ var TermsClient = class {
56460
56925
  * "feature":"price","message":"Constraint violation: …"}]}`. With
56461
56926
  * `partial: true` and BOTH rows bad, the same `422`:
56462
56927
  * `"2 of 2 entries were refused; the whole batch was refused and nothing
56463
- * was written"`.
56928
+ * was written"`. A row the write guard refused carries its closed
56929
+ * `code` (`BulkRowRefusal.code`): `reference_term_unknown` for a
56930
+ * reference to a term that does not exist or that the caller's Read
56931
+ * grant does not show (reasoninglayer#1212), or the write denial a
56932
+ * single-term write answers.
56464
56933
  *
56465
56934
  * **`dryRun` runs every check and writes nothing**, and it answers in the
56466
56935
  * same two shapes. A clean dry run is `200` and reports NO `termIds` —
@@ -56503,7 +56972,7 @@ var TermsClient = class {
56503
56972
  features: convertFeatures(t.features)
56504
56973
  }))
56505
56974
  });
56506
- const response = await this.api.bulkAddTerms(wireRequest, toRequestParams(requestOptions));
56975
+ const response = await this.api.bulkAddTerms(wireRequest, toRequestParams(requestOptions)).catch(rethrowBulkRowCodes);
56507
56976
  return decodeResponse(response, BulkAddTermsResponseFromApiToFront);
56508
56977
  }
56509
56978
  /**
@@ -57438,7 +57907,7 @@ var InferenceClient = class {
57438
57907
  * `derivations` with `ruleRefusalOf(error)`.
57439
57908
  * @throws {@link PreconditionFailedError} 412 when `ifMatch` is stale.
57440
57909
  * @throws {@link PreconditionRequiredError} 428 when `ifMatch` is omitted
57441
- * and the engine runs with `OSFKB_REQUIRE_IF_MATCH=1`.
57910
+ * and the deployment requires conditional writes.
57442
57911
  *
57443
57912
  * @remarks
57444
57913
  * A rule is not a row. Withdrawing one deletes its conclusion AND the
@@ -57500,7 +57969,7 @@ var InferenceClient = class {
57500
57969
  * `ruleRefusalOf(error)`.
57501
57970
  * @throws {@link PreconditionFailedError} 412 when `ifMatch` is stale.
57502
57971
  * @throws {@link PreconditionRequiredError} 428 when `ifMatch` is omitted
57503
- * and the engine runs with `OSFKB_REQUIRE_IF_MATCH=1`.
57972
+ * and the deployment requires conditional writes.
57504
57973
  * @throws {@link ValidationError} before the request is sent, when a term
57505
57974
  * cannot be encoded, or `antecedents` is not an array — `field` names it
57506
57975
  * (`term`, `antecedents`, `antecedents[i]`).
@@ -57637,7 +58106,7 @@ var InferenceClient = class {
57637
58106
  *
57638
58107
  * `timeoutMs` is a server-side deadline in milliseconds, checked at every
57639
58108
  * fixpoint boundary and every rule application. Omitted means the engine's own
57640
- * backstop (`OSFKB_FC_TIMEOUT_SECS`, 300 s by default); `0` opts out entirely.
58109
+ * time limit (300 s by default); `0` opts out entirely.
57641
58110
  * The route answers `504` when the deadline passes, and the body says whether
57642
58111
  * a `keepDerived` run kept the partial derivation it had reached. A
57643
58112
  * deadline-cut `keepDerived: false` run (`200` or `504`) leaves nothing
@@ -58430,6 +58899,9 @@ function osfqlRowFromApiToFront(row) {
58430
58899
  function ConversationMessageRequestFromFrontToApi(model) {
58431
58900
  return {
58432
58901
  source_scope: model.sourceScope,
58902
+ search_web: model.searchWeb,
58903
+ confirm_external: model.confirmExternal,
58904
+ project_id: model.projectId,
58433
58905
  follow_up_to: model.followUpTo,
58434
58906
  resume_answer: model.resumeAnswer,
58435
58907
  clarify_after_repeats: model.clarifyAfterRepeats,
@@ -58639,6 +59111,15 @@ function MatchedEntityDtoFromApiToFront(dto) {
58639
59111
  }
58640
59112
  function ReasoningStageDtoFromApiToFront(dto) {
58641
59113
  return {
59114
+ ...dto.blocked_sites === void 0 ? {} : { blockedSites: dto.blocked_sites },
59115
+ ...dto.elapsed_ms === void 0 ? {} : { elapsedMs: dto.elapsed_ms },
59116
+ ...dto.extracted === void 0 ? {} : { extracted: dto.extracted },
59117
+ ...dto.follow_up_of === void 0 ? {} : { followUpOf: dto.follow_up_of },
59118
+ ...dto.outcome === void 0 ? {} : { outcome: dto.outcome },
59119
+ ...dto.read === void 0 ? {} : { read: dto.read },
59120
+ ...dto.reading_deadline === void 0 ? {} : { readingDeadline: dto.reading_deadline },
59121
+ ...dto.reason === void 0 ? {} : { reason: dto.reason },
59122
+ ...dto.searched === void 0 ? {} : { searched: dto.searched },
58642
59123
  name: dto.name,
58643
59124
  order: dto.order,
58644
59125
  kind: dto.kind,
@@ -58659,6 +59140,7 @@ function ReasoningTraceDtoFromApiToFront(dto) {
58659
59140
  }
58660
59141
  function AbstentionFromApiToFront(dto) {
58661
59142
  const out = { reason: dto.reason };
59143
+ if (dto.cause != null) out.cause = dto.cause;
58662
59144
  if (dto.gate_code != null) out.gateCode = dto.gate_code;
58663
59145
  if (dto.osfql_tried != null) out.osfqlTried = dto.osfql_tried;
58664
59146
  if (dto.answerability != null) out.answerability = dto.answerability;
@@ -58675,6 +59157,8 @@ function ClaimProvenanceFromApiToFront(dto) {
58675
59157
  if (dto.passage_id != null) out.passageId = dto.passage_id;
58676
59158
  if (dto.section != null) out.section = dto.section;
58677
59159
  if (dto.page != null) out.page = dto.page;
59160
+ if (dto.media_start_ms != null) out.mediaStartMs = dto.media_start_ms;
59161
+ if (dto.media_end_ms != null) out.mediaEndMs = dto.media_end_ms;
58678
59162
  return out;
58679
59163
  }
58680
59164
  function ClaimStatedValueFromApiToFront(dto) {
@@ -58721,6 +59205,10 @@ function answerContractFromApiToFront(dto) {
58721
59205
  return {
58722
59206
  ...dto.answer_state != null ? { answerState: dto.answer_state } : {},
58723
59207
  ...dto.abstention != null ? { abstention: AbstentionFromApiToFront(dto.abstention) } : {},
59208
+ ...dto.to_verify === void 0 ? {} : { toVerify: dto.to_verify.map(ToVerifyPointFromApiToFront) },
59209
+ ...dto.web_sources === void 0 ? {} : { webSources: dto.web_sources.map(WebSourceFromApiToFront) },
59210
+ ...dto.unconfirmed === void 0 ? {} : { unconfirmed: dto.unconfirmed.map(UnconfirmedRecordFromApiToFront) },
59211
+ ...dto.unread_pages === void 0 ? {} : { unreadPages: dto.unread_pages.map(UnreadPagesFromApiToFront) },
58724
59212
  claims: (dto.claims ?? []).map(VerifiedClaimFromApiToFront),
58725
59213
  strippedClaims: (dto.stripped_claims ?? []).map(StrippedClaimFromApiToFront),
58726
59214
  nextQuestions: (dto.next_questions ?? []).map((q) => ({
@@ -58815,6 +59303,20 @@ function FrameAmbiguityFromApiToFront(dto) {
58815
59303
  function isJsonObject(value) {
58816
59304
  return typeof value === "object" && value !== null && !Array.isArray(value);
58817
59305
  }
59306
+ function isVerifiedClaimDto(value) {
59307
+ const nullableString2 = (item) => item == null || typeof item === "string";
59308
+ if (!isJsonObject(value)) return false;
59309
+ const { span, provenance, source_term_ids, stated, absence } = value;
59310
+ return typeof value.text === "string" && typeof value.verdict === "string" && nullableString2(value.certificate_id) && (value.wording === void 0 || value.wording === "engine" || value.wording === "model") && Array.isArray(span) && span.length === 2 && span.every(Number.isSafeInteger) && Array.isArray(source_term_ids) && source_term_ids.every((id) => typeof id === "string") && Array.isArray(provenance) && provenance.every(
59311
+ (source) => isJsonObject(source) && typeof source.source_scope === "string" && typeof source.source_sort === "string" && typeof source.source_term_id === "string" && (source.page == null || typeof source.page === "number") && [source.document_id, source.document_title, source.passage_id, source.section].every(
59312
+ nullableString2
59313
+ )
59314
+ ) && (stated === void 0 || Array.isArray(stated) && stated.every(
59315
+ (item) => isJsonObject(item) && typeof item.value === "string" && [item.feature_name, item.sort_name, item.term_id].every(nullableString2)
59316
+ )) && (absence == null || isJsonObject(absence) && [absence.declared_by, absence.osfql, absence.sort_id, absence.sort_name].every(
59317
+ (item) => typeof item === "string"
59318
+ ) && nullableString2(absence.package_id));
59319
+ }
58818
59320
  function isConversationMessageResponseDto(value) {
58819
59321
  if (!isJsonObject(value)) return false;
58820
59322
  return typeof Reflect.get(value, "assistant_message") === "string" && typeof Reflect.get(value, "conversation_id") === "string" && typeof Reflect.get(value, "intent") === "string" && typeof Reflect.get(value, "turn_id") === "string" && Array.isArray(Reflect.get(value, "produced_term_ids")) && Array.isArray(Reflect.get(value, "suggestions")) && Array.isArray(Reflect.get(value, "notices"));
@@ -58828,6 +59330,19 @@ function ConversationStreamEventFromApiToFront(event, payload) {
58828
59330
  return response === null ? null : { type: "done", response };
58829
59331
  }
58830
59332
  if (!isJsonObject(payload)) return null;
59333
+ if (event === "claim") {
59334
+ return isVerifiedClaimDto(payload) ? { type: "claim", claim: VerifiedClaimFromApiToFront(payload) } : null;
59335
+ }
59336
+ if (event === "step_start" || event === "step_end") {
59337
+ const { stage_id: stageId, kind, order, outcome } = payload;
59338
+ if (typeof stageId !== "string" || kind !== "symbolic" && kind !== "sensor" || typeof order !== "number" || !Number.isSafeInteger(order))
59339
+ return null;
59340
+ if (event === "step_start" && outcome === null)
59341
+ return { type: event, stageId, kind, order, outcome };
59342
+ if (event === "step_end" && typeof outcome === "string")
59343
+ return { type: event, stageId, kind, order, outcome };
59344
+ return null;
59345
+ }
58831
59346
  if (event === "token") {
58832
59347
  const delta = Reflect.get(payload, "delta");
58833
59348
  return typeof delta === "string" ? { type: "token", delta } : null;
@@ -58861,6 +59376,7 @@ function TurnDtoFromApiToFront(dto) {
58861
59376
  validityCertificateRuleProgramHash: dto.validity_certificate_rule_program_hash ?? void 0,
58862
59377
  validityCertificateRuleRevision: dto.validity_certificate_rule_revision ?? void 0,
58863
59378
  ...answerContractFromApiToFront(dto),
59379
+ ...dto.follow_up_of === void 0 ? {} : { followUpOf: dto.follow_up_of },
58864
59380
  framePages: (dto.frame_pages ?? []).map((page) => ({
58865
59381
  frameId: page.frame_id,
58866
59382
  page: page.page,
@@ -58978,6 +59494,68 @@ function SessionGraphDtoFromApiToFront(dto) {
58978
59494
  resolvedCoreferences: dto.resolved_coreferences.map(ResolvedCoreferenceDtoFromApiToFront)
58979
59495
  };
58980
59496
  }
59497
+ function ClaimAttestationRequestFromFrontToApi(model) {
59498
+ return { turn_id: model.turnId, point_ref: model.pointRef, kind: model.kind };
59499
+ }
59500
+ function ClaimAttestationResponseFromApiToFront(dto) {
59501
+ if (dto.kind !== "confirmed" && dto.kind !== "reported_error") {
59502
+ throw new TypeError(`Unknown claim attestation kind: ${dto.kind}`);
59503
+ }
59504
+ return {
59505
+ attestationId: dto.attestation_id,
59506
+ conversationId: dto.conversation_id,
59507
+ turnId: dto.turn_id,
59508
+ pointRef: dto.point_ref,
59509
+ kind: dto.kind,
59510
+ attestedBy: dto.attested_by,
59511
+ attestedAt: dto.attested_at
59512
+ };
59513
+ }
59514
+ function UnconfirmedRecordFromApiToFront(dto) {
59515
+ const out = { recordId: dto.record_id, sort: dto.sort };
59516
+ if (dto.document_id != null) out.documentId = dto.document_id;
59517
+ if (dto.passage_id != null) out.passageId = dto.passage_id;
59518
+ if (dto.provenance != null) out.provenance = dto.provenance;
59519
+ if (dto.status != null) out.status = dto.status;
59520
+ if (dto.text != null) out.text = dto.text;
59521
+ if (dto.start_seconds != null) out.startSeconds = dto.start_seconds;
59522
+ if (dto.end_seconds != null) out.endSeconds = dto.end_seconds;
59523
+ if (dto.page_start != null) out.pageStart = dto.page_start;
59524
+ if (dto.page_end != null) out.pageEnd = dto.page_end;
59525
+ return out;
59526
+ }
59527
+ function UnreadPagesFromApiToFront(dto) {
59528
+ return { documentId: dto.document_id, pages: [...dto.pages], reason: dto.reason };
59529
+ }
59530
+ function ToVerifyPointFromApiToFront(dto) {
59531
+ return {
59532
+ ...dto.attestations === void 0 ? {} : { attestations: dto.attestations },
59533
+ ...dto.fact_term_ids === void 0 ? {} : { factTermIds: dto.fact_term_ids },
59534
+ kind: dto.kind,
59535
+ pointRef: dto.point_ref,
59536
+ reason: dto.reason,
59537
+ ...dto.record_term_id === void 0 ? {} : { recordTermId: dto.record_term_id },
59538
+ text: dto.text
59539
+ };
59540
+ }
59541
+ function WebSourceQualificationFromApiToFront(dto) {
59542
+ return {
59543
+ ...dto.explanation === void 0 ? {} : { explanation: dto.explanation },
59544
+ level: dto.level,
59545
+ ...dto.rule_id === void 0 ? {} : { ruleId: dto.rule_id }
59546
+ };
59547
+ }
59548
+ function WebSourceFromApiToFront(dto) {
59549
+ return {
59550
+ ...dto.fetched_at === void 0 ? {} : { fetchedAt: dto.fetched_at },
59551
+ qualification: WebSourceQualificationFromApiToFront(dto.qualification),
59552
+ recordTermId: dto.record_term_id,
59553
+ ...dto.source_verdict === void 0 ? {} : { sourceVerdict: dto.source_verdict },
59554
+ ...dto.title === void 0 ? {} : { title: dto.title },
59555
+ url: dto.url,
59556
+ used: dto.used
59557
+ };
59558
+ }
58981
59559
 
58982
59560
  // src/normalizers/query.ts
58983
59561
  function TrizRecordOutcomeRequestFromFrontToApi(model) {
@@ -65429,7 +66007,9 @@ function IngestionConfigDtoFromFrontToApi(model) {
65429
66007
  reject_anonymized_references: model.rejectAnonymizedReferences,
65430
66008
  skip_fingerprint: model.skipFingerprint,
65431
66009
  fresh_work: model.freshWork,
65432
- skip_relation_completion: model.skipRelationCompletion
66010
+ skip_relation_completion: model.skipRelationCompletion,
66011
+ text_provenance: model.textProvenance,
66012
+ derived_from: model.derivedFrom
65433
66013
  };
65434
66014
  }
65435
66015
  function ChunkFailureDtoFromApiToFront(dto) {
@@ -65523,6 +66103,13 @@ function IngestionWorkCacheDtoFromApiToFront(dto) {
65523
66103
  reusedRecordedTokenUsage: TokenUsageDtoFromApiToFront(dto.reused_recorded_token_usage)
65524
66104
  };
65525
66105
  }
66106
+ function IngestionValuePassDtoFromApiToFront(dto) {
66107
+ return {
66108
+ valuesRead: dto.values_read,
66109
+ valuesHeld: dto.values_held,
66110
+ passagesNotRead: dto.passages_not_read
66111
+ };
66112
+ }
65526
66113
  function AlignmentStatsDtoFromApiToFront(dto) {
65527
66114
  return {
65528
66115
  avgFuzzyRatio: dto.avg_fuzzy_ratio,
@@ -66045,7 +66632,8 @@ function DocumentStatsDtoFromApiToFront(dto) {
66045
66632
  termIds: dto.term_ids,
66046
66633
  totalTokens: dto.total_tokens,
66047
66634
  fcaDiscovery: dto.fca_discovery ? FcaIngestionReportFromApiToFront(dto.fca_discovery) : void 0,
66048
- workCache: dto.work_cache ? IngestionWorkCacheDtoFromApiToFront(dto.work_cache) : void 0
66635
+ workCache: dto.work_cache ? IngestionWorkCacheDtoFromApiToFront(dto.work_cache) : void 0,
66636
+ ...dto.value_pass ? { valuePass: IngestionValuePassDtoFromApiToFront(dto.value_pass) } : {}
66049
66637
  };
66050
66638
  }
66051
66639
  function SessionStatsResponseFromApiToFront(dto) {
@@ -66302,6 +66890,8 @@ function isIngestUrlStoreFailedBody(body) {
66302
66890
  }
66303
66891
  function WebSearchRequestFromFrontToApi(model) {
66304
66892
  const dto = { query: model.query };
66893
+ if (model.confirmExternal !== void 0) dto.confirm_external = model.confirmExternal;
66894
+ if (model.project !== void 0) dto.project = model.project;
66305
66895
  if (model.limit !== void 0) dto.limit = model.limit;
66306
66896
  return dto;
66307
66897
  }
@@ -66405,6 +66995,19 @@ function IngestAudioResponseFromApiToFront(dto) {
66405
66995
  translatedLang: dto.translated_lang ?? void 0
66406
66996
  };
66407
66997
  }
66998
+ function LiveRecordingViewFromApiToFront(dto) {
66999
+ const out = {
67000
+ id: dto.id,
67001
+ state: dto.state,
67002
+ bytes: dto.bytes,
67003
+ durationSecs: dto.duration_secs,
67004
+ finals: dto.finals.map((final) => ({ ...final }))
67005
+ };
67006
+ if (dto.audio_file_id != null) out.audioFileId = dto.audio_file_id;
67007
+ if (dto.error != null) out.error = dto.error;
67008
+ if (dto.result != null) out.result = IngestAudioResponseFromApiToFront(dto.result);
67009
+ return out;
67010
+ }
66408
67011
  function CreateRdfUploadRequestFromFrontToApi(request) {
66409
67012
  return {
66410
67013
  name: request.name,
@@ -66451,6 +67054,57 @@ function RdfUploadPauseReceiptFromApiToFront(dto) {
66451
67054
  status: dto.status
66452
67055
  };
66453
67056
  }
67057
+ function VideoIngestRequestFromFrontToApi(model) {
67058
+ const options = model.options;
67059
+ const asr = options?.asr;
67060
+ return {
67061
+ video_base64: model.videoBase64,
67062
+ ...model.filename !== void 0 ? { filename: model.filename } : {},
67063
+ ...options !== void 0 ? {
67064
+ options: {
67065
+ ...asr !== void 0 ? {
67066
+ asr: {
67067
+ ...asr.diarize !== void 0 ? { diarize: asr.diarize } : {},
67068
+ ...asr.language !== void 0 ? { language: asr.language } : {},
67069
+ ...asr.numSpeakers !== void 0 ? { num_speakers: asr.numSpeakers } : {}
67070
+ }
67071
+ } : {},
67072
+ ...options.lanes !== void 0 ? { lanes: options.lanes } : {},
67073
+ ...options.maxFrames !== void 0 ? { max_frames: options.maxFrames } : {},
67074
+ ...options.sceneThreshold !== void 0 ? { scene_threshold: options.sceneThreshold } : {},
67075
+ ...options.visionTemplate !== void 0 ? { vision_template: options.visionTemplate } : {}
67076
+ }
67077
+ } : {}
67078
+ };
67079
+ }
67080
+ function VideoIngestResponseFromApiToFront(dto) {
67081
+ return {
67082
+ stats: IngestionStatsDtoFromApiToFront(dto.stats),
67083
+ evidence: {
67084
+ documentTermId: dto.evidence.document_term_id,
67085
+ locatedTerms: dto.evidence.located_terms,
67086
+ unlocatedTermIds: dto.evidence.unlocated_term_ids
67087
+ }
67088
+ };
67089
+ }
67090
+ function RetainedOriginalFromApiToFront(dto) {
67091
+ return {
67092
+ id: dto.id,
67093
+ name: dto.name,
67094
+ size: dto.size,
67095
+ contentUrl: dto.content_url
67096
+ };
67097
+ }
67098
+ function QueuedVideoIngestResponseFromApiToFront(dto) {
67099
+ return {
67100
+ documentId: dto.document_id,
67101
+ sessionId: dto.session_id,
67102
+ status: dto.status,
67103
+ statusUrl: dto.status_url,
67104
+ originalFiles: dto.original_files.map(RetainedOriginalFromApiToFront),
67105
+ sourceText: dto.source_text
67106
+ };
67107
+ }
66454
67108
 
66455
67109
  // src/resources/ingestion-session.ts
66456
67110
  var IngestionFailedError = class extends ReasoningLayerError {
@@ -67096,15 +67750,38 @@ var IngestionClient = class {
67096
67750
  * @param request - The SUO-KIF source, an optional `goal`/`query` to
67097
67751
  * prove, and a `persist` flag (import into the tenant substrate vs an
67098
67752
  * ephemeral request-scoped world).
67753
+ * @param requestOptions - Per-call request options.
67099
67754
  * @returns Import counts (forms, facts, rules, sorts, …) plus, when a
67100
67755
  * goal/query was supplied, a `provable` verdict and the non-firing
67101
67756
  * residue breakdown.
67757
+ * @throws {GovernanceRefusedError} With `persist: true`, when the write
67758
+ * guard refuses a fact, individual or rule the import writes; nothing of
67759
+ * the import is stored. `403` `reserved_sort_write_refused`,
67760
+ * `sort_write_not_granted`, `operational_authority_denied` or
67761
+ * `operational_authority_undetermined`; `409` `authz_relation_derived`;
67762
+ * `422`
67763
+ * `operational_rule_conclusion`, `authz_rule_shape`,
67764
+ * `authz_parent_of_sort_refused` or `filing_term_unread`.
67765
+ * @throws {VocabularyRefusedError} `409` `governed_sort_write_refused`: that
67766
+ * code is in the vocabulary set too, which the SDK reads first.
67767
+ *
67768
+ * @remarks
67769
+ * Sent to `POST /api/v1/ingest/kif`; the body is snake_case on the wire.
67770
+ * The refusals are the engine's `GovernanceRefusalBody`
67771
+ * (`{ error, code, message }`), read into a typed
67772
+ * `GovernanceRefusedError`; any other failure stays the plain `ApiError`.
67773
+ *
67774
+ * @example
67775
+ * ```typescript
67776
+ * const result = await client.ingestion.ingestKif({
67777
+ * content: '(instance Socrates Human)',
67778
+ * persist: true,
67779
+ * });
67780
+ * console.log(result.facts);
67781
+ * ```
67102
67782
  */
67103
67783
  async ingestKif(request, requestOptions) {
67104
- const response = await this.api.ingestKif(
67105
- IngestKifRequestFromFrontToApi(request),
67106
- toRequestParams(requestOptions)
67107
- );
67784
+ const response = await this.api.ingestKif(IngestKifRequestFromFrontToApi(request), toRequestParams(requestOptions)).catch(rethrowVocabularyRefusal);
67108
67785
  return decodeResponse(response, IngestKifResponseFromApiToFront);
67109
67786
  }
67110
67787
  /**
@@ -67535,6 +68212,10 @@ var IngestionClient = class {
67535
68212
  * @returns The pages read (created, updated or unchanged) and the pages
67536
68213
  * skipped, each with a reason.
67537
68214
  * @throws {BadRequestError} If the body is malformed.
68215
+ * @throws {ForbiddenError} `403` when the Space's boundary refuses the start host.
68216
+ * `errorBodyCode` gives the reason, such as `egress_denied`.
68217
+ * @throws {PreconditionRequiredError} `428` with `boundary_needs_confirmation`
68218
+ * when the Web connector requires confirmation before fetching the page.
67538
68219
  * @throws {ApiError} `422` if the URL is not absolute `http`/`https`, a
67539
68220
  * limit is out of range (depth above `maxDepthLimit`, pages above
67540
68221
  * `maxPagesLimit`), the body has an unknown field, or the crawl ingested
@@ -67604,13 +68285,16 @@ var IngestionClient = class {
67604
68285
  * Search the web through the deployment's search providers —
67605
68286
  * `POST /api/v1/web/search`.
67606
68287
  *
67607
- * @param request - The query and, optionally, the number of results.
68288
+ * @param request - The query, result limit, project and confirmation for this search.
67608
68289
  * @param requestOptions - Per-call request options.
67609
68290
  * @returns The trimmed query and the pages found, best first.
67610
68291
  * @throws {BadRequestError} `400` if the body is malformed.
67611
68292
  * @throws {ApiError} `422` if the query is blank or longer than
67612
68293
  * `webSearch.maxQueryChars`, the `limit` is out of range (1 to
67613
- * `webSearch.maxResultsLimit`), or the body has an unknown field.
68294
+ * `webSearch.maxResultsLimit`), the project is malformed, or the body has an unknown field.
68295
+ * @throws {ForbiddenError} `403` when the setting, boundary or connector refuses the search.
68296
+ * @throws {PreconditionRequiredError} `428` with `boundary_needs_confirmation`
68297
+ * when the boundary requires the person to confirm this call.
67614
68298
  * @throws {InternalServerError} `502` with `errorBodyCode`
67615
68299
  * `'web_search_providers_failed'` if every registered provider failed
67616
68300
  * this search. The next call can succeed.
@@ -67684,6 +68368,72 @@ var IngestionClient = class {
67684
68368
  );
67685
68369
  return decodeResponse(response, IngestAudioResponseFromApiToFront);
67686
68370
  }
68371
+ /**
68372
+ * Ingest a short video: read its timeline (speech, screen text, scenes) and
68373
+ * ingest the text with the full ontology extraction —
68374
+ * `POST /api/v1/ingest/video`.
68375
+ *
68376
+ * @param request - The clip in base64, its file name, and the timeline
68377
+ * options.
68378
+ * @param requestOptions - `sync` flag plus per-call request options. `sync`
68379
+ * defaults to `true`.
68380
+ * @returns `inline` with the statistics and the evidence receipt (HTTP 201),
68381
+ * or, with `sync: false`, `queued` with an {@link IngestionSession} and the
68382
+ * 202 body (HTTP 202).
68383
+ * @throws {BadRequestError} `400` if `videoBase64` is not standard base64,
68384
+ * or the clip is empty or over 16 MiB.
68385
+ * @throws {ForbiddenError} `403` if the caller may not write, or a
68386
+ * `sync: false` call carries no acting user
68387
+ * (`errorBodyCode(e) === 'ingestion_execution_actor_required'`).
68388
+ * @throws {InternalServerError} `500` if the timeline service failed or
68389
+ * answered invalid evidence, or the ingestion failed; nothing was
68390
+ * committed.
68391
+ * @throws {ServiceUnavailableError} `503` if no video timeline service is
68392
+ * configured.
68393
+ * @throws {IngestionQueueUnavailableError} With `sync: false`, a `503`
68394
+ * becomes this error: the deployment runs no background queue, session
68395
+ * tracking or task retention (or no timeline service).
68396
+ *
68397
+ * @remarks
68398
+ * Request body is snake_case on the wire (`video_base64`,
68399
+ * `options.max_frames`, `options.asr.num_speakers`); `sync` travels as a
68400
+ * query parameter. The run commits the document, its terms, the video
68401
+ * evidence and one passage per utterance or frame together, or none of
68402
+ * them. The SDK reads the HTTP status to tell the two answers apart.
68403
+ *
68404
+ * @example
68405
+ * ```ts
68406
+ * const outcome = await client.ingestion.ingestVideo({ videoBase64: clip, filename: 'demo.mp4' });
68407
+ * if (outcome.kind === 'inline') console.log(outcome.result.evidence.locatedTerms);
68408
+ * ```
68409
+ */
68410
+ async ingestVideo(request, requestOptions) {
68411
+ const sync = requestOptions?.sync ?? true;
68412
+ let response;
68413
+ try {
68414
+ response = await this.api.http.request({
68415
+ ...toRequestParams(requestOptions),
68416
+ path: `/api/v1/ingest/video`,
68417
+ method: "POST",
68418
+ query: { sync },
68419
+ body: VideoIngestRequestFromFrontToApi(request),
68420
+ secure: true,
68421
+ type: "application/json",
68422
+ format: "json"
68423
+ });
68424
+ } catch (error) {
68425
+ throw sync ? error : asQueueRefusal(error);
68426
+ }
68427
+ return decodeResponse(response, (data) => {
68428
+ if (response.status === 202) {
68429
+ if (!("status_url" in data)) throw contractViolation("/ingest/video", 202);
68430
+ const queued = QueuedVideoIngestResponseFromApiToFront(data);
68431
+ return { kind: "queued", session: new IngestionSession(this.api, queued), queued };
68432
+ }
68433
+ if ("status_url" in data) throw contractViolation("/ingest/video", response.status);
68434
+ return { kind: "inline", result: VideoIngestResponseFromApiToFront(data) };
68435
+ });
68436
+ }
67687
68437
  /**
67688
68438
  * Poll an audio ingestion job — `GET /api/v1/ingest/audio/jobs/{job_id}`.
67689
68439
  *
@@ -67736,6 +68486,92 @@ var IngestionClient = class {
67736
68486
  const response = await this.api.resumeAudioJob(jobId, toRequestParams(requestOptions));
67737
68487
  return decodeResponse(response, IngestAudioResponseFromApiToFront);
67738
68488
  }
68489
+ /**
68490
+ * Read a live recording — `GET /api/v1/audio/recordings/{id}`.
68491
+ *
68492
+ * @param id - The live recording id the client chose when it opened the
68493
+ * caption socket (`/ws/audio/stream?protocol_version=2&recording=<id>`).
68494
+ * @param requestOptions - Per-call request options.
68495
+ * @returns Its state, the audio held and the finals so far; once `ready`,
68496
+ * the retained original and the parse-only audio result.
68497
+ * @throws {ForbiddenError} 403 when the recording is another user's.
68498
+ * @throws {NotFoundError} 404 when there is no such recording, or it expired.
68499
+ * @throws {TenantDeletedError} 410 when the tenant was deleted.
68500
+ *
68501
+ * @remarks
68502
+ * Only the user who started a recording may read it. A ready or failed
68503
+ * recording expires after the engine's parse-only retention (a day by
68504
+ * default). `liveRecording` on `client.health.check()` says whether the
68505
+ * engine keeps live recordings at all.
68506
+ *
68507
+ * @example
68508
+ * ```ts
68509
+ * const recording = await client.ingestion.getLiveRecording(recordingId);
68510
+ * if (recording.state === 'ready') console.log(recording.result?.transcriptMarkdown);
68511
+ * ```
68512
+ */
68513
+ async getLiveRecording(id, requestOptions) {
68514
+ const response = await this.api.getLiveRecording(id, toRequestParams(requestOptions));
68515
+ return decodeResponse(response, LiveRecordingViewFromApiToFront);
68516
+ }
68517
+ /**
68518
+ * Stop a live recording whose socket is gone, and finalize it —
68519
+ * `POST /api/v1/audio/recordings/{id}/stop`.
68520
+ *
68521
+ * @param id - The live recording id.
68522
+ * @param requestOptions - Per-call request options.
68523
+ * @returns The recording: `finalizing` (HTTP 202), or as it stands when it
68524
+ * is already `ready` or `failed` (HTTP 200).
68525
+ * @throws {ForbiddenError} 403 when the recording is another user's.
68526
+ * @throws {NotFoundError} 404 when there is no such recording.
68527
+ * @throws {TenantDeletedError} 410 when the tenant was deleted.
68528
+ *
68529
+ * @remarks
68530
+ * The audio is sealed and retained as the meeting's original, then the
68531
+ * parse-only audio pipeline writes the transcript, summary and actions.
68532
+ * Idempotent: a recording already finalizing answers 202 (and finalizing
68533
+ * starts again if its worker stopped). Audio a live socket had not yet
68534
+ * written (at most about five seconds) is not kept.
68535
+ *
68536
+ * @example
68537
+ * ```ts
68538
+ * const recording = await client.ingestion.stopLiveRecording(recordingId);
68539
+ * console.log(recording.state); // 'finalizing'
68540
+ * ```
68541
+ */
68542
+ async stopLiveRecording(id, requestOptions) {
68543
+ const response = await this.api.stopLiveRecording(id, toRequestParams(requestOptions));
68544
+ return decodeResponse(response, LiveRecordingViewFromApiToFront);
68545
+ }
68546
+ /**
68547
+ * Finalize again a recording whose finalizing failed —
68548
+ * `POST /api/v1/audio/recordings/{id}/retry`.
68549
+ *
68550
+ * @param id - The live recording id of a `failed` recording.
68551
+ * @param requestOptions - Per-call request options.
68552
+ * @returns The recording: `finalizing` again (HTTP 202), or as it stands
68553
+ * when it is already `ready` (HTTP 200).
68554
+ * @throws {ForbiddenError} 403 when the recording is another user's.
68555
+ * @throws {NotFoundError} 404 when there is no such recording.
68556
+ * @throws {ConstraintViolationError} 409 when the recording is still
68557
+ * recording or finalizing.
68558
+ * @throws {TenantDeletedError} 410 when the tenant was deleted.
68559
+ *
68560
+ * @remarks
68561
+ * The engine finalizes again from the audio it kept, so no audio is resent.
68562
+ *
68563
+ * @example
68564
+ * ```ts
68565
+ * const recording = await client.ingestion.getLiveRecording(recordingId);
68566
+ * if (recording.state === 'failed') {
68567
+ * await client.ingestion.retryLiveRecording(recordingId);
68568
+ * }
68569
+ * ```
68570
+ */
68571
+ async retryLiveRecording(id, requestOptions) {
68572
+ const response = await this.api.retryLiveRecording(id, toRequestParams(requestOptions));
68573
+ return decodeResponse(response, LiveRecordingViewFromApiToFront);
68574
+ }
67739
68575
  /**
67740
68576
  * Open a resumable upload of one original RDF file —
67741
68577
  * `POST /api/v1/ingest/rdf/uploads`.
@@ -68287,6 +69123,7 @@ function ReviewSummaryFromApiToFront(dto) {
68287
69123
  totalRejected: dto.total_rejected,
68288
69124
  totalCorrected: dto.total_corrected,
68289
69125
  totalMerged: dto.total_merged,
69126
+ totalSuperseded: dto.total_superseded ?? 0,
68290
69127
  avgPendingConfidence: dto.avg_pending_confidence,
68291
69128
  ...typeof dto.oldest_pending === "string" ? { oldestPending: dto.oldest_pending } : {},
68292
69129
  byReason: byReasonFromApiToFront(dto.by_reason),
@@ -70899,7 +71736,7 @@ var SourcesClient = class {
70899
71736
  * Parquet) or `config.database_path` (SQLite) to {@link SourcesClient.register}.
70900
71737
  * @throws {BadRequestError} **400** when the engine cannot read the multipart body.
70901
71738
  * @throws {ApiError} **413** when the file is larger than the engine's
70902
- * `OSFKB_SOURCE_FILE_MAX_SIZE_MB` (256 MiB by default).
71739
+ * configured upload limit (256 MiB by default).
70903
71740
  *
70904
71741
  * @remarks
70905
71742
  * Sent to `POST /api/v1/sources/files` as `multipart/form-data` with exactly
@@ -71060,7 +71897,7 @@ var SourcesClient = class {
71060
71897
  * Sent to `GET /api/v1/sources/{source_id}/tables`. The cheap counterpart to
71061
71898
  * {@link SourcesClient.discoverSchema}: one catalog query, no per-type
71062
71899
  * introspection, and — unlike discovery — **never subject to the discovery
71063
- * cap**. A source with more tables than `OSFKB_MAX_DISCOVERED_SORTS` allows
71900
+ * cap**. A source with more tables than the configured discovery limit allows
71064
71901
  * has its discovery refused, so this listing is the un-capped payload to
71065
71902
  * narrow *from*: list the names, let the user pick, then hand the picked
71066
71903
  * subset back as the `typeFilter` of a `discoverSchema` call. The response
@@ -72193,6 +73030,11 @@ var ScenariosClient = class {
72193
73030
  * @returns Created scenario (may include interactive questions). A complete
72194
73031
  * answer's `materialization.warnings` names every rule the engine refused.
72195
73032
  * @throws {BadRequestError} If a binding in `prefixes` is malformed.
73033
+ * @throws {ForbiddenError} `403` with `errorBodyCode(e)`
73034
+ * `sort_write_not_granted` (the caller's Write grants do not cover a
73035
+ * belief, the goal or a constraint as it is stored),
73036
+ * `operational_authority_denied` or `operational_authority_undetermined`;
73037
+ * nothing is written (reasoninglayer#1227).
72196
73038
  * @throws {ConstraintViolationError} `409` if `prefixes` binds a prefix the
72197
73039
  * tenant already binds to a different namespace.
72198
73040
  * @throws {ApiError} **422** if the generated scenario is invalid — among
@@ -72244,6 +73086,12 @@ var ScenariosClient = class {
72244
73086
  * `property` name the creation gate of `sorts.createSort` refuses: a name
72245
73087
  * OSFQL cannot read (`patient-id`), or a CURIE whose prefix the tenant does
72246
73088
  * not bind canonically. Nothing is written.
73089
+ * @throws {ForbiddenError} `403` if the authorization context grants no
73090
+ * Manage on a sort the scenario writes, or with `errorBodyCode(e)`
73091
+ * `reserved_sort_write_refused` (a belief, goal or constraint names a
73092
+ * reserved sort), `sort_write_not_granted`, `operational_authority_denied`
73093
+ * or `operational_authority_undetermined`. Nothing is written
73094
+ * (reasoninglayer#1227).
72247
73095
  * @throws {ConstraintViolationError} `409` if `prefixes` binds a prefix the
72248
73096
  * tenant already binds to a different namespace. Nothing is written.
72249
73097
  * @throws {ApiError} **422** `Invalid scenario payload: …` if an item has the
@@ -72347,6 +73195,11 @@ var ScenariosClient = class {
72347
73195
  * `addSorts` mints a sort or feature name the creation gate of
72348
73196
  * `sorts.createSort` refuses. Nothing is written.
72349
73197
  * @throws {NotFoundError} If no scenario has this id.
73198
+ * @throws {ForbiddenError} `403` with `errorBodyCode(e)`
73199
+ * `sort_write_not_granted`, `reserved_sort_write_refused`,
73200
+ * `operational_authority_denied` or `operational_authority_undetermined`
73201
+ * for an added belief or constraint; nothing is written
73202
+ * (reasoninglayer#1227).
72350
73203
  * @throws {ConstraintViolationError} `409` if `prefixes` binds a prefix the
72351
73204
  * tenant already binds to a different namespace. Nothing is written.
72352
73205
  * @throws {ApiError} **422** if an added item is malformed.
@@ -77459,7 +78312,7 @@ var AnalysisClient = class {
77459
78312
  * @param requestOptions - Per-call request options.
77460
78313
  * @returns The subgroups, best first, each a concept with its positions,
77461
78314
  * extent, quality and rates; the search that ran and how far it went;
77462
- * and the derived OSF terms the concepts resolve in.
78315
+ * and the derived terms the concepts resolve in.
77463
78316
  * @throws {BadRequestError} 400 for an empty or duplicated population,
77464
78317
  * nothing in the store, a graded target or one without a measured
77465
78318
  * positive and negative, an exact strategy outside the categorical
@@ -77506,7 +78359,7 @@ var AnalysisClient = class {
77506
78359
  * @param requestOptions - Per-call request options.
77507
78360
  * @returns The distinct patterns in order of first draw, each with its
77508
78361
  * equalities, extent, exact `weight`, draw count, quality and rates; the
77509
- * `normalizer`; the order of the draws; and the derived OSF terms the
78362
+ * `normalizer`; the order of the draws; and the derived terms the
77510
78363
  * descriptions resolve in.
77511
78364
  * @throws {BadRequestError} 400 for an empty or duplicated population,
77512
78365
  * nothing in the store, a graded target or one without a measured positive
@@ -80100,7 +80953,9 @@ function EnrichedHealthResponseFromApiToFront(dto) {
80100
80953
  startedAt: dto.started_at,
80101
80954
  status: dto.status ?? "unknown",
80102
80955
  uptimeSeconds: dto.uptime_seconds,
80103
- sovereign: dto.sovereign
80956
+ sovereign: dto.sovereign,
80957
+ holdsUnprovenText: dto.holds_unproven_text,
80958
+ liveRecording: dto.live_recording
80104
80959
  };
80105
80960
  }
80106
80961
 
@@ -80113,7 +80968,7 @@ var HealthClient = class {
80113
80968
  this.api = api;
80114
80969
  }
80115
80970
  /**
80116
- * Check the health of the Reasoning Layer backend.
80971
+ * Check the health of the ReasoningLayer backend.
80117
80972
  *
80118
80973
  * @returns Enriched health response with overall status, component statuses,
80119
80974
  * build info, and the identity of the engine process (`bootId`, `startedAt`,
@@ -81385,7 +82240,8 @@ function ProvenanceDtoFromApiToFront(dto) {
81385
82240
  return {
81386
82241
  description: dto.description,
81387
82242
  location: dto.location,
81388
- sourceFactId: dto.source_fact_id
82243
+ sourceFactId: dto.source_fact_id,
82244
+ ...dto.unconfirmed !== void 0 ? { unconfirmed: dto.unconfirmed } : {}
81389
82245
  };
81390
82246
  }
81391
82247
  function DiagnosticDtoFromApiToFront(dto) {
@@ -81430,7 +82286,8 @@ function GenerateDocumentRequestFromFrontToApi(model) {
81430
82286
  metadata: model.metadata,
81431
82287
  modality: model.modality,
81432
82288
  root_term_id: model.rootTermId,
81433
- tenant_id: model.tenantId
82289
+ tenant_id: model.tenantId,
82290
+ ...model.unconfirmedSupport === void 0 ? {} : { unconfirmed_support: model.unconfirmedSupport }
81434
82291
  };
81435
82292
  }
81436
82293
  function GenerateDocumentResponseFromApiToFront(dto) {
@@ -81798,6 +82655,9 @@ function extractQueryTimeMs(dto) {
81798
82655
  function extractDerivationComplete(dto) {
81799
82656
  return dto.derivation_complete === true;
81800
82657
  }
82658
+ function extractValidBefore(dto) {
82659
+ return dto.valid_before ?? void 0;
82660
+ }
81801
82661
  function extractRuleTermId(dto) {
81802
82662
  return dto.term.term_id;
81803
82663
  }
@@ -81888,14 +82748,19 @@ var OptimizeClient = class {
81888
82748
  },
81889
82749
  toRequestParams(requestOptions)
81890
82750
  );
81891
- const { queryTimeMs, solutions, derivationComplete } = decodeResponse(bcResponse, (dto) => ({
81892
- queryTimeMs: extractQueryTimeMs(dto),
81893
- solutions: dto.solutions.slice(),
81894
- derivationComplete: extractDerivationComplete(dto)
81895
- }));
82751
+ const { queryTimeMs, solutions, derivationComplete, validBefore } = decodeResponse(
82752
+ bcResponse,
82753
+ (dto) => ({
82754
+ queryTimeMs: extractQueryTimeMs(dto),
82755
+ solutions: dto.solutions.slice(),
82756
+ derivationComplete: extractDerivationComplete(dto),
82757
+ validBefore: extractValidBefore(dto)
82758
+ })
82759
+ );
82760
+ const validity = validBefore === void 0 ? {} : { validBefore };
81896
82761
  const solution = solutions[0];
81897
82762
  if (solution === void 0) {
81898
- return derivationComplete ? { status: "infeasible", solveTimeMs: queryTimeMs } : { status: "undetermined", solveTimeMs: queryTimeMs };
82763
+ return derivationComplete ? { status: "infeasible", solveTimeMs: queryTimeMs, ...validity } : { status: "undetermined", solveTimeMs: queryTimeMs, ...validity };
81899
82764
  }
81900
82765
  const variables = {};
81901
82766
  for (const binding of solution.substitution.bindings) {
@@ -81915,7 +82780,8 @@ var OptimizeClient = class {
81915
82780
  status: "optimal",
81916
82781
  variables,
81917
82782
  objectiveValue,
81918
- solveTimeMs: queryTimeMs
82783
+ solveTimeMs: queryTimeMs,
82784
+ ...validity
81919
82785
  };
81920
82786
  } finally {
81921
82787
  if (cleanup) {
@@ -82479,7 +83345,8 @@ var OsfqlClient = class {
82479
83345
  * @param options - Optional execution options. Set `reactive` to fire suspended
82480
83346
  * `AWAIT` demons whose triggers the program has just satisfied, and
82481
83347
  * `semantics: 'rdf'` to run a statement {@link SparqlClient.translateQuery}
82482
- * returned.
83348
+ * returned. Set `confirmExternal` when the person has confirmed this program's
83349
+ * open-web calls.
82483
83350
  * @param requestOptions - Per-call transport options (timeout, signal, headers).
82484
83351
  * @returns The execution result including variable bindings, created and
82485
83352
  * updated term IDs, defined sort IDs, diagnostics, and statement count.
@@ -82501,6 +83368,9 @@ var OsfqlClient = class {
82501
83368
  * `PREFIX p: <iri>;` that binds a bound prefix to another namespace, and a
82502
83369
  * `DEFINE` / `AGENT CREATE SORT` of a CURIE whose prefix the tenant does
82503
83370
  * not bind, are `execution` failures (HTTP 422); the program is rolled back.
83371
+ * @throws {OsfqlError} HTTP 428 with `errorType` equal to `boundary_needs_confirmation`
83372
+ * when a `SEARCH WEB` or `READ PAGE` requires a person's confirmation. Earlier
83373
+ * statements have already run. Execution stops at the statement requiring confirmation.
82504
83374
  * @throws {OsfqlError} With `errorType: 'lock_timeout'` (HTTP 503) when other
82505
83375
  * writers kept the tenant's knowledge base locked until the request
82506
83376
  * deadline. Nothing ran, so the program is safe to retry as is; a larger
@@ -82964,6 +83834,24 @@ var Conversation = class {
82964
83834
  format: "json",
82965
83835
  ...params
82966
83836
  });
83837
+ /**
83838
+ * No description
83839
+ *
83840
+ * @tags conversation
83841
+ * @name AttestConversationPoint
83842
+ * @summary `POST /api/v1/conversation/{id}/attestations`
83843
+ * @request POST:/api/v1/conversation/{id}/attestations
83844
+ * @secure
83845
+ */
83846
+ attestConversationPoint = (id, data, params = {}) => this.http.request({
83847
+ path: `/api/v1/conversation/${id}/attestations`,
83848
+ method: "POST",
83849
+ body: data,
83850
+ secure: true,
83851
+ type: "application/json",
83852
+ format: "json",
83853
+ ...params
83854
+ });
82967
83855
  /**
82968
83856
  * @description Delete a conversation and all its turns.
82969
83857
  *
@@ -83251,7 +84139,14 @@ var Conversation = class {
83251
84139
 
83252
84140
  // src/resources/conversation.ts
83253
84141
  var SSE_MEDIA_TYPE = "text/event-stream";
83254
- var STREAM_EVENTS = /* @__PURE__ */ new Set(["token", "done", "error"]);
84142
+ var STREAM_EVENTS = /* @__PURE__ */ new Set([
84143
+ "token",
84144
+ "step_start",
84145
+ "step_end",
84146
+ "claim",
84147
+ "done",
84148
+ "error"
84149
+ ]);
83255
84150
  var ConversationClient = class {
83256
84151
  /** @internal */
83257
84152
  http;
@@ -83322,6 +84217,8 @@ var ConversationClient = class {
83322
84217
  * {@link ConversationClient.sendMessage} takes.
83323
84218
  * @returns An async iterable of stream events, discriminated on `type`:
83324
84219
  * - `token` — a preview chunk (`delta`) of the answer text;
84220
+ * - `step_start`, `step_end` — a pipeline stage and its outcome;
84221
+ * - `claim` — one verified claim before the full answer;
83325
84222
  * - `done` — the complete response, identical to what `sendMessage`
83326
84223
  * returns for the turn. It is authoritative: replace the previewed text
83327
84224
  * with `response.assistantMessage`;
@@ -83373,14 +84270,14 @@ var ConversationClient = class {
83373
84270
  * })) {
83374
84271
  * if (event.type === 'token') preview += event.delta;
83375
84272
  * else if (event.type === 'done') preview = event.response.assistantMessage;
83376
- * else if (event.status !== undefined) {
84273
+ * else if (event.type === 'error' && event.status !== undefined) {
83377
84274
  * // The same class sendMessage throws: InternalServerError for 500, ...
83378
84275
  * throw createApiError(
83379
84276
  * event.status,
83380
84277
  * { error: event.error, message: event.error },
83381
84278
  * new Headers(),
83382
84279
  * );
83383
- * } else throw new Error(event.error);
84280
+ * } else if (event.type === 'error') throw new Error(event.error);
83384
84281
  * }
83385
84282
  * ```
83386
84283
  */
@@ -83752,6 +84649,29 @@ var ConversationClient = class {
83752
84649
  });
83753
84650
  return decodeResponse(response, ConversationAnswerFeedbackResponseFromApiToFront);
83754
84651
  }
84652
+ /**
84653
+ * Confirm a point on an answer or report an error as the conversation's owner.
84654
+ * @param conversationId - The conversation containing the answer.
84655
+ * @param request - Answer turn, point reference and judgment.
84656
+ * @param requestOptions - Per-call transport overrides.
84657
+ * @returns The stored judgment with the signer and timestamp recorded by the engine.
84658
+ * @throws {ForbiddenError} If an agent or service account tries to attest.
84659
+ * @throws {NotFoundError} If the caller cannot see that answer or point.
84660
+ * @throws {ApiError} If the request fails.
84661
+ * @remarks The request contains `turn_id`, `point_ref` and `kind`. Authentication supplies the signer.
84662
+ * @example
84663
+ * ```typescript
84664
+ * await client.conversation.attestPoint(conversationId, { turnId, pointRef, kind: 'confirmed' });
84665
+ * ```
84666
+ */
84667
+ async attestPoint(conversationId, request, requestOptions) {
84668
+ const response = await this.api.attestConversationPoint(
84669
+ conversationId,
84670
+ ClaimAttestationRequestFromFrontToApi(request),
84671
+ toRequestParams(requestOptions)
84672
+ );
84673
+ return decodeResponse(response, ClaimAttestationResponseFromApiToFront);
84674
+ }
83755
84675
  /**
83756
84676
  * Get the session memory graph for a conversation.
83757
84677
  *
@@ -83856,7 +84776,7 @@ async function* readConversationStream(body) {
83856
84776
  );
83857
84777
  }
83858
84778
  yield event;
83859
- if (event.type !== "token") return;
84779
+ if (event.type === "done" || event.type === "error") return;
83860
84780
  }
83861
84781
  throw new NetworkError("Conversation stream ended without a done or error event");
83862
84782
  }
@@ -84183,6 +85103,7 @@ function SearchPapersResponseFromApiToFront(dto) {
84183
85103
  function CreateResearchSessionResponseFromApiToFront(dto) {
84184
85104
  return {
84185
85105
  sessionId: dto.session_id,
85106
+ knowledgeBaseTenantId: dto.knowledge_base_tenant_id ?? null,
84186
85107
  status: dto.status,
84187
85108
  question: dto.question,
84188
85109
  createdAt: dto.created_at
@@ -84207,6 +85128,7 @@ function ResearchCycleResultFromApiToFront(dto) {
84207
85128
  function ResearchSessionResponseFromApiToFront(dto) {
84208
85129
  return {
84209
85130
  sessionId: dto.session_id,
85131
+ knowledgeBaseTenantId: dto.knowledge_base_tenant_id ?? null,
84210
85132
  question: dto.question,
84211
85133
  status: dto.status,
84212
85134
  error: dto.error ?? null,
@@ -87563,10 +88485,8 @@ var SnapshotsClient = class {
87563
88485
  * @throws {@link ApiError} 404 when it does not exist; 501 when the engine runs in memory.
87564
88486
  *
87565
88487
  * @remarks
87566
- * The envelope (`format: "reasoninglayer-snapshot"`, with
87567
- * `metadata.reasoninglayer_version`) is opaque: the engine declares no schema for it, and its
87568
- * shape is the engine's to change. Treat it as a blob to hand back to
87569
- * {@link SnapshotsClient.import}, not as something to read fields out of.
88488
+ * Metadata uses the engine’s wire keys. The data payload preserves record keys
88489
+ * verbatim for offline storage and {@link SnapshotsClient.import}.
87570
88490
  *
87571
88491
  * @example
87572
88492
  * ```typescript
@@ -89561,7 +90481,8 @@ function ExecuteTranspiledResponseFromApiToFront(dto) {
89561
90481
  rowCount: dto.row_count,
89562
90482
  query: dto.query,
89563
90483
  dialect: dto.dialect,
89564
- sourceId: dto.source_id
90484
+ sourceId: dto.source_id,
90485
+ completeness: dto.completeness
89565
90486
  };
89566
90487
  }
89567
90488
  function TranspileRequestFromFrontToApi(model) {
@@ -89594,6 +90515,10 @@ var OntologyBridgeClient = class {
89594
90515
  * columns, and per-feature column mappings.
89595
90516
  * @returns Whether the binding succeeded plus the bound sort and table names.
89596
90517
  * @throws {ApiError} If the request fails.
90518
+ * @throws {InternalServerError} `502` with `errorBodyCode(e)` `source_query_failed` or
90519
+ * `source_stream_failed`, or `504` `source_timeout`, when the discovery or
90520
+ * key-count read the bind runs did not reach the end of the source's
90521
+ * answer (`LiveSourceErrorCode`, reasoninglayer#1218).
89597
90522
  *
89598
90523
  * @remarks
89599
90524
  * Sent to `POST /api/v1/ontology/bindings`. Request/response use the
@@ -89836,11 +90761,18 @@ var OntologyBridgeClient = class {
89836
90761
  * source, and the source's type decides the dialect.
89837
90762
  * @param requestOptions - Per-call request options.
89838
90763
  * @returns The rows the source returned, the native query that fetched them,
89839
- * its dialect, and the source id.
90764
+ * its dialect, the source id, and `completeness: 'complete'`: the rows are
90765
+ * the source's whole answer, so an empty list is a source with no rows.
89840
90766
  * @throws {NotFoundError} If a scanned sort does not exist, or has no binding
89841
90767
  * (404; the message says which).
89842
90768
  * @throws {ApiError} With `status` 422 if the query's sorts are bound to two
89843
90769
  * different sources, or 500 if the binding store cannot be read.
90770
+ * @throws {InternalServerError} `502` with `errorBodyCode(e)` `source_query_failed`
90771
+ * (the source refused or failed the query, or could not be reached) or
90772
+ * `source_stream_failed` (its row stream failed before its end), or `504`
90773
+ * `source_timeout` (the read passed the source's `query_timeout_secs`):
90774
+ * no partial rows are returned (`LiveSourceErrorCode`,
90775
+ * reasoninglayer#1213). `501` if the source has no native query backend.
89844
90776
  *
89845
90777
  * @remarks
89846
90778
  * Sent to `POST /api/v1/ontology/query`. The response uses the snake_case
@@ -90712,6 +91644,16 @@ var PropertyGraphClient = class _PropertyGraphClient {
90712
91644
  * @returns Execution result: bindings, the OSFQL program that ran, produced term IDs,
90713
91645
  * defined sort IDs, diagnostics, compatibility notes, and the statement count.
90714
91646
  * @throws {ApiError} If the query cannot be parsed, cannot be lowered to OSFQL, or fails to execute.
91647
+ * @throws {ForbiddenError} `403` when a write or delete the translated
91648
+ * program makes is denied; `body.error_type` names why:
91649
+ * `reserved_sort_write_refused`, `reserved_sort_delete_refused`,
91650
+ * `sort_write_not_granted`, `sort_delete_not_granted`,
91651
+ * `operational_authority_denied` or `operational_authority_undetermined`.
91652
+ * Nothing is written.
91653
+ * @throws {ConstraintViolationError} `409` when the program mutates governed
91654
+ * schema, or writes or removes a term of a `@governed` sort
91655
+ * (`error_type: governed_sort_write_refused`) or a derived authority
91656
+ * relation (`authz_relation_derived`). Nothing is written.
90715
91657
  * @throws {ReasoningLayerError} If the server returns bindings that do not satisfy the
90716
91658
  * published {@link PropertyGraphValue} contract.
90717
91659
  *
@@ -90743,6 +91685,16 @@ var PropertyGraphClient = class _PropertyGraphClient {
90743
91685
  * @returns Execution result: bindings, the OSFQL program that ran, produced term IDs,
90744
91686
  * defined sort IDs, diagnostics, compatibility notes, and the statement count.
90745
91687
  * @throws {ApiError} If the query cannot be parsed, cannot be lowered to OSFQL, or fails to execute.
91688
+ * @throws {ForbiddenError} `403` when a write or delete the translated
91689
+ * program makes is denied; `body.error_type` names why:
91690
+ * `reserved_sort_write_refused`, `reserved_sort_delete_refused`,
91691
+ * `sort_write_not_granted`, `sort_delete_not_granted`,
91692
+ * `operational_authority_denied` or `operational_authority_undetermined`.
91693
+ * Nothing is written.
91694
+ * @throws {ConstraintViolationError} `409` when the program mutates governed
91695
+ * schema, or writes or removes a term of a `@governed` sort
91696
+ * (`error_type: governed_sort_write_refused`) or a derived authority
91697
+ * relation (`authz_relation_derived`). Nothing is written.
90746
91698
  * @throws {ReasoningLayerError} If the server returns bindings that do not satisfy the
90747
91699
  * published {@link PropertyGraphValue} contract.
90748
91700
  *
@@ -90774,6 +91726,16 @@ var PropertyGraphClient = class _PropertyGraphClient {
90774
91726
  * @returns Execution result: bindings, the OSFQL program that ran, produced term IDs,
90775
91727
  * defined sort IDs, diagnostics, compatibility notes, and the statement count.
90776
91728
  * @throws {ApiError} If the traversal cannot be parsed, cannot be lowered to OSFQL, or fails to execute.
91729
+ * @throws {ForbiddenError} `403` when a write or delete the translated
91730
+ * program makes is denied; `body.error_type` names why:
91731
+ * `reserved_sort_write_refused`, `reserved_sort_delete_refused`,
91732
+ * `sort_write_not_granted`, `sort_delete_not_granted`,
91733
+ * `operational_authority_denied` or `operational_authority_undetermined`.
91734
+ * Nothing is written.
91735
+ * @throws {ConstraintViolationError} `409` when the program mutates governed
91736
+ * schema, or writes or removes a term of a `@governed` sort
91737
+ * (`error_type: governed_sort_write_refused`) or a derived authority
91738
+ * relation (`authz_relation_derived`). Nothing is written.
90777
91739
  * @throws {ReasoningLayerError} If the server returns bindings that do not satisfy the
90778
91740
  * published {@link PropertyGraphValue} contract.
90779
91741
  *
@@ -91186,8 +92148,22 @@ var SparqlClient = class {
91186
92148
  * @throws {InternalServerError} `502` when a `LOAD` names a source the SSRF guard
91187
92149
  * blocks (a private or loopback address, a loopback host name such as
91188
92150
  * `localhost`, or a refused scheme): `LOAD could not retrieve <…>`.
92151
+ * @throws {ForbiddenError} `403` when a term the update writes or removes is
92152
+ * in the reserved namespace or outside the caller's grants (`error_type`
92153
+ * `reserved_sort_write_refused`, `sort_write_not_granted`,
92154
+ * `reserved_sort_delete_refused`, `sort_delete_not_granted`).
92155
+ * @throws {ConstraintViolationError} `409` when a term it writes or removes
92156
+ * is of a `@governed` sort (`governed_sort_write_refused`) or is a derived
92157
+ * authority relation (`authz_relation_derived`); when its prefixes conflict
92158
+ * with a binding another request made meanwhile (`prefix_conflict`); or
92159
+ * when an IRI-valued `INSERT DATA` names a resource the caller's Read grant
92160
+ * hides (`term_id_unavailable`, reasoninglayer#1215).
92161
+ * @throws {ApiError} `422` when a term it writes wraps a constraint the
92162
+ * update cannot read (`error_type: filing_term_unread`).
92163
+ *
92164
+ * @remarks
92165
+ * A refused update applies nothing of the update (reasoninglayer#1214).
91189
92166
  *
91190
- * @remarks
91191
92167
  * Supports `INSERT DATA` / `DELETE DATA` and `DELETE/INSERT … WHERE`; the update maps
91192
92168
  * onto tenant-scoped OSFQL `INSERT` / `RETRACT` statements. The update text is sent as
91193
92169
  * an `application/x-www-form-urlencoded` body (`update=…`).
@@ -91656,6 +92632,36 @@ function CheckDocumentResponseFromApiToFront(dto) {
91656
92632
  function CheckPassFromApiToFront(dto) {
91657
92633
  return { pass: dto.pass, status: dto.status, reason: dto.reason };
91658
92634
  }
92635
+ function ClausePolicyProposalFromFrontToApi(model) {
92636
+ return {
92637
+ evidence_sort: model.evidenceSort,
92638
+ result_sort: model.resultSort,
92639
+ branches: model.branches.map((branch) => ({
92640
+ name: branch.name,
92641
+ effect: branch.effect,
92642
+ quote: branch.quote,
92643
+ conditions: branch.conditions.map((condition) => ({
92644
+ feature: condition.feature,
92645
+ comparison: condition.comparison,
92646
+ value: condition.value,
92647
+ quote: condition.quote
92648
+ }))
92649
+ }))
92650
+ };
92651
+ }
92652
+ function ClausePolicyDraftRequestFromFrontToApi(model) {
92653
+ return {
92654
+ policy: ClausePolicyProposalFromFrontToApi(model.policy),
92655
+ ...model.supportingClauseIds !== void 0 ? { supporting_clause_ids: model.supportingClauseIds } : {}
92656
+ };
92657
+ }
92658
+ function ClausePolicyDraftFromApiToFront(dto) {
92659
+ return {
92660
+ sourceDocumentId: dto.source_document_id,
92661
+ sourceClauseId: dto.source_clause_id,
92662
+ rlql: dto.rlql
92663
+ };
92664
+ }
91659
92665
 
91660
92666
  // src/resources/document-check.ts
91661
92667
  var DocumentCheckClient = class {
@@ -91709,6 +92715,60 @@ var DocumentCheckClient = class {
91709
92715
  );
91710
92716
  return decodeResponse(response, CheckDocumentResponseFromApiToFront);
91711
92717
  }
92718
+ /**
92719
+ * Compile a reading of one extracted clause into unpublished RLQL, without
92720
+ * writing any fact or rule.
92721
+ *
92722
+ * @param documentId - The source document (UUID).
92723
+ * @param clauseId - The extracted clause the reading interprets (UUID).
92724
+ * @param request - The reading (`policy`) and other clauses of the same
92725
+ * document revision that support it.
92726
+ * @param requestOptions - Per-call request options.
92727
+ * @returns The source-anchored draft: the document, the clause and the RLQL.
92728
+ * @throws {BadRequestError} `400` if the clause selection exceeds the
92729
+ * resolution budget.
92730
+ * @throws {NotFoundError} `404` if the document or the clause is unavailable.
92731
+ * @throws {ApiError} `422` if the reading is invalid for its sorts.
92732
+ * @throws {ServiceUnavailableError} `503` if the tenant hierarchy is
92733
+ * unavailable.
92734
+ *
92735
+ * @remarks
92736
+ * Sent to `POST /api/v1/documents/{document_id}/clauses/{clause_id}/policy-draft`.
92737
+ * Plain JSON, snake_case on the wire (`evidence_sort`, `result_sort`,
92738
+ * `supporting_clause_ids`); condition values are a JSON boolean or integer.
92739
+ * A reviewer publishes the draft through the ordinary OSFQL route, under its
92740
+ * own authorization; this call writes nothing.
92741
+ *
92742
+ * @example
92743
+ * ```typescript
92744
+ * const draft = await client.documentCheck.draftClausePolicy(documentId, clauseId, {
92745
+ * policy: {
92746
+ * evidenceSort: 'invoice_case',
92747
+ * resultSort: 'invoice_policy_result',
92748
+ * branches: [
92749
+ * {
92750
+ * name: 'late',
92751
+ * effect: 'penalty_due',
92752
+ * quote: 'a penalty is due',
92753
+ * conditions: [
92754
+ * { feature: 'days_late', comparison: 'gt', value: 30, quote: 'more than thirty days' },
92755
+ * ],
92756
+ * },
92757
+ * ],
92758
+ * },
92759
+ * });
92760
+ * console.log(draft.rlql);
92761
+ * ```
92762
+ */
92763
+ async draftClausePolicy(documentId, clauseId, request, requestOptions) {
92764
+ const response = await this.api.draftClausePolicy(
92765
+ documentId,
92766
+ clauseId,
92767
+ ClausePolicyDraftRequestFromFrontToApi(request),
92768
+ toRequestParams(requestOptions)
92769
+ );
92770
+ return decodeResponse(response, ClausePolicyDraftFromApiToFront);
92771
+ }
91712
92772
  };
91713
92773
 
91714
92774
  // src/normalizers/corpus.ts
@@ -94221,7 +95281,7 @@ var AguiClient = class {
94221
95281
  * writes the store is refused without an exception or a `RUN_ERROR`: the
94222
95282
  * run emits a `CUSTOM` event named `reasoninglayer.data_load_error` whose `value` is
94223
95283
  * `{ code, message, query }`, and the `STATE_SNAPSHOT` carries the same
94224
- * object at `reasoninglayer.dataLoadError`; branch on `code`. No rows are loaded.
95284
+ * object at `snapshot.reasoninglayer.dataLoadError`; branch on `code`. No rows are loaded.
94225
95285
  *
94226
95286
  * @example
94227
95287
  * ```typescript
@@ -94517,9 +95577,7 @@ var ArgumentationClient = class {
94517
95577
 
94518
95578
  // src/normalizers/demo.ts
94519
95579
  function DemoSeedRequestFromFrontToApi(model) {
94520
- const dto = {};
94521
- if (model.sumoDir !== void 0) dto.sumo_dir = model.sumoDir;
94522
- return dto;
95580
+ return { ...model };
94523
95581
  }
94524
95582
  function DemoSeedResponseFromApiToFront(dto) {
94525
95583
  return {
@@ -94540,17 +95598,36 @@ var DemoClient = class {
94540
95598
  * Seed the request tenant's persistent substrate with full SUMO + the
94541
95599
  * demo scenario situations.
94542
95600
  *
94543
- * @param request - Optional SUMO source-directory override.
95601
+ * @param request - The empty request body (`{}`). The request names no
95602
+ * SUMO directory: the engine reads its own (reasoninglayer#1229).
95603
+ * @param requestOptions - Per-call request options.
94544
95604
  * @returns The imported form count and the tenant's total sort count.
94545
95605
  *
94546
- * @throws {ApiError} `404` if the SUMO files cannot be read, `400` if
94547
- * the assembled source fails to import.
95606
+ * @throws {NotFoundError} `404` with `errorBodyCode(e) ===
95607
+ * 'demo_corpus_unavailable'` if the deployment's SUMO files cannot be
95608
+ * read; the answer names no server path.
95609
+ * @throws {ApiError} `400` if the assembled source fails to import.
95610
+ * @throws {GovernanceRefusedError} When the write guard refuses a fact,
95611
+ * individual or rule the seed writes; nothing of the seed is stored.
95612
+ * `403` `reserved_sort_write_refused`, `sort_write_not_granted`,
95613
+ * `operational_authority_denied` or `operational_authority_undetermined`;
95614
+ * `409` `authz_relation_derived`; `422`
95615
+ * `operational_rule_conclusion`, `authz_rule_shape`,
95616
+ * `authz_parent_of_sort_refused` or `filing_term_unread` (#1227).
95617
+ * @throws {VocabularyRefusedError} `409` `governed_sort_write_refused`: that
95618
+ * code is in the vocabulary set too, which the SDK reads first.
95619
+ *
95620
+ * @remarks
95621
+ * Sent to `POST /api/v1/demo/seed` with the body `{}`; the engine refuses
95622
+ * an unknown field with `422`.
95623
+ *
95624
+ * @example
95625
+ * ```typescript
95626
+ * const { forms, sorts } = await client.demo.seed();
95627
+ * ```
94548
95628
  */
94549
95629
  async seed(request = {}, requestOptions) {
94550
- const response = await this.api.demoSeed(
94551
- DemoSeedRequestFromFrontToApi(request),
94552
- toRequestParams(requestOptions)
94553
- );
95630
+ const response = await this.api.demoSeed(DemoSeedRequestFromFrontToApi(request), toRequestParams(requestOptions)).catch(rethrowVocabularyRefusal);
94554
95631
  return decodeResponse(response, DemoSeedResponseFromApiToFront);
94555
95632
  }
94556
95633
  };
@@ -96858,6 +97935,19 @@ var ConnectorsClient = class {
96858
97935
  };
96859
97936
 
96860
97937
  // src/normalizers/boundary.ts
97938
+ var decisionCodes = [
97939
+ "boundary_space_invalid",
97940
+ "boundary_registry_unreadable",
97941
+ "boundary_no_caller_credential",
97942
+ "boundary_space_forbidden",
97943
+ "boundary_policy_unreadable",
97944
+ "boundary_entry_not_allowed",
97945
+ "boundary_data_class_not_allowed",
97946
+ "egress_denied",
97947
+ "boundary_needs_confirmation",
97948
+ "boundary_quota_exhausted",
97949
+ "boundary_quota_unreadable"
97950
+ ];
96861
97951
  var privacyModes = ["off", "user", "required"];
96862
97952
  function mapEntries(record3, map) {
96863
97953
  return Object.fromEntries(
@@ -96868,7 +97958,9 @@ function mapEntries(record3, map) {
96868
97958
  );
96869
97959
  }
96870
97960
  function grantFromApi(dto) {
96871
- const grant = {};
97961
+ const grant = {
97962
+ ...dto.sites === void 0 ? {} : { sites: dto.sites }
97963
+ };
96872
97964
  if (dto.data_classes !== void 0)
96873
97965
  grant.dataClasses = dto.data_classes === null ? null : wireStringArray(dto.data_classes, "data_classes");
96874
97966
  if (dto.confirm_each_use !== void 0)
@@ -96892,6 +97984,7 @@ function BoundaryPolicyFromFrontToApi(policy) {
96892
97984
  if (policy.allowed !== void 0)
96893
97985
  out.allowed = mapEntries(policy.allowed, (grant) => {
96894
97986
  const wire = {};
97987
+ if (grant.sites !== void 0) wire.sites = grant.sites;
96895
97988
  if (grant.dataClasses !== void 0) wire.data_classes = grant.dataClasses;
96896
97989
  if (grant.confirmEachUse !== void 0) wire.confirm_each_use = grant.confirmEachUse;
96897
97990
  if (grant.outboundPrivacy !== void 0) wire.outbound_privacy = grant.outboundPrivacy;
@@ -96912,6 +98005,10 @@ function EffectiveBoundaryFromApiToFront(dto) {
96912
98005
  spaceId: wireString(dto.space_id, "space_id"),
96913
98006
  registryApplied: wireBoolean(dto.registry_applied, "registry_applied"),
96914
98007
  entries: mapEntries(dto.entries, (entry2) => ({
98008
+ badge: entry2.badge,
98009
+ ...entry2.kind === void 0 ? {} : { kind: entry2.kind },
98010
+ ...entry2.name === void 0 ? {} : { name: entry2.name },
98011
+ sites: entry2.sites,
96915
98012
  dataClasses: wireStringArray(entry2.data_classes, "data_classes"),
96916
98013
  confirmEachUse: wireBoolean(entry2.confirm_each_use, "confirm_each_use"),
96917
98014
  outboundPrivacy: mapEntries(
@@ -96962,6 +98059,43 @@ function SiteRequestFiledFromApiToFront(dto) {
96962
98059
  function SiteRequestListFromApiToFront(dto) {
96963
98060
  return dto.items.map(SiteRequestFromApiToFront);
96964
98061
  }
98062
+ function BoundaryDecideRequestFromFrontToApi(request) {
98063
+ return {
98064
+ entry_id: request.entryId,
98065
+ ...request.spaceId === void 0 ? {} : { space_id: request.spaceId },
98066
+ ...request.dataClass === void 0 ? {} : { data_class: request.dataClass },
98067
+ ...request.targetHost === void 0 ? {} : { target_host: request.targetHost },
98068
+ ...request.confirmed === void 0 ? {} : { confirmed: request.confirmed }
98069
+ };
98070
+ }
98071
+ function BoundaryDecisionFromApiToFront(dto) {
98072
+ const decision = {
98073
+ verdict: wireLiteral(dto.verdict, ["allowed", "confirm", "blocked"], "verdict"),
98074
+ sanitise: wireBoolean(dto.sanitise, "sanitise")
98075
+ };
98076
+ if (dto.code !== void 0)
98077
+ decision.code = dto.code === null ? null : wireLiteral(dto.code, decisionCodes, "code");
98078
+ if (dto.rule !== void 0)
98079
+ decision.rule = dto.rule === null ? null : wireLiteral(dto.rule, ["not_allowed_in_space", "blocked_in_space"], "rule");
98080
+ if (dto.badge !== void 0)
98081
+ decision.badge = dto.badge === null ? null : wireLiteral(dto.badge, ["on_box", "external"], "badge");
98082
+ if (dto.kind !== void 0)
98083
+ decision.kind = dto.kind === null ? null : wireString(dto.kind, "kind");
98084
+ if (dto.name !== void 0)
98085
+ decision.name = dto.name === null ? null : wireString(dto.name, "name");
98086
+ if (dto.quota !== void 0)
98087
+ decision.quota = dto.quota === null ? null : {
98088
+ limit: wireNumber(dto.quota.limit, "quota.limit"),
98089
+ used: wireNumber(dto.quota.used, "quota.used"),
98090
+ resetsAt: wireString(dto.quota.resets_at, "quota.resets_at")
98091
+ };
98092
+ if (dto.sites !== void 0)
98093
+ decision.sites = dto.sites === null ? null : {
98094
+ allow: wireStringArray(dto.sites.allow, "sites.allow"),
98095
+ block: wireStringArray(dto.sites.block, "sites.block")
98096
+ };
98097
+ return decision;
98098
+ }
96965
98099
 
96966
98100
  // src/resources/boundary.ts
96967
98101
  var BoundaryClient = class {
@@ -96970,6 +98104,23 @@ var BoundaryClient = class {
96970
98104
  this.api = api;
96971
98105
  }
96972
98106
  api;
98107
+ /** Ask the engine to decide one outbound call.
98108
+ * @param request - The registry entry and circumstances of this call.
98109
+ * @param requestOptions - Per-call cancellation, timeout and request options.
98110
+ * @returns The engine's verdict and any associated restrictions, reason and quota.
98111
+ * @throws {ApiError} When the HTTP request fails.
98112
+ * @throws {ResponseShapeError} When the decision cannot be decoded.
98113
+ * @remarks Sends snake_case JSON to `POST /api/v1/boundary/decide`.
98114
+ * The engine can count an admitted call against the entry's daily quota.
98115
+ * @example const decision = await client.boundary.decide({ entryId: 'web-search' });
98116
+ */
98117
+ async decide(request, requestOptions) {
98118
+ const response = await this.api.postDecide(
98119
+ BoundaryDecideRequestFromFrontToApi(request),
98120
+ toRequestParams(requestOptions)
98121
+ );
98122
+ return decodeResponse(response, BoundaryDecisionFromApiToFront);
98123
+ }
96973
98124
  /** Read the effective restrictions computed by the engine.
96974
98125
  * @param spaceId - Project/space identifier, or `*` for the admin cap.
96975
98126
  * @param requestOptions - Per-call cancellation, timeout and request options.
@@ -98529,6 +99680,228 @@ var TextClient = class {
98529
99680
  }
98530
99681
  };
98531
99682
 
99683
+ // src/normalizers/browser-agent.ts
99684
+ function opaqueAction(action) {
99685
+ return Object.fromEntries(Object.entries(action));
99686
+ }
99687
+ function BrowserLinkFromFrontToApi(model) {
99688
+ return { ref_id: model.refId, label: model.label, url: model.url };
99689
+ }
99690
+ function BrowserTabFromFrontToApi(model) {
99691
+ return {
99692
+ tab_id: model.tabId,
99693
+ ...model.current !== void 0 ? { current: model.current } : {},
99694
+ ...model.openedByAgent !== void 0 ? { opened_by_agent: model.openedByAgent } : {},
99695
+ ...model.title !== void 0 ? { title: model.title } : {},
99696
+ ...model.url !== void 0 ? { url: model.url } : {}
99697
+ };
99698
+ }
99699
+ function BrowserStepRequestFromFrontToApi(model) {
99700
+ return {
99701
+ task: model.task,
99702
+ url: model.url,
99703
+ dom_snapshot: model.domSnapshot,
99704
+ ...model.title !== void 0 ? { title: model.title } : {},
99705
+ ...model.history !== void 0 ? { history: model.history } : {},
99706
+ ...model.marks !== void 0 ? { marks: model.marks } : {},
99707
+ ...model.maxTokens !== void 0 ? { max_tokens: model.maxTokens } : {},
99708
+ ...model.memory !== void 0 ? { memory: model.memory } : {},
99709
+ ...model.navigationLinks !== void 0 ? {
99710
+ navigation_links: model.navigationLinks === null ? null : model.navigationLinks.map(BrowserLinkFromFrontToApi)
99711
+ } : {},
99712
+ ...model.screenshot !== void 0 ? { screenshot: model.screenshot } : {},
99713
+ ...model.tabs !== void 0 ? { tabs: model.tabs.map(BrowserTabFromFrontToApi) } : {}
99714
+ };
99715
+ }
99716
+ function BrowserStepResponseFromApiToFront(dto) {
99717
+ return {
99718
+ evaluationPreviousGoal: dto.evaluation_previous_goal,
99719
+ memory: dto.memory,
99720
+ nextGoal: dto.next_goal,
99721
+ actions: dto.actions.map(opaqueAction)
99722
+ };
99723
+ }
99724
+ function BrowserRunRequestFromFrontToApi(model) {
99725
+ switch (model.operation) {
99726
+ case "start":
99727
+ return { operation: "start", task: model.task, browser_session: model.browserSession };
99728
+ case "inspect":
99729
+ return { operation: "inspect" };
99730
+ case "observe":
99731
+ return {
99732
+ operation: "observe",
99733
+ revision: model.revision,
99734
+ observation: BrowserStepRequestFromFrontToApi(model.observation)
99735
+ };
99736
+ case "authorize":
99737
+ return { operation: "authorize", revision: model.revision, command: model.command };
99738
+ case "discard":
99739
+ return { operation: "discard", revision: model.revision, command: model.command };
99740
+ case "receipt":
99741
+ return {
99742
+ operation: "receipt",
99743
+ command: model.command,
99744
+ outcome: {
99745
+ ok: model.outcome.ok,
99746
+ ...model.outcome.observation !== void 0 ? { observation: model.outcome.observation } : {}
99747
+ }
99748
+ };
99749
+ case "resolve":
99750
+ return { operation: "resolve", command: model.command, outcome: model.outcome };
99751
+ case "cancel":
99752
+ return { operation: "cancel", revision: model.revision };
99753
+ }
99754
+ }
99755
+ function BrowserRunViewFromApiToFront(dto) {
99756
+ return {
99757
+ id: dto.id,
99758
+ browserSession: dto.browser_session,
99759
+ task: dto.task,
99760
+ phase: dto.phase,
99761
+ revision: dto.revision,
99762
+ step: dto.step,
99763
+ pending: dto.pending == null ? null : { command: dto.pending.command, name: dto.pending.name, intent: dto.pending.intent },
99764
+ result: dto.result == null ? null : { success: dto.result.success, text: dto.result.text }
99765
+ };
99766
+ }
99767
+ function BrowserRunResponseFromApiToFront(dto) {
99768
+ return {
99769
+ ...BrowserRunViewFromApiToFront(dto),
99770
+ proposal: dto.proposal == null ? null : { id: dto.proposal.id, action: opaqueAction(dto.proposal.action) },
99771
+ authorized: dto.authorized ?? null
99772
+ };
99773
+ }
99774
+
99775
+ // src/resources/browser-agent.ts
99776
+ var BrowserAgentClient = class {
99777
+ /** @internal */
99778
+ api;
99779
+ /** @internal */
99780
+ constructor(api) {
99781
+ this.api = api;
99782
+ }
99783
+ /**
99784
+ * Decide the next browser actions for the current page state.
99785
+ *
99786
+ * @param request - The task and the page state (`domSnapshot`, `url`, tabs,
99787
+ * optional screenshot and marks).
99788
+ * @param requestOptions - Per-call request options.
99789
+ * @returns The evaluation of the previous goal, the planner's note, the next
99790
+ * goal and the ordered actions (verbatim).
99791
+ * @throws {BadRequestError} `400` for an empty task, or a body that is not JSON.
99792
+ * @throws {ApiError} `422` if the model returned no parseable step.
99793
+ * @throws {InternalServerError} `502` `llm_provider_failed`: the model's provider failed.
99794
+ * @throws {ServiceUnavailableError} `503` `llm_unconfigured`: no text model is configured.
99795
+ *
99796
+ * @remarks
99797
+ * Sent to `POST /api/v1/agent/browser-step`, snake_case on the wire
99798
+ * (`dom_snapshot`, `navigation_links`, `max_tokens`). Visual grounding is
99799
+ * best-effort: without a screenshot or a vision port the step reads the
99800
+ * element tree alone. The engine keeps nothing between steps: carry
99801
+ * `memory` and `history` forward yourself.
99802
+ *
99803
+ * @example
99804
+ * ```typescript
99805
+ * const step = await client.browserAgent.step({
99806
+ * task: 'Find the pricing page',
99807
+ * url: 'https://example.com',
99808
+ * domSnapshot: '[e1]<a href="/pricing">Pricing</a>',
99809
+ * });
99810
+ * console.log(step.nextGoal, step.actions);
99811
+ * ```
99812
+ */
99813
+ async step(request, requestOptions) {
99814
+ const response = await this.api.agentBrowserStep(
99815
+ BrowserStepRequestFromFrontToApi(request),
99816
+ toRequestParams(requestOptions)
99817
+ );
99818
+ return decodeResponse(response, BrowserStepResponseFromApiToFront);
99819
+ }
99820
+ /**
99821
+ * List the signed-in person's resumable browser runs.
99822
+ *
99823
+ * @param requestOptions - Per-call request options.
99824
+ * @returns At most 50 runs, each `ready`, `proposed` or `in_flight`.
99825
+ * @throws {GovernanceRefusedError} `403` `browser_run_person_required` (the
99826
+ * caller is not a signed-in person) or `browser_run_access_denied`; `503`
99827
+ * `workflow_authority_unconfigured`, `browser_authority_unavailable` or
99828
+ * `browser_run_store_unavailable`.
99829
+ *
99830
+ * @remarks
99831
+ * Sent to `GET /api/v1/agent/browser-runs`; snake_case wire fields
99832
+ * (`browser_session`) are mapped to camelCase.
99833
+ *
99834
+ * @example
99835
+ * ```typescript
99836
+ * const runs = await client.browserAgent.listRuns();
99837
+ * for (const run of runs) console.log(run.id, run.phase);
99838
+ * ```
99839
+ */
99840
+ async listRuns(requestOptions) {
99841
+ const response = await this.api.listBrowserAgentRuns(toRequestParams(requestOptions)).catch(rethrowVocabularyRefusal);
99842
+ return decodeResponse(response, (runs) => runs.map(BrowserRunViewFromApiToFront));
99843
+ }
99844
+ /**
99845
+ * Run one operation on a browser run: `start`, `inspect`, `observe`,
99846
+ * `authorize`, `discard`, `receipt`, `resolve` or `cancel`.
99847
+ *
99848
+ * @param runId - The person's browser run id (UUID). A `start` names a new one.
99849
+ * @param request - The operation, discriminated by `operation`.
99850
+ * @param requestOptions - Per-call request options.
99851
+ * @returns The run, with `proposal` set only in the answer to the `observe`
99852
+ * that proposed an action, and `authorized` set only in the answer to the
99853
+ * `authorize` that won the command.
99854
+ * @throws {GovernanceRefusedError} `400` `browser_run_task_invalid` or
99855
+ * `browser_observation_out_of_bounds`; `403`
99856
+ * `browser_run_person_required` or `browser_run_access_denied`; `404`
99857
+ * `browser_run_not_found`; `409` `browser_run_conflict` (a stale revision,
99858
+ * a `start` that names another task or browser session, or a pending
99859
+ * action that needs reconciliation); `502` `llm_provider_failed`; `503`
99860
+ * `workflow_authority_unconfigured`, `browser_authority_unavailable`,
99861
+ * `browser_run_store_unavailable` or `llm_unconfigured`.
99862
+ * @throws {VocabularyRefusedError} `400` or `422` `invalid_request`: that
99863
+ * code is in the vocabulary set too, which the SDK reads first.
99864
+ * @throws {ApiError} `423` if the tenant's emergency stop is engaged (no
99865
+ * `code`); `503` without a `code` if the emergency stop could not be read.
99866
+ *
99867
+ * @remarks
99868
+ * Sent to `POST /api/v1/agent/browser-runs/{run_id}`, snake_case on the
99869
+ * wire (`browser_session`, the observation's `dom_snapshot`). The grant is
99870
+ * one-time: the run keeps the action's name and intent, never its
99871
+ * arguments, so read `proposal.action` from the `observe` answer.
99872
+ *
99873
+ * @example
99874
+ * ```typescript
99875
+ * let run = await client.browserAgent.operateRun(runId, {
99876
+ * operation: 'start',
99877
+ * task: 'Find the pricing page',
99878
+ * browserSession: sessionId,
99879
+ * });
99880
+ * run = await client.browserAgent.operateRun(runId, {
99881
+ * operation: 'observe',
99882
+ * revision: run.revision,
99883
+ * observation: { task: run.task, url, domSnapshot },
99884
+ * });
99885
+ * if (run.proposal !== null) {
99886
+ * const granted = await client.browserAgent.operateRun(runId, {
99887
+ * operation: 'authorize',
99888
+ * revision: run.revision,
99889
+ * command: run.proposal.id,
99890
+ * });
99891
+ * console.log(granted.authorized);
99892
+ * }
99893
+ * ```
99894
+ */
99895
+ async operateRun(runId, request, requestOptions) {
99896
+ const response = await this.api.browserAgentRun(
99897
+ runId,
99898
+ BrowserRunRequestFromFrontToApi(request),
99899
+ toRequestParams(requestOptions)
99900
+ ).catch(rethrowVocabularyRefusal);
99901
+ return decodeResponse(response, BrowserRunResponseFromApiToFront);
99902
+ }
99903
+ };
99904
+
98532
99905
  // src/normalizers/platform.ts
98533
99906
  function CreateBackupRequestFromFrontToApi(model) {
98534
99907
  const out = {
@@ -103085,6 +104458,8 @@ var ReasoningLayerClient = class {
103085
104458
  platform;
103086
104459
  /** Text editing with the engine's text model: proofread and rewrite. */
103087
104460
  text;
104461
+ /** The browser agent: planning steps and the browser runs the engine keeps for a person. */
104462
+ browserAgent;
103088
104463
  /**
103089
104464
  * Runtime native (WASM) plugins — register, list, enable, disable, delete.
103090
104465
  * Restricted to the platform provisioning identity.
@@ -103517,6 +104892,7 @@ var ReasoningLayerClient = class {
103517
104892
  encodePathParams(new Skills(generatedHttp))
103518
104893
  );
103519
104894
  this.text = new TextClient(encodePathParams(new Text(generatedHttp)));
104895
+ this.browserAgent = new BrowserAgentClient(encodePathParams(new Agent(generatedHttp)));
103520
104896
  this.plugins = new PluginsClient(encodePathParams(new Plugins(generatedHttp)));
103521
104897
  this.memory = new MemoryClient(encodePathParams(new Memory(generatedHttp)));
103522
104898
  }
@@ -103868,6 +105244,9 @@ var skill_scripts_exports = {};
103868
105244
  // src/types/text-editing.ts
103869
105245
  var text_editing_exports = {};
103870
105246
 
105247
+ // src/types/browser-agent.ts
105248
+ var browser_agent_exports = {};
105249
+
103871
105250
  // src/types/frame-authoring.ts
103872
105251
  var frame_authoring_exports = {};
103873
105252
 
@@ -106691,6 +108070,6 @@ var BrowserPhoneRehearsal = class {
106691
108070
  }
106692
108071
  };
106693
108072
 
106694
- export { ANY_ROLE, AUDIT_CAUSAL_REQUEST_HEADERS, AUDIT_RESPONSE_HEADERS, action_reviews_exports as ActionReviews, actions_exports as Actions, admin_exports as Admin, agent_instructions_exports as AgentInstructions, agui_exports as Agui, analysis_exports as Analysis, anonymization_exports as Anonymization, ApiError, app_actions_exports as AppActions, argumentation_exports as Argumentation, audit_exports as Audit, AuthenticationError, authz_exports as Authz, BadRequestError, batch_exports as Batch, boundary_exports as Boundary, BoundaryClient, BrowserPhoneRehearsal, BrowserSpeechAudio, BrowserSpeechOutput, BrowserSpeechSession, BrowserSpeechTranscription, BulkRefusedError, cdl_exports as CDL, causal_exports as Causal, channels_exports as Channels, chase_exports as Chase, cognitive_exports as Cognitive, coherence_exports as Coherence, collections_exports as Collections, communities_exports as Communities, compliance_exports as Compliance, compliance_markings_exports as ComplianceMarkings, conformal_exports as Conformal, conformance_exports as Conformance, connectors_exports as Connectors, Constraint, ConstraintViolationError, constraints_exports as Constraints, control_exports as Control, conversation_exports as Conversation, corpus_exports as Corpus, cron_exports as Cron, dl_exports as DL, DeadlineExceededError, demo_exports as Demo, DerivedFactWriteError, discovery_exports as Discovery, document_check_exports as DocumentCheck, documents_exports as Documents, embeddings_exports as Embeddings, engine_exports as Engine, execution_exports as Execution, extract_exports as Extract, feasibility_exports as Feasibility, Flow, flow_networks_exports as FlowNetworks, ForbiddenError, forecast_exports as Forecast, frame_authoring_exports as FrameAuthoring, functions_exports as Functions, fuzzy_exports as Fuzzy, FuzzyShape, gateway_sessions_exports as GatewaySessions, GatewaySessionsClient, generation_exports as Generation, Geometry, GoneError, governance_exports as Governance, GovernanceClient, GovernanceRefusedError, guardrail_exports as Guardrail, health_exports as Health, homoiconic_exports as Homoiconic, hypotheses_exports as Hypotheses, ilp_exports as ILP, IdempotencyKeyRequiredError, IdempotencyKeyReusedError, image_extraction_exports as ImageExtraction, InboundWebhooksClient, inbox_exports as Inbox, inference_exports as Inference, ingestion_exports as Ingestion, IngestionBatchSession, IngestionFailedError, IngestionQueueUnavailableError, IngestionSession, IngestionSessionHandle, InternalServerError, LP, ltn_exports as LTN, live_docs_exports as LiveDocs, marketplace_exports as Marketplace, memory_exports as Memory, metrics_exports as Metrics, MutationOutcomeUnconfirmedError, NamedConstraintViolationError, namespaces_exports as Namespaces, NetworkError, neuro_symbolic_exports as NeuroSymbolic, NotFoundError, ontology_exports as Ontology, ontology_alignment_exports as OntologyAlignment, ontology_bridge_exports as OntologyBridge, ontology_export_exports as OntologyExport, ontology_facade_exports as OntologyFacade, operations_exports as Operations, optimize_exports as Optimize, osf_diff_exports as OsfDiff, osfql_exports as Osfql, OsfqlError, oversight_exports as Oversight, pairing_exports as Pairing, PhoneClient, plain_values_exports as PlainValues, platform_exports as Platform, plugins_exports as Plugins, PreconditionFailedError, PreconditionRequiredError, preferences_exports as Preferences, proof_engine_exports as ProofEngine, property_graph_exports as PropertyGraph, query_exports as Query, RateLimitError, reasoning_exports as Reasoning, ReasoningLayerClient, ReasoningLayerError, research_exports as Research, ResponseShapeError, reviews_exports as Reviews, reward_exports as Reward, row_exports as Row, RuleTermWriteError, SDK_VERSION, SPEECH_AUDIO_WORKLET_SOURCE, sat_exports as Sat, scenarios_exports as Scenarios, scheduling_exports as Scheduling, ServiceUnavailableError, settings_exports as Settings, SettingsClient, skill_scripts_exports as SkillScripts, smt_exports as Smt, snapshots_exports as Snapshots, solver_exports as Solver, SortBuilder, sorts_exports as Sorts, source_observations_exports as SourceObservations, sources_exports as Sources, spaces_exports as Spaces, sparql_exports as Sparql, speakers_exports as Speakers, speech_exports as Speech, SpeechSessionConnection, SpeechTranscriptionConnection, statistical_exports as Statistical, streaming_exports as Streaming, subscriptions_exports as Subscriptions, synthetic_exports as Synthetic, temporal_exports as Temporal, TenantDeletedError, terms_exports as Terms, text_editing_exports as TextEditing, thomas_exports as Thomas, TimeoutError, ui_exports as UI, USER_DATA_FIELDS, UrlIngestStoreFailedError, utilities_exports as Utilities, ValidationError, Value, values_exports as Values, verification_exports as Verification, vision_exports as Vision, visualization_exports as Visualization, vocabulary_exports as Vocabulary, VocabularyRefusedError, WebSocketClient, WebSocketConnection, webhook_actions_exports as WebhookActions, workflows_exports as Workflows, WorkflowsClient, aggregate, allen, bind, causalRequestHeaders, collect, constrained, createApiError, decodeConversationMessage, decodeSpeechPcmFrame, discriminateFeatureValue, errorBodyCode, errorBodyComponent, featureValueToInput, functionRefusalOf, governanceRefusalOfBody, guard, isConstrainedPlainVar, isPsiTermInput, isSortRefFeatureValue, isSortRefSelectProps, isTaggedValueDto, isUuid, not, osfqlContainmentRefusalOf, paginateByOffset, paginateByPage, psi, readAuditHeaders, readCausalRefusal, ruleRefusalOf, sealPreimage, sortDeleteRefusalOf, speechTextSegments, termRefusalOf, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue, validateWorkflowOnceRequest, vocabularyRefusalOfBody, workflowEventRunId };
108073
+ export { ANY_ROLE, AUDIT_CAUSAL_REQUEST_HEADERS, AUDIT_RESPONSE_HEADERS, action_reviews_exports as ActionReviews, actions_exports as Actions, admin_exports as Admin, agent_instructions_exports as AgentInstructions, agui_exports as Agui, analysis_exports as Analysis, anonymization_exports as Anonymization, ApiError, app_actions_exports as AppActions, argumentation_exports as Argumentation, audit_exports as Audit, AuthenticationError, authz_exports as Authz, BadRequestError, batch_exports as Batch, boundary_exports as Boundary, BoundaryClient, browser_agent_exports as BrowserAgent, BrowserPhoneRehearsal, BrowserSpeechAudio, BrowserSpeechOutput, BrowserSpeechSession, BrowserSpeechTranscription, BulkRefusedError, cdl_exports as CDL, causal_exports as Causal, channels_exports as Channels, chase_exports as Chase, cognitive_exports as Cognitive, coherence_exports as Coherence, collections_exports as Collections, communities_exports as Communities, compliance_exports as Compliance, compliance_markings_exports as ComplianceMarkings, conformal_exports as Conformal, conformance_exports as Conformance, connectors_exports as Connectors, Constraint, ConstraintViolationError, constraints_exports as Constraints, control_exports as Control, conversation_exports as Conversation, corpus_exports as Corpus, cron_exports as Cron, dl_exports as DL, DeadlineExceededError, demo_exports as Demo, DerivedFactWriteError, discovery_exports as Discovery, document_check_exports as DocumentCheck, documents_exports as Documents, embeddings_exports as Embeddings, engine_exports as Engine, execution_exports as Execution, extract_exports as Extract, feasibility_exports as Feasibility, Flow, flow_networks_exports as FlowNetworks, ForbiddenError, forecast_exports as Forecast, frame_authoring_exports as FrameAuthoring, functions_exports as Functions, fuzzy_exports as Fuzzy, FuzzyShape, gateway_sessions_exports as GatewaySessions, GatewaySessionsClient, generation_exports as Generation, Geometry, GoneError, governance_exports as Governance, GovernanceClient, GovernanceRefusedError, guardrail_exports as Guardrail, health_exports as Health, homoiconic_exports as Homoiconic, hypotheses_exports as Hypotheses, ilp_exports as ILP, IdempotencyKeyRequiredError, IdempotencyKeyReusedError, image_extraction_exports as ImageExtraction, InboundWebhooksClient, inbox_exports as Inbox, inference_exports as Inference, ingestion_exports as Ingestion, IngestionBatchSession, IngestionFailedError, IngestionQueueUnavailableError, IngestionSession, IngestionSessionHandle, InternalServerError, LP, ltn_exports as LTN, live_docs_exports as LiveDocs, marketplace_exports as Marketplace, memory_exports as Memory, metrics_exports as Metrics, MutationOutcomeUnconfirmedError, NamedConstraintViolationError, namespaces_exports as Namespaces, NetworkError, neuro_symbolic_exports as NeuroSymbolic, NotFoundError, ontology_exports as Ontology, ontology_alignment_exports as OntologyAlignment, ontology_bridge_exports as OntologyBridge, ontology_export_exports as OntologyExport, ontology_facade_exports as OntologyFacade, operations_exports as Operations, optimize_exports as Optimize, osf_diff_exports as OsfDiff, osfql_exports as Osfql, OsfqlError, oversight_exports as Oversight, pairing_exports as Pairing, PhoneClient, plain_values_exports as PlainValues, platform_exports as Platform, plugins_exports as Plugins, PreconditionFailedError, PreconditionRequiredError, preferences_exports as Preferences, proof_engine_exports as ProofEngine, property_graph_exports as PropertyGraph, query_exports as Query, RateLimitError, reasoning_exports as Reasoning, ReasoningLayerClient, ReasoningLayerError, research_exports as Research, ResponseShapeError, reviews_exports as Reviews, reward_exports as Reward, row_exports as Row, RuleTermWriteError, SDK_VERSION, SPEECH_AUDIO_WORKLET_SOURCE, sat_exports as Sat, scenarios_exports as Scenarios, scheduling_exports as Scheduling, ServiceUnavailableError, settings_exports as Settings, SettingsClient, skill_scripts_exports as SkillScripts, smt_exports as Smt, snapshots_exports as Snapshots, solver_exports as Solver, SortBuilder, sorts_exports as Sorts, source_observations_exports as SourceObservations, sources_exports as Sources, spaces_exports as Spaces, sparql_exports as Sparql, speakers_exports as Speakers, speech_exports as Speech, SpeechSessionConnection, SpeechTranscriptionConnection, statistical_exports as Statistical, streaming_exports as Streaming, subscriptions_exports as Subscriptions, synthetic_exports as Synthetic, temporal_exports as Temporal, TenantDeletedError, terms_exports as Terms, text_editing_exports as TextEditing, thomas_exports as Thomas, TimeoutError, ui_exports as UI, USER_DATA_FIELDS, UrlIngestStoreFailedError, utilities_exports as Utilities, ValidationError, Value, values_exports as Values, verification_exports as Verification, vision_exports as Vision, visualization_exports as Visualization, vocabulary_exports as Vocabulary, VocabularyRefusedError, WebSocketClient, WebSocketConnection, webhook_actions_exports as WebhookActions, workflows_exports as Workflows, WorkflowsClient, aggregate, allen, bind, causalRequestHeaders, collect, constrained, createApiError, decodeConversationMessage, decodeSpeechPcmFrame, discriminateFeatureValue, errorBodyCode, errorBodyComponent, featureValueToInput, functionRefusalOf, governanceRefusalOfBody, guard, isConstrainedPlainVar, isPsiTermInput, isSortRefFeatureValue, isSortRefSelectProps, isTaggedValueDto, isUuid, not, osfqlContainmentRefusalOf, paginateByOffset, paginateByPage, psi, readAuditHeaders, readCausalRefusal, ruleRefusalOf, sealPreimage, sortDeleteRefusalOf, speechTextSegments, termRefusalOf, toTaggedFeatures, toTaggedValue, toTermInputDto, toUntaggedFeatures, toUntaggedValue, validateWorkflowOnceRequest, vocabularyRefusalOfBody, workflowEventRunId };
106695
108074
  //# sourceMappingURL=index.js.map
106696
108075
  //# sourceMappingURL=index.js.map