@semiont/backend 0.5.2 → 0.5.3
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 +125 -51
- package/dist/index.js.map +1 -1
- package/dist/openapi.json +125 -51
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -11988,6 +11988,18 @@ var openapi_default = {
|
|
|
11988
11988
|
"entityType"
|
|
11989
11989
|
]
|
|
11990
11990
|
},
|
|
11991
|
+
TagSchemaAddedPayload: {
|
|
11992
|
+
type: "object",
|
|
11993
|
+
description: "Payload for frame:tag-schema-added domain event (system-level, no resourceId \u2014 fan-out is global to the KB).",
|
|
11994
|
+
properties: {
|
|
11995
|
+
schema: {
|
|
11996
|
+
$ref: "#/components/schemas/TagSchema"
|
|
11997
|
+
}
|
|
11998
|
+
},
|
|
11999
|
+
required: [
|
|
12000
|
+
"schema"
|
|
12001
|
+
]
|
|
12002
|
+
},
|
|
11991
12003
|
EntityTagChangedPayload: {
|
|
11992
12004
|
type: "object",
|
|
11993
12005
|
description: "Payload for mark:entity-tag-added and mark:entity-tag-removed domain events",
|
|
@@ -12398,6 +12410,20 @@ var openapi_default = {
|
|
|
12398
12410
|
"entityReferences"
|
|
12399
12411
|
]
|
|
12400
12412
|
},
|
|
12413
|
+
GetTagSchemasResponse: {
|
|
12414
|
+
type: "object",
|
|
12415
|
+
properties: {
|
|
12416
|
+
tagSchemas: {
|
|
12417
|
+
type: "array",
|
|
12418
|
+
items: {
|
|
12419
|
+
$ref: "#/components/schemas/TagSchema"
|
|
12420
|
+
}
|
|
12421
|
+
}
|
|
12422
|
+
},
|
|
12423
|
+
required: [
|
|
12424
|
+
"tagSchemas"
|
|
12425
|
+
]
|
|
12426
|
+
},
|
|
12401
12427
|
GoogleAuthRequest: {
|
|
12402
12428
|
type: "object",
|
|
12403
12429
|
properties: {
|
|
@@ -14162,6 +14188,34 @@ var openapi_default = {
|
|
|
14162
14188
|
"path"
|
|
14163
14189
|
]
|
|
14164
14190
|
},
|
|
14191
|
+
BrowseTagSchemasRequest: {
|
|
14192
|
+
type: "object",
|
|
14193
|
+
description: "Request to browse registered tag schemas",
|
|
14194
|
+
properties: {
|
|
14195
|
+
correlationId: {
|
|
14196
|
+
type: "string"
|
|
14197
|
+
}
|
|
14198
|
+
},
|
|
14199
|
+
required: [
|
|
14200
|
+
"correlationId"
|
|
14201
|
+
]
|
|
14202
|
+
},
|
|
14203
|
+
BrowseTagSchemasResult: {
|
|
14204
|
+
type: "object",
|
|
14205
|
+
description: "Result of browsing tag schemas",
|
|
14206
|
+
properties: {
|
|
14207
|
+
correlationId: {
|
|
14208
|
+
type: "string"
|
|
14209
|
+
},
|
|
14210
|
+
response: {
|
|
14211
|
+
$ref: "#/components/schemas/GetTagSchemasResponse"
|
|
14212
|
+
}
|
|
14213
|
+
},
|
|
14214
|
+
required: [
|
|
14215
|
+
"correlationId",
|
|
14216
|
+
"response"
|
|
14217
|
+
]
|
|
14218
|
+
},
|
|
14165
14219
|
FragmentSelector: {
|
|
14166
14220
|
type: "object",
|
|
14167
14221
|
description: "W3C Web Annotation FragmentSelector for media fragment identifiers (RFC 3778 for PDFs)",
|
|
@@ -15022,6 +15076,22 @@ var openapi_default = {
|
|
|
15022
15076
|
"tag"
|
|
15023
15077
|
]
|
|
15024
15078
|
},
|
|
15079
|
+
FrameAddTagSchemaCommand: {
|
|
15080
|
+
type: "object",
|
|
15081
|
+
description: "Bus command to register a tag schema with the KB's runtime registry. Carried on the `frame:add-tag-schema` channel \u2014 Frame is the schema-layer flow that owns vocabulary writes. Most-recent registration of a given `schema.id` wins; the projection reflects the latest content. Identical re-registrations are silent; differing content overwrites and logs a warning.",
|
|
15082
|
+
properties: {
|
|
15083
|
+
schema: {
|
|
15084
|
+
$ref: "#/components/schemas/TagSchema"
|
|
15085
|
+
},
|
|
15086
|
+
_userId: {
|
|
15087
|
+
type: "string",
|
|
15088
|
+
description: "Authenticated user's DID, injected by the /bus/emit gateway. Clients do not set this."
|
|
15089
|
+
}
|
|
15090
|
+
},
|
|
15091
|
+
required: [
|
|
15092
|
+
"schema"
|
|
15093
|
+
]
|
|
15094
|
+
},
|
|
15025
15095
|
MarkArchiveCommand: {
|
|
15026
15096
|
type: "object",
|
|
15027
15097
|
description: "Bus command to archive a resource and optionally remove its file.",
|
|
@@ -15558,6 +15628,61 @@ var openapi_default = {
|
|
|
15558
15628
|
"value"
|
|
15559
15629
|
]
|
|
15560
15630
|
},
|
|
15631
|
+
TagCategory: {
|
|
15632
|
+
type: "object",
|
|
15633
|
+
description: "A single category within a tag schema (e.g. 'Issue' in IRAC, 'distinguished' in legal-citation-treatment). Each category carries methodology-bound semantics: a name, a description, and examples used in the LLM prompt.",
|
|
15634
|
+
properties: {
|
|
15635
|
+
name: {
|
|
15636
|
+
type: "string"
|
|
15637
|
+
},
|
|
15638
|
+
description: {
|
|
15639
|
+
type: "string"
|
|
15640
|
+
},
|
|
15641
|
+
examples: {
|
|
15642
|
+
type: "array",
|
|
15643
|
+
items: {
|
|
15644
|
+
type: "string"
|
|
15645
|
+
}
|
|
15646
|
+
}
|
|
15647
|
+
},
|
|
15648
|
+
required: [
|
|
15649
|
+
"name",
|
|
15650
|
+
"description",
|
|
15651
|
+
"examples"
|
|
15652
|
+
]
|
|
15653
|
+
},
|
|
15654
|
+
TagSchema: {
|
|
15655
|
+
type: "object",
|
|
15656
|
+
description: "A structural-analysis schema (e.g. legal-irac, scientific-imrad, argument-toulmin). Defines a methodology framework as an id, name, description, domain hint, and an ordered list of categories. KBs and their skills register schemas with the runtime registry via `frame.addTagSchema(...)` at session start.",
|
|
15657
|
+
properties: {
|
|
15658
|
+
id: {
|
|
15659
|
+
type: "string"
|
|
15660
|
+
},
|
|
15661
|
+
name: {
|
|
15662
|
+
type: "string"
|
|
15663
|
+
},
|
|
15664
|
+
description: {
|
|
15665
|
+
type: "string"
|
|
15666
|
+
},
|
|
15667
|
+
domain: {
|
|
15668
|
+
type: "string",
|
|
15669
|
+
description: "Free-form domain hint (e.g. 'legal', 'scientific', 'general'). Used in the LLM prompt to tune the model's analysis voice. KB authors choose."
|
|
15670
|
+
},
|
|
15671
|
+
tags: {
|
|
15672
|
+
type: "array",
|
|
15673
|
+
items: {
|
|
15674
|
+
$ref: "#/components/schemas/TagCategory"
|
|
15675
|
+
}
|
|
15676
|
+
}
|
|
15677
|
+
},
|
|
15678
|
+
required: [
|
|
15679
|
+
"id",
|
|
15680
|
+
"name",
|
|
15681
|
+
"description",
|
|
15682
|
+
"domain",
|
|
15683
|
+
"tags"
|
|
15684
|
+
]
|
|
15685
|
+
},
|
|
15561
15686
|
YieldCloneCreateCommand: {
|
|
15562
15687
|
type: "object",
|
|
15563
15688
|
description: "Bus command to create a cloned resource from a clone token.",
|
|
@@ -15770,57 +15895,6 @@ var openapi_default = {
|
|
|
15770
15895
|
"toUri"
|
|
15771
15896
|
]
|
|
15772
15897
|
},
|
|
15773
|
-
YieldRequestCommand: {
|
|
15774
|
-
type: "object",
|
|
15775
|
-
description: "Bus command to request yield (generation) of a new resource from an annotation.",
|
|
15776
|
-
properties: {
|
|
15777
|
-
correlationId: {
|
|
15778
|
-
type: "string",
|
|
15779
|
-
description: "Client-supplied id used to match this command to its result event(s) on the events-stream. Generated by the route handler if absent."
|
|
15780
|
-
},
|
|
15781
|
-
annotationId: {
|
|
15782
|
-
type: "string"
|
|
15783
|
-
},
|
|
15784
|
-
resourceId: {
|
|
15785
|
-
type: "string"
|
|
15786
|
-
},
|
|
15787
|
-
options: {
|
|
15788
|
-
type: "object",
|
|
15789
|
-
properties: {
|
|
15790
|
-
title: {
|
|
15791
|
-
type: "string"
|
|
15792
|
-
},
|
|
15793
|
-
prompt: {
|
|
15794
|
-
type: "string"
|
|
15795
|
-
},
|
|
15796
|
-
language: {
|
|
15797
|
-
type: "string"
|
|
15798
|
-
},
|
|
15799
|
-
temperature: {
|
|
15800
|
-
type: "number"
|
|
15801
|
-
},
|
|
15802
|
-
maxTokens: {
|
|
15803
|
-
type: "integer"
|
|
15804
|
-
},
|
|
15805
|
-
context: {
|
|
15806
|
-
$ref: "#/components/schemas/GatheredContext"
|
|
15807
|
-
},
|
|
15808
|
-
storageUri: {
|
|
15809
|
-
type: "string"
|
|
15810
|
-
}
|
|
15811
|
-
},
|
|
15812
|
-
required: [
|
|
15813
|
-
"title",
|
|
15814
|
-
"storageUri"
|
|
15815
|
-
]
|
|
15816
|
-
}
|
|
15817
|
-
},
|
|
15818
|
-
required: [
|
|
15819
|
-
"annotationId",
|
|
15820
|
-
"resourceId",
|
|
15821
|
-
"options"
|
|
15822
|
-
]
|
|
15823
|
-
},
|
|
15824
15898
|
YieldUpdateCommand: {
|
|
15825
15899
|
type: "object",
|
|
15826
15900
|
description: "Bus command to update a yielded resource's storage content.",
|