@semiont/core 0.5.26 → 0.5.28
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/{chunk-FMFOBVTE.js → chunk-CUPZGI7I.js} +8 -3
- package/dist/chunk-CUPZGI7I.js.map +1 -0
- package/dist/{chunk-XQTWEBJ5.js → chunk-JWTQJVKM.js} +35 -27
- package/dist/chunk-JWTQJVKM.js.map +1 -0
- package/dist/{chunk-I3ZOWCTH.js → chunk-PPUO5IPX.js} +6 -5
- package/dist/chunk-PPUO5IPX.js.map +1 -0
- package/dist/chunk-YLJ4XMA6.js +33 -0
- package/dist/chunk-YLJ4XMA6.js.map +1 -0
- package/dist/config/node-config-loader.d.ts +2 -2
- package/dist/config/node-config-loader.js +2 -1
- package/dist/config/node-config-loader.js.map +1 -1
- package/dist/index.d.ts +434 -117
- package/dist/index.js +33 -14
- package/dist/index.js.map +1 -1
- package/dist/openapi.d.ts +716 -0
- package/dist/openapi.js +46283 -0
- package/dist/openapi.js.map +1 -0
- package/dist/testing/axioms.js +3 -2
- package/dist/testing/axioms.js.map +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +3 -2
- package/package.json +12 -6
- package/dist/chunk-FMFOBVTE.js.map +0 -1
- package/dist/chunk-I3ZOWCTH.js.map +0 -1
- package/dist/chunk-XQTWEBJ5.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1353,12 +1353,14 @@ interface paths {
|
|
|
1353
1353
|
};
|
|
1354
1354
|
};
|
|
1355
1355
|
responses: {
|
|
1356
|
-
/** @description Event accepted and published
|
|
1356
|
+
/** @description Event accepted and published. The body reports how many subscribers the target subject had at dispatch; zero means the signal reached nobody. */
|
|
1357
1357
|
202: {
|
|
1358
1358
|
headers: {
|
|
1359
1359
|
[name: string]: unknown;
|
|
1360
1360
|
};
|
|
1361
|
-
content
|
|
1361
|
+
content: {
|
|
1362
|
+
"application/json": components["schemas"]["BusEmitAccepted"];
|
|
1363
|
+
};
|
|
1362
1364
|
};
|
|
1363
1365
|
/** @description Missing/invalid channel, payload, or scope; or payload failed schema validation for the channel */
|
|
1364
1366
|
400: {
|
|
@@ -1958,9 +1960,28 @@ interface components {
|
|
|
1958
1960
|
updatedAt: string;
|
|
1959
1961
|
}[];
|
|
1960
1962
|
};
|
|
1961
|
-
/** @description Web Annotation / W3C PROV Agent. Discriminated by @type — Person, Organization, or Software
|
|
1962
|
-
Agent:
|
|
1963
|
-
|
|
1963
|
+
/** @description Web Annotation / W3C PROV Agent. Discriminated by @type — Person, Organization, or Software (named member schemas: AgentPerson, AgentOrganization, AgentSoftware). Software peers are first-class participants, not a sub-class of Person. */
|
|
1964
|
+
Agent: components["schemas"]["AgentPerson"] | components["schemas"]["AgentOrganization"] | components["schemas"]["AgentSoftware"];
|
|
1965
|
+
/** @description An organization — the Organization branch of Agent. */
|
|
1966
|
+
AgentOrganization: {
|
|
1967
|
+
/**
|
|
1968
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1969
|
+
* @enum {string}
|
|
1970
|
+
*/
|
|
1971
|
+
"@type": "Organization";
|
|
1972
|
+
/** Format: uri */
|
|
1973
|
+
"@id"?: string;
|
|
1974
|
+
name: string;
|
|
1975
|
+
homepage?: string;
|
|
1976
|
+
} & {
|
|
1977
|
+
[key: string]: unknown;
|
|
1978
|
+
};
|
|
1979
|
+
/** @description A human participant — the Person branch of Agent. */
|
|
1980
|
+
AgentPerson: {
|
|
1981
|
+
/**
|
|
1982
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1983
|
+
* @enum {string}
|
|
1984
|
+
*/
|
|
1964
1985
|
"@type": "Person";
|
|
1965
1986
|
/**
|
|
1966
1987
|
* Format: uri
|
|
@@ -1975,17 +1996,13 @@ interface components {
|
|
|
1975
1996
|
homepage?: string;
|
|
1976
1997
|
} & {
|
|
1977
1998
|
[key: string]: unknown;
|
|
1978
|
-
}
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
/**
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
} & {
|
|
1986
|
-
[key: string]: unknown;
|
|
1987
|
-
}) | ({
|
|
1988
|
-
/** @constant */
|
|
1999
|
+
};
|
|
2000
|
+
/** @description A software peer (an inference model acting as a first-class participant) — the Software branch of Agent. Carries structured provider + model. */
|
|
2001
|
+
AgentSoftware: {
|
|
2002
|
+
/**
|
|
2003
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2004
|
+
* @enum {string}
|
|
2005
|
+
*/
|
|
1989
2006
|
"@type": "Software";
|
|
1990
2007
|
/**
|
|
1991
2008
|
* Format: uri
|
|
@@ -2004,7 +2021,7 @@ interface components {
|
|
|
2004
2021
|
};
|
|
2005
2022
|
} & {
|
|
2006
2023
|
[key: string]: unknown;
|
|
2007
|
-
}
|
|
2024
|
+
};
|
|
2008
2025
|
Annotation: {
|
|
2009
2026
|
/**
|
|
2010
2027
|
* @description W3C Web Annotation JSON-LD context
|
|
@@ -2039,7 +2056,7 @@ interface components {
|
|
|
2039
2056
|
/** @description SHA-256 of resource content at annotation time */
|
|
2040
2057
|
contentChecksum?: string;
|
|
2041
2058
|
};
|
|
2042
|
-
/** @description
|
|
2059
|
+
/** @description An annotation's body: a TextualBody carries text the annotation states (entity tags, descriptions, comments), a SpecificResource points at what it links to. Tell them apart by `type`, which is required on both and single-valued — a consumer never has to probe for which fields happen to be present. */
|
|
2043
2060
|
AnnotationBody: components["schemas"]["TextualBody"] | components["schemas"]["SpecificResource"];
|
|
2044
2061
|
/** @description Payload for mark:body-updated domain event */
|
|
2045
2062
|
AnnotationBodyUpdatedPayload: {
|
|
@@ -2082,9 +2099,10 @@ interface components {
|
|
|
2082
2099
|
refreshToken: string;
|
|
2083
2100
|
isNewUser: boolean;
|
|
2084
2101
|
};
|
|
2085
|
-
/** @description Emitted when an annotation receives focus for beckoning */
|
|
2102
|
+
/** @description Emitted when an annotation receives focus for beckoning. resourceId is a guard, not navigation: it names the resource this focus applies to, and a viewer currently showing a different resource ignores the event — a deliberate ignore rather than a silent no-op. Focus never moves the viewer; driving the Browser to a resource is browse:resource-open's job. */
|
|
2086
2103
|
BeckonFocusEvent: {
|
|
2087
2104
|
annotationId?: string;
|
|
2105
|
+
/** @description Guard: the resource this focus applies to. A viewer showing a different resource ignores the event. Never causes navigation. */
|
|
2088
2106
|
resourceId?: string;
|
|
2089
2107
|
};
|
|
2090
2108
|
/** @description Emitted when an annotation is hovered over for beckoning */
|
|
@@ -2210,10 +2228,9 @@ interface components {
|
|
|
2210
2228
|
correlationId: string;
|
|
2211
2229
|
response: components["schemas"]["GetAnnotationsResponse"];
|
|
2212
2230
|
};
|
|
2213
|
-
/** @description
|
|
2231
|
+
/** @description An annotation was clicked — open it: the viewer selects its entry in the annotations panel and relays a focus signal to scroll to it. The annotation id is the whole address; it identifies exactly one annotation on exactly one resource, so no resource field is carried and none is needed to scope the event. Motivation is NOT on the wire either: the viewer derives it from the annotation the id names, so the wire states the fact once. A viewer that has not loaded that annotation finds nothing and does nothing. Emitted locally by every clickable annotation surface, and over the wire by a driver opening an annotation on another participant's screen. */
|
|
2214
2232
|
BrowseClickEvent: {
|
|
2215
2233
|
annotationId: string;
|
|
2216
|
-
motivation: components["schemas"]["Motivation"];
|
|
2217
2234
|
};
|
|
2218
2235
|
/** @description Request to browse a directory listing */
|
|
2219
2236
|
BrowseDirectoryRequest: {
|
|
@@ -2281,8 +2298,12 @@ interface components {
|
|
|
2281
2298
|
BrowsePanelToggleEvent: {
|
|
2282
2299
|
panel: string;
|
|
2283
2300
|
};
|
|
2284
|
-
/** @description
|
|
2285
|
-
|
|
2301
|
+
/** @description Domain intent to open a resource in the viewer (GUIDED-TOUR D1/D2): emitted locally by in-app link handlers and remotely by the launcher's tour verbs; the viewer translates it to host routing (nav:push). Deliberately not named 'navigate' — that word and the nav:* prefix belong to the host-local framework layer. */
|
|
2302
|
+
BrowseResourceOpenEvent: {
|
|
2303
|
+
resourceId: string;
|
|
2304
|
+
};
|
|
2305
|
+
/** @description REPORT that a resource has loaded in a viewer — emitted on arrival by ANY means: a followed cue, an in-app link, the back button, a typed URL (GUIDED-TOUR D6). Deliberately distinct from the imperative browse:resource-open: drive and report never share a channel, or the driver hears its own commands and one viewer's arrival steers another's page. */
|
|
2306
|
+
BrowseResourceViewedEvent: {
|
|
2286
2307
|
resourceId: string;
|
|
2287
2308
|
};
|
|
2288
2309
|
/** @description Request to browse annotations that reference a resource */
|
|
@@ -2333,7 +2354,7 @@ interface components {
|
|
|
2333
2354
|
/** @description A resource's stored extraction outcome — the coordinate map with its provenance, or a named decline — or null when none has been derived. Null is the common case and not an error: a native text layer is read in the browser, and a media type with no extractor never produces one. */
|
|
2334
2355
|
BrowseAnchoredTextResult: {
|
|
2335
2356
|
correlationId: string;
|
|
2336
|
-
response: components["schemas"]["ExtractionOutcome"] | null;
|
|
2357
|
+
response: Omit<components["schemas"]["ExtractionOutcome"], "kind"> | null;
|
|
2337
2358
|
};
|
|
2338
2359
|
/** @description Request to browse a single resource */
|
|
2339
2360
|
BrowseResourceRequest: {
|
|
@@ -2373,6 +2394,11 @@ interface components {
|
|
|
2373
2394
|
correlationId: string;
|
|
2374
2395
|
response: components["schemas"]["GetTagSchemasResponse"];
|
|
2375
2396
|
};
|
|
2397
|
+
/** @description Result of publishing one event. `subscribers` is the number of observers attached to the target subject at dispatch — the GLOBAL subject for an unscoped emit, the scoped one when `scope` is set. Zero means the signal reached nobody: /bus/subscribe enforces no channel allowlist and the emit handler publishes unconditionally, so a client can emit a channel no participant subscribes to and otherwise receive a clean 202 with no way to tell. Deliberately NOT named `delivered`: this is the count at dispatch, and a subscriber may still drop the frame downstream, so the field is named after what the server can actually observe. */
|
|
2398
|
+
BusEmitAccepted: {
|
|
2399
|
+
/** @description Observers on the target subject when the event was dispatched. */
|
|
2400
|
+
subscribers: number;
|
|
2401
|
+
};
|
|
2376
2402
|
/** @description Emit an event on the Semiont bus. Channel names come from bus-protocol.ts; payload shape is validated against the channel's registered schema (CHANNEL_SCHEMAS). An optional scope routes resource-scoped broadcasts (e.g. mark:added, job:complete) to per-resource subscribers via eventBus.scope(scope); leave it unset for unscoped/global events. */
|
|
2377
2403
|
BusEmitRequest: {
|
|
2378
2404
|
/** @description Channel name from bus-protocol.ts EventMap */
|
|
@@ -2412,6 +2438,8 @@ interface components {
|
|
|
2412
2438
|
agent: components["schemas"]["Agent"];
|
|
2413
2439
|
/** @description Job types this agent is declared to serve (from the KB's workers.* config sections). Absent for Persons and for agents declared only under actor roles. */
|
|
2414
2440
|
servesJobTypes?: components["schemas"]["JobType"][];
|
|
2441
|
+
/** @description Discovered context/output ceilings for this agent's model; absent when discovery is currently unavailable. */
|
|
2442
|
+
limits?: components["schemas"]["InferenceLimits"];
|
|
2415
2443
|
};
|
|
2416
2444
|
/** @description Error response for failed bus commands. Replaces native Error objects on the EventBus so payloads are serializable and OpenAPI-typed. */
|
|
2417
2445
|
CommandError: {
|
|
@@ -2480,7 +2508,7 @@ interface components {
|
|
|
2480
2508
|
/** @description Optional body. Omit for annotations whose motivation alone is meaningful (highlighting) or whose user-supplied content is empty. Shape matches Annotation.body. */
|
|
2481
2509
|
body?: components["schemas"]["AnnotationBody"] | components["schemas"]["AnnotationBody"][];
|
|
2482
2510
|
};
|
|
2483
|
-
/** @description Response body for POST /resources (202 Accepted).
|
|
2511
|
+
/** @description Response body for POST /resources (202 Accepted). The route writes content to disk, emits yield:create, and AWAITS the confirmed-write reply — so the returned resourceId is the one Stower minted, and the resource's event is persisted before this response is sent. What remains asynchronous is downstream projection: graph, views and vectors settle after the 202. */
|
|
2484
2512
|
CreateResourceResponse: {
|
|
2485
2513
|
/** @description The id of the newly-created resource. Assigned by Stower when it persists yield:create. */
|
|
2486
2514
|
resourceId: string;
|
|
@@ -2490,7 +2518,10 @@ interface components {
|
|
|
2490
2518
|
message: string;
|
|
2491
2519
|
};
|
|
2492
2520
|
DirEntry: {
|
|
2493
|
-
/**
|
|
2521
|
+
/**
|
|
2522
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2523
|
+
* @enum {string}
|
|
2524
|
+
*/
|
|
2494
2525
|
type: "dir";
|
|
2495
2526
|
/** @description Entry name (basename) */
|
|
2496
2527
|
name: string;
|
|
@@ -2502,6 +2533,7 @@ interface components {
|
|
|
2502
2533
|
*/
|
|
2503
2534
|
mtime: string;
|
|
2504
2535
|
};
|
|
2536
|
+
/** @description One entry in a directory listing: a file, which may carry the resource it was ingested as, or a subdirectory. Tell them apart by `type`, which is required on both and single-valued. */
|
|
2505
2537
|
DirectoryEntry: components["schemas"]["FileEntry"] | components["schemas"]["DirEntry"];
|
|
2506
2538
|
/**
|
|
2507
2539
|
* DiscoveredKB
|
|
@@ -2539,7 +2571,7 @@ interface components {
|
|
|
2539
2571
|
/** @description Every KB the launcher currently manages, local and forwarded */
|
|
2540
2572
|
kbs: components["schemas"]["DiscoveredKB"][];
|
|
2541
2573
|
};
|
|
2542
|
-
/** @description Wire format
|
|
2574
|
+
/** @description Wire format for persisted events delivered over the bus SSE stream (GET /bus/subscribe). Extends StoredEventResponse with optional enrichment fields the EventStore populates from the materialized view at publish time (persistence → view → enrich → notification). Subscribers read the enrichment fields directly to update local caches without an additional fetch. */
|
|
2543
2575
|
EnrichedResourceEvent: components["schemas"]["StoredEventResponse"] & {
|
|
2544
2576
|
/** @description Populated for events that mutate an annotation (mark:added, mark:body-updated, mark:removed). Carries the post-materialization annotation as it exists in the view, so subscribers can update local caches in-place without refetching. Absent for events that don't touch annotations. */
|
|
2545
2577
|
annotation?: components["schemas"]["Annotation"];
|
|
@@ -2569,8 +2601,13 @@ interface components {
|
|
|
2569
2601
|
data: string;
|
|
2570
2602
|
id?: string;
|
|
2571
2603
|
};
|
|
2572
|
-
/** @description
|
|
2573
|
-
|
|
2604
|
+
/** @description A successful extraction: the anchored text plus its provenance (WIRE-UNION-DISCRIMINANTS P5c named this member; PERSIST-ANCHORS D1 made it the stored record). */
|
|
2605
|
+
ExtractedText: components["schemas"]["AnchoredText"] & {
|
|
2606
|
+
/**
|
|
2607
|
+
* @description Discriminant — both ExtractionOutcome members carry `kind`, single-valued (D6: category here, detail in `method`).
|
|
2608
|
+
* @enum {string}
|
|
2609
|
+
*/
|
|
2610
|
+
kind: "extracted";
|
|
2574
2611
|
/**
|
|
2575
2612
|
* @description How the text was extracted.
|
|
2576
2613
|
* @enum {string}
|
|
@@ -2591,15 +2628,33 @@ interface components {
|
|
|
2591
2628
|
};
|
|
2592
2629
|
/** @description 1-indexed pages this extraction could not read — present only for partially covered documents (class C). */
|
|
2593
2630
|
unreadPages?: number[];
|
|
2594
|
-
}
|
|
2631
|
+
} & {
|
|
2632
|
+
/**
|
|
2633
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2634
|
+
* @enum {string}
|
|
2635
|
+
*/
|
|
2636
|
+
kind: "extracted";
|
|
2637
|
+
};
|
|
2638
|
+
/** @description A named decline: extraction ran and yielded nothing, by class. A first-class, cacheable outcome — 'we ran and there was nothing' costs a full recognition pass to discover. */
|
|
2639
|
+
ExtractionDeclined: {
|
|
2640
|
+
/**
|
|
2641
|
+
* @description Discriminant — both ExtractionOutcome members carry `kind`, single-valued (D6: category here, detail in `declined`). (enum property replaced by openapi-typescript)
|
|
2642
|
+
* @enum {string}
|
|
2643
|
+
*/
|
|
2644
|
+
kind: "declined";
|
|
2595
2645
|
/**
|
|
2596
2646
|
* @description Why extraction yielded nothing, by class.
|
|
2597
2647
|
* @enum {string}
|
|
2598
2648
|
*/
|
|
2599
2649
|
declined: "no-text-layer" | "encrypted" | "corrupt" | "too-large";
|
|
2600
2650
|
};
|
|
2651
|
+
/** @description The full outcome of text extraction for one representation — the record the anchored-text store holds and the wire serves (PERSIST-ANCHORS decision D1). Discriminated on `kind` (WIRE-UNION-DISCRIMINANTS P5c/D6): 'extracted' — the anchored text with its provenance; 'declined' — a named decline. ocrConfidence is extraction quality for operators, deliberately not anchor confidence. */
|
|
2652
|
+
ExtractionOutcome: components["schemas"]["ExtractedText"] | components["schemas"]["ExtractionDeclined"];
|
|
2601
2653
|
FileEntry: {
|
|
2602
|
-
/**
|
|
2654
|
+
/**
|
|
2655
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2656
|
+
* @enum {string}
|
|
2657
|
+
*/
|
|
2603
2658
|
type: "file";
|
|
2604
2659
|
/** @description Entry name (basename) */
|
|
2605
2660
|
name: string;
|
|
@@ -2792,6 +2847,35 @@ interface components {
|
|
|
2792
2847
|
/** @description LLM-generated summary of the focal anchor's relationships in the knowledge graph */
|
|
2793
2848
|
inferredRelationshipSummary?: string;
|
|
2794
2849
|
};
|
|
2850
|
+
/** @description Params bag for `job:create` with `jobType: 'generation'` — exactly the shape yield.fromContext(context, options) takes: options + the gathered context. The job's ids are DERIVED from context.focus at the dispatcher (resource focus → focus.resource; annotation focus → focus.sourceResource, with the worker auto-binding to focus.annotation); a caller-supplied referenceId is rejected. Carried inside JobCreateCommand.params; this schema is the generation shape's contract, including its requiredness. */
|
|
2851
|
+
GenerationJobParams: {
|
|
2852
|
+
/** @description Title of the generated resource. */
|
|
2853
|
+
title: string;
|
|
2854
|
+
/** @description Storage URI for the generated resource's content. */
|
|
2855
|
+
storageUri: string;
|
|
2856
|
+
/** @description The gathered context that grounds the generation. Its `focus` names the anchor: the DISPATCHER derives the job's resourceId from it (resource focus → focus.resource; annotation focus → focus.sourceResource, with the worker auto-binding to focus.annotation) and REJECTS a caller-supplied id — the context is authoritative. Under `cite`, the ids its embedding carries are the only valid citation targets. */
|
|
2857
|
+
context: components["schemas"]["GatheredContext"];
|
|
2858
|
+
/** @description Refining instruction, composed with `task` (task = what, prompt = how). */
|
|
2859
|
+
prompt?: string;
|
|
2860
|
+
/** @description Entity-type tags to stamp on the synthesized resource. Used both as a prompt bias for the generation worker and as the `entityTypes` set on the resulting resource. */
|
|
2861
|
+
entityTypes?: string[];
|
|
2862
|
+
/** @description Annotation/resource body locale — language the generated resource is written in (typically the user's UI locale). BCP-47. */
|
|
2863
|
+
language?: string;
|
|
2864
|
+
/** @description Source-resource locale — language of the resource being referenced, used in the prompt so the LLM understands embedded source-context snippets when source ≠ target language. BCP-47. */
|
|
2865
|
+
sourceLanguage?: string;
|
|
2866
|
+
/** @description Sampling temperature forwarded to the model. */
|
|
2867
|
+
temperature?: number;
|
|
2868
|
+
/** @description Output token budget forwarded to the model. Length never determines structure. */
|
|
2869
|
+
maxTokens?: number;
|
|
2870
|
+
/** @description Requested media type of the generated resource's content. Default `text/markdown` at the worker, which validates it against its supported output set and FAILS the job for anything it can't write — not a silent fallback. */
|
|
2871
|
+
outputMediaType?: components["schemas"]["SupportedMediaType"];
|
|
2872
|
+
/** @description What the model is asked to produce — the prompt's framing verb. Canonical values ('resource', 'answer', 'summary') map to the worker's tested framings; any other string is used VERBATIM as the framing instruction (loud degrade: the worker warns, never silently falls back). Unset ⇒ 'resource' (article framing). */
|
|
2873
|
+
task?: string;
|
|
2874
|
+
/** @description How the output is internally segmented — shape for text-bearing media, subordinate to `outputMediaType` (never its peer). Canonical values: 'prose' (flowing paragraphs), 'sections' (titled sections + title), 'chat' (speaker-labeled turns); any other string becomes a freeform "organize as: …" directive (loud degrade). Unset ⇒ NO structure directive at all — the task framing and the model determine shape. */
|
|
2875
|
+
structure?: string;
|
|
2876
|
+
/** @description Ask the model to cite: emit [[<id>]] transport tokens after each claim, using the ids the context embedding provides. The worker validates each id against the embedded context (unknown ids are dropped loudly), strips the tokens from the stored content, and mints W3C linking annotations on the derived resource. */
|
|
2877
|
+
cite?: boolean;
|
|
2878
|
+
};
|
|
2795
2879
|
GetAnnotationHistoryResponse: {
|
|
2796
2880
|
events: components["schemas"]["StoredEventResponse"][];
|
|
2797
2881
|
total: number;
|
|
@@ -2861,8 +2945,55 @@ interface components {
|
|
|
2861
2945
|
database: "connected" | "disconnected" | "unknown";
|
|
2862
2946
|
environment: string;
|
|
2863
2947
|
};
|
|
2948
|
+
/** @description A provider's actual ceilings for a model, discovered from the provider itself (Anthropic Models API; Ollama /api/show) — never hand-maintained constants. Semantics differ by provider shape: Anthropic reports maximum input tokens in contextTokens with a separate output ceiling in maxOutputTokens; Ollama reports the shared input+output window and mirrors it into both fields (there is no separate output ceiling), so maxOutputTokens === contextTokens signals a shared window. */
|
|
2949
|
+
InferenceLimits: {
|
|
2950
|
+
/** @description The context window in tokens. Anthropic: maximum input tokens (output has its own ceiling). Ollama: the shared input+output window. */
|
|
2951
|
+
contextTokens: number;
|
|
2952
|
+
/** @description Maximum output tokens per generation. Equal to contextTokens when the provider has a single shared window. */
|
|
2953
|
+
maxOutputTokens: number;
|
|
2954
|
+
};
|
|
2955
|
+
/** @description An annotation's graph presence. The node IS the annotation, so the full W3C object is required — selectors and body included, which is what lets a client place context annotations without a second fetch. Citations ride here too: an inbound reference is its linking annotation, anchored by an `annotation-of` edge to the resource it lives on and a `cites` edge to the focal resource. */
|
|
2956
|
+
GraphAnnotationNode: {
|
|
2957
|
+
/** @description The AnnotationId — the same value as annotation.id */
|
|
2958
|
+
id: string;
|
|
2959
|
+
/**
|
|
2960
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2961
|
+
* @enum {string}
|
|
2962
|
+
*/
|
|
2963
|
+
type: "annotation";
|
|
2964
|
+
/** @description The annotation's motivation, as a display label */
|
|
2965
|
+
label: string;
|
|
2966
|
+
/** @description Entity types carried by the annotation */
|
|
2967
|
+
entityTypes?: string[];
|
|
2968
|
+
annotation: components["schemas"]["Annotation"];
|
|
2969
|
+
metadata?: {
|
|
2970
|
+
[key: string]: unknown;
|
|
2971
|
+
};
|
|
2972
|
+
};
|
|
2973
|
+
/** @description A resource's presence in the gathered knowledge graph. */
|
|
2974
|
+
GraphResourceNode: {
|
|
2975
|
+
/** @description The resource's ResourceId */
|
|
2976
|
+
id: string;
|
|
2977
|
+
/**
|
|
2978
|
+
* @description discriminator enum property added by openapi-typescript
|
|
2979
|
+
* @enum {string}
|
|
2980
|
+
*/
|
|
2981
|
+
type: "resource";
|
|
2982
|
+
/** @description The resource's display name — its raw id when the resource's view was missing at build time */
|
|
2983
|
+
label: string;
|
|
2984
|
+
/** @description Entity types on the resource */
|
|
2985
|
+
entityTypes?: string[];
|
|
2986
|
+
metadata?: {
|
|
2987
|
+
[key: string]: unknown;
|
|
2988
|
+
};
|
|
2989
|
+
};
|
|
2864
2990
|
/** @description Result of a completed assessment-annotation job. */
|
|
2865
2991
|
JobAssessmentAnnotationResult: {
|
|
2992
|
+
/**
|
|
2993
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
2994
|
+
* @enum {string}
|
|
2995
|
+
*/
|
|
2996
|
+
kind: "assessment-annotation";
|
|
2866
2997
|
assessmentsFound: number;
|
|
2867
2998
|
assessmentsCreated: number;
|
|
2868
2999
|
};
|
|
@@ -2880,6 +3011,11 @@ interface components {
|
|
|
2880
3011
|
};
|
|
2881
3012
|
/** @description Result of a completed comment-annotation job. */
|
|
2882
3013
|
JobCommentAnnotationResult: {
|
|
3014
|
+
/**
|
|
3015
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3016
|
+
* @enum {string}
|
|
3017
|
+
*/
|
|
3018
|
+
kind: "comment-annotation";
|
|
2883
3019
|
commentsFound: number;
|
|
2884
3020
|
commentsCreated: number;
|
|
2885
3021
|
};
|
|
@@ -2907,7 +3043,6 @@ interface components {
|
|
|
2907
3043
|
resultResourceId?: string;
|
|
2908
3044
|
/** @description For generation: URI of annotation that triggered generation */
|
|
2909
3045
|
annotationUri?: string;
|
|
2910
|
-
message?: string;
|
|
2911
3046
|
/** @description Full result object for extensibility */
|
|
2912
3047
|
result?: {
|
|
2913
3048
|
[key: string]: unknown;
|
|
@@ -2919,7 +3054,8 @@ interface components {
|
|
|
2919
3054
|
/** @description Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this. */
|
|
2920
3055
|
_userId?: string;
|
|
2921
3056
|
jobType: components["schemas"]["JobType"];
|
|
2922
|
-
|
|
3057
|
+
/** @description Resource the job operates on. REQUIRED for every jobType EXCEPT 'generation', where it must be ABSENT: the dispatcher derives it from params.context.focus (the context is authoritative) and REJECTS a supplied value via job:create-failed. Both directions are enforced at the dispatcher — this schema cannot express the per-jobType conditionality. */
|
|
3058
|
+
resourceId?: string;
|
|
2923
3059
|
params: {
|
|
2924
3060
|
[key: string]: unknown;
|
|
2925
3061
|
};
|
|
@@ -2944,18 +3080,21 @@ interface components {
|
|
|
2944
3080
|
};
|
|
2945
3081
|
/** @description Result of a job that completed without doing its work because the resource could not be read. Distinct from a failure: nothing went wrong, there was simply no text to work with — an encrypted or damaged PDF, a scan whose text could not be recognized, or a document that yielded nothing. The reasons are the extraction vocabulary the Smelter reports on `smelt:settled`, MINUS `no-extractor`: a media type that can never yield text (a zip, an image) is a bad request rather than a decline, so a worker asked to detect over one throws and the job reports `job:fail`. Everything here is a resource-specific outcome — the same media type would have succeeded on a different document. */
|
|
2946
3082
|
JobDeclinedResult: {
|
|
3083
|
+
/**
|
|
3084
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3085
|
+
* @enum {string}
|
|
3086
|
+
*/
|
|
3087
|
+
kind: "declined";
|
|
2947
3088
|
/**
|
|
2948
3089
|
* @description Discriminant. Always true — a job that did its work reports one of the other result shapes.
|
|
2949
3090
|
* @enum {boolean}
|
|
2950
3091
|
*/
|
|
2951
3092
|
declined: true;
|
|
2952
3093
|
/**
|
|
2953
|
-
* @description Why the resource could not be read.
|
|
3094
|
+
* @description Why the resource could not be read. A CODE, not a sentence: the client owns the wording, so a browser renders it in the user's language and the CLI renders English terminal copy from the same value. The prose `message` this schema used to carry was composed backend-side and was therefore English everywhere (ASSIST-PROGRESS-CONSOLIDATION P5).
|
|
2954
3095
|
* @enum {string}
|
|
2955
3096
|
*/
|
|
2956
3097
|
reason: "no-text-layer" | "encrypted" | "corrupt" | "too-large" | "empty";
|
|
2957
|
-
/** @description Human-readable explanation, suitable for showing to the user. */
|
|
2958
|
-
message: string;
|
|
2959
3098
|
};
|
|
2960
3099
|
/** @description Payload for job:failed domain event */
|
|
2961
3100
|
JobFailedPayload: {
|
|
@@ -2966,71 +3105,170 @@ interface components {
|
|
|
2966
3105
|
error: string;
|
|
2967
3106
|
details?: string;
|
|
2968
3107
|
};
|
|
2969
|
-
/** @description Result of a completed generation job.
|
|
3108
|
+
/** @description Result of a completed generation job. The worker creates the resource first (the yield:create round-trip returns the id), then emits job:complete carrying it — so resourceId is always present on the wire. */
|
|
2970
3109
|
JobGenerationResult: {
|
|
2971
|
-
/**
|
|
2972
|
-
|
|
3110
|
+
/**
|
|
3111
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3112
|
+
* @enum {string}
|
|
3113
|
+
*/
|
|
3114
|
+
kind: "generation";
|
|
3115
|
+
/** @description ID of the generated resource, obtained by the worker from the create round-trip before job:complete is emitted */
|
|
3116
|
+
resourceId: string;
|
|
2973
3117
|
/** @description Name of the generated resource */
|
|
2974
3118
|
resourceName: string;
|
|
3119
|
+
/** @description True when the model stopped at the maxTokens ceiling — the artifact is cut off, not complete. Derived at the producer from the provider's stopReason ('max_tokens' → true); required because the worker always knows (GENERATE-FROM-RESOURCE D6/P3a). */
|
|
3120
|
+
truncated: boolean;
|
|
2975
3121
|
};
|
|
2976
3122
|
/** @description Result of a completed highlight-annotation job. */
|
|
2977
3123
|
JobHighlightAnnotationResult: {
|
|
3124
|
+
/**
|
|
3125
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3126
|
+
* @enum {string}
|
|
3127
|
+
*/
|
|
3128
|
+
kind: "highlight-annotation";
|
|
2978
3129
|
highlightsFound: number;
|
|
2979
3130
|
highlightsCreated: number;
|
|
2980
3131
|
};
|
|
2981
|
-
/** @description Progress report from a running job.
|
|
3132
|
+
/** @description Progress report from a running job. The required field is `percentage`; `message` carries the coded phase and the rest are optional job-shape fields. This is the single progress shape for every job type — annotation workers and generation alike. `stage` and `currentEntityType` were REMOVED (ASSIST-PROGRESS-CONSOLIDATION P5): both were redundant denormalization of `message`. Terminality is signalled on `job:complete` / `job:fail`, not here. The per-flow progress vocabularies (`processedEntityTypes`/`totalEntityTypes` for references, `processedCategories`/`totalCategories`/`currentCategory` for tags) were replaced by one `current`/`processed`/`total` triple (CLEAN-PROGRESS D2): both flows iterate a user-chosen list, so they report the same shape and the client stops guessing which flow it is drawing. */
|
|
2982
3133
|
JobProgress: {
|
|
2983
|
-
/** @description Current processing stage (e.g. 'analyzing', 'creating', 'complete', 'error') */
|
|
2984
|
-
stage: string;
|
|
2985
3134
|
/** @description Completion percentage (0-100) */
|
|
2986
3135
|
percentage: number;
|
|
2987
|
-
/** @description
|
|
2988
|
-
message
|
|
2989
|
-
/** @description Annotation this job is attached to, when applicable. Echoed inside JobProgress (in addition to the outer command envelope) so consumers that only see the inner progress object (e.g. client.yield.
|
|
3136
|
+
/** @description What the job is doing right now, as a code plus typed params; the client renders the sentence. Optional: pure percentage heartbeats carry none, and consumers render nothing message-shaped when it is absent (this is also the whole tolerance story for pre-2026-08 persisted events that carried prose here). */
|
|
3137
|
+
message?: components["schemas"]["JobProgressMessage"];
|
|
3138
|
+
/** @description Annotation this job is attached to, when applicable. Echoed inside JobProgress (in addition to the outer command envelope) so consumers that only see the inner progress object (e.g. client.yield.fromContext's Observable) can still route visual feedback to a specific annotation. */
|
|
2990
3139
|
annotationId?: string;
|
|
2991
|
-
/** @description
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3140
|
+
/** @description What the run is working on right now. `kind` is a CODE the client renders a localized name for; `value` is KB data (an entity type, a tag category) shown verbatim — the same split as `requestParams`. Absent on flows that iterate nothing, such as generation. */
|
|
3141
|
+
current?: {
|
|
3142
|
+
/**
|
|
3143
|
+
* @description What sort of thing `value` is. Adding a variant means adding client copy for it in every locale.
|
|
3144
|
+
* @enum {string}
|
|
3145
|
+
*/
|
|
3146
|
+
kind: "entity-type" | "category";
|
|
3147
|
+
/** @description The item itself, shown verbatim and never translated. */
|
|
3148
|
+
value: string;
|
|
3149
|
+
};
|
|
3150
|
+
/** @description Items completed so far, zero-based — the item in `current` is the one after these. Paired with `total`. */
|
|
3151
|
+
processed?: number;
|
|
3152
|
+
/** @description Items this run will process in all. */
|
|
3153
|
+
total?: number;
|
|
2995
3154
|
/** @description Entities found so far (reference-annotation) */
|
|
2996
3155
|
entitiesFound?: number;
|
|
2997
3156
|
/** @description Annotations emitted so far (reference-annotation) */
|
|
2998
3157
|
entitiesEmitted?: number;
|
|
2999
|
-
/** @description
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3158
|
+
/** @description Per-item results for the items already finished, for the UI's completed log. Generic across flows for the same reason `current` is. */
|
|
3159
|
+
completedItems?: {
|
|
3160
|
+
/** @description The item, shown verbatim. */
|
|
3161
|
+
value: string;
|
|
3162
|
+
/** @description Annotations found for it. */
|
|
3004
3163
|
foundCount: number;
|
|
3005
3164
|
}[];
|
|
3006
|
-
/** @description
|
|
3007
|
-
processedCategories?: number;
|
|
3008
|
-
/** @description Total categories (tag-annotation) */
|
|
3009
|
-
totalCategories?: number;
|
|
3010
|
-
/** @description Category currently being processed (tag-annotation) */
|
|
3011
|
-
currentCategory?: string;
|
|
3012
|
-
/** @description Echoed job parameters for display in the progress UI (e.g. entity types or categories the user asked to detect) */
|
|
3165
|
+
/** @description Echoed job parameters for display in the progress UI. `label` is a CODE, not a sentence — the client owns the wording, same rule as the progress message. `value` is the user's own input (an entity-type list, their instructions) and is deliberately NOT translated: it is their words, not ours. */
|
|
3013
3166
|
requestParams?: {
|
|
3014
|
-
|
|
3167
|
+
/**
|
|
3168
|
+
* @description Which parameter this is. The client renders a localized name for it.
|
|
3169
|
+
* @enum {string}
|
|
3170
|
+
*/
|
|
3171
|
+
label: "entity-types" | "instructions" | "tone" | "density";
|
|
3172
|
+
/** @description The user's own input, shown verbatim. */
|
|
3015
3173
|
value: string;
|
|
3016
3174
|
}[];
|
|
3017
3175
|
};
|
|
3018
|
-
/** @description
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
/**
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3176
|
+
/** @description What a running job is doing right now, as a code plus typed params — never a prose sentence. The producer reports what happened; each client renders it in the user's language (react-ui from its translations, the Go launcher from its English map). One named schema per code, discriminated on `code` (WIRE-UNION-DISCRIMINANTS P5b), so generated clients get typed variants and copy-map completeness is statically checkable. The vocabulary is the census of every onProgress call site in @semiont/jobs (.plans/ASSIST-PROGRESS-CONSOLIDATION.md P1); extending it means adding a named variant here and copy in every client, gated by the locale-completeness check. */
|
|
3177
|
+
JobProgressMessage: components["schemas"]["JobProgressLoading"] | components["schemas"]["JobProgressAnalyzing"] | components["schemas"]["JobProgressAnalyzingTags"] | components["schemas"]["JobProgressGeneratingResource"] | components["schemas"]["JobProgressCreatingResource"] | components["schemas"]["JobProgressCompleteGenerated"] | components["schemas"]["JobProgressDetectingEntities"] | components["schemas"]["JobProgressCreatingAnnotations"] | components["schemas"]["JobProgressCreatingTagAnnotations"] | components["schemas"]["JobProgressCompleteCreated"];
|
|
3178
|
+
/** @description Analyzing the content. */
|
|
3179
|
+
JobProgressAnalyzing: {
|
|
3180
|
+
/**
|
|
3181
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3182
|
+
* @enum {string}
|
|
3183
|
+
*/
|
|
3184
|
+
code: "analyzing";
|
|
3185
|
+
};
|
|
3186
|
+
/** @description Analyzing the content against the tag schema. */
|
|
3187
|
+
JobProgressAnalyzingTags: {
|
|
3188
|
+
/**
|
|
3189
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3190
|
+
* @enum {string}
|
|
3191
|
+
*/
|
|
3192
|
+
code: "analyzing-tags";
|
|
3193
|
+
};
|
|
3194
|
+
/** @description Terminal success summary. */
|
|
3195
|
+
JobProgressCompleteCreated: {
|
|
3196
|
+
/**
|
|
3197
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3198
|
+
* @enum {string}
|
|
3199
|
+
*/
|
|
3200
|
+
code: "complete-created";
|
|
3201
|
+
/** @description How many annotations were created */
|
|
3202
|
+
count: number;
|
|
3203
|
+
/**
|
|
3204
|
+
* @description What kind of annotation was created; clients pluralize/translate
|
|
3205
|
+
* @enum {string}
|
|
3206
|
+
*/
|
|
3207
|
+
kind: "highlight" | "comment" | "assessment" | "reference" | "tag";
|
|
3208
|
+
};
|
|
3209
|
+
/** @description Generation's terminal success. Deliberately generic — the client already holds the title it typed, and the outcome (name + resource link) travels on job:complete, not on progress (GENERATE-FROM-RESOURCE D7/D8). `truncated` qualifies the completion (D6): the same bit `JobGenerationResult.truncated` carries, so the two surfaces cannot drift. */
|
|
3210
|
+
JobProgressCompleteGenerated: {
|
|
3211
|
+
/**
|
|
3212
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3213
|
+
* @enum {string}
|
|
3214
|
+
*/
|
|
3215
|
+
code: "complete-generated";
|
|
3216
|
+
/** @description True when the model stopped at the maxTokens ceiling — the artifact is cut off, not complete. */
|
|
3217
|
+
truncated: boolean;
|
|
3218
|
+
};
|
|
3219
|
+
/** @description Writing detected annotations back to the resource. */
|
|
3220
|
+
JobProgressCreatingAnnotations: {
|
|
3221
|
+
/**
|
|
3222
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3223
|
+
* @enum {string}
|
|
3224
|
+
*/
|
|
3225
|
+
code: "creating-annotations";
|
|
3226
|
+
/** @description How many annotations are being created */
|
|
3227
|
+
count: number;
|
|
3228
|
+
};
|
|
3229
|
+
/** @description Writing the generated resource. */
|
|
3230
|
+
JobProgressCreatingResource: {
|
|
3231
|
+
/**
|
|
3232
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3233
|
+
* @enum {string}
|
|
3234
|
+
*/
|
|
3235
|
+
code: "creating-resource";
|
|
3236
|
+
};
|
|
3237
|
+
/** @description Writing detected tag annotations back to the resource. */
|
|
3238
|
+
JobProgressCreatingTagAnnotations: {
|
|
3239
|
+
/**
|
|
3240
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3241
|
+
* @enum {string}
|
|
3242
|
+
*/
|
|
3243
|
+
code: "creating-tag-annotations";
|
|
3244
|
+
/** @description How many annotations are being created */
|
|
3245
|
+
count: number;
|
|
3246
|
+
};
|
|
3247
|
+
/** @description Entity detection, one entity type at a time. */
|
|
3248
|
+
JobProgressDetectingEntities: {
|
|
3249
|
+
/**
|
|
3250
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3251
|
+
* @enum {string}
|
|
3252
|
+
*/
|
|
3253
|
+
code: "detecting-entities";
|
|
3254
|
+
/** @description Entity type currently being detected */
|
|
3255
|
+
entityType: string;
|
|
3256
|
+
};
|
|
3257
|
+
/** @description The model is generating the resource. */
|
|
3258
|
+
JobProgressGeneratingResource: {
|
|
3259
|
+
/**
|
|
3260
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3261
|
+
* @enum {string}
|
|
3262
|
+
*/
|
|
3263
|
+
code: "generating-resource";
|
|
3264
|
+
};
|
|
3265
|
+
/** @description Loading the resource content. */
|
|
3266
|
+
JobProgressLoading: {
|
|
3267
|
+
/**
|
|
3268
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3269
|
+
* @enum {string}
|
|
3270
|
+
*/
|
|
3271
|
+
code: "loading";
|
|
3034
3272
|
};
|
|
3035
3273
|
/** @description Event indicating a job has been queued */
|
|
3036
3274
|
JobQueuedEvent: {
|
|
@@ -3042,6 +3280,11 @@ interface components {
|
|
|
3042
3280
|
};
|
|
3043
3281
|
/** @description Result of a completed reference-annotation job. */
|
|
3044
3282
|
JobReferenceAnnotationResult: {
|
|
3283
|
+
/**
|
|
3284
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3285
|
+
* @enum {string}
|
|
3286
|
+
*/
|
|
3287
|
+
kind: "reference-annotation";
|
|
3045
3288
|
/** @description Total entities found */
|
|
3046
3289
|
totalFound: number;
|
|
3047
3290
|
/** @description Total annotations emitted */
|
|
@@ -3061,7 +3304,7 @@ interface components {
|
|
|
3061
3304
|
percentage: number;
|
|
3062
3305
|
progress?: components["schemas"]["JobProgress"];
|
|
3063
3306
|
};
|
|
3064
|
-
/** @description Discriminated union of all job result types. */
|
|
3307
|
+
/** @description Discriminated union of all job result types — every member carries a single-valued `kind` (WIRE-UNION-DISCRIMINANTS D1/D2). Consumers switch on `kind`; generated clients get typed variants. */
|
|
3065
3308
|
JobResult: components["schemas"]["JobGenerationResult"] | components["schemas"]["JobReferenceAnnotationResult"] | components["schemas"]["JobHighlightAnnotationResult"] | components["schemas"]["JobAssessmentAnnotationResult"] | components["schemas"]["JobCommentAnnotationResult"] | components["schemas"]["JobTagAnnotationResult"] | components["schemas"]["JobDeclinedResult"];
|
|
3066
3309
|
/** @description Command to start a job */
|
|
3067
3310
|
JobStartCommand: {
|
|
@@ -3097,7 +3340,7 @@ interface components {
|
|
|
3097
3340
|
completedAt?: string;
|
|
3098
3341
|
error?: string;
|
|
3099
3342
|
progress?: unknown;
|
|
3100
|
-
result?:
|
|
3343
|
+
result?: components["schemas"]["JobResult"];
|
|
3101
3344
|
};
|
|
3102
3345
|
/** @description Result of a job status request */
|
|
3103
3346
|
JobStatusResult: {
|
|
@@ -3106,6 +3349,11 @@ interface components {
|
|
|
3106
3349
|
};
|
|
3107
3350
|
/** @description Result of a completed tag-annotation job. */
|
|
3108
3351
|
JobTagAnnotationResult: {
|
|
3352
|
+
/**
|
|
3353
|
+
* @description Discriminant — every JobResult member carries `kind`, single-valued, so a consumer holding only the result can tell what it is (WIRE-UNION-DISCRIMINANTS D1). (enum property replaced by openapi-typescript)
|
|
3354
|
+
* @enum {string}
|
|
3355
|
+
*/
|
|
3356
|
+
kind: "tag-annotation";
|
|
3109
3357
|
tagsFound: number;
|
|
3110
3358
|
tagsCreated: number;
|
|
3111
3359
|
/** @description Count of tags created per category */
|
|
@@ -3120,25 +3368,11 @@ interface components {
|
|
|
3120
3368
|
JobType: "reference-annotation" | "generation" | "highlight-annotation" | "assessment-annotation" | "comment-annotation" | "tag-annotation";
|
|
3121
3369
|
/** @description Knowledge graph gathered for an LLM context — a shared backbone in which resources AND annotations are typed nodes, connected by typed (optionally bidirectional) edges. Flattened views the matcher/generation read (connections, citedBy, siblings) are derived from these nodes/edges. */
|
|
3122
3370
|
KnowledgeGraph: {
|
|
3123
|
-
nodes:
|
|
3124
|
-
/** @description Node identifier — a ResourceId or AnnotationId */
|
|
3125
|
-
id: string;
|
|
3126
|
-
/**
|
|
3127
|
-
* @description Whether this node is a resource or an annotation
|
|
3128
|
-
* @enum {string}
|
|
3129
|
-
*/
|
|
3130
|
-
type: "resource" | "annotation";
|
|
3131
|
-
label: string;
|
|
3132
|
-
/** @description Entity types on the node (resources) or carried by the annotation */
|
|
3133
|
-
entityTypes?: string[];
|
|
3134
|
-
metadata?: {
|
|
3135
|
-
[key: string]: unknown;
|
|
3136
|
-
};
|
|
3137
|
-
}[];
|
|
3371
|
+
nodes: (components["schemas"]["GraphResourceNode"] | components["schemas"]["GraphAnnotationNode"])[];
|
|
3138
3372
|
edges: {
|
|
3139
3373
|
source: string;
|
|
3140
3374
|
target: string;
|
|
3141
|
-
/** @description Edge kind (
|
|
3375
|
+
/** @description Edge kind: `annotation-of` (an annotation → the resource it lives on), `cites` (a citing linking annotation → the focal resource), or a peer connection's own relationshipType (free-form; `link` when unnamed) */
|
|
3142
3376
|
type: string;
|
|
3143
3377
|
/** @description Whether the connection goes both ways */
|
|
3144
3378
|
bidirectional?: boolean;
|
|
@@ -3152,6 +3386,11 @@ interface components {
|
|
|
3152
3386
|
total: number;
|
|
3153
3387
|
offset: number;
|
|
3154
3388
|
limit: number;
|
|
3389
|
+
/**
|
|
3390
|
+
* @description What kind of answer this is: 'lexical' — the resources matched the query text; 'semantic' — no lexical match existed, and these resources discuss the query per the vector index (SEMANTIC-FALLBACK). Required so every producer labels its answer; a UI can render semantic results as a different kind of page ('no title matches, but these documents discuss it').
|
|
3391
|
+
* @enum {string}
|
|
3392
|
+
*/
|
|
3393
|
+
matchKind: "lexical" | "semantic";
|
|
3155
3394
|
};
|
|
3156
3395
|
/** @description Bus command to archive a resource and optionally remove its file. */
|
|
3157
3396
|
MarkArchiveCommand: {
|
|
@@ -3529,6 +3768,8 @@ interface components {
|
|
|
3529
3768
|
text: string;
|
|
3530
3769
|
/** @description Source resource ID */
|
|
3531
3770
|
resourceId: string;
|
|
3771
|
+
/** @description The source resource's display name, resolved from its view at gather time. Required: a match card must name its source, and corpus matches routinely come from outside the graph neighborhood, so there is no node to borrow a name from. A match whose source no longer resolves to a view is dropped by the producer rather than served nameless. */
|
|
3772
|
+
resourceName: string;
|
|
3532
3773
|
/** @description Source annotation ID, if the match is from an annotation */
|
|
3533
3774
|
annotationId?: string;
|
|
3534
3775
|
/** @description Cosine similarity score (0-1) */
|
|
@@ -3538,6 +3779,20 @@ interface components {
|
|
|
3538
3779
|
/** @description True when this passage's text was recognized from pixels (OCR of a scanned page) rather than read from the document. Absent means read directly — the common case — so the flag is only present where it changes how the text should be trusted. It travels with the passage because a consumer receives the chunk with no document attached and cannot recompute how the text was obtained. */
|
|
3539
3780
|
machineRead?: boolean;
|
|
3540
3781
|
};
|
|
3782
|
+
/** @description A participant opened a live connection to this KB — an SSE stream on /bus/subscribe. Presence is CONNECTION lifecycle, not login: a token can be minted and sit unused, so what this reports is that someone is WATCHING. One person with two tabs produces two of these, which is why connectionId is required — the DID alone cannot tell two connections apart, and a consumer that counts DIDs will undercount viewers. */
|
|
3783
|
+
SessionJoinedEvent: {
|
|
3784
|
+
/** @description DID of the authenticated principal on that connection. A person or a software agent — the bus does not distinguish. */
|
|
3785
|
+
participant: string;
|
|
3786
|
+
/** @description Identifies this connection for its lifetime. The matching session:left carries the same value. */
|
|
3787
|
+
connectionId: string;
|
|
3788
|
+
};
|
|
3789
|
+
/** @description A participant's live connection to this KB ended — the SSE stream aborted. Carries the same connectionId as the session:joined that opened it, so a consumer tracking who is present can retire the right connection rather than assuming one per participant. */
|
|
3790
|
+
SessionLeftEvent: {
|
|
3791
|
+
/** @description DID of the authenticated principal on that connection. */
|
|
3792
|
+
participant: string;
|
|
3793
|
+
/** @description The connectionId announced by the matching session:joined. */
|
|
3794
|
+
connectionId: string;
|
|
3795
|
+
};
|
|
3541
3796
|
/** @description Emitted when the hover delay setting changes */
|
|
3542
3797
|
SettingsHoverDelayChangedEvent: {
|
|
3543
3798
|
hoverDelayMs: number;
|
|
@@ -3552,7 +3807,10 @@ interface components {
|
|
|
3552
3807
|
theme: "light" | "dark" | "system";
|
|
3553
3808
|
};
|
|
3554
3809
|
SpecificResource: {
|
|
3555
|
-
/**
|
|
3810
|
+
/**
|
|
3811
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3812
|
+
* @enum {string}
|
|
3813
|
+
*/
|
|
3556
3814
|
type: "SpecificResource";
|
|
3557
3815
|
/** @description IRI of the target resource */
|
|
3558
3816
|
source: string;
|
|
@@ -3645,7 +3903,10 @@ interface components {
|
|
|
3645
3903
|
suffix?: string;
|
|
3646
3904
|
};
|
|
3647
3905
|
TextualBody: {
|
|
3648
|
-
/**
|
|
3906
|
+
/**
|
|
3907
|
+
* @description discriminator enum property added by openapi-typescript
|
|
3908
|
+
* @enum {string}
|
|
3909
|
+
*/
|
|
3649
3910
|
type: "TextualBody";
|
|
3650
3911
|
/** @description The text content (e.g., entity type name) */
|
|
3651
3912
|
value: string;
|
|
@@ -4024,7 +4285,6 @@ type PersistedEventCatalog = {
|
|
|
4024
4285
|
'frame:entity-type-added': components['schemas']['EntityTypeAddedPayload'];
|
|
4025
4286
|
'frame:tag-schema-added': components['schemas']['TagSchemaAddedPayload'];
|
|
4026
4287
|
'job:started': components['schemas']['JobStartedPayload'];
|
|
4027
|
-
'job:progress': components['schemas']['JobProgressPayload'];
|
|
4028
4288
|
'job:completed': components['schemas']['JobCompletedPayload'];
|
|
4029
4289
|
'job:failed': components['schemas']['JobFailedPayload'];
|
|
4030
4290
|
};
|
|
@@ -4054,7 +4314,7 @@ type PersistedEventType = PersistedEvent['type'];
|
|
|
4054
4314
|
* also adding it here: forgetting fails to typecheck rather than silently
|
|
4055
4315
|
* dropping the event from the events-stream.
|
|
4056
4316
|
*/
|
|
4057
|
-
declare const PERSISTED_EVENT_TYPES: readonly ["yield:created", "yield:cloned", "yield:updated", "yield:moved", "yield:representation-added", "yield:representation-removed", "mark:added", "mark:removed", "mark:body-updated", "mark:archived", "mark:unarchived", "mark:entity-tag-added", "mark:entity-tag-removed", "frame:entity-type-added", "frame:tag-schema-added", "job:started", "job:
|
|
4317
|
+
declare const PERSISTED_EVENT_TYPES: readonly ["yield:created", "yield:cloned", "yield:updated", "yield:moved", "yield:representation-added", "yield:representation-removed", "mark:added", "mark:removed", "mark:body-updated", "mark:archived", "mark:unarchived", "mark:entity-tag-added", "mark:entity-tag-removed", "frame:entity-type-added", "frame:tag-schema-added", "job:started", "job:completed", "job:failed"];
|
|
4058
4318
|
/** Input type for appendEvent — PersistedEvent without id/timestamp (assigned at persistence time). */
|
|
4059
4319
|
type EventInput = Omit<PersistedEvent, 'id' | 'timestamp'>;
|
|
4060
4320
|
|
|
@@ -4420,7 +4680,8 @@ type EventMap = {
|
|
|
4420
4680
|
'browse:click': components['schemas']['BrowseClickEvent'] & {
|
|
4421
4681
|
anchorRect?: AnchorRect;
|
|
4422
4682
|
};
|
|
4423
|
-
'browse:
|
|
4683
|
+
'browse:resource-open': components['schemas']['BrowseResourceOpenEvent'];
|
|
4684
|
+
'browse:resource-viewed': components['schemas']['BrowseResourceViewedEvent'];
|
|
4424
4685
|
'browse:entity-type-clicked': components['schemas']['BrowseEntityTypeClickedEvent'];
|
|
4425
4686
|
'panel:toggle': components['schemas']['BrowsePanelToggleEvent'];
|
|
4426
4687
|
'panel:open': components['schemas']['BrowsePanelOpenEvent'] & {
|
|
@@ -4439,7 +4700,6 @@ type EventMap = {
|
|
|
4439
4700
|
'beckon:focus': components['schemas']['BeckonFocusEvent'];
|
|
4440
4701
|
'beckon:sparkle': components['schemas']['BeckonSparkleEvent'];
|
|
4441
4702
|
'job:started': StoredEvent<EventOfType<'job:started'>>;
|
|
4442
|
-
'job:progress': StoredEvent<EventOfType<'job:progress'>>;
|
|
4443
4703
|
'job:completed': StoredEvent<EventOfType<'job:completed'>>;
|
|
4444
4704
|
'job:failed': StoredEvent<EventOfType<'job:failed'>>;
|
|
4445
4705
|
'job:start': components['schemas']['JobStartCommand'];
|
|
@@ -4539,6 +4799,8 @@ type EventMap = {
|
|
|
4539
4799
|
lastSeenId?: string;
|
|
4540
4800
|
reason: string;
|
|
4541
4801
|
};
|
|
4802
|
+
'session:joined': components['schemas']['SessionJoinedEvent'];
|
|
4803
|
+
'session:left': components['schemas']['SessionLeftEvent'];
|
|
4542
4804
|
};
|
|
4543
4805
|
|
|
4544
4806
|
/**
|
|
@@ -4724,8 +4986,9 @@ declare const CHANNEL_SCHEMAS: {
|
|
|
4724
4986
|
readonly 'browse:directory-requested': "BrowseDirectoryRequest";
|
|
4725
4987
|
readonly 'browse:directory-result': "BrowseDirectoryResult";
|
|
4726
4988
|
readonly 'browse:directory-failed': null;
|
|
4727
|
-
readonly 'browse:click':
|
|
4728
|
-
readonly 'browse:
|
|
4989
|
+
readonly 'browse:click': "BrowseClickEvent";
|
|
4990
|
+
readonly 'browse:resource-open': "BrowseResourceOpenEvent";
|
|
4991
|
+
readonly 'browse:resource-viewed': "BrowseResourceViewedEvent";
|
|
4729
4992
|
readonly 'browse:entity-type-clicked': "BrowseEntityTypeClickedEvent";
|
|
4730
4993
|
readonly 'panel:toggle': "BrowsePanelToggleEvent";
|
|
4731
4994
|
readonly 'panel:open': null;
|
|
@@ -4740,7 +5003,6 @@ declare const CHANNEL_SCHEMAS: {
|
|
|
4740
5003
|
readonly 'beckon:focus': "BeckonFocusEvent";
|
|
4741
5004
|
readonly 'beckon:sparkle': "BeckonSparkleEvent";
|
|
4742
5005
|
readonly 'job:started': null;
|
|
4743
|
-
readonly 'job:progress': null;
|
|
4744
5006
|
readonly 'job:completed': null;
|
|
4745
5007
|
readonly 'job:failed': null;
|
|
4746
5008
|
readonly 'job:start': "JobStartCommand";
|
|
@@ -4775,6 +5037,8 @@ declare const CHANNEL_SCHEMAS: {
|
|
|
4775
5037
|
readonly 'stream-connected': null;
|
|
4776
5038
|
readonly 'replay-window-exceeded': null;
|
|
4777
5039
|
readonly 'bus:resume-gap': null;
|
|
5040
|
+
readonly 'session:joined': "SessionJoinedEvent";
|
|
5041
|
+
readonly 'session:left': "SessionLeftEvent";
|
|
4778
5042
|
};
|
|
4779
5043
|
/** Channels where `/bus/emit` validates the payload (non-null schema). */
|
|
4780
5044
|
type EmittableChannel = {
|
|
@@ -4795,6 +5059,13 @@ type EmittableChannel = {
|
|
|
4795
5059
|
|
|
4796
5060
|
type Selector = components['schemas']['TextPositionSelector'] | components['schemas']['TextQuoteSelector'] | components['schemas']['SvgSelector'] | components['schemas']['FragmentSelector'];
|
|
4797
5061
|
type GatheredContext = components['schemas']['GatheredContext'];
|
|
5062
|
+
/**
|
|
5063
|
+
* The `job:create` params shape for `jobType: 'generation'` — one type shared
|
|
5064
|
+
* by the write side (sdk `yield.fromContext` → `runGeneration`) and the read
|
|
5065
|
+
* side (the generation worker's `isGenerationJobParams` narrowing), so the two
|
|
5066
|
+
* ends of the wire cannot drift a field apart silently.
|
|
5067
|
+
*/
|
|
5068
|
+
type GenerationJobParams = components['schemas']['GenerationJobParams'];
|
|
4798
5069
|
type SelectionData = components['schemas']['SelectionData'];
|
|
4799
5070
|
type JobType = components['schemas']['JobType'];
|
|
4800
5071
|
/**
|
|
@@ -5885,8 +6156,15 @@ interface ITransport {
|
|
|
5885
6156
|
* `resourceScope`, when set, marks the emit as a resource-scoped
|
|
5886
6157
|
* broadcast — only delivered to subscribers attached to that
|
|
5887
6158
|
* resource's scope.
|
|
6159
|
+
*
|
|
6160
|
+
* Resolves with the number of subscribers the emit reached
|
|
6161
|
+
* (`/bus/emit` responds `{subscribers: n}`; GUIDED-TOUR P1), or `-1`
|
|
6162
|
+
* when the count is unknown — an older backend, an unreadable body, or
|
|
6163
|
+
* an in-process transport where the question does not apply. `-1` is
|
|
6164
|
+
* the same sentinel the Go client uses: a parse failure must stay
|
|
6165
|
+
* distinguishable from a genuine empty room.
|
|
5888
6166
|
*/
|
|
5889
|
-
emit<K extends keyof EventMap>(channel: K, payload: EventMap[K], resourceScope?: ResourceId): Promise<
|
|
6167
|
+
emit<K extends keyof EventMap>(channel: K, payload: EventMap[K], resourceScope?: ResourceId): Promise<number>;
|
|
5890
6168
|
on<K extends keyof EventMap>(channel: K, handler: (payload: EventMap[K]) => void): () => void;
|
|
5891
6169
|
stream<K extends keyof EventMap>(channel: K): Observable<EventMap[K]>;
|
|
5892
6170
|
/**
|
|
@@ -6348,7 +6626,7 @@ type BusOperationKey = keyof typeof BUS_OPERATIONS;
|
|
|
6348
6626
|
* and SSE infrastructure. A reply channel must NOT go here — declare its
|
|
6349
6627
|
* operation in `BUS_OPERATIONS` instead.
|
|
6350
6628
|
*/
|
|
6351
|
-
declare const BRIDGED_BROADCASTS: readonly ["job:report-progress", "job:complete", "job:fail", "frame:entity-type-added", "frame:tag-schema-added", "beckon:focus", "beckon:sparkle", "bus:resume-gap"];
|
|
6629
|
+
declare const BRIDGED_BROADCASTS: readonly ["job:report-progress", "job:complete", "job:fail", "frame:entity-type-added", "frame:tag-schema-added", "beckon:focus", "beckon:sparkle", "bus:resume-gap", "browse:resource-open", "browse:resource-viewed", "session:joined", "session:left", "browse:click"];
|
|
6352
6630
|
type OpSpecs = (typeof BUS_OPERATIONS)[keyof typeof BUS_OPERATIONS];
|
|
6353
6631
|
type ProgressChannel<O> = O extends {
|
|
6354
6632
|
progress: infer P extends EventName;
|
|
@@ -6384,7 +6662,12 @@ declare class BusRequestError extends SemiontError {
|
|
|
6384
6662
|
* can satisfy it without round-tripping through HTTP.
|
|
6385
6663
|
*/
|
|
6386
6664
|
interface BusRequestPrimitive {
|
|
6387
|
-
|
|
6665
|
+
/**
|
|
6666
|
+
* Matches `ITransport.emit`'s return: the subscriber count (`-1` =
|
|
6667
|
+
* unknown). `busRequest` itself ignores it — the reply channel is its
|
|
6668
|
+
* ack — but the primitive must stay assignable from every ITransport.
|
|
6669
|
+
*/
|
|
6670
|
+
emit<K extends keyof EventMap>(channel: K, payload: EventMap[K]): Promise<number>;
|
|
6388
6671
|
stream<K extends keyof EventMap>(channel: K): Observable<EventMap[K]>;
|
|
6389
6672
|
/**
|
|
6390
6673
|
* Connection state of the stream that carries replies. Required, not
|
|
@@ -7222,6 +7505,35 @@ declare function isNullish(value: unknown): value is null | undefined;
|
|
|
7222
7505
|
* Check if value is defined (not null or undefined)
|
|
7223
7506
|
*/
|
|
7224
7507
|
declare function isDefined<T>(value: T | null | undefined): value is T;
|
|
7508
|
+
/**
|
|
7509
|
+
* Boundary guard for `job:create` generation params (YIELD-FROM-CONTEXT P1).
|
|
7510
|
+
*
|
|
7511
|
+
* Checks the REQUIRED trio the schema declares (`title`, `storageUri`,
|
|
7512
|
+
* `context`) plus basic shape — deliberately NOT a full schema validation
|
|
7513
|
+
* (that depth belongs to the spec and its generated types); this is the
|
|
7514
|
+
* runtime half of the contract for values whose type history was severed:
|
|
7515
|
+
* wire JSON, storage, casts. For well-typed callers it is dead code, and
|
|
7516
|
+
* that is the correct price for a trust-boundary check.
|
|
7517
|
+
*/
|
|
7518
|
+
declare function isGenerationJobParams(value: unknown): value is GenerationJobParams;
|
|
7519
|
+
/**
|
|
7520
|
+
* Boundary guard for a `GatheredContext` whose type history was severed —
|
|
7521
|
+
* today that is exactly one place: the wizard stashes the context in
|
|
7522
|
+
* `sessionStorage` on the way to the compose page, which reads it back and
|
|
7523
|
+
* `JSON.parse`s it.
|
|
7524
|
+
*
|
|
7525
|
+
* Checks what consumers actually dereference rather than the whole schema:
|
|
7526
|
+
* `focus` (every view branches on `focus.kind`) and `graph.nodes` / `graph.edges`,
|
|
7527
|
+
* which `deriveViews` maps over without a guard. Both are `required` in
|
|
7528
|
+
* `GatheredContext.json` / `KnowledgeGraph.json`, so this is dead code for every
|
|
7529
|
+
* well-typed caller — the price of a trust boundary, same as
|
|
7530
|
+
* `isGenerationJobParams` above.
|
|
7531
|
+
*
|
|
7532
|
+
* The failure it prevents is not cosmetic: `deriveViews` runs during render, so a
|
|
7533
|
+
* stale stash (a tab held open across a deploy) throws inside React rather than
|
|
7534
|
+
* degrading, unmounting the flow to the nearest error boundary.
|
|
7535
|
+
*/
|
|
7536
|
+
declare function isGatheredContext(value: unknown): value is GatheredContext;
|
|
7225
7537
|
|
|
7226
7538
|
/**
|
|
7227
7539
|
* DID (Decentralized Identifier) and W3C Agent utilities
|
|
@@ -7727,8 +8039,8 @@ interface ServicesConfig {
|
|
|
7727
8039
|
database?: DatabaseServiceConfig;
|
|
7728
8040
|
graph?: GraphServiceConfig;
|
|
7729
8041
|
mcp?: McpServiceConfig;
|
|
7730
|
-
vectors
|
|
7731
|
-
embedding
|
|
8042
|
+
vectors: VectorsServiceConfig;
|
|
8043
|
+
embedding: EmbeddingServiceConfig;
|
|
7732
8044
|
[k: string]: unknown;
|
|
7733
8045
|
}
|
|
7734
8046
|
/**
|
|
@@ -8010,11 +8322,16 @@ declare function getAllPlatformTypes(): PlatformType[];
|
|
|
8010
8322
|
* and `@semiont/jobs` (the generation prompt builder) can share one derivation. `buildKnowledgeGraph`
|
|
8011
8323
|
* — which queries the graph DB — stays in make-meaning; this only transforms an already-built graph.
|
|
8012
8324
|
*
|
|
8013
|
-
* Reports the graph as-is (Option A): missing-view citers are kept (the
|
|
8014
|
-
* reference event
|
|
8015
|
-
*
|
|
8016
|
-
*
|
|
8017
|
-
*
|
|
8325
|
+
* Reports the graph as-is (Option A): missing-view citers are kept (the citing annotation reflects a
|
|
8326
|
+
* real reference event; its resource label falls back to the raw id). A citation is its linking
|
|
8327
|
+
* ANNOTATION: an annotation node with `annotation-of` → the citing resource and `cites` → the focal
|
|
8328
|
+
* resource — so citedBy resolves through that pair, deduped per citing resource (several citations
|
|
8329
|
+
* from one document are one citer). Siblings are annotations ON the focal resource
|
|
8330
|
+
* (`annotation-of` → main), excluding the focal annotation — an annotation isn't its own sibling,
|
|
8331
|
+
* and a CITING annotation lives on another resource, so it never was one. Peer connections are
|
|
8332
|
+
* edges out of `mainResourceId`; derivation is structural (endpoints), never a match on the
|
|
8333
|
+
* free-form relationshipType. The graph is a projection of the event log (the system of record),
|
|
8334
|
+
* read here because it is the queryable projection at gather time.
|
|
8018
8335
|
*/
|
|
8019
8336
|
|
|
8020
8337
|
type KnowledgeGraph = components['schemas']['KnowledgeGraph'];
|
|
@@ -8149,5 +8466,5 @@ declare function getShardPath(key: string, numBuckets?: number): [string, string
|
|
|
8149
8466
|
*/
|
|
8150
8467
|
declare const DISCOVERY_URL_PATH = "/discovery/kbs.json";
|
|
8151
8468
|
|
|
8152
|
-
export { AUTHORABLE_MEDIA_TYPES, BRIDGED_CHANNELS, BUS_OPERATIONS, BusRequestError, CHANNEL_SCHEMAS, CONTEXT_FULL_WEIGHT, CONTEXT_PARTIAL_WEIGHT, ConfigurationError, ConflictError, DEFAULT_CHUNKING_CONFIG, DISCOVERY_URL_PATH, EMBEDDABLE_MEDIA_TYPES, EventBus, GENERATABLE_MEDIA_TYPES, JWTTokenSchema, LOCALES, MEDIA_TYPES, NotFoundError, PERSISTED_EVENT_TYPES, POSITION_WEIGHT_MAX, POSITION_WINDOW, RESOURCE_BROADCAST_TYPES, STARTUP_FETCH_RETRY, ScopedEventBus, ScriptError, SemiontError, UnauthorizedError, ValidationError, accessToken, agentToDid, anchorAnnotation, anchorRuns, annotationId, annotationUri, applyBodyOperations, assembleAnnotation, authCode, baseMediaType, baseUrl, buildContentCache, burstBuffer, busLog, busLogEnabled, busRequest, capabilitiesOf, chunkText, cloneToken, createCircleSvg, createFragmentSelector, createPolygonSvg, createRectangleSvg, createTomlConfigLoader, decodeRepresentation, decodeWithCharset, deriveViews, didToAgent, email, entityType, errField, estimateTokens, extensionForMediaType, extractBoundingBox, extractCharset, extractContext, findBestTextMatch, findBodyItem, findClaimSpan, formatLocaleDisplay, generateUuid, getAllLocaleCodes, getAllPlatformTypes, getAnnotationExactText, getAnnotationUriFromEvent, getBodySource, getBodyType, getChecksum, getCommentText, getCreator, getDerivedFrom, getExactText, getFragmentSelector, getLanguage, getLocaleEnglishName, getLocaleInfo, getLocaleNativeName, getNodeEncoding, getPageFromFragment, getPrimaryMediaType, getPrimaryRepresentation, getPrimarySelector, getResourceEntityTypes, getResourceId, getShardPath, getStorageUri, getSvgSelector, getTargetSelector, getTargetSource, getTextPositionSelector, getTextQuoteSelector, googleCredential, hasTargetSelector, isAnnotationId, isArchived, isArray, isAssessment, isBodyResolved, isBoolean, isComment, isDefined, isDraft, isEventRelatedToAnnotation, isFunction, isHighlight, isNull, isNullish, isNumber, isObject, isReference, isResolvedReference, isResourceId, isStoredEvent, isString, isStubReference, isSupportedMediaType, isTag, isTextRun, isTransientFetchError, isUndefined, isValidEmail, isValidPlatformType, jobId, jumpConsistentHash, kbDid, loadTomlConfig, locate, mcpToken, mediaTypeForExtension, normalizeCoordinates, normalizeText, parseEnvironment, parseFragmentSelector, parseSvgSelector, reconcileSelector, refreshToken, resourceAnnotationUri, resourceId, resourceUri, retryWithBackoff, scaleSvgToNative, searchQuery, serializePerKey, setBusLogTraceIdProvider, softwareToAgent, textExtractionOf, textUnder, userDID, userId, userToAgent, userToDid, uuidV4, validateData, validateEnvironment, validateSvgMarkup, verifyPosition };
|
|
8153
|
-
export type { AccessToken, AnchorConfidence, AnchorMethod, AnchorRect, AnchorSelectors, AnchorStrategy, AnchoredText, AnchoringModel, Annotation, AnnotationCategory, AnnotationId, AnnotationUri, AnthropicProviderConfig, AppConfig, AssembledAnnotation, AuthCode, BackendDownload, BackendServiceConfig, BaseUrl, BodyItem, BodyItemIdentity, BodyOperation, BoundingBox, Brand, BridgedChannel, BurstBufferOptions, BusOp, BusOperationKey, BusOperationSpec, BusRequestErrorCode, BusRequestPrimitive, ChunkingConfig, CloneToken, CollaboratorEntry, ConnectionState, ContentCache, ContentFormat, CreateAnnotationInternal, DatabaseServiceConfig, DiscoveredKB, DiscoveryDocument, Email, EmbeddingServiceConfig, EmittableChannel, EntityType, EntityTypeStats, Environment, EnvironmentConfig, EventBase, EventInput, EventMap, EventMetadata, EventName, EventOfType, EventQuery, EventSignature, ExtractionOutcome, FragmentSelector, FrontendServiceConfig, GatheredContext, GoogleAuthRequest, GoogleCredential, GraphConnection, GraphDatabaseType, GraphPath, GraphServiceConfig, GraphViews, HealthCheckResponse, IBackendOperations, IContentTransport, ITransport, InferenceProvidersConfig, JobId, JobType, ListUsersResponse, LlmSelectorInput, LocaleInfo, Logger, MCPToken, MatchQuality, McpServiceConfig, MediaTypeCapabilities, Motivation, OllamaProviderConfig, PdfCoordinate, PdfTextItem, PdfTextRun, PersistedEvent, PersistedEventType, PlatformType, Point, ProgressCallback, ProgressEvent, PutBinaryOptions, PutBinaryProgress, PutBinaryRequest, ReconciledSelector, RefreshToken, RenderMode, RenderedAnchor, ResourceAnnotationUri, ResourceAnnotations, ResourceBroadcastType, ResourceDescriptor, ResourceFilter, ResourceId, ResourceUri, RetryAttemptInfo, RetryPolicy, SearchQuery, SelectionData, Selector, SemiontConfig, ServicePlatformConfig, ServicesConfig, SiteConfig, StateUnit, StatusResponse, StoredEvent, StoredEventLike, SupportedMediaType, SvgSelector, TagCategory, TagSchema, TextExtraction, TextPosition, TextPositionSelector, TextQuoteSelector, ActorInferenceConfig as TomlActorInferenceConfig, TomlFileReader, InferenceConfig as TomlInferenceConfig, WorkerInferenceConfig as TomlWorkerInferenceConfig, TransportErrorCode, UpdateResourceInput, UpdateUserRequest, UpdateUserResponse, UserDID, UserId, UserResponse, ValidationFailure, ValidationResult, ValidationSuccess, VectorsServiceConfig, components, operations, paths };
|
|
8469
|
+
export { AUTHORABLE_MEDIA_TYPES, BRIDGED_CHANNELS, BUS_OPERATIONS, BusRequestError, CHANNEL_SCHEMAS, CONTEXT_FULL_WEIGHT, CONTEXT_PARTIAL_WEIGHT, ConfigurationError, ConflictError, DEFAULT_CHUNKING_CONFIG, DISCOVERY_URL_PATH, EMBEDDABLE_MEDIA_TYPES, EventBus, GENERATABLE_MEDIA_TYPES, JWTTokenSchema, LOCALES, MEDIA_TYPES, NotFoundError, PERSISTED_EVENT_TYPES, POSITION_WEIGHT_MAX, POSITION_WINDOW, RESOURCE_BROADCAST_TYPES, STARTUP_FETCH_RETRY, ScopedEventBus, ScriptError, SemiontError, UnauthorizedError, ValidationError, accessToken, agentToDid, anchorAnnotation, anchorRuns, annotationId, annotationUri, applyBodyOperations, assembleAnnotation, authCode, baseMediaType, baseUrl, buildContentCache, burstBuffer, busLog, busLogEnabled, busRequest, capabilitiesOf, chunkText, cloneToken, createCircleSvg, createFragmentSelector, createPolygonSvg, createRectangleSvg, createTomlConfigLoader, decodeRepresentation, decodeWithCharset, deriveViews, didToAgent, email, entityType, errField, estimateTokens, extensionForMediaType, extractBoundingBox, extractCharset, extractContext, findBestTextMatch, findBodyItem, findClaimSpan, formatLocaleDisplay, generateUuid, getAllLocaleCodes, getAllPlatformTypes, getAnnotationExactText, getAnnotationUriFromEvent, getBodySource, getBodyType, getChecksum, getCommentText, getCreator, getDerivedFrom, getExactText, getFragmentSelector, getLanguage, getLocaleEnglishName, getLocaleInfo, getLocaleNativeName, getNodeEncoding, getPageFromFragment, getPrimaryMediaType, getPrimaryRepresentation, getPrimarySelector, getResourceEntityTypes, getResourceId, getShardPath, getStorageUri, getSvgSelector, getTargetSelector, getTargetSource, getTextPositionSelector, getTextQuoteSelector, googleCredential, hasTargetSelector, isAnnotationId, isArchived, isArray, isAssessment, isBodyResolved, isBoolean, isComment, isDefined, isDraft, isEventRelatedToAnnotation, isFunction, isGatheredContext, isGenerationJobParams, isHighlight, isNull, isNullish, isNumber, isObject, isReference, isResolvedReference, isResourceId, isStoredEvent, isString, isStubReference, isSupportedMediaType, isTag, isTextRun, isTransientFetchError, isUndefined, isValidEmail, isValidPlatformType, jobId, jumpConsistentHash, kbDid, loadTomlConfig, locate, mcpToken, mediaTypeForExtension, normalizeCoordinates, normalizeText, parseEnvironment, parseFragmentSelector, parseSvgSelector, reconcileSelector, refreshToken, resourceAnnotationUri, resourceId, resourceUri, retryWithBackoff, scaleSvgToNative, searchQuery, serializePerKey, setBusLogTraceIdProvider, softwareToAgent, textExtractionOf, textUnder, userDID, userId, userToAgent, userToDid, uuidV4, validateData, validateEnvironment, validateSvgMarkup, verifyPosition };
|
|
8470
|
+
export type { AccessToken, AnchorConfidence, AnchorMethod, AnchorRect, AnchorSelectors, AnchorStrategy, AnchoredText, AnchoringModel, Annotation, AnnotationCategory, AnnotationId, AnnotationUri, AnthropicProviderConfig, AppConfig, AssembledAnnotation, AuthCode, BackendDownload, BackendServiceConfig, BaseUrl, BodyItem, BodyItemIdentity, BodyOperation, BoundingBox, Brand, BridgedChannel, BurstBufferOptions, BusOp, BusOperationKey, BusOperationSpec, BusRequestErrorCode, BusRequestPrimitive, ChunkingConfig, CloneToken, CollaboratorEntry, ConnectionState, ContentCache, ContentFormat, CreateAnnotationInternal, DatabaseServiceConfig, DiscoveredKB, DiscoveryDocument, Email, EmbeddingServiceConfig, EmittableChannel, EntityType, EntityTypeStats, Environment, EnvironmentConfig, EventBase, EventInput, EventMap, EventMetadata, EventName, EventOfType, EventQuery, EventSignature, ExtractionOutcome, FragmentSelector, FrontendServiceConfig, GatheredContext, GenerationJobParams, GoogleAuthRequest, GoogleCredential, GraphConnection, GraphDatabaseType, GraphPath, GraphServiceConfig, GraphViews, HealthCheckResponse, IBackendOperations, IContentTransport, ITransport, InferenceProvidersConfig, JobId, JobType, ListUsersResponse, LlmSelectorInput, LocaleInfo, Logger, MCPToken, MatchQuality, McpServiceConfig, MediaTypeCapabilities, Motivation, OllamaProviderConfig, PdfCoordinate, PdfTextItem, PdfTextRun, PersistedEvent, PersistedEventType, PlatformType, Point, ProgressCallback, ProgressEvent, PutBinaryOptions, PutBinaryProgress, PutBinaryRequest, ReconciledSelector, RefreshToken, RenderMode, RenderedAnchor, ResourceAnnotationUri, ResourceAnnotations, ResourceBroadcastType, ResourceDescriptor, ResourceFilter, ResourceId, ResourceUri, RetryAttemptInfo, RetryPolicy, SearchQuery, SelectionData, Selector, SemiontConfig, ServicePlatformConfig, ServicesConfig, SiteConfig, StateUnit, StatusResponse, StoredEvent, StoredEventLike, SupportedMediaType, SvgSelector, TagCategory, TagSchema, TextExtraction, TextPosition, TextPositionSelector, TextQuoteSelector, ActorInferenceConfig as TomlActorInferenceConfig, TomlFileReader, InferenceConfig as TomlInferenceConfig, WorkerInferenceConfig as TomlWorkerInferenceConfig, TransportErrorCode, UpdateResourceInput, UpdateUserRequest, UpdateUserResponse, UserDID, UserId, UserResponse, ValidationFailure, ValidationResult, ValidationSuccess, VectorsServiceConfig, components, operations, paths };
|